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, DisassociateResolverRule, or ListResolverRuleAssociations 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.
Idawscc.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.

For more information, see AWS::Route53Resolver::ResolverRuleAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourceresolver_rule_associationsINSERTVPCId, ResolverRuleId, region
delete_resourceresolver_rule_associationsDELETEIdentifier, region
list_resourcesresolver_rule_associations_list_onlySELECTregion
get_resourceresolver_rule_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual resolver_rule_association.

SELECT
region,
vpc_id,
resolver_rule_id,
resolver_rule_association_id,
name
FROM awscc.route53resolver.resolver_rule_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ resolver_rule_association_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.route53resolver.resolver_rule_associations (
VPCId,
ResolverRuleId,
region
)
SELECT
'{{ vpc_id }}',
'{{ resolver_rule_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.route53resolver.resolver_rule_associations
WHERE
Identifier = '{{ resolver_rule_association_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

route53resolver:AssociateResolverRule,
route53resolver:GetResolverRuleAssociation,
ec2:DescribeVpcs