delete_alias(**kwargs)¶Deletes a Lambda function alias.
See also: AWS API Documentation
Request Syntax
response = client.delete_alias(
FunctionName='string',
Name='string'
)
[REQUIRED]
The name of the Lambda function.
Name formats
MyFunction .arn:aws:lambda:us-west-2:123456789012:function:MyFunction .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.
[REQUIRED]
The name of the alias.
None
Exceptions
Lambda.Client.exceptions.ServiceExceptionLambda.Client.exceptions.InvalidParameterValueExceptionLambda.Client.exceptions.ResourceConflictExceptionLambda.Client.exceptions.TooManyRequestsExceptionExamples
The following example deletes an alias named BLUE from a function named my-function
response = client.delete_alias(
FunctionName='my-function',
Name='BLUE',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}