Skip to main content

batch_load_tasks

Creates, updates, deletes, gets or lists a batch_load_tasks resource.

Overview​

Namebatch_load_tasks
TypeResource
Idaws.timestream_write.batch_load_tasks

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time when the Timestream batch load task was created.
data_model_configurationobjectData model configuration for a batch load task. This contains details about where a data model for a batch load task is stored.
data_source_configurationobjectConfiguration details about the data source for a batch load task.
error_messagestring
last_updated_timestring (date-time)The time when the Timestream batch load task was last updated.
progress_reportobjectDetails about the progress of a batch load task.
record_versioninteger (int64)
report_configurationobjectReport configuration for a batch load task. This contains details about where error reports are stored.
resumable_untilstring (date-time)
target_database_namestring
target_table_namestring
task_idstringThe ID of the batch load task. (pattern: <code>[A-Z0-9]+</code>)
task_statusstringStatus of the batch load task. (CREATED, IN_PROGRESS, FAILED, SUCCEEDED, PROGRESS_STOPPED, PENDING_RESUME)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_batch_load_taskselectregionReturns information about the batch load task, including configurations, mappings, progress, and other details. Service quotas apply. See code sample for details.
list_batch_load_tasksselectregionProvides 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.
create_batch_load_taskinsertregion, DataSourceConfiguration, ReportConfiguration, TargetDatabaseName, TargetTableNameCreates 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

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

SELECT
creation_time,
data_model_configuration,
data_source_configuration,
error_message,
last_updated_time,
progress_report,
record_version,
report_configuration,
resumable_until,
target_database_name,
target_table_name,
task_id,
task_status
FROM aws.timestream_write.batch_load_tasks
WHERE region = '{{ region }}' -- required
;

INSERT examples​

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.

INSERT INTO aws.timestream_write.batch_load_tasks (
ClientToken,
DataModelConfiguration,
DataSourceConfiguration,
ReportConfiguration,
TargetDatabaseName,
TargetTableName,
RecordVersion,
region
)
SELECT
'{{ ClientToken }}',
'{{ DataModelConfiguration }}',
'{{ DataSourceConfiguration }}' /* required */,
'{{ ReportConfiguration }}' /* required */,
'{{ TargetDatabaseName }}' /* required */,
'{{ TargetTableName }}' /* required */,
{{ RecordVersion }},
'{{ region }}'
RETURNING
task_id
;