public static interface CreateAliasRequest.Builder extends LambdaRequest.Builder, CopyableBuilder<CreateAliasRequest.Builder,CreateAliasRequest>
Modifier and Type | Method and Description |
---|---|
CreateAliasRequest.Builder |
description(String description)
Description of the alias.
|
CreateAliasRequest.Builder |
functionName(String functionName)
Name of the Lambda function for which you want to create an alias.
|
CreateAliasRequest.Builder |
functionVersion(String functionVersion)
Lambda function version for which you are creating the alias.
|
CreateAliasRequest.Builder |
name(String name)
Name for the alias you are creating.
|
CreateAliasRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
CreateAliasRequest.Builder |
routingConfig(AliasRoutingConfiguration routingConfig)
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic
will invoke each version.
|
default CreateAliasRequest.Builder |
routingConfig(Consumer<AliasRoutingConfiguration.Builder> routingConfig)
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic
will invoke each version.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
CreateAliasRequest.Builder functionName(String functionName)
Name of the Lambda function for which you want to create an alias. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- Name of the Lambda function for which you want to create an alias. Note that the length constraint
applies only to the ARN. If you specify only the function name, it is limited to 64 characters in
length.CreateAliasRequest.Builder name(String name)
Name for the alias you are creating.
name
- Name for the alias you are creating.CreateAliasRequest.Builder functionVersion(String functionVersion)
Lambda function version for which you are creating the alias.
functionVersion
- Lambda function version for which you are creating the alias.CreateAliasRequest.Builder description(String description)
Description of the alias.
description
- Description of the alias.CreateAliasRequest.Builder routingConfig(AliasRoutingConfiguration routingConfig)
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.
routingConfig
- Specifies an additional version your alias can point to, allowing you to dictate what percentage of
traffic will invoke each version. For more information, see
lambda-traffic-shifting-using-aliases.default CreateAliasRequest.Builder routingConfig(Consumer<AliasRoutingConfiguration.Builder> routingConfig)
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.
This is a convenience that creates an instance of theAliasRoutingConfiguration.Builder
avoiding the
need to create one manually via AliasRoutingConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to routingConfig(AliasRoutingConfiguration)
.routingConfig
- a consumer that will call methods on AliasRoutingConfiguration.Builder
routingConfig(AliasRoutingConfiguration)
CreateAliasRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.