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

**************************
disassociate_resolver_rule
**************************



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

  

  Removes the association between a specified Resolver rule and a specified VPC.

   

  .. warning::

     

    If you disassociate a Resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the Resolver rule.

    

  

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


  **Request Syntax**
  ::

    response = client.disassociate_resolver_rule(
        VPCId='string',
        ResolverRuleId='string'
    )
    
  :type VPCId: string
  :param VPCId: **[REQUIRED]** 

    The ID of the VPC that you want to disassociate the Resolver rule from.

    

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

    The ID of the Resolver rule that you want to disassociate from the specified VPC.

    

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

    
    ::

      {
          'ResolverRuleAssociation': {
              'Id': 'string',
              'ResolverRuleId': 'string',
              'Name': 'string',
              'VPCId': 'string',
              'Status': 'CREATING'|'COMPLETE'|'DELETING'|'FAILED'|'OVERRIDDEN',
              'StatusMessage': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResolverRuleAssociation** *(dict) --* 

        Information about the ``DisassociateResolverRule`` request, including the status of the request.

        
        

        - **Id** *(string) --* 

          The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an `AssociateResolverRule <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_AssociateResolverRule.html>`__ request.

          
        

        - **ResolverRuleId** *(string) --* 

          The ID of the Resolver rule that you associated with the VPC that is specified by ``VPCId``.

          
        

        - **Name** *(string) --* 

          The name of an association between a Resolver rule and a VPC.

           

          The name can be up to 64 characters long and can contain letters (a-z, A-Z), numbers (0-9), hyphens (-), underscores (_), and spaces. The name cannot consist of only numbers.

          
        

        - **VPCId** *(string) --* 

          The ID of the VPC that you associated the Resolver rule with.

          
        

        - **Status** *(string) --* 

          A code that specifies the current status of the association between a Resolver rule and a VPC.

          
        

        - **StatusMessage** *(string) --* 

          A detailed description of the status of the association between a Resolver rule and a VPC.

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

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

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

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

  