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 |
Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.
Synopsis
- data GetAutoSnapshots = GetAutoSnapshots' {
- resourceName :: Text
- newGetAutoSnapshots :: Text -> GetAutoSnapshots
- getAutoSnapshots_resourceName :: Lens' GetAutoSnapshots Text
- data GetAutoSnapshotsResponse = GetAutoSnapshotsResponse' {}
- newGetAutoSnapshotsResponse :: Int -> GetAutoSnapshotsResponse
- getAutoSnapshotsResponse_resourceType :: Lens' GetAutoSnapshotsResponse (Maybe ResourceType)
- getAutoSnapshotsResponse_resourceName :: Lens' GetAutoSnapshotsResponse (Maybe Text)
- getAutoSnapshotsResponse_autoSnapshots :: Lens' GetAutoSnapshotsResponse (Maybe [AutoSnapshotDetails])
- getAutoSnapshotsResponse_httpStatus :: Lens' GetAutoSnapshotsResponse Int
Creating a Request
data GetAutoSnapshots Source #
See: newGetAutoSnapshots
smart constructor.
GetAutoSnapshots' | |
|
Instances
Create a value of GetAutoSnapshots
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:GetAutoSnapshots'
, getAutoSnapshots_resourceName
- The name of the source instance or disk from which to get automatic
snapshot information.
Request Lenses
getAutoSnapshots_resourceName :: Lens' GetAutoSnapshots Text Source #
The name of the source instance or disk from which to get automatic snapshot information.
Destructuring the Response
data GetAutoSnapshotsResponse Source #
See: newGetAutoSnapshotsResponse
smart constructor.
GetAutoSnapshotsResponse' | |
|
Instances
newGetAutoSnapshotsResponse Source #
Create a value of GetAutoSnapshotsResponse
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:resourceType:GetAutoSnapshotsResponse'
, getAutoSnapshotsResponse_resourceType
- The resource type (e.g., Instance
or Disk
).
$sel:resourceName:GetAutoSnapshots'
, getAutoSnapshotsResponse_resourceName
- The name of the source instance or disk for the automatic snapshots.
$sel:autoSnapshots:GetAutoSnapshotsResponse'
, getAutoSnapshotsResponse_autoSnapshots
- An array of objects that describe the automatic snapshots that are
available for the specified source instance or disk.
$sel:httpStatus:GetAutoSnapshotsResponse'
, getAutoSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
getAutoSnapshotsResponse_resourceType :: Lens' GetAutoSnapshotsResponse (Maybe ResourceType) Source #
The resource type (e.g., Instance
or Disk
).
getAutoSnapshotsResponse_resourceName :: Lens' GetAutoSnapshotsResponse (Maybe Text) Source #
The name of the source instance or disk for the automatic snapshots.
getAutoSnapshotsResponse_autoSnapshots :: Lens' GetAutoSnapshotsResponse (Maybe [AutoSnapshotDetails]) Source #
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
getAutoSnapshotsResponse_httpStatus :: Lens' GetAutoSnapshotsResponse Int Source #
The response's http status code.