:doc:`Bedrock <../../bedrock>` / Client / create_automated_reasoning_policy_version

*****************************************
create_automated_reasoning_policy_version
*****************************************



.. py:method:: Bedrock.Client.create_automated_reasoning_policy_version(**kwargs)

  

  Creates a new version of an existing Automated Reasoning policy. This allows you to iterate on your policy rules while maintaining previous versions for rollback or comparison purposes.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/CreateAutomatedReasoningPolicyVersion>`_  


  **Request Syntax**
  ::

    response = client.create_automated_reasoning_policy_version(
        policyArn='string',
        clientRequestToken='string',
        lastUpdatedDefinitionHash='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type policyArn: string
  :param policyArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.

    

  
  :type clientRequestToken: string
  :param clientRequestToken: 

    A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

    This field is autopopulated if not provided.

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

    The hash of the current policy definition used as a concurrency token to ensure the policy hasn't been modified since you last retrieved it.

    

  
  :type tags: list
  :param tags: 

    A list of tags to associate with the policy version.

    

  
    - *(dict) --* 

      Definition of the key/value pair for a tag.

      

    
      - **key** *(string) --* **[REQUIRED]** 

        Key for the tag.

        

      
      - **value** *(string) --* **[REQUIRED]** 

        Value for the tag.

        

      
    

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

    
    ::

      {
          'policyArn': 'string',
          'version': 'string',
          'name': 'string',
          'description': 'string',
          'definitionHash': 'string',
          'createdAt': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyArn** *(string) --* 

        The versioned Amazon Resource Name (ARN) of the policy version.

        
      

      - **version** *(string) --* 

        The version number of the policy version.

        
      

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

        The name of the policy version.

        
      

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

        The description of the policy version.

        
      

      - **definitionHash** *(string) --* 

        The hash of the policy definition for this version.

        
      

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

        The timestamp when the policy version was created.

        
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  
  *   :py:class:`Bedrock.Client.exceptions.TooManyTagsException`

  
  *   :py:class:`Bedrock.Client.exceptions.ServiceQuotaExceededException`

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

  