Class CfnVersionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnVersionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersionPropsMixin>
- Enclosing class:
CfnVersionPropsMixin
@Stability(Stable)
public static final class CfnVersionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersionPropsMixin>
A fluent builder for
CfnVersionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()codeSha256(String codeSha256) Only publish a version if the hash value matches the value that's specified.static CfnVersionPropsMixin.Buildercreate()static CfnVersionPropsMixin.Buildercreate(CfnPropertyMixinOptions options) description(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(CfnVersionPropsMixin.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.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.provisionedConcurrencyConfig(CfnVersionPropsMixin.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Specifies a provisioned concurrency configuration for a function's version.runtimePolicy(CfnVersionPropsMixin.RuntimePolicyProperty runtimePolicy) Runtime Management Config of a function.runtimePolicy(IResolvable runtimePolicy) Runtime Management Config of a function.
-
Method Details
-
create
@Stability(Stable) public static CfnVersionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVersionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVersionPropsMixin.Builder.
-
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:
-
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 -
-
functionScalingConfig
@Stability(Stable) public CfnVersionPropsMixin.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 CfnVersionPropsMixin.Builder functionScalingConfig(CfnVersionPropsMixin.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 CfnVersionPropsMixin.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 CfnVersionPropsMixin.Builder provisionedConcurrencyConfig(CfnVersionPropsMixin.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 CfnVersionPropsMixin.Builder runtimePolicy(CfnVersionPropsMixin.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<CfnVersionPropsMixin>- Returns:
- a newly built instance of
CfnVersionPropsMixin.
-