# CfnRepositoryAssociationPropsMixin

This resource configures how Amazon CodeGuru Reviewer retrieves the source code to be reviewed.

You can use an AWS CloudFormation template to create an association with the following repository types:

- AWS CodeCommit - For more information, see [Create an AWS CodeCommit repository association](https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/create-codecommit-association.html) in the *Amazon CodeGuru Reviewer User Guide* .
- Bitbucket - For more information, see [Create a Bitbucket repository association](https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/create-bitbucket-association.html) in the *Amazon CodeGuru Reviewer User Guide* .
- GitHub Enterprise Server - For more information, see [Create a GitHub Enterprise Server repository association](https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/create-github-enterprise-association.html) in the *Amazon CodeGuru Reviewer User Guide* .
- S3Bucket - For more information, see [Create code reviews with GitHub Actions](https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/working-with-cicd.html) in the *Amazon CodeGuru Reviewer User Guide* .

> You cannot use a CloudFormation template to create an association with a GitHub repository.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnRepositoryAssociationPropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::CodeGuruReviewer::RepositoryAssociation`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-codegurureviewer-repositoryassociation.html)
- Source: Generated at build time
- Type last changed: v2.269.0 · 16 Sep 2026

## Initializer

TypeScript:

```ts
new CfnRepositoryAssociationPropsMixin(props: CfnRepositoryAssociationMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnRepositoryAssociationPropsMixin(props: CfnRepositoryAssociationMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnRepositoryAssociationPropsMixin(CfnRepositoryAssociationMixinProps props, CfnPropertyMixinOptions options)
```

C# / .NET:

```csharp
new CfnRepositoryAssociationPropsMixin(CfnRepositoryAssociationMixinProps props, CfnPropertyMixinOptions? options = null)
```

Golang:

```go
NewCfnRepositoryAssociationPropsMixin(Props CfnRepositoryAssociationMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
