RepositoryLink
Source:
src/AWS/CodeConnections/RepositoryLink.ts
An AWS CodeConnections repository link — associates a connection with a specific external Git repository so Git sync can monitor and sync changes (e.g. CloudFormation git sync).
Requires a connection in the AVAILABLE state; the connection’s OAuth
handshake is a one-time manual console step.
Linking a Repository
Section titled “Linking a Repository”Link a GitHub Repository
const link = yield* CodeConnections.RepositoryLink("Repo", { connectionArn: connection.connectionArn, ownerId: "my-github-org", repositoryName: "my-repo",});Encrypted Repository Link
const link = yield* CodeConnections.RepositoryLink("Repo", { connectionArn: connection.connectionArn, ownerId: "my-github-org", repositoryName: "my-repo", encryptionKeyArn: key.keyArn,});