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

************************
put_resolver_rule_policy
************************



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

  

  Specifies an Amazon Web Services rule that you want to share with another account, the account that you want to share the rule with, and the operations that you want the account to be able to perform on the rule.

  

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


  **Request Syntax**
  ::

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

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

    

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

    An Identity and Access Management policy statement that lists the rules 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 ``Action`` section of the statement:

     

    
    * ``route53resolver:GetResolverRule``
     
    * ``route53resolver:AssociateResolverRule``
     
    * ``route53resolver:DisassociateResolverRule``
     
    * ``route53resolver:ListResolverRules``
     
    * ``route53resolver:ListResolverRuleAssociations``
    

     

    In the ``Resource`` section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in ``Arn``.

    

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

    
    ::

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

    

    - *(dict) --* 

      The response to a ``PutResolverRulePolicy`` request.

      
      

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

        Whether the ``PutResolverRulePolicy`` request was successful.

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

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

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

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

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

  