automated_reasoning_policies
Creates, updates, deletes or gets an automated_reasoning_policy resource or lists automated_reasoning_policies in a region
Overview
| Name | automated_reasoning_policies |
| Type | Resource |
| Description | Definition of AWS::Bedrock::AutomatedReasoningPolicy Resource Type |
| Id | awscc.bedrock.automated_reasoning_policies |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | The name inherited from the policy |
description | string | The description inherited from the policy |
policy_definition | object | |
policy_arn | string | Arn of the policy |
version | string | The version of the policy |
definition_hash | string | The hash for this version |
created_at | string | Time this policy version was created |
updated_at | string | Time this policy was last updated |
policy_id | string | The id of the associated policy |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
policy_arn | string | Arn of the policy |
region | string | AWS region. |
For more information, see AWS::Bedrock::AutomatedReasoningPolicy.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | automated_reasoning_policies | INSERT | Name, region |
delete_resource | automated_reasoning_policies | DELETE | Identifier, region |
update_resource | automated_reasoning_policies | UPDATE | Identifier, PatchDocument, region |
list_resources | automated_reasoning_policies_list_only | SELECT | region |
get_resource | automated_reasoning_policies | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = 'us-east-1' AND
Identifier = '{{ policy_arn }}';
Lists all automated_reasoning_policies in a region.
SELECT
region,
policy_arn
FROM awscc.bedrock.automated_reasoning_policies_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new automated_reasoning_policy resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.automated_reasoning_policies (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.bedrock.automated_reasoning_policies (
Name,
Description,
PolicyDefinition,
Tags,
region
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ policy_definition }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: automated_reasoning_policy
props:
- name: name
value: '{{ name }}'
- name: description
value: '{{ description }}'
- name: policy_definition
value:
version: '{{ version }}'
types:
- name: '{{ name }}'
description: '{{ description }}'
values:
- value: '{{ value }}'
description: '{{ description }}'
rules:
- id: '{{ id }}'
expression: '{{ expression }}'
alternate_expression: '{{ alternate_expression }}'
variables:
- name: '{{ name }}'
type: '{{ type }}'
description: '{{ description }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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 }}';
DELETE example
/*+ delete */
DELETE FROM awscc.bedrock.automated_reasoning_policies
WHERE
Identifier = '{{ policy_arn }}' AND
region = 'us-east-1';
Permissions
To operate on the automated_reasoning_policies resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
bedrock:CreateAutomatedReasoningPolicy,
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:TagResource,
bedrock:ListTagsForResource
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:ListTagsForResource
bedrock:UpdateAutomatedReasoningPolicy,
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:ListTagsForResource,
bedrock:TagResource,
bedrock:UntagResource
bedrock:DeleteAutomatedReasoningPolicy,
bedrock:GetAutomatedReasoningPolicy
bedrock:ListAutomatedReasoningPolicies