@SdkInternalApi
    final CreateTransitGatewayConnectPeerResult executeCreateTransitGatewayConnectPeer(
            CreateTransitGatewayConnectPeerRequest createTransitGatewayConnectPeerRequest) {

        ExecutionContext executionContext = createExecutionContext(createTransitGatewayConnectPeerRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<CreateTransitGatewayConnectPeerRequest> request = null;
        Response<CreateTransitGatewayConnectPeerResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new CreateTransitGatewayConnectPeerRequestMarshaller().marshall(super.beforeMarshalling(createTransitGatewayConnectPeerRequest));
                // 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, "EC2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTransitGatewayConnectPeer");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<CreateTransitGatewayConnectPeerResult> responseHandler = new StaxResponseHandler<CreateTransitGatewayConnectPeerResult>(
                    new CreateTransitGatewayConnectPeerResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an
appliance.
</p>
<p>
The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-connect.html#tgw-connect-peer">Connect peers</a> in the
<i>Amazon Web Services Transit Gateways Guide</i>.
</p>

@param createTransitGatewayConnectPeerRequest
@return Result of the CreateTransitGatewayConnectPeer operation returned by the service.
@sample AmazonEC2.CreateTransitGatewayConnectPeer
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayConnectPeer"
     target="_top">AWS API Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java