Class: AWSCDK::DevOpsGuru::CfnNotificationChannelProps

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

Overview

Properties for defining a CfnNotificationChannel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ CfnNotificationChannelProps

Returns a new instance of CfnNotificationChannelProps.

Parameters:



10
11
12
13
# File 'dev_ops_guru/cfn_notification_channel_props.rb', line 10

def initialize(config:)
  @config = config.is_a?(Hash) ? ::AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationChannelConfigProperty.new(**config.transform_keys(&:to_sym)) : config
  Jsii::Type.check_type(@config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZXZvcHNndXJ1LkNmbk5vdGlmaWNhdGlvbkNoYW5uZWwuTm90aWZpY2F0aW9uQ2hhbm5lbENvbmZpZ1Byb3BlcnR5In1dfX0=")), "config")
end

Instance Attribute Details

#configAWSCDK::IResolvable, AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationChannelConfigProperty (readonly)

A NotificationChannelConfig object that contains information about configured notification channels.



19
20
21
# File 'dev_ops_guru/cfn_notification_channel_props.rb', line 19

def config
  @config
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'dev_ops_guru/cfn_notification_channel_props.rb', line 21

def self.jsii_properties
  {
    :config => "config",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'dev_ops_guru/cfn_notification_channel_props.rb', line 27

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