Class CfnVersion
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Lambda::Version.
The AWS::Lambda::Version resource creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
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.*;
CfnVersion cfnVersion = CfnVersion.Builder.create(this, "MyCfnVersion")
.functionName("functionName")
// the properties below are optional
.codeSha256("codeSha256")
.description("description")
.provisionedConcurrencyConfig(ProvisionedConcurrencyConfigurationProperty.builder()
.provisionedConcurrentExecutions(123)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVersion.static interfaceA provisioned concurrency configuration for a function's version.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnVersion(Construct scope, String id, CfnVersionProps props) Create a newAWS::Lambda::Version.protectedCfnVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVersion(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe version number.Only publish a version if the hash value matches the value that's specified.A description for the version to override the description in the function configuration.The name of the Lambda function.Specifies a provisioned concurrency configuration for a function's version.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCodeSha256(String value) Only publish a version if the hash value matches the value that's specified.voidsetDescription(String value) A description for the version to override the description in the function configuration.voidsetFunctionName(String value) The name of the Lambda function.voidSpecifies a provisioned concurrency configuration for a function's version.voidSpecifies a provisioned concurrency configuration for a function's version.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVersion
protected CfnVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVersion
protected CfnVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVersion
@Stability(Stable) public CfnVersion(@NotNull Construct scope, @NotNull String id, @NotNull CfnVersionProps props) Create a newAWS::Lambda::Version.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrVersion
The version number. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFunctionName
The name 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 -
-
setFunctionName
The name 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 -
-
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.
-
setCodeSha256
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.
-
getDescription
A description for the version to override the description in the function configuration.Updates are not supported for this property.
-
setDescription
A description for the version to override the description in the function configuration.Updates are not supported for this property.
-
getProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
-
setProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
-
setProvisionedConcurrencyConfig
@Stability(Stable) public void setProvisionedConcurrencyConfig(@Nullable CfnVersion.ProvisionedConcurrencyConfigurationProperty value) Specifies a provisioned concurrency configuration for a function's version.Updates are not supported for this property.
-