@SdkInternalApi
    final DeleteRotationResult executeDeleteRotation(DeleteRotationRequest deleteRotationRequest) {

        ExecutionContext executionContext = createExecutionContext(deleteRotationRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<DeleteRotationRequest> request = null;
        Response<DeleteRotationResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new DeleteRotationRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRotationRequest));
                // 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, "SSM Contacts");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRotation");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Deletes a rotation from the system. If a rotation belongs to more than one on-call schedule, this operation
deletes it from all of them.
</p>

@param deleteRotationRequest
@return Result of the DeleteRotation operation returned by the service.
@throws AccessDeniedException
        You don't have sufficient access to perform this operation.
@throws ConflictException
        Updating or deleting a resource causes an inconsistent state.
@throws InternalServerException
        Unexpected error occurred while processing the request.
@throws ResourceNotFoundException
        Request references a resource that doesn't exist.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws ValidationException
        The input fails to satisfy the constraints specified by an Amazon Web Services service.
@sample AWSSSMContacts.DeleteRotation
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ssm-contacts-2021-05-03/DeleteRotation" target="_top">AWS
     API Documentation</a>
aws-java-sdk-ssmcontacts/src/main/java/com/amazonaws/services/ssmcontacts/AWSSSMContactsClient.java