Skip to main content

resolver_rule_policies

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

Overview

Nameresolver_rule_policies
TypeResource
Idaws.route53resolver.resolver_rule_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resolver_rule_policystringThe Resolver rule policy for the rule that you specified in a GetResolverRulePolicy request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resolver_rule_policyselectregionGets information about the Resolver rule policy for a specified rule. A Resolver rule policy includes the rule that you want to share with another account, the account that you want to share the rule with, and the Resolver operations that you want to allow the account to use.
put_resolver_rule_policyreplaceregion, Arn, ResolverRulePolicySpecifies an Amazon Web Services rule that you want to share with another account, the account that you want to share the rule with, and the operations that you want the account to be able to perform on the rule.

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

Gets information about the Resolver rule policy for a specified rule. A Resolver rule policy includes the rule that you want to share with another account, the account that you want to share the rule with, and the Resolver operations that you want to allow the account to use.

SELECT
resolver_rule_policy
FROM aws.route53resolver.resolver_rule_policies
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Specifies an Amazon Web Services rule that you want to share with another account, the account that you want to share the rule with, and the operations that you want the account to be able to perform on the rule.

REPLACE aws.route53resolver.resolver_rule_policies
SET
Arn = '{{ Arn }}',
ResolverRulePolicy = '{{ ResolverRulePolicy }}'
WHERE
region = '{{ region }}' --required
AND Arn = '{{ Arn }}' --required
AND ResolverRulePolicy = '{{ ResolverRulePolicy }}' --required
RETURNING
return_value;