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

*********************
update_state_template
*********************



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

  

  Updates a state template.

   

  .. warning::

     

    Access to certain Amazon Web Services IoT FleetWise features is currently gated. For more information, see `Amazon Web Services Region and feature availability <https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.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/UpdateStateTemplate>`_  


  **Request Syntax**
  ::

    response = client.update_state_template(
        identifier='string',
        description='string',
        stateTemplatePropertiesToAdd=[
            'string',
        ],
        stateTemplatePropertiesToRemove=[
            'string',
        ],
        dataExtraDimensions=[
            'string',
        ],
        metadataExtraDimensions=[
            'string',
        ]
    )
    
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The unique ID of the state template.

    

  
  :type description: string
  :param description: 

    A brief description of the state template.

    

  
  :type stateTemplatePropertiesToAdd: list
  :param stateTemplatePropertiesToAdd: 

    Add signals from which data is collected as part of the state template.

    

  
    - *(string) --* 

    

  :type stateTemplatePropertiesToRemove: list
  :param stateTemplatePropertiesToRemove: 

    Remove signals from which data is collected as part of the state template.

    

  
    - *(string) --* 

    

  :type dataExtraDimensions: list
  :param dataExtraDimensions: 

    A list of vehicle attributes to associate with the payload published on the state template's MQTT topic. (See `Processing last known state vehicle data using MQTT messaging <https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/process-visualize-data.html#process-last-known-state-vehicle-data>`__). For example, if you add ``Vehicle.Attributes.Make`` and ``Vehicle.Attributes.Model`` attributes, Amazon Web Services IoT FleetWise will enrich the protobuf encoded payload with those attributes in the ``extraDimensions`` field.

     

    Default: An empty array

    

  
    - *(string) --* 

    

  :type metadataExtraDimensions: list
  :param metadataExtraDimensions: 

    A list of vehicle attributes to associate with user properties of the messages published on the state template's MQTT topic. (See `Processing last known state vehicle data using MQTT messaging <https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/process-visualize-data.html#process-last-known-state-vehicle-data>`__). For example, if you add ``Vehicle.Attributes.Make`` and ``Vehicle.Attributes.Model`` attributes, Amazon Web Services IoT FleetWise will include these attributes as User Properties with the MQTT message.

    

  
    - *(string) --* 

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The name of the state template.

        
      

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

        The Amazon Resource Name (ARN) of the state template.

        
      

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

        The unique ID of the state template.

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

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

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

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

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

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

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

  