1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeVpnGateways`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`filters(Filter)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters.</p> <ul>  <li>   <p><code>amazon-side-asn</code> - The Autonomous System Number (ASN) for the Amazon side of the gateway.</p></li>  <li>   <p><code>attachment.state</code> - The current state of the attachment between the gateway and the VPC (<code>attaching</code> | <code>attached</code> | <code>detaching</code> | <code>detached</code>).</p></li>  <li>   <p><code>attachment.vpc-id</code> - The ID of an attached VPC.</p></li>  <li>   <p><code>availability-zone</code> - The Availability Zone for the virtual private gateway (if applicable).</p></li>  <li>   <p><code>state</code> - The state of the virtual private gateway (<code>pending</code> | <code>available</code> | <code>deleting</code> | <code>deleted</code>).</p></li>  <li>   <p><code>tag</code>:<key>     - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key      <code>Owner</code> and the value      <code>TeamA</code>, specify      <code>tag:Owner</code> for the filter name and      <code>TeamA</code> for the filter value.    </key></p></li>  <li>   <p><code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p></li>  <li>   <p><code>type</code> - The type of virtual private gateway. Currently the only supported type is <code>ipsec.1</code>.</p></li>  <li>   <p><code>vpn-gateway-id</code> - The ID of the virtual private gateway.</p></li> </ul><br>
    ///   - [`vpn_gateway_ids(impl Into<String>)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::vpn_gateway_ids) / [`set_vpn_gateway_ids(Option<Vec::<String>>)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::set_vpn_gateway_ids):<br>required: **false**<br><p>One or more virtual private gateway IDs.</p> <p>Default: Describes all your virtual private gateways.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    /// - On success, responds with [`DescribeVpnGatewaysOutput`](crate::operation::describe_vpn_gateways::DescribeVpnGatewaysOutput) with field(s):
    ///   - [`vpn_gateways(Option<Vec::<VpnGateway>>)`](crate::operation::describe_vpn_gateways::DescribeVpnGatewaysOutput::vpn_gateways): <p>Information about one or more virtual private gateways.</p>
    /// - On failure, responds with [`SdkError<DescribeVpnGatewaysError>`](crate::operation::describe_vpn_gateways::DescribeVpnGatewaysError)
    pub fn describe_vpn_gateways(&self) -> crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder {
        crate::operation::describe_vpn_gateways::builders::DescribeVpnGatewaysFluentBuilder::new(self.handle.clone())
    }
}