aws_sdk_route53/client/list_hosted_zones_by_vpc.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 [`ListHostedZonesByVPC`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`vpc_id(impl Into<String>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the Amazon VPC that you want to list hosted zones for.</p><br>
7 /// - [`vpc_region(VpcRegion)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::vpc_region) / [`set_vpc_region(Option<VpcRegion>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::set_vpc_region):<br>required: **true**<br><p>For the Amazon VPC that you specified for <code>VPCId</code>, the Amazon Web Services Region that you created the VPC in.</p><br>
8 /// - [`max_items(i32)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::set_max_items):<br>required: **false**<br><p>(Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If the specified VPC is associated with more than <code>MaxItems</code> hosted zones, the response includes a <code>NextToken</code> element. <code>NextToken</code> contains an encrypted token that identifies the first hosted zone that Route 53 will return if you submit another request.</p><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous response included a <code>NextToken</code> element, the specified VPC is associated with more hosted zones. To get more hosted zones, submit another <code>ListHostedZonesByVPC</code> request.</p> <p>For the value of <code>NextToken</code>, specify the value of <code>NextToken</code> from the previous response.</p> <p>If the previous response didn't include a <code>NextToken</code> element, there are no more hosted zones to get.</p><br>
10 /// - On success, responds with [`ListHostedZonesByVpcOutput`](crate::operation::list_hosted_zones_by_vpc::ListHostedZonesByVpcOutput) with field(s):
11 /// - [`hosted_zone_summaries(Vec::<HostedZoneSummary>)`](crate::operation::list_hosted_zones_by_vpc::ListHostedZonesByVpcOutput::hosted_zone_summaries): <p>A list that contains one <code>HostedZoneSummary</code> element for each hosted zone that the specified Amazon VPC is associated with. Each <code>HostedZoneSummary</code> element contains the hosted zone name and ID, and information about who owns the hosted zone.</p>
12 /// - [`max_items(i32)`](crate::operation::list_hosted_zones_by_vpc::ListHostedZonesByVpcOutput::max_items): <p>The value that you specified for <code>MaxItems</code> in the most recent <code>ListHostedZonesByVPC</code> request.</p>
13 /// - [`next_token(Option<String>)`](crate::operation::list_hosted_zones_by_vpc::ListHostedZonesByVpcOutput::next_token): <p>The value that you will use for <code>NextToken</code> in the next <code>ListHostedZonesByVPC</code> request.</p>
14 /// - On failure, responds with [`SdkError<ListHostedZonesByVPCError>`](crate::operation::list_hosted_zones_by_vpc::ListHostedZonesByVPCError)
15 pub fn list_hosted_zones_by_vpc(&self) -> crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder {
16 crate::operation::list_hosted_zones_by_vpc::builders::ListHostedZonesByVPCFluentBuilder::new(self.handle.clone())
17 }
18}