Class: AWSCDK::CodeGuruProfiler::CfnProfilingGroup::ChannelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeGuruProfiler::CfnProfilingGroup::ChannelProperty
- Defined in:
- code_guru_profiler/cfn_profiling_group.rb
Overview
Notification medium for users to get alerted for events that occur in application profile.
We support SNS topic as a notification channel.
Instance Attribute Summary collapse
-
#channel_id ⇒ String?
readonly
The channel ID.
-
#channel_uri ⇒ String
readonly
The channel URI.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_uri:, channel_id: nil) ⇒ ChannelProperty
constructor
A new instance of ChannelProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_uri:, channel_id: nil) ⇒ ChannelProperty
Returns a new instance of ChannelProperty.
631 632 633 634 635 636 |
# File 'code_guru_profiler/cfn_profiling_group.rb', line 631 def initialize(channel_uri:, channel_id: nil) @channel_uri = channel_uri Jsii::Type.check_type(@channel_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelUri") @channel_id = channel_id Jsii::Type.check_type(@channel_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelId") unless @channel_id.nil? end |
Instance Attribute Details
#channel_id ⇒ String? (readonly)
The channel ID.
647 648 649 |
# File 'code_guru_profiler/cfn_profiling_group.rb', line 647 def channel_id @channel_id end |
#channel_uri ⇒ String (readonly)
The channel URI.
642 643 644 |
# File 'code_guru_profiler/cfn_profiling_group.rb', line 642 def channel_uri @channel_uri end |
Class Method Details
.jsii_properties ⇒ Object
649 650 651 652 653 654 |
# File 'code_guru_profiler/cfn_profiling_group.rb', line 649 def self.jsii_properties { :channel_uri => "channelUri", :channel_id => "channelId", } end |
Instance Method Details
#to_jsii ⇒ Object
656 657 658 659 660 661 662 663 |
# File 'code_guru_profiler/cfn_profiling_group.rb', line 656 def to_jsii result = {} result.merge!({ "channelUri" => @channel_uri, "channelId" => @channel_id, }) result.compact end |