Skip to main content

resource_policies

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

Overview

Nameresource_policies
TypeResource
Idaws.billing.resource_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe resource-based policy document attached to the resource in JSON format.
resource_arnstringThe Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to. (pattern: <code>arn:aws[a-z-]*:(billing)::[0-9]{12}:[a-zA-Z0-9/:_+=.@-]{0,70}[a-zA-Z0-9]</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_policyselectregionReturns the resource-based policy document attached to the resource in JSON format.

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)

SELECT examples

Returns the resource-based policy document attached to the resource in JSON format.

SELECT
policy,
resource_arn
FROM aws.billing.resource_policies
WHERE region = '{{ region }}' -- required
;