Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns information about the table, including the table's name and current status, the keyspace name, configuration settings, and metadata.
To read table metadata using GetTable
, Select
action permissions for
the table and system tables are required to complete the operation.
Synopsis
- data GetTable = GetTable' {
- keyspaceName :: Text
- tableName :: Text
- newGetTable :: Text -> Text -> GetTable
- getTable_keyspaceName :: Lens' GetTable Text
- getTable_tableName :: Lens' GetTable Text
- data GetTableResponse = GetTableResponse' {
- capacitySpecification :: Maybe CapacitySpecificationSummary
- comment :: Maybe Comment
- creationTimestamp :: Maybe POSIX
- defaultTimeToLive :: Maybe Natural
- encryptionSpecification :: Maybe EncryptionSpecification
- pointInTimeRecovery :: Maybe PointInTimeRecoverySummary
- schemaDefinition :: Maybe SchemaDefinition
- status :: Maybe TableStatus
- ttl :: Maybe TimeToLive
- httpStatus :: Int
- keyspaceName :: Text
- tableName :: Text
- resourceArn :: Text
- newGetTableResponse :: Int -> Text -> Text -> Text -> GetTableResponse
- getTableResponse_capacitySpecification :: Lens' GetTableResponse (Maybe CapacitySpecificationSummary)
- getTableResponse_comment :: Lens' GetTableResponse (Maybe Comment)
- getTableResponse_creationTimestamp :: Lens' GetTableResponse (Maybe UTCTime)
- getTableResponse_defaultTimeToLive :: Lens' GetTableResponse (Maybe Natural)
- getTableResponse_encryptionSpecification :: Lens' GetTableResponse (Maybe EncryptionSpecification)
- getTableResponse_pointInTimeRecovery :: Lens' GetTableResponse (Maybe PointInTimeRecoverySummary)
- getTableResponse_schemaDefinition :: Lens' GetTableResponse (Maybe SchemaDefinition)
- getTableResponse_status :: Lens' GetTableResponse (Maybe TableStatus)
- getTableResponse_ttl :: Lens' GetTableResponse (Maybe TimeToLive)
- getTableResponse_httpStatus :: Lens' GetTableResponse Int
- getTableResponse_keyspaceName :: Lens' GetTableResponse Text
- getTableResponse_tableName :: Lens' GetTableResponse Text
- getTableResponse_resourceArn :: Lens' GetTableResponse Text
Creating a Request
See: newGetTable
smart constructor.
GetTable' | |
|
Instances
Create a value of GetTable
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:
GetTable
, getTable_keyspaceName
- The name of the keyspace that the table is stored in.
GetTable
, getTable_tableName
- The name of the table.
Request Lenses
getTable_keyspaceName :: Lens' GetTable Text Source #
The name of the keyspace that the table is stored in.
Destructuring the Response
data GetTableResponse Source #
See: newGetTableResponse
smart constructor.
GetTableResponse' | |
|
Instances
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> GetTableResponse |
Create a value of GetTableResponse
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:capacitySpecification:GetTableResponse'
, getTableResponse_capacitySpecification
- The read/write throughput capacity mode for a table. The options are:
• throughputMode:PAY_PER_REQUEST
• throughputMode:PROVISIONED
$sel:comment:GetTableResponse'
, getTableResponse_comment
- The the description of the specified table.
$sel:creationTimestamp:GetTableResponse'
, getTableResponse_creationTimestamp
- The creation timestamp of the specified table.
$sel:defaultTimeToLive:GetTableResponse'
, getTableResponse_defaultTimeToLive
- The default Time to Live settings of the specified table.
$sel:encryptionSpecification:GetTableResponse'
, getTableResponse_encryptionSpecification
- The encryption settings of the specified table.
$sel:pointInTimeRecovery:GetTableResponse'
, getTableResponse_pointInTimeRecovery
- The point-in-time recovery status of the specified table.
$sel:schemaDefinition:GetTableResponse'
, getTableResponse_schemaDefinition
- The schema definition of the specified table.
GetTableResponse
, getTableResponse_status
- The current status of the specified table.
$sel:ttl:GetTableResponse'
, getTableResponse_ttl
- The custom Time to Live settings of the specified table.
$sel:httpStatus:GetTableResponse'
, getTableResponse_httpStatus
- The response's http status code.
GetTable
, getTableResponse_keyspaceName
- The name of the keyspace that the specified table is stored in.
GetTable
, getTableResponse_tableName
- The name of the specified table.
GetTableResponse
, getTableResponse_resourceArn
- The Amazon Resource Name (ARN) of the specified table.
Response Lenses
getTableResponse_capacitySpecification :: Lens' GetTableResponse (Maybe CapacitySpecificationSummary) Source #
The read/write throughput capacity mode for a table. The options are:
• throughputMode:PAY_PER_REQUEST
• throughputMode:PROVISIONED
getTableResponse_comment :: Lens' GetTableResponse (Maybe Comment) Source #
The the description of the specified table.
getTableResponse_creationTimestamp :: Lens' GetTableResponse (Maybe UTCTime) Source #
The creation timestamp of the specified table.
getTableResponse_defaultTimeToLive :: Lens' GetTableResponse (Maybe Natural) Source #
The default Time to Live settings of the specified table.
getTableResponse_encryptionSpecification :: Lens' GetTableResponse (Maybe EncryptionSpecification) Source #
The encryption settings of the specified table.
getTableResponse_pointInTimeRecovery :: Lens' GetTableResponse (Maybe PointInTimeRecoverySummary) Source #
The point-in-time recovery status of the specified table.
getTableResponse_schemaDefinition :: Lens' GetTableResponse (Maybe SchemaDefinition) Source #
The schema definition of the specified table.
getTableResponse_status :: Lens' GetTableResponse (Maybe TableStatus) Source #
The current status of the specified table.
getTableResponse_ttl :: Lens' GetTableResponse (Maybe TimeToLive) Source #
The custom Time to Live settings of the specified table.
getTableResponse_httpStatus :: Lens' GetTableResponse Int Source #
The response's http status code.
getTableResponse_keyspaceName :: Lens' GetTableResponse Text Source #
The name of the keyspace that the specified table is stored in.
getTableResponse_tableName :: Lens' GetTableResponse Text Source #
The name of the specified table.
getTableResponse_resourceArn :: Lens' GetTableResponse Text Source #
The Amazon Resource Name (ARN) of the specified table.