Class CodeInterpreterCustom
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustomBase
software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustom
- All Implemented Interfaces:
ICodeInterpreterCustomRef,IEnvironmentAware,IResource,ICodeInterpreterCustom,IConnectable,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-19T19:44:37.063Z")
@Stability(Stable)
public class CodeInterpreterCustom
extends CodeInterpreterCustomBase
Custom code interpreter resource for AWS Bedrock Agent Core.
Provides a sandboxed environment for code execution with configurable network access.
Example:
// Create a custom execution role
Role executionRole = Role.Builder.create(this, "CodeInterpreterExecutionRole")
.assumedBy(new ServicePrincipal("bedrock-agentcore.amazonaws.com"))
.build();
// Create code interpreter with custom execution role
CodeInterpreterCustom codeInterpreter = CodeInterpreterCustom.Builder.create(this, "MyCodeInterpreter")
.codeInterpreterCustomName("my_code_interpreter")
.description("Code interpreter with custom execution role")
.networkConfiguration(CodeInterpreterNetworkConfiguration.usingPublicNetwork())
.executionRole(executionRole)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCodeInterpreterCustom(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCodeInterpreterCustom(software.amazon.jsii.JsiiObjectRef objRef) CodeInterpreterCustom(software.constructs.Construct scope, String id) CodeInterpreterCustom(software.constructs.Construct scope, String id, CodeInterpreterCustomProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ICodeInterpreterCustomfromCodeInterpreterCustomAttributes(software.constructs.Construct scope, String id, CodeInterpreterCustomAttributes attrs) Creates an Code Interpreter Custom reference from an existing code interpreter's attributes.The ARN of the code interpreter resource.The name of the code interpreter.The id of the code interpreter.The created timestamp of the code interpreter.The description of the code interpreter.The IAM role that provides permissions for the code interpreter to access AWS services.The failure reason of the code interpreter.The principal to grant permissions to.The last updated timestamp of the code interpreter.The network configuration of the code interpreter.The status of the code interpreter.getTags()Tags applied to this code interpreter resource A map of key-value pairs for resource tagging.Methods inherited from class software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustomBase
getCodeInterpreterCustomRef, getConnections, grant, grantInvoke, grantRead, grantUse, metric, metric, metricErrorsForApiOperation, metricErrorsForApiOperation, metricForApiOperation, metricForApiOperation, metricInvocationsForApiOperation, metricInvocationsForApiOperation, metricLatencyForApiOperation, metricLatencyForApiOperation, metricSessionDuration, metricSessionDuration, metricSystemErrorsForApiOperation, metricSystemErrorsForApiOperation, metricThrottlesForApiOperation, metricThrottlesForApiOperation, metricUserErrorsForApiOperation, metricUserErrorsForApiOperationMethods 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
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
CodeInterpreterCustom
protected CodeInterpreterCustom(software.amazon.jsii.JsiiObjectRef objRef) -
CodeInterpreterCustom
protected CodeInterpreterCustom(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CodeInterpreterCustom
@Stability(Stable) public CodeInterpreterCustom(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CodeInterpreterCustomProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
CodeInterpreterCustom
@Stability(Stable) public CodeInterpreterCustom(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromCodeInterpreterCustomAttributes
@Stability(Stable) @NotNull public static ICodeInterpreterCustom fromCodeInterpreterCustomAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CodeInterpreterCustomAttributes attrs) Creates an Code Interpreter Custom reference from an existing code interpreter's attributes.- Parameters:
scope-- The construct scope.
id-- Identifier of the construct.
attrs-- Attributes of the existing code interpreter custom.
- Returns:
- An ICodeInterpreterCustom reference to the existing code interpreter
-
getCodeInterpreterArn
The ARN of the code interpreter resource.- Specified by:
getCodeInterpreterArnin interfaceICodeInterpreterCustom- Specified by:
getCodeInterpreterArnin classCodeInterpreterCustomBase
-
getCodeInterpreterCustomName
The name of the code interpreter. -
getCodeInterpreterId
The id of the code interpreter.- Specified by:
getCodeInterpreterIdin interfaceICodeInterpreterCustom- Specified by:
getCodeInterpreterIdin classCodeInterpreterCustomBase
-
getExecutionRole
The IAM role that provides permissions for the code interpreter to access AWS services.- Specified by:
getExecutionRolein interfaceICodeInterpreterCustom- Specified by:
getExecutionRolein classCodeInterpreterCustomBase
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin classCodeInterpreterCustomBase
-
getNetworkConfiguration
The network configuration of the code interpreter. -
getCreatedAt
The created timestamp of the code interpreter.- Specified by:
getCreatedAtin interfaceICodeInterpreterCustom- Specified by:
getCreatedAtin classCodeInterpreterCustomBase
-
getDescription
The description of the code interpreter. -
getFailureReason
The failure reason of the code interpreter. -
getLastUpdatedAt
The last updated timestamp of the code interpreter.- Specified by:
getLastUpdatedAtin interfaceICodeInterpreterCustom- Specified by:
getLastUpdatedAtin classCodeInterpreterCustomBase
-
getStatus
The status of the code interpreter.- Specified by:
getStatusin interfaceICodeInterpreterCustom- Specified by:
getStatusin classCodeInterpreterCustomBase
-
getTags
Tags applied to this code interpreter resource A map of key-value pairs for resource tagging.Default: - No tags applied
-