aws_sdk_synthetics/client/get_canary_runs.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 [`GetCanaryRuns`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`name(impl Into<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::set_name):<br>required: **true**<br><p>The name of the canary that you want to see runs for.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::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>GetCanaryRuns</code> operation to retrieve the next set of results.</p><note> <p>When auto retry is enabled for the canary, the first subsequent retry is suffixed with *1 indicating its the first retry and the next subsequent try is suffixed with *2.</p> </note><br>
9 /// - [`max_results(i32)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::set_max_results):<br>required: **false**<br><p>Specify this parameter to limit how many runs are returned each time you use the <code>GetCanaryRuns</code> operation. If you omit this parameter, the default of 100 is used.</p><br>
10 /// - [`dry_run_id(impl Into<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::dry_run_id) / [`set_dry_run_id(Option<String>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::set_dry_run_id):<br>required: **false**<br><p>The DryRunId associated with an existing canary’s dry run. You can use this DryRunId to retrieve information about the dry run.</p><br>
11 /// - [`run_type(RunType)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::run_type) / [`set_run_type(Option<RunType>)`](crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::set_run_type):<br>required: **false**<br><ul> <li> <p>When you provide <code>RunType=CANARY_RUN</code> and <code>dryRunId</code>, you will get an exception</p></li> <li> <p>When a value is not provided for <code>RunType</code>, the default value is <code>CANARY_RUN</code></p></li> <li> <p>When <code>CANARY_RUN</code> is provided, all canary runs excluding dry runs are returned</p></li> <li> <p>When <code>DRY_RUN</code> is provided, all dry runs excluding canary runs are returned</p></li> </ul><br>
12 /// - On success, responds with [`GetCanaryRunsOutput`](crate::operation::get_canary_runs::GetCanaryRunsOutput) with field(s):
13 /// - [`canary_runs(Option<Vec::<CanaryRun>>)`](crate::operation::get_canary_runs::GetCanaryRunsOutput::canary_runs): <p>An array of structures. Each structure contains the details of one of the retrieved canary runs.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::get_canary_runs::GetCanaryRunsOutput::next_token): <p>A token that indicates that there is more data available. You can use this token in a subsequent <code>GetCanaryRuns</code> operation to retrieve the next set of results.</p>
15 /// - On failure, responds with [`SdkError<GetCanaryRunsError>`](crate::operation::get_canary_runs::GetCanaryRunsError)
16 pub fn get_canary_runs(&self) -> crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder {
17 crate::operation::get_canary_runs::builders::GetCanaryRunsFluentBuilder::new(self.handle.clone())
18 }
19}