AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::BedrockAgentCore::CodeInterpreterCustom

CfnCodeInterpreterCustom

The AgentCore Code Interpreter tool enables agents to securely execute code in isolated sandbox environments. It offers advanced configuration support and seamless integration with popular frameworks. For more information about using the custom code interpreter, see [Execute code and analyze data using Amazon Bedrock AgentCore Code Interpreter](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/code-interpreter-tool.html) . See the *Properties* section below for descriptions of both the required and optional properties.

Import

import { CfnCodeInterpreterCustom } from 'aws-cdk-lib/aws-bedrockagentcore';

Or use the module namespace:

import * as bedrockagentcore from 'aws-cdk-lib/aws-bedrockagentcore';
// bedrockagentcore.CfnCodeInterpreterCustom

Properties

Configuration passed to the constructor as CfnCodeInterpreterCustomProps.

nameRequired
string

The name of the code interpreter.

networkConfigurationRequired
IResolvable | CodeInterpreterNetworkConfigurationProperty

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

descriptionOptional
string

The code interpreter description.

executionRoleArnOptional
string

The Amazon Resource Name (ARN) of the execution role.

tagsOptional
{ [key: string]: string }

The tags for the code interpreter.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-bedrockagentcore
CFN TypeAWS::BedrockAgentCore::CodeInterpreterCustom
Properties5

External Links