Interface IBedrockAgentRuntime.Jsii$Default
- All Superinterfaces:
IBedrockAgentRuntime,IConnectable,IConnectable.Jsii$Default,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,IRuntimeRef,IRuntimeRef.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IBedrockAgentRuntime.Jsii$Proxy
- Enclosing interface:
IBedrockAgentRuntime
@Internal
public static interface IBedrockAgentRuntime.Jsii$Default
extends IBedrockAgentRuntime, IResource.Jsii$Default, IRuntimeRef.Jsii$Default, IConnectable.Jsii$Default, IGrantable.Jsii$Default
Internal default implementation for
IBedrockAgentRuntime.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IBedrockAgentRuntime
IBedrockAgentRuntime.Jsii$Default, IBedrockAgentRuntime.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IRuntimeRef
IRuntimeRef.Jsii$Default, IRuntimeRef.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault IBedrockAgentRuntimeaddToRolePolicy(PolicyStatement statement) Adds a policy statement to the runtime's execution role.default StringThe ARN of the agent runtime resource - Formatarn:${Partition}:bedrock-agentcore:${Region}:${Account}:runtime/${RuntimeId}.default StringThe ID of the agent runtime.default StringThe 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.default IRolegetRole()The IAM role that provides permissions for the agent runtime.default GrantGrant the runtime specific actions on AWS resources.default GrantgrantInvoke(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.default GrantgrantInvokeRuntime(IGrantable grantee) Permits an IAM principal to invoke this runtime Grants the bedrock-agentcore:InvokeAgentRuntime permission.default GrantgrantInvokeRuntimeForUser(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.default MetricReturn the given named metric for this agent runtime.default Metricmetric(String metricName, MetricOptions props) Return the given named metric for this agent runtime.default MetricReturn a metric containing the total number of invocations for this agent runtime.default MetricmetricInvocations(MetricOptions props) Return a metric containing the total number of invocations for this agent runtime.default MetricReturn a metric containing the total number of invocations across all resources.default MetricReturn a metric containing the total number of invocations across all resources.default MetricReturn a metric measuring the latency of requests for this agent runtime.default MetricmetricLatency(MetricOptions props) Return a metric measuring the latency of requests for this agent runtime.default MetricReturn a metric containing the number of agent sessions for this agent runtime.default MetricmetricSessionCount(MetricOptions props) Return a metric containing the number of agent sessions for this agent runtime.default MetricReturn a metric containing the total number of sessions across all resources.default MetricReturn a metric containing the total number of sessions across all resources.default MetricReturn a metric containing the number of system errors for this agent runtime.default MetricmetricSystemErrors(MetricOptions props) Return a metric containing the number of system errors for this agent runtime.default MetricReturn a metric containing the number of throttled requests for this agent runtime.default MetricmetricThrottles(MetricOptions props) Return a metric containing the number of throttled requests for this agent runtime.default MetricReturn a metric containing the total number of errors (system + user) for this agent runtime.default MetricmetricTotalErrors(MetricOptions props) Return a metric containing the total number of errors (system + user) for this agent runtime.default MetricReturn a metric containing the number of user errors for this agent runtime.default MetricmetricUserErrors(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.Jsii$Default
getConnectionsMethods inherited from interface software.constructs.IConstruct.Jsii$Default
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable.Jsii$Default
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IRuntimeRef.Jsii$Default
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";
- Specified by:
getAgentRuntimeArnin interfaceIBedrockAgentRuntime
-
getAgentRuntimeId
The ID of the agent runtime.Example:
"runtime-abc123";
- Specified by:
getAgentRuntimeIdin interfaceIBedrockAgentRuntime
-
getAgentRuntimeName
The name of the agent runtime.- Specified by:
getAgentRuntimeNamein interfaceIBedrockAgentRuntime
-
getRole
The IAM role that provides permissions for the agent runtime.- Specified by:
getRolein interfaceIBedrockAgentRuntime
-
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.Example:
"2024-01-15T10:30:00Z";
- Specified by:
getCreatedAtin interfaceIBedrockAgentRuntime
-
getLastUpdatedAt
The time at which the runtime was last updated.Example:
"2024-01-15T14:45:00Z";
- Specified by:
getLastUpdatedAtin interfaceIBedrockAgentRuntime
-
addToRolePolicy
@Stability(Stable) @NotNull default 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 default Grant grant(@NotNull List<String> actions, @NotNull List<String> resources) 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
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
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
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(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this agent runtime.- Specified by:
metricin interfaceIBedrockAgentRuntime- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this agent runtime.- 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 default 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.- Specified by:
metricLatencyin interfaceIBedrockAgentRuntime- Parameters:
props-
-
metricLatency
Return a metric measuring the latency of requests for this agent runtime.- 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
-