start_mailbox_export_job
¶
start_mailbox_export_job(
client_token: IdempotencyClientToken,
organization_id: OrganizationId,
entity_id: EntityIdentifier,
role_arn: RoleArn,
kms_key_arn: KmsKeyArn,
s3_bucket_name: S3BucketName,
s3_prefix: S3ObjectKey,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
description: Optional[Description] = None,
) -> StartMailboxExportJobResponse
Starts a mailbox export job to export MIME-format email messages and calendar items from the specified mailbox to the specified Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Exporting mailbox content in the WorkMail Administrator Guide.
Parameters:
-
client_token(IdempotencyClientToken) –The idempotency token for the client request.
-
organization_id(OrganizationId) –The identifier associated with the organization.
-
entity_id(EntityIdentifier) –The identifier of the user or resource associated with the mailbox.
The identifier can accept UserId or ResourceId, Username or Resourcename, or email. The following identity formats are available:
-
Entity ID: 12345678-1234-1234-1234-123456789012, r-0123456789a0123456789b0123456789 , or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: [email protected]
-
Entity name: entity
-
-
description(Optional[Description], default:None) –The mailbox export job description.
-
role_arn(RoleArn) –The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.
-
kms_key_arn(KmsKeyArn) –The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.
-
s3_bucket_name(S3BucketName) –The name of the S3 bucket.
-
s3_prefix(S3ObjectKey) –The S3 bucket prefix.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
LimitExceededException–The request exceeds the limit of the resource.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 | |