> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# CodeRepositoryProps

Properties of the CodeRepository.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts#L635)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apprunner_alpha from '@aws-cdk/aws-apprunner-alpha';

declare const gitHubConnection: apprunner_alpha.GitHubConnection;
declare const runtime: apprunner_alpha.Runtime;
declare const secret: apprunner_alpha.Secret;
const codeRepositoryProps: apprunner_alpha.CodeRepositoryProps = {
  codeConfiguration: {
    configurationSource: apprunner_alpha.ConfigurationSourceType.REPOSITORY,

    // the properties below are optional
    configurationValues: {
      runtime: runtime,

      // the properties below are optional
      buildCommand: 'buildCommand',
      environment: {
        environmentKey: 'environment',
      },
      environmentSecrets: {
        environmentSecretsKey: secret,
      },
      environmentVariables: {
        environmentVariablesKey: 'environmentVariables',
      },
      port: 'port',
      startCommand: 'startCommand',
    },
  },
  connection: gitHubConnection,
  repositoryUrl: 'repositoryUrl',
  sourceCodeVersion: {
    type: 'type',
    value: 'value',
  },
};
```

## Properties

- `codeConfiguration`: [CodeConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.CodeConfiguration.html) (required) — Configuration for building and running the service from a source code repository.

- `connection`: [GitHubConnection](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.GitHubConnection.html) (required) — The App Runner connection for GitHub.

- `repositoryUrl`: string (required) — The location of the repository that contains the source code.

- `sourceCodeVersion`: [SourceCodeVersion](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.SourceCodeVersion.html) (required) — The version that should be used within the source code repository.
