We recommend new projects start with resources from the AWS provider.
aws-native.bedrock.Prompt
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Definition of AWS::Bedrock::Prompt Resource Type
Create Prompt Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Prompt(name: string, args?: PromptArgs, opts?: CustomResourceOptions);
@overload
def Prompt(resource_name: str,
args: Optional[PromptArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Prompt(resource_name: str,
opts: Optional[ResourceOptions] = None,
customer_encryption_key_arn: Optional[str] = None,
default_variant: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
variants: Optional[Sequence[PromptVariantArgs]] = None)
func NewPrompt(ctx *Context, name string, args *PromptArgs, opts ...ResourceOption) (*Prompt, error)
public Prompt(string name, PromptArgs? args = null, CustomResourceOptions? opts = null)
public Prompt(String name, PromptArgs args)
public Prompt(String name, PromptArgs args, CustomResourceOptions options)
type: aws-native:bedrock:Prompt
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PromptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PromptArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PromptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PromptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PromptArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Prompt Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Prompt resource accepts the following input properties:
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Description string
- Name for a prompt resource.
- 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:
- Variants
List<Pulumi.
Aws Native. Bedrock. Inputs. Prompt Variant> - List of prompt variants
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Description string
- Name for a prompt resource.
- 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:
- Variants
[]Prompt
Variant Args - List of prompt variants
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- description String
- Name for a prompt resource.
- 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:
- variants
List<Prompt
Variant> - List of prompt variants
- customer
Encryption stringKey Arn - A KMS key ARN
- default
Variant string - Name for a variant.
- description string
- Name for a prompt resource.
- 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:
- variants
Prompt
Variant[] - List of prompt variants
- customer_
encryption_ strkey_ arn - A KMS key ARN
- default_
variant str - Name for a variant.
- description str
- Name for a prompt resource.
- 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:
- variants
Sequence[Prompt
Variant Args] - List of prompt variants
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- description String
- Name for a prompt resource.
- 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:
- variants List<Property Map>
- List of prompt variants
Outputs
All input properties are implicitly available as output properties. Additionally, the Prompt resource produces the following output properties:
- arn str
- ARN of a prompt resource possibly with a version
- aws_
id str - Identifier for a Prompt
- created_
at str - Time Stamp.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Time Stamp.
- version str
- Draft Version.
Supporting Types
PromptAgentResource, PromptAgentResourceArgs
- 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.
PromptChatPromptTemplateConfiguration, PromptChatPromptTemplateConfigurationArgs
- 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<Pulumi.
Aws Native. Bedrock. Inputs. Prompt System Content Block Properties> - 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
[]Prompt
System Content Block Properties - 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<Prompt
System Content Block Properties> - 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 Block Properties[] - 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[Prompt
System Content Block Properties] - 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>
- Configuration for chat prompt template
- tool
Configuration Property Map
PromptContentBlockProperties, PromptContentBlockPropertiesArgs
- 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
PromptConversationRole, PromptConversationRoleArgs
- User
- user
- Assistant
- assistant
- Prompt
Conversation Role User - user
- Prompt
Conversation Role Assistant - assistant
- User
- user
- Assistant
- assistant
- User
- user
- Assistant
- assistant
- USER
- user
- ASSISTANT
- assistant
- "user"
- user
- "assistant"
- assistant
PromptGenAiResourceProperties, PromptGenAiResourcePropertiesArgs
PromptInferenceConfigurationProperties, PromptInferenceConfigurationPropertiesArgs
PromptInputVariable, PromptInputVariableArgs
- 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, PromptMessageArgs
- Content
[]Prompt
Content Block Properties - List of Content Blocks
- Role
Prompt
Conversation Role
- content
List<Prompt
Content Block Properties> - List of Content Blocks
- role
Prompt
Conversation Role
- content
Prompt
Content Block Properties[] - List of Content Blocks
- role
Prompt
Conversation Role
- content
Sequence[Prompt
Content Block Properties] - List of Content Blocks
- role
Prompt
Conversation Role
- content List<Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptModelInferenceConfiguration, PromptModelInferenceConfigurationArgs
- 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, PromptSpecificToolChoiceArgs
- Name string
- Tool name
- Name string
- Tool name
- name String
- Tool name
- name string
- Tool name
- name str
- Tool name
- name String
- Tool name
PromptSystemContentBlockProperties, PromptSystemContentBlockPropertiesArgs
- 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
PromptTemplateConfiguration0Properties, PromptTemplateConfiguration0PropertiesArgs
PromptTemplateConfiguration1Properties, PromptTemplateConfiguration1PropertiesArgs
PromptTemplateType, PromptTemplateTypeArgs
- Text
- TEXT
- Chat
- CHAT
- Prompt
Template Type Text - TEXT
- Prompt
Template Type Chat - CHAT
- Text
- TEXT
- Chat
- CHAT
- Text
- TEXT
- Chat
- CHAT
- TEXT
- TEXT
- CHAT
- CHAT
- "TEXT"
- TEXT
- "CHAT"
- CHAT
PromptTextPromptTemplateConfiguration, PromptTextPromptTemplateConfigurationArgs
- 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
- Input
Variables []PromptInput Variable - List of input variables
- Text string
- Prompt content for String prompt template
- Text
S3Location PromptText S3Location
- input
Variables List<PromptInput Variable> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location PromptText S3Location
- input
Variables PromptInput Variable[] - List of input variables
- text string
- Prompt content for String prompt template
- text
S3Location PromptText S3Location
- input_
variables Sequence[PromptInput Variable] - List of input variables
- text str
- Prompt content for String prompt template
- text_
s3_ Promptlocation Text S3Location
- input
Variables List<Property Map> - List of input variables
- text String
- Prompt content for String prompt template
- text
S3Location Property Map
PromptTextS3Location, PromptTextS3LocationArgs
PromptToolChoice0Properties, PromptToolChoice0PropertiesArgs
PromptToolChoice1Properties, PromptToolChoice1PropertiesArgs
PromptToolChoice2Properties, PromptToolChoice2PropertiesArgs
PromptToolConfiguration, PromptToolConfigurationArgs
- tools List<Property Map>
- List of Tools
- tool
Choice Property Map | Property Map | Property Map
PromptToolInputSchemaProperties, PromptToolInputSchemaPropertiesArgs
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptToolProperties, PromptToolPropertiesArgs
PromptToolSpecification, PromptToolSpecificationArgs
- 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, PromptVariantArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.