public class CreateAliasRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateAlias operation.
Creates an alias to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases
This requires permission for the lambda:CreateAlias action.
NOOP| Constructor and Description |
|---|
CreateAliasRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateAliasRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
Description of the alias.
|
String |
getFunctionName()
Name of the Lambda function for which you want to create an alias.
|
String |
getFunctionVersion()
Lambda function version for which you are creating the alias.
|
String |
getName()
Name for the alias your creating.
|
int |
hashCode() |
void |
setDescription(String description)
Description of the alias.
|
void |
setFunctionName(String functionName)
Name of the Lambda function for which you want to create an alias.
|
void |
setFunctionVersion(String functionVersion)
Lambda function version for which you are creating the alias.
|
void |
setName(String name)
Name for the alias your creating.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAliasRequest |
withDescription(String description)
Description of the alias.
|
CreateAliasRequest |
withFunctionName(String functionName)
Name of the Lambda function for which you want to create an alias.
|
CreateAliasRequest |
withFunctionVersion(String functionVersion)
Lambda function version for which you are creating the alias.
|
CreateAliasRequest |
withName(String name)
Name for the alias your creating.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getFunctionName()
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
public void setFunctionName(String functionName)
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
functionName - Name of the Lambda function for which you want to create an alias.public CreateAliasRequest withFunctionName(String functionName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
functionName - Name of the Lambda function for which you want to create an alias.public String getName()
Constraints:
Length: 1 - 128
Pattern: (?!^[0-9]+$)([a-zA-Z0-9-_]+)
public void setName(String name)
Constraints:
Length: 1 - 128
Pattern: (?!^[0-9]+$)([a-zA-Z0-9-_]+)
name - Name for the alias your creating.public CreateAliasRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: (?!^[0-9]+$)([a-zA-Z0-9-_]+)
name - Name for the alias your creating.public String getFunctionVersion()
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
public void setFunctionVersion(String functionVersion)
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
functionVersion - Lambda function version for which you are creating the alias.public CreateAliasRequest withFunctionVersion(String functionVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
functionVersion - Lambda function version for which you are creating the alias.public String getDescription()
Constraints:
Length: 0 - 256
public void setDescription(String description)
Constraints:
Length: 0 - 256
description - Description of the alias.public CreateAliasRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
description - Description of the alias.public String toString()
toString in class ObjectObject.toString()public CreateAliasRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.