update_proxy_rule
async
¶
update_proxy_rule(
proxy_rule_name: ResourceName,
update_token: UpdateToken,
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
proxy_rule_group_name: Optional[ResourceName] = None,
proxy_rule_group_arn: Optional[ResourceArn] = None,
description: Optional[Description] = None,
action: Optional[ProxyRulePhaseAction] = None,
add_conditions: Optional[ProxyRuleConditionList] = None,
remove_conditions: Optional[ProxyRuleConditionList] = None,
) -> UpdateProxyRuleResponse
Updates the properties of the specified proxy rule.
Parameters:
-
proxy_rule_group_name(Optional[ResourceName], default:None) –The descriptive name of the proxy rule group. You can't change the name of a proxy rule group after you create it.
You must specify the ARN or the name, and you can specify both.
-
proxy_rule_group_arn(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of a proxy rule group.
You must specify the ARN or the name, and you can specify both.
-
proxy_rule_name(ResourceName) –The descriptive name of the proxy rule. You can't change the name of a proxy rule after you create it.
-
description(Optional[Description], default:None) –A description of the proxy rule.
-
action(Optional[ProxyRulePhaseAction], default:None) –Depending on the match action, the proxy either stops the evaluation (if the action is terminal - allow or deny), or continues it (if the action is alert) until it matches a rule with a terminal action.
-
add_conditions(Optional[ProxyRuleConditionList], default:None) –Proxy rule conditions to add. Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against.
-
remove_conditions(Optional[ProxyRuleConditionList], default:None) –Proxy rule conditions to remove. Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against.
-
update_token(UpdateToken) –A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule. The token marks the state of the proxy rule resource at the time of the request.
To make changes to the proxy rule, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException. If this happens, retrieve the proxy rule again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.
Raises:
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
InvalidRequestException–The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
-
-
ResourceNotFoundException–Unable to locate a resource using the parameters that you provided.
-
ThrottlingException–Unable to process the request due to throttling limitations.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_network_firewall/_services/async_network_firewall.py
5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 | |