:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / update_policy_engine

********************
update_policy_engine
********************



.. py:method:: BedrockAgentCoreControl.Client.update_policy_engine(**kwargs)

  

  Updates an existing policy engine within the AgentCore Policy system. This operation allows modification of the policy engine description while maintaining its identity. This is an asynchronous operation. Use the ``GetPolicyEngine`` operation to poll the ``status`` field to track completion.

  

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


  **Request Syntax**
  ::

    response = client.update_policy_engine(
        policyEngineId='string',
        description='string'
    )
    
  :type policyEngineId: string
  :param policyEngineId: **[REQUIRED]** 

    The unique identifier of the policy engine to be updated.

    

  
  :type description: string
  :param description: 

    The new description for the policy engine.

    

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

    
    ::

      {
          'policyEngineId': 'string',
          'name': 'string',
          'description': 'string',
          'createdAt': datetime(2015, 1, 1),
          'updatedAt': datetime(2015, 1, 1),
          'policyEngineArn': 'string',
          'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
          'statusReasons': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyEngineId** *(string) --* 

        The unique identifier of the updated policy engine.

        
      

      - **name** *(string) --* 

        The name of the updated policy engine.

        
      

      - **description** *(string) --* 

        The updated description of the policy engine.

        
      

      - **createdAt** *(datetime) --* 

        The original creation timestamp of the policy engine.

        
      

      - **updatedAt** *(datetime) --* 

        The timestamp when the policy engine was last updated.

        
      

      - **policyEngineArn** *(string) --* 

        The ARN of the updated policy engine.

        
      

      - **status** *(string) --* 

        The current status of the updated policy engine.

        
      

      - **statusReasons** *(list) --* 

        Additional information about the update status.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.ValidationException`

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

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

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

  