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

******************************
modify_availability_zone_group
******************************



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

  

  Changes the opt-in status of the specified zone group for your account.

  

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


  **Request Syntax**
  ::

    response = client.modify_availability_zone_group(
        GroupName='string',
        OptInStatus='opted-in'|'not-opted-in',
        DryRun=True|False
    )
    
  :type GroupName: string
  :param GroupName: **[REQUIRED]** 

    The name of the Availability Zone group, Local Zone group, or Wavelength Zone group.

    

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

    Indicates whether to opt in to the zone group. The only valid value is ``opted-in``. You must contact Amazon Web Services Support to opt out of a Local Zone or Wavelength Zone group.

    

  
  :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``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Is ``true`` if the request succeeds, and an error otherwise.

        
  