# SendNotificationActionProperty

Information about the send notification action.

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const sendNotificationActionProperty: connect.CfnRule.SendNotificationActionProperty = {
  content: 'content',
  contentType: 'contentType',
  deliveryMethod: 'deliveryMethod',
  recipient: {
    userArns: ['userArns'],
    userTags: {
      userTagsKey: 'userTags',
    },
  },

  // the properties below are optional
  exclusion: {
    userArns: ['userArns'],
    userTags: {
      userTagsKey: 'userTags',
    },
  },
  subject: 'subject',
};
```

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_connect as connect

send_notification_action_property = connect.CfnRule.SendNotificationActionProperty(
    content="content",
    content_type="contentType",
    delivery_method="deliveryMethod",
    recipient=connect.CfnRule.NotificationRecipientTypeProperty(
        user_arns=["userArns"],
        user_tags={
            "user_tags_key": "userTags"
        }
    ),

    # the properties below are optional
    exclusion=connect.CfnRule.NotificationRecipientTypeProperty(
        user_arns=["userArns"],
        user_tags={
            "user_tags_key": "userTags"
        }
    ),
    subject="subject"
)
```

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

SendNotificationActionProperty sendNotificationActionProperty = SendNotificationActionProperty.builder()
        .content("content")
        .contentType("contentType")
        .deliveryMethod("deliveryMethod")
        .recipient(NotificationRecipientTypeProperty.builder()
                .userArns(List.of("userArns"))
                .userTags(Map.of(
                        "userTagsKey", "userTags"))
                .build())

        // the properties below are optional
        .exclusion(NotificationRecipientTypeProperty.builder()
                .userArns(List.of("userArns"))
                .userTags(Map.of(
                        "userTagsKey", "userTags"))
                .build())
        .subject("subject")
        .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.Connect;

var sendNotificationActionProperty = new SendNotificationActionProperty {
    Content = "content",
    ContentType = "contentType",
    DeliveryMethod = "deliveryMethod",
    Recipient = new NotificationRecipientTypeProperty {
        UserArns = new [] { "userArns" },
        UserTags = new Dictionary<string, string> {
            { "userTagsKey", "userTags" }
        }
    },

    // the properties below are optional
    Exclusion = new NotificationRecipientTypeProperty {
        UserArns = new [] { "userArns" },
        UserTags = new Dictionary<string, string> {
            { "userTagsKey", "userTags" }
        }
    },
    Subject = "subject"
};
```

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"

sendNotificationActionProperty := &SendNotificationActionProperty{
	Content: jsii.String("content"),
	ContentType: jsii.String("contentType"),
	DeliveryMethod: jsii.String("deliveryMethod"),
	Recipient: &NotificationRecipientTypeProperty{
		UserArns: []*string{
			jsii.String("userArns"),
		},
		UserTags: map[string]*string{
			"userTagsKey": jsii.String("userTags"),
		},
	},

	// the properties below are optional
	Exclusion: &NotificationRecipientTypeProperty{
		UserArns: []*string{
			jsii.String("userArns"),
		},
		UserTags: map[string]*string{
			"userTagsKey": jsii.String("userTags"),
		},
	},
	Subject: jsii.String("subject"),
}
```

## Properties

- `content`: string (required) — Notification content.

  Supports variable injection. For more information, see [JSONPath reference](https://docs.aws.amazon.com/connect/latest/adminguide/contact-lens-variable-injection.html) in the *Connect Customer Administrators Guide* .

- `contentType`: string (required) — Content type format.

  *Allowed value* : `PLAIN_TEXT`

- `deliveryMethod`: string (required) — Notification delivery method.

  *Allowed value* : `EMAIL`

- `exclusion`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRule.NotificationRecipientTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnRule.NotificationRecipientTypeProperty.html) — The type of notification recipient.

- `recipient`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRule.NotificationRecipientTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnRule.NotificationRecipientTypeProperty.html) (required) — Notification recipient.

- `subject`: string — The subject of the email if the delivery method is `EMAIL` .

  Supports variable injection. For more information, see [JSONPath reference](https://docs.aws.amazon.com/connect/latest/adminguide/contact-lens-variable-injection.html) in the *Connect Customer Administrators Guide* .
