aws_sdk_lightsail/client/
get_operations_for_resource.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 [`GetOperationsForResource`](crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_name(impl Into<String>)`](crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder::resource_name) / [`set_resource_name(Option<String>)`](crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder::set_resource_name):<br>required: **true**<br><p>The name of the resource for which you are requesting information.</p><br>
7    ///   - [`page_token(impl Into<String>)`](crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder::page_token) / [`set_page_token(Option<String>)`](crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder::set_page_token):<br>required: **false**<br><p>The token to advance to the next page of results from your request.</p> <p>To get a page token, perform an initial <code>GetOperationsForResource</code> request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.</p><br>
8    /// - On success, responds with [`GetOperationsForResourceOutput`](crate::operation::get_operations_for_resource::GetOperationsForResourceOutput) with field(s):
9    ///   - [`operations(Option<Vec::<Operation>>)`](crate::operation::get_operations_for_resource::GetOperationsForResourceOutput::operations): <p>An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.</p>
10    ///   - [`next_page_count(Option<String>)`](crate::operation::get_operations_for_resource::GetOperationsForResourceOutput::next_page_count): <p>(Discontinued) Returns the number of pages of results that remain.</p><note>  <p>In releases prior to June 12, 2017, this parameter returned <code>null</code> by the API. It is now discontinued, and the API returns the <code>next page token</code> parameter instead.</p> </note>
11    ///   - [`next_page_token(Option<String>)`](crate::operation::get_operations_for_resource::GetOperationsForResourceOutput::next_page_token): <p>The token to advance to the next page of results from your request.</p> <p>A next page token is not returned if there are no more results to display.</p> <p>To get the next page of results, perform another <code>GetOperationsForResource</code> request and specify the next page token using the <code>pageToken</code> parameter.</p>
12    /// - On failure, responds with [`SdkError<GetOperationsForResourceError>`](crate::operation::get_operations_for_resource::GetOperationsForResourceError)
13    pub fn get_operations_for_resource(&self) -> crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder {
14        crate::operation::get_operations_for_resource::builders::GetOperationsForResourceFluentBuilder::new(self.handle.clone())
15    }
16}