code: @Override
      public UpdateLicenseSpecificationsForResourceResult updateLicenseSpecificationsForResource(UpdateLicenseSpecificationsForResourceRequest request) {
          request = beforeClientExecution(request);
          return executeUpdateLicenseSpecificationsForResource(request);
      }
docs: <p>
  Adds or removes license configurations for a specified AWS resource. This operation currently supports updating
  the license specifications of AMIs, instances, and hosts. Launch templates and AWS CloudFormation templates are
  not managed from this operation as those resources send the license configurations directly to a resource
  creation operation, such as <code>RunInstances</code>.
  </p>
  
  @param updateLicenseSpecificationsForResourceRequest
  @return Result of the UpdateLicenseSpecificationsForResource operation returned by the service.
  @throws InvalidParameterValueException
  One or more parameter values are not valid.
  @throws InvalidResourceStateException
  License Manager cannot allocate a license to a resource because of its state. </p>
  <p>
  For example, you cannot allocate a license to an instance in the process of shutting down.
  @throws LicenseUsageException
  You do not have enough licenses available to support a new resource launch.
  @throws ServerInternalException
  The server experienced an internal error. Try again.
  @throws AuthorizationException
  The AWS user account does not have permission to perform the action. Check the IAM policy associated with
  this account.
  @throws AccessDeniedException
  Access to resource denied.
  @throws RateLimitExceededException
  Too many requests have been submitted. Try again after a brief wait.
  @sample AWSLicenseManager.UpdateLicenseSpecificationsForResource
  @see <a
  href="http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource"
  target="_top">AWS API Documentation</a>