@Override
    public UpdateRuleResult updateRule(UpdateRuleRequest request) {
        request = beforeClientExecution(request);
        return executeUpdateRule(request);
    }
<p>
Updates an existing Recycle Bin retention rule. You can update a retention rule's description, resource tags, and
retention period at any time after creation. You can't update a retention rule's resource type after creation.
For more information, see <a href=
"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin-working-with-rules.html#recycle-bin-update-rule"
> Update Recycle Bin retention rules</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
</p>

@param updateRuleRequest
@return Result of the UpdateRule operation returned by the service.
@throws ValidationException
        One or more of the parameters in the request is not valid.
@throws InternalServerException
        The service could not respond to the request due to an internal problem.
@throws ResourceNotFoundException
        The specified resource was not found.
@throws ConflictException
        The specified retention rule lock request can't be completed.
@throws ServiceQuotaExceededException
        The request would cause a service quota for the number of tags per resource to be exceeded.
@sample AmazonRecycleBin.UpdateRule
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRule" target="_top">AWS API
     Documentation</a>
aws-java-sdk-recyclebin/src/main/java/com/amazonaws/services/recyclebin/AmazonRecycleBinClient.java