:doc:`DeviceFarm <../../devicefarm>` / Client / create_network_profile

**********************
create_network_profile
**********************



.. py:method:: DeviceFarm.Client.create_network_profile(**kwargs)

  

  Creates a network profile.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateNetworkProfile>`_  


  **Request Syntax**
  ::

    response = client.create_network_profile(
        projectArn='string',
        name='string',
        description='string',
        type='CURATED'|'PRIVATE',
        uplinkBandwidthBits=123,
        downlinkBandwidthBits=123,
        uplinkDelayMs=123,
        downlinkDelayMs=123,
        uplinkJitterMs=123,
        downlinkJitterMs=123,
        uplinkLossPercent=123,
        downlinkLossPercent=123
    )
    
  :type projectArn: string
  :param projectArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the project for which you want to create a network profile.

    

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

    The name for the new network profile.

    

  
  :type description: string
  :param description: 

    The description of the network profile.

    

  
  :type type: string
  :param type: 

    The type of network profile to create. Valid values are listed here.

    

  
  :type uplinkBandwidthBits: integer
  :param uplinkBandwidthBits: 

    The data throughput rate in bits per second, as an integer from 0 to 104857600.

    

  
  :type downlinkBandwidthBits: integer
  :param downlinkBandwidthBits: 

    The data throughput rate in bits per second, as an integer from 0 to 104857600.

    

  
  :type uplinkDelayMs: integer
  :param uplinkDelayMs: 

    Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.

    

  
  :type downlinkDelayMs: integer
  :param downlinkDelayMs: 

    Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.

    

  
  :type uplinkJitterMs: integer
  :param uplinkJitterMs: 

    Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.

    

  
  :type downlinkJitterMs: integer
  :param downlinkJitterMs: 

    Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.

    

  
  :type uplinkLossPercent: integer
  :param uplinkLossPercent: 

    Proportion of transmitted packets that fail to arrive from 0 to 100 percent.

    

  
  :type downlinkLossPercent: integer
  :param downlinkLossPercent: 

    Proportion of received packets that fail to arrive from 0 to 100 percent.

    

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

    
    ::

      {
          'networkProfile': {
              'arn': 'string',
              'name': 'string',
              'description': 'string',
              'type': 'CURATED'|'PRIVATE',
              'uplinkBandwidthBits': 123,
              'downlinkBandwidthBits': 123,
              'uplinkDelayMs': 123,
              'downlinkDelayMs': 123,
              'uplinkJitterMs': 123,
              'downlinkJitterMs': 123,
              'uplinkLossPercent': 123,
              'downlinkLossPercent': 123
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **networkProfile** *(dict) --* 

        The network profile that is returned by the create network profile request.

        
        

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

          The Amazon Resource Name (ARN) of the network profile.

          
        

        - **name** *(string) --* 

          The name of the network profile.

          
        

        - **description** *(string) --* 

          The description of the network profile.

          
        

        - **type** *(string) --* 

          The type of network profile. Valid values are listed here.

          
        

        - **uplinkBandwidthBits** *(integer) --* 

          The data throughput rate in bits per second, as an integer from 0 to 104857600.

          
        

        - **downlinkBandwidthBits** *(integer) --* 

          The data throughput rate in bits per second, as an integer from 0 to 104857600.

          
        

        - **uplinkDelayMs** *(integer) --* 

          Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.

          
        

        - **downlinkDelayMs** *(integer) --* 

          Delay time for all packets to destination in milliseconds as an integer from 0 to 2000.

          
        

        - **uplinkJitterMs** *(integer) --* 

          Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.

          
        

        - **downlinkJitterMs** *(integer) --* 

          Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000.

          
        

        - **uplinkLossPercent** *(integer) --* 

          Proportion of transmitted packets that fail to arrive from 0 to 100 percent.

          
        

        - **downlinkLossPercent** *(integer) --* 

          Proportion of received packets that fail to arrive from 0 to 100 percent.

          
    
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.LimitExceededException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ServiceAccountException`

  