aws_sdk_networkfirewall/client/create_proxy_rules.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 [`CreateProxyRules`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`proxy_rule_group_arn(impl Into<String>)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::proxy_rule_group_arn) / [`set_proxy_rule_group_arn(Option<String>)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::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>
7 /// - [`proxy_rule_group_name(impl Into<String>)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::proxy_rule_group_name) / [`set_proxy_rule_group_name(Option<String>)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::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>
8 /// - [`rules(CreateProxyRulesByRequestPhase)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::rules) / [`set_rules(Option<CreateProxyRulesByRequestPhase>)`](crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::set_rules):<br>required: **true**<br><p>Individual rules that define match conditions and actions for application-layer traffic. Rules specify what to inspect (domains, headers, methods) and what action to take (allow, deny, alert).</p><br>
9 /// - On success, responds with [`CreateProxyRulesOutput`](crate::operation::create_proxy_rules::CreateProxyRulesOutput) with field(s):
10 /// - [`proxy_rule_group(Option<ProxyRuleGroup>)`](crate::operation::create_proxy_rules::CreateProxyRulesOutput::proxy_rule_group): <p>The properties that define the proxy rule group with the newly created proxy rule(s).</p>
11 /// - [`update_token(Option<String>)`](crate::operation::create_proxy_rules::CreateProxyRulesOutput::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>
12 /// - On failure, responds with [`SdkError<CreateProxyRulesError>`](crate::operation::create_proxy_rules::CreateProxyRulesError)
13 pub fn create_proxy_rules(&self) -> crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder {
14 crate::operation::create_proxy_rules::builders::CreateProxyRulesFluentBuilder::new(self.handle.clone())
15 }
16}