Class: AWSCDK::DevOpsAgent::CfnAssociation::SlackChannelProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DevOpsAgent::CfnAssociation::SlackChannelProperty
- 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
-
#channel_id ⇒ String
readonly
Slack channel ID.
-
#channel_name ⇒ String?
readonly
Slack channel name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_id:, channel_name: nil) ⇒ SlackChannelProperty
constructor
A new instance of SlackChannelProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_id:, channel_name: nil) ⇒ SlackChannelProperty
Returns a new instance of SlackChannelProperty.
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_id ⇒ String (readonly)
Slack channel ID.
1637 1638 1639 |
# File 'dev_ops_agent/cfn_association.rb', line 1637 def channel_id @channel_id end |
#channel_name ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |