Skip to content

EC2  >  Structures  >  DeleteSnapshotReturnCode

DeleteSnapshotReturnCode

Structure Class

DeleteSnapshotReturnCode dataclass

Bases: _SerdeShape

The snapshot ID and its deletion result code.

Attributes

return_code class-attribute instance-attribute
return_code: str | None = ...

The result code from the snapshot deletion attempt. Possible values:

  • success - The snapshot was successfully deleted.

  • skipped - The snapshot was not deleted because it's associated with other AMIs.

  • missing-permissions - The snapshot was not deleted because the role lacks DeleteSnapshot permissions. For more information, see How Amazon EBS works with IAM.

  • internal-error - The snapshot was not deleted due to a server error.

  • client-error - The snapshot was not deleted due to a client configuration error.

For details about an error, check the DeleteSnapshot event in the CloudTrail event history. For more information, see View event history in the Amazon Web Services CloudTrail User Guide.

snapshot_id class-attribute instance-attribute
snapshot_id: str | None = ...

The ID of the snapshot.