Class: AWSCDK::DevOpsGuru::CfnNotificationChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsGuru::CfnNotificationChannelProps
- Defined in:
- dev_ops_guru/cfn_notification_channel_props.rb
Overview
Properties for defining a CfnNotificationChannel.
Instance Attribute Summary collapse
-
#config ⇒ AWSCDK::IResolvable, AWSCDK::DevOpsGuru::CfnNotificationChannel::NotificationChannelConfigProperty
readonly
A
NotificationChannelConfigobject that contains information about configured notification channels.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config:) ⇒ CfnNotificationChannelProps
constructor
A new instance of CfnNotificationChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(config:) ⇒ CfnNotificationChannelProps
Returns a new instance of CfnNotificationChannelProps.
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
#config ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |