Class: AWSCDK::Lex::CfnBot::AllowedInputTypesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::AllowedInputTypesProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies the allowed input types.
Instance Attribute Summary collapse
-
#allow_audio_input ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether audio input is allowed.
-
#allow_dtmf_input ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether DTMF input is allowed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allow_audio_input:, allow_dtmf_input:) ⇒ AllowedInputTypesProperty
constructor
A new instance of AllowedInputTypesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allow_audio_input:, allow_dtmf_input:) ⇒ AllowedInputTypesProperty
Returns a new instance of AllowedInputTypesProperty.
719 720 721 722 723 724 |
# File 'lex/cfn_bot.rb', line 719 def initialize(allow_audio_input:, allow_dtmf_input:) @allow_audio_input = allow_audio_input Jsii::Type.check_type(@allow_audio_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowAudioInput") @allow_dtmf_input = allow_dtmf_input Jsii::Type.check_type(@allow_dtmf_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowDtmfInput") end |
Instance Attribute Details
#allow_audio_input ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether audio input is allowed.
730 731 732 |
# File 'lex/cfn_bot.rb', line 730 def allow_audio_input @allow_audio_input end |
#allow_dtmf_input ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether DTMF input is allowed.
735 736 737 |
# File 'lex/cfn_bot.rb', line 735 def allow_dtmf_input @allow_dtmf_input end |
Class Method Details
.jsii_properties ⇒ Object
737 738 739 740 741 742 |
# File 'lex/cfn_bot.rb', line 737 def self.jsii_properties { :allow_audio_input => "allowAudioInput", :allow_dtmf_input => "allowDtmfInput", } end |
Instance Method Details
#to_jsii ⇒ Object
744 745 746 747 748 749 750 751 |
# File 'lex/cfn_bot.rb', line 744 def to_jsii result = {} result.merge!({ "allowAudioInput" => @allow_audio_input, "allowDtmfInput" => @allow_dtmf_input, }) result.compact end |