Interface CfnVersionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVersionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:33.375Z")
@Stability(Stable)
public interface CfnVersionProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnVersion
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lambda.*; Object policy; CfnVersionProps cfnVersionProps = CfnVersionProps.builder() .functionName("functionName") // the properties below are optional .codeSha256("codeSha256") .description("description") .policy(policy) .provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder() .provisionedConcurrentExecutions(123) .build()) .runtimePolicy(RuntimePolicyProperty.builder() .updateRuntimeOn("updateRuntimeOn") // the properties below are optional .runtimeVersionArn("runtimeVersionArn") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVersionProps
static final class
An implementation forCfnVersionProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnVersionProps.Builder
builder()
default String
Only publish a version if the hash value matches the value that's specified.default String
A description for the version to override the description in the function configuration.The name or ARN of the Lambda function.default Object
The resource policy of your function.default Object
Specifies a provisioned concurrency configuration for a function's version.default Object
Runtime Management Config of a function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFunctionName
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.
- See Also:
- Function ARN -
-
getCodeSha256
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.
- See Also:
-
getDescription
A description for the version to override the description in the function configuration.Updates are not supported for this property.
- See Also:
-
getPolicy
The resource policy of your function.- See Also:
-
getProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
- See Also:
-
getRuntimePolicy
Runtime Management Config of a function.- See Also:
-
builder
- Returns:
- a
CfnVersionProps.Builder
ofCfnVersionProps
-