RuleActionProperty Struct
The action for a rule to take. Only one of the contained actions can be set.
This data type is a UNION, so only one of the following members can be specified when used or returned.
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';
declare const drop: any;
const ruleActionProperty: ses.CfnMailManagerRuleSet.RuleActionProperty = {
addHeader: {
headerName: 'headerName',
headerValue: 'headerValue',
},
archive: {
targetArchive: 'targetArchive',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
bounce: {
diagnosticMessage: 'diagnosticMessage',
roleArn: 'roleArn',
sender: 'sender',
smtpReplyCode: 'smtpReplyCode',
statusCode: 'statusCode',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
message: 'message',
},
deliverToMailbox: {
mailboxArn: 'mailboxArn',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
deliverToQBusiness: {
applicationId: 'applicationId',
indexId: 'indexId',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
drop: drop,
invokeLambda: {
functionArn: 'functionArn',
invocationType: 'invocationType',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
retryTimeMinutes: 123,
},
publishToSns: {
roleArn: 'roleArn',
topicArn: 'topicArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
encoding: 'encoding',
payloadType: 'payloadType',
},
relay: {
relay: 'relay',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
mailFrom: 'mailFrom',
},
replaceRecipient: {
replaceWith: ['replaceWith'],
},
send: {
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
writeToS3: {
roleArn: 'roleArn',
s3Bucket: 's3Bucket',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
s3Prefix: 's3Prefix',
s3SseKmsKeyId: 's3SseKmsKeyId',
},
};
Properties
addHeaderIResolvable | CfnMailManagerRuleSet.AddHeaderActionPropertyadd_headertyping.Union[IResolvable, AddHeaderActionProperty]addHeaderIResolvableAddHeaderIResolvableAddHeaderinterface{}#This action adds a header.
This can be used to add arbitrary email headers.
archiveIResolvable | CfnMailManagerRuleSet.ArchiveActionPropertyarchivetyping.Union[IResolvable, ArchiveActionProperty]archiveIResolvableArchiveIResolvableArchiveinterface{}#This action archives the email.
This can be used to deliver an email to an archive.
bounceIResolvable | CfnMailManagerRuleSet.BounceActionPropertybouncetyping.Union[IResolvable, BounceActionProperty]bounceIResolvableBounceIResolvableBounceinterface{}#deliverToMailboxIResolvable | CfnMailManagerRuleSet.DeliverToMailboxActionPropertydeliver_to_mailboxtyping.Union[IResolvable, DeliverToMailboxActionProperty]deliverToMailboxIResolvableDeliverToMailboxIResolvableDeliverToMailboxinterface{}#This action delivers an email to a WorkMail mailbox.
deliverToQBusinessIResolvable | CfnMailManagerRuleSet.DeliverToQBusinessActionPropertydeliver_to_q_businesstyping.Union[IResolvable, DeliverToQBusinessActionProperty]deliverToQBusinessIResolvableDeliverToQBusinessIResolvableDeliverToQBusinessinterface{}#This action delivers an email to an Amazon Q Business application for ingestion into its knowledge base.
This action terminates the evaluation of rules in the rule set.
invokeLambdaIResolvable | CfnMailManagerRuleSet.InvokeLambdaActionPropertyinvoke_lambdatyping.Union[IResolvable, InvokeLambdaActionProperty]invokeLambdaIResolvableInvokeLambdaIResolvableInvokeLambdainterface{}#publishToSnsIResolvable | CfnMailManagerRuleSet.SnsActionPropertypublish_to_snstyping.Union[IResolvable, SnsActionProperty]publishToSnsIResolvablePublishToSnsIResolvablePublishToSnsinterface{}#This action publishes the email content to an Amazon SNS topic.
relayIResolvable | CfnMailManagerRuleSet.RelayActionPropertyrelaytyping.Union[IResolvable, RelayActionProperty]relayIResolvableRelayIResolvableRelayinterface{}#This action relays the email to another SMTP server.
replaceRecipientIResolvable | CfnMailManagerRuleSet.ReplaceRecipientActionPropertyreplace_recipienttyping.Union[IResolvable, ReplaceRecipientActionProperty]replaceRecipientIResolvableReplaceRecipientIResolvableReplaceRecipientinterface{}#The action replaces certain or all recipients with a different set of recipients.
sendIResolvable | CfnMailManagerRuleSet.SendActionPropertysendtyping.Union[IResolvable, SendActionProperty]sendIResolvableSendIResolvableSendinterface{}#This action sends the email to the internet.
writeToS3IResolvable | CfnMailManagerRuleSet.S3ActionPropertywrite_to_s3typing.Union[IResolvable, S3ActionProperty]writeToS3IResolvableWriteToS3IResolvableWriteToS3interface{}#This action writes the MIME content of the email to an S3 bucket.