# CodeInterpreterCustomAttributes

Attributes for specifying an imported Code Interpreter Custom.

- Source: [`aws-bedrockagentcore/lib/tools/code-interpreter.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/tools/code-interpreter.ts#L500)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```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';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const securityGroup: ec2.SecurityGroup;
const codeInterpreterCustomAttributes: bedrockagentcore.CodeInterpreterCustomAttributes = {
  codeInterpreterArn: 'codeInterpreterArn',
  roleArn: 'roleArn',

  // the properties below are optional
  createdAt: 'createdAt',
  lastUpdatedAt: 'lastUpdatedAt',
  securityGroups: [securityGroup],
  status: 'status',
};
```

## Properties

- `codeInterpreterArn`: string (required) — The ARN of the agent.

- `createdAt`: string — The created timestamp of the code interpreter.

  **Default:** undefined - No created timestamp is provided

- `lastUpdatedAt`: string — When this code interpreter was last updated.

  **Default:** undefined - No last updated timestamp is provided

- `roleArn`: string (required) — The ARN of the IAM role associated to the code interpreter.

- `securityGroups`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] — The security groups for this code interpreter, if in a VPC.

  **Default:** By default, the code interpreter is not in a VPC.

- `status`: string — The status of the code interpreter.

  **Default:** undefined - No status is provided
