:doc:`VPCLattice <../../vpc-lattice>` / Client / update_service_network_vpc_association

**************************************
update_service_network_vpc_association
**************************************



.. py:method:: VPCLattice.Client.update_service_network_vpc_association(**kwargs)

  

  Updates the service network and VPC association. If you add a security group to the service network and VPC association, the association must continue to have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and then recreate it without security groups.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/vpc-lattice-2022-11-30/UpdateServiceNetworkVpcAssociation>`_  


  **Request Syntax**
  ::

    response = client.update_service_network_vpc_association(
        serviceNetworkVpcAssociationIdentifier='string',
        securityGroupIds=[
            'string',
        ]
    )
    
  :type serviceNetworkVpcAssociationIdentifier: string
  :param serviceNetworkVpcAssociationIdentifier: **[REQUIRED]** 

    The ID or ARN of the association.

    

  
  :type securityGroupIds: list
  :param securityGroupIds: **[REQUIRED]** 

    The IDs of the security groups.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'id': 'string',
          'arn': 'string',
          'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED'|'UPDATE_FAILED',
          'createdBy': 'string',
          'securityGroupIds': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the association.

        
      

      - **arn** *(string) --* 

        The Amazon Resource Name (ARN) of the association.

        
      

      - **status** *(string) --* 

        The status. You can retry the operation if the status is ``DELETE_FAILED``. However, if you retry it while the status is ``DELETE_IN_PROGRESS``, there is no change in the status.

        
      

      - **createdBy** *(string) --* 

        The account that created the association.

        
      

      - **securityGroupIds** *(list) --* 

        The IDs of the security groups.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`VPCLattice.Client.exceptions.ValidationException`

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

  
  *   :py:class:`VPCLattice.Client.exceptions.ConflictException`

  
  *   :py:class:`VPCLattice.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`VPCLattice.Client.exceptions.InternalServerException`

  