CfnVersionProps¶
-
class
aws_cdk.aws_lambda.
CfnVersionProps
(*, function_name, code_sha256=None, description=None, provisioned_concurrency_config=None)¶ Bases:
object
Properties for defining a
CfnVersion
.- Parameters
function_name (
str
) – 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.code_sha256 (
Optional
[str
]) – 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.description (
Optional
[str
]) – A description for the version to override the description in the function configuration. Updates are not supported for this property.provisioned_concurrency_config (
Union
[IResolvable
,ProvisionedConcurrencyConfigurationProperty
,None
]) – Specifies a provisioned concurrency configuration for a function’s version. Updates are not supported for this property.
- Link
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
- ExampleMetadata
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_lambda as lambda_ cfn_version_props = lambda.CfnVersionProps( function_name="functionName", # the properties below are optional code_sha256="codeSha256", description="description", provisioned_concurrency_config=lambda.CfnVersion.ProvisionedConcurrencyConfigurationProperty( provisioned_concurrent_executions=123 ) )
Attributes
-
code_sha256
¶ 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.
- Link
- Return type
Optional
[str
]
-
description
¶ A description for the version to override the description in the function configuration.
Updates are not supported for this property.
-
function_name
¶ 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.
-
provisioned_concurrency_config
¶ Specifies a provisioned concurrency configuration for a function’s version.
Updates are not supported for this property.