Class RuntimeBase
- All Implemented Interfaces:
IRuntimeRef,IEnvironmentAware,IResource,IBedrockAgentRuntime,IConnectable,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
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.bedrockagentcore.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) protectedRuntimeBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddToRolePolicy(PolicyStatement statement) Adds a policy statement to the runtime's execution role.abstract StringThe ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.abstract StringThe ID of the agent runtime.abstract StringThe name of the agent runtime.abstract StringThe version of the agent runtime.abstract StringThe current status of the agent runtime.An accessor for the Connections object that will fail if this Runtime does not have a VPC configured.abstract StringThe time at which the runtime was created.abstract IPrincipalThe principal to grant permissions to.abstract StringThe time at which the runtime was last updated.abstract IRolegetRole()The IAM role that provides permissions for the agent runtime.A reference to a Runtime resource.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 class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods 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
getNode, withMethods 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(Stable) protected RuntimeBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
RuntimeBase
@Stability(Stable) 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(Stable) @NotNull public IBedrockAgentRuntime addToRolePolicy(@NotNull PolicyStatement statement) 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(Stable) @NotNull public Grant grant(@NotNull List<String> actions, @NotNull List<String> resources) Grant the runtime specific actions on AWS resources.[disable-awslint:no-grants]
- 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
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.[disable-awslint:no-grants]
- Specified by:
grantInvokein interfaceIBedrockAgentRuntime- 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.[disable-awslint:no-grants]
- Specified by:
grantInvokeRuntimein interfaceIBedrockAgentRuntime- 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.[disable-awslint:no-grants]
- Specified by:
grantInvokeRuntimeForUserin interfaceIBedrockAgentRuntime- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) 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.props-
-
metric
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.
-
metricInvocations
Return a metric containing the total number of invocations for this agent runtime.- Specified by:
metricInvocationsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricInvocations
Return a metric containing the total number of invocations for this agent runtime.- Specified by:
metricInvocationsin interfaceIBedrockAgentRuntime
-
metricInvocationsAggregated
@Stability(Stable) @NotNull public Metric metricInvocationsAggregated(@Nullable MetricOptions props) Return a metric containing the total number of invocations across all resources.- Specified by:
metricInvocationsAggregatedin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricInvocationsAggregated
Return a metric containing the total number of invocations across all resources.- Specified by:
metricInvocationsAggregatedin interfaceIBedrockAgentRuntime
-
metricLatency
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
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
Return a metric containing the number of agent sessions for this agent runtime.- Specified by:
metricSessionCountin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSessionCount
Return a metric containing the number of agent sessions for this agent runtime.- Specified by:
metricSessionCountin interfaceIBedrockAgentRuntime
-
metricSessionsAggregated
Return a metric containing the total number of sessions across all resources.- Specified by:
metricSessionsAggregatedin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSessionsAggregated
Return a metric containing the total number of sessions across all resources.- Specified by:
metricSessionsAggregatedin interfaceIBedrockAgentRuntime
-
metricSystemErrors
Return a metric containing the number of system errors for this agent runtime.- Specified by:
metricSystemErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricSystemErrors
Return a metric containing the number of system errors for this agent runtime.- Specified by:
metricSystemErrorsin interfaceIBedrockAgentRuntime
-
metricThrottles
Return a metric containing the number of throttled requests for this agent runtime.- Specified by:
metricThrottlesin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricThrottles
Return a metric containing the number of throttled requests for this agent runtime.- Specified by:
metricThrottlesin interfaceIBedrockAgentRuntime
-
metricTotalErrors
Return a metric containing the total number of errors (system + user) for this agent runtime.- Specified by:
metricTotalErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricTotalErrors
Return a metric containing the total number of errors (system + user) for this agent runtime.- Specified by:
metricTotalErrorsin interfaceIBedrockAgentRuntime
-
metricUserErrors
Return a metric containing the number of user errors for this agent runtime.- Specified by:
metricUserErrorsin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricUserErrors
Return a metric containing the number of user errors for this agent runtime.- Specified by:
metricUserErrorsin interfaceIBedrockAgentRuntime
-
getAgentRuntimeArn
The ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.- Specified by:
getAgentRuntimeArnin interfaceIBedrockAgentRuntime
-
getAgentRuntimeId
The ID of the agent runtime.- Specified by:
getAgentRuntimeIdin interfaceIBedrockAgentRuntime
-
getAgentRuntimeName
The name of the agent runtime.- Specified by:
getAgentRuntimeNamein interfaceIBedrockAgentRuntime
-
getConnections
An accessor for the Connections object that will fail if this Runtime does not have a VPC configured.- Specified by:
getConnectionsin interfaceIConnectable
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getRole
The IAM role that provides permissions for the agent runtime.- Specified by:
getRolein interfaceIBedrockAgentRuntime
-
getRuntimeRef
A reference to a Runtime resource.- Specified by:
getRuntimeRefin interfaceIRuntimeRef
-
getAgentRuntimeVersion
The version of the agent runtime.- Specified by:
getAgentRuntimeVersionin interfaceIBedrockAgentRuntime
-
getAgentStatus
The current status of the agent runtime.- Specified by:
getAgentStatusin interfaceIBedrockAgentRuntime
-
getCreatedAt
The time at which the runtime was created.- Specified by:
getCreatedAtin interfaceIBedrockAgentRuntime
-
getLastUpdatedAt
The time at which the runtime was last updated.- Specified by:
getLastUpdatedAtin interfaceIBedrockAgentRuntime
-