We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 2025 by Pulumi
aws-native.bedrock.getPrompt
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.37.0 published on Wednesday, Oct 15, 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 dictionary
The 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
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant 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:
- Updated
At 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
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant 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:
- Updated
At string - Time Stamp.
- Variants
[]Prompt
Variant - List of prompt variants
- Version string
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant 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:
- updated
At String - Time Stamp.
- variants
List<Prompt
Variant> - List of prompt variants
- version String
- Draft Version.
- arn string
- ARN of a prompt resource possibly with a version
- created
At string - Time Stamp.
- customer
Encryption stringKey Arn - A KMS key ARN
- default
Variant 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:
- updated
At string - Time Stamp.
- variants
Prompt
Variant[] - 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[Prompt
Variant] - List of prompt variants
- version str
- Draft Version.
- arn String
- ARN of a prompt resource possibly with a version
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant 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:
- updated
At String - Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Draft Version.
Supporting Types
PromptAgentResource
- 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.
PromptCachePointBlock
PromptCachePointType
PromptChatPromptTemplateConfiguration
- Messages
List<Pulumi.
Aws Native. Bedrock. Inputs. Prompt Message> - List of messages for chat prompt template
- Input
Variables 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
- Tool
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Tool Configuration
- Messages
[]Prompt
Message - List of messages for chat prompt template
- Input
Variables []PromptInput Variable - List of input variables
- System []interface{}
- Configuration for chat prompt template
- Tool
Configuration PromptTool Configuration
- messages
List<Prompt
Message> - List of messages for chat prompt template
- input
Variables List<PromptInput Variable> - List of input variables
- system
List<Either<Prompt
System Content Block0Properties,Prompt System Content Block1Properties>> - Configuration for chat prompt template
- tool
Configuration PromptTool Configuration
- messages
Prompt
Message[] - List of messages for chat prompt template
- input
Variables PromptInput Variable[] - List of input variables
- system
(Prompt
System Content Block0Properties | Prompt System Content Block1Properties)[] - Configuration for chat prompt template
- tool
Configuration PromptTool Configuration
- messages
Sequence[Prompt
Message] - List of messages for chat prompt template
- input_
variables Sequence[PromptInput Variable] - List of input variables
- system
Sequence[Union[Prompt
System 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
- input
Variables List<Property Map> - List of input variables
- system List<Property Map | Property Map>
- Configuration for chat prompt template
- tool
Configuration 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
Prompt
Conversation Role
- content
List<Either<Prompt
Content Block0Properties,Prompt Content Block1Properties>> - List of Content Blocks
- role
Prompt
Conversation Role
- content
(Prompt
Content Block0Properties | Prompt Content Block1Properties)[] - List of Content Blocks
- role
Prompt
Conversation Role
- content
Sequence[Union[Prompt
Content Block0Properties, Prompt Content Block1Properties]] - List of Content Blocks
- role
Prompt
Conversation Role
- content List<Property Map | Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptMetadataEntry
PromptModelInferenceConfiguration
- 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
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
- Cache
Point Pulumi.Aws Native. Bedrock. Inputs. Prompt Cache Point Block - Input
Variables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Input Variable> - List of input variables
- Text string
- Prompt content for String prompt template
- Text
S3Location Pulumi.Aws Native. Bedrock. Inputs. Prompt Text S3Location
- Cache
Point PromptCache Point Block - Input
Variables []PromptInput Variable - List of input variables
- Text string
- Prompt content for String prompt template
- Text
S3Location PromptText S3Location
- cache
Point PromptCache Point Block - input
Variables List<PromptInput Variable> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location PromptText S3Location
- cache
Point PromptCache Point Block - input
Variables PromptInput Variable[] - List of input variables
- text string
- Prompt content for String prompt template
- text
S3Location 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
- cache
Point Property Map - input
Variables List<Property Map> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location 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
- Tool
Choice 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
- Tool
Choice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties
- tools
List<Either<Prompt
Tool0Properties,Prompt Tool1Properties>> - List of Tools
- tool
Choice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties
- tools
(Prompt
Tool0Properties | Prompt Tool1Properties)[] - List of Tools
- tool
Choice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties
- tools
Sequence[Union[Prompt
Tool0Properties, Prompt Tool1Properties]] - List of Tools
- tool_
choice PromptTool | PromptChoice0Properties Tool | PromptChoice1Properties Tool Choice2Properties
- tools List<Property Map | Property Map>
- List of Tools
- tool
Choice Property Map | Property Map | Property Map
PromptToolInputSchemaProperties
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptToolSpecification
- Input
Schema Pulumi.Aws Native. Bedrock. Inputs. Prompt Tool Input Schema Properties - Name string
- Tool name
- Description string
- Input
Schema PromptTool Input Schema Properties - Name string
- Tool name
- Description string
- input
Schema PromptTool Input Schema Properties - name String
- Tool name
- description String
- input
Schema PromptTool Input Schema Properties - name string
- Tool name
- description string
- input_
schema PromptTool Input Schema Properties - name str
- Tool name
- description str
- input
Schema Property Map - name String
- Tool name
- description String
PromptVariant
- Name string
- Name for a variant.
- Template
Configuration Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Prompt Template Configuration0Properties Aws Native. Bedrock. Inputs. Prompt Template Configuration1Properties - Contains configurations for the prompt template.
- Template
Type Pulumi.Aws Native. Bedrock. Prompt Template Type - The type of prompt template to use.
- Additional
Model Pulumi.Request Fields Aws Native. Bedrock. Inputs. Prompt Additional Model Request Fields - 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 . - Gen
Ai Pulumi.Resource Aws Native. Bedrock. Inputs. Prompt Gen Ai Resource Properties - Specifies a generative AI resource with which to use the prompt.
- Inference
Configuration 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.
- 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 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
inferenceConfiguration
field. 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
[]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 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
inferenceConfiguration
field. 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
List<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 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
inferenceConfiguration
field. 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
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 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
inferenceConfiguration
field. 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[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
inferenceConfiguration
field. 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.
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.37.0 published on Wednesday, Oct 15, 2025 by Pulumi