public static final class CfnVersionProps.Builder
extends java.lang.Object
CfnVersionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVersionProps |
build()
Builds the configured instance.
|
CfnVersionProps.Builder |
codeSha256(java.lang.String codeSha256)
Sets the value of
CfnVersionProps.getCodeSha256() |
CfnVersionProps.Builder |
description(java.lang.String description)
Sets the value of
CfnVersionProps.getDescription() |
CfnVersionProps.Builder |
functionName(java.lang.String functionName)
Sets the value of
CfnVersionProps.getFunctionName() |
CfnVersionProps.Builder |
provisionedConcurrencyConfig(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig)
Sets the value of
CfnVersionProps.getProvisionedConcurrencyConfig() |
CfnVersionProps.Builder |
provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig)
Sets the value of
CfnVersionProps.getProvisionedConcurrencyConfig() |
public CfnVersionProps.Builder functionName(java.lang.String functionName)
CfnVersionProps.getFunctionName()
functionName
- The name of the Lambda function. This parameter is required.
Name formats - Function name - MyFunction
.
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.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.
this
public CfnVersionProps.Builder codeSha256(java.lang.String codeSha256)
CfnVersionProps.getCodeSha256()
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.this
public CfnVersionProps.Builder description(java.lang.String description)
CfnVersionProps.getDescription()
description
- A description for the version to override the description in the function configuration.
Updates are not supported for this property.this
public CfnVersionProps.Builder provisionedConcurrencyConfig(IResolvable provisionedConcurrencyConfig)
CfnVersionProps.getProvisionedConcurrencyConfig()
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version.
Updates are not supported for this property.this
public CfnVersionProps.Builder provisionedConcurrencyConfig(CfnVersion.ProvisionedConcurrencyConfigurationProperty provisionedConcurrencyConfig)
CfnVersionProps.getProvisionedConcurrencyConfig()
provisionedConcurrencyConfig
- Specifies a provisioned concurrency configuration for a function's version.
Updates are not supported for this property.this
public CfnVersionProps build()
CfnVersionProps
java.lang.NullPointerException
- if any required attribute was not provided