aws_sdk_ec2/client/
describe_vpc_classic_link.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 [`DescribeVpcClassicLink`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::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>
7    ///   - [`vpc_ids(impl Into<String>)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::vpc_ids) / [`set_vpc_ids(Option<Vec::<String>>)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::set_vpc_ids):<br>required: **false**<br><p>The VPCs for which you want to describe the ClassicLink status.</p><br>
8    ///   - [`filters(Filter)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::set_filters):<br>required: **false**<br><p>The filters.</p> <ul>  <li>   <p><code>is-classic-link-enabled</code> - Whether the VPC is enabled for ClassicLink (<code>true</code> | <code>false</code>).</p></li>  <li>   <p><code>tag</code> - 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.</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> </ul><br>
9    /// - On success, responds with [`DescribeVpcClassicLinkOutput`](crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkOutput) with field(s):
10    ///   - [`vpcs(Option<Vec::<VpcClassicLink>>)`](crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkOutput::vpcs): <p>The ClassicLink status of the VPCs.</p>
11    /// - On failure, responds with [`SdkError<DescribeVpcClassicLinkError>`](crate::operation::describe_vpc_classic_link::DescribeVpcClassicLinkError)
12    pub fn describe_vpc_classic_link(&self) -> crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder {
13        crate::operation::describe_vpc_classic_link::builders::DescribeVpcClassicLinkFluentBuilder::new(self.handle.clone())
14    }
15}