update_firewall_rule
¶
update_firewall_rule(
client_token: ClientToken,
firewall_rule_id: ResourceId,
*,
config_overrides: Optional[Route53GlobalResolverClientConfig] = None,
action: Optional[FirewallRuleAction] = None,
block_override_dns_type: Optional[BlockOverrideDnsQueryType] = None,
block_override_domain: Optional[Domain] = None,
block_override_ttl: Optional[BlockOverrideTtl] = None,
block_response: Optional[FirewallBlockResponse] = None,
confidence_threshold: Optional[ConfidenceThreshold] = None,
description: Optional[ResourceDescription] = None,
dns_advanced_protection: Optional[DnsAdvancedProtection] = None,
name: Optional[ResourceName] = None,
priority: Optional[FirewallRulePriority] = None,
) -> UpdateFirewallRuleOutput
Updates the configuration of a DNS firewall rule.
Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
Parameters:
-
action(Optional[FirewallRuleAction], default:None) –The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
-
block_override_dns_type(Optional[BlockOverrideDnsQueryType], default:None) –The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule actionBLOCKwith aBlockResponsesetting ofOVERRIDE. -
block_override_domain(Optional[Domain], default:None) –The custom DNS record to send back in response to the query. Used for the rule action
BLOCKwith aBlockResponsesetting ofOVERRIDE. -
block_override_ttl(Optional[BlockOverrideTtl], default:None) –The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action
BLOCKwith aBlockResponsesetting ofOVERRIDE. -
block_response(Optional[FirewallBlockResponse], default:None) –The way that you want DNS Firewall to block the request. Used for the rule action setting
BLOCK. -
client_token(ClientToken) –A unique, case-sensitive identifier to ensure idempotency. This means that making the same request multiple times with the same
clientTokenhas the same result every time. -
confidence_threshold(Optional[ConfidenceThreshold], default:None) –The confidence threshold for DNS Firewall Advanced. You must provide this value when you create a DNS Firewall Advanced rule.
-
description(Optional[ResourceDescription], default:None) –The description for the Firewall rule.
-
dns_advanced_protection(Optional[DnsAdvancedProtection], default:None) –The type of the DNS Firewall Advanced rule. Valid values are DGA, DNS_TUNNELING, and DICTIONARY_DGA.
-
firewall_rule_id(ResourceId) –The ID of the DNS Firewall rule.
-
name(Optional[ResourceName], default:None) –The name of the DNS Firewall rule.
-
priority(Optional[FirewallRulePriority], default:None) –The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
Raises:
-
AccessDeniedException–You don't have permission to perform this operation. Check your IAM permissions and try again.
-
ConflictException–The request conflicts with the current state of the resource. This can occur when trying to modify a resource that is not in a valid state for the requested operation.
-
InternalServerException–An internal server error occurred. Try again later.
-
ResourceNotFoundException–The specified resource was not found. Verify the resource ID and try again.
-
ServiceQuotaExceededException–The request would exceed one or more service quotas. Check your current usage and quotas, then try again.
-
ThrottlingException–The request was throttled due to too many requests. Wait a moment and try again.
-
ValidationException–The input parameters are invalid. Check the parameter values and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route53globalresolver/_services/route53_global_resolver.py
2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 | |