amazonka-dynamodb-2.0: Amazon DynamoDB 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.DynamoDB.DescribeTable

Description

Returns information about the table, including the current status of the table, when it was created, the primary key schema, and any indexes on the table.

If you issue a DescribeTable request immediately after a CreateTable request, DynamoDB might return a ResourceNotFoundException. This is because DescribeTable uses an eventually consistent query, and the metadata for your table might not be available at that moment. Wait for a few seconds, and then try the DescribeTable request again.

Synopsis

Creating a Request

data DescribeTable Source #

Represents the input of a DescribeTable operation.

See: newDescribeTable smart constructor.

Constructors

DescribeTable' 

Fields

Instances

Instances details
ToJSON DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

ToHeaders DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

ToPath DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

ToQuery DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

AWSRequest DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Associated Types

type AWSResponse DescribeTable #

Generic DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Associated Types

type Rep DescribeTable :: Type -> Type #

Read DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Show DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

NFData DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Methods

rnf :: DescribeTable -> () #

Eq DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Hashable DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

type AWSResponse DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

type Rep DescribeTable Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

type Rep DescribeTable = D1 ('MetaData "DescribeTable" "Amazonka.DynamoDB.DescribeTable" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "DescribeTable'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeTable Source #

Create a value of DescribeTable 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:

DescribeTable, describeTable_tableName - The name of the table to describe.

Request Lenses

describeTable_tableName :: Lens' DescribeTable Text Source #

The name of the table to describe.

Destructuring the Response

data DescribeTableResponse Source #

Represents the output of a DescribeTable operation.

See: newDescribeTableResponse smart constructor.

Constructors

DescribeTableResponse' 

Fields

Instances

Instances details
Generic DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Associated Types

type Rep DescribeTableResponse :: Type -> Type #

Read DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Show DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

NFData DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

Methods

rnf :: DescribeTableResponse -> () #

Eq DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

type Rep DescribeTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.DescribeTable

type Rep DescribeTableResponse = D1 ('MetaData "DescribeTableResponse" "Amazonka.DynamoDB.DescribeTable" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "DescribeTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "table") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableDescription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeTableResponse Source #

Create a value of DescribeTableResponse 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:

DescribeTableResponse, describeTableResponse_table - The properties of the table.

$sel:httpStatus:DescribeTableResponse', describeTableResponse_httpStatus - The response's http status code.

Response Lenses