We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws-native.bedrock.getPromptVersion
Start a Neo task
Explain and create an aws-native.bedrock.getPromptVersion resource
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 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
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- Updated
At 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
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- Updated
At string - Time Stamp.
- Variants
[]Prompt
Version Prompt Variant - List of prompt variants
- Version string
- Version.
- arn String
- ARN of a prompt version resource
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- updated
At String - Time Stamp.
- variants
List<Prompt
Version Prompt Variant> - List of prompt variants
- version String
- Version.
- arn string
- ARN of a prompt version resource
- created
At string - Time Stamp.
- customer
Encryption stringKey Arn - A KMS key ARN
- default
Variant string - Name for a variant.
- name string
- Name for a prompt resource.
- prompt
Id string - Identifier for a Prompt
- updated
At string - Time Stamp.
- variants
Prompt
Version 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[Prompt
Version Prompt Variant] - List of prompt variants
- version str
- Version.
- arn String
- ARN of a prompt version resource
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- updated
At 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
- Input
Variables 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
- Tool
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Tool Configuration
- Messages
[]Prompt
Version Message - List of messages for chat prompt template
- Input
Variables []PromptVersion Prompt Input Variable - List of input variables
- System []interface{}
- Configuration for chat prompt template
- Tool
Configuration PromptVersion Tool Configuration
- messages
List<Prompt
Version Message> - List of messages for chat prompt template
- input
Variables List<PromptVersion Prompt Input Variable> - List of input variables
- system
List<Either<Prompt
Version System Content Block0Properties,Prompt Version System Content Block1Properties>> - Configuration for chat prompt template
- tool
Configuration PromptVersion Tool Configuration
- messages
Prompt
Version Message[] - List of messages for chat prompt template
- input
Variables PromptVersion Prompt Input Variable[] - List of input variables
- system
(Prompt
Version System Content Block0Properties | Prompt Version System Content Block1Properties)[] - Configuration for chat prompt template
- tool
Configuration PromptVersion Tool Configuration
- messages
Sequence[Prompt
Version Message] - List of messages for chat prompt template
- input_
variables Sequence[PromptVersion Prompt Input Variable] - List of input variables
- system
Sequence[Union[Prompt
Version 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
- input
Variables List<Property Map> - List of input variables
- system List<Property Map | Property Map>
- Configuration for chat prompt template
- tool
Configuration 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
Prompt
Version Conversation Role
- content
List<Either<Prompt
Version Content Block0Properties,Prompt Version Content Block1Properties>> - List of Content Blocks
- role
Prompt
Version Conversation Role
- content
(Prompt
Version Content Block0Properties | Prompt Version Content Block1Properties)[] - List of Content Blocks
- role
Prompt
Version Conversation Role
- content
Sequence[Union[Prompt
Version Content Block0Properties, Prompt Version Content Block1Properties]] - List of Content Blocks
- role
Prompt
Version Conversation Role
- content List<Property Map | Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptVersionPromptAgentResource
- Agent
Identifier string - Arn representation of the Agent Alias.
- Agent
Identifier string - Arn representation of the Agent Alias.
- agent
Identifier String - Arn representation of the Agent Alias.
- agent
Identifier string - Arn representation of the Agent Alias.
- agent_
identifier str - Arn representation of the Agent Alias.
- agent
Identifier 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
- Max
Tokens double - Maximum length of output
- Stop
Sequences List<string> - List of stop sequences
- Temperature double
- Controls randomness, higher values increase diversity
- Top
P double - Cumulative probability cutoff for token selection
- Max
Tokens float64 - Maximum length of output
- Stop
Sequences []string - List of stop sequences
- Temperature float64
- Controls randomness, higher values increase diversity
- Top
P float64 - Cumulative probability cutoff for token selection
- max
Tokens Double - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Double
- Controls randomness, higher values increase diversity
- top
P Double - Cumulative probability cutoff for token selection
- max
Tokens number - Maximum length of output
- stop
Sequences string[] - List of stop sequences
- temperature number
- Controls randomness, higher values increase diversity
- top
P 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
- max
Tokens Number - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Number
- Controls randomness, higher values increase diversity
- top
P Number - Cumulative probability cutoff for token selection
PromptVersionPromptTemplateConfiguration0Properties
PromptVersionPromptTemplateConfiguration1Properties
PromptVersionPromptTemplateType
PromptVersionPromptVariant
- Name string
- Name for a variant.
- Template
Configuration 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.
- Template
Type Pulumi.Aws Native. Bedrock. Prompt Version Prompt Template Type - The type of prompt template to use.
- Additional
Model 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 . - Gen
Ai Pulumi.Resource Aws Native. Bedrock. Inputs. Prompt Version Prompt Gen Ai Resource Properties - Specifies a generative AI resource with which to use the prompt.
- Inference
Configuration 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.
- Model
Id 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.
- 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
[]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.
- Model
Id 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.
- 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
List<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.
- model
Id 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.
- 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
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.
- model
Id 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[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.
- 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.
- template
Configuration Property Map | Property Map - Contains configurations for the prompt template.
- template
Type "TEXT" | "CHAT" - The type of prompt template to use.
- additional
Model 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 . - gen
Ai Property MapResource - Specifies a generative AI resource with which to use the prompt.
- inference
Configuration 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.
- model
Id 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
- Cache
Point Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Cache Point Block - Input
Variables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Input Variable> - List of input variables
- Text string
- Prompt content for String prompt template
- Cache
Point PromptVersion Cache Point Block - Input
Variables []PromptVersion Prompt Input Variable - List of input variables
- text String
- Prompt content for String prompt template
- cache
Point PromptVersion Cache Point Block - input
Variables List<PromptVersion Prompt Input Variable> - List of input variables
- text string
- Prompt content for String prompt template
- cache
Point PromptVersion Cache Point Block - input
Variables 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
- cache
Point Property Map - input
Variables 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
- Tool
Choice 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
- Tool
Choice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties
- tools
List<Either<Prompt
Version Tool0Properties,Prompt Version Tool1Properties>> - List of Tools
- tool
Choice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties
- tools
(Prompt
Version Tool0Properties | Prompt Version Tool1Properties)[] - List of Tools
- tool
Choice PromptVersion | PromptTool Choice0Properties Version | PromptTool Choice1Properties Version Tool Choice2Properties
- tools
Sequence[Union[Prompt
Version 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
- tool
Choice Property Map | Property Map | Property Map
PromptVersionToolInputSchemaProperties
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptVersionToolSpecification
- Input
Schema Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Tool Input Schema Properties - Name string
- Tool name
- Description string
- Input
Schema PromptVersion Tool Input Schema Properties - Name string
- Tool name
- Description string
- input
Schema PromptVersion Tool Input Schema Properties - name String
- Tool name
- description String
- input
Schema PromptVersion Tool Input Schema Properties - name string
- Tool name
- description string
- input_
schema PromptVersion Tool Input Schema Properties - name str
- Tool name
- description str
- input
Schema 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.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
