# CfnCodeInterpreterCustomProps

Properties for defining a `CfnCodeInterpreterCustom`.

Used as props by: [CfnCodeInterpreterCustom](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom.html)

- Source: Generated at build time
- Type last changed: v2.253.0 · 6 May 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const cfnCodeInterpreterCustomProps: bedrockagentcore.CfnCodeInterpreterCustomProps = {
  name: 'name',
  networkConfiguration: {
    networkMode: 'networkMode',

    // the properties below are optional
    vpcConfig: {
      securityGroups: ['securityGroups'],
      subnets: ['subnets'],
    },
  },

  // the properties below are optional
  certificates: [{
    certificateLocation: {
      secretArn: 'secretArn',
    },
  }],
  description: 'description',
  executionRoleArn: 'executionRoleArn',
  tags: {
    tagsKey: 'tags',
  },
};
```

Python:

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

cfn_code_interpreter_custom_props = bedrockagentcore.CfnCodeInterpreterCustomProps(
    name="name",
    network_configuration=bedrockagentcore.CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty(
        network_mode="networkMode",

        # the properties below are optional
        vpc_config=bedrockagentcore.CfnCodeInterpreterCustom.VpcConfigProperty(
            security_groups=["securityGroups"],
            subnets=["subnets"]
        )
    ),

    # the properties below are optional
    certificates=[bedrockagentcore.CfnCodeInterpreterCustom.CertificateProperty(
        certificate_location=bedrockagentcore.CfnCodeInterpreterCustom.CertificateLocationProperty(
            secret_arn="secretArn"
        )
    )],
    description="description",
    execution_role_arn="executionRoleArn",
    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.bedrockagentcore.*;

CfnCodeInterpreterCustomProps cfnCodeInterpreterCustomProps = CfnCodeInterpreterCustomProps.builder()
        .name("name")
        .networkConfiguration(CodeInterpreterNetworkConfigurationProperty.builder()
                .networkMode("networkMode")

                // the properties below are optional
                .vpcConfig(VpcConfigProperty.builder()
                        .securityGroups(List.of("securityGroups"))
                        .subnets(List.of("subnets"))
                        .build())
                .build())

        // the properties below are optional
        .certificates(List.of(CertificateProperty.builder()
                .certificateLocation(CertificateLocationProperty.builder()
                        .secretArn("secretArn")
                        .build())
                .build()))
        .description("description")
        .executionRoleArn("executionRoleArn")
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
```

C# / .NET:

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

var cfnCodeInterpreterCustomProps = new CfnCodeInterpreterCustomProps {
    Name = "name",
    NetworkConfiguration = new CodeInterpreterNetworkConfigurationProperty {
        NetworkMode = "networkMode",

        // the properties below are optional
        VpcConfig = new VpcConfigProperty {
            SecurityGroups = new [] { "securityGroups" },
            Subnets = new [] { "subnets" }
        }
    },

    // the properties below are optional
    Certificates = new [] { new CertificateProperty {
        CertificateLocation = new CertificateLocationProperty {
            SecretArn = "secretArn"
        }
    } },
    Description = "description",
    ExecutionRoleArn = "executionRoleArn",
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
};
```

Golang:

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

cfnCodeInterpreterCustomProps := &CfnCodeInterpreterCustomProps{
	Name: jsii.String("name"),
	NetworkConfiguration: &CodeInterpreterNetworkConfigurationProperty{
		NetworkMode: jsii.String("networkMode"),

		// the properties below are optional
		VpcConfig: &VpcConfigProperty{
			SecurityGroups: []*string{
				jsii.String("securityGroups"),
			},
			Subnets: []*string{
				jsii.String("subnets"),
			},
		},
	},

	// the properties below are optional
	Certificates: []interface{}{
		&CertificateProperty{
			CertificateLocation: &CertificateLocationProperty{
				SecretArn: jsii.String("secretArn"),
			},
		},
	},
	Description: jsii.String("description"),
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
}
```

## Properties

- `certificates`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCodeInterpreterCustom.CertificateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom.CertificateProperty.html)[] — List of root CA certificates.

- `description`: string — The code interpreter description.

- `executionRoleArn`: string — The Amazon Resource Name (ARN) of the execution role.

- `name`: string (required) — The name of the code interpreter.

- `networkConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty.html) (required) — The network configuration for a code interpreter.

  This structure defines how the code interpreter connects to the network.

- `tags`: { [key: string]: string } — The tags for the code interpreter.
