Skip to content

/AWS1/CL_R5R=>ASSOCIATERESOLVERRULE()

About AssociateResolverRule

Associates a Resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.

Method Signature

IMPORTING

Required arguments:

IV_RESOLVERRULEID TYPE /AWS1/R5RRESOURCEID /AWS1/R5RRESOURCEID

The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.

IV_VPCID TYPE /AWS1/R5RRESOURCEID /AWS1/R5RRESOURCEID

The ID of the VPC that you want to associate the Resolver rule with.

Optional arguments:

IV_NAME TYPE /AWS1/R5RNAME /AWS1/R5RNAME

A name for the association that you're creating between a Resolver rule and a VPC.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_R5RASSOCRESOLVERRLRSP /AWS1/CL_R5RASSOCRESOLVERRLRSP