# CodeConfig

Represents the structure to pass into the underlying CfnRepository class.

- Source: [`aws-codecommit/lib/code.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codecommit/lib/code.ts#L12)
- Type last changed: v2.4.0 · 6 Jan 2022

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codecommit as codecommit } from 'aws-cdk-lib';
const codeConfig: codecommit.CodeConfig = {
  code: {
    s3: {
      bucket: 'bucket',
      key: 'key',

      // the properties below are optional
      objectVersion: 'objectVersion',
    },

    // the properties below are optional
    branchName: 'branchName',
  },
};
```

## Properties

- `code`: [CfnRepository.CodeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codecommit.CfnRepository.CodeProperty.html) (required) — represents the underlying code structure.
