Interface IAgent
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IAgent.Jsii$Default
- All Known Implementing Classes:
Agent,AgentBase,IAgent.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:49.488Z")
@Stability(Experimental)
public interface IAgent
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable
(experimental) Represents an Agent, either created with CDK or imported.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIAgent.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescription(experimental) The ARN of the agent.(experimental) The ID of the Agent.default IKey(experimental) Optional KMS encryption key associated with this agent.default String(experimental) When this agent was last updated.getRole()(experimental) The IAM role associated to the agent.grantInvoke(IGrantable grantee) (experimental) Grant invoke permissions on this agent to an IAM principal.(experimental) Return the CloudWatch metric for agent count.metricCount(MetricOptions props) (experimental) Return the CloudWatch metric for agent count.(experimental) Defines a CloudWatch event rule triggered by agent events.onEvent(String id, OnEventOptions options) (experimental) Defines a CloudWatch event rule triggered by agent events.Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentArn
(experimental) The ARN of the agent. -
getAgentId
(experimental) The ID of the Agent. -
getRole
(experimental) The IAM role associated to the agent. -
getKmsKey
(experimental) Optional KMS encryption key associated with this agent. -
getLastUpdated
(experimental) When this agent was last updated. -
grantInvoke
(experimental) Grant invoke permissions on this agent to an IAM principal.Note: This grant will only work when the grantee is in the same AWS account where the agent is defined. Cross-account invocation is not supported.
- Parameters:
grantee- This parameter is required.
-
metricCount
(experimental) Return the CloudWatch metric for agent count.- Parameters:
props-
-
metricCount
(experimental) Return the CloudWatch metric for agent count. -
onEvent
@Stability(Experimental) @NotNull Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) (experimental) Defines a CloudWatch event rule triggered by agent events.- Parameters:
id- This parameter is required.options-
-
onEvent
(experimental) Defines a CloudWatch event rule triggered by agent events.- Parameters:
id- This parameter is required.
-