BedrockAgentCoreControlPlaneFrontingLayer / Client / create_code_interpreter

create_code_interpreter

BedrockAgentCoreControlPlaneFrontingLayer.Client.create_code_interpreter(**kwargs)

Creates a custom code interpreter.

See also: AWS API Documentation

Request Syntax

response = client.create_code_interpreter(
    name='string',
    description='string',
    executionRoleArn='string',
    networkConfiguration={
        'networkMode': 'PUBLIC'|'SANDBOX'
    },
    clientToken='string'
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name of the code interpreter. The name must be unique within your account.

  • description (string) – The description of the code interpreter.

  • executionRoleArn (string) – The Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.

  • networkConfiguration (dict) –

    [REQUIRED]

    The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.

    • networkMode (string) – [REQUIRED]

      The network mode for the code interpreter. This field specifies how the code interpreter connects to the network.

  • clientToken (string) –

    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 ignores the request but does not return an error.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'codeInterpreterId': 'string',
    'codeInterpreterArn': 'string',
    'createdAt': datetime(2015, 1, 1),
    'status': 'CREATING'|'CREATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED'|'DELETED'
}

Response Structure

  • (dict) –

    • codeInterpreterId (string) –

      The unique identifier of the created code interpreter.

    • codeInterpreterArn (string) –

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

    • createdAt (datetime) –

      The timestamp when the code interpreter was created.

    • status (string) –

      The current status of the code interpreter.

Exceptions