Skip to content
v2.277.0

Experimental

@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TextTemplateConfigurationProps Struct ​

Properties for creating a text template configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
const textTemplateConfigurationProps: bedrock_alpha.TextTemplateConfigurationProps = {
  text: 'text',

  // the properties below are optional
  inputVariables: ['inputVariables'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_alpha as bedrock_alpha

text_template_configuration_props = bedrock_alpha.TextTemplateConfigurationProps(
    text="text",

    # the properties below are optional
    input_variables=["inputVariables"]
)
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.alpha.*;

TextTemplateConfigurationProps textTemplateConfigurationProps = TextTemplateConfigurationProps.builder()
        .text("text")

        // the properties below are optional
        .inputVariables(List.of("inputVariables"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Alpha;

var textTemplateConfigurationProps = new TextTemplateConfigurationProps {
    Text = "text",

    // the properties below are optional
    InputVariables = new [] { "inputVariables" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_alpha "github.com/aws/aws-cdk-go/awsbedrockalpha"

textTemplateConfigurationProps := &TextTemplateConfigurationProps{
	Text: jsii.String("text"),

	// the properties below are optional
	InputVariables: []*string{
		jsii.String("inputVariables"),
	},
}

Properties ​

inputVariablesoptionalstring[]input_variablesoptionaltyping.List[str]inputVariablesoptionalList<String>InputVariablesoptionalstring[]InputVariablesoptional*[]*string #
The input variables for the template.

Default: No input variables

textstringtextstrtextStringTextstringText*string required #
The text content of the template.