aws_sdk_ec2/client/describe_secondary_subnets.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 [`DescribeSecondarySubnets`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`dry_run(bool)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::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>
8 /// - [`filters(Filter)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::set_filters):<br>required: **false**<br><p>The filters.</p> <ul> <li> <p><code>ipv4-cidr-block-association.association-id</code> - The association ID for an IPv4 CIDR block associated with the secondary subnet.</p></li> <li> <p><code>ipv4-cidr-block-association.cidr-block</code> - An IPv4 CIDR block associated with the secondary subnet.</p></li> <li> <p><code>ipv4-cidr-block-association.state</code> - The state of an IPv4 CIDR block associated with the secondary subnet.</p></li> <li> <p><code>owner-id</code> - The ID of the Amazon Web Services account that owns the secondary subnet.</p></li> <li> <p><code>secondary-network-id</code> - The ID of the secondary network.</p></li> <li> <p><code>secondary-network-type</code> - The type of the secondary network (<code>rdma</code>).</p></li> <li> <p><code>secondary-subnet-id</code> - The ID of the secondary subnet.</p></li> <li> <p><code>secondary-subnet-arn</code> - The ARN of the secondary subnet.</p></li> <li> <p><code>state</code> - The state of the secondary subnet (<code>create-in-progress</code> | <code>create-complete</code> | <code>create-failed</code> | <code>delete-in-progress</code> | <code>delete-complete</code> | <code>delete-failed</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> </ul><br>
9 /// - [`max_results(i32)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p><br>
10 /// - [`next_token(impl Into<String>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next page of results.</p><br>
11 /// - [`secondary_subnet_ids(impl Into<String>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::secondary_subnet_ids) / [`set_secondary_subnet_ids(Option<Vec::<String>>)`](crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::set_secondary_subnet_ids):<br>required: **false**<br><p>The IDs of the secondary subnets.</p><br>
12 /// - On success, responds with [`DescribeSecondarySubnetsOutput`](crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsOutput) with field(s):
13 /// - [`secondary_subnets(Option<Vec::<SecondarySubnet>>)`](crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsOutput::secondary_subnets): <p>Information about the secondary subnets.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsOutput::next_token): <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
15 /// - On failure, responds with [`SdkError<DescribeSecondarySubnetsError>`](crate::operation::describe_secondary_subnets::DescribeSecondarySubnetsError)
16 pub fn describe_secondary_subnets(&self) -> crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder {
17 crate::operation::describe_secondary_subnets::builders::DescribeSecondarySubnetsFluentBuilder::new(self.handle.clone())
18 }
19}