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.RedshiftServerLess.ListSnapshots
Description
Returns a list of snapshots.
This operation returns paginated results.
Synopsis
- data ListSnapshots = ListSnapshots' {}
- newListSnapshots :: ListSnapshots
- listSnapshots_endTime :: Lens' ListSnapshots (Maybe UTCTime)
- listSnapshots_maxResults :: Lens' ListSnapshots (Maybe Natural)
- listSnapshots_namespaceArn :: Lens' ListSnapshots (Maybe Text)
- listSnapshots_namespaceName :: Lens' ListSnapshots (Maybe Text)
- listSnapshots_nextToken :: Lens' ListSnapshots (Maybe Text)
- listSnapshots_ownerAccount :: Lens' ListSnapshots (Maybe Text)
- listSnapshots_startTime :: Lens' ListSnapshots (Maybe UTCTime)
- data ListSnapshotsResponse = ListSnapshotsResponse' {}
- newListSnapshotsResponse :: Int -> ListSnapshotsResponse
- listSnapshotsResponse_nextToken :: Lens' ListSnapshotsResponse (Maybe Text)
- listSnapshotsResponse_snapshots :: Lens' ListSnapshotsResponse (Maybe [Snapshot])
- listSnapshotsResponse_httpStatus :: Lens' ListSnapshotsResponse Int
Creating a Request
data ListSnapshots Source #
See: newListSnapshots
smart constructor.
Constructors
ListSnapshots' | |
Fields
|
Instances
newListSnapshots :: ListSnapshots Source #
Create a value of ListSnapshots
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:endTime:ListSnapshots'
, listSnapshots_endTime
- The timestamp showing when the snapshot creation finished.
$sel:maxResults:ListSnapshots'
, listSnapshots_maxResults
- An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to display the next page of results.
ListSnapshots
, listSnapshots_namespaceArn
- The Amazon Resource Name (ARN) of the namespace from which to list all
snapshots.
ListSnapshots
, listSnapshots_namespaceName
- The namespace from which to list all snapshots.
ListSnapshots
, listSnapshots_nextToken
- If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page.
ListSnapshots
, listSnapshots_ownerAccount
- The owner Amazon Web Services account of the snapshot.
$sel:startTime:ListSnapshots'
, listSnapshots_startTime
- The time when the creation of the snapshot was initiated.
Request Lenses
listSnapshots_endTime :: Lens' ListSnapshots (Maybe UTCTime) Source #
The timestamp showing when the snapshot creation finished.
listSnapshots_maxResults :: Lens' ListSnapshots (Maybe Natural) Source #
An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to display the next page of results.
listSnapshots_namespaceArn :: Lens' ListSnapshots (Maybe Text) Source #
The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.
listSnapshots_namespaceName :: Lens' ListSnapshots (Maybe Text) Source #
The namespace from which to list all snapshots.
listSnapshots_nextToken :: Lens' ListSnapshots (Maybe Text) Source #
If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page.
listSnapshots_ownerAccount :: Lens' ListSnapshots (Maybe Text) Source #
The owner Amazon Web Services account of the snapshot.
listSnapshots_startTime :: Lens' ListSnapshots (Maybe UTCTime) Source #
The time when the creation of the snapshot was initiated.
Destructuring the Response
data ListSnapshotsResponse Source #
See: newListSnapshotsResponse
smart constructor.
Constructors
ListSnapshotsResponse' | |
Fields
|
Instances
newListSnapshotsResponse Source #
Create a value of ListSnapshotsResponse
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:
ListSnapshots
, listSnapshotsResponse_nextToken
- If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page.
$sel:snapshots:ListSnapshotsResponse'
, listSnapshotsResponse_snapshots
- All of the returned snapshot objects.
$sel:httpStatus:ListSnapshotsResponse'
, listSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
listSnapshotsResponse_nextToken :: Lens' ListSnapshotsResponse (Maybe Text) Source #
If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page.
listSnapshotsResponse_snapshots :: Lens' ListSnapshotsResponse (Maybe [Snapshot]) Source #
All of the returned snapshot objects.
listSnapshotsResponse_httpStatus :: Lens' ListSnapshotsResponse Int Source #
The response's http status code.