Class: AWSCDK::Interfaces::AWSSupportapp::SlackChannelConfigurationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_supportapp/slack_channel_configuration_reference.rb

Overview

A reference to a SlackChannelConfiguration resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_id:, team_id:) ⇒ SlackChannelConfigurationReference

Returns a new instance of SlackChannelConfigurationReference.

Parameters:

  • channel_id (String)

    The ChannelId of the SlackChannelConfiguration resource.

  • team_id (String)

    The TeamId of the SlackChannelConfiguration resource.



9
10
11
12
13
14
# File 'interfaces/aws_supportapp/slack_channel_configuration_reference.rb', line 9

def initialize(channel_id:, team_id:)
  @channel_id = channel_id
  Jsii::Type.check_type(@channel_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelId")
  @team_id = team_id
  Jsii::Type.check_type(@team_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "teamId")
end

Instance Attribute Details

#channel_idString (readonly)

The ChannelId of the SlackChannelConfiguration resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_supportapp/slack_channel_configuration_reference.rb', line 19

def channel_id
  @channel_id
end

#team_idString (readonly)

The TeamId of the SlackChannelConfiguration resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_supportapp/slack_channel_configuration_reference.rb', line 23

def team_id
  @team_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_supportapp/slack_channel_configuration_reference.rb', line 25

def self.jsii_properties
  {
    :channel_id => "channelId",
    :team_id => "teamId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_supportapp/slack_channel_configuration_reference.rb', line 32

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