code: @Override
      public PutApplicationPolicyResult putApplicationPolicy(PutApplicationPolicyRequest request) {
          request = beforeClientExecution(request);
          return executePutApplicationPolicy(request);
      }
docs: <p>
  Sets the permission policy for an application. For the list of actions supported for this operation, see <a href=
  "https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions"
  >Application Permissions</a> .
  </p>
  
  @param putApplicationPolicyRequest
  @return Result of the PutApplicationPolicy operation returned by the service.
  @throws NotFoundException
  The resource (for example, an access policy statement) specified in the request doesn't exist.
  @throws TooManyRequestsException
  The client is sending more than the allowed number of requests per unit of time.
  @throws BadRequestException
  One of the parameters in the request is invalid.
  @throws InternalServerErrorException
  The AWS Serverless Application Repository service encountered an internal error.
  @throws ForbiddenException
  The client is not authenticated.
  @sample AWSServerlessApplicationRepository.PutApplicationPolicy
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy"
  target="_top">AWS API Documentation</a>