:doc:`EC2 <../../ec2>` / Client / disassociate_ipam_byoasn

************************
disassociate_ipam_byoasn
************************



.. py:method:: EC2.Client.disassociate_ipam_byoasn(**kwargs)

  

  Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. You may want to use this action to disassociate an ASN from a CIDR or if you want to swap ASNs. For more information, see `Tutorial\: Bring your ASN to IPAM <https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html>`__ in the *Amazon VPC IPAM guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateIpamByoasn>`_  


  **Request Syntax**
  ::

    response = client.disassociate_ipam_byoasn(
        DryRun=True|False,
        Asn='string',
        Cidr='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    A public 2-byte or 4-byte ASN.

    

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

    A BYOIP CIDR.

    

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

    
    ::

      {
          'AsnAssociation': {
              'Asn': 'string',
              'Cidr': 'string',
              'StatusMessage': 'string',
              'State': 'disassociated'|'failed-disassociation'|'failed-association'|'pending-disassociation'|'pending-association'|'associated'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AsnAssociation** *(dict) --* 

        An ASN and BYOIP CIDR association.

        
        

        - **Asn** *(string) --* 

          The association's ASN.

          
        

        - **Cidr** *(string) --* 

          The association's CIDR.

          
        

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

          The association's status message.

          
        

        - **State** *(string) --* 

          The association's state.

          
    
  