aws_sdk_ssmcontacts/client/
list_pages_by_contact.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 [`ListPagesByContact`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`contact_id(impl Into<String>)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::contact_id) / [`set_contact_id(Option<String>)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::set_contact_id):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the contact you are retrieving engagements for.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token to continue to the next page of results.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of engagements to contact channels to list per page of results.</p><br>
10    /// - On success, responds with [`ListPagesByContactOutput`](crate::operation::list_pages_by_contact::ListPagesByContactOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_pages_by_contact::ListPagesByContactOutput::next_token): <p>The pagination token to continue to the next page of results.</p>
12    ///   - [`pages(Vec::<Page>)`](crate::operation::list_pages_by_contact::ListPagesByContactOutput::pages): <p>The list of engagements to a contact's contact channel.</p>
13    /// - On failure, responds with [`SdkError<ListPagesByContactError>`](crate::operation::list_pages_by_contact::ListPagesByContactError)
14    pub fn list_pages_by_contact(&self) -> crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder {
15        crate::operation::list_pages_by_contact::builders::ListPagesByContactFluentBuilder::new(self.handle.clone())
16    }
17}