Interface IBedrockAgentRuntime
- All Superinterfaces:
IConnectable,software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IGrantable,IResource,IRuntimeRef,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IBedrockAgentRuntime.Jsii$Default
- All Known Implementing Classes:
IBedrockAgentRuntime.Jsii$Proxy,Runtime,RuntimeBase
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.419Z")
@Stability(Stable)
public interface IBedrockAgentRuntime
extends software.amazon.jsii.JsiiSerializable, IResource, IGrantable, IConnectable, IRuntimeRef
Interface for Agent Runtime resources.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIBedrockAgentRuntime.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddToRolePolicy(PolicyStatement statement) Adds a policy statement to the runtime's execution role.The ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.The ID of the agent runtime.The name of the agent runtime.default StringThe version of the agent runtime.default StringThe current status of the agent runtime.default StringThe time at which the runtime was created.default StringThe time at which the runtime was last updated.getRole()The IAM role that provides permissions for the agent runtime.Grant the runtime specific actions on AWS resources.grantInvoke(IGrantable grantee) 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) Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.grantInvokeRuntimeForUser(IGrantable grantee) 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.Return the given named metric for this agent runtime.metric(String metricName, MetricOptions props) Return the given named metric for this agent runtime.Return a metric containing the total number of invocations for this agent runtime.metricInvocations(MetricOptions props) Return a metric containing the total number of invocations for this agent runtime.Return a metric containing the total number of invocations across all resources.Return a metric containing the total number of invocations across all resources.Return a metric measuring the latency of requests for this agent runtime.metricLatency(MetricOptions props) Return a metric measuring the latency of requests for this agent runtime.Return a metric containing the number of agent sessions for this agent runtime.metricSessionCount(MetricOptions props) Return a metric containing the number of agent sessions for this agent runtime.Return a metric containing the total number of sessions across all resources.Return a metric containing the total number of sessions across all resources.Return a metric containing the number of system errors for this agent runtime.metricSystemErrors(MetricOptions props) Return a metric containing the number of system errors for this agent runtime.Return a metric containing the number of throttled requests for this agent runtime.metricThrottles(MetricOptions props) Return a metric containing the number of throttled requests for this agent runtime.Return a metric containing the total number of errors (system + user) for this agent runtime.metricTotalErrors(MetricOptions props) Return a metric containing the total number of errors (system + user) for this agent runtime.Return a metric containing the number of user errors for this agent runtime.metricUserErrors(MetricOptions props) Return a metric containing the number of user errors for this agent runtime.Methods inherited from interface software.amazon.awscdk.services.ec2.IConnectable
getConnectionsMethods inherited from interface software.constructs.IConstruct
getNode, withMethods 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.awscdk.interfaces.bedrockagentcore.IRuntimeRef
getRuntimeRefMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentRuntimeArn
The ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.Example:
"arn:aws:bedrock-agentcore:us-west-2:123456789012:runtime/runtime-abc123";
-
getAgentRuntimeId
The ID of the agent runtime.Example:
"runtime-abc123";
-
getAgentRuntimeName
The name of the agent runtime. -
getRole
The IAM role that provides permissions for the agent runtime. -
getAgentRuntimeVersion
The version of the agent runtime. -
getAgentStatus
The current status of the agent runtime. -
getCreatedAt
The time at which the runtime was created.Example:
"2024-01-15T10:30:00Z";
-
getLastUpdatedAt
The time at which the runtime was last updated.Example:
"2024-01-15T14:45:00Z";
-
addToRolePolicy
@Stability(Stable) @NotNull IBedrockAgentRuntime addToRolePolicy(@NotNull PolicyStatement statement) Adds a policy statement to the runtime's execution role.- Parameters:
statement- The IAM policy statement to add. This parameter is required.- Returns:
- The runtime instance for chaining
-
grant
@Stability(Stable) @NotNull Grant grant(@NotNull List<String> actions, @NotNull List<String> resources) Grant the runtime specific actions on AWS resources.- 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
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.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
grantInvokeRuntime
Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
grantInvokeRuntimeForUser
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.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this agent runtime.- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this agent runtime.- Parameters:
metricName- This parameter is required.
-
metricInvocations
Return a metric containing the total number of invocations for this agent runtime.- Parameters:
props-
-
metricInvocations
Return a metric containing the total number of invocations for this agent runtime. -
metricInvocationsAggregated
Return a metric containing the total number of invocations across all resources.- Parameters:
props-
-
metricInvocationsAggregated
Return a metric containing the total number of invocations across all resources. -
metricLatency
Return a metric measuring the latency of requests for this agent runtime.- Parameters:
props-
-
metricLatency
Return a metric measuring the latency of requests for this agent runtime. -
metricSessionCount
Return a metric containing the number of agent sessions for this agent runtime.- Parameters:
props-
-
metricSessionCount
Return a metric containing the number of agent sessions for this agent runtime. -
metricSessionsAggregated
Return a metric containing the total number of sessions across all resources.- Parameters:
props-
-
metricSessionsAggregated
Return a metric containing the total number of sessions across all resources. -
metricSystemErrors
Return a metric containing the number of system errors for this agent runtime.- Parameters:
props-
-
metricSystemErrors
Return a metric containing the number of system errors for this agent runtime. -
metricThrottles
Return a metric containing the number of throttled requests for this agent runtime.- Parameters:
props-
-
metricThrottles
Return a metric containing the number of throttled requests for this agent runtime. -
metricTotalErrors
Return a metric containing the total number of errors (system + user) for this agent runtime.- Parameters:
props-
-
metricTotalErrors
Return a metric containing the total number of errors (system + user) for this agent runtime. -
metricUserErrors
Return a metric containing the number of user errors for this agent runtime.- Parameters:
props-
-
metricUserErrors
Return a metric containing the number of user errors for this agent runtime.
-