imagebuilder / Client / delete_lifecycle_policy
delete_lifecycle_policy¶
- imagebuilder.Client.delete_lifecycle_policy(**kwargs)¶
Deletes the specified lifecycle policy resource. Deleting the policy removes its schedule, so no further lifecycle runs occur for that policy. If a lifecycle execution is in progress for the policy, Image Builder cancels it. Deletion doesn’t revert actions that the policy already applied to your resources.
See also: AWS API Documentation
Request Syntax
response = client.delete_lifecycle_policy( lifecyclePolicyArn='string' )
- Parameters:
lifecyclePolicyArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the lifecycle policy resource to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'lifecyclePolicyArn': 'string' }
Response Structure
(dict) –
lifecyclePolicyArn (string) –
The Amazon Resource Name (ARN) of the lifecycle policy that was deleted.
Exceptions
imagebuilder.Client.exceptions.ServiceExceptionimagebuilder.Client.exceptions.ClientExceptionimagebuilder.Client.exceptions.InvalidRequestExceptionimagebuilder.Client.exceptions.ServiceUnavailableExceptionimagebuilder.Client.exceptions.ForbiddenExceptionimagebuilder.Client.exceptions.CallRateLimitExceededExceptionimagebuilder.Client.exceptions.ResourceDependencyException