interface CfnAliasProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnAliasProps |
Java | software.amazon.awscdk.services.lambda.CfnAliasProps |
Python | aws_cdk.aws_lambda.CfnAliasProps |
TypeScript | @aws-cdk/aws-lambda » CfnAliasProps |
Properties for defining a CfnAlias
.
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 cfnAliasProps: lambda.CfnAliasProps = {
functionName: 'functionName',
functionVersion: 'functionVersion',
name: 'name',
// the properties below are optional
description: 'description',
provisionedConcurrencyConfig: {
provisionedConcurrentExecutions: 123,
},
routingConfig: {
additionalVersionWeights: [{
functionVersion: 'functionVersion',
functionWeight: 123,
}],
},
};
Properties
Name | Type | Description |
---|---|---|
function | string | The name of the Lambda function. |
function | string | The function version that the alias invokes. |
name | string | The name of the alias. |
description? | string | A description of the alias. |
provisioned | Provisioned | IResolvable | Specifies a provisioned concurrency configuration for a function's alias. |
routing | IResolvable | Alias | The routing configuration of the alias. |
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.
functionVersion
Type:
string
The function version that the alias invokes.
name
Type:
string
The name of the alias.
description?
Type:
string
(optional)
A description of the alias.
provisionedConcurrencyConfig?
Type:
Provisioned
|
IResolvable
(optional)
Specifies a provisioned concurrency configuration for a function's alias.
routingConfig?
Type:
IResolvable
|
Alias
(optional)
The routing configuration of the alias.