:doc:`IoT <../../iot>` / Client / update_dimension

****************
update_dimension
****************



.. py:method:: IoT.Client.update_dimension(**kwargs)

  

  Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and recreate it).

   

  Requires permission to access the `UpdateDimension <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/UpdateDimension>`_  


  **Request Syntax**
  ::

    response = client.update_dimension(
        name='string',
        stringValues=[
            'string',
        ]
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.

    

  
  :type stringValues: list
  :param stringValues: **[REQUIRED]** 

    Specifies the value or list of values for the dimension. For ``TOPIC_FILTER`` dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'name': 'string',
          'arn': 'string',
          'type': 'TOPIC_FILTER',
          'stringValues': [
              'string',
          ],
          'creationDate': datetime(2015, 1, 1),
          'lastModifiedDate': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A unique identifier for the dimension.

        
      

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

        The Amazon Resource Name (ARN)of the created dimension.

        
      

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

        The type of the dimension.

        
      

      - **stringValues** *(list) --* 

        The value or list of values used to scope the dimension. For example, for topic filters, this is the pattern used to match the MQTT topic name.

        
        

        - *(string) --* 
    
      

      - **creationDate** *(datetime) --* 

        The date and time, in milliseconds since epoch, when the dimension was initially created.

        
      

      - **lastModifiedDate** *(datetime) --* 

        The date and time, in milliseconds since epoch, when the dimension was most recently updated.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

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

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

  