aws_sdk_synthetics/client/
describe_canaries_last_run.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 [`DescribeCanariesLastRun`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::set_next_token):<br>required: **false**<br><p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeCanariesLastRun</code> operation to retrieve the next set of results.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::set_max_results):<br>required: **false**<br><p>Specify this parameter to limit how many runs are returned each time you use the <code>DescribeLastRun</code> operation. If you omit this parameter, the default of 100 is used.</p><br>
9    ///   - [`names(impl Into<String>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::names) / [`set_names(Option<Vec::<String>>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::set_names):<br>required: **false**<br><p>Use this parameter to return only canaries that match the names that you specify here. You can specify as many as five canary names.</p> <p>If you specify this parameter, the operation is successful only if you have authorization to view all the canaries that you specify in your request. If you do not have permission to view any of the canaries, the request fails with a 403 response.</p> <p>You are required to use the <code>Names</code> parameter if you are logged on to a user or role that has an IAM policy that restricts which canaries that you are allowed to view. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Restricted.html"> Limiting a user to viewing specific canaries</a>.</p><br>
10    ///   - [`browser_type(BrowserType)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::browser_type) / [`set_browser_type(Option<BrowserType>)`](crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::set_browser_type):<br>required: **false**<br><p>The type of browser to use for the canary run.</p><br>
11    /// - On success, responds with [`DescribeCanariesLastRunOutput`](crate::operation::describe_canaries_last_run::DescribeCanariesLastRunOutput) with field(s):
12    ///   - [`canaries_last_run(Option<Vec::<CanaryLastRun>>)`](crate::operation::describe_canaries_last_run::DescribeCanariesLastRunOutput::canaries_last_run): <p>An array that contains the information from the most recent run of each canary.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::describe_canaries_last_run::DescribeCanariesLastRunOutput::next_token): <p>A token that indicates that there is more data available. You can use this token in a subsequent <code>DescribeCanariesLastRun</code> operation to retrieve the next set of results.</p>
14    /// - On failure, responds with [`SdkError<DescribeCanariesLastRunError>`](crate::operation::describe_canaries_last_run::DescribeCanariesLastRunError)
15    pub fn describe_canaries_last_run(&self) -> crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder {
16        crate::operation::describe_canaries_last_run::builders::DescribeCanariesLastRunFluentBuilder::new(self.handle.clone())
17    }
18}