:doc:`TelcoNetworkBuilder <../../tnb>` / Client / put_sol_function_package_content

********************************
put_sol_function_package_content
********************************



.. py:method:: TelcoNetworkBuilder.Client.put_sol_function_package_content(**kwargs)

  

  Uploads the contents of a function package.

   

  A function package is a .zip file in CSAR (Cloud Service Archive) format that contains a network function (an ETSI standard telecommunication application) and function package descriptor that uses the TOSCA standard to describe how the network functions should run on your network.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/tnb-2008-10-21/PutSolFunctionPackageContent>`_  


  **Request Syntax**
  ::

    response = client.put_sol_function_package_content(
        contentType='application/zip',
        file=b'bytes'|file,
        vnfPkgId='string'
    )
    
  :type contentType: string
  :param contentType: 

    Function package content type.

    

  
  :type file: bytes or seekable file-like object
  :param file: **[REQUIRED]** 

    Function package file.

    

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

    Function package ID.

    

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

    
    ::

      {
          'id': 'string',
          'metadata': {
              'vnfd': {
                  'overrides': [
                      {
                          'defaultValue': 'string',
                          'name': 'string'
                      },
                  ]
              }
          },
          'vnfProductName': 'string',
          'vnfProvider': 'string',
          'vnfdId': 'string',
          'vnfdVersion': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Function package ID.

        
      

      - **metadata** *(dict) --* 

        Function package metadata.

        
        

        - **vnfd** *(dict) --* 

          Metadata for function package artifacts.

           

          Artifacts are the contents of the package descriptor file and the state of the package.

          
          

          - **overrides** *(list) --* 

            Lists of function package overrides.

            
            

            - *(dict) --* 

              Overrides of the TOSCA node.

              
              

              - **defaultValue** *(string) --* 

                Default value for the override.

                
              

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

                Name of the TOSCA override.

                
          
        
      
    
      

      - **vnfProductName** *(string) --* 

        Function product name.

        
      

      - **vnfProvider** *(string) --* 

        Function provider.

        
      

      - **vnfdId** *(string) --* 

        Function package descriptor ID.

        
      

      - **vnfdVersion** *(string) --* 

        Function package descriptor version.

        
  
  **Exceptions**
  
  *   :py:class:`TelcoNetworkBuilder.Client.exceptions.InternalServerException`

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

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

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

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

  