// 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
// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_CreateResolverRule.html).
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
.
// 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 // ( https : // docs . aws . amazon . com / Route53 / latest / APIReference / API_route53resolver_CreateResolverRule . html ) .
func (c *Client) AssociateResolverRule(ctx context.Context, params *AssociateResolverRuleInput, optFns ...func(*Options)) (*AssociateResolverRuleOutput, error) {
	if params == nil {
		params = &AssociateResolverRuleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "AssociateResolverRule", params, optFns, addOperationAssociateResolverRuleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*AssociateResolverRuleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) AssociateResolverRule ( ctx context . Context , params * AssociateResolverRuleInput , optFns ... func ( * Options ) ) ( * AssociateResolverRuleOutput , error ) { if params == nil { params = & AssociateResolverRuleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationAssociateResolverRuleMiddlewares ) if err != nil { return nil , err } out := result . ( * AssociateResolverRuleOutput ) out . ResultMetadata = metadata return out , nil }
Associates a Resolver rule with a VPC.
Associates a Resolver rule with a VPC .