Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DescribeTable = DescribeTable' {}
- newDescribeTable :: Text -> DescribeTable
- describeTable_tableName :: Lens' DescribeTable Text
- data DescribeTableResponse = DescribeTableResponse' {}
- newDescribeTableResponse :: Int -> DescribeTableResponse
- describeTableResponse_table :: Lens' DescribeTableResponse (Maybe TableDescription)
- describeTableResponse_httpStatus :: Lens' DescribeTableResponse Int
Creating a Request
data DescribeTable Source #
Represents the input of a DescribeTable
operation.
See: newDescribeTable
smart constructor.
Instances
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:
$sel:tableName: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.
DescribeTableResponse' | |
|
Instances
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:
$sel:table:DescribeTableResponse'
, describeTableResponse_table
- The properties of the table.
$sel:httpStatus:DescribeTableResponse'
, describeTableResponse_httpStatus
- The response's http status code.
Response Lenses
describeTableResponse_table :: Lens' DescribeTableResponse (Maybe TableDescription) Source #
The properties of the table.
describeTableResponse_httpStatus :: Lens' DescribeTableResponse Int Source #
The response's http status code.