1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. bedrock
  5. getPromptVersion

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

aws-native logo

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
    CreatedAt string
    Time Stamp.
    CustomerEncryptionKeyArn string
    A KMS key ARN
    DefaultVariant string
    Name for a variant.
    Name string
    Name for a prompt resource.
    PromptId string
    Identifier for a Prompt
    UpdatedAt string
    Time Stamp.
    Variants List<Pulumi.AwsNative.Bedrock.Outputs.PromptVersionPromptVariant>
    List of prompt variants
    Version string
    Version.
    Arn string
    ARN of a prompt version resource
    CreatedAt string
    Time Stamp.
    CustomerEncryptionKeyArn string
    A KMS key ARN
    DefaultVariant string
    Name for a variant.
    Name string
    Name for a prompt resource.
    PromptId string
    Identifier for a Prompt
    UpdatedAt string
    Time Stamp.
    Variants []PromptVersionPromptVariant
    List of prompt variants
    Version string
    Version.
    arn String
    ARN of a prompt version resource
    createdAt String
    Time Stamp.
    customerEncryptionKeyArn String
    A KMS key ARN
    defaultVariant String
    Name for a variant.
    name String
    Name for a prompt resource.
    promptId String
    Identifier for a Prompt
    updatedAt String
    Time Stamp.
    variants List<PromptVersionPromptVariant>
    List of prompt variants
    version String
    Version.
    arn string
    ARN of a prompt version resource
    createdAt string
    Time Stamp.
    customerEncryptionKeyArn string
    A KMS key ARN
    defaultVariant string
    Name for a variant.
    name string
    Name for a prompt resource.
    promptId string
    Identifier for a Prompt
    updatedAt string
    Time Stamp.
    variants PromptVersionPromptVariant[]
    List of prompt variants
    version string
    Version.
    arn str
    ARN of a prompt version resource
    created_at str
    Time Stamp.
    customer_encryption_key_arn str
    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[PromptVersionPromptVariant]
    List of prompt variants
    version str
    Version.
    arn String
    ARN of a prompt version resource
    createdAt String
    Time Stamp.
    customerEncryptionKeyArn String
    A KMS key ARN
    defaultVariant String
    Name for a variant.
    name String
    Name for a prompt resource.
    promptId String
    Identifier for a Prompt
    updatedAt 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

    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

    PromptVersionPromptTemplateConfigurationProperties

    PromptVersionPromptTemplateType

    PromptVersionPromptVariant

    Name string
    Name for a variant.
    TemplateConfiguration Pulumi.AwsNative.Bedrock.Inputs.PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    TemplateType Pulumi.AwsNative.Bedrock.PromptVersionPromptTemplateType
    The type of prompt template to use.
    InferenceConfiguration Pulumi.AwsNative.Bedrock.Inputs.PromptVersionPromptInferenceConfigurationProperties
    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 PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    TemplateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    InferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    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 PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    templateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    inferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    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 PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    templateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    inferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    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 PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    template_type PromptVersionPromptTemplateType
    The type of prompt template to use.
    inference_configuration PromptVersionPromptInferenceConfigurationProperties
    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
    Contains configurations for the prompt template.
    templateType "TEXT"
    The type of prompt template to use.
    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.

    PromptVersionTextPromptTemplateConfiguration

    Text string
    Prompt content for String prompt template
    InputVariables List<Pulumi.AwsNative.Bedrock.Inputs.PromptVersionPromptInputVariable>
    List of input variables
    Text string
    Prompt content for String prompt template
    InputVariables []PromptVersionPromptInputVariable
    List of input variables
    text String
    Prompt content for String prompt template
    inputVariables List<PromptVersionPromptInputVariable>
    List of input variables
    text string
    Prompt content for String prompt template
    inputVariables PromptVersionPromptInputVariable[]
    List of input variables
    text str
    Prompt content for String prompt template
    input_variables Sequence[PromptVersionPromptInputVariable]
    List of input variables
    text String
    Prompt content for String prompt template
    inputVariables List<Property Map>
    List of input variables

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    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