Skip to content

Bedrock Agentcore Control  >  Operations  >  get_code_interpreter

get_code_interpreter

Operation

get_code_interpreter async

get_code_interpreter(input: GetCodeInterpreterInput, plugins: list[Plugin] | None = None) -> GetCodeInterpreterOutput

Gets information about a custom code interpreter.

Parameters:

Name Type Description Default
input GetCodeInterpreterInput

An instance of GetCodeInterpreterInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetCodeInterpreterOutput

An instance of GetCodeInterpreterOutput.

Input

GetCodeInterpreterInput dataclass

Dataclass for GetCodeInterpreterInput structure.

Attributes

code_interpreter_id class-attribute instance-attribute
code_interpreter_id: str | None = None

The unique identifier of the code interpreter to retrieve.

Output

GetCodeInterpreterOutput dataclass

Dataclass for GetCodeInterpreterOutput structure.

Attributes

certificates class-attribute instance-attribute
certificates: list[Certificate] | None = None

The list of certificates configured for the code interpreter.

code_interpreter_arn instance-attribute
code_interpreter_arn: str

The Amazon Resource Name (ARN) of the code interpreter.

code_interpreter_id instance-attribute
code_interpreter_id: str

The unique identifier of the code interpreter.

created_at instance-attribute
created_at: datetime

The timestamp when the code interpreter was created.

description class-attribute instance-attribute
description: str | None = field(repr=False, default=None)

The description of the code interpreter.

execution_role_arn class-attribute instance-attribute
execution_role_arn: str | None = None

The IAM role ARN that provides permissions for the code interpreter.

failure_reason class-attribute instance-attribute
failure_reason: str | None = None

The reason for failure if the code interpreter is in a failed state.

filesystem_configurations class-attribute instance-attribute
filesystem_configurations: list[ToolsFileSystemConfiguration] | None = None

The file system configurations mounted into the code interpreter. Each entry describes an access point and its mount path.

last_updated_at instance-attribute
last_updated_at: datetime

The timestamp when the code interpreter was last updated.

name instance-attribute
name: str

The name of the code interpreter.

network_configuration instance-attribute
network_configuration: CodeInterpreterNetworkConfiguration

The network configuration for a code interpreter. This structure defines how the code interpreter connects to the network.

status instance-attribute

The current status of the code interpreter.