Skip to content

Creates a link to a specified external Git repository

Description

Creates a link to a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.

Usage

codestarconnections_create_repository_link(ConnectionArn, OwnerId,
  RepositoryName, EncryptionKeyArn, Tags)

Arguments

  • ConnectionArn

    [required] The Amazon Resource Name (ARN) of the connection to be associated with the repository link.

  • OwnerId

    [required] The owner ID for the repository associated with a specific sync configuration, such as the owner ID in GitHub.

  • RepositoryName

    [required] The name of the repository to be associated with the repository link.

  • EncryptionKeyArn

    The Amazon Resource Name (ARN) encryption key for the repository to be associated with the repository link.

  • Tags

    The tags for the repository to be associated with the repository link.

Value

A list with the following syntax:

list(
  RepositoryLinkInfo = list(
    ConnectionArn = "string",
    EncryptionKeyArn = "string",
    OwnerId = "string",
    ProviderType = "Bitbucket"|"GitHub"|"GitHubEnterpriseServer"|"GitLab"|"GitLabSelfManaged",
    RepositoryLinkArn = "string",
    RepositoryLinkId = "string",
    RepositoryName = "string"
  )
)

Request syntax

svc$create_repository_link(
  ConnectionArn = "string",
  OwnerId = "string",
  RepositoryName = "string",
  EncryptionKeyArn = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)