Interface PromptAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PromptAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-08-05T19:18:43.790Z")
@Stability(Experimental)
public interface PromptAttributes
extends software.amazon.jsii.JsiiSerializable
(experimental) Attributes for specifying an imported Bedrock Prompt.
Example:
// Import an existing prompt by ARN IPrompt importedPrompt = Prompt.fromPromptAttributes(this, "ImportedPrompt", PromptAttributes.builder() .promptArn("arn:aws:bedrock:region:account:prompt/prompt-id") .kmsKey(Key.fromKeyArn(this, "ImportedKey", "arn:aws:kms:region:account:key/key-id")) // optional .promptVersion("1") .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forPromptAttributes
static final class
An implementation forPromptAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic PromptAttributes.Builder
builder()
default IKey
(experimental) Optional KMS encryption key associated with this prompt.(experimental) The ARN of the prompt.default String
(experimental) The version of the prompt.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPromptArn
(experimental) The ARN of the prompt.Example:
"arn:aws:bedrock:us-east-1:123456789012:prompt/PROMPT12345";
-
getKmsKey
(experimental) Optional KMS encryption key associated with this prompt.Default: undefined - An AWS managed key is used
-
getPromptVersion
(experimental) The version of the prompt.Default: "DRAFT"
-
builder
- Returns:
- a
PromptAttributes.Builder
ofPromptAttributes
-