interface CfnVersionMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnVersionMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnVersionMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnVersionMixinProps |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnVersionMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnVersionMixinProps |
Properties for CfnVersionPropsMixin.
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 { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const cfnVersionMixinProps: lambda_mixins.CfnVersionMixinProps = {
codeSha256: 'codeSha256',
description: 'description',
functionName: 'functionName',
functionScalingConfig: {
maxExecutionEnvironments: 123,
minExecutionEnvironments: 123,
},
provisionedConcurrencyConfig: {
provisionedConcurrentExecutions: 123,
},
runtimePolicy: {
runtimeVersionArn: 'runtimeVersionArn',
updateRuntimeOn: 'updateRuntimeOn',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| 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. |
| function | string | The name or ARN of the Lambda function. |
| function | IResolvable | Function | Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned. |
| provisioned | IResolvable | Provisioned | Specifies a provisioned concurrency configuration for a function's version. |
| runtime | IResolvable | Runtime | Runtime Management Config of a function. |
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.
functionName?
Type:
string
(optional)
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.
functionScalingConfig?
Type:
IResolvable | Function
(optional)
Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.
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.

.NET
Go
Java
Python
TypeScript