Interface IPrompt
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,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.121.0 (build d7af9b9)",
date="2025-12-18T18:20:21.209Z")
@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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIPrompt.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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.grantGet(IGrantable grantee) (experimental) Grant the given identity permissions to get the prompt.Methods 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
-
Method Details
-
getPromptArn
(experimental) The ARN of the prompt.Example:
"arn:aws:bedrock:us-east-1:123456789012:prompt/PROMPT12345";
-
getPromptId
(experimental) The ID of the prompt.Example:
"PROMPT12345";
-
getPromptVersion
(experimental) The version of the prompt.Default: "DRAFT"
-
getKmsKey
(experimental) Optional KMS encryption key associated with this prompt. -
grantGet
(experimental) Grant the given identity permissions to get the prompt.- Parameters:
grantee- This parameter is required.
-