@SdkInternalApi
    final CreateConnectionResult executeCreateConnection(CreateConnectionRequest createConnectionRequest) {

        ExecutionContext executionContext = createExecutionContext(createConnectionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<CreateConnectionRequest> request = null;
        Response<CreateConnectionResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new CreateConnectionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createConnectionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "AppRunner");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateConnection");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<CreateConnectionResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateConnectionResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Create an App Runner connection resource. App Runner requires a connection resource when you create App Runner
services that access private repositories from certain third-party providers. You can share a connection across
multiple services.
</p>
<p>
A connection resource is needed to access GitHub and Bitbucket repositories. Both require a user interface
approval process through the App Runner console before you can use the connection.
</p>

@param createConnectionRequest
@return Result of the CreateConnection operation returned by the service.
@throws InvalidRequestException
        One or more input parameters aren't valid. Refer to the API action's document page, correct the input
        parameters, and try the action again.
@throws InternalServiceErrorException
        An unexpected service exception occurred.
@throws ServiceQuotaExceededException
        App Runner can't create this resource. You've reached your account quota for this resource type.</p>
        <p>
        For App Runner per-resource quotas, see <a
        href="https://docs.aws.amazon.com/general/latest/gr/apprunner.html">App Runner endpoints and quotas</a>
        in the <i>Amazon Web Services General Reference</i>.
@sample AWSAppRunner.CreateConnection
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection" target="_top">AWS API
     Documentation</a>
aws-java-sdk-apprunner/src/main/java/com/amazonaws/services/apprunner/AWSAppRunnerClient.java