Class CfnNotificationChannel

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.249Z") @Stability(Stable) public class CfnNotificationChannel extends CfnResource implements IInspectable
A CloudFormation AWS::DevOpsGuru::NotificationChannel.

Adds a notification channel to DevOps Guru. A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.

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 .

Example:

 // 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.*;
 CfnNotificationChannel cfnNotificationChannel = CfnNotificationChannel.Builder.create(this, "MyCfnNotificationChannel")
         .config(NotificationChannelConfigProperty.builder()
                 .filters(NotificationFilterConfigProperty.builder()
                         .messageTypes(List.of("messageTypes"))
                         .severities(List.of("severities"))
                         .build())
                 .sns(SnsChannelConfigProperty.builder()
                         .topicArn("topicArn")
                         .build())
                 .build())
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnNotificationChannel

      protected CfnNotificationChannel(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnNotificationChannel

      protected CfnNotificationChannel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnNotificationChannel

      @Stability(Stable) public CfnNotificationChannel(@NotNull Construct scope, @NotNull String id, @NotNull CfnNotificationChannelProps props)
      Create a new AWS::DevOpsGuru::NotificationChannel.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the notification channel.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getConfig

      @Stability(Stable) @NotNull public Object getConfig()
      A NotificationChannelConfig object that contains information about configured notification channels.
    • setConfig

      @Stability(Stable) public void setConfig(@NotNull CfnNotificationChannel.NotificationChannelConfigProperty value)
      A NotificationChannelConfig object that contains information about configured notification channels.
    • setConfig

      @Stability(Stable) public void setConfig(@NotNull IResolvable value)
      A NotificationChannelConfig object that contains information about configured notification channels.