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.ServiceException
Lambda.Client.exceptions.InvalidParameterValueException
Lambda.Client.exceptions.ResourceConflictException
Lambda.Client.exceptions.TooManyRequestsException
Examples
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': {
'...': '...',
},
}