We recommend new projects start with resources from the AWS provider.
aws-native.bedrock.PromptVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Definition of AWS::Bedrock::PromptVersion Resource Type
Create PromptVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PromptVersion(name: string, args: PromptVersionArgs, opts?: CustomResourceOptions);
@overload
def PromptVersion(resource_name: str,
args: PromptVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PromptVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
prompt_arn: Optional[str] = None,
description: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPromptVersion(ctx *Context, name string, args PromptVersionArgs, opts ...ResourceOption) (*PromptVersion, error)
public PromptVersion(string name, PromptVersionArgs args, CustomResourceOptions? opts = null)
public PromptVersion(String name, PromptVersionArgs args)
public PromptVersion(String name, PromptVersionArgs args, CustomResourceOptions options)
type: aws-native:bedrock:PromptVersion
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 PromptVersionArgs
- 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 PromptVersionArgs
- 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 PromptVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PromptVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PromptVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PromptVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PromptVersion resource accepts the following input properties:
- Prompt
Arn string - ARN of a prompt resource possibly with a version
- Description string
- Description for a prompt version resource.
- Dictionary<string, string>
- Prompt
Arn string - ARN of a prompt resource possibly with a version
- Description string
- Description for a prompt version resource.
- map[string]string
- prompt
Arn String - ARN of a prompt resource possibly with a version
- description String
- Description for a prompt version resource.
- Map<String,String>
- prompt
Arn string - ARN of a prompt resource possibly with a version
- description string
- Description for a prompt version resource.
- {[key: string]: string}
- prompt_
arn str - ARN of a prompt resource possibly with a version
- description str
- Description for a prompt version resource.
- Mapping[str, str]
- prompt
Arn String - ARN of a prompt resource possibly with a version
- description String
- Description for a prompt version resource.
- Map<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the PromptVersion resource produces the following output properties:
- Arn string
- ARN of a prompt version resource
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- Updated
At string - Time Stamp.
- Variants
List<Pulumi.
Aws Native. Bedrock. Outputs. Prompt Version Prompt Variant> - List of prompt variants
- Version string
- Version.
- Arn string
- ARN of a prompt version resource
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Default
Variant string - Name for a variant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- Updated
At string - Time Stamp.
- Variants
[]Prompt
Version Prompt Variant - List of prompt variants
- Version string
- Version.
- arn String
- ARN of a prompt version resource
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- updated
At String - Time Stamp.
- variants
List<Prompt
Version Prompt Variant> - List of prompt variants
- version String
- Version.
- arn string
- ARN of a prompt version resource
- created
At string - Time Stamp.
- customer
Encryption stringKey Arn - A KMS key ARN
- default
Variant string - Name for a variant.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name for a prompt resource.
- prompt
Id string - Identifier for a Prompt
- updated
At string - Time Stamp.
- variants
Prompt
Version Prompt Variant[] - List of prompt variants
- version string
- Version.
- arn str
- ARN of a prompt version resource
- created_
at str - Time Stamp.
- customer_
encryption_ strkey_ arn - A KMS key ARN
- default_
variant str - Name for a variant.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name for a prompt resource.
- prompt_
id str - Identifier for a Prompt
- updated_
at str - Time Stamp.
- variants
Sequence[Prompt
Version Prompt Variant] - List of prompt variants
- version str
- Version.
- arn String
- ARN of a prompt version resource
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- default
Variant String - Name for a variant.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- updated
At String - Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Version.
Supporting Types
PromptVersionPromptInferenceConfigurationProperties, PromptVersionPromptInferenceConfigurationPropertiesArgs
PromptVersionPromptInputVariable, PromptVersionPromptInputVariableArgs
- 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
PromptVersionPromptModelInferenceConfiguration, PromptVersionPromptModelInferenceConfigurationArgs
- Max
Tokens double - Maximum length of output
- Stop
Sequences List<string> - List of stop sequences
- Temperature double
- Controls randomness, higher values increase diversity
- Top
K double - Sample from the k most likely next tokens
- 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
K float64 - Sample from the k most likely next tokens
- 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
K Double - Sample from the k most likely next tokens
- 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
K number - Sample from the k most likely next tokens
- 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_
k float - Sample from the k most likely next tokens
- 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
K Number - Sample from the k most likely next tokens
- top
P Number - Cumulative probability cutoff for token selection
PromptVersionPromptTemplateConfigurationProperties, PromptVersionPromptTemplateConfigurationPropertiesArgs
PromptVersionPromptTemplateType, PromptVersionPromptTemplateTypeArgs
- Text
- TEXT
- Prompt
Version Prompt Template Type Text - TEXT
- Text
- TEXT
- Text
- TEXT
- TEXT
- TEXT
- "TEXT"
- TEXT
PromptVersionPromptVariant, PromptVersionPromptVariantArgs
- Name string
- Name for a variant.
- Template
Type Pulumi.Aws Native. Bedrock. Prompt Version Prompt Template Type - The type of prompt template to use.
- Inference
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- Model
Id string - ARN or name of a Bedrock model.
- Template
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Template Configuration Properties - Contains configurations for the prompt template.
- Name string
- Name for a variant.
- Template
Type PromptVersion Prompt Template Type - The type of prompt template to use.
- Inference
Configuration PromptVersion Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- Model
Id string - ARN or name of a Bedrock model.
- Template
Configuration PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- name String
- Name for a variant.
- template
Type PromptVersion Prompt Template Type - The type of prompt template to use.
- inference
Configuration PromptVersion Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- model
Id String - ARN or name of a Bedrock model.
- template
Configuration PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- name string
- Name for a variant.
- template
Type PromptVersion Prompt Template Type - The type of prompt template to use.
- inference
Configuration PromptVersion Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- model
Id string - ARN or name of a Bedrock model.
- template
Configuration PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- name str
- Name for a variant.
- template_
type PromptVersion Prompt Template Type - The type of prompt template to use.
- inference_
configuration PromptVersion Prompt Inference Configuration Properties - Contains inference configurations for the prompt variant.
- model_
id str - ARN or name of a Bedrock model.
- template_
configuration PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- name String
- Name for a variant.
- 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 name of a Bedrock model.
- template
Configuration Property Map - Contains configurations for the prompt template.
PromptVersionTextPromptTemplateConfiguration, PromptVersionTextPromptTemplateConfigurationArgs
- Text string
- Prompt content for String prompt template
- Input
Variables List<Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Input Variable> - List of input variables
- Text string
- Prompt content for String prompt template
- Input
Variables []PromptVersion Prompt Input Variable - List of input variables
- text String
- Prompt content for String prompt template
- input
Variables List<PromptVersion Prompt Input Variable> - List of input variables
- text string
- Prompt content for String prompt template
- input
Variables PromptVersion Prompt Input Variable[] - List of input variables
- text str
- Prompt content for String prompt template
- input_
variables Sequence[PromptVersion Prompt Input Variable] - List of input variables
- text String
- Prompt content for String prompt template
- input
Variables List<Property Map> - List of input variables
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.