Class: AWSCDK::Lex::CfnBot::PromptAttemptSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::PromptAttemptSpecificationProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies the settings on a prompt attempt.
Instance Attribute Summary collapse
-
#allow_interrupt ⇒ Boolean, ...
readonly
Indicates whether the user can interrupt a speech prompt attempt from the bot.
-
#allowed_input_types ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::AllowedInputTypesProperty
readonly
Indicates the allowed input types of the prompt attempt.
-
#audio_and_dtmf_input_specification ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the settings on audio and DTMF input.
-
#text_input_specification ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the settings on text input.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_input_types:, allow_interrupt: nil, audio_and_dtmf_input_specification: nil, text_input_specification: nil) ⇒ PromptAttemptSpecificationProperty
constructor
A new instance of PromptAttemptSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_input_types:, allow_interrupt: nil, audio_and_dtmf_input_specification: nil, text_input_specification: nil) ⇒ PromptAttemptSpecificationProperty
Returns a new instance of PromptAttemptSpecificationProperty.
4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 |
# File 'lex/cfn_bot.rb', line 4497 def initialize(allowed_input_types:, allow_interrupt: nil, audio_and_dtmf_input_specification: nil, text_input_specification: nil) @allowed_input_types = allowed_input_types.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::AllowedInputTypesProperty.new(**allowed_input_types.transform_keys(&:to_sym)) : allowed_input_types Jsii::Type.check_type(@allowed_input_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkFsbG93ZWRJbnB1dFR5cGVzUHJvcGVydHkifV19fQ==")), "allowedInputTypes") @allow_interrupt = allow_interrupt Jsii::Type.check_type(@allow_interrupt, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowInterrupt") unless @allow_interrupt.nil? @audio_and_dtmf_input_specification = audio_and_dtmf_input_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::AudioAndDTMFInputSpecificationProperty.new(**audio_and_dtmf_input_specification.transform_keys(&:to_sym)) : audio_and_dtmf_input_specification Jsii::Type.check_type(@audio_and_dtmf_input_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkF1ZGlvQW5kRFRNRklucHV0U3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "audioAndDtmfInputSpecification") unless @audio_and_dtmf_input_specification.nil? @text_input_specification = text_input_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::TextInputSpecificationProperty.new(**text_input_specification.transform_keys(&:to_sym)) : text_input_specification Jsii::Type.check_type(@text_input_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlRleHRJbnB1dFNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19")), "textInputSpecification") unless @text_input_specification.nil? end |
Instance Attribute Details
#allow_interrupt ⇒ Boolean, ... (readonly)
Indicates whether the user can interrupt a speech prompt attempt from the bot.
4517 4518 4519 |
# File 'lex/cfn_bot.rb', line 4517 def allow_interrupt @allow_interrupt end |
#allowed_input_types ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::AllowedInputTypesProperty (readonly)
Indicates the allowed input types of the prompt attempt.
4512 4513 4514 |
# File 'lex/cfn_bot.rb', line 4512 def allowed_input_types @allowed_input_types end |
#audio_and_dtmf_input_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the settings on audio and DTMF input.
4522 4523 4524 |
# File 'lex/cfn_bot.rb', line 4522 def audio_and_dtmf_input_specification @audio_and_dtmf_input_specification end |
#text_input_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the settings on text input.
4527 4528 4529 |
# File 'lex/cfn_bot.rb', line 4527 def text_input_specification @text_input_specification end |
Class Method Details
.jsii_properties ⇒ Object
4529 4530 4531 4532 4533 4534 4535 4536 |
# File 'lex/cfn_bot.rb', line 4529 def self.jsii_properties { :allowed_input_types => "allowedInputTypes", :allow_interrupt => "allowInterrupt", :audio_and_dtmf_input_specification => "audioAndDtmfInputSpecification", :text_input_specification => "textInputSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 |
# File 'lex/cfn_bot.rb', line 4538 def to_jsii result = {} result.merge!({ "allowedInputTypes" => @allowed_input_types, "allowInterrupt" => @allow_interrupt, "audioAndDtmfInputSpecification" => @audio_and_dtmf_input_specification, "textInputSpecification" => @text_input_specification, }) result.compact end |