Class CodeInterpreterCustomBase
- All Implemented Interfaces:
ICodeInterpreterCustomRef,IEnvironmentAware,IResource,ICodeInterpreterCustom,IConnectable,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
CodeInterpreterCustom
Contains methods and attributes valid for Code Interpreters either created with CDK or imported.
-
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.ICodeInterpreterCustom
ICodeInterpreterCustom.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
ConstructorsModifierConstructorDescriptionprotectedCodeInterpreterCustomBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCodeInterpreterCustomBase(software.amazon.jsii.JsiiObjectRef objRef) protectedCodeInterpreterCustomBase(software.constructs.Construct scope, String id) protectedCodeInterpreterCustomBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract StringThe ARN of the code interpreter resource.A reference to a CodeInterpreterCustom resource.abstract StringThe id of the code interpreter.An accessor for the Connections object that will fail if this Browser does not have a VPC configured.abstract StringTimestamp when the code interpreter was created.abstract IRoleThe IAM role that provides permissions for the code interpreter to access AWS services.abstract IPrincipalThe principal to grant permissions to.abstract StringTimestamp when the code interpreter was last updated.abstract StringThe status of the code interpreter.grant(IGrantable grantee, String... actions) Grants IAM actions to the IAM Principal.grantInvoke(IGrantable grantee) Grant invoke permissions on this code interpreter to an IAM principal.grantRead(IGrantable grantee) Grant read permissions on this code interpreter to an IAM principal.grantUse(IGrantable grantee) Grant invoke permissions on this code interpreter to an IAM principal.Return the given named metric for this code interpreter.metric(String metricName, MetricOptions props) Return the given named metric for this code interpreter.metricErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter errors.metricErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter errors.metricForApiOperation(String metricName, String operation) Creates a CloudWatch metric for tracking code interpreter api operations..metricForApiOperation(String metricName, String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter api operations..metricInvocationsForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter invocations.metricInvocationsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter invocations.metricLatencyForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter latencies.metricLatencyForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter latencies.Creates a CloudWatch metric for tracking code interpreter session duration.Creates a CloudWatch metric for tracking code interpreter session duration.metricSystemErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter system errors.metricSystemErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter system errors.metricThrottlesForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter throttles.metricThrottlesForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter throttles.metricUserErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking code interpreter user errors.metricUserErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking code interpreter user errors.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
-
CodeInterpreterCustomBase
protected CodeInterpreterCustomBase(software.amazon.jsii.JsiiObjectRef objRef) -
CodeInterpreterCustomBase
protected CodeInterpreterCustomBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CodeInterpreterCustomBase
@Stability(Stable) protected CodeInterpreterCustomBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
CodeInterpreterCustomBase
@Stability(Stable) protected CodeInterpreterCustomBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grants IAM actions to the IAM Principal.[disable-awslint:no-grants]
- Specified by:
grantin interfaceICodeInterpreterCustom- Parameters:
grantee-- The IAM principal to grant permissions to.
actions-- The actions to grant.
- Returns:
- An IAM Grant object representing the granted permissions
-
grantInvoke
Grant invoke permissions on this code interpreter to an IAM principal.[disable-awslint:no-grants]
Default: - Default grant configuration: - actions: ['bedrock-agentcore:InvokeCodeInterpreter'] - resourceArns: [this.codeInterpreterArn]
- Parameters:
grantee-- The IAM principal to grant invoke permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
grantRead
Grant read permissions on this code interpreter to an IAM principal.This includes both read permissions on the specific code interpreter and list permissions on all code interpreters.
[disable-awslint:no-grants]
Default: - Default grant configuration: - actions: ['bedrock-agentcore:GetCodeInterpreter', 'bedrock-agentcore:GetCodeInterpreterSession'] on this.codeInterpreterArn - actions: ['bedrock-agentcore:ListCodeInterpreters', 'bedrock-agentcore:ListCodeInterpreterSessions'] on all resources (*)
- Specified by:
grantReadin interfaceICodeInterpreterCustom- Parameters:
grantee-- The IAM principal to grant read permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
grantUse
Grant invoke permissions on this code interpreter to an IAM principal.[disable-awslint:no-grants]
Default: - Default grant configuration: - actions: ['bedrock-agentcore:StartCodeInterpreterSession', 'bedrock-agentcore:InvokeCodeInterpreter', 'bedrock-agentcore:StopCodeInterpreterSession'] - resourceArns: [this.codeInterpreterArn]
- Specified by:
grantUsein interfaceICodeInterpreterCustom- Parameters:
grantee-- The IAM principal to grant invoke permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this code interpreter.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 interfaceICodeInterpreterCustom- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this code interpreter.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 interfaceICodeInterpreterCustom- Parameters:
metricName- This parameter is required.
-
metricErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Errors
- Specified by:
metricErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter errors
-
metricErrorsForApiOperation
Creates a CloudWatch metric for tracking code interpreter errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Errors
- Specified by:
metricErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter errors
-
metricForApiOperation
@Stability(Stable) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter api operations..Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: metricName - dimensionsMap: { CodeInterpreterId: this.codeInterpreterId }
- Specified by:
metricForApiOperationin interfaceICodeInterpreterCustom- Parameters:
metricName- This parameter is required.operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter api operations
-
metricForApiOperation
@Stability(Stable) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation) Creates a CloudWatch metric for tracking code interpreter api operations..Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: metricName - dimensionsMap: { CodeInterpreterId: this.codeInterpreterId }
- Specified by:
metricForApiOperationin interfaceICodeInterpreterCustom- Parameters:
metricName- This parameter is required.operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter api operations
-
metricInvocationsForApiOperation
@Stability(Stable) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter invocations.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Invocations
- Specified by:
metricInvocationsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter invocations
-
metricInvocationsForApiOperation
@Stability(Stable) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking code interpreter invocations.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Invocations
- Specified by:
metricInvocationsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter invocations
-
metricLatencyForApiOperation
@Stability(Stable) @NotNull public Metric metricLatencyForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter latencies.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Latency
- Specified by:
metricLatencyForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter latencies
-
metricLatencyForApiOperation
Creates a CloudWatch metric for tracking code interpreter latencies.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Latency
- Specified by:
metricLatencyForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter latencies
-
metricSessionDuration
Creates a CloudWatch metric for tracking code interpreter session duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Duration
- Specified by:
metricSessionDurationin interfaceICodeInterpreterCustom- Parameters:
props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter session duration
-
metricSessionDuration
Creates a CloudWatch metric for tracking code interpreter session duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Duration
- Specified by:
metricSessionDurationin interfaceICodeInterpreterCustom- Returns:
- A CloudWatch Metric configured for code interpreter session duration
-
metricSystemErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter system errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: SystemErrors
- Specified by:
metricSystemErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter system errors
-
metricSystemErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking code interpreter system errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: SystemErrors
- Specified by:
metricSystemErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter system errors
-
metricThrottlesForApiOperation
@Stability(Stable) @NotNull public Metric metricThrottlesForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter throttles.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Throttles
- Specified by:
metricThrottlesForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter throttles
-
metricThrottlesForApiOperation
Creates a CloudWatch metric for tracking code interpreter throttles.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Throttles
- Specified by:
metricThrottlesForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter throttles
-
metricUserErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking code interpreter user errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: UserErrors
- Specified by:
metricUserErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for code interpreter user errors
-
metricUserErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking code interpreter user errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: UserErrors
- Specified by:
metricUserErrorsForApiOperationin interfaceICodeInterpreterCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for code interpreter user errors
-
getCodeInterpreterArn
The ARN of the code interpreter resource.- Specified by:
getCodeInterpreterArnin interfaceICodeInterpreterCustom
-
getCodeInterpreterCustomRef
A reference to a CodeInterpreterCustom resource.- Specified by:
getCodeInterpreterCustomRefin interfaceICodeInterpreterCustomRef
-
getCodeInterpreterId
The id of the code interpreter.- Specified by:
getCodeInterpreterIdin interfaceICodeInterpreterCustom
-
getConnections
An accessor for the Connections object that will fail if this Browser does not have a VPC configured.- Specified by:
getConnectionsin interfaceIConnectable
-
getExecutionRole
The IAM role that provides permissions for the code interpreter to access AWS services.- Specified by:
getExecutionRolein interfaceICodeInterpreterCustom
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getCreatedAt
Timestamp when the code interpreter was created.- Specified by:
getCreatedAtin interfaceICodeInterpreterCustom
-
getLastUpdatedAt
Timestamp when the code interpreter was last updated.- Specified by:
getLastUpdatedAtin interfaceICodeInterpreterCustom
-
getStatus
The status of the code interpreter.- Specified by:
getStatusin interfaceICodeInterpreterCustom
-