@Generated(value="software.amazon.awssdk:codegen") public final class CreateAliasResponse extends LambdaResponse implements ToCopyableBuilder<CreateAliasResponse.Builder,CreateAliasResponse>
Provides configuration information about a Lambda function version alias.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateAliasResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
aliasArn()
Lambda function ARN that is qualified using the alias name as the suffix.
|
static CreateAliasResponse.Builder |
builder() |
String |
description()
Alias description.
|
boolean |
equals(Object obj) |
String |
functionVersion()
Function version to which the alias points.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
String |
name()
Alias name.
|
String |
revisionId()
Represents the latest updated revision of the function or alias.
|
AliasRoutingConfiguration |
routingConfig()
Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic
will invoke each version.
|
static Class<? extends CreateAliasResponse.Builder> |
serializableBuilderClass() |
CreateAliasResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
sdkHttpResponse
copy
public String aliasArn()
Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias
called BETA
that points to a helloworld function version, the ARN is
arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA
.
BETA
that points to a helloworld function version, the ARN is
arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA
.public String name()
Alias name.
public String functionVersion()
Function version to which the alias points.
public String description()
Alias description.
public AliasRoutingConfiguration routingConfig()
Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.
public String revisionId()
Represents the latest updated revision of the function or alias.
public CreateAliasResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateAliasResponse.Builder,CreateAliasResponse>
toBuilder
in class AwsResponse
public static CreateAliasResponse.Builder builder()
public static Class<? extends CreateAliasResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.