Module Smaws_Client_TimestreamWrite.Types

type nonrec integer = int
type nonrec records_ingested = {
  1. magnetic_store : integer option;
    (*

    Count of records ingested into the magnetic store.

    *)
  2. memory_store : integer option;
    (*

    Count of records ingested into the memory store.

    *)
  3. total : integer option;
    (*

    Total count of successfully ingested records.

    *)
}

Information on the records ingested by this request.

type nonrec write_records_response = {
  1. records_ingested : records_ingested option;
    (*

    Information on the records ingested by this request.

    *)
}
type nonrec resource_name = string
type nonrec schema_name = string
type nonrec schema_value = string
type nonrec dimension_value_type =
  1. | VARCHAR
type nonrec dimension = {
  1. dimension_value_type : dimension_value_type option;
    (*

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

    *)
  2. value : schema_value;
    (*

    The value of the dimension.

    *)
  3. name : schema_name;
    (*

    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.

    *)
}

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.

type nonrec dimensions = dimension list
type nonrec string_value2048 = string
type nonrec measure_value_type =
  1. | MULTI
  2. | TIMESTAMP
  3. | BOOLEAN
  4. | VARCHAR
  5. | BIGINT
  6. | DOUBLE
type nonrec string_value256 = string
type nonrec time_unit =
  1. | NANOSECONDS
  2. | MICROSECONDS
  3. | SECONDS
  4. | MILLISECONDS
type nonrec record_version = Smaws_Lib.CoreTypes.Int64.t
type nonrec measure_value = {
  1. type_ : measure_value_type;
    (*

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

    *)
  2. value : string_value2048;
    (*

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

    *)
  3. name : schema_name;
    (*

    The name of the MeasureValue.

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

    *)
}

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

type nonrec measure_values = measure_value list
type nonrec record = {
  1. measure_values : measure_values option;
    (*

    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.

    *)
  2. version : record_version option;
    (*

    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.

    *)
  3. time_unit : time_unit option;
    (*

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

    *)
  4. time : string_value256 option;
    (*

    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.

    *)
  5. measure_value_type : measure_value_type option;
    (*

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

    *)
  6. measure_value : string_value2048 option;
    (*

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

    *)
  7. measure_name : schema_name option;
    (*

    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.

    *)
  8. dimensions : dimensions option;
    (*

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

    *)
}

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.

