Skip to main content

mailbox_export_jobs

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

Overview

Namemailbox_export_jobs
TypeResource
Idaws.workmail.mailbox_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe mailbox export job description. (pattern: <code>[\S\s]*</code>)
end_timestring (date-time)The mailbox export job end timestamp.
entity_idstringThe identifier of the user or resource associated with the mailbox.
error_infostringError information for failed mailbox export jobs. (pattern: <code>[\S\s]*</code>)
estimated_progressintegerThe estimated progress of the mailbox export job, in percentage points.
kms_key_arnstringThe Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content. (pattern: <code>arn:aws:kms:[a-z0-9-]*:[a-z0-9-]+:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
role_arnstringThe ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the Amazon Simple Storage Service (Amazon S3) bucket. (pattern: <code>arn:aws:iam:[a-z0-9-]*:[a-z0-9-]+:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}</code>)
s3_bucket_namestringThe name of the S3 bucket. (pattern: <code>[A-Za-z0-9.-]+</code>)
s3_pathstringThe path to the S3 bucket and file that the mailbox export job is exporting to. (pattern: <code>[A-Za-z0-9!_.*'()/-]+</code>)
s3_prefixstringThe S3 bucket prefix. (pattern: <code>[A-Za-z0-9!_.*'()/-]+</code>)
start_timestring (date-time)The mailbox export job start timestamp.
statestringThe state of the mailbox export job. (RUNNING, COMPLETED, FAILED, CANCELLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_mailbox_export_jobselectregionDescribes the current status of a mailbox export job.
list_mailbox_export_jobsselectregionLists the mailbox export jobs started for the specified organization within the last seven 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

Describes the current status of a mailbox export job.

SELECT
description,
end_time,
entity_id,
error_info,
estimated_progress,
kms_key_arn,
role_arn,
s3_bucket_name,
s3_path,
s3_prefix,
start_time,
state
FROM aws.workmail.mailbox_export_jobs
WHERE region = '{{ region }}' -- required
;