| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.DeleteInstanceSnapshot
Description
Deletes a specific snapshot of a virtual private server (or instance).
The delete instance snapshot operation supports tag-based access
control via resource tags applied to the resource identified by
instance snapshot name. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DeleteInstanceSnapshot = DeleteInstanceSnapshot' {}
- newDeleteInstanceSnapshot :: Text -> DeleteInstanceSnapshot
- deleteInstanceSnapshot_instanceSnapshotName :: Lens' DeleteInstanceSnapshot Text
- data DeleteInstanceSnapshotResponse = DeleteInstanceSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteInstanceSnapshotResponse :: Int -> DeleteInstanceSnapshotResponse
- deleteInstanceSnapshotResponse_operations :: Lens' DeleteInstanceSnapshotResponse (Maybe [Operation])
- deleteInstanceSnapshotResponse_httpStatus :: Lens' DeleteInstanceSnapshotResponse Int
Creating a Request
data DeleteInstanceSnapshot Source #
See: newDeleteInstanceSnapshot smart constructor.
Constructors
| DeleteInstanceSnapshot' | |
Fields
| |
Instances
newDeleteInstanceSnapshot Source #
Create a value of DeleteInstanceSnapshot 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:instanceSnapshotName:DeleteInstanceSnapshot', deleteInstanceSnapshot_instanceSnapshotName - The name of the snapshot to delete.
Request Lenses
deleteInstanceSnapshot_instanceSnapshotName :: Lens' DeleteInstanceSnapshot Text Source #
The name of the snapshot to delete.
Destructuring the Response
data DeleteInstanceSnapshotResponse Source #
See: newDeleteInstanceSnapshotResponse smart constructor.
Constructors
| DeleteInstanceSnapshotResponse' | |
Fields
| |
Instances
newDeleteInstanceSnapshotResponse Source #
Create a value of DeleteInstanceSnapshotResponse 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:DeleteInstanceSnapshotResponse', deleteInstanceSnapshotResponse_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:DeleteInstanceSnapshotResponse', deleteInstanceSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
deleteInstanceSnapshotResponse_operations :: Lens' DeleteInstanceSnapshotResponse (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.
deleteInstanceSnapshotResponse_httpStatus :: Lens' DeleteInstanceSnapshotResponse Int Source #
The response's http status code.