We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.bedrock.getPromptVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
Definition of AWS::Bedrock::PromptVersion Resource Type
Using getPromptVersion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPromptVersion(args: GetPromptVersionArgs, opts?: InvokeOptions): Promise<GetPromptVersionResult>
function getPromptVersionOutput(args: GetPromptVersionOutputArgs, opts?: InvokeOptions): Output<GetPromptVersionResult>def get_prompt_version(arn: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPromptVersionResult
def get_prompt_version_output(arn: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPromptVersionResult]func LookupPromptVersion(ctx *Context, args *LookupPromptVersionArgs, opts ...InvokeOption) (*LookupPromptVersionResult, error)
func LookupPromptVersionOutput(ctx *Context, args *LookupPromptVersionOutputArgs, opts ...InvokeOption) LookupPromptVersionResultOutput> Note: This function is named LookupPromptVersion in the Go SDK.
public static class GetPromptVersion 
{
    public static Task<GetPromptVersionResult> InvokeAsync(GetPromptVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetPromptVersionResult> Invoke(GetPromptVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPromptVersionResult> getPromptVersion(GetPromptVersionArgs args, InvokeOptions options)
public static Output<GetPromptVersionResult> getPromptVersion(GetPromptVersionArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:bedrock:getPromptVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- ARN of a prompt version resource
- Arn string
- ARN of a prompt version resource
- arn String
- ARN of a prompt version resource
- arn string
- ARN of a prompt version resource
- arn str
- ARN of a prompt version resource
- arn String
- ARN of a prompt version resource
getPromptVersion Result
The following output properties are available:
- Arn string
- ARN of a prompt version resource
- CreatedAt string
- Time Stamp.
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant string
- Name for a variant.
- Name string
- Name for a prompt resource.
- PromptId string
- Identifier for a Prompt
- UpdatedAt string
- Time Stamp.
- Variants
List<Pulumi.Aws Native. Bedrock. Outputs. Prompt Version Prompt Variant> 
- List of prompt variants
- Version string
- Version.
- Arn string
- ARN of a prompt version resource
- CreatedAt string
- Time Stamp.
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant string
- Name for a variant.
- Name string
- Name for a prompt resource.
- PromptId string
- Identifier for a Prompt
- UpdatedAt string
- Time Stamp.
- Variants
[]PromptVersion Prompt Variant 
- List of prompt variants
- Version string
- Version.
- arn String
- ARN of a prompt version resource
- createdAt String
- Time Stamp.
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant String
- Name for a variant.
- name String
- Name for a prompt resource.
- promptId String
- Identifier for a Prompt
- updatedAt String
- Time Stamp.
- variants
List<PromptVersion Prompt Variant> 
- List of prompt variants
- version String
- Version.
- arn string
- ARN of a prompt version resource
- createdAt string
- Time Stamp.
- customerEncryption stringKey Arn 
- A KMS key ARN
- defaultVariant string
- Name for a variant.
- name string
- Name for a prompt resource.
- promptId string
- Identifier for a Prompt
- updatedAt string
- Time Stamp.
- variants
PromptVersion Prompt Variant[] 
- List of prompt variants
- version string
- Version.
- arn str
- ARN of a prompt version resource
- created_at str
- Time Stamp.
- customer_encryption_ strkey_ arn 
- A KMS key ARN
- default_variant str
- Name for a variant.
- name str
- Name for a prompt resource.
- prompt_id str
- Identifier for a Prompt
- updated_at str
- Time Stamp.
- variants
Sequence[PromptVersion Prompt Variant] 
- List of prompt variants
- version str
- Version.
- arn String
- ARN of a prompt version resource
- createdAt String
- Time Stamp.
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant String
- Name for a variant.
- name String
- Name for a prompt resource.
- promptId String
- Identifier for a Prompt
- updatedAt String
- Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Version.
Supporting Types
PromptVersionCachePointBlock    
PromptVersionCachePointType    
PromptVersionChatPromptTemplateConfiguration     
- Messages
List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Message> 
- List of messages for chat prompt template
- InputVariables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Input Variable> 
- List of input variables
- System
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version System Content Block0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt Version System Content Block1Properties>> 
- Configuration for chat prompt template
- ToolConfiguration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Tool Configuration 
- Messages
[]PromptVersion Message 
- List of messages for chat prompt template
- InputVariables []PromptVersion Prompt Input Variable 
- List of input variables
- System []interface{}
- Configuration for chat prompt template
- ToolConfiguration PromptVersion Tool Configuration 
- messages
List<PromptVersion Message> 
- List of messages for chat prompt template
- inputVariables List<PromptVersion Prompt Input Variable> 
- List of input variables
- system
List<Either<PromptVersion System Content Block0Properties,Prompt Version System Content Block1Properties>> 
- Configuration for chat prompt template
- toolConfiguration PromptVersion Tool Configuration 
- messages
PromptVersion Message[] 
- List of messages for chat prompt template
- inputVariables PromptVersion Prompt Input Variable[] 
- List of input variables
- system
(PromptVersion System Content Block0Properties | Prompt Version System Content Block1Properties)[] 
- Configuration for chat prompt template
- toolConfiguration PromptVersion Tool Configuration 
- messages
Sequence[PromptVersion Message] 
- List of messages for chat prompt template
- input_variables Sequence[PromptVersion Prompt Input Variable] 
- List of input variables
- system
Sequence[Union[PromptVersion System Content Block0Properties, Prompt Version System Content Block1Properties]] 
- Configuration for chat prompt template
- tool_configuration PromptVersion Tool Configuration 
- messages List<Property Map>
- List of messages for chat prompt template
- inputVariables List<Property Map>
- List of input variables
- system List<Property Map | Property Map>
- Configuration for chat prompt template
- toolConfiguration Property Map
PromptVersionContentBlock0Properties   
- Text string
- Configuration for chat prompt template
- Text string
- Configuration for chat prompt template
- text String
- Configuration for chat prompt template
- text string
- Configuration for chat prompt template
- text str
- Configuration for chat prompt template
- text String
- Configuration for chat prompt template
PromptVersionContentBlock1Properties   
PromptVersionConversationRole   
PromptVersionMessage  
- Content
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Content Block0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt Version Content Block1Properties>> 
- List of Content Blocks
- Role
Pulumi.Aws Native. Bedrock. Prompt Version Conversation Role 
- Content []interface{}
- List of Content Blocks
- Role
PromptVersion Conversation Role 
- content
List<Either<PromptVersion Content Block0Properties,Prompt Version Content Block1Properties>> 
- List of Content Blocks
- role
PromptVersion Conversation Role 
- content
(PromptVersion Content Block0Properties | Prompt Version Content Block1Properties)[] 
- List of Content Blocks
- role
PromptVersion Conversation Role 
- content
Sequence[Union[PromptVersion Content Block0Properties, Prompt Version Content Block1Properties]] 
- List of Content Blocks
- role
PromptVersion Conversation Role 
- content List<Property Map | Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptVersionPromptAgentResource    
- AgentIdentifier string
- Arn representation of the Agent Alias.
- AgentIdentifier string
- Arn representation of the Agent Alias.
- agentIdentifier String
- Arn representation of the Agent Alias.
- agentIdentifier string
- Arn representation of the Agent Alias.
- agent_identifier str
- Arn representation of the Agent Alias.
- agentIdentifier String
- Arn representation of the Agent Alias.
PromptVersionPromptGenAiResourceProperties      
PromptVersionPromptInferenceConfigurationProperties     
PromptVersionPromptInputVariable    
- Name string
- Name for an input variable
- Name string
- Name for an input variable
- name String
- Name for an input variable
- name string
- Name for an input variable
- name str
- Name for an input variable
- name String
- Name for an input variable
PromptVersionPromptMetadataEntry    
PromptVersionPromptModelInferenceConfiguration     
- MaxTokens double
- Maximum length of output
- StopSequences List<string>
- List of stop sequences
- Temperature double
- Controls randomness, higher values increase diversity
- TopP double
- Cumulative probability cutoff for token selection
- MaxTokens float64
- Maximum length of output
- StopSequences []string
- List of stop sequences
- Temperature float64
- Controls randomness, higher values increase diversity
- TopP float64
- Cumulative probability cutoff for token selection
- maxTokens Double
- Maximum length of output
- stopSequences List<String>
- List of stop sequences
- temperature Double
- Controls randomness, higher values increase diversity
- topP Double
- Cumulative probability cutoff for token selection
- maxTokens number
- Maximum length of output
- stopSequences string[]
- List of stop sequences
- temperature number
- Controls randomness, higher values increase diversity
- topP number
- Cumulative probability cutoff for token selection
- max_tokens float
- Maximum length of output
- stop_sequences Sequence[str]
- List of stop sequences
- temperature float
- Controls randomness, higher values increase diversity
- top_p float
- Cumulative probability cutoff for token selection
- maxTokens Number
- Maximum length of output
- stopSequences List<String>
- List of stop sequences
- temperature Number
- Controls randomness, higher values increase diversity
- topP Number
- Cumulative probability cutoff for token selection
PromptVersionPromptTemplateConfiguration0Properties    
PromptVersionPromptTemplateConfiguration1Properties    
PromptVersionPromptTemplateType    
PromptVersionPromptVariant   
- Name string
- Name for a variant.
- TemplateConfiguration Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Prompt Version Prompt Template Configuration0Properties Aws Native. Bedrock. Inputs. Prompt Version Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- TemplateType Pulumi.Aws Native. Bedrock. Prompt Version Prompt Template Type 
- The type of prompt template to use.
- AdditionalModel Pulumi.Request Fields Aws Native. Bedrock. Inputs. Prompt Version Additional Model Request Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- GenAi Pulumi.Resource Aws Native. Bedrock. Inputs. Prompt Version Prompt Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- InferenceConfiguration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- Metadata
List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Metadata Entry> 
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- ModelId string
- 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.
- Name string
- Name for a variant.
- TemplateConfiguration PromptVersion | PromptPrompt Template Configuration0Properties Version Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- TemplateType PromptVersion Prompt Template Type 
- The type of prompt template to use.
- AdditionalModel PromptRequest Fields Version Additional Model Request Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- GenAi PromptResource Version Prompt Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- InferenceConfiguration PromptVersion Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- Metadata
[]PromptVersion Prompt Metadata Entry 
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- ModelId string
- 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.
- name String
- Name for a variant.
- templateConfiguration PromptVersion | PromptPrompt Template Configuration0Properties Version Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- templateType PromptVersion Prompt Template Type 
- The type of prompt template to use.
- additionalModel PromptRequest Fields Version Additional Model Request Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- genAi PromptResource Version Prompt Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration PromptVersion Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
List<PromptVersion Prompt Metadata Entry> 
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- modelId String
- 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.
- name string
- Name for a variant.
- templateConfiguration PromptVersion | PromptPrompt Template Configuration0Properties Version Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- templateType PromptVersion Prompt Template Type 
- The type of prompt template to use.
- additionalModel PromptRequest Fields Version Additional Model Request Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- genAi PromptResource Version Prompt Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration PromptVersion Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
PromptVersion Prompt Metadata Entry[] 
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- modelId string
- 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.
- name str
- Name for a variant.
- template_configuration PromptVersion | PromptPrompt Template Configuration0Properties Version Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- template_type PromptVersion Prompt Template Type 
- The type of prompt template to use.
- additional_model_ Promptrequest_ fields Version Additional Model Request Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- gen_ai_ Promptresource Version Prompt Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inference_configuration PromptVersion Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
Sequence[PromptVersion Prompt Metadata Entry] 
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- model_id str
- 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.
- name String
- Name for a variant.
- templateConfiguration Property Map | Property Map
- Contains configurations for the prompt template.
- templateType "TEXT" | "CHAT"
- The type of prompt template to use.
- additionalModel Property MapRequest Fields 
- Contains model-specific inference configurations that aren't in the inferenceConfigurationfield. To see model-specific inference parameters, see Inference request parameters and response fields for foundation models .
- genAi Property MapResource 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration Property Map
- Contains inference configurations for the prompt variant.
- metadata List<Property Map>
- An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
- modelId String
- 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.
PromptVersionSpecificToolChoice    
- Name string
- Tool name
- Name string
- Tool name
- name String
- Tool name
- name string
- Tool name
- name str
- Tool name
- name String
- Tool name
PromptVersionSystemContentBlock0Properties    
- Text string
- Configuration for chat prompt template
- Text string
- Configuration for chat prompt template
- text String
- Configuration for chat prompt template
- text string
- Configuration for chat prompt template
- text str
- Configuration for chat prompt template
- text String
- Configuration for chat prompt template
PromptVersionSystemContentBlock1Properties    
PromptVersionTextPromptTemplateConfiguration     
- Text string
- Prompt content for String prompt template
- CachePoint Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Cache Point Block 
- InputVariables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Input Variable> 
- List of input variables
- Text string
- Prompt content for String prompt template
- CachePoint PromptVersion Cache Point Block 
- InputVariables []PromptVersion Prompt Input Variable 
- List of input variables
- text String
- Prompt content for String prompt template
- cachePoint PromptVersion Cache Point Block 
- inputVariables List<PromptVersion Prompt Input Variable> 
- List of input variables
- text string
- Prompt content for String prompt template
- cachePoint PromptVersion Cache Point Block 
- inputVariables PromptVersion Prompt Input Variable[] 
- List of input variables
- text str
- Prompt content for String prompt template
- cache_point PromptVersion Cache Point Block 
- input_variables Sequence[PromptVersion Prompt Input Variable] 
- List of input variables
- text String
- Prompt content for String prompt template
- cachePoint Property Map
- inputVariables List<Property Map>
- List of input variables
PromptVersionTool0Properties  
PromptVersionTool1Properties  
PromptVersionToolChoice0Properties   
PromptVersionToolChoice1Properties   
PromptVersionToolChoice2Properties   
PromptVersionToolConfiguration   
- Tools
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Tool0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt Version Tool1Properties>> 
- List of Tools
- ToolChoice Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Prompt Version Tool Choice0Properties Aws | Pulumi.Native. Bedrock. Inputs. Prompt Version Tool Choice1Properties Aws Native. Bedrock. Inputs. Prompt Version Tool Choice2Properties 
- Tools []interface{}
- List of Tools
- ToolChoice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties 
- tools
List<Either<PromptVersion Tool0Properties,Prompt Version Tool1Properties>> 
- List of Tools
- toolChoice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties 
- tools
(PromptVersion Tool0Properties | Prompt Version Tool1Properties)[] 
- List of Tools
- toolChoice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties 
- tools
Sequence[Union[PromptVersion Tool0Properties, Prompt Version Tool1Properties]] 
- List of Tools
- tool_choice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties 
- tools List<Property Map | Property Map>
- List of Tools
- toolChoice Property Map | Property Map | Property Map
PromptVersionToolInputSchemaProperties     
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptVersionToolSpecification   
- InputSchema Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Tool Input Schema Properties 
- Name string
- Tool name
- Description string
- InputSchema PromptVersion Tool Input Schema Properties 
- Name string
- Tool name
- Description string
- inputSchema PromptVersion Tool Input Schema Properties 
- name String
- Tool name
- description String
- inputSchema PromptVersion Tool Input Schema Properties 
- name string
- Tool name
- description string
- input_schema PromptVersion Tool Input Schema Properties 
- name str
- Tool name
- description str
- inputSchema Property Map
- name String
- Tool name
- description String
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi