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.getPrompt
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::Prompt Resource Type
Using getPrompt
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 getPrompt(args: GetPromptArgs, opts?: InvokeOptions): Promise<GetPromptResult>
function getPromptOutput(args: GetPromptOutputArgs, opts?: InvokeOptions): Output<GetPromptResult>def get_prompt(arn: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPromptResult
def get_prompt_output(arn: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPromptResult]func LookupPrompt(ctx *Context, args *LookupPromptArgs, opts ...InvokeOption) (*LookupPromptResult, error)
func LookupPromptOutput(ctx *Context, args *LookupPromptOutputArgs, opts ...InvokeOption) LookupPromptResultOutput> Note: This function is named LookupPrompt in the Go SDK.
public static class GetPrompt 
{
    public static Task<GetPromptResult> InvokeAsync(GetPromptArgs args, InvokeOptions? opts = null)
    public static Output<GetPromptResult> Invoke(GetPromptInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPromptResult> getPrompt(GetPromptArgs args, InvokeOptions options)
public static Output<GetPromptResult> getPrompt(GetPromptArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:bedrock:getPrompt
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- ARN of a prompt resource possibly with a version
- Arn string
- ARN of a prompt resource possibly with a version
- arn String
- ARN of a prompt resource possibly with a version
- arn string
- ARN of a prompt resource possibly with a version
- arn str
- ARN of a prompt resource possibly with a version
- arn String
- ARN of a prompt resource possibly with a version
getPrompt Result
The following output properties are available:
- Arn string
- ARN of a prompt resource possibly with a version
- CreatedAt string
- Time Stamp.
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant string
- Name for a variant.
- Description string
- Name for a prompt resource.
- Id string
- Identifier for a Prompt
- Name string
- Name for a prompt resource.
- Dictionary<string, string>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- UpdatedAt string
- Time Stamp.
- Variants
List<Pulumi.Aws Native. Bedrock. Outputs. Prompt Variant> 
- List of prompt variants
- Version string
- Draft Version.
- Arn string
- ARN of a prompt resource possibly with a version
- CreatedAt string
- Time Stamp.
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant string
- Name for a variant.
- Description string
- Name for a prompt resource.
- Id string
- Identifier for a Prompt
- Name string
- Name for a prompt resource.
- map[string]string
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- UpdatedAt string
- Time Stamp.
- Variants
[]PromptVariant 
- List of prompt variants
- Version string
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- createdAt String
- Time Stamp.
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant String
- Name for a variant.
- description String
- Name for a prompt resource.
- id String
- Identifier for a Prompt
- name String
- Name for a prompt resource.
- Map<String,String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updatedAt String
- Time Stamp.
- variants
List<PromptVariant> 
- List of prompt variants
- version String
- Draft Version.
- arn string
- ARN of a prompt resource possibly with a version
- createdAt string
- Time Stamp.
- customerEncryption stringKey Arn 
- A KMS key ARN
- defaultVariant string
- Name for a variant.
- description string
- Name for a prompt resource.
- id string
- Identifier for a Prompt
- name string
- Name for a prompt resource.
- {[key: string]: string}
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updatedAt string
- Time Stamp.
- variants
PromptVariant[] 
- List of prompt variants
- version string
- Draft Version.
- arn str
- ARN of a prompt resource possibly with a version
- created_at str
- Time Stamp.
- customer_encryption_ strkey_ arn 
- A KMS key ARN
- default_variant str
- Name for a variant.
- description str
- Name for a prompt resource.
- id str
- Identifier for a Prompt
- name str
- Name for a prompt resource.
- Mapping[str, str]
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated_at str
- Time Stamp.
- variants
Sequence[PromptVariant] 
- List of prompt variants
- version str
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- createdAt String
- Time Stamp.
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant String
- Name for a variant.
- description String
- Name for a prompt resource.
- id String
- Identifier for a Prompt
- name String
- Name for a prompt resource.
- Map<String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updatedAt String
- Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Draft Version.
Supporting Types
PromptAgentResource  
- 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.
PromptCachePointBlock   
PromptCachePointType   
PromptChatPromptTemplateConfiguration    
- Messages
List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Message> 
- List of messages for chat prompt template
- InputVariables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Input Variable> 
- List of input variables
- System
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt System Content Block0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt System Content Block1Properties>> 
- Configuration for chat prompt template
- ToolConfiguration Pulumi.Aws Native. Bedrock. Inputs. Prompt Tool Configuration 
- Messages
[]PromptMessage 
- List of messages for chat prompt template
- InputVariables []PromptInput Variable 
- List of input variables
- System []interface{}
- Configuration for chat prompt template
- ToolConfiguration PromptTool Configuration 
- messages
List<PromptMessage> 
- List of messages for chat prompt template
- inputVariables List<PromptInput Variable> 
- List of input variables
- system
List<Either<PromptSystem Content Block0Properties,Prompt System Content Block1Properties>> 
- Configuration for chat prompt template
- toolConfiguration PromptTool Configuration 
- messages
PromptMessage[] 
- List of messages for chat prompt template
- inputVariables PromptInput Variable[] 
- List of input variables
- system
(PromptSystem Content Block0Properties | Prompt System Content Block1Properties)[] 
- Configuration for chat prompt template
- toolConfiguration PromptTool Configuration 
- messages
Sequence[PromptMessage] 
- List of messages for chat prompt template
- input_variables Sequence[PromptInput Variable] 
- List of input variables
- system
Sequence[Union[PromptSystem Content Block0Properties, Prompt System Content Block1Properties]] 
- Configuration for chat prompt template
- tool_configuration PromptTool 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
PromptContentBlock0Properties  
- 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
PromptContentBlock1Properties  
PromptConversationRole  
PromptGenAiResourceProperties    
PromptInferenceConfigurationProperties   
PromptInputVariable  
- 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
PromptMessage 
- Content
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt Content Block0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt Content Block1Properties>> 
- List of Content Blocks
- Role
Pulumi.Aws Native. Bedrock. Prompt Conversation Role 
- Content []interface{}
- List of Content Blocks
- Role
PromptConversation Role 
- content
List<Either<PromptContent Block0Properties,Prompt Content Block1Properties>> 
- List of Content Blocks
- role
PromptConversation Role 
- content
(PromptContent Block0Properties | Prompt Content Block1Properties)[] 
- List of Content Blocks
- role
PromptConversation Role 
- content
Sequence[Union[PromptContent Block0Properties, Prompt Content Block1Properties]] 
- List of Content Blocks
- role
PromptConversation Role 
- content List<Property Map | Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptMetadataEntry  
PromptModelInferenceConfiguration   
- 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
PromptSpecificToolChoice   
- Name string
- Tool name
- Name string
- Tool name
- name String
- Tool name
- name string
- Tool name
- name str
- Tool name
- name String
- Tool name
PromptSystemContentBlock0Properties   
- 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
PromptSystemContentBlock1Properties   
PromptTemplateConfiguration0Properties  
PromptTemplateConfiguration1Properties  
PromptTemplateType  
PromptTextPromptTemplateConfiguration    
- CachePoint Pulumi.Aws Native. Bedrock. Inputs. Prompt Cache Point Block 
- InputVariables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Input Variable> 
- List of input variables
- Text string
- Prompt content for String prompt template
- TextS3Location Pulumi.Aws Native. Bedrock. Inputs. Prompt Text S3Location 
- CachePoint PromptCache Point Block 
- InputVariables []PromptInput Variable 
- List of input variables
- Text string
- Prompt content for String prompt template
- TextS3Location PromptText S3Location 
- cachePoint PromptCache Point Block 
- inputVariables List<PromptInput Variable> 
- List of input variables
- text String
- Prompt content for String prompt template
- textS3Location PromptText S3Location 
- cachePoint PromptCache Point Block 
- inputVariables PromptInput Variable[] 
- List of input variables
- text string
- Prompt content for String prompt template
- textS3Location PromptText S3Location 
- cache_point PromptCache Point Block 
- input_variables Sequence[PromptInput Variable] 
- List of input variables
- text str
- Prompt content for String prompt template
- text_s3_ Promptlocation Text S3Location 
- cachePoint Property Map
- inputVariables List<Property Map>
- List of input variables
- text String
- Prompt content for String prompt template
- textS3Location Property Map
PromptTextS3Location  
PromptTool0Properties 
PromptTool1Properties 
PromptToolChoice0Properties  
PromptToolChoice1Properties  
PromptToolChoice2Properties  
PromptToolConfiguration  
- Tools
List<Union<Pulumi.Aws Native. Bedrock. Inputs. Prompt Tool0Properties, Pulumi. Aws Native. Bedrock. Inputs. Prompt Tool1Properties>> 
- List of Tools
- ToolChoice Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Prompt Tool Choice0Properties Aws | Pulumi.Native. Bedrock. Inputs. Prompt Tool Choice1Properties Aws Native. Bedrock. Inputs. Prompt Tool Choice2Properties 
- Tools []interface{}
- List of Tools
- ToolChoice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties 
- tools
List<Either<PromptTool0Properties,Prompt Tool1Properties>> 
- List of Tools
- toolChoice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties 
- tools
(PromptTool0Properties | Prompt Tool1Properties)[] 
- List of Tools
- toolChoice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties 
- tools
Sequence[Union[PromptTool0Properties, Prompt Tool1Properties]] 
- List of Tools
- tool_choice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties 
- tools List<Property Map | Property Map>
- List of Tools
- toolChoice Property Map | Property Map | Property Map
PromptToolInputSchemaProperties    
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptToolSpecification  
- InputSchema Pulumi.Aws Native. Bedrock. Inputs. Prompt Tool Input Schema Properties 
- Name string
- Tool name
- Description string
- InputSchema PromptTool Input Schema Properties 
- Name string
- Tool name
- Description string
- inputSchema PromptTool Input Schema Properties 
- name String
- Tool name
- description String
- inputSchema PromptTool Input Schema Properties 
- name string
- Tool name
- description string
- input_schema PromptTool Input Schema Properties 
- name str
- Tool name
- description str
- inputSchema Property Map
- name String
- Tool name
- description String
PromptVariant 
- Name string
- Name for a variant.
- TemplateConfiguration Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Prompt Template Configuration0Properties Aws Native. Bedrock. Inputs. Prompt Template Configuration1Properties 
- Contains configurations for the prompt template.
- TemplateType Pulumi.Aws Native. Bedrock. Prompt Template Type 
- The type of prompt template to use.
- AdditionalModel Pulumi.Request Fields Aws Native. Bedrock. Inputs. Prompt 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 Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- InferenceConfiguration Pulumi.Aws Native. Bedrock. Inputs. Prompt Inference Configuration Properties 
- Contains inference configurations for the prompt variant.
- Metadata
List<Pulumi.Aws Native. Bedrock. Inputs. 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 PromptTemplate | PromptConfiguration0Properties Template Configuration1Properties 
- Contains configurations for the prompt template.
- TemplateType PromptTemplate Type 
- The type of prompt template to use.
- AdditionalModel PromptRequest Fields 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 Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- InferenceConfiguration PromptInference Configuration Properties 
- Contains inference configurations for the prompt variant.
- Metadata
[]PromptMetadata 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 PromptTemplate | PromptConfiguration0Properties Template Configuration1Properties 
- Contains configurations for the prompt template.
- templateType PromptTemplate Type 
- The type of prompt template to use.
- additionalModel PromptRequest Fields 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 Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration PromptInference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
List<PromptMetadata 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 PromptTemplate | PromptConfiguration0Properties Template Configuration1Properties 
- Contains configurations for the prompt template.
- templateType PromptTemplate Type 
- The type of prompt template to use.
- additionalModel PromptRequest Fields 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 Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration PromptInference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
PromptMetadata 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 PromptTemplate | PromptConfiguration0Properties Template Configuration1Properties 
- Contains configurations for the prompt template.
- template_type PromptTemplate Type 
- The type of prompt template to use.
- additional_model_ Promptrequest_ fields 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 Gen Ai Resource Properties 
- Specifies a generative AI resource with which to use the prompt.
- inference_configuration PromptInference Configuration Properties 
- Contains inference configurations for the prompt variant.
- metadata
Sequence[PromptMetadata 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.
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