interface CodeInterpreterCustomProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.CodeInterpreterCustomProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#CodeInterpreterCustomProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.CodeInterpreterCustomProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.CodeInterpreterCustomProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป CodeInterpreterCustomProps |
Properties for creating a CodeInterpreter resource.
Example
// Create a custom execution role
const executionRole = new iam.Role(this, "CodeInterpreterExecutionRole", {
assumedBy: new iam.ServicePrincipal("bedrock-agentcore.amazonaws.com"),
});
// Create code interpreter with custom execution role
const codeInterpreter = new agentcore.CodeInterpreterCustom(this, "MyCodeInterpreter", {
codeInterpreterCustomName: "my_code_interpreter",
description: "Code interpreter with custom execution role",
networkConfiguration: agentcore.CodeInterpreterNetworkConfiguration.usingPublicNetwork(),
executionRole: executionRole,
});
Properties
| Name | Type | Description |
|---|---|---|
| code | string | The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}. |
| description? | string | Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters. |
| execution | IRole | The IAM role that provides permissions for the code interpreter to access AWS services. |
| network | Code | Network configuration for code interpreter. |
| tags? | { [string]: string } | Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource. |
codeInterpreterCustomName
Type:
string
The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}.
description?
Type:
string
(optional, default: No description)
Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.
executionRole?
Type:
IRole
(optional, default: A new role will be created.)
The IAM role that provides permissions for the code interpreter to access AWS services.
networkConfiguration?
Type:
Code
(optional, default: PUBLIC network mode)
Network configuration for code interpreter.
tags?
Type:
{ [string]: string }
(optional, default: {} - no tags)
Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.

.NET
Go
Java
Python
TypeScript (