Skip to main content

resolver_rule_associations

Creates, updates, deletes or gets a resolver_rule_association resource or lists resolver_rule_associations in a region

Overview

Nameresolver_rule_associations
TypeResource
DescriptionIn the response to an [AssociateResolverRule](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_AssociateResolverRule.html), [DisassociateResolverRule](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_DisassociateResolverRule.html), or [ListResolverRuleAssociations](https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_ListResolverRuleAssociations.html) request, provides information about an association between a resolver rule and a VPC. The association determines which DNS queries that originate in the VPC are forwarded to your network.
Idaws.route53resolver.resolver_rule_associations

Fields

NameDatatypeDescription
vpc_idstringThe ID of the VPC that you associated the Resolver rule with.
resolver_rule_idstringThe ID of the Resolver rule that you associated with the VPC that is specified by VPCId.
resolver_rule_association_idstring
namestringThe name of an association between a Resolver rule and a VPC.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTVPCId, ResolverRuleId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resolver_rule_associations in a region.

SELECT
region,
vpc_id,
resolver_rule_id,
resolver_rule_association_id,
name
FROM aws.route53resolver.resolver_rule_associations
WHERE region = 'us-east-1';

Gets all properties from an individual resolver_rule_association.

SELECT
region,
vpc_id,
resolver_rule_id,
resolver_rule_association_id,
name
FROM aws.route53resolver.resolver_rule_associations
WHERE region = 'us-east-1' AND data__Identifier = '<ResolverRuleAssociationId>';

INSERT example

Use the following StackQL query and manifest file to create a new resolver_rule_association resource, using stack-deploy.

/*+ create */
INSERT INTO aws.route53resolver.resolver_rule_associations (
VPCId,
ResolverRuleId,
region
)
SELECT
'{{ VPCId }}',
'{{ ResolverRuleId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.route53resolver.resolver_rule_associations
WHERE data__Identifier = '<ResolverRuleAssociationId>'
AND region = 'us-east-1';

Permissions

To operate on the resolver_rule_associations resource, the following permissions are required:

Create

route53resolver:AssociateResolverRule,
route53resolver:GetResolverRuleAssociation,
ec2:DescribeVpcs

Read

route53resolver:GetResolverRuleAssociation

Delete

route53resolver:DisassociateResolverRule,
route53resolver:GetResolverRuleAssociation

List

route53resolver:ListResolverRuleAssociations