class PromptInferenceConfiguration
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.Bedrock.Alpha.PromptInferenceConfiguration | 
  Go | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#PromptInferenceConfiguration | 
  Java | software.amazon.awscdk.services.bedrock.alpha.PromptInferenceConfiguration | 
  Python | aws_cdk.aws_bedrock_alpha.PromptInferenceConfiguration | 
  TypeScript (source) | @aws-cdk/aws-bedrock-alpha » PromptInferenceConfiguration | 
Abstract base class for prompt inference configurations.
This provides a high-level abstraction over the underlying CloudFormation inference configuration properties, offering a more developer-friendly interface while maintaining full compatibility with the underlying AWS Bedrock service.
Example
const cmk = new kms.Key(this, 'cmk', {});
const claudeModel = bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_SONNET_V1_0;
const variant1 = bedrock.PromptVariant.text({
  variantName: 'variant1',
  model: claudeModel,
  promptVariables: ['topic'],
  promptText: 'This is my first text prompt. Please summarize our conversation on: {{topic}}.',
  inferenceConfiguration: bedrock.PromptInferenceConfiguration.text({
    temperature: 1.0,
    topP: 0.999,
    maxTokens: 2000,
  }),
});
const prompt1 = new bedrock.Prompt(this, 'prompt1', {
  promptName: 'prompt1',
  description: 'my first prompt',
  defaultVariant: variant1,
  variants: [variant1],
  kmsKey: cmk,
});
Initializer
new PromptInferenceConfiguration()
Methods
| Name | Description | 
|---|---|
| static text(props) | Creates a text inference configuration. | 
static text(props)
public static text(props: PromptInferenceConfigurationProps): PromptInferenceConfiguration
Parameters
Returns
Creates a text inference configuration.

 .NET
 Go
 Java
 Python
 TypeScript (