interface CfnVersionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnVersionProps |
Java | software.amazon.awscdk.services.lambda.CfnVersionProps |
Python | aws_cdk.aws_lambda.CfnVersionProps |
TypeScript | @aws-cdk/aws-lambda » CfnVersionProps |
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 * as lambda from '@aws-cdk/aws-lambda';
const cfnVersionProps: lambda.CfnVersionProps = {
functionName: 'functionName',
// the properties below are optional
codeSha256: 'codeSha256',
description: 'description',
provisionedConcurrencyConfig: {
provisionedConcurrentExecutions: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| function | string | The name of the Lambda function. |
| code | string | Only publish a version if the hash value matches the value that's specified. |
| description? | string | A description for the version to override the description in the function configuration. |
| provisioned | IResolvable | Provisioned | Specifies a provisioned concurrency configuration for a function's version. |
functionName
Type:
string
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.
codeSha256?
Type:
string
(optional)
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?
Type:
string
(optional)
A description for the version to override the description in the function configuration.
Updates are not supported for this property.
provisionedConcurrencyConfig?
Type:
IResolvable | Provisioned
(optional)
Specifies a provisioned concurrency configuration for a function's version.
Updates are not supported for this property.

.NET
Java
Python
TypeScript