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
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
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
PromptTemplateConfigurationProperties, PromptTemplateConfigurationPropertiesArgs
PromptTemplateType, PromptTemplateTypeArgs
- Text
- TEXT
- Prompt
Template Type Text - TEXT
- Text
- TEXT
- Text
- TEXT
- TEXT
- TEXT
- "TEXT"
- TEXT
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
PromptVariant, PromptVariantArgs
- Name string
- Name for a variant.
- Template
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Template Configuration Properties - Contains configurations for the prompt template.
- Template
Type Pulumi.Aws Native. Bedrock. Prompt Template Type - The type of prompt template to use.
- 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 Configuration Properties - Contains configurations for the prompt template.
- Template
Type PromptTemplate Type - The type of prompt template to use.
- 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 Configuration Properties - Contains configurations for the prompt template.
- template
Type PromptTemplate Type - The type of prompt template to use.
- 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 Configuration Properties - Contains configurations for the prompt template.
- template
Type PromptTemplate Type - The type of prompt template to use.
- 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 Configuration Properties - Contains configurations for the prompt template.
- template_
type PromptTemplate Type - The type of prompt template to use.
- 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 - Contains configurations for the prompt template.
- template
Type "TEXT" - The type of prompt template to use.
- 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.