code: @Override
      public AttachUserPolicyResult attachUserPolicy(AttachUserPolicyRequest request) {
          request = beforeClientExecution(request);
          return executeAttachUserPolicy(request);
      }
docs: <p>
  Attaches the specified managed policy to the specified user.
  </p>
  <p>
  You use this API to attach a <i>managed</i> policy to a user. To embed an inline policy in a user, use
  <a>PutUserPolicy</a>.
  </p>
  <p>
  For more information about policies, see <a
  href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html">Managed Policies and
  Inline Policies</a> in the <i>IAM User Guide</i>.
  </p>
  
  @param attachUserPolicyRequest
  @return Result of the AttachUserPolicy operation returned by the service.
  @throws NoSuchEntityException
  The request was rejected because it referenced a resource entity that does not exist. The error message
  describes the resource.
  @throws LimitExceededException
  The request was rejected because it attempted to create resources beyond the current AWS account limits.
  The error message describes the limit exceeded.
  @throws InvalidInputException
  The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
  @throws PolicyNotAttachableException
  The request failed because AWS service role policies can only be attached to the service-linked role for
  that service.
  @throws ServiceFailureException
  The request processing has failed because of an unknown error, exception or failure.
  @sample AmazonIdentityManagement.AttachUserPolicy
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/AttachUserPolicy" target="_top">AWS API
  Documentation</a>