SendInAppNotificationActionProperty Struct
| 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 sendInAppNotificationActionProperty: connect.CfnRule.SendInAppNotificationActionProperty = {
content: {
deDe: 'deDe',
enUs: 'enUs',
esEs: 'esEs',
frFr: 'frFr',
idId: 'idId',
itIt: 'itIt',
jaJp: 'jaJp',
koKr: 'koKr',
ptBr: 'ptBr',
zhCn: 'zhCn',
zhTw: 'zhTw',
},
recipient: {
userArns: ['userArns'],
userTags: {
userTagsKey: 'userTags',
},
},
// the properties below are optional
exclusion: {
userArns: ['userArns'],
userTags: {
userTagsKey: 'userTags',
},
},
priority: 'priority',
};
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_in_app_notification_action_property = connect.CfnRule.SendInAppNotificationActionProperty(
content=connect.CfnRule.NotificationContentProperty(
de_de="deDe",
en_us="enUs",
es_es="esEs",
fr_fr="frFr",
id_id="idId",
it_it="itIt",
ja_jp="jaJp",
ko_kr="koKr",
pt_br="ptBr",
zh_cn="zhCn",
zh_tw="zhTw"
),
recipient=connect.CfnRule.InAppNotificationRecipientTypeProperty(
user_arns=["userArns"],
user_tags={
"user_tags_key": "userTags"
}
),
# the properties below are optional
exclusion=connect.CfnRule.InAppNotificationRecipientTypeProperty(
user_arns=["userArns"],
user_tags={
"user_tags_key": "userTags"
}
),
priority="priority"
)
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.*;
SendInAppNotificationActionProperty sendInAppNotificationActionProperty = SendInAppNotificationActionProperty.builder()
.content(NotificationContentProperty.builder()
.deDe("deDe")
.enUs("enUs")
.esEs("esEs")
.frFr("frFr")
.idId("idId")
.itIt("itIt")
.jaJp("jaJp")
.koKr("koKr")
.ptBr("ptBr")
.zhCn("zhCn")
.zhTw("zhTw")
.build())
.recipient(InAppNotificationRecipientTypeProperty.builder()
.userArns(List.of("userArns"))
.userTags(Map.of(
"userTagsKey", "userTags"))
.build())
// the properties below are optional
.exclusion(InAppNotificationRecipientTypeProperty.builder()
.userArns(List.of("userArns"))
.userTags(Map.of(
"userTagsKey", "userTags"))
.build())
.priority("priority")
.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 sendInAppNotificationActionProperty = new SendInAppNotificationActionProperty {
Content = new NotificationContentProperty {
DeDe = "deDe",
EnUs = "enUs",
EsEs = "esEs",
FrFr = "frFr",
IdId = "idId",
ItIt = "itIt",
JaJp = "jaJp",
KoKr = "koKr",
PtBr = "ptBr",
ZhCn = "zhCn",
ZhTw = "zhTw"
},
Recipient = new InAppNotificationRecipientTypeProperty {
UserArns = new [] { "userArns" },
UserTags = new Dictionary<string, string> {
{ "userTagsKey", "userTags" }
}
},
// the properties below are optional
Exclusion = new InAppNotificationRecipientTypeProperty {
UserArns = new [] { "userArns" },
UserTags = new Dictionary<string, string> {
{ "userTagsKey", "userTags" }
}
},
Priority = "priority"
};
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"
sendInAppNotificationActionProperty := &SendInAppNotificationActionProperty{
Content: &NotificationContentProperty{
DeDe: jsii.String("deDe"),
EnUs: jsii.String("enUs"),
EsEs: jsii.String("esEs"),
FrFr: jsii.String("frFr"),
IdId: jsii.String("idId"),
ItIt: jsii.String("itIt"),
JaJp: jsii.String("jaJp"),
KoKr: jsii.String("koKr"),
PtBr: jsii.String("ptBr"),
ZhCn: jsii.String("zhCn"),
ZhTw: jsii.String("zhTw"),
},
Recipient: &InAppNotificationRecipientTypeProperty{
UserArns: []*string{
jsii.String("userArns"),
},
UserTags: map[string]*string{
"userTagsKey": jsii.String("userTags"),
},
},
// the properties below are optional
Exclusion: &InAppNotificationRecipientTypeProperty{
UserArns: []*string{
jsii.String("userArns"),
},
UserTags: map[string]*string{
"userTagsKey": jsii.String("userTags"),
},
},
Priority: jsii.String("priority"),
}
Properties
contentIResolvable | CfnRule.contenttyping.Union[IResolvable, NotificationContentProperty]contentIResolvableContentIResolvableContentinterface{} required #exclusionoptionalIResolvable | CfnRule.exclusionoptionaltyping.Union[IResolvable, InAppNotificationRecipientTypeProperty]exclusionoptionalIResolvableExclusionoptionalIResolvableExclusionoptionalinterface{} #priorityoptionalstringpriorityoptionalstrpriorityoptionalStringPriorityoptionalstringPriorityoptional*string #The priority of the notification.
recipientIResolvable | CfnRule.recipienttyping.Union[IResolvable, InAppNotificationRecipientTypeProperty]recipientIResolvableRecipientIResolvableRecipientinterface{} required #