Class CfnMailManagerRuleSet.S3ActionProperty
Writes the MIME content of the email to an S3 bucket.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMailManagerRuleSet.S3ActionProperty : CfnMailManagerRuleSet.IS3ActionProperty
Syntax (vb)
Public Class CfnMailManagerRuleSet.S3ActionProperty Implements CfnMailManagerRuleSet.IS3ActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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"
};
Synopsis
Constructors
S3ActionProperty() | Writes the MIME content of the email to an S3 bucket. |
Properties
ActionFailurePolicy | A policy that states what to do in the case of failure. |
RoleArn | The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. |
S3Bucket | The bucket name of the S3 bucket to write to. |
S3Prefix | The S3 prefix to use for the write to the s3 bucket. |
S3SseKmsKeyId | The KMS Key ID to use to encrypt the message in S3. |
Constructors
S3ActionProperty()
Writes the MIME content of the email to an S3 bucket.
public S3ActionProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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"
};
Properties
ActionFailurePolicy
A policy that states what to do in the case of failure.
public string? ActionFailurePolicy { get; set; }
Property Value
Remarks
The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.
RoleArn
The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3.
public string RoleArn { get; set; }
Property Value
Remarks
This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.
S3Bucket
The bucket name of the S3 bucket to write to.
public string S3Bucket { get; set; }
Property Value
Remarks
S3Prefix
The S3 prefix to use for the write to the s3 bucket.
public string? S3Prefix { get; set; }
Property Value
Remarks
S3SseKmsKeyId
The KMS Key ID to use to encrypt the message in S3.
public string? S3SseKmsKeyId { get; set; }