We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
aws-native.bedrock.getPromptVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
Definition of AWS::Bedrock::PromptVersion Resource Type
Using getPromptVersion
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 getPromptVersion(args: GetPromptVersionArgs, opts?: InvokeOptions): Promise<GetPromptVersionResult>
function getPromptVersionOutput(args: GetPromptVersionOutputArgs, opts?: InvokeOptions): Output<GetPromptVersionResult>
def get_prompt_version(arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPromptVersionResult
def get_prompt_version_output(arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPromptVersionResult]
func LookupPromptVersion(ctx *Context, args *LookupPromptVersionArgs, opts ...InvokeOption) (*LookupPromptVersionResult, error)
func LookupPromptVersionOutput(ctx *Context, args *LookupPromptVersionOutputArgs, opts ...InvokeOption) LookupPromptVersionResultOutput
> Note: This function is named LookupPromptVersion
in the Go SDK.
public static class GetPromptVersion
{
public static Task<GetPromptVersionResult> InvokeAsync(GetPromptVersionArgs args, InvokeOptions? opts = null)
public static Output<GetPromptVersionResult> Invoke(GetPromptVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPromptVersionResult> getPromptVersion(GetPromptVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:bedrock:getPromptVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Arn string
- ARN of a prompt version resource
- Arn string
- ARN of a prompt version resource
- arn String
- ARN of a prompt version resource
- arn string
- ARN of a prompt version resource
- arn str
- ARN of a prompt version resource
- arn String
- ARN of a prompt version resource
getPromptVersion Result
The following output properties are available:
- 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.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- Dictionary<string, string>
- 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.
- Name string
- Name for a prompt resource.
- Prompt
Id string - Identifier for a Prompt
- map[string]string
- 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.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- Map<String,String>
- 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.
- name string
- Name for a prompt resource.
- prompt
Id string - Identifier for a Prompt
- {[key: string]: string}
- 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.
- name str
- Name for a prompt resource.
- prompt_
id str - Identifier for a Prompt
- Mapping[str, str]
- 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.
- name String
- Name for a prompt resource.
- prompt
Id String - Identifier for a Prompt
- Map<String>
- updated
At String - Time Stamp.
- variants List<Property Map>
- List of prompt variants
- version String
- Version.
Supporting Types
PromptVersionPromptInferenceConfigurationProperties
PromptVersionPromptInputVariable
- 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
- 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
PromptVersionPromptTemplateType
PromptVersionPromptVariant
- 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
- 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.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi