@Override
    public CancelEnvironmentDeploymentResult cancelEnvironmentDeployment(CancelEnvironmentDeploymentRequest request) {
        request = beforeClientExecution(request);
        return executeCancelEnvironmentDeployment(request);
    }
<p>
Attempts to cancel an environment deployment on an <a>UpdateEnvironment</a> action, if the deployment is
<code>IN_PROGRESS</code>. For more information, see <a
href="https://docs.aws.amazon.com/proton/latest/userguide/ag-env-update.html">Update an environment</a> in the
<i>Proton User guide</i>.
</p>
<p>
The following list includes potential cancellation scenarios.
</p>
<ul>
<li>
<p>
If the cancellation attempt succeeds, the resulting deployment state is <code>CANCELLED</code>.
</p>
</li>
<li>
<p>
If the cancellation attempt fails, the resulting deployment state is <code>FAILED</code>.
</p>
</li>
<li>
<p>
If the current <a>UpdateEnvironment</a> action succeeds before the cancellation attempt starts, the resulting
deployment state is <code>SUCCEEDED</code> and the cancellation attempt has no effect.
</p>
</li>
</ul>

@param cancelEnvironmentDeploymentRequest
@return Result of the CancelEnvironmentDeployment operation returned by the service.
@throws ValidationException
        The input is invalid or an out-of-range value was supplied for the input parameter.
@throws AccessDeniedException
        There <i>isn't</i> sufficient access for performing this action.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ConflictException
        The request <i>couldn't</i> be made due to a conflicting operation or resource.
@throws ResourceNotFoundException
        The requested resource <i>wasn't</i> found.
@throws InternalServerException
        The request failed to register with the service.
@sample AWSProton.CancelEnvironmentDeployment
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CancelEnvironmentDeployment"
     target="_top">AWS API Documentation</a>
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/AWSProtonClient.java