Class: AWSCDK::CodeGuruProfiler::CfnProfilingGroup::ChannelProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_uri:, channel_id: nil) ⇒ ChannelProperty

Returns a new instance of ChannelProperty.

Parameters:

  • channel_uri (String)

    The channel URI.

  • channel_id (String, nil) (defaults to: nil)

    The channel ID.



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_idString? (readonly)

The channel ID.



647
648
649
# File 'code_guru_profiler/cfn_profiling_group.rb', line 647

def channel_id
  @channel_id
end

#channel_uriString (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_propertiesObject



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_jsiiObject



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