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
2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 | |