update_firewall_rule
async
¶
update_firewall_rule(
client_token: ClientToken,
firewall_rule_id: ResourceId,
*,
config_overrides: Optional[AsyncRoute53GlobalResolverClientConfig] = 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/async_route53_global_resolver.py
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 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 | |