# BedrockModelSpecificationProperty

Contains information about the Amazon Bedrock model used to interpret the prompt used in descriptive bot building.

- Source: Generated at build time
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

TypeScript:

```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 bedrockModelSpecificationProperty: lex.CfnBot.BedrockModelSpecificationProperty = {
  modelArn: 'modelArn',

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex

bedrock_model_specification_property = lex.CfnBot.BedrockModelSpecificationProperty(
    model_arn="modelArn",

    # the properties below are optional
    bedrock_guardrail_configuration=lex.CfnBot.BedrockGuardrailConfigurationProperty(
        bedrock_guardrail_identifier="bedrockGuardrailIdentifier",
        bedrock_guardrail_version="bedrockGuardrailVersion"
    ),
    bedrock_model_custom_prompt="bedrockModelCustomPrompt",
    bedrock_trace_status="bedrockTraceStatus"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;

BedrockModelSpecificationProperty bedrockModelSpecificationProperty = BedrockModelSpecificationProperty.builder()
        .modelArn("modelArn")

        // the properties below are optional
        .bedrockGuardrailConfiguration(BedrockGuardrailConfigurationProperty.builder()
                .bedrockGuardrailIdentifier("bedrockGuardrailIdentifier")
                .bedrockGuardrailVersion("bedrockGuardrailVersion")
                .build())
        .bedrockModelCustomPrompt("bedrockModelCustomPrompt")
        .bedrockTraceStatus("bedrockTraceStatus")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;

var bedrockModelSpecificationProperty = new BedrockModelSpecificationProperty {
    ModelArn = "modelArn",

    // the properties below are optional
    BedrockGuardrailConfiguration = new BedrockGuardrailConfigurationProperty {
        BedrockGuardrailIdentifier = "bedrockGuardrailIdentifier",
        BedrockGuardrailVersion = "bedrockGuardrailVersion"
    },
    BedrockModelCustomPrompt = "bedrockModelCustomPrompt",
    BedrockTraceStatus = "bedrockTraceStatus"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bedrockModelSpecificationProperty := &BedrockModelSpecificationProperty{
	ModelArn: jsii.String("modelArn"),

	// the properties below are optional
	BedrockGuardrailConfiguration: &BedrockGuardrailConfigurationProperty{
		BedrockGuardrailIdentifier: jsii.String("bedrockGuardrailIdentifier"),
		BedrockGuardrailVersion: jsii.String("bedrockGuardrailVersion"),
	},
	BedrockModelCustomPrompt: jsii.String("bedrockModelCustomPrompt"),
	BedrockTraceStatus: jsii.String("bedrockTraceStatus"),
}
```

## Properties

- `bedrockGuardrailConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.BedrockGuardrailConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.BedrockGuardrailConfigurationProperty.html)

- `bedrockModelCustomPrompt`: string

- `bedrockTraceStatus`: string

- `modelArn`: string (required) — The ARN of the foundation model used in descriptive bot building.
