AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateConnectionAsync.

Namespace: Amazon.CodeConnections
Assembly: AWSSDK.CodeConnections.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateConnectionResponse CreateConnection(
         CreateConnectionRequest request
)

Parameters

request
Type: Amazon.CodeConnections.Model.CreateConnectionRequest

Container for the necessary parameters to execute the CreateConnection service method.

Return Value


The response from the CreateConnection service method, as returned by CodeConnections.

Exceptions

ExceptionCondition
LimitExceededException Exceeded the maximum limit for connections.
ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also