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.RestoreTableFromClusterSnapshot

Contents

Description

Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.

You cannot use RestoreTableFromClusterSnapshot to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot . When you have renamed your original table, then you can pass the original name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot . This way, you can replace the original table with the table created from the snapshot.

Synopsis

Creating a Request

restoreTableFromClusterSnapshot Source #

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

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

  • rtfcsTargetSchemaName - The name of the schema to restore the table to.
  • rtfcsTargetDatabaseName - The name of the database to restore the table to.
  • rtfcsSourceSchemaName - The name of the source schema that contains the table to restore from. If you do not specify a SourceSchemaName value, the default is public .
  • rtfcsClusterIdentifier - The identifier of the Amazon Redshift cluster to restore the table to.
  • rtfcsSnapshotIdentifier - The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier parameter.
  • rtfcsSourceDatabaseName - The name of the source database that contains the table to restore from.
  • rtfcsSourceTableName - The name of the source table to restore from.
  • rtfcsNewTableName - The name of the table to create as a result of the current request.

data RestoreTableFromClusterSnapshot Source #

See: restoreTableFromClusterSnapshot smart constructor.

Instances
Eq RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Data RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Methods

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

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

toConstr :: RestoreTableFromClusterSnapshot -> Constr #

dataTypeOf :: RestoreTableFromClusterSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Show RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Generic RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Associated Types

type Rep RestoreTableFromClusterSnapshot :: Type -> Type #

Hashable RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

AWSRequest RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Associated Types

type Rs RestoreTableFromClusterSnapshot :: Type #

ToHeaders RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

ToPath RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

ToQuery RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

NFData RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

type Rep RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

type Rep RestoreTableFromClusterSnapshot = D1 (MetaData "RestoreTableFromClusterSnapshot" "Network.AWS.Redshift.RestoreTableFromClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "RestoreTableFromClusterSnapshot'" PrefixI True) (((S1 (MetaSel (Just "_rtfcsTargetSchemaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rtfcsTargetDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_rtfcsSourceSchemaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rtfcsClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_rtfcsSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rtfcsSourceDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_rtfcsSourceTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rtfcsNewTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs RestoreTableFromClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Request Lenses

rtfcsTargetSchemaName :: Lens' RestoreTableFromClusterSnapshot (Maybe Text) Source #

The name of the schema to restore the table to.

rtfcsTargetDatabaseName :: Lens' RestoreTableFromClusterSnapshot (Maybe Text) Source #

The name of the database to restore the table to.

rtfcsSourceSchemaName :: Lens' RestoreTableFromClusterSnapshot (Maybe Text) Source #

The name of the source schema that contains the table to restore from. If you do not specify a SourceSchemaName value, the default is public .

rtfcsClusterIdentifier :: Lens' RestoreTableFromClusterSnapshot Text Source #

The identifier of the Amazon Redshift cluster to restore the table to.

rtfcsSnapshotIdentifier :: Lens' RestoreTableFromClusterSnapshot Text Source #

The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier parameter.

rtfcsSourceDatabaseName :: Lens' RestoreTableFromClusterSnapshot Text Source #

The name of the source database that contains the table to restore from.

rtfcsSourceTableName :: Lens' RestoreTableFromClusterSnapshot Text Source #

The name of the source table to restore from.

rtfcsNewTableName :: Lens' RestoreTableFromClusterSnapshot Text Source #

The name of the table to create as a result of the current request.

Destructuring the Response

restoreTableFromClusterSnapshotResponse Source #

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

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

data RestoreTableFromClusterSnapshotResponse Source #

Instances
Eq RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Data RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Methods

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

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

toConstr :: RestoreTableFromClusterSnapshotResponse -> Constr #

dataTypeOf :: RestoreTableFromClusterSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Show RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

Generic RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

NFData RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

type Rep RestoreTableFromClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.RestoreTableFromClusterSnapshot

type Rep RestoreTableFromClusterSnapshotResponse = D1 (MetaData "RestoreTableFromClusterSnapshotResponse" "Network.AWS.Redshift.RestoreTableFromClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "RestoreTableFromClusterSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just "_rtfcsrsTableRestoreStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TableRestoreStatus)) :*: S1 (MetaSel (Just "_rtfcsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses