Skip to content

aws.sesv2.get_import_job

Example SQL Queries

SELECT * FROM
aws.sesv2.get_import_job
WHERE
"job_id" = 'VALUE';

Description

Provides information about an import job.

Table Definition

Column NameColumn Data Type
job_id Required Input Column

A string that represents the import job ID.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

completed_timestamp

The time stamp of when the import job was completed.

TIMESTAMP_S
created_timestamp

The time stamp of when the import job was created.

TIMESTAMP_S
failed_records_count

The number of records that failed processing because of invalid input or other reasons.

BIGINT
failure_info

The failure details about an import job.

STRUCT(
"failed_records_s3_url" VARCHAR,
"error_message" VARCHAR
)
Show child fields
failure_info.error_message

A message about why the job failed.

failure_info.failed_records_s3_url

An Amazon S3 pre-signed URL that contains all the failed records and related information.

import_data_source

The data source of the import job.

STRUCT(
"s3_url" VARCHAR,
"data_format" VARCHAR
)
Show child fields
import_data_source.data_format

The data format of the import job's data source.

import_data_source.s3_url

An Amazon S3 URL in the format s3://<bucket_name>/<object>.

import_destination

The destination of the import job.

STRUCT(
"suppression_list_destination" STRUCT(
"suppression_list_import_action" VARCHAR
),
"contact_list_destination" STRUCT(
"contact_list_name" VARCHAR,
"contact_list_import_action" VARCHAR
)
)
Show child fields
import_destination.contact_list_destination

An object that contains the action of the import job towards a contact list.

Show child fields
import_destination.contact_list_destination.contact_list_import_action

>The type of action to perform on the addresses. The following are the possible values:

  • PUT: add the addresses to the contact list. If the record already exists, it will override it with the new value.

  • DELETE: remove the addresses from the contact list.

import_destination.contact_list_destination.contact_list_name

The name of the contact list.

import_destination.suppression_list_destination

An object that contains the action of the import job towards suppression list.

Show child fields
import_destination.suppression_list_destination.suppression_list_import_action

The type of action to perform on the address. The following are possible values:

  • PUT: add the addresses to the suppression list. If the record already exists, it will override it with the new value.

  • DELETE: remove the addresses from the suppression list.

job_status

The status of the import job.

VARCHAR
processed_records_count

The current number of records processed.

BIGINT