BedrockAgentCoreControlClient.create_code_interpreter
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Creates a custom code interpreter.
Install and imports
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
Certificate,
CodeInterpreterNetworkConfiguration,
CreateCodeInterpreterOutput,
ToolsFileSystemConfiguration,
)
Signature
async def create_code_interpreter(
*,
name: str,
network_configuration: CodeInterpreterNetworkConfiguration,
description: str | None = None,
execution_role_arn: str | None = None,
certificates: Sequence[Certificate] | None = None,
filesystem_configurations: Sequence[ToolsFileSystemConfiguration] | None = None,
client_token: str | None = None,
tags: dict[str, str] | None = None,
) -> CreateCodeInterpreterOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The name of the code interpreter. The name must be unique within your account. |
network_configuration |
Yes | The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter. |
description |
No | The description of the code interpreter. |
execution_role_arn |
No | The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services. |
certificates |
No | A list of certificates to install in the code interpreter. |
filesystem_configurations |
No | The file system configurations to mount into the code interpreter. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted. |
client_token |
No | A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request but does not return an error. |
tags |
No | A map of tag keys and values to assign to the code interpreter. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. |
Output
CreateCodeInterpreterOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
code_interpreter_id |
str |
Always present | — |
code_interpreter_arn |
str |
Always present | — |
created_at |
str |
Always present | — |
status |
CodeInterpreterStatusOutput |
Always present | CodeInterpreterStatusOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Certificate, CodeInterpreterNetworkConfiguration, CreateCodeInterpreterOutput, ToolsFileSystemConfiguration
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore_control.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.