aws_sdk_networkfirewall/client/describe_firewall.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 [`DescribeFirewall`](crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`firewall_name(impl Into<String>)`](crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder::firewall_name) / [`set_firewall_name(Option<String>)`](crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder::set_firewall_name):<br>required: **false**<br><p>The descriptive name of the firewall. You can't change the name of a firewall after you create it.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
7 /// - [`firewall_arn(impl Into<String>)`](crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder::firewall_arn) / [`set_firewall_arn(Option<String>)`](crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder::set_firewall_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the firewall.</p> <p>You must specify the ARN or the name, and you can specify both.</p><br>
8 /// - On success, responds with [`DescribeFirewallOutput`](crate::operation::describe_firewall::DescribeFirewallOutput) with field(s):
9 /// - [`update_token(Option<String>)`](crate::operation::describe_firewall::DescribeFirewallOutput::update_token): <p>An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.</p> <p>To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.</p> <p>To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall 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 firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.</p>
10 /// - [`firewall(Option<Firewall>)`](crate::operation::describe_firewall::DescribeFirewallOutput::firewall): <p>The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.</p>
11 /// - [`firewall_status(Option<FirewallStatus>)`](crate::operation::describe_firewall::DescribeFirewallOutput::firewall_status): <p>Detailed information about the current status of a <code>Firewall</code>. You can retrieve this for a firewall by calling <code>DescribeFirewall</code> and providing the firewall name and ARN.</p> <p>The firewall status indicates a combined status. It indicates whether all subnets are up-to-date with the latest firewall configurations, which is based on the sync states config values, and also whether all subnets have their endpoints fully enabled, based on their sync states attachment values.</p>
12 /// - On failure, responds with [`SdkError<DescribeFirewallError>`](crate::operation::describe_firewall::DescribeFirewallError)
13 pub fn describe_firewall(&self) -> crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder {
14 crate::operation::describe_firewall::builders::DescribeFirewallFluentBuilder::new(self.handle.clone())
15 }
16}