:doc:`Route53Resolver <../../route53resolver>` / Client / put_resolver_query_log_config_policy

************************************
put_resolver_query_log_config_policy
************************************



.. py:method:: Route53Resolver.Client.put_resolver_query_log_config_policy(**kwargs)

  

  Specifies an Amazon Web Services account that you want to share a query logging configuration with, the query logging configuration that you want to share, and the operations that you want the account to be able to perform on the configuration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/PutResolverQueryLogConfigPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_resolver_query_log_config_policy(
        Arn='string',
        ResolverQueryLogConfigPolicy='string'
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the account that you want to share rules with.

    

  
  :type ResolverQueryLogConfigPolicy: string
  :param ResolverQueryLogConfigPolicy: **[REQUIRED]** 

    An Identity and Access Management policy statement that lists the query logging configurations that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the ``Actions`` section of the statement:

     

    
    * ``route53resolver:AssociateResolverQueryLogConfig``
     
    * ``route53resolver:DisassociateResolverQueryLogConfig``
     
    * ``route53resolver:ListResolverQueryLogConfigs``
    

     

    In the ``Resource`` section of the statement, you specify the ARNs for the query logging configurations that you want to share with the account that you specified in ``Arn``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ReturnValue': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The response to a ``PutResolverQueryLogConfigPolicy`` request.

      
      

      - **ReturnValue** *(boolean) --* 

        Whether the ``PutResolverQueryLogConfigPolicy`` request was successful.

        
  
  **Exceptions**
  
  *   :py:class:`Route53Resolver.Client.exceptions.InvalidPolicyDocument`

  
  *   :py:class:`Route53Resolver.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Route53Resolver.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Route53Resolver.Client.exceptions.UnknownResourceException`

  
  *   :py:class:`Route53Resolver.Client.exceptions.InternalServiceErrorException`

  
  *   :py:class:`Route53Resolver.Client.exceptions.AccessDeniedException`

  