aws.bedrock.AgentcoreCodeInterpreter
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.
- Execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - Name string
- Name of the code interpreter.
- Network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Code Interpreter Timeouts
- Description string
- Description of the code interpreter.
- Execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - Name string
- Name of the code interpreter.
- Network
Configuration AgentcoreCode Interpreter Network Configuration Args Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Code Interpreter Timeouts Args
- description String
- Description of the code interpreter.
- execution
Role StringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name String
- Name of the code interpreter.
- network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Code Interpreter Timeouts
- description string
- Description of the code interpreter.
- execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name string
- Name of the code interpreter.
- network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Code Interpreter Timeouts
- description str
- Description of the code interpreter.
- execution_
role_ strarn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name str
- Name of the code interpreter.
- network_
configuration AgentcoreCode Interpreter Network Configuration Args Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Code Interpreter Timeouts Args
- description String
- Description of the code interpreter.
- execution
Role StringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name String
- Name of the code interpreter.
- network
Configuration Property Map Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration 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:
- Code
Interpreter stringArn - ARN of the Code Interpreter.
- Code
Interpreter stringId - Unique identifier of the Code Interpreter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- Code
Interpreter stringArn - ARN of the Code Interpreter.
- Code
Interpreter stringId - Unique identifier of the Code Interpreter.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- code
Interpreter StringArn - ARN of the Code Interpreter.
- code
Interpreter StringId - Unique identifier of the Code Interpreter.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- code
Interpreter stringArn - ARN of the Code Interpreter.
- code
Interpreter stringId - Unique identifier of the Code Interpreter.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- code_
interpreter_ strarn - ARN of the Code Interpreter.
- code_
interpreter_ strid - Unique identifier of the Code Interpreter.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- code
Interpreter StringArn - ARN of the Code Interpreter.
- code
Interpreter StringId - Unique identifier of the Code Interpreter.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration 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) -> AgentcoreCodeInterpreterfunc 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.
- Code
Interpreter stringArn - ARN of the Code Interpreter.
- Code
Interpreter stringId - Unique identifier of the Code Interpreter.
- Description string
- Description of the code interpreter.
- Execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - Name string
- Name of the code interpreter.
- Network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Code Interpreter Timeouts
- Code
Interpreter stringArn - ARN of the Code Interpreter.
- Code
Interpreter stringId - Unique identifier of the Code Interpreter.
- Description string
- Description of the code interpreter.
- Execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - Name string
- Name of the code interpreter.
- Network
Configuration AgentcoreCode Interpreter Network Configuration Args Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Code Interpreter Timeouts Args
- code
Interpreter StringArn - ARN of the Code Interpreter.
- code
Interpreter StringId - Unique identifier of the Code Interpreter.
- description String
- Description of the code interpreter.
- execution
Role StringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name String
- Name of the code interpreter.
- network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Code Interpreter Timeouts
- code
Interpreter stringArn - ARN of the Code Interpreter.
- code
Interpreter stringId - Unique identifier of the Code Interpreter.
- description string
- Description of the code interpreter.
- execution
Role stringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name string
- Name of the code interpreter.
- network
Configuration AgentcoreCode Interpreter Network Configuration Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Code Interpreter Timeouts
- code_
interpreter_ strarn - ARN of the Code Interpreter.
- code_
interpreter_ strid - Unique identifier of the Code Interpreter.
- description str
- Description of the code interpreter.
- execution_
role_ strarn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name str
- Name of the code interpreter.
- network_
configuration AgentcoreCode Interpreter Network Configuration Args Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Code Interpreter Timeouts Args
- code
Interpreter StringArn - ARN of the Code Interpreter.
- code
Interpreter StringId - Unique identifier of the Code Interpreter.
- description String
- Description of the code interpreter.
- execution
Role StringArn - ARN of the IAM role that the code interpreter assumes for execution. Required when using
SANDBOXnetwork mode. - name String
- Name of the code interpreter.
- network
Configuration Property Map Network configuration for the code interpreter. See
network_configurationbelow.The following arguments are optional:
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts Property Map
Supporting Types
AgentcoreCodeInterpreterNetworkConfiguration, AgentcoreCodeInterpreterNetworkConfigurationArgs
- Network
Mode string - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - Vpc
Config AgentcoreCode Interpreter Network Configuration Vpc Config - VPC configuration. See
vpc_configbelow.
- Network
Mode string - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - Vpc
Config AgentcoreCode Interpreter Network Configuration Vpc Config - VPC configuration. See
vpc_configbelow.
- network
Mode String - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - vpc
Config AgentcoreCode Interpreter Network Configuration Vpc Config - VPC configuration. See
vpc_configbelow.
- network
Mode string - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - vpc
Config AgentcoreCode Interpreter Network Configuration Vpc Config - VPC configuration. See
vpc_configbelow.
- network_
mode str - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - vpc_
config AgentcoreCode Interpreter Network Configuration Vpc Config - VPC configuration. See
vpc_configbelow.
- network
Mode String - Network mode for the code interpreter. Valid values:
PUBLIC,SANDBOX,VPC. - vpc
Config Property Map - VPC configuration. See
vpc_configbelow.
AgentcoreCodeInterpreterNetworkConfigurationVpcConfig, AgentcoreCodeInterpreterNetworkConfigurationVpcConfigArgs
- Security
Groups List<string> - Security groups associated with the VPC configuration.
- Subnets List<string>
- Subnets associated with the VPC configuration.
- Security
Groups []string - Security groups associated with the VPC configuration.
- Subnets []string
- Subnets associated with the VPC configuration.
- security
Groups List<String> - Security groups associated with the VPC configuration.
- subnets List<String>
- Subnets associated with the VPC configuration.
- security
Groups 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.
- security
Groups 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
awsTerraform Provider.
