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 |
The CreateTable operation adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be at least unique within each Region if they are in the same database. You may have identical table names in the same Region if the tables are in separate databases. While creating the table, you must specify the table name, database name, and the retention properties. Service quotas apply. See code sample for details.
Synopsis
- data CreateTable = CreateTable' {}
- newCreateTable :: Text -> Text -> CreateTable
- createTable_magneticStoreWriteProperties :: Lens' CreateTable (Maybe MagneticStoreWriteProperties)
- createTable_retentionProperties :: Lens' CreateTable (Maybe RetentionProperties)
- createTable_tags :: Lens' CreateTable (Maybe [Tag])
- createTable_databaseName :: Lens' CreateTable Text
- createTable_tableName :: Lens' CreateTable Text
- data CreateTableResponse = CreateTableResponse' {
- table :: Maybe Table
- httpStatus :: Int
- newCreateTableResponse :: Int -> CreateTableResponse
- createTableResponse_table :: Lens' CreateTableResponse (Maybe Table)
- createTableResponse_httpStatus :: Lens' CreateTableResponse Int
Creating a Request
data CreateTable Source #
See: newCreateTable
smart constructor.
CreateTable' | |
|
Instances
Create a value of CreateTable
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:
CreateTable
, createTable_magneticStoreWriteProperties
- Contains properties to set on the table when enabling magnetic store
writes.
CreateTable
, createTable_retentionProperties
- The duration for which your time series data must be stored in the
memory store and the magnetic store.
$sel:tags:CreateTable'
, createTable_tags
- A list of key-value pairs to label the table.
CreateTable
, createTable_databaseName
- The name of the Timestream database.
CreateTable
, createTable_tableName
- The name of the Timestream table.
Request Lenses
createTable_magneticStoreWriteProperties :: Lens' CreateTable (Maybe MagneticStoreWriteProperties) Source #
Contains properties to set on the table when enabling magnetic store writes.
createTable_retentionProperties :: Lens' CreateTable (Maybe RetentionProperties) Source #
The duration for which your time series data must be stored in the memory store and the magnetic store.
createTable_tags :: Lens' CreateTable (Maybe [Tag]) Source #
A list of key-value pairs to label the table.
createTable_databaseName :: Lens' CreateTable Text Source #
The name of the Timestream database.
createTable_tableName :: Lens' CreateTable Text Source #
The name of the Timestream table.
Destructuring the Response
data CreateTableResponse Source #
See: newCreateTableResponse
smart constructor.
CreateTableResponse' | |
|
Instances
newCreateTableResponse Source #
Create a value of CreateTableResponse
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:CreateTableResponse'
, createTableResponse_table
- The newly created Timestream table.
$sel:httpStatus:CreateTableResponse'
, createTableResponse_httpStatus
- The response's http status code.
Response Lenses
createTableResponse_table :: Lens' CreateTableResponse (Maybe Table) Source #
The newly created Timestream table.
createTableResponse_httpStatus :: Lens' CreateTableResponse Int Source #
The response's http status code.