Skip to content
v2.277.0

CfnNotificationChannelProps Struct ​

Properties for defining a CfnNotificationChannel.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsguru as devopsguru } from 'aws-cdk-lib';
const cfnNotificationChannelProps: devopsguru.CfnNotificationChannelProps = {
  config: {
    filters: {
      messageTypes: ['messageTypes'],
      severities: ['severities'],
    },
    sns: {
      topicArn: 'topicArn',
    },
  },
};
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_devopsguru as devopsguru

cfn_notification_channel_props = devopsguru.CfnNotificationChannelProps(
    config=devopsguru.CfnNotificationChannel.NotificationChannelConfigProperty(
        filters=devopsguru.CfnNotificationChannel.NotificationFilterConfigProperty(
            message_types=["messageTypes"],
            severities=["severities"]
        ),
        sns=devopsguru.CfnNotificationChannel.SnsChannelConfigProperty(
            topic_arn="topicArn"
        )
    )
)
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.devopsguru.*;

CfnNotificationChannelProps cfnNotificationChannelProps = CfnNotificationChannelProps.builder()
        .config(NotificationChannelConfigProperty.builder()
                .filters(NotificationFilterConfigProperty.builder()
                        .messageTypes(List.of("messageTypes"))
                        .severities(List.of("severities"))
                        .build())
                .sns(SnsChannelConfigProperty.builder()
                        .topicArn("topicArn")
                        .build())
                .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.DevOpsGuru;

var cfnNotificationChannelProps = new CfnNotificationChannelProps {
    Config = new NotificationChannelConfigProperty {
        Filters = new NotificationFilterConfigProperty {
            MessageTypes = new [] { "messageTypes" },
            Severities = new [] { "severities" }
        },
        Sns = new SnsChannelConfigProperty {
            TopicArn = "topicArn"
        }
    }
};
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"

cfnNotificationChannelProps := &CfnNotificationChannelProps{
	Config: &NotificationChannelConfigProperty{
		Filters: &NotificationFilterConfigProperty{
			MessageTypes: []*string{
				jsii.String("messageTypes"),
			},
			Severities: []*string{
				jsii.String("severities"),
			},
		},
		Sns: &SnsChannelConfigProperty{
			TopicArn: jsii.String("topicArn"),
		},
	},
}

Properties ​

A `NotificationChannelConfig` object that contains information about configured notification channels.