Class Prompt.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.alpha.Prompt.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Prompt>
- Enclosing class:
Prompt
@Stability(Experimental)
public static final class Prompt.Builder
extends Object
implements software.amazon.jsii.Builder<Prompt>
(experimental) A fluent builder for
Prompt
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static Prompt.Builder
defaultVariant
(IPromptVariant defaultVariant) (experimental) The Prompt Variant that will be used by default.description
(String description) (experimental) A description of what the prompt does.(experimental) The KMS key that the prompt is encrypted with.promptName
(String promptName) (experimental) The name of the prompt.(experimental) Tags to apply to the prompt.variants
(List<? extends IPromptVariant> variants) (experimental) The variants of your prompt.
-
Method Details
-
create
@Stability(Experimental) public static Prompt.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Prompt.Builder
.
-
promptName
(experimental) The name of the prompt.This will be used as the physical name of the prompt. Allowed Pattern: ^([0-9a-zA-Z][_-]?){1,100}$
- Parameters:
promptName
- The name of the prompt. This parameter is required.- Returns:
this
-
defaultVariant
(experimental) The Prompt Variant that will be used by default.Default: - No default variant provided.
- Parameters:
defaultVariant
- The Prompt Variant that will be used by default. This parameter is required.- Returns:
this
-
description
(experimental) A description of what the prompt does.Default: - No description provided. Maximum Length: 200
- Parameters:
description
- A description of what the prompt does. This parameter is required.- Returns:
this
-
kmsKey
(experimental) The KMS key that the prompt is encrypted with.Default: - AWS owned and managed key.
- Parameters:
kmsKey
- The KMS key that the prompt is encrypted with. This parameter is required.- Returns:
this
-
tags
(experimental) Tags to apply to the prompt.Default: - No tags applied.
- Parameters:
tags
- Tags to apply to the prompt. This parameter is required.- Returns:
this
-
variants
(experimental) The variants of your prompt.Variants can use different messages, models, or configurations so that you can compare their outputs to decide the best variant for your use case. Maximum of 1 variants.
Default: - No additional variants provided.
- Parameters:
variants
- The variants of your prompt. This parameter is required.- Returns:
this
-
build
-