# PromptAttemptSpecificationProperty

Specifies the settings on a prompt attempt.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// 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

- `allowedInputTypes`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.AllowedInputTypesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.AllowedInputTypesProperty.html) (required) — Indicates the allowed input types of the prompt attempt.

- `allowInterrupt`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether the user can interrupt a speech prompt attempt from the bot.

- `audioAndDtmfInputSpecification`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.AudioAndDTMFInputSpecificationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.AudioAndDTMFInputSpecificationProperty.html) — Specifies the settings on audio and DTMF input.

- `textInputSpecification`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.TextInputSpecificationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.TextInputSpecificationProperty.html) — Specifies the settings on text input.
