Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns information about cache cluster or replication group snapshots. By default, DescribeSnapshots
lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cache cluster.
This operation returns paginated results.
- describeSnapshots :: DescribeSnapshots
- data DescribeSnapshots
- dsCacheClusterId :: Lens' DescribeSnapshots (Maybe Text)
- dsMarker :: Lens' DescribeSnapshots (Maybe Text)
- dsMaxRecords :: Lens' DescribeSnapshots (Maybe Int)
- dsSnapshotName :: Lens' DescribeSnapshots (Maybe Text)
- dsShowNodeGroupConfig :: Lens' DescribeSnapshots (Maybe Bool)
- dsReplicationGroupId :: Lens' DescribeSnapshots (Maybe Text)
- dsSnapshotSource :: Lens' DescribeSnapshots (Maybe Text)
- describeSnapshotsResponse :: Int -> DescribeSnapshotsResponse
- data DescribeSnapshotsResponse
- dssrsSnapshots :: Lens' DescribeSnapshotsResponse [Snapshot]
- dssrsMarker :: Lens' DescribeSnapshotsResponse (Maybe Text)
- dssrsResponseStatus :: Lens' DescribeSnapshotsResponse Int
Creating a Request
describeSnapshots :: DescribeSnapshots Source #
Creates a value of DescribeSnapshots
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dsCacheClusterId
- A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cache cluster are described.dsMarker
- An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified byMaxRecords
.dsMaxRecords
- The maximum number of records to include in the response. If more records exist than the specifiedMaxRecords
value, a marker is included in the response so that the remaining results can be retrieved. Default: 50 Constraints: minimum 20; maximum 50.dsSnapshotName
- A user-supplied name of the snapshot. If this parameter is specified, only this snapshot are described.dsShowNodeGroupConfig
- A Boolean value which if true, the node group (shard) configuration is included in the snapshot description.dsReplicationGroupId
- A user-supplied replication group identifier. If this parameter is specified, only snapshots associated with that specific replication group are described.dsSnapshotSource
- If set tosystem
, the output shows snapshots that were automatically created by ElastiCache. If set touser
the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots.
data DescribeSnapshots Source #
Represents the input of a DescribeSnapshotsMessage
operation.
See: describeSnapshots
smart constructor.
Request Lenses
dsCacheClusterId :: Lens' DescribeSnapshots (Maybe Text) Source #
A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cache cluster are described.
dsMarker :: Lens' DescribeSnapshots (Maybe Text) Source #
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords
.
dsMaxRecords :: Lens' DescribeSnapshots (Maybe Int) Source #
The maximum number of records to include in the response. If more records exist than the specified MaxRecords
value, a marker is included in the response so that the remaining results can be retrieved. Default: 50 Constraints: minimum 20; maximum 50.
dsSnapshotName :: Lens' DescribeSnapshots (Maybe Text) Source #
A user-supplied name of the snapshot. If this parameter is specified, only this snapshot are described.
dsShowNodeGroupConfig :: Lens' DescribeSnapshots (Maybe Bool) Source #
A Boolean value which if true, the node group (shard) configuration is included in the snapshot description.
dsReplicationGroupId :: Lens' DescribeSnapshots (Maybe Text) Source #
A user-supplied replication group identifier. If this parameter is specified, only snapshots associated with that specific replication group are described.
dsSnapshotSource :: Lens' DescribeSnapshots (Maybe Text) Source #
If set to system
, the output shows snapshots that were automatically created by ElastiCache. If set to user
the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots.
Destructuring the Response
describeSnapshotsResponse Source #
Creates a value of DescribeSnapshotsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dssrsSnapshots
- A list of snapshots. Each item in the list contains detailed information about one snapshot.dssrsMarker
- An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified byMaxRecords
.dssrsResponseStatus
- -- | The response status code.
data DescribeSnapshotsResponse Source #
Represents the output of a DescribeSnapshots
operation.
See: describeSnapshotsResponse
smart constructor.
Response Lenses
dssrsSnapshots :: Lens' DescribeSnapshotsResponse [Snapshot] Source #
A list of snapshots. Each item in the list contains detailed information about one snapshot.
dssrsMarker :: Lens' DescribeSnapshotsResponse (Maybe Text) Source #
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords
.
dssrsResponseStatus :: Lens' DescribeSnapshotsResponse Int Source #
- - | The response status code.