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

***************************
create_sol_function_package
***************************



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

  

  Creates 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. For more information, see `Function packages <https://docs.aws.amazon.com/tnb/latest/ug/function-packages.html>`__ in the *Amazon Web Services Telco Network Builder User Guide*.

   

  Creating a function package is the first step for creating a network in AWS TNB. This request creates an empty container with an ID. The next step is to upload the actual CSAR zip file into that empty container. To upload function package content, see `PutSolFunctionPackageContent <https://docs.aws.amazon.com/tnb/latest/APIReference/API_PutSolFunctionPackageContent.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.create_sol_function_package(
        tags={
            'string': 'string'
        }
    )
    
  :type tags: dict
  :param tags: 

    A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'arn': 'string',
          'id': 'string',
          'onboardingState': 'CREATED'|'ONBOARDED'|'ERROR',
          'operationalState': 'ENABLED'|'DISABLED',
          'tags': {
              'string': 'string'
          },
          'usageState': 'IN_USE'|'NOT_IN_USE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Function package ARN.

        
      

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

        ID of the function package.

        
      

      - **onboardingState** *(string) --* 

        Onboarding state of the function package.

        
      

      - **operationalState** *(string) --* 

        Operational state of the function package.

        
      

      - **tags** *(dict) --* 

        A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. You can use tags to search and filter your resources or track your Amazon Web Services costs.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
      

      - **usageState** *(string) --* 

        Usage state of the function package.

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

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

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

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

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

  