amazonka-elasticache-1.4.5: Amazon ElastiCache SDK.

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

Network.AWS.ElastiCache.CreateSnapshot

Contents

Description

Creates a copy of an entire cache cluster or replication group at a specific moment in time.

Synopsis

Creating a Request

createSnapshot Source #

Creates a value of CreateSnapshot with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • csCacheClusterId - The identifier of an existing cache cluster. The snapshot is created from this cache cluster.
  • csReplicationGroupId - The identifier of an existing replication group. The snapshot is created from this replication group.
  • csSnapshotName - A name for the snapshot being created.

data CreateSnapshot Source #

Represents the input of a CreateSnapshot operation.

See: createSnapshot smart constructor.

Instances

Eq CreateSnapshot Source # 
Data CreateSnapshot Source # 

Methods

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

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

toConstr :: CreateSnapshot -> Constr #

dataTypeOf :: CreateSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSnapshot Source # 
Show CreateSnapshot Source # 
Generic CreateSnapshot Source # 

Associated Types

type Rep CreateSnapshot :: * -> * #

Hashable CreateSnapshot Source # 
NFData CreateSnapshot Source # 

Methods

rnf :: CreateSnapshot -> () #

AWSRequest CreateSnapshot Source # 
ToPath CreateSnapshot Source # 
ToHeaders CreateSnapshot Source # 
ToQuery CreateSnapshot Source # 
type Rep CreateSnapshot Source # 
type Rep CreateSnapshot = D1 (MetaData "CreateSnapshot" "Network.AWS.ElastiCache.CreateSnapshot" "amazonka-elasticache-1.4.5-DCZ22LKkzpiJjmUycYjUf" False) (C1 (MetaCons "CreateSnapshot'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csCacheClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_csReplicationGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_csSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateSnapshot Source # 

Request Lenses

csCacheClusterId :: Lens' CreateSnapshot (Maybe Text) Source #

The identifier of an existing cache cluster. The snapshot is created from this cache cluster.

csReplicationGroupId :: Lens' CreateSnapshot (Maybe Text) Source #

The identifier of an existing replication group. The snapshot is created from this replication group.

csSnapshotName :: Lens' CreateSnapshot Text Source #

A name for the snapshot being created.

Destructuring the Response

createSnapshotResponse Source #

Creates a value of CreateSnapshotResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateSnapshotResponse Source #

See: createSnapshotResponse smart constructor.

Instances

Eq CreateSnapshotResponse Source # 
Data CreateSnapshotResponse Source # 

Methods

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

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

toConstr :: CreateSnapshotResponse -> Constr #

dataTypeOf :: CreateSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSnapshotResponse Source # 
Show CreateSnapshotResponse Source # 
Generic CreateSnapshotResponse Source # 
NFData CreateSnapshotResponse Source # 

Methods

rnf :: CreateSnapshotResponse -> () #

type Rep CreateSnapshotResponse Source # 
type Rep CreateSnapshotResponse = D1 (MetaData "CreateSnapshotResponse" "Network.AWS.ElastiCache.CreateSnapshot" "amazonka-elasticache-1.4.5-DCZ22LKkzpiJjmUycYjUf" False) (C1 (MetaCons "CreateSnapshotResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_crersSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot))) (S1 (MetaSel (Just Symbol "_crersResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses