class CfnRepositoryAssociationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CodeGuruReviewer.Mixins.CfnRepositoryAssociationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscodegurureviewer/mixins#CfnRepositoryAssociationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.codegurureviewer.mixins.CfnRepositoryAssociationPropsMixin |
Python | aws_cdk.mixins_preview.aws_codegurureviewer.mixins.CfnRepositoryAssociationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_codegurureviewer » mixins » CfnRepositoryAssociationPropsMixin |
Implements
IMixin
Extends
Mixin
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 in the Amazon CodeGuru Reviewer User Guide .
- Bitbucket - For more information, see Create a Bitbucket repository association in the Amazon CodeGuru Reviewer User Guide .
- GitHub Enterprise Server - For more information, see Create a GitHub Enterprise Server repository association in the Amazon CodeGuru Reviewer User Guide .
- S3Bucket - For more information, see Create code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User Guide .
You cannot use a CloudFormation template to create an association with a GitHub repository.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as codegurureviewer_mixins } from '@aws-cdk/mixins-preview/aws-codegurureviewer';
const cfnRepositoryAssociationPropsMixin = new codegurureviewer_mixins.CfnRepositoryAssociationPropsMixin({
bucketName: 'bucketName',
connectionArn: 'connectionArn',
name: 'name',
owner: 'owner',
tags: [{
key: 'key',
value: 'value',
}],
type: 'type',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnRepositoryAssociationPropsMixin(props: CfnRepositoryAssociationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Repository Association Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::CodeGuruReviewer::RepositoryAssociation.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript