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());
 
  • Method Details

    • getPromptArn

      @Stability(Experimental) @NotNull String getPromptArn()
      (experimental) The ARN of the prompt.

      Example:

       "arn:aws:bedrock:us-east-1:123456789012:prompt/PROMPT12345";
       
    • getKmsKey

      @Stability(Experimental) @Nullable default IKey getKmsKey()
      (experimental) Optional KMS encryption key associated with this prompt.

      Default: undefined - An AWS managed key is used

    • getPromptVersion

      @Stability(Experimental) @Nullable default String getPromptVersion()
      (experimental) The version of the prompt.

      Default: "DRAFT"

    • builder

      @Stability(Experimental) static PromptAttributes.Builder builder()
      Returns:
      a PromptAttributes.Builder of PromptAttributes