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 an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.
Synopsis
- data DeleteAutoSnapshot = DeleteAutoSnapshot' {
- resourceName :: Text
- date :: Text
- newDeleteAutoSnapshot :: Text -> Text -> DeleteAutoSnapshot
- deleteAutoSnapshot_resourceName :: Lens' DeleteAutoSnapshot Text
- deleteAutoSnapshot_date :: Lens' DeleteAutoSnapshot Text
- data DeleteAutoSnapshotResponse = DeleteAutoSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteAutoSnapshotResponse :: Int -> DeleteAutoSnapshotResponse
- deleteAutoSnapshotResponse_operations :: Lens' DeleteAutoSnapshotResponse (Maybe [Operation])
- deleteAutoSnapshotResponse_httpStatus :: Lens' DeleteAutoSnapshotResponse Int
Creating a Request
data DeleteAutoSnapshot Source #
See: newDeleteAutoSnapshot
smart constructor.
DeleteAutoSnapshot' | |
|
Instances
newDeleteAutoSnapshot Source #
:: Text | |
-> Text | |
-> DeleteAutoSnapshot |
Create a value of DeleteAutoSnapshot
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:resourceName:DeleteAutoSnapshot'
, deleteAutoSnapshot_resourceName
- The name of the source instance or disk from which to delete the
automatic snapshot.
$sel:date:DeleteAutoSnapshot'
, deleteAutoSnapshot_date
- The date of the automatic snapshot to delete in YYYY-MM-DD
format. Use
the get auto snapshots
operation to get the available automatic
snapshots for a resource.
Request Lenses
deleteAutoSnapshot_resourceName :: Lens' DeleteAutoSnapshot Text Source #
The name of the source instance or disk from which to delete the automatic snapshot.
deleteAutoSnapshot_date :: Lens' DeleteAutoSnapshot Text Source #
The date of the automatic snapshot to delete in YYYY-MM-DD
format. Use
the get auto snapshots
operation to get the available automatic
snapshots for a resource.
Destructuring the Response
data DeleteAutoSnapshotResponse Source #
See: newDeleteAutoSnapshotResponse
smart constructor.
DeleteAutoSnapshotResponse' | |
|
Instances
newDeleteAutoSnapshotResponse Source #
Create a value of DeleteAutoSnapshotResponse
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:operations:DeleteAutoSnapshotResponse'
, deleteAutoSnapshotResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteAutoSnapshotResponse'
, deleteAutoSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAutoSnapshotResponse_operations :: Lens' DeleteAutoSnapshotResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteAutoSnapshotResponse_httpStatus :: Lens' DeleteAutoSnapshotResponse Int Source #
The response's http status code.