associate_firewall_rule_group
async
¶
associate_firewall_rule_group(
creator_request_id: CreatorRequestId,
firewall_rule_group_id: ResourceId,
vpc_id: ResourceId,
priority: Priority,
name: Name,
*,
config_overrides: Optional[AsyncRoute53ResolverClientConfig] = None,
mutation_protection: Optional[MutationProtectionStatus] = None,
tags: Optional[TagList] = None,
) -> AssociateFirewallRuleGroupResponse
Associates a FirewallRuleGroup with a VPC, to provide DNS filtering for the VPC.
If the rule group contains any rule configured with the PartnerThreatProtection rule type, the calling account must hold an active Amazon Web Services Marketplace subscription to the named partner. If the subscription is missing, the association request is rejected.
Parameters:
-
creator_request_id(CreatorRequestId) –A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice.
CreatorRequestIdcan be any unique string, for example, a date/time stamp. -
firewall_rule_group_id(ResourceId) –The unique identifier of the firewall rule group.
-
vpc_id(ResourceId) –The unique identifier of the VPC that you want to associate with the rule group.
-
priority(Priority) –The setting that determines the processing order of the rule group among the rule groups that you associate with the specified VPC. DNS Firewall filters VPC traffic starting from the rule group with the lowest numeric priority setting.
You must specify a unique priority for each rule group that you associate with a single VPC. To make it easier to insert rule groups later, leave space between the numbers, for example, use 101, 200, and so on. You can change the priority setting for a rule group association after you create it.
The allowed values for
Priorityare between 100 and 9900. -
name(Name) –A name that lets you identify the association, to manage and use it.
-
mutation_protection(Optional[MutationProtectionStatus], default:None) –If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. When you create the association, the default setting is
DISABLED. -
tags(Optional[TagList], default:None) –A list of the tag keys and values that you want to associate with the rule group association.
Raises:
-
AccessDeniedException–The current account doesn't have the IAM permissions required to perform the specified Resolver operation.
This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.
-
ConflictException–The requested state transition isn't valid. For example, you can't delete a firewall domain list if it is in the process of being deleted, or you can't import domains into a domain list that is in the process of being deleted.
-
InternalServiceErrorException–We encountered an unknown error. Try again in a few minutes.
-
LimitExceededException–The request caused one or more limits to be exceeded.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
ThrottlingException–The request was throttled. Try again in a few minutes.
-
ValidationException–You have provided an invalid command. If you ran the
UpdateFirewallDomainsrequest. supported values areADD,REMOVE, orREPLACEa domain. -
UnknownServiceError–The service returned an error code this client does not model.