java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrock.alpha.PromptBase
All Implemented Interfaces:
IEnvironmentAware, IResource, IPrompt, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
Prompt

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-07-02T13:33:03.143Z") @Stability(Experimental) public abstract class PromptBase extends Resource implements IPrompt
(experimental) Abstract base class for a Prompt.

Contains methods and attributes valid for Prompts either created with CDK or imported.

  • Constructor Details

    • PromptBase

      protected PromptBase(software.amazon.jsii.JsiiObjectRef objRef)
    • PromptBase

      protected PromptBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • PromptBase

      @Stability(Stable) protected PromptBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • PromptBase

      @Stability(Stable) protected PromptBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • grantGet

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

      [disable-awslint:no-grants]

      Default: - Default grant configuration: - actions: ['bedrock:GetPrompt'] - resourceArns: [this.promptArn]

      Specified by:
      grantGet in interface IPrompt
      Parameters:
      grantee -
      • The IAM principal to grant permissions to.
      This parameter is required.
      Returns:
      An IAM Grant object representing the granted permissions
    • getPromptArn

      @Stability(Experimental) @NotNull public abstract String getPromptArn()
      (experimental) The ARN of the prompt.
      Specified by:
      getPromptArn in interface IPrompt
    • getPromptId

      @Stability(Experimental) @NotNull public abstract String getPromptId()
      (experimental) The ID of the prompt.
      Specified by:
      getPromptId in interface IPrompt
    • getPromptVersion

      @Stability(Experimental) @NotNull public abstract String getPromptVersion()
      (experimental) The version of the prompt.
      Specified by:
      getPromptVersion in interface IPrompt
    • getKmsKey

      @Stability(Experimental) @Nullable public abstract IKey getKmsKey()
      (experimental) Optional KMS encryption key associated with this prompt.
      Specified by:
      getKmsKey in interface IPrompt