Skip to content

Creates a custom code interpreter

Description

Creates a custom code interpreter.

Usage

bedrockagentcorecontrol_create_code_interpreter(name, description,
  executionRoleArn, networkConfiguration, certificates,
  filesystemConfigurations, clientToken, tags)

Arguments

  • name

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

  • description

    The description of the code interpreter.

  • executionRoleArn

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

  • networkConfiguration

    [required] The network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.

  • certificates

    A list of certificates to install in the code interpreter.

  • filesystemConfigurations

    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.

  • clientToken

    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

    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.

Value

A list with the following syntax:

list(
  codeInterpreterId = "string",
  codeInterpreterArn = "string",
  createdAt = as.POSIXct(
    "2015-01-01"
  ),
  status = "CREATING"|"CREATE_FAILED"|"READY"|"DELETING"|"DELETE_FAILED"|"DELETED"
)

Request syntax

svc$create_code_interpreter(
  name = "string",
  description = "string",
  executionRoleArn = "string",
  networkConfiguration = list(
    networkMode = "PUBLIC"|"SANDBOX"|"VPC",
    vpcConfig = list(
      securityGroups = list(
        "string"
      ),
      subnets = list(
        "string"
      ),
      requireServiceS3Endpoint = TRUE|FALSE
    )
  ),
  certificates = list(
    list(
      location = list(
        secretsManager = list(
          secretArn = "string"
        )
      )
    )
  ),
  filesystemConfigurations = list(
    list(
      s3FilesConfiguration = list(
        accessPointArn = "string",
        mountPath = "string",
        fileSystemArn = "string"
      ),
      efsConfiguration = list(
        accessPointArn = "string",
        mountPath = "string",
        fileSystemArn = "string"
      )
    )
  ),
  clientToken = "string",
  tags = list(
    "string"
  )
)