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:
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant 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
- CustomerEncryption stringKey Arn 
- A KMS key ARN
- DefaultVariant 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
[]PromptVariant Args 
- List of prompt variants
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant 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<PromptVariant> 
- List of prompt variants
- customerEncryption stringKey Arn 
- A KMS key ARN
- defaultVariant 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
PromptVariant[] 
- 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[PromptVariant Args] 
- List of prompt variants
- customerEncryption StringKey Arn 
- A KMS key ARN
- defaultVariant 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      
- 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.
PromptChatPromptTemplateConfiguration, PromptChatPromptTemplateConfigurationArgs          
- 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<Pulumi.Aws Native. Bedrock. Inputs. Prompt System Content Block Properties> 
- 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
[]PromptSystem Content Block Properties 
- 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<PromptSystem Content Block Properties> 
- 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 Block Properties[] 
- 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[PromptSystem Content Block Properties] 
- 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>
- Configuration for chat prompt template
- toolConfiguration 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
- PromptConversation Role User 
- user
- PromptConversation 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
[]PromptContent Block Properties 
- List of Content Blocks
- Role
PromptConversation Role 
- content
List<PromptContent Block Properties> 
- List of Content Blocks
- role
PromptConversation Role 
- content
PromptContent Block Properties[] 
- List of Content Blocks
- role
PromptConversation Role 
- content
Sequence[PromptContent Block Properties] 
- List of Content Blocks
- role
PromptConversation Role 
- content List<Property Map>
- List of Content Blocks
- role "user" | "assistant"
PromptModelInferenceConfiguration, PromptModelInferenceConfigurationArgs        
- 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, 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
- PromptTemplate Type Text 
- TEXT
- PromptTemplate Type Chat 
- CHAT
- Text
- TEXT
- Chat
- CHAT
- Text
- TEXT
- Chat
- CHAT
- TEXT
- TEXT
- CHAT
- CHAT
- "TEXT"
- TEXT
- "CHAT"
- CHAT
PromptTextPromptTemplateConfiguration, PromptTextPromptTemplateConfigurationArgs          
- 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 
- InputVariables []PromptInput Variable 
- List of input variables
- Text string
- Prompt content for String prompt template
- TextS3Location PromptText S3Location 
- inputVariables List<PromptInput Variable> 
- List of input variables
- text String
- Prompt content for String prompt template
- textS3Location PromptText S3Location 
- inputVariables PromptInput Variable[] 
- List of input variables
- text string
- Prompt content for String prompt template
- textS3Location PromptText S3Location 
- input_variables Sequence[PromptInput Variable] 
- List of input variables
- text str
- Prompt content for String prompt template
- text_s3_ Promptlocation Text S3Location 
- inputVariables List<Property Map>
- List of input variables
- text String
- Prompt content for String prompt template
- textS3Location Property Map
PromptTextS3Location, PromptTextS3LocationArgs      
PromptToolChoice0Properties, PromptToolChoice0PropertiesArgs      
PromptToolChoice1Properties, PromptToolChoice1PropertiesArgs      
PromptToolChoice2Properties, PromptToolChoice2PropertiesArgs      
PromptToolConfiguration, PromptToolConfigurationArgs      
- tools List<Property Map>
- List of Tools
- toolChoice Property Map | Property Map | Property Map
PromptToolInputSchemaProperties, PromptToolInputSchemaPropertiesArgs          
- Json object
- Json interface{}
- json Object
- json any
- json Any
- json Any
PromptToolProperties, PromptToolPropertiesArgs      
PromptToolSpecification, PromptToolSpecificationArgs      
- 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, PromptVariantArgs    
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- templateConfiguration Property Map | Property Map
- Contains configurations for the prompt template.
- templateType "TEXT" | "CHAT"
- The type of prompt template to use.
- genAi Property MapResource 
- Specifies a generative AI resource with which to use the prompt.
- inferenceConfiguration Property Map
- Contains inference configurations for the 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.