# CodeConfig

Configuration of the code class.

- Source: [`aws-synthetics/lib/code.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-synthetics/lib/code.ts#L68)
- Type last changed: v2.99.0 · 28 Sep 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_synthetics as synthetics } from 'aws-cdk-lib';
const codeConfig: synthetics.CodeConfig = {
  inlineCode: 'inlineCode',
  s3Location: {
    bucketName: 'bucketName',
    objectKey: 'objectKey',

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

## Properties

- `inlineCode`: string = none — Inline code (mutually exclusive with `s3Location`).

- `s3Location`: [Location](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Location.html) = none — The location of the code in S3 (mutually exclusive with `inlineCode`).
