public class CreateAliasRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateAlias operation
.
Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases .
Alias names are unique for a given function.
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 you are 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 you are 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 you are creating.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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 you are 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 you are 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 Object
Object.toString()
public CreateAliasRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2016. All rights reserved.