1. Packages
  2. AWS
  3. API Docs
  4. bedrock
  5. AgentcoreCodeInterpreter
AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi

aws.bedrock.AgentcoreCodeInterpreter

Start a Neo task
Explain and create an aws.bedrock.AgentcoreCodeInterpreter resource
aws logo
AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi

    Manages an AWS Bedrock AgentCore Code Interpreter. Code Interpreter provides a secure environment for AI agents to execute Python code, enabling data analysis, calculations, and file processing capabilities.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.bedrock.AgentcoreCodeInterpreter("example", {
        name: "example-code-interpreter",
        description: "Code interpreter for data analysis",
        networkConfiguration: {
            networkMode: "PUBLIC",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.bedrock.AgentcoreCodeInterpreter("example",
        name="example-code-interpreter",
        description="Code interpreter for data analysis",
        network_configuration={
            "network_mode": "PUBLIC",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bedrock.NewAgentcoreCodeInterpreter(ctx, "example", &bedrock.AgentcoreCodeInterpreterArgs{
    			Name:        pulumi.String("example-code-interpreter"),
    			Description: pulumi.String("Code interpreter for data analysis"),
    			NetworkConfiguration: &bedrock.AgentcoreCodeInterpreterNetworkConfigurationArgs{
    				NetworkMode: pulumi.String("PUBLIC"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Bedrock.AgentcoreCodeInterpreter("example", new()
        {
            Name = "example-code-interpreter",
            Description = "Code interpreter for data analysis",
            NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreCodeInterpreterNetworkConfigurationArgs
            {
                NetworkMode = "PUBLIC",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.bedrock.AgentcoreCodeInterpreter;
    import com.pulumi.aws.bedrock.AgentcoreCodeInterpreterArgs;
    import com.pulumi.aws.bedrock.inputs.AgentcoreCodeInterpreterNetworkConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new AgentcoreCodeInterpreter("example", AgentcoreCodeInterpreterArgs.builder()
                .name("example-code-interpreter")
                .description("Code interpreter for data analysis")
                .networkConfiguration(AgentcoreCodeInterpreterNetworkConfigurationArgs.builder()
                    .networkMode("PUBLIC")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:bedrock:AgentcoreCodeInterpreter
        properties:
          name: example-code-interpreter
          description: Code interpreter for data analysis
          networkConfiguration:
            networkMode: PUBLIC
    

    Code Interpreter with Execution Role

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const assumeRole = aws.iam.getPolicyDocument({
        statements: [{
            effect: "Allow",
            actions: ["sts:AssumeRole"],
            principals: [{
                type: "Service",
                identifiers: ["bedrock-agentcore.amazonaws.com"],
            }],
        }],
    });
    const example = new aws.iam.Role("example", {
        name: "bedrock-agentcore-code-interpreter-role",
        assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
    });
    const exampleAgentcoreCodeInterpreter = new aws.bedrock.AgentcoreCodeInterpreter("example", {
        name: "example-code-interpreter",
        description: "Code interpreter with custom execution role",
        executionRoleArn: example.arn,
        networkConfiguration: {
            networkMode: "SANDBOX",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    assume_role = aws.iam.get_policy_document(statements=[{
        "effect": "Allow",
        "actions": ["sts:AssumeRole"],
        "principals": [{
            "type": "Service",
            "identifiers": ["bedrock-agentcore.amazonaws.com"],
        }],
    }])
    example = aws.iam.Role("example",
        name="bedrock-agentcore-code-interpreter-role",
        assume_role_policy=assume_role.json)
    example_agentcore_code_interpreter = aws.bedrock.AgentcoreCodeInterpreter("example",
        name="example-code-interpreter",
        description="Code interpreter with custom execution role",
        execution_role_arn=example.arn,
        network_configuration={
            "network_mode": "SANDBOX",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
    			Statements: []iam.GetPolicyDocumentStatement{
    				{
    					Effect: pulumi.StringRef("Allow"),
    					Actions: []string{
    						"sts:AssumeRole",
    					},
    					Principals: []iam.GetPolicyDocumentStatementPrincipal{
    						{
    							Type: "Service",
    							Identifiers: []string{
    								"bedrock-agentcore.amazonaws.com",
    							},
    						},
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    			Name:             pulumi.String("bedrock-agentcore-code-interpreter-role"),
    			AssumeRolePolicy: pulumi.String(assumeRole.Json),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = bedrock.NewAgentcoreCodeInterpreter(ctx, "example", &bedrock.AgentcoreCodeInterpreterArgs{
    			Name:             pulumi.String("example-code-interpreter"),
    			Description:      pulumi.String("Code interpreter with custom execution role"),
    			ExecutionRoleArn: example.Arn,
    			NetworkConfiguration: &bedrock.AgentcoreCodeInterpreterNetworkConfigurationArgs{
    				NetworkMode: pulumi.String("SANDBOX"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Effect = "Allow",
                    Actions = new[]
                    {
                        "sts:AssumeRole",
                    },
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "bedrock-agentcore.amazonaws.com",
                            },
                        },
                    },
                },
            },
        });
    
        var example = new Aws.Iam.Role("example", new()
        {
            Name = "bedrock-agentcore-code-interpreter-role",
            AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var exampleAgentcoreCodeInterpreter = new Aws.Bedrock.AgentcoreCodeInterpreter("example", new()
        {
            Name = "example-code-interpreter",
            Description = "Code interpreter with custom execution role",
            ExecutionRoleArn = example.Arn,
            NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreCodeInterpreterNetworkConfigurationArgs
            {
                NetworkMode = "SANDBOX",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.bedrock.AgentcoreCodeInterpreter;
    import com.pulumi.aws.bedrock.AgentcoreCodeInterpreterArgs;
    import com.pulumi.aws.bedrock.inputs.AgentcoreCodeInterpreterNetworkConfigurationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .actions("sts:AssumeRole")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("bedrock-agentcore.amazonaws.com")
                        .build())
                    .build())
                .build());
    
            var example = new Role("example", RoleArgs.builder()
                .name("bedrock-agentcore-code-interpreter-role")
                .assumeRolePolicy(assumeRole.json())
                .build());
    
            var exampleAgentcoreCodeInterpreter = new AgentcoreCodeInterpreter("exampleAgentcoreCodeInterpreter", AgentcoreCodeInterpreterArgs.builder()
                .name("example-code-interpreter")
                .description("Code interpreter with custom execution role")
                .executionRoleArn(example.arn())
                .networkConfiguration(AgentcoreCodeInterpreterNetworkConfigurationArgs.builder()
                    .networkMode("SANDBOX")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:iam:Role
        properties:
          name: bedrock-agentcore-code-interpreter-role
          assumeRolePolicy: ${assumeRole.json}
      exampleAgentcoreCodeInterpreter:
        type: aws:bedrock:AgentcoreCodeInterpreter
        name: example
        properties:
          name: example-code-interpreter
          description: Code interpreter with custom execution role
          executionRoleArn: ${example.arn}
          networkConfiguration:
            networkMode: SANDBOX
    variables:
      assumeRole:
        fn::invoke:
          function: aws:iam:getPolicyDocument
          arguments:
            statements:
              - effect: Allow
                actions:
                  - sts:AssumeRole
                principals:
                  - type: Service
                    identifiers:
                      - bedrock-agentcore.amazonaws.com
    

    Create AgentcoreCodeInterpreter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AgentcoreCodeInterpreter(name: string, args?: AgentcoreCodeInterpreterArgs, opts?: CustomResourceOptions);
    @overload
    def AgentcoreCodeInterpreter(resource_name: str,
                                 args: Optional[AgentcoreCodeInterpreterArgs] = None,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentcoreCodeInterpreter(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 description: Optional[str] = None,
                                 execution_role_arn: Optional[str] = None,
                                 name: Optional[str] = None,
                                 network_configuration: Optional[AgentcoreCodeInterpreterNetworkConfigurationArgs] = None,
                                 region: Optional[str] = None,
                                 tags: Optional[Mapping[str, str]] = None,
                                 timeouts: Optional[AgentcoreCodeInterpreterTimeoutsArgs] = None)
    func NewAgentcoreCodeInterpreter(ctx *Context, name string, args *AgentcoreCodeInterpreterArgs, opts ...ResourceOption) (*AgentcoreCodeInterpreter, error)
    public AgentcoreCodeInterpreter(string name, AgentcoreCodeInterpreterArgs? args = null, CustomResourceOptions? opts = null)
    public AgentcoreCodeInterpreter(String name, AgentcoreCodeInterpreterArgs args)
    public AgentcoreCodeInterpreter(String name, AgentcoreCodeInterpreterArgs args, CustomResourceOptions options)
    
    type: aws:bedrock:AgentcoreCodeInterpreter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AgentcoreCodeInterpreterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgentcoreCodeInterpreterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgentcoreCodeInterpreterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentcoreCodeInterpreterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentcoreCodeInterpreterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agentcoreCodeInterpreterResource = new Aws.Bedrock.AgentcoreCodeInterpreter("agentcoreCodeInterpreterResource", new()
    {
        Description = "string",
        ExecutionRoleArn = "string",
        Name = "string",
        NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreCodeInterpreterNetworkConfigurationArgs
        {
            NetworkMode = "string",
            VpcConfig = new Aws.Bedrock.Inputs.AgentcoreCodeInterpreterNetworkConfigurationVpcConfigArgs
            {
                SecurityGroups = new[]
                {
                    "string",
                },
                Subnets = new[]
                {
                    "string",
                },
            },
        },
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Bedrock.Inputs.AgentcoreCodeInterpreterTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := bedrock.NewAgentcoreCodeInterpreter(ctx, "agentcoreCodeInterpreterResource", &bedrock.AgentcoreCodeInterpreterArgs{
    	Description:      pulumi.String("string"),
    	ExecutionRoleArn: pulumi.String("string"),
    	Name:             pulumi.String("string"),
    	NetworkConfiguration: &bedrock.AgentcoreCodeInterpreterNetworkConfigurationArgs{
    		NetworkMode: pulumi.String("string"),
    		VpcConfig: &bedrock.AgentcoreCodeInterpreterNetworkConfigurationVpcConfigArgs{
    			SecurityGroups: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Subnets: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &bedrock.AgentcoreCodeInterpreterTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var agentcoreCodeInterpreterResource = new AgentcoreCodeInterpreter("agentcoreCodeInterpreterResource", AgentcoreCodeInterpreterArgs.builder()
        .description("string")
        .executionRoleArn("string")
        .name("string")
        .networkConfiguration(AgentcoreCodeInterpreterNetworkConfigurationArgs.builder()
            .networkMode("string")
            .vpcConfig(AgentcoreCodeInterpreterNetworkConfigurationVpcConfigArgs.builder()
                .securityGroups("string")
                .subnets("string")
                .build())
            .build())
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(AgentcoreCodeInterpreterTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    agentcore_code_interpreter_resource = aws.bedrock.AgentcoreCodeInterpreter("agentcoreCodeInterpreterResource",
        description="string",
        execution_role_arn="string",
        name="string",
        network_configuration={
            "network_mode": "string",
            "vpc_config": {
                "security_groups": ["string"],
                "subnets": ["string"],
            },
        },
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const agentcoreCodeInterpreterResource = new aws.bedrock.AgentcoreCodeInterpreter("agentcoreCodeInterpreterResource", {
        description: "string",
        executionRoleArn: "string",
        name: "string",
        networkConfiguration: {
            networkMode: "string",
            vpcConfig: {
                securityGroups: ["string"],
                subnets: ["string"],
            },
        },
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: aws:bedrock:AgentcoreCodeInterpreter
    properties:
        description: string
        executionRoleArn: string
        name: string
        networkConfiguration:
            networkMode: string
            vpcConfig:
                securityGroups:
                    - string
                subnets:
                    - string
        region: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
    

    AgentcoreCodeInterpreter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AgentcoreCodeInterpreter resource accepts the following input properties:

    Description string
    Description of the code interpreter.
    ExecutionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    Name string
    Name of the code interpreter.
    NetworkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts AgentcoreCodeInterpreterTimeouts
    Description string
    Description of the code interpreter.
    ExecutionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    Name string
    Name of the code interpreter.
    NetworkConfiguration AgentcoreCodeInterpreterNetworkConfigurationArgs

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts AgentcoreCodeInterpreterTimeoutsArgs
    description String
    Description of the code interpreter.
    executionRoleArn String
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name String
    Name of the code interpreter.
    networkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentcoreCodeInterpreterTimeouts
    description string
    Description of the code interpreter.
    executionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name string
    Name of the code interpreter.
    networkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentcoreCodeInterpreterTimeouts
    description str
    Description of the code interpreter.
    execution_role_arn str
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name str
    Name of the code interpreter.
    network_configuration AgentcoreCodeInterpreterNetworkConfigurationArgs

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts AgentcoreCodeInterpreterTimeoutsArgs
    description String
    Description of the code interpreter.
    executionRoleArn String
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name String
    Name of the code interpreter.
    networkConfiguration Property Map

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentcoreCodeInterpreter resource produces the following output properties:

    CodeInterpreterArn string
    ARN of the Code Interpreter.
    CodeInterpreterId string
    Unique identifier of the Code Interpreter.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    CodeInterpreterArn string
    ARN of the Code Interpreter.
    CodeInterpreterId string
    Unique identifier of the Code Interpreter.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    codeInterpreterArn String
    ARN of the Code Interpreter.
    codeInterpreterId String
    Unique identifier of the Code Interpreter.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    codeInterpreterArn string
    ARN of the Code Interpreter.
    codeInterpreterId string
    Unique identifier of the Code Interpreter.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    code_interpreter_arn str
    ARN of the Code Interpreter.
    code_interpreter_id str
    Unique identifier of the Code Interpreter.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    codeInterpreterArn String
    ARN of the Code Interpreter.
    codeInterpreterId String
    Unique identifier of the Code Interpreter.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing AgentcoreCodeInterpreter Resource

    Get an existing AgentcoreCodeInterpreter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AgentcoreCodeInterpreterState, opts?: CustomResourceOptions): AgentcoreCodeInterpreter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code_interpreter_arn: Optional[str] = None,
            code_interpreter_id: Optional[str] = None,
            description: Optional[str] = None,
            execution_role_arn: Optional[str] = None,
            name: Optional[str] = None,
            network_configuration: Optional[AgentcoreCodeInterpreterNetworkConfigurationArgs] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[AgentcoreCodeInterpreterTimeoutsArgs] = None) -> AgentcoreCodeInterpreter
    func GetAgentcoreCodeInterpreter(ctx *Context, name string, id IDInput, state *AgentcoreCodeInterpreterState, opts ...ResourceOption) (*AgentcoreCodeInterpreter, error)
    public static AgentcoreCodeInterpreter Get(string name, Input<string> id, AgentcoreCodeInterpreterState? state, CustomResourceOptions? opts = null)
    public static AgentcoreCodeInterpreter get(String name, Output<String> id, AgentcoreCodeInterpreterState state, CustomResourceOptions options)
    resources:  _:    type: aws:bedrock:AgentcoreCodeInterpreter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CodeInterpreterArn string
    ARN of the Code Interpreter.
    CodeInterpreterId string
    Unique identifier of the Code Interpreter.
    Description string
    Description of the code interpreter.
    ExecutionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    Name string
    Name of the code interpreter.
    NetworkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts AgentcoreCodeInterpreterTimeouts
    CodeInterpreterArn string
    ARN of the Code Interpreter.
    CodeInterpreterId string
    Unique identifier of the Code Interpreter.
    Description string
    Description of the code interpreter.
    ExecutionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    Name string
    Name of the code interpreter.
    NetworkConfiguration AgentcoreCodeInterpreterNetworkConfigurationArgs

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Timeouts AgentcoreCodeInterpreterTimeoutsArgs
    codeInterpreterArn String
    ARN of the Code Interpreter.
    codeInterpreterId String
    Unique identifier of the Code Interpreter.
    description String
    Description of the code interpreter.
    executionRoleArn String
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name String
    Name of the code interpreter.
    networkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentcoreCodeInterpreterTimeouts
    codeInterpreterArn string
    ARN of the Code Interpreter.
    codeInterpreterId string
    Unique identifier of the Code Interpreter.
    description string
    Description of the code interpreter.
    executionRoleArn string
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name string
    Name of the code interpreter.
    networkConfiguration AgentcoreCodeInterpreterNetworkConfiguration

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentcoreCodeInterpreterTimeouts
    code_interpreter_arn str
    ARN of the Code Interpreter.
    code_interpreter_id str
    Unique identifier of the Code Interpreter.
    description str
    Description of the code interpreter.
    execution_role_arn str
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name str
    Name of the code interpreter.
    network_configuration AgentcoreCodeInterpreterNetworkConfigurationArgs

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts AgentcoreCodeInterpreterTimeoutsArgs
    codeInterpreterArn String
    ARN of the Code Interpreter.
    codeInterpreterId String
    Unique identifier of the Code Interpreter.
    description String
    Description of the code interpreter.
    executionRoleArn String
    ARN of the IAM role that the code interpreter assumes for execution. Required when using SANDBOX network mode.
    name String
    Name of the code interpreter.
    networkConfiguration Property Map

    Network configuration for the code interpreter. See network_configuration below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    timeouts Property Map

    Supporting Types

    AgentcoreCodeInterpreterNetworkConfiguration, AgentcoreCodeInterpreterNetworkConfigurationArgs

    NetworkMode string
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    VpcConfig AgentcoreCodeInterpreterNetworkConfigurationVpcConfig
    VPC configuration. See vpc_config below.
    NetworkMode string
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    VpcConfig AgentcoreCodeInterpreterNetworkConfigurationVpcConfig
    VPC configuration. See vpc_config below.
    networkMode String
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    vpcConfig AgentcoreCodeInterpreterNetworkConfigurationVpcConfig
    VPC configuration. See vpc_config below.
    networkMode string
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    vpcConfig AgentcoreCodeInterpreterNetworkConfigurationVpcConfig
    VPC configuration. See vpc_config below.
    network_mode str
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    vpc_config AgentcoreCodeInterpreterNetworkConfigurationVpcConfig
    VPC configuration. See vpc_config below.
    networkMode String
    Network mode for the code interpreter. Valid values: PUBLIC, SANDBOX, VPC.
    vpcConfig Property Map
    VPC configuration. See vpc_config below.

    AgentcoreCodeInterpreterNetworkConfigurationVpcConfig, AgentcoreCodeInterpreterNetworkConfigurationVpcConfigArgs

    SecurityGroups List<string>
    Security groups associated with the VPC configuration.
    Subnets List<string>
    Subnets associated with the VPC configuration.
    SecurityGroups []string
    Security groups associated with the VPC configuration.
    Subnets []string
    Subnets associated with the VPC configuration.
    securityGroups List<String>
    Security groups associated with the VPC configuration.
    subnets List<String>
    Subnets associated with the VPC configuration.
    securityGroups string[]
    Security groups associated with the VPC configuration.
    subnets string[]
    Subnets associated with the VPC configuration.
    security_groups Sequence[str]
    Security groups associated with the VPC configuration.
    subnets Sequence[str]
    Subnets associated with the VPC configuration.
    securityGroups List<String>
    Security groups associated with the VPC configuration.
    subnets List<String>
    Subnets associated with the VPC configuration.

    AgentcoreCodeInterpreterTimeouts, AgentcoreCodeInterpreterTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

    Import

    Using pulumi import, import Bedrock AgentCore Code Interpreter using the code interpreter ID. For example:

    $ pulumi import aws:bedrock/agentcoreCodeInterpreter:AgentcoreCodeInterpreter example CODEINTERPRETER1234567890
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.11.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate