Class: AWSCDK::Chatbot::CfnCustomAction::CustomActionDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Chatbot::CfnCustomAction::CustomActionDefinitionProperty
- Defined in:
- chatbot/cfn_custom_action.rb
Overview
AWS Chatbot is now . Learn more > >
Typeattribute values remain unchanged.
The definition of the command to run when invoked as an alias or as an action button.
Instance Attribute Summary collapse
-
#command_text ⇒ String
readonly
The command string to run which may include variables by prefixing with a dollar sign ($).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command_text:) ⇒ CustomActionDefinitionProperty
constructor
A new instance of CustomActionDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(command_text:) ⇒ CustomActionDefinitionProperty
Returns a new instance of CustomActionDefinitionProperty.
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_text ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |