Skip to content
v2.277.0

NotificationChannelConfigProperty Struct ​

Information about notification channels you have configured with DevOps Guru.

The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).

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 notificationChannelConfigProperty: devopsguru.CfnNotificationChannel.NotificationChannelConfigProperty = {
  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

notification_channel_config_property = 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.*;

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

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

Properties ​

filtersoptionalIResolvable | CfnNotificationChannel.NotificationFilterConfigPropertyfiltersoptionaltyping.Union[IResolvable, NotificationFilterConfigProperty]filtersoptionalIResolvableFiltersoptionalIResolvableFiltersoptionalinterface{} #
The filter configurations for the Amazon SNS notification topic you use with DevOps Guru.

If you do not provide filter configurations, the default configurations are to receive notifications for all message types of High or Medium severity.

snsoptionalIResolvable | CfnNotificationChannel.SnsChannelConfigPropertysnsoptionaltyping.Union[IResolvable, SnsChannelConfigProperty]snsoptionalIResolvableSnsoptionalIResolvableSnsoptionalinterface{} #
Information about a notification channel configured in DevOps Guru to send notifications when insights are created.
notes

If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics .

If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics .