v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1427150102.0 KB

Creates a resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.

A host created through the CLI or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by setting up the host in the console.

post/#X-Amz-Target=com.amazonaws.codeconnections.CodeConnections_20231201.CreateHost

Headers

X-Amz-Target'com.amazonaws.codeconnections.CodeConnections_20231201.CreateHost' required

Request body

Namestring required

The name of the host to be created.

ProviderType'Bitbucket' | 'GitHub' | 'GitHubEnterpriseServer' | 'GitLab' | 'GitLabSelfManaged' | 'AzureDevOps' required

The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.

ProviderEndpointstring required

The endpoint of the infrastructure to be represented by the host after it is created.

Response

Success

HostArnstring

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