code: @Override
      public AcceptResourceShareInvitationResult acceptResourceShareInvitation(AcceptResourceShareInvitationRequest request) {
          request = beforeClientExecution(request);
          return executeAcceptResourceShareInvitation(request);
      }
docs: <p>
  Accepts an invitation to a resource share from another AWS account.
  </p>
  
  @param acceptResourceShareInvitationRequest
  @return Result of the AcceptResourceShareInvitation operation returned by the service.
  @throws MalformedArnException
  The format of an Amazon Resource Name (ARN) is not valid.
  @throws OperationNotPermittedException
  The requested operation is not permitted.
  @throws ResourceShareInvitationArnNotFoundException
  The Amazon Resource Name (ARN) for an invitation was not found.
  @throws ResourceShareInvitationAlreadyAcceptedException
  The invitation was already accepted.
  @throws ResourceShareInvitationAlreadyRejectedException
  The invitation was already rejected.
  @throws ResourceShareInvitationExpiredException
  The invitation is expired.
  @throws ServerInternalException
  The service could not respond to the request due to an internal problem.
  @throws ServiceUnavailableException
  The service is not available.
  @sample AWSRAM.AcceptResourceShareInvitation
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation"
  target="_top">AWS API Documentation</a>