interface CfnVersionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.CfnVersionProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnVersionProps |
![]() | software.amazon.awscdk.services.lambda.CfnVersionProps |
![]() | aws_cdk.aws_lambda.CfnVersionProps |
![]() | aws-cdk-lib » aws_lambda » CfnVersionProps |
Properties for defining a CfnVersion
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
declare const policy: any;
const cfnVersionProps: lambda.CfnVersionProps = {
functionName: 'functionName',
// the properties below are optional
codeSha256: 'codeSha256',
description: 'description',
policy: policy,
provisionedConcurrencyConfig: {
provisionedConcurrentExecutions: 123,
},
runtimePolicy: {
updateRuntimeOn: 'updateRuntimeOn',
// the properties below are optional
runtimeVersionArn: 'runtimeVersionArn',
},
};
Properties
Name | Type | Description |
---|---|---|
function | string | The name or ARN 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. |
policy? | any | The resource policy of your function. |
provisioned | IResolvable | Provisioned | Specifies a provisioned concurrency configuration for a function's version. |
runtime | IResolvable | Runtime | Runtime Management Config of a function. |
functionName
Type:
string
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.
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.
policy?
Type:
any
(optional)
The resource policy of your function.
provisionedConcurrencyConfig?
Type:
IResolvable
|
Provisioned
(optional)
Specifies a provisioned concurrency configuration for a function's version.
Updates are not supported for this property.
runtimePolicy?
Type:
IResolvable
|
Runtime
(optional)
Runtime Management Config of a function.