PromptVariantArgs

data class PromptVariantArgs(val additionalModelRequestFields: Output<PromptAdditionalModelRequestFieldsArgs>? = null, val genAiResource: Output<PromptGenAiResourcePropertiesArgs>? = null, val inferenceConfiguration: Output<PromptInferenceConfigurationPropertiesArgs>? = null, val metadata: Output<List<PromptMetadataEntryArgs>>? = null, val modelId: Output<String>? = null, val name: Output<String>, val templateConfiguration: Output<Either<PromptTemplateConfiguration0PropertiesArgs, PromptTemplateConfiguration1PropertiesArgs>>, val templateType: Output<PromptTemplateType>) : ConvertibleToJava<PromptVariantArgs>

Prompt variant

Constructors

Link copied to clipboard
constructor(additionalModelRequestFields: Output<PromptAdditionalModelRequestFieldsArgs>? = null, genAiResource: Output<PromptGenAiResourcePropertiesArgs>? = null, inferenceConfiguration: Output<PromptInferenceConfigurationPropertiesArgs>? = null, metadata: Output<List<PromptMetadataEntryArgs>>? = null, modelId: Output<String>? = null, name: Output<String>, templateConfiguration: Output<Either<PromptTemplateConfiguration0PropertiesArgs, PromptTemplateConfiguration1PropertiesArgs>>, templateType: Output<PromptTemplateType>)

Properties

Link copied to clipboard

Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .

Link copied to clipboard

Specifies a generative AI resource with which to use the prompt.

Link copied to clipboard

Contains inference configurations for the prompt variant.

Link copied to clipboard
val metadata: Output<List<PromptMetadataEntryArgs>>? = null

An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.

Link copied to clipboard
val modelId: Output<String>? = null

ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models.

Link copied to clipboard
val name: Output<String>

Name for a variant.

Link copied to clipboard

Contains configurations for the prompt template.

Link copied to clipboard

The type of prompt template to use.

Functions

Link copied to clipboard
open override fun toJava(): PromptVariantArgs