# S3ActionProperty

Writes the MIME content of the email to an S3 bucket.

- Source: Generated code
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const s3ActionProperty: ses.CfnMailManagerRuleSet.S3ActionProperty = {
  roleArn: 'roleArn',
  s3Bucket: 's3Bucket',

  // the properties below are optional
  actionFailurePolicy: 'actionFailurePolicy',
  s3Prefix: 's3Prefix',
  s3SseKmsKeyId: 's3SseKmsKeyId',
};
```

## Properties

- `actionFailurePolicy`: string — A policy that states what to do in the case of failure.

  The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3.

  This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.

- `s3Bucket`: string (required) — The bucket name of the S3 bucket to write to.

- `s3Prefix`: string — The S3 prefix to use for the write to the s3 bucket.

- `s3SseKmsKeyId`: string — The KMS Key ID to use to encrypt the message in S3.
