Interface IAgent.Jsii$Default

All Superinterfaces:
IAgent, software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, IGrantable, IGrantable.Jsii$Default, IResource, IResource.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
IAgent.Jsii$Proxy
Enclosing interface:
IAgent

@Internal public static interface IAgent.Jsii$Default extends IAgent, IResource.Jsii$Default, IGrantable.Jsii$Default
Internal default implementation for IAgent.
  • Method Details

    • getAgentArn

      @Stability(Experimental) @NotNull default String getAgentArn()
      (experimental) The ARN of the agent.
      Specified by:
      getAgentArn in interface IAgent
    • getAgentId

      @Stability(Experimental) @NotNull default String getAgentId()
      (experimental) The ID of the Agent.
      Specified by:
      getAgentId in interface IAgent
    • getRole

      @Stability(Experimental) @NotNull default IRole getRole()
      (experimental) The IAM role associated to the agent.
      Specified by:
      getRole in interface IAgent
    • getKmsKey

      @Stability(Experimental) @Nullable default IKey getKmsKey()
      (experimental) Optional KMS encryption key associated with this agent.
      Specified by:
      getKmsKey in interface IAgent
    • getLastUpdated

      @Stability(Experimental) @Nullable default String getLastUpdated()
      (experimental) When this agent was last updated.
      Specified by:
      getLastUpdated in interface IAgent
    • grantInvoke

      @Stability(Experimental) @NotNull default Grant grantInvoke(@NotNull IGrantable grantee)
      (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.

      Specified by:
      grantInvoke in interface IAgent
      Parameters:
      grantee - This parameter is required.
    • metricCount

      @Stability(Experimental) @NotNull default Metric metricCount(@Nullable MetricOptions props)
      (experimental) Return the CloudWatch metric for agent count.

      Specified by:
      metricCount in interface IAgent
      Parameters:
      props -
    • metricCount

      @Stability(Experimental) @NotNull default Metric metricCount()
      (experimental) Return the CloudWatch metric for agent count.
      Specified by:
      metricCount in interface IAgent
    • onEvent

      @Stability(Experimental) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options)
      (experimental) Defines a CloudWatch event rule triggered by agent events.

      Specified by:
      onEvent in interface IAgent
      Parameters:
      id - This parameter is required.
      options -
    • onEvent

      @Stability(Experimental) @NotNull default Rule onEvent(@NotNull String id)
      (experimental) Defines a CloudWatch event rule triggered by agent events.

      Specified by:
      onEvent in interface IAgent
      Parameters:
      id - This parameter is required.