{ "version":"2.0", "metadata":{ "apiVersion":"2018-11-01", "endpointPrefix":"ingest.timestream", "jsonVersion":"1.0", "protocol":"json", "serviceAbbreviation":"Timestream Write", "serviceFullName":"Amazon Timestream Write", "serviceId":"Timestream Write", "signatureVersion":"v4", "signingName":"timestream", "targetPrefix":"Timestream_20181101", "uid":"timestream-write-2018-11-01" }, "operations":{ "CreateBatchLoadTask":{ "name":"CreateBatchLoadTask", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateBatchLoadTaskRequest"}, "output":{"shape":"CreateBatchLoadTaskResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, {"shape":"ValidationException"}, {"shape":"ConflictException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Creates a new Timestream batch load task. A batch load task processes data from a CSV source in an S3 location and writes to a Timestream table. A mapping from source to target is defined in a batch load task. Errors and events are written to a report at an S3 location. For the report, if the KMS key is not specified, the report will be encrypted with an S3 managed key when `SSE_S3` is the option. Otherwise an error is thrown. For more information, see Amazon Web Services managed keys. Service quotas apply. For details, see code sample.

", "endpointdiscovery":{"required":true} }, "CreateDatabase":{ "name":"CreateDatabase", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateDatabaseRequest"}, "output":{"shape":"CreateDatabaseResponse"}, "errors":[ {"shape":"ConflictException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"InvalidEndpointException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys. Service quotas apply. For details, see code sample.

", "endpointdiscovery":{"required":true} }, "CreateTable":{ "name":"CreateTable", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateTableRequest"}, "output":{"shape":"CreateTableResponse"}, "errors":[ {"shape":"ConflictException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"InvalidEndpointException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

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 might 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.

", "endpointdiscovery":{"required":true} }, "DeleteDatabase":{ "name":"DeleteDatabase", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteDatabaseRequest"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Deletes a given Timestream database. This is an irreversible operation. After a database is deleted, the time-series data from its tables cannot be recovered.

All tables in the database must be deleted first, or a ValidationException error will be thrown.

Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.

See code sample for details.

", "endpointdiscovery":{"required":true} }, "DeleteTable":{ "name":"DeleteTable", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteTableRequest"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Deletes a given Timestream table. This is an irreversible operation. After a Timestream database table is deleted, the time-series data stored in the table cannot be recovered.

Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.

See code sample for details.

", "endpointdiscovery":{"required":true} }, "DescribeBatchLoadTask":{ "name":"DescribeBatchLoadTask", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeBatchLoadTaskRequest"}, "output":{"shape":"DescribeBatchLoadTaskResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Returns information about the batch load task, including configurations, mappings, progress, and other details. Service quotas apply. See code sample for details.

", "endpointdiscovery":{"required":true} }, "DescribeDatabase":{ "name":"DescribeDatabase", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeDatabaseRequest"}, "output":{"shape":"DescribeDatabaseResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Returns information about the database, including the database name, time that the database was created, and the total number of tables found within the database. Service quotas apply. See code sample for details.

", "endpointdiscovery":{"required":true} }, "DescribeEndpoints":{ "name":"DescribeEndpoints", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeEndpointsRequest"}, "output":{"shape":"DescribeEndpointsResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ThrottlingException"} ], "documentation":"

Returns a list of available endpoints to make Timestream API calls against. This API operation is available through both the Write and Query APIs.

Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, we don't recommend that you use this API operation unless:

- You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream

- Your application uses a programming language that does not yet have SDK support

- You require better control over the client-side implementation

For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.

", "endpointoperation":true }, "DescribeTable":{ "name":"DescribeTable", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeTableRequest"}, "output":{"shape":"DescribeTableResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Returns information about the table, including the table name, database name, retention duration of the memory store and the magnetic store. Service quotas apply. See code sample for details.

", "endpointdiscovery":{"required":true} }, "ListBatchLoadTasks":{ "name":"ListBatchLoadTasks", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListBatchLoadTasksRequest"}, "output":{"shape":"ListBatchLoadTasksResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Provides a list of batch load tasks, along with the name, status, when the task is resumable until, and other details. See code sample for details.

", "endpointdiscovery":{"required":true} }, "ListDatabases":{ "name":"ListDatabases", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListDatabasesRequest"}, "output":{"shape":"ListDatabasesResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Returns a list of your Timestream databases. Service quotas apply. See code sample for details.

", "endpointdiscovery":{"required":true} }, "ListTables":{ "name":"ListTables", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListTablesRequest"}, "output":{"shape":"ListTablesResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Provides a list of tables, along with the name, status, and retention properties of each table. See code sample for details.

", "endpointdiscovery":{"required":true} }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Lists all tags on a Timestream resource.

", "endpointdiscovery":{"required":true} }, "ResumeBatchLoadTask":{ "name":"ResumeBatchLoadTask", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ResumeBatchLoadTaskRequest"}, "output":{"shape":"ResumeBatchLoadTaskResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

", "endpointdiscovery":{"required":true} }, "TagResource":{ "name":"TagResource", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"TagResourceRequest"}, "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Associates a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.

", "endpointdiscovery":{"required":true} }, "UntagResource":{ "name":"UntagResource", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UntagResourceRequest"}, "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Removes the association of tags from a Timestream resource.

", "endpointdiscovery":{"required":true} }, "UpdateDatabase":{ "name":"UpdateDatabase", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateDatabaseRequest"}, "output":{"shape":"UpdateDatabaseResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Modifies the KMS key for an existing database. While updating the database, you must specify the database name and the identifier of the new KMS key to be used (`KmsKeyId`). If there are any concurrent `UpdateDatabase` requests, first writer wins.

See code sample for details.

", "endpointdiscovery":{"required":true} }, "UpdateTable":{ "name":"UpdateTable", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateTableRequest"}, "output":{"shape":"UpdateTableResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the change in retention duration takes effect immediately. For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not retrieve data from the magnetic store to populate the memory store.

See code sample for details.

", "endpointdiscovery":{"required":true} }, "WriteRecords":{ "name":"WriteRecords", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"WriteRecordsRequest"}, "output":{"shape":"WriteRecordsResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"}, {"shape":"AccessDeniedException"}, {"shape":"RejectedRecordsException"}, {"shape":"InvalidEndpointException"} ], "documentation":"

Enables you to write your time-series data into Timestream. You can specify a single data point or a batch of data points to be inserted into the system. Timestream offers you a flexible schema that auto detects the column names and data types for your Timestream tables based on the dimension names and data types of the data points you specify when invoking writes into the database.

Timestream supports eventual consistency read semantics. This means that when you query data immediately after writing a batch of data into Timestream, the query results might not reflect the results of a recently completed write operation. The results may also include some stale data. If you repeat the query request after a short time, the results should return the latest data. Service quotas apply.

See code sample for details.

Upserts

You can use the `Version` parameter in a `WriteRecords` request to update data points. Timestream tracks a version number with each record. `Version` defaults to `1` when it's not specified for the record in the request. Timestream updates an existing record’s measure value along with its `Version` when it receives a write request with a higher `Version` number for that record. When it receives an update request where the measure value is the same as that of the existing record, Timestream still updates `Version`, if it is greater than the existing value of `Version`. You can update a data point as many times as desired, as long as the value of `Version` continuously increases.

For example, suppose you write a new record without indicating `Version` in the request. Timestream stores this record, and set `Version` to `1`. Now, suppose you try to update this record with a `WriteRecords` request of the same record with a different measure value but, like before, do not provide `Version`. In this case, Timestream will reject this update with a `RejectedRecordsException` since the updated record’s version is not greater than the existing value of Version.

However, if you were to resend the update request with `Version` set to `2`, Timestream would then succeed in updating the record’s value, and the `Version` would be set to `2`. Next, suppose you sent a `WriteRecords` request with this same record and an identical measure value, but with `Version` set to `3`. In this case, Timestream would only update `Version` to `3`. Any further updates would need to send a version number greater than `3`, or the update requests would receive a `RejectedRecordsException`.

", "endpointdiscovery":{"required":true} } }, "shapes":{ "AccessDeniedException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

You are not authorized to perform this action.

", "exception":true }, "AmazonResourceName":{ "type":"string", "max":1011, "min":1 }, "BatchLoadDataFormat":{ "type":"string", "enum":["CSV"] }, "BatchLoadProgressReport":{ "type":"structure", "members":{ "RecordsProcessed":{ "shape":"Long", "documentation":"

" }, "RecordsIngested":{ "shape":"Long", "documentation":"

" }, "ParseFailures":{ "shape":"Long", "documentation":"

" }, "RecordIngestionFailures":{ "shape":"Long", "documentation":"

" }, "FileFailures":{ "shape":"Long", "documentation":"

" }, "BytesMetered":{ "shape":"Long", "documentation":"

" } }, "documentation":"

Details about the progress of a batch load task.

" }, "BatchLoadStatus":{ "type":"string", "enum":[ "CREATED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "PROGRESS_STOPPED", "PENDING_RESUME" ] }, "BatchLoadTask":{ "type":"structure", "members":{ "TaskId":{ "shape":"BatchLoadTaskId", "documentation":"

The ID of the batch load task.

" }, "TaskStatus":{ "shape":"BatchLoadStatus", "documentation":"

Status of the batch load task.

" }, "DatabaseName":{ "shape":"ResourceName", "documentation":"

Database name for the database into which a batch load task loads data.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

Table name for the table into which a batch load task loads data.

" }, "CreationTime":{ "shape":"Date", "documentation":"

The time when the Timestream batch load task was created.

" }, "LastUpdatedTime":{ "shape":"Date", "documentation":"

The time when the Timestream batch load task was last updated.

" }, "ResumableUntil":{ "shape":"Date", "documentation":"

" } }, "documentation":"

Details about a batch load task.

" }, "BatchLoadTaskDescription":{ "type":"structure", "members":{ "TaskId":{ "shape":"BatchLoadTaskId", "documentation":"

The ID of the batch load task.

" }, "ErrorMessage":{ "shape":"StringValue2048", "documentation":"

" }, "DataSourceConfiguration":{ "shape":"DataSourceConfiguration", "documentation":"

Configuration details about the data source for a batch load task.

" }, "ProgressReport":{ "shape":"BatchLoadProgressReport", "documentation":"

" }, "ReportConfiguration":{ "shape":"ReportConfiguration", "documentation":"

Report configuration for a batch load task. This contains details about where error reports are stored.

" }, "DataModelConfiguration":{ "shape":"DataModelConfiguration", "documentation":"

Data model configuration for a batch load task. This contains details about where a data model for a batch load task is stored.

" }, "TargetDatabaseName":{ "shape":"ResourceName", "documentation":"

" }, "TargetTableName":{ "shape":"ResourceName", "documentation":"

" }, "TaskStatus":{ "shape":"BatchLoadStatus", "documentation":"

Status of the batch load task.

" }, "RecordVersion":{ "shape":"RecordVersion", "documentation":"

" }, "CreationTime":{ "shape":"Date", "documentation":"

The time when the Timestream batch load task was created.

" }, "LastUpdatedTime":{ "shape":"Date", "documentation":"

The time when the Timestream batch load task was last updated.

" }, "ResumableUntil":{ "shape":"Date", "documentation":"

" } }, "documentation":"

Details about a batch load task.

" }, "BatchLoadTaskId":{ "type":"string", "max":32, "min":3, "pattern":"[A-Z0-9]+" }, "BatchLoadTaskList":{ "type":"list", "member":{"shape":"BatchLoadTask"} }, "Boolean":{"type":"boolean"}, "ClientRequestToken":{ "type":"string", "max":64, "min":1, "sensitive":true }, "ConflictException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Timestream was unable to process this request because it contains resource that already exists.

", "exception":true }, "CreateBatchLoadTaskRequest":{ "type":"structure", "required":[ "DataSourceConfiguration", "ReportConfiguration", "TargetDatabaseName", "TargetTableName" ], "members":{ "ClientToken":{ "shape":"ClientRequestToken", "documentation":"

", "idempotencyToken":true }, "DataModelConfiguration":{"shape":"DataModelConfiguration"}, "DataSourceConfiguration":{ "shape":"DataSourceConfiguration", "documentation":"

Defines configuration details about the data source for a batch load task.

" }, "ReportConfiguration":{"shape":"ReportConfiguration"}, "TargetDatabaseName":{ "shape":"ResourceCreateAPIName", "documentation":"

Target Timestream database for a batch load task.

" }, "TargetTableName":{ "shape":"ResourceCreateAPIName", "documentation":"

Target Timestream table for a batch load task.

" }, "RecordVersion":{ "shape":"RecordVersion", "documentation":"

", "box":true } } }, "CreateBatchLoadTaskResponse":{ "type":"structure", "required":["TaskId"], "members":{ "TaskId":{ "shape":"BatchLoadTaskId", "documentation":"

The ID of the batch load task.

" } } }, "CreateDatabaseRequest":{ "type":"structure", "required":["DatabaseName"], "members":{ "DatabaseName":{ "shape":"ResourceCreateAPIName", "documentation":"

The name of the Timestream database.

" }, "KmsKeyId":{ "shape":"StringValue2048", "documentation":"

The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.

" }, "Tags":{ "shape":"TagList", "documentation":"

A list of key-value pairs to label the table.

" } } }, "CreateDatabaseResponse":{ "type":"structure", "members":{ "Database":{ "shape":"Database", "documentation":"

The newly created Timestream database.

" } } }, "CreateTableRequest":{ "type":"structure", "required":[ "DatabaseName", "TableName" ], "members":{ "DatabaseName":{ "shape":"ResourceCreateAPIName", "documentation":"

The name of the Timestream database.

" }, "TableName":{ "shape":"ResourceCreateAPIName", "documentation":"

The name of the Timestream table.

" }, "RetentionProperties":{ "shape":"RetentionProperties", "documentation":"

The duration for which your time-series data must be stored in the memory store and the magnetic store.

" }, "Tags":{ "shape":"TagList", "documentation":"

A list of key-value pairs to label the table.

" }, "MagneticStoreWriteProperties":{ "shape":"MagneticStoreWriteProperties", "documentation":"

Contains properties to set on the table when enabling magnetic store writes.

" }, "Schema":{ "shape":"Schema", "documentation":"

The schema of the table.

" } } }, "CreateTableResponse":{ "type":"structure", "members":{ "Table":{ "shape":"Table", "documentation":"

The newly created Timestream table.

" } } }, "CsvConfiguration":{ "type":"structure", "members":{ "ColumnSeparator":{ "shape":"StringValue1", "documentation":"

Column separator can be one of comma (','), pipe ('|), semicolon (';'), tab('/t'), or blank space (' ').

" }, "EscapeChar":{ "shape":"StringValue1", "documentation":"

Escape character can be one of

" }, "QuoteChar":{ "shape":"StringValue1", "documentation":"

Can be single quote (') or double quote (\").

" }, "NullValue":{ "shape":"StringValue256", "documentation":"

Can be blank space (' ').

" }, "TrimWhiteSpace":{ "shape":"Boolean", "documentation":"

Specifies to trim leading and trailing white space.

" } }, "documentation":"

A delimited data format where the column separator can be a comma and the record separator is a newline character.

" }, "DataModel":{ "type":"structure", "required":["DimensionMappings"], "members":{ "TimeColumn":{ "shape":"StringValue256", "documentation":"

Source column to be mapped to time.

" }, "TimeUnit":{ "shape":"TimeUnit", "documentation":"

The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is `MILLISECONDS`.

" }, "DimensionMappings":{ "shape":"DimensionMappings", "documentation":"

Source to target mappings for dimensions.

" }, "MultiMeasureMappings":{ "shape":"MultiMeasureMappings", "documentation":"

Source to target mappings for multi-measure records.

" }, "MixedMeasureMappings":{ "shape":"MixedMeasureMappingList", "documentation":"

Source to target mappings for measures.

" }, "MeasureNameColumn":{ "shape":"StringValue256", "documentation":"

" } }, "documentation":"

Data model for a batch load task.

" }, "DataModelConfiguration":{ "type":"structure", "members":{ "DataModel":{ "shape":"DataModel", "documentation":"

" }, "DataModelS3Configuration":{ "shape":"DataModelS3Configuration", "documentation":"

" } }, "documentation":"

" }, "DataModelS3Configuration":{ "type":"structure", "members":{ "BucketName":{ "shape":"S3BucketName", "documentation":"

" }, "ObjectKey":{ "shape":"S3ObjectKey", "documentation":"

" } }, "documentation":"

" }, "DataSourceConfiguration":{ "type":"structure", "required":[ "DataSourceS3Configuration", "DataFormat" ], "members":{ "DataSourceS3Configuration":{ "shape":"DataSourceS3Configuration", "documentation":"

Configuration of an S3 location for a file which contains data to load.

" }, "CsvConfiguration":{"shape":"CsvConfiguration"}, "DataFormat":{ "shape":"BatchLoadDataFormat", "documentation":"

This is currently CSV.

" } }, "documentation":"

Defines configuration details about the data source.

" }, "DataSourceS3Configuration":{ "type":"structure", "required":["BucketName"], "members":{ "BucketName":{ "shape":"S3BucketName", "documentation":"

The bucket name of the customer S3 bucket.

" }, "ObjectKeyPrefix":{ "shape":"S3ObjectKey", "documentation":"

" } }, "documentation":"

" }, "Database":{ "type":"structure", "members":{ "Arn":{ "shape":"String", "documentation":"

The Amazon Resource Name that uniquely identifies this database.

" }, "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" }, "TableCount":{ "shape":"Long", "documentation":"

The total number of tables found within a Timestream database.

" }, "KmsKeyId":{ "shape":"StringValue2048", "documentation":"

The identifier of the KMS key used to encrypt the data stored in the database.

" }, "CreationTime":{ "shape":"Date", "documentation":"

The time when the database was created, calculated from the Unix epoch time.

" }, "LastUpdatedTime":{ "shape":"Date", "documentation":"

The last time that this database was updated.

" } }, "documentation":"

A top-level container for a table. Databases and tables are the fundamental management concepts in Amazon Timestream. All tables in a database are encrypted with the same KMS key.

" }, "DatabaseList":{ "type":"list", "member":{"shape":"Database"} }, "Date":{"type":"timestamp"}, "DeleteDatabaseRequest":{ "type":"structure", "required":["DatabaseName"], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database to be deleted.

" } } }, "DeleteTableRequest":{ "type":"structure", "required":[ "DatabaseName", "TableName" ], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the database where the Timestream database is to be deleted.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream table to be deleted.

" } } }, "DescribeBatchLoadTaskRequest":{ "type":"structure", "required":["TaskId"], "members":{ "TaskId":{ "shape":"BatchLoadTaskId", "documentation":"

The ID of the batch load task.

" } } }, "DescribeBatchLoadTaskResponse":{ "type":"structure", "required":["BatchLoadTaskDescription"], "members":{ "BatchLoadTaskDescription":{ "shape":"BatchLoadTaskDescription", "documentation":"

Description of the batch load task.

" } } }, "DescribeDatabaseRequest":{ "type":"structure", "required":["DatabaseName"], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" } } }, "DescribeDatabaseResponse":{ "type":"structure", "members":{ "Database":{ "shape":"Database", "documentation":"

The name of the Timestream table.

" } } }, "DescribeEndpointsRequest":{ "type":"structure", "members":{ } }, "DescribeEndpointsResponse":{ "type":"structure", "required":["Endpoints"], "members":{ "Endpoints":{ "shape":"Endpoints", "documentation":"

An `Endpoints` object is returned when a `DescribeEndpoints` request is made.

" } } }, "DescribeTableRequest":{ "type":"structure", "required":[ "DatabaseName", "TableName" ], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream table.

" } } }, "DescribeTableResponse":{ "type":"structure", "members":{ "Table":{ "shape":"Table", "documentation":"

The Timestream table.

" } } }, "Dimension":{ "type":"structure", "required":[ "Name", "Value" ], "members":{ "Name":{ "shape":"SchemaName", "documentation":"

Dimension represents the metadata attributes of the time series. For example, the name and Availability Zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions.

For constraints on dimension names, see Naming Constraints.

" }, "Value":{ "shape":"SchemaValue", "documentation":"

The value of the dimension.

" }, "DimensionValueType":{ "shape":"DimensionValueType", "documentation":"

The data type of the dimension for the time-series data point.

" } }, "documentation":"

Represents the metadata attributes of the time series. For example, the name and Availability Zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions.

" }, "DimensionMapping":{ "type":"structure", "members":{ "SourceColumn":{ "shape":"SchemaName", "documentation":"

" }, "DestinationColumn":{ "shape":"SchemaName", "documentation":"

" } }, "documentation":"

" }, "DimensionMappings":{ "type":"list", "member":{"shape":"DimensionMapping"}, "min":1 }, "DimensionValueType":{ "type":"string", "enum":["VARCHAR"] }, "Dimensions":{ "type":"list", "member":{"shape":"Dimension"}, "max":128 }, "Endpoint":{ "type":"structure", "required":[ "Address", "CachePeriodInMinutes" ], "members":{ "Address":{ "shape":"String", "documentation":"

An endpoint address.

" }, "CachePeriodInMinutes":{ "shape":"Long", "documentation":"

The TTL for the endpoint, in minutes.

" } }, "documentation":"

Represents an available endpoint against which to make API calls against, as well as the TTL for that endpoint.

" }, "Endpoints":{ "type":"list", "member":{"shape":"Endpoint"} }, "ErrorMessage":{"type":"string"}, "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Timestream was unable to fully process this request because of an internal server error.

", "exception":true, "fault":true }, "InvalidEndpointException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The requested endpoint was not valid.

", "exception":true }, "ListBatchLoadTasksRequest":{ "type":"structure", "members":{ "NextToken":{ "shape":"String", "documentation":"

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

" }, "MaxResults":{ "shape":"PageLimit", "documentation":"

The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" }, "TaskStatus":{ "shape":"BatchLoadStatus", "documentation":"

Status of the batch load task.

" } } }, "ListBatchLoadTasksResponse":{ "type":"structure", "members":{ "NextToken":{ "shape":"String", "documentation":"

A token to specify where to start paginating. Provide the next ListBatchLoadTasksRequest.

" }, "BatchLoadTasks":{ "shape":"BatchLoadTaskList", "documentation":"

A list of batch load task details.

" } } }, "ListDatabasesRequest":{ "type":"structure", "members":{ "NextToken":{ "shape":"String", "documentation":"

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" }, "MaxResults":{ "shape":"PaginationLimit", "documentation":"

The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" } } }, "ListDatabasesResponse":{ "type":"structure", "members":{ "Databases":{ "shape":"DatabaseList", "documentation":"

A list of database names.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token. This parameter is returned when the response is truncated.

" } } }, "ListTablesRequest":{ "type":"structure", "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" }, "MaxResults":{ "shape":"PaginationLimit", "documentation":"

The total number of items to return in the output. If the total number of items available is more than the value specified, a NextToken is provided in the output. To resume pagination, provide the NextToken value as argument of a subsequent API invocation.

" } } }, "ListTablesResponse":{ "type":"structure", "members":{ "Tables":{ "shape":"TableList", "documentation":"

A list of tables.

" }, "NextToken":{ "shape":"String", "documentation":"

A token to specify where to start paginating. This is the NextToken from a previously truncated response.

" } } }, "ListTagsForResourceRequest":{ "type":"structure", "required":["ResourceARN"], "members":{ "ResourceARN":{ "shape":"AmazonResourceName", "documentation":"

The Timestream resource with tags to be listed. This value is an Amazon Resource Name (ARN).

" } } }, "ListTagsForResourceResponse":{ "type":"structure", "members":{ "Tags":{ "shape":"TagList", "documentation":"

The tags currently associated with the Timestream resource.

" } } }, "Long":{"type":"long"}, "MagneticStoreRejectedDataLocation":{ "type":"structure", "members":{ "S3Configuration":{ "shape":"S3Configuration", "documentation":"

Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.

" } }, "documentation":"

The location to write error reports for records rejected, asynchronously, during magnetic store writes.

" }, "MagneticStoreRetentionPeriodInDays":{ "type":"long", "max":73000, "min":1 }, "MagneticStoreWriteProperties":{ "type":"structure", "required":["EnableMagneticStoreWrites"], "members":{ "EnableMagneticStoreWrites":{ "shape":"Boolean", "documentation":"

A flag to enable magnetic store writes.

" }, "MagneticStoreRejectedDataLocation":{ "shape":"MagneticStoreRejectedDataLocation", "documentation":"

The location to write error reports for records rejected asynchronously during magnetic store writes.

" } }, "documentation":"

The set of properties on a table for configuring magnetic store writes.

" }, "MeasureValue":{ "type":"structure", "required":[ "Name", "Value", "Type" ], "members":{ "Name":{ "shape":"SchemaName", "documentation":"

The name of the MeasureValue.

For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.

" }, "Value":{ "shape":"StringValue2048", "documentation":"

The value for the MeasureValue. For information, see Data types.

" }, "Type":{ "shape":"MeasureValueType", "documentation":"

Contains the data type of the MeasureValue for the time-series data point.

" } }, "documentation":"

Represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures. MeasureValue has both name and value.

MeasureValue is only allowed for type `MULTI`. Using `MULTI` type, you can pass multiple data attributes associated with the same time series in a single record

" }, "MeasureValueType":{ "type":"string", "enum":[ "DOUBLE", "BIGINT", "VARCHAR", "BOOLEAN", "TIMESTAMP", "MULTI" ] }, "MeasureValues":{ "type":"list", "member":{"shape":"MeasureValue"} }, "MemoryStoreRetentionPeriodInHours":{ "type":"long", "max":8766, "min":1 }, "MixedMeasureMapping":{ "type":"structure", "required":["MeasureValueType"], "members":{ "MeasureName":{ "shape":"SchemaName", "documentation":"

" }, "SourceColumn":{ "shape":"SchemaName", "documentation":"

" }, "TargetMeasureName":{ "shape":"SchemaName", "documentation":"

" }, "MeasureValueType":{ "shape":"MeasureValueType", "documentation":"

" }, "MultiMeasureAttributeMappings":{ "shape":"MultiMeasureAttributeMappingList", "documentation":"

" } }, "documentation":"

" }, "MixedMeasureMappingList":{ "type":"list", "member":{"shape":"MixedMeasureMapping"}, "min":1 }, "MultiMeasureAttributeMapping":{ "type":"structure", "required":["SourceColumn"], "members":{ "SourceColumn":{ "shape":"SchemaName", "documentation":"

" }, "TargetMultiMeasureAttributeName":{ "shape":"SchemaName", "documentation":"

" }, "MeasureValueType":{ "shape":"ScalarMeasureValueType", "documentation":"

" } }, "documentation":"

" }, "MultiMeasureAttributeMappingList":{ "type":"list", "member":{"shape":"MultiMeasureAttributeMapping"}, "min":1 }, "MultiMeasureMappings":{ "type":"structure", "required":["MultiMeasureAttributeMappings"], "members":{ "TargetMultiMeasureName":{ "shape":"SchemaName", "documentation":"

" }, "MultiMeasureAttributeMappings":{ "shape":"MultiMeasureAttributeMappingList", "documentation":"

" } }, "documentation":"

" }, "PageLimit":{ "type":"integer", "box":true, "max":100, "min":1 }, "PaginationLimit":{ "type":"integer", "box":true, "max":20, "min":1 }, "PartitionKey":{ "type":"structure", "required":["Type"], "members":{ "Type":{ "shape":"PartitionKeyType", "documentation":"

The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).

" }, "Name":{ "shape":"SchemaName", "documentation":"

The name of the attribute used for a dimension key.

" }, "EnforcementInRecord":{ "shape":"PartitionKeyEnforcementLevel", "documentation":"

The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).

" } }, "documentation":"

An attribute used in partitioning data in a table. A dimension key partitions data using the values of the dimension specified by the dimension-name as partition key, while a measure key partitions data using measure names (values of the 'measure_name' column).

" }, "PartitionKeyEnforcementLevel":{ "type":"string", "enum":[ "REQUIRED", "OPTIONAL" ] }, "PartitionKeyList":{ "type":"list", "member":{"shape":"PartitionKey"}, "min":1 }, "PartitionKeyType":{ "type":"string", "enum":[ "DIMENSION", "MEASURE" ] }, "Record":{ "type":"structure", "members":{ "Dimensions":{ "shape":"Dimensions", "documentation":"

Contains the list of dimensions for time-series data points.

" }, "MeasureName":{ "shape":"SchemaName", "documentation":"

Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.

" }, "MeasureValue":{ "shape":"StringValue2048", "documentation":"

Contains the measure value for the time-series data point.

" }, "MeasureValueType":{ "shape":"MeasureValueType", "documentation":"

Contains the data type of the measure value for the time-series data point. Default type is `DOUBLE`. For more information, see Data types.

" }, "Time":{ "shape":"StringValue256", "documentation":"

Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is `12345` and the unit is `ms`, then `12345 ms` have elapsed since the epoch.

" }, "TimeUnit":{ "shape":"TimeUnit", "documentation":"

The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is `MILLISECONDS`.

" }, "Version":{ "shape":"RecordVersion", "documentation":"

64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, `Version` will still be updated. Default value is `1`.

`Version` must be `1` or greater, or you will receive a `ValidationException` error.

", "box":true }, "MeasureValues":{ "shape":"MeasureValues", "documentation":"

Contains the list of MeasureValue for time-series data points.

This is only allowed for type `MULTI`. For scalar values, use `MeasureValue` attribute of the record directly.

" } }, "documentation":"

Represents a time-series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the metadata attributes of a time-series data point, such as the instance name or Availability Zone of an EC2 instance. A record also contains the measure name, which is the name of the measure being collected (for example, the CPU utilization of an EC2 instance). Additionally, a record contains the measure value and the value type, which is the data type of the measure value. Also, the record contains the timestamp of when the measure was collected and the timestamp unit, which represents the granularity of the timestamp.

Records have a `Version` field, which is a 64-bit `long` that you can use for updating data points. Writes of a duplicate record with the same dimension, timestamp, and measure name but different measure value will only succeed if the `Version` attribute of the record in the write request is higher than that of the existing record. Timestream defaults to a `Version` of `1` for records without the `Version` field.

" }, "RecordIndex":{"type":"integer"}, "RecordVersion":{"type":"long"}, "Records":{ "type":"list", "member":{"shape":"Record"}, "max":100, "min":1 }, "RecordsIngested":{ "type":"structure", "members":{ "Total":{ "shape":"Integer", "documentation":"

Total count of successfully ingested records.

" }, "MemoryStore":{ "shape":"Integer", "documentation":"

Count of records ingested into the memory store.

" }, "MagneticStore":{ "shape":"Integer", "documentation":"

Count of records ingested into the magnetic store.

" } }, "documentation":"

Information on the records ingested by this request.

" }, "RejectedRecord":{ "type":"structure", "members":{ "RecordIndex":{ "shape":"RecordIndex", "documentation":"

The index of the record in the input request for WriteRecords. Indexes begin with 0.

" }, "Reason":{ "shape":"ErrorMessage", "documentation":"

The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:

- Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:

  - Measure values are different

  - Version is not present in the request, or the value of version in the new record is equal to or lower than the existing value

  If Timestream rejects data for this case, the `ExistingVersion` field in the `RejectedRecords` response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the `ExistingVersion`.

- Records with timestamps that lie outside the retention duration of the memory store.

  When the retention window is updated, you will receive a `RejectedRecords` exception if you immediately try to ingest data within the new window. To avoid a `RejectedRecords` exception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream.

- Records with dimensions or measures that exceed the Timestream defined limits.

For more information, see Access Management in the Timestream Developer Guide.

" }, "ExistingVersion":{ "shape":"RecordVersion", "documentation":"

The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.

", "box":true } }, "documentation":"

Represents records that were not successfully inserted into Timestream due to data validation issues that must be resolved before reinserting time-series data into the system.

" }, "RejectedRecords":{ "type":"list", "member":{"shape":"RejectedRecord"} }, "RejectedRecordsException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"}, "RejectedRecords":{ "shape":"RejectedRecords", "documentation":"

" } }, "documentation":"

WriteRecords would throw this exception in the following cases:

- Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:

  - Measure values are different

  - Version is not present in the request or the value of version in the new record is equal to or lower than the existing value

  In this case, if Timestream rejects data, the `ExistingVersion` field in the `RejectedRecords` response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the `ExistingVersion`.

- Records with timestamps that lie outside the retention duration of the memory store.

- Records with dimensions or measures that exceed the Timestream defined limits.

For more information, see Quotas in the Amazon Timestream Developer Guide.

", "exception":true }, "ReportConfiguration":{ "type":"structure", "members":{ "ReportS3Configuration":{ "shape":"ReportS3Configuration", "documentation":"

Configuration of an S3 location to write error reports and events for a batch load.

" } }, "documentation":"

Report configuration for a batch load task. This contains details about where error reports are stored.

" }, "ReportS3Configuration":{ "type":"structure", "required":["BucketName"], "members":{ "BucketName":{ "shape":"S3BucketName", "documentation":"

" }, "ObjectKeyPrefix":{ "shape":"S3ObjectKeyPrefix", "documentation":"

" }, "EncryptionOption":{ "shape":"S3EncryptionOption", "documentation":"

" }, "KmsKeyId":{ "shape":"StringValue2048", "documentation":"

" } }, "documentation":"

" }, "ResourceCreateAPIName":{ "type":"string", "pattern":"[a-zA-Z0-9_.-]+" }, "ResourceName":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.

", "exception":true }, "ResumeBatchLoadTaskRequest":{ "type":"structure", "required":["TaskId"], "members":{ "TaskId":{ "shape":"BatchLoadTaskId", "documentation":"

The ID of the batch load task to resume.

" } } }, "ResumeBatchLoadTaskResponse":{ "type":"structure", "members":{ } }, "RetentionProperties":{ "type":"structure", "required":[ "MemoryStoreRetentionPeriodInHours", "MagneticStoreRetentionPeriodInDays" ], "members":{ "MemoryStoreRetentionPeriodInHours":{ "shape":"MemoryStoreRetentionPeriodInHours", "documentation":"

The duration for which data must be stored in the memory store.

" }, "MagneticStoreRetentionPeriodInDays":{ "shape":"MagneticStoreRetentionPeriodInDays", "documentation":"

The duration for which data must be stored in the magnetic store.

" } }, "documentation":"

Retention properties contain the duration for which your time-series data must be stored in the magnetic store and the memory store.

" }, "S3BucketName":{ "type":"string", "max":63, "min":3, "pattern":"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]" }, "S3Configuration":{ "type":"structure", "members":{ "BucketName":{ "shape":"S3BucketName", "documentation":"

The bucket name of the customer S3 bucket.

" }, "ObjectKeyPrefix":{ "shape":"S3ObjectKeyPrefix", "documentation":"

The object key preview for the customer S3 location.

" }, "EncryptionOption":{ "shape":"S3EncryptionOption", "documentation":"

The encryption option for the customer S3 location. Options are S3 server-side encryption with an S3 managed key or Amazon Web Services managed key.

" }, "KmsKeyId":{ "shape":"StringValue2048", "documentation":"

The KMS key ID for the customer S3 location when encrypting with an Amazon Web Services managed key.

" } }, "documentation":"

The configuration that specifies an S3 location.

" }, "S3EncryptionOption":{ "type":"string", "enum":[ "SSE_S3", "SSE_KMS" ] }, "S3ObjectKey":{ "type":"string", "max":1024, "min":1, "pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+" }, "S3ObjectKeyPrefix":{ "type":"string", "max":928, "min":1, "pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+" }, "ScalarMeasureValueType":{ "type":"string", "enum":[ "DOUBLE", "BIGINT", "BOOLEAN", "VARCHAR", "TIMESTAMP" ] }, "Schema":{ "type":"structure", "members":{ "CompositePartitionKey":{ "shape":"PartitionKeyList", "documentation":"

A non-empty list of partition keys defining the attributes used to partition the table data. The order of the list determines the partition hierarchy. The name and type of each partition key as well as the partition key order cannot be changed after the table is created. However, the enforcement level of each partition key can be changed.

" } }, "documentation":"

A Schema specifies the expected data model of the table.

" }, "SchemaName":{ "type":"string", "min":1 }, "SchemaValue":{"type":"string"}, "ServiceQuotaExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The instance quota of resource exceeded for this account.

", "exception":true }, "String":{"type":"string"}, "StringValue1":{ "type":"string", "max":1, "min":1 }, "StringValue2048":{ "type":"string", "max":2048, "min":1 }, "StringValue256":{ "type":"string", "max":256, "min":1 }, "Table":{ "type":"structure", "members":{ "Arn":{ "shape":"String", "documentation":"

The Amazon Resource Name that uniquely identifies this table.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream table.

" }, "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database that contains this table.

" }, "TableStatus":{ "shape":"TableStatus", "documentation":"

The current state of the table:

- `DELETING` - The table is being deleted.

- `ACTIVE` - The table is ready for use.

" }, "RetentionProperties":{ "shape":"RetentionProperties", "documentation":"

The retention duration for the memory store and magnetic store.

" }, "CreationTime":{ "shape":"Date", "documentation":"

The time when the Timestream table was created.

" }, "LastUpdatedTime":{ "shape":"Date", "documentation":"

The time when the Timestream table was last updated.

" }, "MagneticStoreWriteProperties":{ "shape":"MagneticStoreWriteProperties", "documentation":"

Contains properties to set on the table when enabling magnetic store writes.

" }, "Schema":{ "shape":"Schema", "documentation":"

The schema of the table.

" } }, "documentation":"

Represents a database table in Timestream. Tables contain one or more related time series. You can modify the retention duration of the memory store and the magnetic store for a table.

" }, "TableList":{ "type":"list", "member":{"shape":"Table"} }, "TableStatus":{ "type":"string", "enum":[ "ACTIVE", "DELETING", "RESTORING" ] }, "Tag":{ "type":"structure", "required":[ "Key", "Value" ], "members":{ "Key":{ "shape":"TagKey", "documentation":"

The key of the tag. Tag keys are case sensitive.

" }, "Value":{ "shape":"TagValue", "documentation":"

The value of the tag. Tag values are case-sensitive and can be null.

" } }, "documentation":"

A tag is a label that you assign to a Timestream database and/or table. Each tag consists of a key and an optional value, both of which you define. With tags, you can categorize databases and/or tables, for example, by purpose, owner, or environment.

" }, "TagKey":{ "type":"string", "max":128, "min":1 }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, "max":200, "min":0 }, "TagList":{ "type":"list", "member":{"shape":"Tag"}, "max":200, "min":0 }, "TagResourceRequest":{ "type":"structure", "required":[ "ResourceARN", "Tags" ], "members":{ "ResourceARN":{ "shape":"AmazonResourceName", "documentation":"

Identifies the Timestream resource to which tags should be added. This value is an Amazon Resource Name (ARN).

" }, "Tags":{ "shape":"TagList", "documentation":"

The tags to be assigned to the Timestream resource.

" } } }, "TagResourceResponse":{ "type":"structure", "members":{ } }, "TagValue":{ "type":"string", "max":256, "min":0 }, "ThrottlingException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Too many requests were made by a user and they exceeded the service quotas. The request was throttled.

", "exception":true }, "TimeUnit":{ "type":"string", "enum":[ "MILLISECONDS", "SECONDS", "MICROSECONDS", "NANOSECONDS" ] }, "UntagResourceRequest":{ "type":"structure", "required":[ "ResourceARN", "TagKeys" ], "members":{ "ResourceARN":{ "shape":"AmazonResourceName", "documentation":"

The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).

" }, "TagKeys":{ "shape":"TagKeyList", "documentation":"

A list of tags keys. Existing tags of the resource whose keys are members of this list will be removed from the Timestream resource.

" } } }, "UntagResourceResponse":{ "type":"structure", "members":{ } }, "UpdateDatabaseRequest":{ "type":"structure", "required":[ "DatabaseName", "KmsKeyId" ], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the database.

" }, "KmsKeyId":{ "shape":"StringValue2048", "documentation":"

The identifier of the new KMS key (`KmsKeyId`) to be used to encrypt the data stored in the database. If the `KmsKeyId` currently registered with the database is the same as the `KmsKeyId` in the request, there will not be any update.

You can specify the `KmsKeyId` using any of the following:

- Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`

- Key ARN: `arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`

- Alias name: `alias/ExampleAlias`

- Alias ARN: `arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias`

" } } }, "UpdateDatabaseResponse":{ "type":"structure", "members":{ "Database":{"shape":"Database"} } }, "UpdateTableRequest":{ "type":"structure", "required":[ "DatabaseName", "TableName" ], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream table.

" }, "RetentionProperties":{ "shape":"RetentionProperties", "documentation":"

The retention duration of the memory store and the magnetic store.

" }, "MagneticStoreWriteProperties":{ "shape":"MagneticStoreWriteProperties", "documentation":"

Contains properties to set on the table when enabling magnetic store writes.

" }, "Schema":{ "shape":"Schema", "documentation":"

The schema of the table.

" } } }, "UpdateTableResponse":{ "type":"structure", "members":{ "Table":{ "shape":"Table", "documentation":"

The updated Timestream table.

" } } }, "ValidationException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

An invalid or malformed request.

", "exception":true }, "WriteRecordsRequest":{ "type":"structure", "required":[ "DatabaseName", "TableName", "Records" ], "members":{ "DatabaseName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream database.

" }, "TableName":{ "shape":"ResourceName", "documentation":"

The name of the Timestream table.

" }, "CommonAttributes":{ "shape":"Record", "documentation":"

A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a `ValidationException` will be thrown. In other words, a record must contain dimensions with unique names.

" }, "Records":{ "shape":"Records", "documentation":"

An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.

" } } }, "WriteRecordsResponse":{ "type":"structure", "members":{ "RecordsIngested":{ "shape":"RecordsIngested", "documentation":"

Information on the records ingested by this request.

" } } } }, "documentation":"Amazon Timestream Write

Amazon Timestream is a fast, scalable, fully managed time-series database service that makes it easy to store and analyze trillions of time-series data points per day. With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment management and maintenance. You can also store and analyze log data and metrics to improve the performance and availability of your applications.

Timestream is built from the ground up to effectively ingest, process, and store time-series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.

" }