@SdkInternalApi
    final SwitchoverBlueGreenDeploymentResult executeSwitchoverBlueGreenDeployment(SwitchoverBlueGreenDeploymentRequest switchoverBlueGreenDeploymentRequest) {

        ExecutionContext executionContext = createExecutionContext(switchoverBlueGreenDeploymentRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<SwitchoverBlueGreenDeploymentRequest> request = null;
        Response<SwitchoverBlueGreenDeploymentResult> response = null;

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

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

            StaxResponseHandler<SwitchoverBlueGreenDeploymentResult> responseHandler = new StaxResponseHandler<SwitchoverBlueGreenDeploymentResult>(
                    new SwitchoverBlueGreenDeploymentResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Switches over a blue/green deployment.
</p>
<p>
Before you switch over, production traffic is routed to the databases in the blue environment. After you switch
over, production traffic is routed to the databases in the green environment.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS
Blue/Green Deployments for database updates</a> in the <i>Amazon RDS User Guide</i> and <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">Using Amazon RDS
Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora User Guide</i>.
</p>

@param switchoverBlueGreenDeploymentRequest
@return Result of the SwitchoverBlueGreenDeployment operation returned by the service.
@throws BlueGreenDeploymentNotFoundException
        <code>BlueGreenDeploymentIdentifier</code> doesn't refer to an existing blue/green deployment.
@throws InvalidBlueGreenDeploymentStateException
        The blue/green deployment can't be switched over or deleted because there is an invalid configuration in
        the green environment.
@sample AmazonRDS.SwitchoverBlueGreenDeployment
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/SwitchoverBlueGreenDeployment"
     target="_top">AWS API Documentation</a>
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/AmazonRDSClient.java