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.0.1 published on Tuesday, Oct 1, 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.0.1 published on Tuesday, Oct 1, 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
    Tags Dictionary<string, string>
    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
    Tags map[string]string
    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
    tags Map<String,String>
    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
    tags {[key: string]: string}
    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
    tags Mapping[str, str]
    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
    tags Map<String>
    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
    TopK double
    Sample from the k most likely next tokens
    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
    TopK float64
    Sample from the k most likely next tokens
    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
    topK Double
    Sample from the k most likely next tokens
    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
    topK number
    Sample from the k most likely next tokens
    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_k float
    Sample from the k most likely next tokens
    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
    topK Number
    Sample from the k most likely next tokens
    topP Number
    Cumulative probability cutoff for token selection

    PromptVersionPromptTemplateConfigurationProperties

    PromptVersionPromptTemplateType

    PromptVersionPromptVariant

    Name string
    Name for a variant.
    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 name of a Bedrock model.
    TemplateConfiguration Pulumi.AwsNative.Bedrock.Inputs.PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    Name string
    Name for a variant.
    TemplateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    InferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    Contains inference configurations for the prompt variant.
    ModelId string
    ARN or name of a Bedrock model.
    TemplateConfiguration PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    name String
    Name for a variant.
    templateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    inferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    Contains inference configurations for the prompt variant.
    modelId String
    ARN or name of a Bedrock model.
    templateConfiguration PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    name string
    Name for a variant.
    templateType PromptVersionPromptTemplateType
    The type of prompt template to use.
    inferenceConfiguration PromptVersionPromptInferenceConfigurationProperties
    Contains inference configurations for the prompt variant.
    modelId string
    ARN or name of a Bedrock model.
    templateConfiguration PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    name str
    Name for a variant.
    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 name of a Bedrock model.
    template_configuration PromptVersionPromptTemplateConfigurationProperties
    Contains configurations for the prompt template.
    name String
    Name for a variant.
    templateType "TEXT"
    The type of prompt template to use.
    inferenceConfiguration Property Map
    Contains inference configurations for the prompt variant.
    modelId String
    ARN or name of a Bedrock model.
    templateConfiguration Property Map
    Contains configurations for the prompt template.

    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.0.1 published on Tuesday, Oct 1, 2024 by Pulumi