:doc:`AppStream <../../appstream>` / Client / update_image_permissions

************************
update_image_permissions
************************



.. py:method:: AppStream.Client.update_image_permissions(**kwargs)

  

  Adds or updates permissions for the specified private image.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions>`_  


  **Request Syntax**
  ::

    response = client.update_image_permissions(
        Name='string',
        SharedAccountId='string',
        ImagePermissions={
            'allowFleet': True|False,
            'allowImageBuilder': True|False
        }
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the private image.

    

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

    The 12-digit identifier of the AWS account for which you want add or update image permissions.

    

  
  :type ImagePermissions: dict
  :param ImagePermissions: **[REQUIRED]** 

    The permissions for the image.

    

  
    - **allowFleet** *(boolean) --* 

      Indicates whether the image can be used for a fleet.

      

    
    - **allowImageBuilder** *(boolean) --* 

      Indicates whether the image can be used for an image builder.

      

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppStream.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`AppStream.Client.exceptions.ResourceNotAvailableException`

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

  