CfnAliasPropsο
- class aws_cdk.aws_lambda.CfnAliasProps(*, function_name, function_version, name, description=None, provisioned_concurrency_config=None, routing_config=None)ο
Bases:
objectProperties for defining a
CfnAlias.- Parameters:
function_name (
Union[str,IFunctionRef]) β 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.function_version (
str) β The function version that the alias invokes.name (
str) β The name of the alias.description (
Optional[str]) β A description of the alias.provisioned_concurrency_config (
Union[IResolvable,ProvisionedConcurrencyConfigurationProperty,Dict[str,Any],None]) β Specifies a provisioned concurrency configuration for a functionβs alias.routing_config (
Union[IResolvable,AliasRoutingConfigurationProperty,Dict[str,Any],None]) β The routing configuration of the alias.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ cfn_alias_props = lambda.CfnAliasProps( function_name="functionName", function_version="functionVersion", name="name", # the properties below are optional description="description", provisioned_concurrency_config=lambda.CfnAlias.ProvisionedConcurrencyConfigurationProperty( provisioned_concurrent_executions=123 ), routing_config=lambda.CfnAlias.AliasRoutingConfigurationProperty( additional_version_weights=[lambda.CfnAlias.VersionWeightProperty( function_version="functionVersion", function_weight=123 )] ) )
Attributes
- descriptionο
A description of the alias.
- function_nameο
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.
- function_versionο
The function version that the alias invokes.
- nameο
The name of the alias.
- provisioned_concurrency_configο
Specifies a provisioned concurrency configuration for a functionβs alias.
- routing_configο
The routing configuration of the alias.