| 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.GetAutoSnapshots
Description
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_autoSnapshots :: Lens' GetAutoSnapshotsResponse (Maybe [AutoSnapshotDetails])
- getAutoSnapshotsResponse_resourceName :: Lens' GetAutoSnapshotsResponse (Maybe Text)
- getAutoSnapshotsResponse_resourceType :: Lens' GetAutoSnapshotsResponse (Maybe ResourceType)
- getAutoSnapshotsResponse_httpStatus :: Lens' GetAutoSnapshotsResponse Int
Creating a Request
data GetAutoSnapshots Source #
See: newGetAutoSnapshots smart constructor.
Constructors
| GetAutoSnapshots' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetAutoSnapshots |
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:
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.
Constructors
| GetAutoSnapshotsResponse' | |
Fields
| |
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:autoSnapshots:GetAutoSnapshotsResponse', getAutoSnapshotsResponse_autoSnapshots - An array of objects that describe the automatic snapshots that are
available for the specified source instance or disk.
GetAutoSnapshots, getAutoSnapshotsResponse_resourceName - The name of the source instance or disk for the automatic snapshots.
GetAutoSnapshotsResponse, getAutoSnapshotsResponse_resourceType - The resource type (e.g., Instance or Disk).
$sel:httpStatus:GetAutoSnapshotsResponse', getAutoSnapshotsResponse_httpStatus - The response's http status code.
Response Lenses
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_resourceName :: Lens' GetAutoSnapshotsResponse (Maybe Text) Source #
The name of the source instance or disk for the automatic snapshots.
getAutoSnapshotsResponse_resourceType :: Lens' GetAutoSnapshotsResponse (Maybe ResourceType) Source #
The resource type (e.g., Instance or Disk).
getAutoSnapshotsResponse_httpStatus :: Lens' GetAutoSnapshotsResponse Int Source #
The response's http status code.