---
type: resource-type
title: RepositoryLink
description: aws resource type AWS::CodeStarConnections::RepositoryLink
name: RepositoryLink
lexicon: aws
resource_type: AWS::CodeStarConnections::RepositoryLink
---
`AWS::CodeStarConnections::RepositoryLink`, a resource type of the aws lexicon.

## Properties

- `ConnectionArn` (`string`, required): The Amazon Resource Name (ARN) of the CodeStarConnection. The ARN is used as the connection reference when the connection is shared between AWS services.
- `OwnerId` (`string`, required): the ID of the entity that owns the repository.
- `RepositoryName` (`string`, required): The repository for which the link is being created.
- `EncryptionKeyArn` (`string`, optional): The ARN of the KMS key that the customer can optionally specify to use to encrypt RepositoryLink properties. If not specified, a default key will be used.
- `ProviderType` (`"Bitbucket" | "GitHub" | "GitHubEnterprise" | "GitLab" | "GitLabSelfManaged"`, optional): The name of the external provider where your third-party code repository is configured.
- `RepositoryLinkArn` (`string`, optional): A unique Amazon Resource Name (ARN) to designate the repository link.
- `RepositoryLinkId` (`string`, optional): A UUID that uniquely identifies the RepositoryLink.
- `Tags` (`RepositoryLink_Tag[]`, optional): Specifies the tags applied to a RepositoryLink.

## Attributes

- `ProviderType`
- `RepositoryLinkArn`
- `RepositoryLinkId`
