# CodeProperty

The `Code` property type specifies information about code to be committed.

`Code` is a property of the `AWS::CodeStar::GitHubRepository` resource.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

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

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

## Properties

- `s3`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGitHubRepository.S3Property](/cdk/api/v2/docs/aws-cdk-lib.aws_codestar.CfnGitHubRepository.S3Property.html) (required) — Information about the Amazon S3 bucket that contains a ZIP file of code to be committed to the repository.
