# CodeProperty

The location of code artifacts in Amazon S3 for the workflow.

Modeled as a single-member container so it stays extensible to future artifact types (e.g. OCI images).

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mwaaserverless as mwaaserverless } from 'aws-cdk-lib';
const codeProperty: mwaaserverless.CfnWorkflow.CodeProperty = {
  s3Location: {
    bucket: 'bucket',
    objectKey: 'objectKey',

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

## Properties

- `s3Location`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkflow.CodeS3LocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mwaaserverless.CfnWorkflow.CodeS3LocationProperty.html)
