Class: AWSCDK::Chime::CfnAppInstanceBot::InvokedByProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
chime/cfn_app_instance_bot.rb

Overview

Specifies the type of message that triggers a bot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(standard_messages:, targeted_messages:) ⇒ InvokedByProperty

Returns a new instance of InvokedByProperty.

Parameters:

  • standard_messages (String)

    Sets standard messages as the bot trigger.

  • targeted_messages (String)

    Sets targeted messages as the bot trigger.



624
625
626
627
628
629
# File 'chime/cfn_app_instance_bot.rb', line 624

def initialize(standard_messages:, targeted_messages:)
  @standard_messages = standard_messages
  Jsii::Type.check_type(@standard_messages, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "standardMessages")
  @targeted_messages = targeted_messages
  Jsii::Type.check_type(@targeted_messages, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetedMessages")
end

Instance Attribute Details

#standard_messagesString (readonly)

Sets standard messages as the bot trigger.



635
636
637
# File 'chime/cfn_app_instance_bot.rb', line 635

def standard_messages
  @standard_messages
end

#targeted_messagesString (readonly)

Sets targeted messages as the bot trigger.



640
641
642
# File 'chime/cfn_app_instance_bot.rb', line 640

def targeted_messages
  @targeted_messages
end

Class Method Details

.jsii_propertiesObject



642
643
644
645
646
647
# File 'chime/cfn_app_instance_bot.rb', line 642

def self.jsii_properties
  {
    :standard_messages => "standardMessages",
    :targeted_messages => "targetedMessages",
  }
end

Instance Method Details

#to_jsiiObject



649
650
651
652
653
654
655
656
# File 'chime/cfn_app_instance_bot.rb', line 649

def to_jsii
  result = {}
  result.merge!({
    "standardMessages" => @standard_messages,
    "targetedMessages" => @targeted_messages,
  })
  result.compact
end