Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes a snapshot of a volume.
You can take snapshots of your gateway volumes on a scheduled or ad hoc
basis. This API action enables you to delete a snapshot schedule for a
volume. For more information, see
Backing up your volumes.
In the DeleteSnapshotSchedule
request, you identify the volume by
providing its Amazon Resource Name (ARN). This operation is only
supported in stored and cached volume gateway types.
To list or delete a snapshot, you must use the Amazon EC2 API. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.
Synopsis
- data DeleteSnapshotSchedule = DeleteSnapshotSchedule' {}
- newDeleteSnapshotSchedule :: Text -> DeleteSnapshotSchedule
- deleteSnapshotSchedule_volumeARN :: Lens' DeleteSnapshotSchedule Text
- data DeleteSnapshotScheduleResponse = DeleteSnapshotScheduleResponse' {
- volumeARN :: Maybe Text
- httpStatus :: Int
- newDeleteSnapshotScheduleResponse :: Int -> DeleteSnapshotScheduleResponse
- deleteSnapshotScheduleResponse_volumeARN :: Lens' DeleteSnapshotScheduleResponse (Maybe Text)
- deleteSnapshotScheduleResponse_httpStatus :: Lens' DeleteSnapshotScheduleResponse Int
Creating a Request
data DeleteSnapshotSchedule Source #
See: newDeleteSnapshotSchedule
smart constructor.
Instances
newDeleteSnapshotSchedule Source #
Create a value of DeleteSnapshotSchedule
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:volumeARN:DeleteSnapshotSchedule'
, deleteSnapshotSchedule_volumeARN
- The volume which snapshot schedule to delete.
Request Lenses
deleteSnapshotSchedule_volumeARN :: Lens' DeleteSnapshotSchedule Text Source #
The volume which snapshot schedule to delete.
Destructuring the Response
data DeleteSnapshotScheduleResponse Source #
See: newDeleteSnapshotScheduleResponse
smart constructor.
DeleteSnapshotScheduleResponse' | |
|
Instances
Eq DeleteSnapshotScheduleResponse Source # | |
Read DeleteSnapshotScheduleResponse Source # | |
Show DeleteSnapshotScheduleResponse Source # | |
Generic DeleteSnapshotScheduleResponse Source # | |
NFData DeleteSnapshotScheduleResponse Source # | |
Defined in Amazonka.StorageGateway.DeleteSnapshotSchedule rnf :: DeleteSnapshotScheduleResponse -> () # | |
type Rep DeleteSnapshotScheduleResponse Source # | |
Defined in Amazonka.StorageGateway.DeleteSnapshotSchedule type Rep DeleteSnapshotScheduleResponse = D1 ('MetaData "DeleteSnapshotScheduleResponse" "Amazonka.StorageGateway.DeleteSnapshotSchedule" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "DeleteSnapshotScheduleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "volumeARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteSnapshotScheduleResponse Source #
Create a value of DeleteSnapshotScheduleResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:volumeARN:DeleteSnapshotSchedule'
, deleteSnapshotScheduleResponse_volumeARN
- The volume which snapshot schedule was deleted.
$sel:httpStatus:DeleteSnapshotScheduleResponse'
, deleteSnapshotScheduleResponse_httpStatus
- The response's http status code.
Response Lenses
deleteSnapshotScheduleResponse_volumeARN :: Lens' DeleteSnapshotScheduleResponse (Maybe Text) Source #
The volume which snapshot schedule was deleted.
deleteSnapshotScheduleResponse_httpStatus :: Lens' DeleteSnapshotScheduleResponse Int Source #
The response's http status code.