aws_sdk_vpclattice/client/
list_target_groups.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTargetGroups`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`max_results(i32)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>A pagination token for the next page of results.</p><br>
    ///   - [`vpc_identifier(impl Into<String>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::vpc_identifier) / [`set_vpc_identifier(Option<String>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::set_vpc_identifier):<br>required: **false**<br><p>The ID or Amazon Resource Name (ARN) of the VPC.</p><br>
    ///   - [`target_group_type(TargetGroupType)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::target_group_type) / [`set_target_group_type(Option<TargetGroupType>)`](crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::set_target_group_type):<br>required: **false**<br><p>The target group type.</p><br>
    /// - On success, responds with [`ListTargetGroupsOutput`](crate::operation::list_target_groups::ListTargetGroupsOutput) with field(s):
    ///   - [`items(Option<Vec::<TargetGroupSummary>>)`](crate::operation::list_target_groups::ListTargetGroupsOutput::items): <p>Information about the target groups.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_target_groups::ListTargetGroupsOutput::next_token): <p>If there are additional results, a pagination token for the next page of results.</p>
    /// - On failure, responds with [`SdkError<ListTargetGroupsError>`](crate::operation::list_target_groups::ListTargetGroupsError)
    pub fn list_target_groups(&self) -> crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder {
        crate::operation::list_target_groups::builders::ListTargetGroupsFluentBuilder::new(self.handle.clone())
    }
}