Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 Amazon WorkMail Administrator Guide.
Synopsis
- data StartMailboxExportJob = StartMailboxExportJob' {
- description :: Maybe Text
- clientToken :: Text
- organizationId :: Text
- entityId :: Text
- roleArn :: Text
- kmsKeyArn :: Text
- s3BucketName :: Text
- s3Prefix :: Text
- newStartMailboxExportJob :: Text -> Text -> Text -> Text -> Text -> Text -> Text -> StartMailboxExportJob
- startMailboxExportJob_description :: Lens' StartMailboxExportJob (Maybe Text)
- startMailboxExportJob_clientToken :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_organizationId :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_entityId :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_roleArn :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_kmsKeyArn :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_s3BucketName :: Lens' StartMailboxExportJob Text
- startMailboxExportJob_s3Prefix :: Lens' StartMailboxExportJob Text
- data StartMailboxExportJobResponse = StartMailboxExportJobResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- newStartMailboxExportJobResponse :: Int -> StartMailboxExportJobResponse
- startMailboxExportJobResponse_jobId :: Lens' StartMailboxExportJobResponse (Maybe Text)
- startMailboxExportJobResponse_httpStatus :: Lens' StartMailboxExportJobResponse Int
Creating a Request
data StartMailboxExportJob Source #
See: newStartMailboxExportJob
smart constructor.
StartMailboxExportJob' | |
|
Instances
newStartMailboxExportJob Source #
Create a value of StartMailboxExportJob
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:description:StartMailboxExportJob'
, startMailboxExportJob_description
- The mailbox export job description.
$sel:clientToken:StartMailboxExportJob'
, startMailboxExportJob_clientToken
- The idempotency token for the client request.
$sel:organizationId:StartMailboxExportJob'
, startMailboxExportJob_organizationId
- The identifier associated with the organization.
$sel:entityId:StartMailboxExportJob'
, startMailboxExportJob_entityId
- The identifier of the user or resource associated with the mailbox.
$sel:roleArn:StartMailboxExportJob'
, startMailboxExportJob_roleArn
- The ARN of the AWS Identity and Access Management (IAM) role that grants
write permission to the S3 bucket.
$sel:kmsKeyArn:StartMailboxExportJob'
, startMailboxExportJob_kmsKeyArn
- The Amazon Resource Name (ARN) of the symmetric AWS Key Management
Service (AWS KMS) key that encrypts the exported mailbox content.
$sel:s3BucketName:StartMailboxExportJob'
, startMailboxExportJob_s3BucketName
- The name of the S3 bucket.
$sel:s3Prefix:StartMailboxExportJob'
, startMailboxExportJob_s3Prefix
- The S3 bucket prefix.
Request Lenses
startMailboxExportJob_description :: Lens' StartMailboxExportJob (Maybe Text) Source #
The mailbox export job description.
startMailboxExportJob_clientToken :: Lens' StartMailboxExportJob Text Source #
The idempotency token for the client request.
startMailboxExportJob_organizationId :: Lens' StartMailboxExportJob Text Source #
The identifier associated with the organization.
startMailboxExportJob_entityId :: Lens' StartMailboxExportJob Text Source #
The identifier of the user or resource associated with the mailbox.
startMailboxExportJob_roleArn :: Lens' StartMailboxExportJob Text Source #
The ARN of the AWS Identity and Access Management (IAM) role that grants write permission to the S3 bucket.
startMailboxExportJob_kmsKeyArn :: Lens' StartMailboxExportJob Text Source #
The Amazon Resource Name (ARN) of the symmetric AWS Key Management Service (AWS KMS) key that encrypts the exported mailbox content.
startMailboxExportJob_s3BucketName :: Lens' StartMailboxExportJob Text Source #
The name of the S3 bucket.
startMailboxExportJob_s3Prefix :: Lens' StartMailboxExportJob Text Source #
The S3 bucket prefix.
Destructuring the Response
data StartMailboxExportJobResponse Source #
See: newStartMailboxExportJobResponse
smart constructor.
StartMailboxExportJobResponse' | |
|
Instances
newStartMailboxExportJobResponse Source #
Create a value of StartMailboxExportJobResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:StartMailboxExportJobResponse'
, startMailboxExportJobResponse_jobId
- The job ID.
$sel:httpStatus:StartMailboxExportJobResponse'
, startMailboxExportJobResponse_httpStatus
- The response's http status code.
Response Lenses
startMailboxExportJobResponse_jobId :: Lens' StartMailboxExportJobResponse (Maybe Text) Source #
The job ID.
startMailboxExportJobResponse_httpStatus :: Lens' StartMailboxExportJobResponse Int Source #
The response's http status code.