Class CfnVersionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnVersionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersionMixinProps>
- Enclosing interface:
CfnVersionMixinProps
@Stability(Stable)
public static final class CfnVersionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersionMixinProps>
A builder for
CfnVersionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeSha256(String codeSha256) Sets the value ofCfnVersionMixinProps.getCodeSha256()description(String description) Sets the value ofCfnVersionMixinProps.getDescription()functionName(String functionName) Sets the value ofCfnVersionMixinProps.getFunctionName()functionName(IFunctionRef functionName) Sets the value ofCfnVersionMixinProps.getFunctionName()functionScalingConfig(CfnVersionPropsMixin.FunctionScalingConfigProperty functionScalingConfig) Sets the value ofCfnVersionMixinProps.getFunctionScalingConfig()functionScalingConfig(IResolvable functionScalingConfig) Sets the value ofCfnVersionMixinProps.getFunctionScalingConfig()provisionedConcurrencyConfig(CfnVersionPropsMixin.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Sets the value ofCfnVersionMixinProps.getProvisionedConcurrencyConfig()provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnVersionMixinProps.getProvisionedConcurrencyConfig()runtimePolicy(CfnVersionPropsMixin.RuntimePolicyProperty runtimePolicy) Sets the value ofCfnVersionMixinProps.getRuntimePolicy()runtimePolicy(IResolvable runtimePolicy) Sets the value ofCfnVersionMixinProps.getRuntimePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeSha256
Sets the value ofCfnVersionMixinProps.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 ofCfnVersionMixinProps.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
-
functionName
Sets the value ofCfnVersionMixinProps.getFunctionName()- Parameters:
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.
- Function ARN -
- Returns:
this
-
functionName
Sets the value ofCfnVersionMixinProps.getFunctionName()- Parameters:
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.
- Function ARN -
- Returns:
this
-
functionScalingConfig
@Stability(Stable) public CfnVersionMixinProps.Builder functionScalingConfig(IResolvable functionScalingConfig) Sets the value ofCfnVersionMixinProps.getFunctionScalingConfig()- 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.- Returns:
this
-
functionScalingConfig
@Stability(Stable) public CfnVersionMixinProps.Builder functionScalingConfig(CfnVersionPropsMixin.FunctionScalingConfigProperty functionScalingConfig) Sets the value ofCfnVersionMixinProps.getFunctionScalingConfig()- 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.- Returns:
this
-
provisionedConcurrencyConfig
@Stability(Stable) public CfnVersionMixinProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig) Sets the value ofCfnVersionMixinProps.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 CfnVersionMixinProps.Builder provisionedConcurrencyConfig(CfnVersionPropsMixin.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig) Sets the value ofCfnVersionMixinProps.getProvisionedConcurrencyConfig()- Parameters:
provisionedConcurrencyConfig- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.- Returns:
this
-
runtimePolicy
Sets the value ofCfnVersionMixinProps.getRuntimePolicy()- Parameters:
runtimePolicy- Runtime Management Config of a function.- Returns:
this
-
runtimePolicy
@Stability(Stable) public CfnVersionMixinProps.Builder runtimePolicy(CfnVersionPropsMixin.RuntimePolicyProperty runtimePolicy) Sets the value ofCfnVersionMixinProps.getRuntimePolicy()- Parameters:
runtimePolicy- Runtime Management Config of a function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVersionMixinProps>- Returns:
- a new instance of
CfnVersionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-