Class CfnAlias.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnAlias.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlias>
- Enclosing class:
CfnAlias
@Stability(Stable)
public static final class CfnAlias.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlias>
A fluent builder for
CfnAlias
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnAlias.Builder
description
(String description) A description of the alias.functionName
(String functionName) The name of the Lambda function.functionVersion
(String functionVersion) The function version that the alias invokes.The name of the alias.provisionedConcurrencyConfig
(IResolvable provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's alias.provisionedConcurrencyConfig
(CfnAlias.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's alias.routingConfig
(IResolvable routingConfig) The routing configuration of the alias.routingConfig
(CfnAlias.AliasRoutingConfigurationProperty routingConfig) The routing configuration of the alias.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnAlias.Builder
.
-
functionName
The name of the Lambda function.Name formats - Function name -
MyFunction
.- Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. - Partial ARN -
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
- Parameters:
functionName
- The name of the Lambda function. This parameter is required.- Returns:
this
- Function ARN -
-
functionVersion
The function version that the alias invokes.- Parameters:
functionVersion
- The function version that the alias invokes. This parameter is required.- Returns:
this
-
name
The name of the alias.- Parameters:
name
- The name of the alias. This parameter is required.- Returns:
this
-
description
A description of the alias.- Parameters:
description
- A description of the alias. This parameter is required.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnAlias.Builder provisionedConcurrencyConfig(CfnAlias.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's alias.- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's alias. This parameter is required.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnAlias.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's alias.- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's alias. This parameter is required.- Returns:
this
-
routingConfig
The routing configuration of the alias.- Parameters:
routingConfig
- The routing configuration of the alias. This parameter is required.- Returns:
this
-
routingConfig
@Stability(Stable) public CfnAlias.Builder routingConfig(CfnAlias.AliasRoutingConfigurationProperty routingConfig) The routing configuration of the alias.- Parameters:
routingConfig
- The routing configuration of the alias. This parameter is required.- Returns:
this
-
build
-