> **Experimental**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# CodeInterpreterCustomProps

Properties for creating a CodeInterpreter resource.

Used as props by: [CodeInterpreterCustom](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterCustom.html)

- Source: [`lib/tools/code-interpreter.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/tools/code-interpreter.ts#L451)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const codeInterpreterNetworkConfiguration: bedrock_agentcore_alpha.CodeInterpreterNetworkConfiguration;
declare const role: iam.Role;
const codeInterpreterCustomProps: bedrock_agentcore_alpha.CodeInterpreterCustomProps = {
  codeInterpreterCustomName: 'codeInterpreterCustomName',
  description: 'description',
  executionRole: role,
  networkConfiguration: codeInterpreterNetworkConfiguration,
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
from aws_cdk import aws_iam as iam

# code_interpreter_network_configuration: bedrock_agentcore_alpha.CodeInterpreterNetworkConfiguration
# role: iam.Role

code_interpreter_custom_props = bedrock_agentcore_alpha.CodeInterpreterCustomProps(
    code_interpreter_custom_name="codeInterpreterCustomName",
    description="description",
    execution_role=role,
    network_configuration=code_interpreter_network_configuration,
    tags={
        "tags_key": "tags"
    }
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
import software.amazon.awscdk.services.iam.*;

CodeInterpreterNetworkConfiguration codeInterpreterNetworkConfiguration;
Role role;

CodeInterpreterCustomProps codeInterpreterCustomProps = CodeInterpreterCustomProps.builder()
        .codeInterpreterCustomName("codeInterpreterCustomName")
        .description("description")
        .executionRole(role)
        .networkConfiguration(codeInterpreterNetworkConfiguration)
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
using Amazon.CDK.AWS.IAM;

CodeInterpreterNetworkConfiguration codeInterpreterNetworkConfiguration;
Role role;

var codeInterpreterCustomProps = new CodeInterpreterCustomProps {
    CodeInterpreterCustomName = "codeInterpreterCustomName",
    Description = "description",
    ExecutionRole = role,
    NetworkConfiguration = codeInterpreterNetworkConfiguration,
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
import "github.com/aws/aws-cdk-go/awscdk"

var codeInterpreterNetworkConfiguration CodeInterpreterNetworkConfiguration
var role Role

codeInterpreterCustomProps := &CodeInterpreterCustomProps{
	CodeInterpreterCustomName: jsii.String("codeInterpreterCustomName"),
	Description: jsii.String("description"),
	ExecutionRole: role,
	NetworkConfiguration: codeInterpreterNetworkConfiguration,
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `codeInterpreterCustomName`: 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}.

  **Default:** auto generate

- `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.

  **Default:** No description

- `executionRole`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM role that provides permissions for the code interpreter to access AWS services.

  **Default:** A new role will be created.

- `networkConfiguration`: [CodeInterpreterNetworkConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.CodeInterpreterNetworkConfiguration.html) — Network configuration for code interpreter.

  **Default:** PUBLIC network mode

- `tags`: { [key: string]: string } — Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.

  **Default:** {} - no tags
