S3ActionProperty Struct
Writes the MIME content of the email to an S3 bucket.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses
s3_action_property = ses.CfnMailManagerRuleSet.S3ActionProperty(
role_arn="roleArn",
s3_bucket="s3Bucket",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
s3_prefix="s3Prefix",
s3_sse_kms_key_id="s3SseKmsKeyId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
S3ActionProperty s3ActionProperty = S3ActionProperty.builder()
.roleArn("roleArn")
.s3Bucket("s3Bucket")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.s3Prefix("s3Prefix")
.s3SseKmsKeyId("s3SseKmsKeyId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var s3ActionProperty = new S3ActionProperty {
RoleArn = "roleArn",
S3Bucket = "s3Bucket",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
S3Prefix = "s3Prefix",
S3SseKmsKeyId = "s3SseKmsKeyId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
s3ActionProperty := &S3ActionProperty{
RoleArn: jsii.String("roleArn"),
S3Bucket: jsii.String("s3Bucket"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
S3Prefix: jsii.String("s3Prefix"),
S3SseKmsKeyId: jsii.String("s3SseKmsKeyId"),
}
Properties
actionFailurePolicyoptionalstringaction_failure_policyoptionalstractionFailurePolicyoptionalStringActionFailurePolicyoptionalstringActionFailurePolicyoptional*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.
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.
The bucket name of the S3 bucket to write to.
s3Prefixoptionalstrings3_prefixoptionalstrs3PrefixoptionalStringS3PrefixoptionalstringS3Prefixoptional*string #The S3 prefix to use for the write to the s3 bucket.
s3SseKmsKeyIdoptionalstrings3_sse_kms_key_idoptionalstrs3SseKmsKeyIdoptionalStringS3SseKmsKeyIdoptionalstringS3SseKmsKeyIdoptional*string #The KMS Key ID to use to encrypt the message in S3.