1. Packages
  2. AWS Native
  3. API Docs
  4. bedrock
  5. PromptVersion

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.PromptVersion

Explore with Pulumi AI

aws-native logo

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

    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:

    PromptArn string
    ARN of a prompt resource possibly with a version
    Description string
    Description for a prompt version resource.
    Tags Dictionary<string, string>
    PromptArn string
    ARN of a prompt resource possibly with a version
    Description string
    Description for a prompt version resource.
    Tags map[string]string
    promptArn String
    ARN of a prompt resource possibly with a version
    description String
    Description for a prompt version resource.
    tags Map<String,String>
    promptArn string
    ARN of a prompt resource possibly with a version
    description string
    Description for a prompt version resource.
    tags {[key: string]: string}
    prompt_arn str
    ARN of a prompt resource possibly with a version
    description str
    Description for a prompt version resource.
    tags Mapping[str, str]
    promptArn String
    ARN of a prompt resource possibly with a version
    description String
    Description for a prompt version resource.
    tags 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
    CreatedAt string
    Time Stamp.
    CustomerEncryptionKeyArn string
    A KMS key ARN
    DefaultVariant string
    Name for a variant.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    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[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.
    id String
    The provider-assigned unique ID for this managed resource.
    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, 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

    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, PromptVersionPromptTemplateConfigurationPropertiesArgs

    PromptVersionPromptTemplateType, PromptVersionPromptTemplateTypeArgs

    Text
    TEXT
    PromptVersionPromptTemplateTypeText
    TEXT
    Text
    TEXT
    Text
    TEXT
    TEXT
    TEXT
    "TEXT"
    TEXT

    PromptVersionPromptVariant, PromptVersionPromptVariantArgs

    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, PromptVersionTextPromptTemplateConfigurationArgs

    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 Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi