Interface CfnMailManagerRuleSet.RuleActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMailManagerRuleSet.RuleActionProperty.Jsii$Proxy
- Enclosing class:
CfnMailManagerRuleSet
This data type is a UNION, so only one of the following members can be specified when used or returned.
Example:
// 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.*;
Object drop;
RuleActionProperty ruleActionProperty = RuleActionProperty.builder()
.addHeader(AddHeaderActionProperty.builder()
.headerName("headerName")
.headerValue("headerValue")
.build())
.archive(ArchiveActionProperty.builder()
.targetArchive("targetArchive")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.deliverToMailbox(DeliverToMailboxActionProperty.builder()
.mailboxArn("mailboxArn")
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.deliverToQBusiness(DeliverToQBusinessActionProperty.builder()
.applicationId("applicationId")
.indexId("indexId")
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.drop(drop)
.publishToSns(SnsActionProperty.builder()
.roleArn("roleArn")
.topicArn("topicArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.encoding("encoding")
.payloadType("payloadType")
.build())
.relay(RelayActionProperty.builder()
.relay("relay")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.mailFrom("mailFrom")
.build())
.replaceRecipient(ReplaceRecipientActionProperty.builder()
.replaceWith(List.of("replaceWith"))
.build())
.send(SendActionProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.writeToS3(S3ActionProperty.builder()
.roleArn("roleArn")
.s3Bucket("s3Bucket")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.s3Prefix("s3Prefix")
.s3SseKmsKeyId("s3SseKmsKeyId")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMailManagerRuleSet.RuleActionPropertystatic final classAn implementation forCfnMailManagerRuleSet.RuleActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThis action adds a header.default ObjectThis action archives the email.default ObjectThis action delivers an email to a WorkMail mailbox.default ObjectThis action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.default ObjectgetDrop()This action terminates the evaluation of rules in the rule set.default ObjectThis action publishes the email content to an Amazon SNS topic.default ObjectgetRelay()This action relays the email to another SMTP server.default ObjectThe action replaces certain or all recipients with a different set of recipients.default ObjectgetSend()This action sends the email to the internet.default ObjectThis action writes the MIME content of the email to an S3 bucket.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAddHeader
This action adds a header.This can be used to add arbitrary email headers.
Returns union: either
IResolvableorCfnMailManagerRuleSet.AddHeaderActionProperty- See Also:
-
getArchive
This action archives the email.This can be used to deliver an email to an archive.
Returns union: either
IResolvableorCfnMailManagerRuleSet.ArchiveActionProperty- See Also:
-
getDeliverToMailbox
This action delivers an email to a WorkMail mailbox.Returns union: either
IResolvableorCfnMailManagerRuleSet.DeliverToMailboxActionProperty- See Also:
-
getDeliverToQBusiness
This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.Returns union: either
IResolvableorCfnMailManagerRuleSet.DeliverToQBusinessActionProperty- See Also:
-
getDrop
This action terminates the evaluation of rules in the rule set.- See Also:
-
getPublishToSns
This action publishes the email content to an Amazon SNS topic.Returns union: either
IResolvableorCfnMailManagerRuleSet.SnsActionProperty- See Also:
-
getRelay
This action relays the email to another SMTP server.Returns union: either
IResolvableorCfnMailManagerRuleSet.RelayActionProperty- See Also:
-
getReplaceRecipient
The action replaces certain or all recipients with a different set of recipients.Returns union: either
IResolvableorCfnMailManagerRuleSet.ReplaceRecipientActionProperty- See Also:
-
getSend
This action sends the email to the internet.Returns union: either
IResolvableorCfnMailManagerRuleSet.SendActionProperty- See Also:
-
getWriteToS3
This action writes the MIME content of the email to an S3 bucket.Returns union: either
IResolvableorCfnMailManagerRuleSet.S3ActionProperty- See Also:
-
builder
-