Class: AWSCDK::Chatbot::CfnCustomAction::CustomActionDefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
chatbot/cfn_custom_action.rb

Overview

AWS Chatbot is now . Learn more > > Type attribute values remain unchanged.

The definition of the command to run when invoked as an alias or as an action button.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command_text:) ⇒ CustomActionDefinitionProperty

Returns a new instance of CustomActionDefinitionProperty.

Parameters:

  • command_text (String)

    The command string to run which may include variables by prefixing with a dollar sign ($).



696
697
698
699
# File 'chatbot/cfn_custom_action.rb', line 696

def initialize(command_text:)
  @command_text = command_text
  Jsii::Type.check_type(@command_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commandText")
end

Instance Attribute Details

#command_textString (readonly)

The command string to run which may include variables by prefixing with a dollar sign ($).



705
706
707
# File 'chatbot/cfn_custom_action.rb', line 705

def command_text
  @command_text
end

Class Method Details

.jsii_propertiesObject



707
708
709
710
711
# File 'chatbot/cfn_custom_action.rb', line 707

def self.jsii_properties
  {
    :command_text => "commandText",
  }
end

Instance Method Details

#to_jsiiObject



713
714
715
716
717
718
719
# File 'chatbot/cfn_custom_action.rb', line 713

def to_jsii
  result = {}
  result.merge!({
    "commandText" => @command_text,
  })
  result.compact
end