Skip to main content

resource_policies

Creates, updates, deletes, gets or lists a resource_policies resource.

Overview

Nameresource_policies
TypeResource
Idaws.bedrock_agentcore_control.resource_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe resource policy associated with the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_policyselectresource_arn, regionRetrieves the resource-based policy for a specified resource. This feature is currently available only for AgentCore Runtime and Gateway.
put_resource_policyreplaceresource_arn, region, policyCreates 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_policydeleteresource_arn, regionDeletes 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
resource_arnstringThe Amazon Resource Name (ARN) of the resource for which to delete the resource policy.

SELECT examples

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

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

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
;