# PromptInferenceConfigurationProperty

Contains inference configurations for the prompt.

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const promptInferenceConfigurationProperty: bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty = {
  text: {
    maxTokens: 123,
    stopSequences: ['stopSequences'],
    temperature: 123,
    topP: 123,
  },
};
```

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_bedrock as bedrock

prompt_inference_configuration_property = bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty(
    text=bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty(
        max_tokens=123,
        stop_sequences=["stopSequences"],
        temperature=123,
        top_p=123
    )
)
```

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.bedrock.*;

PromptInferenceConfigurationProperty promptInferenceConfigurationProperty = PromptInferenceConfigurationProperty.builder()
        .text(PromptModelInferenceConfigurationProperty.builder()
                .maxTokens(123)
                .stopSequences(List.of("stopSequences"))
                .temperature(123)
                .topP(123)
                .build())
        .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.Bedrock;

var promptInferenceConfigurationProperty = new PromptInferenceConfigurationProperty {
    Text = new PromptModelInferenceConfigurationProperty {
        MaxTokens = 123,
        StopSequences = new [] { "stopSequences" },
        Temperature = 123,
        TopP = 123
    }
};
```

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"

promptInferenceConfigurationProperty := &PromptInferenceConfigurationProperty{
	Text: &PromptModelInferenceConfigurationProperty{
		MaxTokens: jsii.Number(123),
		StopSequences: []*string{
			jsii.String("stopSequences"),
		},
		Temperature: jsii.Number(123),
		TopP: jsii.Number(123),
	},
}
```

## Properties

- `text`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPromptVersion.PromptModelInferenceConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty.html) (required) — Contains inference configurations for a text prompt.
