# WorkmailActionConfig

WorkmailAction configuration.

- Source: [`aws-ses/lib/receipt-rule-action.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ses/lib/receipt-rule-action.ts#L185)

## Example

TypeScript:

```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 workmailActionConfig: ses.WorkmailActionConfig = {
  organizationArn: 'organizationArn',

  // the properties below are optional
  topicArn: 'topicArn',
};
```

Python:

```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_config = ses.WorkmailActionConfig(
    organization_arn="organizationArn",

    # the properties below are optional
    topic_arn="topicArn"
)
```

Java:

```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.*;

WorkmailActionConfig workmailActionConfig = WorkmailActionConfig.builder()
        .organizationArn("organizationArn")

        // the properties below are optional
        .topicArn("topicArn")
        .build();
```

C# / .NET:

```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 workmailActionConfig = new WorkmailActionConfig {
    OrganizationArn = "organizationArn",

    // the properties below are optional
    TopicArn = "topicArn"
};
```

Golang:

```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"

workmailActionConfig := &WorkmailActionConfig{
	OrganizationArn: jsii.String("organizationArn"),

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

## Properties

- `organizationArn`: string (required) — The Amazon Resource Name (ARN) of the Amazon WorkMail organization.

- `topicArn`: string — The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called.

  **Default:** No notification is sent to SNS.
