resource_policies
Creates, updates, deletes, gets or lists a resource_policies resource.
Overview
| Name | resource_policies |
| Type | Resource |
| Id | aws.bedrock_agentcore_control.resource_policies |
Fields
The following fields are returned by SELECT queries:
- get_resource_policy
| Name | Datatype | Description |
|---|---|---|
policy | string | The resource policy associated with the specified resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_resource_policy | select | resource_arn, region | Retrieves the resource-based policy for a specified resource. This feature is currently available only for AgentCore Runtime and Gateway. | |
put_resource_policy | replace | resource_arn, region, policy | Creates or updates a resource-based policy for a resource with the specified resourceArn. This feature is currently available only for AgentCore Runtime and Gateway. | |
delete_resource_policy | delete | resource_arn, region | Deletes the resource-based policy for a specified resource. This feature is currently available only for AgentCore Runtime and Gateway. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
resource_arn | string | The Amazon Resource Name (ARN) of the resource for which to delete the resource policy. |
SELECT examples
- get_resource_policy
Retrieves the resource-based policy for a specified resource. This feature is currently available only for AgentCore Runtime and Gateway.
SELECT
policy
FROM aws.bedrock_agentcore_control.resource_policies
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;
REPLACE examples
- put_resource_policy
Creates or updates a resource-based policy for a resource with the specified resourceArn. This feature is currently available only for AgentCore Runtime and Gateway.
REPLACE aws.bedrock_agentcore_control.resource_policies
SET
policy = '{{ policy }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND policy = '{{ policy }}' --required
RETURNING
policy;
DELETE examples
- delete_resource_policy
Deletes the resource-based policy for a specified resource. This feature is currently available only for AgentCore Runtime and Gateway.
DELETE FROM aws.bedrock_agentcore_control.resource_policies
WHERE resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
;