resolver_rule_policies
Creates, updates, deletes, gets or lists a resolver_rule_policies resource.
Overview
| Name | resolver_rule_policies |
| Type | Resource |
| Id | aws.route53resolver.resolver_rule_policies |
Fields
The following fields are returned by SELECT queries:
- get_resolver_rule_policy
| Name | Datatype | Description |
|---|---|---|
resolver_rule_policy | string | The Resolver rule policy for the rule that you specified in a GetResolverRulePolicy request. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_resolver_rule_policy | select | region | 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. | |
put_resolver_rule_policy | replace | region, Arn, ResolverRulePolicy | 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. |
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) |
SELECT examples
- get_resolver_rule_policy
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
- put_resolver_rule_policy
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;