# CfnRepositoryLinkProps

Properties for defining a `CfnRepositoryLink`.

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

- Source: Generated at build time
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestarconnections as codestarconnections } from 'aws-cdk-lib';
const cfnRepositoryLinkProps: codestarconnections.CfnRepositoryLinkProps = {
  connectionArn: 'connectionArn',
  ownerId: 'ownerId',
  repositoryName: 'repositoryName',

  // the properties below are optional
  encryptionKeyArn: 'encryptionKeyArn',
  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_codestarconnections as codestarconnections

cfn_repository_link_props = codestarconnections.CfnRepositoryLinkProps(
    connection_arn="connectionArn",
    owner_id="ownerId",
    repository_name="repositoryName",

    # the properties below are optional
    encryption_key_arn="encryptionKeyArn",
    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.codestarconnections.*;

CfnRepositoryLinkProps cfnRepositoryLinkProps = CfnRepositoryLinkProps.builder()
        .connectionArn("connectionArn")
        .ownerId("ownerId")
        .repositoryName("repositoryName")

        // the properties below are optional
        .encryptionKeyArn("encryptionKeyArn")
        .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.CodeStarConnections;

var cfnRepositoryLinkProps = new CfnRepositoryLinkProps {
    ConnectionArn = "connectionArn",
    OwnerId = "ownerId",
    RepositoryName = "repositoryName",

    // the properties below are optional
    EncryptionKeyArn = "encryptionKeyArn",
    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"

cfnRepositoryLinkProps := &CfnRepositoryLinkProps{
	ConnectionArn: jsii.String("connectionArn"),
	OwnerId: jsii.String("ownerId"),
	RepositoryName: jsii.String("repositoryName"),

	// the properties below are optional
	EncryptionKeyArn: jsii.String("encryptionKeyArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `connectionArn`: string (required) — The Amazon Resource Name (ARN) of the connection associated with the repository link.

- `encryptionKeyArn`: string — The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.

- `ownerId`: string (required) — The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.

- `repositoryName`: string (required) — The name of the repository associated with the repository link.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the repository to be associated with the repository link.
