automated_reasoning_policy_versions
Creates, updates, deletes or gets an automated_reasoning_policy_version resource or lists automated_reasoning_policy_versions in a region
Overview
| Name | automated_reasoning_policy_versions |
| Type | Resource |
| Description | Definition of AWS::Bedrock::AutomatedReasoningPolicyVersion Resource Type |
| Id | awscc.bedrock.automated_reasoning_policy_versions |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
policy_arn | string | Arn of the policy |
name | string | The name inherited from the policy |
description | string | The description inherited from 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 |
version | string | The version of the policy |
region | string | AWS region. |
For more information, see AWS::Bedrock::AutomatedReasoningPolicyVersion.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | automated_reasoning_policy_versions | INSERT | PolicyArn, region |
delete_resource | automated_reasoning_policy_versions | DELETE | Identifier, region |
list_resources | automated_reasoning_policy_versions_list_only | SELECT | region |
get_resource | automated_reasoning_policy_versions | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual automated_reasoning_policy_version.
SELECT
region,
policy_arn,
name,
description,
version,
definition_hash,
last_updated_definition_hash,
created_at,
updated_at,
policy_id,
tags
FROM awscc.bedrock.automated_reasoning_policy_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ policy_arn }}|{{ version }}';
Lists all automated_reasoning_policy_versions in a region.
SELECT
region,
policy_arn,
version
FROM awscc.bedrock.automated_reasoning_policy_versions_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new automated_reasoning_policy_version resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.bedrock.automated_reasoning_policy_versions (
PolicyArn,
region
)
SELECT
'{{ policy_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.bedrock.automated_reasoning_policy_versions (
PolicyArn,
LastUpdatedDefinitionHash,
Tags,
region
)
SELECT
'{{ policy_arn }}',
'{{ last_updated_definition_hash }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: automated_reasoning_policy_version
props:
- name: policy_arn
value: '{{ policy_arn }}'
- name: last_updated_definition_hash
value: '{{ last_updated_definition_hash }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.bedrock.automated_reasoning_policy_versions
WHERE
Identifier = '{{ policy_arn }}|{{ version }}' 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:
| Parameter | Description |
|---|---|
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_policy_versions resource, the following permissions are required:
- Create
- Read
- Delete
- List
bedrock:CreateAutomatedReasoningPolicyVersion,
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:TagResource,
bedrock:ListTagsForResource
bedrock:GetAutomatedReasoningPolicy,
bedrock:ExportAutomatedReasoningPolicyVersion,
bedrock:ListTagsForResource
bedrock:DeleteAutomatedReasoningPolicy,
bedrock:GetAutomatedReasoningPolicy
bedrock:ListAutomatedReasoningPolicies