Skip to main content

automated_reasoning_policies

Creates, updates, deletes or gets an automated_reasoning_policy resource or lists automated_reasoning_policies in a region

Overview

Nameautomated_reasoning_policies
TypeResource
DescriptionDefinition of AWS::Bedrock::AutomatedReasoningPolicy Resource Type
Idawscc.bedrock.automated_reasoning_policies

Fields

NameDatatypeDescription
namestringThe name inherited from the policy
descriptionstringThe description inherited from the policy
policy_definitionobject
policy_arnstringArn of the policy
versionstringThe version of the policy
definition_hashstringThe hash for this version
created_atstringTime this policy version was created
updated_atstringTime this policy was last updated
policy_idstringThe id of the associated policy
tagsarray
regionstringAWS region.

For more information, see AWS::Bedrock::AutomatedReasoningPolicy.

Methods

NameResourceAccessible byRequired Params
create_resourceautomated_reasoning_policiesINSERTName, region
delete_resourceautomated_reasoning_policiesDELETEIdentifier, region
update_resourceautomated_reasoning_policiesUPDATEIdentifier, PatchDocument, region
list_resourcesautomated_reasoning_policies_list_onlySELECTregion
get_resourceautomated_reasoning_policiesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual automated_reasoning_policy.

SELECT
region,
name,
description,
policy_definition,
policy_arn,
version,
definition_hash,
created_at,
updated_at,
policy_id,
tags
FROM awscc.bedrock.automated_reasoning_policies
WHERE
region = '{{ region }}' AND
Identifier = '{{ policy_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new automated_reasoning_policy resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.bedrock.automated_reasoning_policies (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a automated_reasoning_policy resource, using stack-deploy.

/*+ update */
UPDATE awscc.bedrock.automated_reasoning_policies
SET PatchDocument = string('{{ {
"Name": name,
"Description": description,
"PolicyDefinition": policy_definition,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ policy_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.automated_reasoning_policies
WHERE
Identifier = '{{ policy_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the automated_reasoning_policies resource, the following permissions are required:

bedrock:CreateAutomatedReasoningPolicy,
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:TagResource,
bedrock:ListTagsForResource