Interface PromptAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PromptAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:04.517Z")
@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 classA builder forPromptAttributesstatic final classAn implementation forPromptAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptAttributes.Builderbuilder()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.BuilderofPromptAttributes
-