Skip to content

Create Connection

codestarconnections_create_connection R Documentation

Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories

Description

Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.

Usage

codestarconnections_create_connection(ProviderType, ConnectionName,
  Tags, HostArn)

Arguments

ProviderType

The name of the external provider where your third-party code repository is configured.

ConnectionName

[required] The name of the connection to be created.

Tags

The key-value pair to use when tagging the resource.

HostArn

The Amazon Resource Name (ARN) of the host associated with the connection to be created.

Value

A list with the following syntax:

list(
  ConnectionArn = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Request syntax

svc$create_connection(
  ProviderType = "Bitbucket"|"GitHub"|"GitHubEnterpriseServer"|"GitLab"|"GitLabSelfManaged",
  ConnectionName = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  HostArn = "string"
)