Interface CodeInterpreterCustomProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeInterpreterCustomProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-19T19:44:37.066Z")
@Stability(Stable)
public interface CodeInterpreterCustomProps
extends software.amazon.jsii.JsiiSerializable
Properties for creating a CodeInterpreter resource.
Example:
// Create a custom execution role
Role executionRole = Role.Builder.create(this, "CodeInterpreterExecutionRole")
.assumedBy(new ServicePrincipal("bedrock-agentcore.amazonaws.com"))
.build();
// Create code interpreter with custom execution role
CodeInterpreterCustom codeInterpreter = CodeInterpreterCustom.Builder.create(this, "MyCodeInterpreter")
.codeInterpreterCustomName("my_code_interpreter")
.description("Code interpreter with custom execution role")
.networkConfiguration(CodeInterpreterNetworkConfiguration.usingPublicNetwork())
.executionRole(executionRole)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCodeInterpreterCustomPropsstatic final classAn implementation forCodeInterpreterCustomProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe 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}.default StringOptional 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.default IRoleThe IAM role that provides permissions for the code interpreter to access AWS services.Network configuration for code interpreter.getTags()Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCodeInterpreterCustomName
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}.Default: - auto generate
-
getDescription
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.Default: - No description
-
getExecutionRole
The IAM role that provides permissions for the code interpreter to access AWS services.Default: - A new role will be created.
-
getNetworkConfiguration
Network configuration for code interpreter.Default: - PUBLIC network mode
-
getTags
Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.Default: {} - no tags
-
builder
- Returns:
- a
CodeInterpreterCustomProps.BuilderofCodeInterpreterCustomProps
-