Skip to content
v2.278.0

CfnNotificationProps Struct ​

Properties for defining a CfnNotification.

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 cfnNotificationProps: connect.CfnNotificationProps = {
  content: {
    deDe: 'deDe',
    enUs: 'enUs',
    esEs: 'esEs',
    frFr: 'frFr',
    idId: 'idId',
    itIt: 'itIt',
    jaJp: 'jaJp',
    koKr: 'koKr',
    ptBr: 'ptBr',
    zhCn: 'zhCn',
    zhTw: 'zhTw',
  },
  instanceArn: 'instanceArn',

  // the properties below are optional
  expiresAt: 'expiresAt',
  priority: 'priority',
  recipients: ['recipients'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_notification_props = connect.CfnNotificationProps(
    content=connect.CfnNotification.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"
    ),
    instance_arn="instanceArn",

    # the properties below are optional
    expires_at="expiresAt",
    priority="priority",
    recipients=["recipients"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnNotificationProps cfnNotificationProps = CfnNotificationProps.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())
        .instanceArn("instanceArn")

        // the properties below are optional
        .expiresAt("expiresAt")
        .priority("priority")
        .recipients(List.of("recipients"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnNotificationProps = new CfnNotificationProps {
    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"
    },
    InstanceArn = "instanceArn",

    // the properties below are optional
    ExpiresAt = "expiresAt",
    Priority = "priority",
    Recipients = new [] { "recipients" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnNotificationProps := &CfnNotificationProps{
	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"),
	},
	InstanceArn: jsii.String("instanceArn"),

	// the properties below are optional
	ExpiresAt: jsii.String("expiresAt"),
	Priority: jsii.String("priority"),
	Recipients: []*string{
		jsii.String("recipients"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

The content of a notification.
expiresAtoptionalstringexpires_atoptionalstrexpiresAtoptionalStringExpiresAtoptionalstringExpiresAtoptional*string #
The time a notification will expire.
instanceArnstringinstance_arnstrinstanceArnStringInstanceArnstringInstanceArn*string required #
The identifier of the Amazon Connect instance.
priorityoptionalstringpriorityoptionalstrpriorityoptionalStringPriorityoptionalstringPriorityoptional*string #
The priority of notification.

In the Amazon Connect console, when you create a notification, you are prompted to assign one of the following priorities: High (HIGH) or LOW (LOW)

recipientsoptionalstring[]recipientsoptionaltyping.List[str]recipientsoptionalList<String>Recipientsoptionalstring[]Recipientsoptional*[]*string #
The recipients of the notification.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
One or more tags.