amazonka-elasticache-1.6.1: Amazon ElastiCache SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElastiCache.DescribeSnapshots

Contents

Description

Returns information about 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.

Synopsis

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 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 by MaxRecords .
  • dsMaxRecords - 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 - 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 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.

data DescribeSnapshots Source #

Represents the input of a DescribeSnapshotsMessage operation.

See: describeSnapshots smart constructor.

Instances
Eq DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Data DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSnapshots -> c DescribeSnapshots #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSnapshots #

toConstr :: DescribeSnapshots -> Constr #

dataTypeOf :: DescribeSnapshots -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSnapshots) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSnapshots) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSnapshots -> DescribeSnapshots #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshots -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshots -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSnapshots -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSnapshots -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSnapshots -> m DescribeSnapshots #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshots -> m DescribeSnapshots #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshots -> m DescribeSnapshots #

Read DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Show DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Generic DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Associated Types

type Rep DescribeSnapshots :: Type -> Type #

Hashable DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

AWSPager DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

AWSRequest DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Associated Types

type Rs DescribeSnapshots :: Type #

ToHeaders DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

ToPath DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

ToQuery DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

NFData DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Methods

rnf :: DescribeSnapshots -> () #

type Rep DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

type Rep DescribeSnapshots = D1 (MetaData "DescribeSnapshots" "Network.AWS.ElastiCache.DescribeSnapshots" "amazonka-elasticache-1.6.1-7qPjCRJV7Sp8jKm0QWBmxX" False) (C1 (MetaCons "DescribeSnapshots'" PrefixI True) ((S1 (MetaSel (Just "_dsCacheClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsMaxRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 (MetaSel (Just "_dsSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsShowNodeGroupConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_dsReplicationGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dsSnapshotSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs DescribeSnapshots Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Request Lenses

dsCacheClusterId :: Lens' DescribeSnapshots (Maybe Text) Source #

A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific 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 by MaxRecords .
  • dssrsResponseStatus - -- | The response status code.

data DescribeSnapshotsResponse Source #

Represents the output of a DescribeSnapshots operation.

See: describeSnapshotsResponse smart constructor.

Instances
Eq DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Data DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeSnapshotsResponse -> c DescribeSnapshotsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeSnapshotsResponse #

toConstr :: DescribeSnapshotsResponse -> Constr #

dataTypeOf :: DescribeSnapshotsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeSnapshotsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeSnapshotsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeSnapshotsResponse -> DescribeSnapshotsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeSnapshotsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeSnapshotsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeSnapshotsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeSnapshotsResponse -> m DescribeSnapshotsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotsResponse -> m DescribeSnapshotsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeSnapshotsResponse -> m DescribeSnapshotsResponse #

Read DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Show DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Generic DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

Associated Types

type Rep DescribeSnapshotsResponse :: Type -> Type #

NFData DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

type Rep DescribeSnapshotsResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DescribeSnapshots

type Rep DescribeSnapshotsResponse = D1 (MetaData "DescribeSnapshotsResponse" "Network.AWS.ElastiCache.DescribeSnapshots" "amazonka-elasticache-1.6.1-7qPjCRJV7Sp8jKm0QWBmxX" False) (C1 (MetaCons "DescribeSnapshotsResponse'" PrefixI True) (S1 (MetaSel (Just "_dssrsSnapshots") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Snapshot])) :*: (S1 (MetaSel (Just "_dssrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dssrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

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 .