Class RuntimeBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.agentcore.alpha.IBedrockAgentRuntime
IBedrockAgentRuntime.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRuntimeBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRuntimeBase(software.amazon.jsii.JsiiObjectRef objRef) protectedRuntimeBase(software.constructs.Construct scope, String id) -
Method Summary
Modifier and TypeMethodDescriptionaddToRolePolicy(PolicyStatement statement) (experimental) Adds a policy statement to the runtime's execution role.abstract String(experimental) The ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.abstract String(experimental) The ID of the agent runtime.abstract String(experimental) The name of the agent runtime.abstract String(experimental) The version of the agent runtime.abstract String(experimental) The current status of the agent runtime.(experimental) An accessor for the Connections object that will fail if this Runtime does not have a VPC configured.abstract String(experimental) The time at which the runtime was created.abstract IPrincipal(experimental) The principal to grant permissions to.abstract String(experimental) The time at which the runtime was last updated.abstract IRolegetRole()(experimental) The IAM role that provides permissions for the agent runtime.(experimental) Grant the runtime specific actions on AWS resources.grantInvoke(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.grantInvokeRuntime(IGrantable grantee) (experimental) Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.grantInvokeRuntimeForUser(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.(experimental) Return the given named metric for this agent runtime.(experimental) Return the given named metric for this agent runtime.(experimental) Return a metric containing the total number of invocations for this agent runtime.metricInvocations(MetricOptions props) (experimental) Return a metric containing the total number of invocations for this agent runtime.(experimental) Return a metric containing the total number of invocations across all resources.(experimental) Return a metric containing the total number of invocations across all resources.(experimental) Return a metric measuring the latency of requests for this agent runtime.metricLatency(MetricOptions props) (experimental) Return a metric measuring the latency of requests for this agent runtime.(experimental) Return a metric containing the number of agent sessions for this agent runtime.metricSessionCount(MetricOptions props) (experimental) Return a metric containing the number of agent sessions for this agent runtime.(experimental) Return a metric containing the total number of sessions across all resources.(experimental) Return a metric containing the total number of sessions across all resources.(experimental) Return a metric containing the number of system errors for this agent runtime.metricSystemErrors(MetricOptions props) (experimental) Return a metric containing the number of system errors for this agent runtime.(experimental) Return a metric containing the number of throttled requests for this agent runtime.metricThrottles(MetricOptions props) (experimental) Return a metric containing the number of throttled requests for this agent runtime.(experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.metricTotalErrors(MetricOptions props) (experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.(experimental) Return a metric containing the number of user errors for this agent runtime.metricUserErrors(MetricOptions props) (experimental) Return a metric containing the number of user errors for this agent runtime.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
addToRolePolicyin interfaceIBedrockAgentRuntime- 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:
grantin interfaceIBedrockAgentRuntime- 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
(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:
grantInvokein interfaceIBedrockAgentRuntime- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
grantInvokeRuntime
(experimental) Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.- Specified by:
grantInvokeRuntimein interfaceIBedrockAgentRuntime- 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:
grantInvokeRuntimeForUserin interfaceIBedrockAgentRuntime- 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
statisticandperiodproperties.- Specified by:
metricin interfaceIBedrockAgentRuntime- 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
statisticandperiodproperties.- Specified by:
metricin interfaceIBedrockAgentRuntime- Parameters:
metricName- This parameter is required.dimensions- This parameter is required.
-
metricInvocations
(experimental) Return a metric containing the total number of invocations for this agent runtime.- Specified by:
metricInvocationsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricInvocations
(experimental) Return a metric containing the total number of invocations for this agent runtime.- Specified by:
metricInvocationsin interfaceIBedrockAgentRuntime
-
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:
metricInvocationsAggregatedin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricInvocationsAggregated
(experimental) Return a metric containing the total number of invocations across all resources.- Specified by:
metricInvocationsAggregatedin interfaceIBedrockAgentRuntime
-
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:
metricLatencyin interfaceIBedrockAgentRuntime- Parameters:
props-
-
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:
metricLatencyin interfaceIBedrockAgentRuntime
-
metricSessionCount
(experimental) Return a metric containing the number of agent sessions for this agent runtime.- Specified by:
metricSessionCountin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSessionCount
(experimental) Return a metric containing the number of agent sessions for this agent runtime.- Specified by:
metricSessionCountin interfaceIBedrockAgentRuntime
-
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:
metricSessionsAggregatedin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSessionsAggregated
(experimental) Return a metric containing the total number of sessions across all resources.- Specified by:
metricSessionsAggregatedin interfaceIBedrockAgentRuntime
-
metricSystemErrors
(experimental) Return a metric containing the number of system errors for this agent runtime.- Specified by:
metricSystemErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSystemErrors
(experimental) Return a metric containing the number of system errors for this agent runtime.- Specified by:
metricSystemErrorsin interfaceIBedrockAgentRuntime
-
metricThrottles
(experimental) Return a metric containing the number of throttled requests for this agent runtime.- Specified by:
metricThrottlesin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricThrottles
(experimental) Return a metric containing the number of throttled requests for this agent runtime.- Specified by:
metricThrottlesin interfaceIBedrockAgentRuntime
-
metricTotalErrors
(experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.- Specified by:
metricTotalErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricTotalErrors
(experimental) Return a metric containing the total number of errors (system + user) for this agent runtime.- Specified by:
metricTotalErrorsin interfaceIBedrockAgentRuntime
-
metricUserErrors
(experimental) Return a metric containing the number of user errors for this agent runtime.- Specified by:
metricUserErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricUserErrors
(experimental) Return a metric containing the number of user errors for this agent runtime.- Specified by:
metricUserErrorsin interfaceIBedrockAgentRuntime
-
getAgentRuntimeArn
(experimental) The ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.- Specified by:
getAgentRuntimeArnin interfaceIBedrockAgentRuntime
-
getAgentRuntimeId
(experimental) The ID of the agent runtime.- Specified by:
getAgentRuntimeIdin interfaceIBedrockAgentRuntime
-
getAgentRuntimeName
(experimental) The name of the agent runtime.- Specified by:
getAgentRuntimeNamein interfaceIBedrockAgentRuntime
-
getConnections
(experimental) An accessor for the Connections object that will fail if this Runtime does not have a VPC configured.- Specified by:
getConnectionsin interfaceIConnectable
-
getGrantPrincipal
(experimental) The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getRole
(experimental) The IAM role that provides permissions for the agent runtime.- Specified by:
getRolein interfaceIBedrockAgentRuntime
-
getAgentRuntimeVersion
(experimental) The version of the agent runtime.- Specified by:
getAgentRuntimeVersionin interfaceIBedrockAgentRuntime
-
getAgentStatus
(experimental) The current status of the agent runtime.- Specified by:
getAgentStatusin interfaceIBedrockAgentRuntime
-
getCreatedAt
(experimental) The time at which the runtime was created.- Specified by:
getCreatedAtin interfaceIBedrockAgentRuntime
-
getLastUpdatedAt
(experimental) The time at which the runtime was last updated.- Specified by:
getLastUpdatedAtin interfaceIBedrockAgentRuntime
-