Skip to content
v2.278.0

WorkmailActionProperty Struct ​

When included in a receipt rule, this action calls Amazon WorkMail and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

It usually isn't necessary to set this up manually, because Amazon WorkMail adds the rule automatically during its setup procedure.

For information using a receipt rule to call Amazon WorkMail, see the Amazon SES Developer Guide .

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 workmailActionProperty: ses.CfnReceiptRule.WorkmailActionProperty = {
  organizationArn: 'organizationArn',

  // the properties below are optional
  topicArn: 'topicArn',
};
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

workmail_action_property = ses.CfnReceiptRule.WorkmailActionProperty(
    organization_arn="organizationArn",

    # the properties below are optional
    topic_arn="topicArn"
)
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.*;

WorkmailActionProperty workmailActionProperty = WorkmailActionProperty.builder()
        .organizationArn("organizationArn")

        // the properties below are optional
        .topicArn("topicArn")
        .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 workmailActionProperty = new WorkmailActionProperty {
    OrganizationArn = "organizationArn",

    // the properties below are optional
    TopicArn = "topicArn"
};
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"

workmailActionProperty := &WorkmailActionProperty{
	OrganizationArn: jsii.String("organizationArn"),

	// the properties below are optional
	TopicArn: jsii.String("topicArn"),
}

Properties ​

organizationArnstringorganization_arnstrorganizationArnStringOrganizationArnstringOrganizationArn*string required #
The Amazon Resource Name (ARN) of the Amazon WorkMail organization. Amazon WorkMail ARNs use the following format:.
notes

arn:aws:workmail:<region>:<awsAccountId>:organization/<workmailOrganizationId>

You can find the ID of your organization by using the ListOrganizations operation in Amazon WorkMail. Amazon WorkMail organization IDs begin with " m- ", followed by a string of alphanumeric characters.

For information about Amazon WorkMail organizations, see the Amazon WorkMail Administrator Guide .

topicArnoptionalstringtopic_arnoptionalstrtopicArnoptionalStringTopicArnoptionalstringTopicArnoptional*string #
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called.
notes

You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.

For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .