Class CfnVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersionProps>
- Enclosing interface:
CfnVersionProps
@Stability(Stable)
public static final class CfnVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersionProps>
A builder for
CfnVersionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeSha256
(String codeSha256) Sets the value ofCfnVersionProps.getCodeSha256()
description
(String description) Sets the value ofCfnVersionProps.getDescription()
functionName
(String functionName) Sets the value ofCfnVersionProps.getFunctionName()
provisionedConcurrencyConfig
(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnVersionProps.getProvisionedConcurrencyConfig()
provisionedConcurrencyConfig
(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Sets the value ofCfnVersionProps.getProvisionedConcurrencyConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
functionName
Sets the value ofCfnVersionProps.getFunctionName()
- Parameters:
functionName
- The name of the Lambda function. This parameter is required. 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.
- Function ARN -
- Returns:
this
-
codeSha256
Sets the value ofCfnVersionProps.getCodeSha256()
- Parameters:
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.- Returns:
this
-
description
Sets the value ofCfnVersionProps.getDescription()
- Parameters:
description
- A description for the version to override the description in the function configuration. Updates are not supported for this property.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnVersionProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnVersionProps.getProvisionedConcurrencyConfig()
- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnVersionProps.Builder provisionedConcurrencyConfig(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Sets the value ofCfnVersionProps.getProvisionedConcurrencyConfig()
- Parameters:
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVersionProps>
- Returns:
- a new instance of
CfnVersionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-