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

    • getNode

      @Stability(Stable) @NotNull default software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
      Specified by:
      getNode in interface software.constructs.IConstruct.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull default ResourceEnvironment getEnv()
      The environment this resource belongs to.

      For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

      For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

      Specified by:
      getEnv in interface IEnvironmentAware
      Specified by:
      getEnv in interface IEnvironmentAware.Jsii$Default
      Specified by:
      getEnv in interface IResource.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull default Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
    • getGrantPrincipal

      @Stability(Stable) @NotNull default IPrincipal getGrantPrincipal()
      The principal to grant permissions to.
      Specified by:
      getGrantPrincipal in interface IGrantable
      Specified by:
      getGrantPrincipal in interface IGrantable.Jsii$Default
    • 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
    • applyRemovalPolicy

      @Stability(Stable) default void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      Apply the given removal policy to this resource.

      The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

      The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

      Specified by:
      applyRemovalPolicy in interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.Jsii$Default
      Parameters:
      policy - This parameter is required.
    • 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 -
    • 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 -