amazonka-glue-1.6.0: Amazon Glue 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.Glue.CreateTable

Contents

Description

Creates a new table definition in the Data Catalog.

Synopsis

Creating a Request

createTable Source #

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

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

  • ctCatalogId - The ID of the Data Catalog in which to create the Table . If none is supplied, the AWS account ID is used by default.
  • ctDatabaseName - The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
  • ctTableInput - The TableInput object that defines the metadata table to create in the catalog.

data CreateTable Source #

See: createTable smart constructor.

Instances

Eq CreateTable Source # 
Data CreateTable Source # 

Methods

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

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

toConstr :: CreateTable -> Constr #

dataTypeOf :: CreateTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTable Source # 
Show CreateTable Source # 
Generic CreateTable Source # 

Associated Types

type Rep CreateTable :: * -> * #

Hashable CreateTable Source # 
ToJSON CreateTable Source # 
NFData CreateTable Source # 

Methods

rnf :: CreateTable -> () #

AWSRequest CreateTable Source # 
ToHeaders CreateTable Source # 

Methods

toHeaders :: CreateTable -> [Header] #

ToPath CreateTable Source # 
ToQuery CreateTable Source # 
type Rep CreateTable Source # 
type Rep CreateTable = D1 * (MetaData "CreateTable" "Network.AWS.Glue.CreateTable" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "CreateTable'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ctTableInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * TableInput)))))
type Rs CreateTable Source # 

Request Lenses

ctCatalogId :: Lens' CreateTable (Maybe Text) Source #

The ID of the Data Catalog in which to create the Table . If none is supplied, the AWS account ID is used by default.

ctDatabaseName :: Lens' CreateTable Text Source #

The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.

ctTableInput :: Lens' CreateTable TableInput Source #

The TableInput object that defines the metadata table to create in the catalog.

Destructuring the Response

createTableResponse Source #

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

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

data CreateTableResponse Source #

See: createTableResponse smart constructor.

Instances

Eq CreateTableResponse Source # 
Data CreateTableResponse Source # 

Methods

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

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

toConstr :: CreateTableResponse -> Constr #

dataTypeOf :: CreateTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTableResponse Source # 
Show CreateTableResponse Source # 
Generic CreateTableResponse Source # 
NFData CreateTableResponse Source # 

Methods

rnf :: CreateTableResponse -> () #

type Rep CreateTableResponse Source # 
type Rep CreateTableResponse = D1 * (MetaData "CreateTableResponse" "Network.AWS.Glue.CreateTable" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" True) (C1 * (MetaCons "CreateTableResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cttrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

cttrsResponseStatus :: Lens' CreateTableResponse Int Source #

  • - | The response status code.