amazonka-redshift-1.6.1: Amazon Redshift 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.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 Source #

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 Source #

See: copyClusterSnapshot smart constructor.

Instances
Eq CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Data CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.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 Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Show CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Generic CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Associated Types

type Rep CopyClusterSnapshot :: Type -> Type #

Hashable CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

AWSRequest CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Associated Types

type Rs CopyClusterSnapshot :: Type #

ToHeaders CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

ToPath CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

ToQuery CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

NFData CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Methods

rnf :: CopyClusterSnapshot -> () #

type Rep CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

type Rep CopyClusterSnapshot = D1 (MetaData "CopyClusterSnapshot" "Network.AWS.Redshift.CopyClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "CopyClusterSnapshot'" PrefixI True) (S1 (MetaSel (Just "_ccsSourceSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccsSourceSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccsTargetSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CopyClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Request Lenses

ccsSourceSnapshotClusterIdentifier :: Lens' CopyClusterSnapshot (Maybe Text) Source #

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 Source #

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

ccsTargetSnapshotIdentifier :: Lens' CopyClusterSnapshot Text Source #

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 Source #

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 Source #

See: copyClusterSnapshotResponse smart constructor.

Instances
Eq CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Data CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

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 Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Show CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Generic CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

Associated Types

type Rep CopyClusterSnapshotResponse :: Type -> Type #

NFData CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

type Rep CopyClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.CopyClusterSnapshot

type Rep CopyClusterSnapshotResponse = D1 (MetaData "CopyClusterSnapshotResponse" "Network.AWS.Redshift.CopyClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "CopyClusterSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just "_ccsrsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 (MetaSel (Just "_ccsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses