ProfileResourceAssociation
Source:
src/AWS/Route53Profiles/ProfileResourceAssociation.ts
An attachment of a DNS resource to a Route 53 Profile. Attach private hosted zones, Resolver rules, or DNS Firewall rule groups; every VPC the Profile is associated with picks up the resource.
Attaching Resources
Section titled “Attaching Resources”Attach a DNS Firewall Rule Group
import * as Route53Profiles from "alchemy/AWS/Route53Profiles";
const attachment = yield* Route53Profiles.ProfileResourceAssociation( "FirewallRules", { profileId: profile.profileId, resourceArn: ruleGroupArn, resourceProperties: JSON.stringify({ priority: 102 }), },);Attach a Resolver Rule
const attachment = yield* Route53Profiles.ProfileResourceAssociation( "CorpForwarding", { profileId: profile.profileId, resourceArn: rule.resolverRuleArn, },);