Class CfnVersion.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersion>
- Enclosing class:
- CfnVersion
@Stability(Stable)
public static final class CfnVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersion>
A fluent builder for
CfnVersion
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
codeSha256
(String codeSha256) Only publish a version if the hash value matches the value that's specified.static CfnVersion.Builder
description
(String description) A description for the version to override the description in the function configuration.functionName
(String functionName) The name of the Lambda function.provisionedConcurrencyConfig
(IResolvable provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.provisionedConcurrencyConfig
(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnVersion.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 -
-
codeSha256
Only publish a version if the hash value matches the value that's specified.Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
- Parameters:
codeSha256
- Only publish a version if the hash value matches the value that's specified. This parameter is required.- Returns:
this
-
description
A description for the version to override the description in the function configuration.Updates are not supported for this property.
- Parameters:
description
- A description for the version to override the description in the function configuration. This parameter is required.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnVersion.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version. This parameter is required.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnVersion.Builder provisionedConcurrencyConfig(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVersion>
- Returns:
- a newly built instance of
CfnVersion
.
-