SendNotificationActionProperty Struct
Information about the send notification action.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
Notification content.
Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .
Content type format.
Allowed value : PLAIN_TEXT
deliveryMethodstringdelivery_methodstrdeliveryMethodStringDeliveryMethodstringDeliveryMethod*string required #Notification delivery method.
Allowed value : EMAIL
exclusionoptionalIResolvable | CfnRule.exclusionoptionaltyping.Union[IResolvable, NotificationRecipientTypeProperty]exclusionoptionalIResolvableExclusionoptionalIResolvableExclusionoptionalinterface{} #The type of notification recipient.
recipientIResolvable | CfnRule.recipienttyping.Union[IResolvable, NotificationRecipientTypeProperty]recipientIResolvableRecipientIResolvableRecipientinterface{} required #Notification recipient.
subjectoptionalstringsubjectoptionalstrsubjectoptionalStringSubjectoptionalstringSubjectoptional*string #The subject of the email if the delivery method is `EMAIL` .
Supports variable injection. For more information, see JSONPath reference in the Connect Customer Administrators Guide .