:doc:`drs <../../drs>` / Client / create_source_network

*********************
create_source_network
*********************



.. py:method:: drs.Client.create_source_network(**kwargs)

  

  Create a new Source Network resource for a provided VPC ID.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/CreateSourceNetwork>`_  


  **Request Syntax**
  ::

    response = client.create_source_network(
        originAccountID='string',
        originRegion='string',
        tags={
            'string': 'string'
        },
        vpcID='string'
    )
    
  :type originAccountID: string
  :param originAccountID: **[REQUIRED]** 

    Account containing the VPC to protect.

    

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

    Region containing the VPC to protect.

    

  
  :type tags: dict
  :param tags: 

    A set of tags to be associated with the Source Network resource.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    Which VPC ID to protect.

    

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

    
    ::

      {
          'sourceNetworkID': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **sourceNetworkID** *(string) --* 

        ID of the created Source Network.

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

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

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

  
  *   :py:class:`drs.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`drs.Client.exceptions.ValidationException`

  
  *   :py:class:`drs.Client.exceptions.UninitializedAccountException`

  