All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IPrompt.Jsii$Default
All Known Implementing Classes:
IPrompt.Jsii$Proxy, Prompt, PromptBase

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-24T11:33:25.546Z") @Stability(Experimental) public interface IPrompt extends software.amazon.jsii.JsiiSerializable, IResource
(experimental) Represents a Prompt, either created with CDK or imported.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for IPrompt.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    default IKey
    (experimental) Optional KMS encryption key associated with this prompt.
    (experimental) The ARN of the prompt.
    (experimental) The ID of the prompt.
    (experimental) The version of the prompt.
    (experimental) Grant the given identity permissions to get the prompt.

    Methods inherited from interface software.constructs.IConstruct

    getNode

    Methods inherited from interface software.amazon.awscdk.IResource

    applyRemovalPolicy, getEnv, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getPromptArn

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

      Example:

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

      @Stability(Experimental) @NotNull String getPromptId()
      (experimental) The ID of the prompt.

      Example:

       "PROMPT12345";
       
    • getPromptVersion

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

      Default: "DRAFT"

    • getKmsKey

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

      @Stability(Experimental) @NotNull Grant grantGet(@NotNull IGrantable grantee)
      (experimental) Grant the given identity permissions to get the prompt.

      Parameters:
      grantee - This parameter is required.