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

*******************************************
create_service_network_resource_association
*******************************************



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

  

  Associates the specified service network with the specified resource configuration. This allows the resource configuration to receive connections through the service network, including through a service network VPC endpoint.

  

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


  **Request Syntax**
  ::

    response = client.create_service_network_resource_association(
        clientToken='string',
        resourceConfigurationIdentifier='string',
        serviceNetworkIdentifier='string',
        privateDnsEnabled=True|False,
        tags={
            'string': 'string'
        }
    )
    
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

    This field is autopopulated if not provided.

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

    The ID of the resource configuration to associate with the service network.

    

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

    The ID of the service network to associate with the resource configuration.

    

  
  :type privateDnsEnabled: boolean
  :param privateDnsEnabled: 

    Indicates if private DNS is enabled for the service network resource association.

    

  
  :type tags: dict
  :param tags: 

    A key-value pair to associate with a resource.

    

  
    - *(string) --* 

      The key of the tag.

       

      Constraints: Tag keys are case-sensitive and accept a maximum of 128 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ May not begin with ``aws:``.

      

    
      - *(string) --* 

        The value of the tag.

         

        Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @

        

      


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

    
    ::

      {
          'id': 'string',
          'arn': 'string',
          'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'PARTIAL'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED',
          'createdBy': 'string',
          'privateDnsEnabled': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The ID of the association.

        
      

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

        The Amazon Resource Name (ARN) of the association.

        
      

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

        The status of the association.

        
      

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

        The ID of the account that created the association.

        
      

      - **privateDnsEnabled** *(boolean) --* 

        Indicates if private DNS is is enabled for the service network resource association.

        
  
  **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.ServiceQuotaExceededException`

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

  