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.Builderdescription(String description) A description for the version to override the description in the function configuration.functionName(String functionName) The name or ARN of the Lambda function.functionName(IFunctionRef functionName) The name or ARN of the Lambda function.functionScalingConfig(IResolvable functionScalingConfig) Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.functionScalingConfig(CfnVersion.FunctionScalingConfigProperty functionScalingConfig) Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.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.runtimePolicy(IResolvable runtimePolicy) Runtime Management Config of a function.runtimePolicy(CfnVersion.RuntimePolicyProperty runtimePolicy) Runtime Management Config of a function.
-
Method Details
-
create
@Stability(Stable) public static CfnVersion.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVersion.Builder.
-
functionName
The name or ARN 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 or ARN of the Lambda function. This parameter is required.- Returns:
this- See Also:
- Function ARN -
-
functionName
The name or ARN 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 or ARN of the Lambda function. This parameter is required.- Returns:
this- See Also:
- 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- See Also:
-
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- See Also:
-
functionScalingConfig
@Stability(Stable) public CfnVersion.Builder functionScalingConfig(IResolvable functionScalingConfig) Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.- Parameters:
functionScalingConfig- Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned. This parameter is required.- Returns:
this- See Also:
-
functionScalingConfig
@Stability(Stable) public CfnVersion.Builder functionScalingConfig(CfnVersion.FunctionScalingConfigProperty functionScalingConfig) Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.- Parameters:
functionScalingConfig- Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned. This parameter is required.- Returns:
this- See Also:
-
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- See Also:
-
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- See Also:
-
runtimePolicy
Runtime Management Config of a function.- Parameters:
runtimePolicy- Runtime Management Config of a function. This parameter is required.- Returns:
this- See Also:
-
runtimePolicy
@Stability(Stable) public CfnVersion.Builder runtimePolicy(CfnVersion.RuntimePolicyProperty runtimePolicy) Runtime Management Config of a function.- Parameters:
runtimePolicy- Runtime Management Config of a function. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVersion>- Returns:
- a newly built instance of
CfnVersion.
-