aws-cdk-lib.aws_lex.CfnBot.PromptAttemptSpecificationProperty

interface PromptAttemptSpecificationProperty

LanguageType name
.NETAmazon.CDK.AWS.Lex.CfnBot.PromptAttemptSpecificationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslex#CfnBot_PromptAttemptSpecificationProperty
Javasoftware.amazon.awscdk.services.lex.CfnBot.PromptAttemptSpecificationProperty
Pythonaws_cdk.aws_lex.CfnBot.PromptAttemptSpecificationProperty
TypeScript aws-cdk-lib » aws_lex » CfnBot » PromptAttemptSpecificationProperty

Specifies the settings on a prompt attempt.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const promptAttemptSpecificationProperty: lex.CfnBot.PromptAttemptSpecificationProperty = {
  allowedInputTypes: {
    allowAudioInput: false,
    allowDtmfInput: false,
  },

  // the properties below are optional
  allowInterrupt: false,
  audioAndDtmfInputSpecification: {
    startTimeoutMs: 123,

    // the properties below are optional
    audioSpecification: {
      endTimeoutMs: 123,
      maxLengthMs: 123,
    },
    dtmfSpecification: {
      deletionCharacter: 'deletionCharacter',
      endCharacter: 'endCharacter',
      endTimeoutMs: 123,
      maxLength: 123,
    },
  },
  textInputSpecification: {
    startTimeoutMs: 123,
  },
};

Properties

NameTypeDescription
allowedInputTypesIResolvable | AllowedInputTypesPropertyIndicates the allowed input types of the prompt attempt.
allowInterrupt?boolean | IResolvableIndicates whether the user can interrupt a speech prompt attempt from the bot.
audioAndDtmfInputSpecification?IResolvable | AudioAndDTMFInputSpecificationPropertySpecifies the settings on audio and DTMF input.
textInputSpecification?IResolvable | TextInputSpecificationPropertySpecifies the settings on text input.

allowedInputTypes

Type: IResolvable | AllowedInputTypesProperty

Indicates the allowed input types of the prompt attempt.


allowInterrupt?

Type: boolean | IResolvable (optional)

Indicates whether the user can interrupt a speech prompt attempt from the bot.


audioAndDtmfInputSpecification?

Type: IResolvable | AudioAndDTMFInputSpecificationProperty (optional)

Specifies the settings on audio and DTMF input.


textInputSpecification?

Type: IResolvable | TextInputSpecificationProperty (optional)

Specifies the settings on text input.