Class: AWSCDK::DevOpsAgent::CfnAssociation::SlackChannelProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dev_ops_agent/cfn_association.rb

Overview

Represents a Slack channel with its unique identifier and optional display name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_id:, channel_name: nil) ⇒ SlackChannelProperty

Returns a new instance of SlackChannelProperty.

Parameters:

  • channel_id (String)

    Slack channel ID.

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

    Slack channel name.



1626
1627
1628
1629
1630
1631
# File 'dev_ops_agent/cfn_association.rb', line 1626

def initialize(channel_id:, channel_name: nil)
  @channel_id = channel_id
  Jsii::Type.check_type(@channel_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelId")
  @channel_name = channel_name
  Jsii::Type.check_type(@channel_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelName") unless @channel_name.nil?
end

Instance Attribute Details

#channel_idString (readonly)

Slack channel ID.



1637
1638
1639
# File 'dev_ops_agent/cfn_association.rb', line 1637

def channel_id
  @channel_id
end

#channel_nameString? (readonly)

Slack channel name.



1642
1643
1644
# File 'dev_ops_agent/cfn_association.rb', line 1642

def channel_name
  @channel_name
end

Class Method Details

.jsii_propertiesObject



1644
1645
1646
1647
1648
1649
# File 'dev_ops_agent/cfn_association.rb', line 1644

def self.jsii_properties
  {
    :channel_id => "channelId",
    :channel_name => "channelName",
  }
end

Instance Method Details

#to_jsiiObject



1651
1652
1653
1654
1655
1656
1657
1658
# File 'dev_ops_agent/cfn_association.rb', line 1651

def to_jsii
  result = {}
  result.merge!({
    "channelId" => @channel_id,
    "channelName" => @channel_name,
  })
  result.compact
end