aws_sdk_networkfirewall/client/update_proxy_rule.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateProxyRule`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`proxy_rule_group_name(impl Into<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::proxy_rule_group_name) / [`set_proxy_rule_group_name(Option<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_proxy_rule_group_name):<br>required: **false**<br><p>The descriptive name of the proxy rule group. You can't change the name of a proxy rule group after you create it.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
7 /// - [`proxy_rule_group_arn(impl Into<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::proxy_rule_group_arn) / [`set_proxy_rule_group_arn(Option<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_proxy_rule_group_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of a proxy rule group.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
8 /// - [`proxy_rule_name(impl Into<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::proxy_rule_name) / [`set_proxy_rule_name(Option<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_proxy_rule_name):<br>required: **true**<br><p>The descriptive name of the proxy rule. You can't change the name of a proxy rule after you create it.</p><br>
9 /// - [`description(impl Into<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_description):<br>required: **false**<br><p>A description of the proxy rule.</p><br>
10 /// - [`action(ProxyRulePhaseAction)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::action) / [`set_action(Option<ProxyRulePhaseAction>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_action):<br>required: **false**<br><p>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.</p><br>
11 /// - [`add_conditions(ProxyRuleCondition)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::add_conditions) / [`set_add_conditions(Option<Vec::<ProxyRuleCondition>>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_add_conditions):<br>required: **false**<br><p>Proxy rule conditions to add. Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against.</p><br>
12 /// - [`remove_conditions(ProxyRuleCondition)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::remove_conditions) / [`set_remove_conditions(Option<Vec::<ProxyRuleCondition>>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_remove_conditions):<br>required: **false**<br><p>Proxy rule conditions to remove. Match criteria that specify what traffic attributes to examine. Conditions include operators (StringEquals, StringLike) and values to match against.</p><br>
13 /// - [`update_token(impl Into<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::update_token) / [`set_update_token(Option<String>)`](crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::set_update_token):<br>required: **true**<br><p>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.</p> <p>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 <code>InvalidTokenException</code>. 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.</p><br>
14 /// - On success, responds with [`UpdateProxyRuleOutput`](crate::operation::update_proxy_rule::UpdateProxyRuleOutput) with field(s):
15 /// - [`proxy_rule(Option<ProxyRule>)`](crate::operation::update_proxy_rule::UpdateProxyRuleOutput::proxy_rule): <p>The updated proxy rule resource that reflects the updates from the request.</p>
16 /// - [`removed_conditions(Option<Vec::<ProxyRuleCondition>>)`](crate::operation::update_proxy_rule::UpdateProxyRuleOutput::removed_conditions): <p>Proxy rule conditions removed from the rule.</p>
17 /// - [`update_token(Option<String>)`](crate::operation::update_proxy_rule::UpdateProxyRuleOutput::update_token): <p>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.</p> <p>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 <code>InvalidTokenException</code>. 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.</p>
18 /// - On failure, responds with [`SdkError<UpdateProxyRuleError>`](crate::operation::update_proxy_rule::UpdateProxyRuleError)
19 pub fn update_proxy_rule(&self) -> crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder {
20 crate::operation::update_proxy_rule::builders::UpdateProxyRuleFluentBuilder::new(self.handle.clone())
21 }
22}