java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrock.agentcore.alpha.RuntimeBase
All Implemented Interfaces:
IEnvironmentAware, IResource, IBedrockAgentRuntime, IConnectable, IGrantable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
Runtime

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-12T17:54:41.123Z") @Stability(Experimental) public abstract class RuntimeBase extends Resource implements IBedrockAgentRuntime
(experimental) Base class for Agent Runtime.
  • Constructor Details

    • RuntimeBase

      protected RuntimeBase(software.amazon.jsii.JsiiObjectRef objRef)
    • RuntimeBase

      protected RuntimeBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • RuntimeBase

      @Stability(Experimental) protected RuntimeBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • addToRolePolicy

      @Stability(Experimental) @NotNull public IBedrockAgentRuntime addToRolePolicy(@NotNull PolicyStatement statement)
      (experimental) Adds a policy statement to the runtime's execution role.

      Specified by:
      addToRolePolicy in interface IBedrockAgentRuntime
      Parameters:
      statement - The IAM policy statement to add. This parameter is required.
      Returns:
      The runtime instance for chaining
    • grant

      @Stability(Experimental) @NotNull public Grant grant(@NotNull List<String> actions, @NotNull List<String> resources)
      (experimental) Grant the runtime specific actions on AWS resources.

      Specified by:
      grant in interface IBedrockAgentRuntime
      Parameters:
      actions - The actions to grant. This parameter is required.
      resources - The resource ARNs to grant access to. This parameter is required.
      Returns:
      The Grant object for chaining
    • grantInvoke

      @Stability(Experimental) @NotNull public Grant grantInvoke(@NotNull IGrantable grantee)
      (experimental) Permits an IAM principal to invoke this runtime both directly and on behalf of users Grants both bedrock-agentcore:InvokeAgentRuntime and bedrock-agentcore:InvokeAgentRuntimeForUser permissions.

      Specified by:
      grantInvoke in interface IBedrockAgentRuntime
      Parameters:
      grantee - The principal to grant access to. This parameter is required.
    • grantInvokeRuntime

      @Stability(Experimental) @NotNull public Grant grantInvokeRuntime(@NotNull IGrantable grantee)
      (experimental) Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.

      Specified by:
      grantInvokeRuntime in interface IBedrockAgentRuntime
      Parameters:
      grantee - The principal to grant access to. This parameter is required.
    • grantInvokeRuntimeForUser

      @Stability(Experimental) @NotNull public Grant grantInvokeRuntimeForUser(@NotNull IGrantable grantee)
      (experimental) Permits an IAM principal to invoke this runtime on behalf of a user Grants the bedrock-agentcore:InvokeAgentRuntimeForUser permission Required when using the X-Amzn-Bedrock-AgentCore-Runtime-User-Id header.

      Specified by:
      grantInvokeRuntimeForUser in interface IBedrockAgentRuntime
      Parameters:
      grantee - The principal to grant access to. This parameter is required.
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Map<String,String> dimensions, @Nullable MetricOptions props)
      (experimental) Return the given named metric for this agent runtime.

      By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the statistic and period properties.

      Specified by:
      metric in interface IBedrockAgentRuntime
      Parameters:
      metricName - This parameter is required.
      dimensions - This parameter is required.
      props -
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Map<String,String> dimensions)
      (experimental) Return the given named metric for this agent runtime.

      By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the statistic and period properties.

      Specified by:
      metric in interface IBedrockAgentRuntime
      Parameters:
      metricName - This parameter is required.
      dimensions - This parameter is required.
    • metricInvocations

      @Stability(Experimental) @NotNull public Metric metricInvocations(@Nullable MetricOptions props)
      (experimental) Return a metric containing the total number of invocations for this agent runtime.

      Specified by:
      metricInvocations in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricInvocations

      @Stability(Experimental) @NotNull public Metric metricInvocations()
      (experimental) Return a metric containing the total number of invocations for this agent runtime.
      Specified by:
      metricInvocations in interface IBedrockAgentRuntime
    • metricInvocationsAggregated

      @Stability(Experimental) @NotNull public Metric metricInvocationsAggregated(@Nullable MetricOptions props)
      (experimental) Return a metric containing the total number of invocations across all resources.

      Specified by:
      metricInvocationsAggregated in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricInvocationsAggregated

      @Stability(Experimental) @NotNull public Metric metricInvocationsAggregated()
      (experimental) Return a metric containing the total number of invocations across all resources.
      Specified by:
      metricInvocationsAggregated in interface IBedrockAgentRuntime
    • metricLatency

      @Stability(Experimental) @NotNull public Metric metricLatency(@Nullable MetricOptions props)
      (experimental) Return a metric measuring the latency of requests for this agent runtime.

      The latency metric represents the total time elapsed between receiving the request and sending the final response token, representing complete end-to-end processing time.

      Specified by:
      metricLatency in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricLatency

      @Stability(Experimental) @NotNull public Metric metricLatency()
      (experimental) Return a metric measuring the latency of requests for this agent runtime.

      The latency metric represents the total time elapsed between receiving the request and sending the final response token, representing complete end-to-end processing time.

      Specified by:
      metricLatency in interface IBedrockAgentRuntime
    • metricSessionCount

      @Stability(Experimental) @NotNull public Metric metricSessionCount(@Nullable MetricOptions props)
      (experimental) Return a metric containing the number of agent sessions for this agent runtime.

      Specified by:
      metricSessionCount in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricSessionCount

      @Stability(Experimental) @NotNull public Metric metricSessionCount()
      (experimental) Return a metric containing the number of agent sessions for this agent runtime.
      Specified by:
      metricSessionCount in interface IBedrockAgentRuntime
    • metricSessionsAggregated

      @Stability(Experimental) @NotNull public Metric metricSessionsAggregated(@Nullable MetricOptions props)
      (experimental) Return a metric containing the total number of sessions across all resources.

      Specified by:
      metricSessionsAggregated in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricSessionsAggregated

      @Stability(Experimental) @NotNull public Metric metricSessionsAggregated()
      (experimental) Return a metric containing the total number of sessions across all resources.
      Specified by:
      metricSessionsAggregated in interface IBedrockAgentRuntime
    • metricSystemErrors

      @Stability(Experimental) @NotNull public Metric metricSystemErrors(@Nullable MetricOptions props)
      (experimental) Return a metric containing the number of system errors for this agent runtime.

      Specified by:
      metricSystemErrors in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricSystemErrors

      @Stability(Experimental) @NotNull public Metric metricSystemErrors()
      (experimental) Return a metric containing the number of system errors for this agent runtime.
      Specified by:
      metricSystemErrors in interface IBedrockAgentRuntime
    • metricThrottles

      @Stability(Experimental) @NotNull public Metric metricThrottles(@Nullable MetricOptions props)
      (experimental) Return a metric containing the number of throttled requests for this agent runtime.

      Specified by:
      metricThrottles in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricThrottles

      @Stability(Experimental) @NotNull public Metric metricThrottles()
      (experimental) Return a metric containing the number of throttled requests for this agent runtime.
      Specified by:
      metricThrottles in interface IBedrockAgentRuntime
    • metricTotalErrors

      @Stability(Experimental) @NotNull public Metric metricTotalErrors(@Nullable MetricOptions props)
      (experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.

      Specified by:
      metricTotalErrors in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricTotalErrors

      @Stability(Experimental) @NotNull public Metric metricTotalErrors()
      (experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.
      Specified by:
      metricTotalErrors in interface IBedrockAgentRuntime
    • metricUserErrors

      @Stability(Experimental) @NotNull public Metric metricUserErrors(@Nullable MetricOptions props)
      (experimental) Return a metric containing the number of user errors for this agent runtime.

      Specified by:
      metricUserErrors in interface IBedrockAgentRuntime
      Parameters:
      props -
    • metricUserErrors

      @Stability(Experimental) @NotNull public Metric metricUserErrors()
      (experimental) Return a metric containing the number of user errors for this agent runtime.
      Specified by:
      metricUserErrors in interface IBedrockAgentRuntime
    • getAgentRuntimeArn

      @Stability(Experimental) @NotNull public abstract String getAgentRuntimeArn()
      (experimental) The ARN of the agent runtime resource - Format arn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.
      Specified by:
      getAgentRuntimeArn in interface IBedrockAgentRuntime
    • getAgentRuntimeId

      @Stability(Experimental) @NotNull public abstract String getAgentRuntimeId()
      (experimental) The ID of the agent runtime.
      Specified by:
      getAgentRuntimeId in interface IBedrockAgentRuntime
    • getAgentRuntimeName

      @Stability(Experimental) @NotNull public abstract String getAgentRuntimeName()
      (experimental) The name of the agent runtime.
      Specified by:
      getAgentRuntimeName in interface IBedrockAgentRuntime
    • getConnections

      @Stability(Experimental) @NotNull public Connections getConnections()
      (experimental) An accessor for the Connections object that will fail if this Runtime does not have a VPC configured.
      Specified by:
      getConnections in interface IConnectable
    • getGrantPrincipal

      @Stability(Experimental) @NotNull public abstract IPrincipal getGrantPrincipal()
      (experimental) The principal to grant permissions to.
      Specified by:
      getGrantPrincipal in interface IGrantable
    • getRole

      @Stability(Experimental) @NotNull public abstract IRole getRole()
      (experimental) The IAM role that provides permissions for the agent runtime.
      Specified by:
      getRole in interface IBedrockAgentRuntime
    • getAgentRuntimeVersion

      @Stability(Experimental) @Nullable public abstract String getAgentRuntimeVersion()
      (experimental) The version of the agent runtime.
      Specified by:
      getAgentRuntimeVersion in interface IBedrockAgentRuntime
    • getAgentStatus

      @Stability(Experimental) @Nullable public abstract String getAgentStatus()
      (experimental) The current status of the agent runtime.
      Specified by:
      getAgentStatus in interface IBedrockAgentRuntime
    • getCreatedAt

      @Stability(Experimental) @Nullable public abstract String getCreatedAt()
      (experimental) The time at which the runtime was created.
      Specified by:
      getCreatedAt in interface IBedrockAgentRuntime
    • getLastUpdatedAt

      @Stability(Experimental) @Nullable public abstract String getLastUpdatedAt()
      (experimental) The time at which the runtime was last updated.
      Specified by:
      getLastUpdatedAt in interface IBedrockAgentRuntime