:doc:`IoTFleetWise <../../iotfleetwise>` / Client / create_fleet

************
create_fleet
************



.. py:method:: IoTFleetWise.Client.create_fleet(**kwargs)

  

  Creates a fleet that represents a group of vehicles.

   

  .. note::

    

    You must create both a signal catalog and vehicles before you can create a fleet.

    

   

  For more information, see `Fleets <https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleets.html>`__ in the *Amazon Web Services IoT FleetWise Developer Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotfleetwise-2021-06-17/CreateFleet>`_  


  **Request Syntax**
  ::

    response = client.create_fleet(
        fleetId='string',
        description='string',
        signalCatalogArn='string',
        tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type fleetId: string
  :param fleetId: **[REQUIRED]** 

    The unique ID of the fleet to create.

    

  
  :type description: string
  :param description: 

    A brief description of the fleet to create.

    

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

    The Amazon Resource Name (ARN) of a signal catalog.

    

  
  :type tags: list
  :param tags: 

    Metadata that can be used to manage the fleet.

    

  
    - *(dict) --* 

      A set of key/value pairs that are used to manage the resource.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The tag's key.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The tag's value.

        

      
    

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

    
    ::

      {
          'id': 'string',
          'arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The ID of the created fleet.

        
      

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

        The ARN of the created fleet.

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

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

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

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

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

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

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

  