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

************************
create_guardrail_version
************************



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

  

  Creates a version of the guardrail. Use this API to create a snapshot of the guardrail when you are satisfied with a configuration, or to compare the configuration with another version.

  

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


  **Request Syntax**
  ::

    response = client.create_guardrail_version(
        guardrailIdentifier='string',
        description='string',
        clientRequestToken='string'
    )
    
  :type guardrailIdentifier: string
  :param guardrailIdentifier: **[REQUIRED]** 

    The unique identifier of the guardrail. This can be an ID or the ARN.

    

  
  :type description: string
  :param description: 

    A description of the guardrail version.

    

  
  :type clientRequestToken: string
  :param clientRequestToken: 

    A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see `Ensuring idempotency <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html>`__ in the *Amazon S3 User Guide*.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'guardrailId': 'string',
          'version': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **guardrailId** *(string) --* 

        The unique identifier of the guardrail.

        
      

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

        The number of the version of the guardrail.

        
  
  **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.ServiceQuotaExceededException`

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

  