Interface CfnPromptMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPromptMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.636Z")
@Stability(Stable)
public interface CfnPromptMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnPromptPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
Object additionalModelRequestFields;
Object any;
Object auto;
Object json;
CfnPromptMixinProps cfnPromptMixinProps = CfnPromptMixinProps.builder()
.customerEncryptionKeyArn("customerEncryptionKeyArn")
.defaultVariant("defaultVariant")
.description("description")
.name("name")
.tags(Map.of(
"tagsKey", "tags"))
.variants(List.of(PromptVariantProperty.builder()
.additionalModelRequestFields(additionalModelRequestFields)
.genAiResource(PromptGenAiResourceProperty.builder()
.agent(PromptAgentResourceProperty.builder()
.agentIdentifier("agentIdentifier")
.build())
.build())
.inferenceConfiguration(PromptInferenceConfigurationProperty.builder()
.text(PromptModelInferenceConfigurationProperty.builder()
.maxTokens(123)
.stopSequences(List.of("stopSequences"))
.temperature(123)
.topP(123)
.build())
.build())
.metadata(List.of(PromptMetadataEntryProperty.builder()
.key("key")
.value("value")
.build()))
.modelId("modelId")
.name("name")
.templateConfiguration(PromptTemplateConfigurationProperty.builder()
.chat(ChatPromptTemplateConfigurationProperty.builder()
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.messages(List.of(MessageProperty.builder()
.content(List.of(ContentBlockProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.text("text")
.build()))
.role("role")
.build()))
.system(List.of(SystemContentBlockProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.text("text")
.build()))
.toolConfiguration(ToolConfigurationProperty.builder()
.toolChoice(ToolChoiceProperty.builder()
.any(any)
.auto(auto)
.tool(SpecificToolChoiceProperty.builder()
.name("name")
.build())
.build())
.tools(List.of(ToolProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.toolSpec(ToolSpecificationProperty.builder()
.description("description")
.inputSchema(ToolInputSchemaProperty.builder()
.json(json)
.build())
.name("name")
.build())
.build()))
.build())
.build())
.text(TextPromptTemplateConfigurationProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.text("text")
.textS3Location(TextS3LocationProperty.builder()
.bucket("bucket")
.key("key")
.version("version")
.build())
.build())
.build())
.templateType("templateType")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPromptMixinPropsstatic final classAn implementation forCfnPromptMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPromptMixinProps.Builderbuilder()default StringThe Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.default StringThe name of the default variant for the prompt.default StringThe description of the prompt.default StringgetName()The name of the prompt.getTags()Metadata that you can assign to a resource as key-value pairs.default ObjectA list of objects, each containing details about a variant of the prompt.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomerEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.- See Also:
-
getDefaultVariant
The name of the default variant for the prompt.This value must match the
namefield in the relevant PromptVariant object.- See Also:
-
getDescription
The description of the prompt.- See Also:
-
getName
The name of the prompt.- See Also:
-
getTags
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- See Also:
-
getVariants
A list of objects, each containing details about a variant of the prompt.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPromptPropsMixin.PromptVariantProperty>- See Also:
-
builder
- Returns:
- a
CfnPromptMixinProps.BuilderofCfnPromptMixinProps
-