Bedrock / Client / create_automated_reasoning_policy_version
create_automated_reasoning_policy_version¶
- 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
Request Syntax
response = client.create_automated_reasoning_policy_version( policyArn='string', clientRequestToken='string', lastUpdatedDefinitionHash='string', tags=[ { 'key': 'string', 'value': 'string' }, ] )
- Parameters:
policyArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to create a version.
clientRequestToken (string) –
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.
lastUpdatedDefinitionHash (string) –
[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.
tags (list) –
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.
- Return type:
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