:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Waiter / PolicyGenerationCompleted

*************************
PolicyGenerationCompleted
*************************



.. py:class:: BedrockAgentCoreControl.Waiter.PolicyGenerationCompleted

  ::

    
    waiter = client.get_waiter('policy_generation_completed')

  
  

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

    Polls :py:meth:`BedrockAgentCoreControl.Client.get_policy_generation` every 2 seconds until a successful state is reached. An error is raised after 60 failed checks.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/GetPolicyGeneration>`_    


    **Request Syntax**
    ::

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

      The unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous `StartPolicyGeneration <https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_StartPolicyGeneration.html>`__ call.

      

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

      The identifier of the policy engine associated with the policy generation request. This provides the context for the generation operation and schema validation.

      

    
    :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: 2

        

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

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

        

      
    
    
    :returns: None