We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi
aws-native.bedrock.getPromptVersion
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.9.0 published on Monday, Nov 18, 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
- 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
- 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
- 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
- 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
- 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
- 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
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
PromptVersionPromptTemplateConfigurationProperties
PromptVersionPromptTemplateType
PromptVersionPromptVariant
- Name string
- Name for a variant.
- Template
Configuration Pulumi.Aws Native. Bedrock. Inputs. Prompt Version Prompt Template Configuration Properties - Contains configurations for the prompt template.
- 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 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 PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- 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 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 PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- 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 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 PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- 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 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 PromptVersion Prompt Template Configuration Properties - Contains configurations for the prompt template.
- 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 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.
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 Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi