Interface IAgentAlias
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAgentAlias.Jsii$Default
- All Known Implementing Classes:
AgentAlias
,AgentAliasBase
,IAgentAlias.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-08-06T18:14:48.065Z")
@Stability(Experimental)
public interface IAgentAlias
extends software.amazon.jsii.JsiiSerializable, IResource
(experimental) Represents an Agent Alias, either created with CDK or imported.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIAgentAlias
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiongetAgent()
(experimental) The underlying agent for this alias.(experimental) The ARN of the agent alias.(experimental) The unique identifier of the agent alias.grant
(IGrantable grantee, String... actions) (experimental) Grant the given principal identity permissions to perform actions on this agent alias.grantGet
(IGrantable grantee) (experimental) Grant the given identity permissions to get the agent alias.grantInvoke
(IGrantable grantee) (experimental) Grant the given identity permissions to invoke the agent alias.(experimental) Define an EventBridge rule that triggers when something happens to this agent alias.onCloudTrailEvent
(String id, OnEventOptions options) (experimental) Define an EventBridge rule that triggers when something happens to this agent alias.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
-
getAgent
(experimental) The underlying agent for this alias. -
getAliasArn
(experimental) The ARN of the agent alias. -
getAliasId
(experimental) The unique identifier of the agent alias. -
grant
@Stability(Experimental) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given principal identity permissions to perform actions on this agent alias.- Parameters:
grantee
- This parameter is required.actions
- This parameter is required.
-
grantGet
(experimental) Grant the given identity permissions to get the agent alias.- Parameters:
grantee
- This parameter is required.
-
grantInvoke
(experimental) Grant the given identity permissions to invoke the agent alias.- Parameters:
grantee
- This parameter is required.
-
onCloudTrailEvent
@Stability(Experimental) @NotNull Rule onCloudTrailEvent(@NotNull String id, @Nullable OnEventOptions options) (experimental) Define an EventBridge rule that triggers when something happens to this agent alias.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Parameters:
id
- The id of the rule. This parameter is required.options
- Options for adding the rule.
-
onCloudTrailEvent
(experimental) Define an EventBridge rule that triggers when something happens to this agent alias.Requires that there exists at least one CloudTrail Trail in your account that captures the event. This method will not create the Trail.
- Parameters:
id
- The id of the rule. This parameter is required.
-