Note:

You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . timestream-write ]

create-batch-load-task

Description

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 .

See also: AWS API Documentation

Synopsis

  create-batch-load-task
[--client-token <value>]
[--data-model-configuration <value>]
--data-source-configuration <value>
--report-configuration <value>
--target-database-name <value>
--target-table-name <value>
[--record-version <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]

Options

--client-token (string)

--data-model-configuration (structure)

DataModel -> (structure)

TimeColumn -> (string)

Source column to be mapped to time.

TimeUnit -> (string)

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 -> (list)

Source to target mappings for dimensions.

(structure)

SourceColumn -> (string)

DestinationColumn -> (string)

MultiMeasureMappings -> (structure)

Source to target mappings for multi-measure records.

TargetMultiMeasureName -> (string)

MultiMeasureAttributeMappings -> (list)

(structure)

SourceColumn -> (string)

TargetMultiMeasureAttributeName -> (string)

MeasureValueType -> (string)

MixedMeasureMappings -> (list)

Source to target mappings for measures.

(structure)

MeasureName -> (string)

SourceColumn -> (string)

TargetMeasureName -> (string)

MeasureValueType -> (string)

MultiMeasureAttributeMappings -> (list)

(structure)

SourceColumn -> (string)

TargetMultiMeasureAttributeName -> (string)

MeasureValueType -> (string)

MeasureNameColumn -> (string)

DataModelS3Configuration -> (structure)

BucketName -> (string)

ObjectKey -> (string)

JSON Syntax:

{
  "DataModel": {
    "TimeColumn": "string",
    "TimeUnit": "MILLISECONDS"|"SECONDS"|"MICROSECONDS"|"NANOSECONDS",
    "DimensionMappings": [
      {
        "SourceColumn": "string",
        "DestinationColumn": "string"
      }
      ...
    ],
    "MultiMeasureMappings": {
      "TargetMultiMeasureName": "string",
      "MultiMeasureAttributeMappings": [
        {
          "SourceColumn": "string",
          "TargetMultiMeasureAttributeName": "string",
          "MeasureValueType": "DOUBLE"|"BIGINT"|"BOOLEAN"|"VARCHAR"|"TIMESTAMP"
        }
        ...
      ]
    },
    "MixedMeasureMappings": [
      {
        "MeasureName": "string",
        "SourceColumn": "string",
        "TargetMeasureName": "string",
        "MeasureValueType": "DOUBLE"|"BIGINT"|"VARCHAR"|"BOOLEAN"|"TIMESTAMP"|"MULTI",
        "MultiMeasureAttributeMappings": [
          {
            "SourceColumn": "string",
            "TargetMultiMeasureAttributeName": "string",
            "MeasureValueType": "DOUBLE"|"BIGINT"|"BOOLEAN"|"VARCHAR"|"TIMESTAMP"
          }
          ...
        ]
      }
      ...
    ],
    "MeasureNameColumn": "string"
  },
  "DataModelS3Configuration": {
    "BucketName": "string",
    "ObjectKey": "string"
  }
}

--data-source-configuration (structure)

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

DataSourceS3Configuration -> (structure)

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

BucketName -> (string)

The bucket name of the customer S3 bucket.

ObjectKeyPrefix -> (string)

CsvConfiguration -> (structure)

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

ColumnSeparator -> (string)

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

EscapeChar -> (string)

Escape character can be one of

QuoteChar -> (string)

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

NullValue -> (string)

Can be blank space (' ').

TrimWhiteSpace -> (boolean)

Specifies to trim leading and trailing white space.

DataFormat -> (string)

This is currently CSV.

Shorthand Syntax:

DataSourceS3Configuration={BucketName=string,ObjectKeyPrefix=string},CsvConfiguration={ColumnSeparator=string,EscapeChar=string,QuoteChar=string,NullValue=string,TrimWhiteSpace=boolean},DataFormat=string

JSON Syntax:

{
  "DataSourceS3Configuration": {
    "BucketName": "string",
    "ObjectKeyPrefix": "string"
  },
  "CsvConfiguration": {
    "ColumnSeparator": "string",
    "EscapeChar": "string",
    "QuoteChar": "string",
    "NullValue": "string",
    "TrimWhiteSpace": true|false
  },
  "DataFormat": "CSV"
}

--report-configuration (structure)

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

ReportS3Configuration -> (structure)

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

BucketName -> (string)

ObjectKeyPrefix -> (string)

EncryptionOption -> (string)

KmsKeyId -> (string)

Shorthand Syntax:

ReportS3Configuration={BucketName=string,ObjectKeyPrefix=string,EncryptionOption=string,KmsKeyId=string}

JSON Syntax:

{
  "ReportS3Configuration": {
    "BucketName": "string",
    "ObjectKeyPrefix": "string",
    "EncryptionOption": "SSE_S3"|"SSE_KMS",
    "KmsKeyId": "string"
  }
}

--target-database-name (string)

Target Timestream database for a batch load task.

--target-table-name (string)

Target Timestream table for a batch load task.

--record-version (long)

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command's default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

Output

TaskId -> (string)

The ID of the batch load task.