amazonka-redshift-1.4.5: Amazon Redshift 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.Redshift.CopyClusterSnapshot

Contents

Description

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated snapshot for a longer period, you can make a manual copy of the snapshot. Manual snapshots are retained until you delete them.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .

Synopsis

Creating a Request

copyClusterSnapshot #

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

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

  • ccsSourceSnapshotClusterIdentifier - The identifier of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name. Constraints: * Must be the identifier for a valid cluster.
  • ccsSourceSnapshotIdentifier - The identifier for the source snapshot. Constraints: * Must be the identifier for a valid automated snapshot whose state is available .
  • ccsTargetSnapshotIdentifier - The identifier given to the new manual snapshot. Constraints: * Cannot be null, empty, or blank. * Must contain from 1 to 255 alphanumeric characters or hyphens. * First character must be a letter. * Cannot end with a hyphen or contain two consecutive hyphens. * Must be unique for the AWS account that is making the request.

data CopyClusterSnapshot #

See: copyClusterSnapshot smart constructor.

Instances

Eq CopyClusterSnapshot # 
Data CopyClusterSnapshot # 

Methods

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

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

toConstr :: CopyClusterSnapshot -> Constr #

dataTypeOf :: CopyClusterSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CopyClusterSnapshot # 
Show CopyClusterSnapshot # 
Generic CopyClusterSnapshot # 
Hashable CopyClusterSnapshot # 
NFData CopyClusterSnapshot # 

Methods

rnf :: CopyClusterSnapshot -> () #

AWSRequest CopyClusterSnapshot # 
ToQuery CopyClusterSnapshot # 
ToPath CopyClusterSnapshot # 
ToHeaders CopyClusterSnapshot # 
type Rep CopyClusterSnapshot # 
type Rep CopyClusterSnapshot = D1 (MetaData "CopyClusterSnapshot" "Network.AWS.Redshift.CopyClusterSnapshot" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "CopyClusterSnapshot'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccsSourceSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ccsSourceSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ccsTargetSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CopyClusterSnapshot # 

Request Lenses

ccsSourceSnapshotClusterIdentifier :: Lens' CopyClusterSnapshot (Maybe Text) #

The identifier of the cluster the source snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name. Constraints: * Must be the identifier for a valid cluster.

ccsSourceSnapshotIdentifier :: Lens' CopyClusterSnapshot Text #

The identifier for the source snapshot. Constraints: * Must be the identifier for a valid automated snapshot whose state is available .

ccsTargetSnapshotIdentifier :: Lens' CopyClusterSnapshot Text #

The identifier given to the new manual snapshot. Constraints: * Cannot be null, empty, or blank. * Must contain from 1 to 255 alphanumeric characters or hyphens. * First character must be a letter. * Cannot end with a hyphen or contain two consecutive hyphens. * Must be unique for the AWS account that is making the request.

Destructuring the Response

copyClusterSnapshotResponse #

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

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

data CopyClusterSnapshotResponse #

See: copyClusterSnapshotResponse smart constructor.

Instances

Eq CopyClusterSnapshotResponse # 
Data CopyClusterSnapshotResponse # 

Methods

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

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

toConstr :: CopyClusterSnapshotResponse -> Constr #

dataTypeOf :: CopyClusterSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CopyClusterSnapshotResponse # 
Show CopyClusterSnapshotResponse # 
Generic CopyClusterSnapshotResponse # 
NFData CopyClusterSnapshotResponse # 
type Rep CopyClusterSnapshotResponse # 
type Rep CopyClusterSnapshotResponse = D1 (MetaData "CopyClusterSnapshotResponse" "Network.AWS.Redshift.CopyClusterSnapshot" "amazonka-redshift-1.4.5-5ygenDSSyjc71mxYPXWxi1" False) (C1 (MetaCons "CopyClusterSnapshotResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccsrsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot))) (S1 (MetaSel (Just Symbol "_ccsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses