Class: AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationFilterConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_guru/cfn_notification_channel.rb

Overview

The filter configurations for the Amazon SNS notification topic you use with DevOps Guru.

You can choose to specify which events or message types to receive notifications for. You can also choose to specify which severity levels to receive notifications for.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message_types: nil, severities: nil) ⇒ NotificationFilterConfigProperty

Returns a new instance of NotificationFilterConfigProperty.

Parameters:

  • message_types (Array<String>, nil) (defaults to: nil)

    The events that you want to receive notifications for.

  • severities (Array<String>, nil) (defaults to: nil)

    The severity levels that you want to receive notifications for.



561
562
563
564
565
566
# File 'dev_ops_guru/cfn_notification_channel.rb', line 561

def initialize(message_types: nil, severities: nil)
  @message_types = message_types
  Jsii::Type.check_type(@message_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "messageTypes") unless @message_types.nil?
  @severities = severities
  Jsii::Type.check_type(@severities, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "severities") unless @severities.nil?
end

Instance Attribute Details

#message_typesArray<String>? (readonly)

The events that you want to receive notifications for.

For example, you can choose to receive notifications only when the severity level is upgraded or a new insight is created.



574
575
576
# File 'dev_ops_guru/cfn_notification_channel.rb', line 574

def message_types
  @message_types
end

#severitiesArray<String>? (readonly)

The severity levels that you want to receive notifications for.

For example, you can choose to receive notifications only for insights with HIGH and MEDIUM severity levels. For more information, see Understanding insight severities .



581
582
583
# File 'dev_ops_guru/cfn_notification_channel.rb', line 581

def severities
  @severities
end

Class Method Details

.jsii_propertiesObject



583
584
585
586
587
588
# File 'dev_ops_guru/cfn_notification_channel.rb', line 583

def self.jsii_properties
  {
    :message_types => "messageTypes",
    :severities => "severities",
  }
end

Instance Method Details

#to_jsiiObject



590
591
592
593
594
595
596
597
# File 'dev_ops_guru/cfn_notification_channel.rb', line 590

def to_jsii
  result = {}
  result.merge!({
    "messageTypes" => @message_types,
    "severities" => @severities,
  })
  result.compact
end