IAM / Waiter / PolicyExists

PolicyExists#

class IAM.Waiter.PolicyExists#
waiter = client.get_waiter('policy_exists')
wait(**kwargs)#

Polls IAM.Client.get_policy() every 1 seconds until a successful state is reached. An error is returned after 20 failed checks.

See also: AWS API Documentation

Request Syntax

waiter.wait(
    PolicyArn='string',
    WaiterConfig={
        'Delay': 123,
        'MaxAttempts': 123
    }
)
Parameters:
  • PolicyArn (string) –

    [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) in the Amazon Web Services General Reference.

  • WaiterConfig (dict) –

    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