Class CfnVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lambda.CfnVersion
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:35.574Z")
@Stability(Stable)
public class CfnVersion
extends CfnResource
implements IInspectable
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.*; Object policy; CfnVersion cfnVersion = CfnVersion.Builder.create(this, "MyCfnVersion") .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 TypeClassDescriptionstatic final class
A fluent builder forCfnVersion
.static interface
A provisioned concurrency configuration for a function's version.static interface
Runtime Management Config of a function.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnVersion
(software.amazon.jsii.JsiiObjectRef objRef) CfnVersion
(software.constructs.Construct scope, String id, CfnVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the function.The 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 or ARN of the Lambda function.The resource policy of your function.Specifies a provisioned concurrency configuration for a function's version.Runtime Management Config of a function.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCodeSha256
(String value) Only publish a version if the hash value matches the value that's specified.void
setDescription
(String value) A description for the version to override the description in the function configuration.void
setFunctionName
(String value) The name or ARN of the Lambda function.void
The resource policy of your function.void
Specifies a provisioned concurrency configuration for a function's version.void
Specifies a provisioned concurrency configuration for a function's version.void
setRuntimePolicy
(IResolvable value) Runtime Management Config of a function.void
Runtime Management Config of a function.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnVersionProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrFunctionArn
The ARN of the function. -
getAttrVersion
The version number. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFunctionName
The name or ARN of the Lambda function. -
setFunctionName
The name or ARN of the Lambda function. -
getCodeSha256
Only publish a version if the hash value matches the value that's specified. -
setCodeSha256
Only publish a version if the hash value matches the value that's specified. -
getDescription
A description for the version to override the description in the function configuration. -
setDescription
A description for the version to override the description in the function configuration. -
getPolicy
The resource policy of your function. -
setPolicy
The resource policy of your function. -
getProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version. -
setProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version. -
setProvisionedConcurrencyConfig
@Stability(Stable) public void setProvisionedConcurrencyConfig(@Nullable CfnVersion.ProvisionedConcurrencyConfigurationProperty value) Specifies a provisioned concurrency configuration for a function's version. -
getRuntimePolicy
Runtime Management Config of a function. -
setRuntimePolicy
Runtime Management Config of a function. -
setRuntimePolicy
Runtime Management Config of a function.
-