aws_sdk_eventbridge/client/list_partner_event_sources.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 [`ListPartnerEventSources`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name_prefix(impl Into<String>)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::name_prefix) / [`set_name_prefix(Option<String>)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::set_name_prefix):<br>required: **true**<br><p>If you specify this, the results are limited to only those partner event sources that start with the string you specify.</p><br>
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned by a previous call, which you can use to retrieve the next set of results.</p> <p>The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.</p> <p>Using an expired pagination token results in an <code>HTTP 400 InvalidToken</code> error.</p><br>
8 /// - [`limit(i32)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::set_limit):<br>required: **false**<br><p>pecifying this limits the number of results returned by this operation. The operation also returns a NextToken which you can use in a subsequent operation to retrieve the next set of results.</p><br>
9 /// - On success, responds with [`ListPartnerEventSourcesOutput`](crate::operation::list_partner_event_sources::ListPartnerEventSourcesOutput) with field(s):
10 /// - [`partner_event_sources(Option<Vec::<PartnerEventSource>>)`](crate::operation::list_partner_event_sources::ListPartnerEventSourcesOutput::partner_event_sources): <p>The list of partner event sources returned by the operation.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_partner_event_sources::ListPartnerEventSourcesOutput::next_token): <p>A token indicating there are more results available. If there are no more results, no token is included in the response.</p> <p>The value of <code>nextToken</code> is a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.</p> <p>Using an expired pagination token results in an <code>HTTP 400 InvalidToken</code> error.</p>
12 /// - On failure, responds with [`SdkError<ListPartnerEventSourcesError>`](crate::operation::list_partner_event_sources::ListPartnerEventSourcesError)
13 pub fn list_partner_event_sources(&self) -> crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder {
14 crate::operation::list_partner_event_sources::builders::ListPartnerEventSourcesFluentBuilder::new(self.handle.clone())
15 }
16}