Class PromptBase
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.119.0 (build 1634eac)",
date="2025-11-13T16:10:17.946Z")
@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.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IPrompt
IPrompt.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPromptBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPromptBase(software.amazon.jsii.JsiiObjectRef objRef) protectedPromptBase(software.constructs.Construct scope, String id) protectedPromptBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract IKey(experimental) Optional KMS encryption key associated with this prompt.abstract String(experimental) The ARN of the prompt.abstract String(experimental) The ID of the prompt.abstract String(experimental) The version of the prompt.grantGet(IGrantable grantee) (experimental) Grant the given identity permissions to get the prompt.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
(experimental) Grant the given identity permissions to get the prompt.Default: - Default grant configuration: - actions: ['bedrock:GetPrompt'] - resourceArns: [this.promptArn]
-
getPromptArn
(experimental) The ARN of the prompt.- Specified by:
getPromptArnin interfaceIPrompt
-
getPromptId
(experimental) The ID of the prompt.- Specified by:
getPromptIdin interfaceIPrompt
-
getPromptVersion
(experimental) The version of the prompt.- Specified by:
getPromptVersionin interfaceIPrompt
-
getKmsKey
(experimental) Optional KMS encryption key associated with this prompt.
-