type nonrec records = record list
type nonrec write_records_request = {
  1. records : records;
    (*

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

    *)
  2. common_attributes : record option;
    (*

    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.

    *)
  3. table_name : resource_name;
    (*

    The name of the Timestream table.

    *)
  4. database_name : resource_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec error_message = string
type nonrec validation_exception = {
  1. message : error_message;
}

An invalid or malformed request.

type nonrec throttling_exception = {
  1. message : error_message;
}

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

type nonrec resource_not_found_exception = {
  1. message : error_message option;
}

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

type nonrec record_index = int
type nonrec rejected_record = {
  1. existing_version : record_version option;
    (*

    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.

    *)
  2. reason : error_message option;
    (*

    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.

    *)
  3. record_index : record_index option;
    (*

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

    *)
}

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.

type nonrec rejected_records = rejected_record list
type nonrec rejected_records_exception = {
  1. rejected_records : rejected_records option;
  2. message : error_message option;
}

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.

type nonrec invalid_endpoint_exception = {
  1. message : error_message option;
}

The requested endpoint was not valid.

type nonrec internal_server_exception = {
  1. message : error_message;
}

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

type nonrec access_denied_exception = {
  1. message : error_message;
}

You are not authorized to perform this action.

type nonrec string_ = string
type nonrec table_status =
  1. | RESTORING
  2. | DELETING
  3. | ACTIVE
type nonrec memory_store_retention_period_in_hours = Smaws_Lib.CoreTypes.Int64.t
type nonrec magnetic_store_retention_period_in_days = Smaws_Lib.CoreTypes.Int64.t
type nonrec retention_properties = {
  1. magnetic_store_retention_period_in_days : magnetic_store_retention_period_in_days;
    (*

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

    *)
  2. memory_store_retention_period_in_hours : memory_store_retention_period_in_hours;
    (*

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

    *)
}

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

type nonrec date = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec boolean_ = bool
type nonrec s3_bucket_name = string
type nonrec s3_object_key_prefix = string
type nonrec s3_encryption_option =
  1. | SSE_KMS
  2. | SSE_S3
type nonrec s3_configuration = {
  1. kms_key_id : string_value2048 option;
    (*

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

    *)
  2. encryption_option : s3_encryption_option option;
    (*

    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.

    *)
  3. object_key_prefix : s3_object_key_prefix option;
    (*

    The object key preview for the customer S3 location.

    *)
  4. bucket_name : s3_bucket_name option;
    (*

    The bucket name of the customer S3 bucket.

    *)
}

The configuration that specifies an S3 location.

type nonrec magnetic_store_rejected_data_location = {
  1. s3_configuration : s3_configuration option;
    (*

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

    *)
}

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

type nonrec magnetic_store_write_properties = {
  1. magnetic_store_rejected_data_location : magnetic_store_rejected_data_location option;
    (*

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

    *)
  2. enable_magnetic_store_writes : boolean_;
    (*

    A flag to enable magnetic store writes.

    *)
}

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

type nonrec partition_key_type =
  1. | MEASURE
  2. | DIMENSION
type nonrec partition_key_enforcement_level =
  1. | OPTIONAL
  2. | REQUIRED
type nonrec partition_key = {
  1. enforcement_in_record : partition_key_enforcement_level option;
    (*

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

    *)
  2. name : schema_name option;
    (*

    The name of the attribute used for a dimension key.

    *)
  3. type_ : partition_key_type;
    (*

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

    *)
}

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

type nonrec partition_key_list = partition_key list
type nonrec schema = {
  1. composite_partition_key : partition_key_list option;
    (*

    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.

    *)
}

A Schema specifies the expected data model of the table.

type nonrec table = {
  1. schema : schema option;
    (*

    The schema of the table.

    *)
  2. magnetic_store_write_properties : magnetic_store_write_properties option;
    (*

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

    *)
  3. last_updated_time : date option;
    (*

    The time when the Timestream table was last updated.

    *)
  4. creation_time : date option;
    (*

    The time when the Timestream table was created.

    *)
  5. retention_properties : retention_properties option;
    (*

    The retention duration for the memory store and magnetic store.

    *)
  6. table_status : table_status option;
    (*

    The current state of the table:

    • DELETING - The table is being deleted.
    • ACTIVE - The table is ready for use.
    *)
  7. database_name : resource_name option;
    (*

    The name of the Timestream database that contains this table.

    *)
  8. table_name : resource_name option;
    (*

    The name of the Timestream table.

    *)
  9. arn : string_ option;
    (*

    The Amazon Resource Name that uniquely identifies this table.

    *)
}

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.

type nonrec update_table_response = {
  1. table : table option;
    (*

    The updated Timestream table.

    *)
}
type nonrec update_table_request = {
  1. schema : schema option;
    (*

    The schema of the table.

    *)
  2. magnetic_store_write_properties : magnetic_store_write_properties option;
    (*

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

    *)
  3. retention_properties : retention_properties option;
    (*

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

    *)
  4. table_name : resource_name;
    (*

    The name of the Timestream table.

    *)
  5. database_name : resource_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec long = Smaws_Lib.CoreTypes.Int64.t
type nonrec database = {
  1. last_updated_time : date option;
    (*

    The last time that this database was updated.

    *)
  2. creation_time : date option;
    (*

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

    *)
  3. kms_key_id : string_value2048 option;
    (*

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

    *)
  4. table_count : long option;
    (*

    The total number of tables found within a Timestream database.

    *)
  5. database_name : resource_name option;
    (*

    The name of the Timestream database.

    *)
  6. arn : string_ option;
    (*

    The Amazon Resource Name that uniquely identifies this database.

    *)
}

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.

type nonrec update_database_response = {
  1. database : database option;
}
type nonrec update_database_request = {
  1. kms_key_id : string_value2048;
    (*

    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
    *)
  2. database_name : resource_name;
    (*

    The name of the database.

    *)
}
type nonrec service_quota_exceeded_exception = {
  1. message : error_message option;
}

The instance quota of resource exceeded for this account.

type nonrec untag_resource_response = unit
type nonrec amazon_resource_name = string
type nonrec tag_key = string
type nonrec tag_key_list = tag_key list
type nonrec untag_resource_request = {
  1. tag_keys : tag_key_list;
    (*

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

    *)
  2. resource_ar_n : amazon_resource_name;
    (*

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

    *)
}
type nonrec tag_resource_response = unit
type nonrec tag_value = string
type nonrec tag = {
  1. value : tag_value;
    (*

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

    *)
  2. key : tag_key;
    (*

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

    *)
}

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.

type nonrec tag_list = tag list
type nonrec tag_resource_request = {
  1. tags : tag_list;
    (*

    The tags to be assigned to the Timestream resource.

    *)
  2. resource_ar_n : amazon_resource_name;
    (*

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

    *)
}
type nonrec resume_batch_load_task_response = unit
type nonrec batch_load_task_id = string
type nonrec resume_batch_load_task_request = {
  1. task_id : batch_load_task_id;
    (*

    The ID of the batch load task to resume.

    *)
}
type nonrec list_tags_for_resource_response = {
  1. tags : tag_list option;
    (*

    The tags currently associated with the Timestream resource.

    *)
}
type nonrec list_tags_for_resource_request = {
  1. resource_ar_n : amazon_resource_name;
    (*

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

    *)
}
type nonrec table_list = table list
type nonrec list_tables_response = {
  1. next_token : string_ option;
    (*

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

    *)
  2. tables : table_list option;
    (*

    A list of tables.

    *)
}
type nonrec pagination_limit = int
type nonrec list_tables_request = {
  1. max_results : pagination_limit option;
    (*

    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.

    *)
  2. next_token : string_ option;
    (*

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

    *)
  3. database_name : resource_name option;
    (*

    The name of the Timestream database.

    *)
}
type nonrec database_list = database list
type nonrec list_databases_response = {
  1. next_token : string_ option;
    (*

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

    *)
  2. databases : database_list option;
    (*

    A list of database names.

    *)
}
type nonrec list_databases_request = {
  1. max_results : pagination_limit option;
    (*

    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.

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec batch_load_status =
  1. | PENDING_RESUME
  2. | PROGRESS_STOPPED
  3. | SUCCEEDED
  4. | FAILED
  5. | IN_PROGRESS
  6. | CREATED
type nonrec batch_load_task = {
  1. resumable_until : date option;
  2. last_updated_time : date option;
    (*

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

    *)
  3. creation_time : date option;
    (*

    The time when the Timestream batch load task was created.

    *)
  4. table_name : resource_name option;
    (*

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

    *)
  5. database_name : resource_name option;
    (*

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

    *)
  6. task_status : batch_load_status option;
    (*

    Status of the batch load task.

    *)
  7. task_id : batch_load_task_id option;
    (*

    The ID of the batch load task.

    *)
}

Details about a batch load task.

type nonrec batch_load_task_list = batch_load_task list
type nonrec list_batch_load_tasks_response = {
  1. batch_load_tasks : batch_load_task_list option;
    (*

    A list of batch load task details.

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec page_limit = int
type nonrec list_batch_load_tasks_request = {
  1. task_status : batch_load_status option;
    (*

    Status of the batch load task.

    *)
  2. max_results : page_limit option;
    (*

    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.

    *)
  3. next_token : string_ option;
    (*

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

    *)
}
type nonrec describe_table_response = {
  1. table : table option;
    (*

    The Timestream table.

    *)
}
type nonrec describe_table_request = {
  1. table_name : resource_name;
    (*

    The name of the Timestream table.

    *)
  2. database_name : resource_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec endpoint = {
  1. cache_period_in_minutes : long;
    (*

    The TTL for the endpoint, in minutes.

    *)
  2. address : string_;
    (*

    An endpoint address.

    *)
}

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

type nonrec endpoints = endpoint list
type nonrec describe_endpoints_response = {
  1. endpoints : endpoints;
    (*

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

    *)
}
type nonrec describe_endpoints_request = unit
type nonrec describe_database_response = {
  1. database : database option;
    (*

    The name of the Timestream table.

    *)
}
type nonrec describe_database_request = {
  1. database_name : resource_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec s3_object_key = string
type nonrec data_source_s3_configuration = {
  1. object_key_prefix : s3_object_key option;
  2. bucket_name : s3_bucket_name;
    (*

    The bucket name of the customer S3 bucket.

    *)
}
type nonrec string_value1 = string
type nonrec csv_configuration = {
  1. trim_white_space : boolean_ option;
    (*

    Specifies to trim leading and trailing white space.

    *)
  2. null_value : string_value256 option;
    (*

    Can be blank space (' ').

    *)
  3. quote_char : string_value1 option;
    (*

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

    *)
  4. escape_char : string_value1 option;
    (*

    Escape character can be one of

    *)
  5. column_separator : string_value1 option;
    (*

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

    *)
}

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

type nonrec batch_load_data_format =
  1. | CSV
type nonrec data_source_configuration = {
  1. data_format : batch_load_data_format;
    (*

    This is currently CSV.

    *)
  2. csv_configuration : csv_configuration option;
  3. data_source_s3_configuration : data_source_s3_configuration;
    (*

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

    *)
}

Defines configuration details about the data source.

type nonrec batch_load_progress_report = {
  1. bytes_metered : long option;
  2. file_failures : long option;
  3. record_ingestion_failures : long option;
  4. parse_failures : long option;
  5. records_ingested : long option;
  6. records_processed : long option;
}

Details about the progress of a batch load task.

type nonrec report_s3_configuration = {
  1. kms_key_id : string_value2048 option;
  2. encryption_option : s3_encryption_option option;
  3. object_key_prefix : s3_object_key_prefix option;
  4. bucket_name : s3_bucket_name;
}
type nonrec report_configuration = {
  1. report_s3_configuration : report_s3_configuration option;
    (*

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

    *)
}

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

type nonrec dimension_mapping = {
  1. destination_column : schema_name option;
  2. source_column : schema_name option;
}
type nonrec dimension_mappings = dimension_mapping list
type nonrec scalar_measure_value_type =
  1. | TIMESTAMP
  2. | VARCHAR
  3. | BOOLEAN
  4. | BIGINT
  5. | DOUBLE
type nonrec multi_measure_attribute_mapping = {
  1. measure_value_type : scalar_measure_value_type option;
  2. target_multi_measure_attribute_name : schema_name option;
  3. source_column : schema_name;
}
type nonrec multi_measure_attribute_mapping_list = multi_measure_attribute_mapping list
type nonrec multi_measure_mappings = {
  1. multi_measure_attribute_mappings : multi_measure_attribute_mapping_list;
  2. target_multi_measure_name : schema_name option;
}
type nonrec mixed_measure_mapping = {
  1. multi_measure_attribute_mappings : multi_measure_attribute_mapping_list option;
  2. measure_value_type : measure_value_type;
  3. target_measure_name : schema_name option;
  4. source_column : schema_name option;
  5. measure_name : schema_name option;
}
type nonrec mixed_measure_mapping_list = mixed_measure_mapping list
type nonrec data_model = {
  1. measure_name_column : string_value256 option;
  2. mixed_measure_mappings : mixed_measure_mapping_list option;
    (*

    Source to target mappings for measures.

    *)
  3. multi_measure_mappings : multi_measure_mappings option;
    (*

    Source to target mappings for multi-measure records.

    *)
  4. dimension_mappings : dimension_mappings;
    (*

    Source to target mappings for dimensions.

    *)
  5. time_unit : time_unit option;
    (*

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

    *)
  6. time_column : string_value256 option;
    (*

    Source column to be mapped to time.

    *)
}

Data model for a batch load task.

type nonrec data_model_s3_configuration = {
  1. object_key : s3_object_key option;
  2. bucket_name : s3_bucket_name option;
}
type nonrec data_model_configuration = {
  1. data_model_s3_configuration : data_model_s3_configuration option;
  2. data_model : data_model option;
}
type nonrec batch_load_task_description = {
  1. resumable_until : date option;
  2. last_updated_time : date option;
    (*

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

    *)
  3. creation_time : date option;
    (*

    The time when the Timestream batch load task was created.

    *)
  4. record_version : record_version option;
  5. task_status : batch_load_status option;
    (*

    Status of the batch load task.

    *)
  6. target_table_name : resource_name option;
  7. target_database_name : resource_name option;
  8. data_model_configuration : data_model_configuration option;
    (*

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

    *)
  9. report_configuration : report_configuration option;
    (*

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

    *)
  10. progress_report : batch_load_progress_report option;
  11. data_source_configuration : data_source_configuration option;
    (*

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

    *)
  12. error_message : string_value2048 option;
  13. task_id : batch_load_task_id option;
    (*

    The ID of the batch load task.

    *)
}

Details about a batch load task.

type nonrec describe_batch_load_task_response = {
  1. batch_load_task_description : batch_load_task_description;
    (*

    Description of the batch load task.

    *)
}
type nonrec describe_batch_load_task_request = {
  1. task_id : batch_load_task_id;
    (*

    The ID of the batch load task.

    *)
}
type nonrec delete_table_request = {
  1. table_name : resource_name;
    (*

    The name of the Timestream table to be deleted.

    *)
  2. database_name : resource_name;
    (*

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

    *)
}
type nonrec delete_database_request = {
  1. database_name : resource_name;
    (*

    The name of the Timestream database to be deleted.

    *)
}
type nonrec conflict_exception = {
  1. message : error_message;
}

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

type nonrec create_table_response = {
  1. table : table option;
    (*

    The newly created Timestream table.

    *)
}
type nonrec resource_create_api_name = string
type nonrec create_table_request = {
  1. schema : schema option;
    (*

    The schema of the table.

    *)
  2. magnetic_store_write_properties : magnetic_store_write_properties option;
    (*

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

    *)
  3. tags : tag_list option;
    (*

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

    *)
  4. retention_properties : retention_properties option;
    (*

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

    *)
  5. table_name : resource_create_api_name;
    (*

    The name of the Timestream table.

    *)
  6. database_name : resource_create_api_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec create_database_response = {
  1. database : database option;
    (*

    The newly created Timestream database.

    *)
}
type nonrec create_database_request = {
  1. tags : tag_list option;
    (*

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

    *)
  2. kms_key_id : string_value2048 option;
    (*

    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.

    *)
  3. database_name : resource_create_api_name;
    (*

    The name of the Timestream database.

    *)
}
type nonrec create_batch_load_task_response = {
  1. task_id : batch_load_task_id;
    (*

    The ID of the batch load task.

    *)
}
type nonrec client_request_token = string
type nonrec create_batch_load_task_request = {
  1. record_version : record_version option;
  2. target_table_name : resource_create_api_name;
    (*

    Target Timestream table for a batch load task.

    *)
  3. target_database_name : resource_create_api_name;
    (*

    Target Timestream database for a batch load task.

    *)
  4. report_configuration : report_configuration;
  5. data_source_configuration : data_source_configuration;
    (*

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

    *)
  6. data_model_configuration : data_model_configuration option;
  7. client_token : client_request_token option;
}