# CfnRepositoryAssociationProps

Properties for defining a `CfnRepositoryAssociation`.

Used as props by: [CfnRepositoryAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codegurureviewer.CfnRepositoryAssociation.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codegurureviewer as codegurureviewer } from 'aws-cdk-lib';
const cfnRepositoryAssociationProps: codegurureviewer.CfnRepositoryAssociationProps = {
  name: 'name',
  type: 'type',

  // the properties below are optional
  bucketName: 'bucketName',
  connectionArn: 'connectionArn',
  owner: 'owner',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codegurureviewer as codegurureviewer

cfn_repository_association_props = codegurureviewer.CfnRepositoryAssociationProps(
    name="name",
    type="type",

    # the properties below are optional
    bucket_name="bucketName",
    connection_arn="connectionArn",
    owner="owner",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codegurureviewer.*;

CfnRepositoryAssociationProps cfnRepositoryAssociationProps = CfnRepositoryAssociationProps.builder()
        .name("name")
        .type("type")

        // the properties below are optional
        .bucketName("bucketName")
        .connectionArn("connectionArn")
        .owner("owner")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeGuruReviewer;

var cfnRepositoryAssociationProps = new CfnRepositoryAssociationProps {
    Name = "name",
    Type = "type",

    // the properties below are optional
    BucketName = "bucketName",
    ConnectionArn = "connectionArn",
    Owner = "owner",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRepositoryAssociationProps := &CfnRepositoryAssociationProps{
	Name: jsii.String("name"),
	Type: jsii.String("type"),

	// the properties below are optional
	BucketName: jsii.String("bucketName"),
	ConnectionArn: jsii.String("connectionArn"),
	Owner: jsii.String("owner"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `bucketName`: string — The name of the bucket.

  This is required for your S3Bucket repository. The name must start with the prefix `codeguru-reviewer-*` .

- `connectionArn`: string — The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection.

  Its format is `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id` . For more information, see [Connection](https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html) in the *AWS CodeStar Connections API Reference* .

  `ConnectionArn` must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.

- `name`: string (required) — The name of the repository.

- `owner`: string — The owner of the repository.

  For a GitHub Enterprise Server or Bitbucket repository, this is the username for the account that owns the repository.

  `Owner` must be specified for Bitbucket and GitHub Enterprise Server repositories. It has no effect if it is specified for an AWS CodeCommit repository.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs used to tag an associated repository.

  A tag is a custom attribute label with two parts:

  - A *tag key* (for example, `CostCenter` , `Environment` , `Project` , or `Secret` ). Tag keys are case sensitive.
  - An optional field known as a *tag value* (for example, `111122223333` , `Production` , or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.

- `type`: string (required) — The type of repository that contains the source code to be reviewed. The valid values are:.

  - `CodeCommit`
  - `Bitbucket`
  - `GitHubEnterpriseServer`
  - `S3Bucket`
