delete_workspace_image

delete_workspace_image(**kwargs)

Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts.

See also: AWS API Documentation

Request Syntax

response = client.delete_workspace_image(
    ImageId='string'
)
Parameters
ImageId (string) --

[REQUIRED]

The identifier of the image.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • WorkSpaces.Client.exceptions.ResourceAssociatedException
  • WorkSpaces.Client.exceptions.InvalidResourceStateException
  • WorkSpaces.Client.exceptions.AccessDeniedException