start_mailbox_export_job
async
¶
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[AsyncWorkMailClientConfig] = 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/async_work_mail.py
5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 | |