# GenerativeAISettingsProperty

Contains specifications about the generative AI capabilities from Amazon Bedrock that you can turn on for your bot.

- Source: Generated code
- Type last changed: v2.203.0 · 1 Jul 2025

## 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 generativeAISettingsProperty: lex.CfnBot.GenerativeAISettingsProperty = {
  buildtimeSettings: {
    descriptiveBotBuilderSpecification: {
      enabled: false,

      // the properties below are optional
      bedrockModelSpecification: {
        modelArn: 'modelArn',

        // the properties below are optional
        bedrockGuardrailConfiguration: {
          bedrockGuardrailIdentifier: 'bedrockGuardrailIdentifier',
          bedrockGuardrailVersion: 'bedrockGuardrailVersion',
        },
        bedrockModelCustomPrompt: 'bedrockModelCustomPrompt',
        bedrockTraceStatus: 'bedrockTraceStatus',
      },
    },
    sampleUtteranceGenerationSpecification: {
      enabled: false,

      // the properties below are optional
      bedrockModelSpecification: {
        modelArn: 'modelArn',

        // the properties below are optional
        bedrockGuardrailConfiguration: {
          bedrockGuardrailIdentifier: 'bedrockGuardrailIdentifier',
          bedrockGuardrailVersion: 'bedrockGuardrailVersion',
        },
        bedrockModelCustomPrompt: 'bedrockModelCustomPrompt',
        bedrockTraceStatus: 'bedrockTraceStatus',
      },
    },
  },
  runtimeSettings: {
    nluImprovementSpecification: {
      enabled: false,

      // the properties below are optional
      assistedNluMode: 'assistedNluMode',
      intentDisambiguationSettings: {
        enabled: false,

        // the properties below are optional
        customDisambiguationMessage: 'customDisambiguationMessage',
        maxDisambiguationIntents: 123,
      },
    },
    slotResolutionImprovementSpecification: {
      enabled: false,

      // the properties below are optional
      bedrockModelSpecification: {
        modelArn: 'modelArn',

        // the properties below are optional
        bedrockGuardrailConfiguration: {
          bedrockGuardrailIdentifier: 'bedrockGuardrailIdentifier',
          bedrockGuardrailVersion: 'bedrockGuardrailVersion',
        },
        bedrockModelCustomPrompt: 'bedrockModelCustomPrompt',
        bedrockTraceStatus: 'bedrockTraceStatus',
      },
    },
  },
};
```

## Properties

- `buildtimeSettings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.BuildtimeSettingsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.BuildtimeSettingsProperty.html)

- `runtimeSettings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.RuntimeSettingsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.RuntimeSettingsProperty.html)
