aws_sdk_networkfirewall/client/create_proxy_configuration.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 [`CreateProxyConfiguration`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`proxy_configuration_name(impl Into<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::proxy_configuration_name) / [`set_proxy_configuration_name(Option<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_proxy_configuration_name):<br>required: **true**<br><p>The descriptive name of the proxy configuration. You can't change the name of a proxy configuration after you create it.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_description):<br>required: **false**<br><p>A description of the proxy configuration.</p><br>
8 /// - [`rule_group_names(impl Into<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::rule_group_names) / [`set_rule_group_names(Option<Vec::<String>>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_rule_group_names):<br>required: **false**<br><p>The proxy rule group name(s) to attach to the proxy configuration.</p> <p>You must specify the ARNs or the names, and you can specify both.</p><br>
9 /// - [`rule_group_arns(impl Into<String>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::rule_group_arns) / [`set_rule_group_arns(Option<Vec::<String>>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_rule_group_arns):<br>required: **false**<br><p>The proxy rule group arn(s) to attach to the proxy configuration.</p> <p>You must specify the ARNs or the names, and you can specify both.</p><br>
10 /// - [`default_rule_phase_actions(ProxyConfigDefaultRulePhaseActionsRequest)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::default_rule_phase_actions) / [`set_default_rule_phase_actions(Option<ProxyConfigDefaultRulePhaseActionsRequest>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_default_rule_phase_actions):<br>required: **true**<br><p>Evaluation points in the traffic flow where rules are applied. There are three phases in a traffic where the rule match is applied.</p><br>
11 /// - [`tags(Tag)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::set_tags):<br>required: **false**<br><p>The key:value pairs to associate with the resource.</p><br>
12 /// - On success, responds with [`CreateProxyConfigurationOutput`](crate::operation::create_proxy_configuration::CreateProxyConfigurationOutput) with field(s):
13 /// - [`proxy_configuration(Option<ProxyConfiguration>)`](crate::operation::create_proxy_configuration::CreateProxyConfigurationOutput::proxy_configuration): <p>The properties that define the proxy configuration.</p>
14 /// - [`update_token(Option<String>)`](crate::operation::create_proxy_configuration::CreateProxyConfigurationOutput::update_token): <p>A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy configuration. The token marks the state of the proxy configuration resource at the time of the request.</p> <p>To make changes to the proxy configuration, you provide the token in your request. Network Firewall uses the token to ensure that the proxy configuration 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 configuration 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>
15 /// - On failure, responds with [`SdkError<CreateProxyConfigurationError>`](crate::operation::create_proxy_configuration::CreateProxyConfigurationError)
16 pub fn create_proxy_configuration(&self) -> crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder {
17 crate::operation::create_proxy_configuration::builders::CreateProxyConfigurationFluentBuilder::new(self.handle.clone())
18 }
19}