Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_image

delete_image(**kwargs)

Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.

See also: AWS API Documentation

Request Syntax

response = client.delete_image(
    imageBuildVersionArn='string'
)
Parameters
imageBuildVersionArn (string) --

[REQUIRED]

The Amazon Resource Name (ARN) of the Image Builder image resource to delete.

Return type
dict
Returns
Response Syntax
{
    'requestId': 'string',
    'imageBuildVersionArn': 'string'
}

Response Structure

  • (dict) --
    • requestId (string) --

      The request ID that uniquely identifies this request.

    • imageBuildVersionArn (string) --

      The Amazon Resource Name (ARN) of the Image Builder image resource that was deleted.

Exceptions

  • imagebuilder.Client.exceptions.ServiceException
  • imagebuilder.Client.exceptions.ClientException
  • imagebuilder.Client.exceptions.InvalidRequestException
  • imagebuilder.Client.exceptions.ServiceUnavailableException
  • imagebuilder.Client.exceptions.ForbiddenException
  • imagebuilder.Client.exceptions.CallRateLimitExceededException
  • imagebuilder.Client.exceptions.ResourceDependencyException