amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glue.UpdateTable

Description

Updates a metadata table in the Data Catalog.

Synopsis

Creating a Request

data UpdateTable Source #

See: newUpdateTable smart constructor.

Constructors

UpdateTable' 

Fields

  • catalogId :: Maybe Text

    The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.

  • skipArchive :: Maybe Bool

    By default, UpdateTable always creates an archived version of the table before updating it. However, if skipArchive is set to true, UpdateTable does not create the archived version.

  • transactionId :: Maybe Text

    The transaction ID at which to update the table contents.

  • versionId :: Maybe Text

    The version ID at which to update the table contents.

  • databaseName :: Text

    The name of the catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.

  • tableInput :: TableInput

    An updated TableInput object to define the metadata table in the catalog.

Instances

Instances details
ToJSON UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

ToHeaders UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Methods

toHeaders :: UpdateTable -> [Header] #

ToPath UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

ToQuery UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

AWSRequest UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Associated Types

type AWSResponse UpdateTable #

Generic UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Associated Types

type Rep UpdateTable :: Type -> Type #

Read UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Show UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

NFData UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Methods

rnf :: UpdateTable -> () #

Eq UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Hashable UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

type AWSResponse UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

type Rep UpdateTable Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

type Rep UpdateTable = D1 ('MetaData "UpdateTable" "Amazonka.Glue.UpdateTable" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "UpdateTable'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "skipArchive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tableInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableInput)))))

newUpdateTable Source #

Create a value of UpdateTable with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateTable, updateTable_catalogId - The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.

$sel:skipArchive:UpdateTable', updateTable_skipArchive - By default, UpdateTable always creates an archived version of the table before updating it. However, if skipArchive is set to true, UpdateTable does not create the archived version.

$sel:transactionId:UpdateTable', updateTable_transactionId - The transaction ID at which to update the table contents.

UpdateTable, updateTable_versionId - The version ID at which to update the table contents.

UpdateTable, updateTable_databaseName - The name of the catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.

$sel:tableInput:UpdateTable', updateTable_tableInput - An updated TableInput object to define the metadata table in the catalog.

Request Lenses

updateTable_catalogId :: Lens' UpdateTable (Maybe Text) Source #

The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.

updateTable_skipArchive :: Lens' UpdateTable (Maybe Bool) Source #

By default, UpdateTable always creates an archived version of the table before updating it. However, if skipArchive is set to true, UpdateTable does not create the archived version.

updateTable_transactionId :: Lens' UpdateTable (Maybe Text) Source #

The transaction ID at which to update the table contents.

updateTable_versionId :: Lens' UpdateTable (Maybe Text) Source #

The version ID at which to update the table contents.

updateTable_databaseName :: Lens' UpdateTable Text Source #

The name of the catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.

updateTable_tableInput :: Lens' UpdateTable TableInput Source #

An updated TableInput object to define the metadata table in the catalog.

Destructuring the Response

data UpdateTableResponse Source #

See: newUpdateTableResponse smart constructor.

Constructors

UpdateTableResponse' 

Fields

Instances

Instances details
Generic UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Associated Types

type Rep UpdateTableResponse :: Type -> Type #

Read UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Show UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

NFData UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

Methods

rnf :: UpdateTableResponse -> () #

Eq UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

type Rep UpdateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateTable

type Rep UpdateTableResponse = D1 ('MetaData "UpdateTableResponse" "Amazonka.Glue.UpdateTable" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "UpdateTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateTableResponse Source #

Create a value of UpdateTableResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:UpdateTableResponse', updateTableResponse_httpStatus - The response's http status code.

Response Lenses