:doc:`IAM <../../iam>` / Waiter / PolicyExists

************
PolicyExists
************



.. py:class:: IAM.Waiter.PolicyExists

  ::

    
    waiter = client.get_waiter('policy_exists')

  
  

  .. py:method:: wait(**kwargs)

    Polls :py:meth:`IAM.Client.get_policy` every 1 seconds until a successful state is reached. An error is raised after 20 failed checks.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetPolicy>`_    


    **Request Syntax**
    ::

      waiter.wait(
          PolicyArn='string',
          WaiterConfig={
              'Delay': 123,
              'MaxAttempts': 123
          }
      )
      
    :type PolicyArn: string
    :param PolicyArn: **[REQUIRED]** 

      The Amazon Resource Name (ARN) of the managed policy that you want information about.

       

      For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

      

    
    :type WaiterConfig: dict
    :param WaiterConfig: 

      A dictionary that provides parameters to control waiting behavior.

      

    
      - **Delay** *(integer) --* 

        The amount of time in seconds to wait between attempts. Default: 1

        

      
      - **MaxAttempts** *(integer) --* 

        The maximum number of attempts to be made. Default: 20

        

      
    
    
    :returns: None