Class: AWSCDK::Lex::CfnBot::AllowedInputTypesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Specifies the allowed input types.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allow_audio_input:, allow_dtmf_input:) ⇒ AllowedInputTypesProperty

Returns a new instance of AllowedInputTypesProperty.

Parameters:



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_inputBoolean, 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_inputBoolean, 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_propertiesObject



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_jsiiObject



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