Skip to main content

imports

Creates, updates, deletes, gets or lists an imports resource.

Overview

Nameimports
TypeResource
Idaws.dynamodb.imports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
client_tokenstringThe client token that was provided for the import task. Reusing the client token on retry makes a call to ImportTable idempotent. (pattern: <code>^[^$]+$</code>)
cloud_watch_log_group_arnstringThe Amazon Resource Number (ARN) of the Cloudwatch Log Group associated with the target table.
end_timestring (date-time)The time at which the creation of the table associated with this import task completed.
error_countinteger (int64)The number of errors occurred on importing the source file into the target table.
failure_codestringThe error code corresponding to the failure that the import job ran into during execution.
failure_messagestringThe error message corresponding to the failure that the import job ran into during execution.
import_arnstringThe Amazon Resource Number (ARN) corresponding to the import request.
import_statusstringThe status of the import. (IN_PROGRESS, COMPLETED, CANCELLING, CANCELLED, FAILED)
imported_item_countinteger (int64)The number of items successfully imported into the new table.
input_compression_typestringThe compression options for the data that has been imported into the target table. The values are NONE, GZIP, or ZSTD. (GZIP, ZSTD, NONE)
input_formatstringThe format of the source data going into the target table. (DYNAMODB_JSON, ION, CSV)
input_format_optionsobjectThe format options for the data that was imported into the target table. There is one value, CsvOption.
processed_item_countinteger (int64)The total number of items processed from the source file.
processed_size_bytesinteger (int64)The total size of data processed from the source file, in Bytes.
s3_bucket_sourceobjectValues for the S3 bucket the source file is imported from. Includes bucket name (required), key prefix (optional) and bucket account owner ID (optional).
start_timestring (date-time)The time when this import task started.
table_arnstringThe Amazon Resource Number (ARN) of the table being imported into.
table_creation_parametersobjectThe parameters for the new table that is being imported into.
table_idstringThe table id corresponding to the table created by import table process. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_importselectregionRepresents the properties of the import.
list_importsselectregionLists completed imports within the past 90 days.

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

Represents the properties of the import.

SELECT
client_token,
cloud_watch_log_group_arn,
end_time,
error_count,
failure_code,
failure_message,
import_arn,
import_status,
imported_item_count,
input_compression_type,
input_format,
input_format_options,
processed_item_count,
processed_size_bytes,
s3_bucket_source,
start_time,
table_arn,
table_creation_parameters,
table_id
FROM aws.dynamodb.imports
WHERE region = '{{ region }}' -- required
;