:doc:`WellArchitected <../../wellarchitected>` / Client / disassociate_lenses

*******************
disassociate_lenses
*******************



.. py:method:: WellArchitected.Client.disassociate_lenses(**kwargs)

  

  Disassociate a lens from a workload.

   

  Up to 10 lenses can be disassociated from a workload in a single API operation.

   

  .. note::

    

    The Amazon Web Services Well-Architected Framework lens ( ``wellarchitected``) cannot be removed from a workload.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DisassociateLenses>`_  


  **Request Syntax**
  ::

    response = client.disassociate_lenses(
        WorkloadId='string',
        LensAliases=[
            'string',
        ]
    )
    
  :type WorkloadId: string
  :param WorkloadId: **[REQUIRED]** 

    The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.

    

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

    List of lens aliases to associate or disassociate with a workload. Up to 10 lenses can be specified.

     

    Identify a lens using its  LensSummary$LensAlias.

    

  
    - *(string) --* 

      The alias of the lens.

       

      For Amazon Web Services official lenses, this is either the lens alias, such as ``serverless``, or the lens ARN, such as ``arn:aws:wellarchitected:us-east-1::lens/serverless``. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.

       

      For custom lenses, this is the lens ARN, such as ``arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef``.

       

      Each lens is identified by its  LensSummary$LensAlias.

      

    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`WellArchitected.Client.exceptions.ValidationException`

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

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

  
  *   :py:class:`WellArchitected.Client.exceptions.InternalServerException`

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

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

  