aws_sdk_resiliencehub/client/
list_app_component_compliances.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 [`ListAppComponentCompliances`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::set_next_token):<br>required: **false**<br><p>Null, or the token from a previous call to get the next set of results.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::set_max_results):<br>required: **false**<br><p>Maximum number of results to include in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that the remaining results can be retrieved.</p><br>
9    ///   - [`assessment_arn(impl Into<String>)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::assessment_arn) / [`set_assessment_arn(Option<String>)`](crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::set_assessment_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app-assessment/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p><br>
10    /// - On success, responds with [`ListAppComponentCompliancesOutput`](crate::operation::list_app_component_compliances::ListAppComponentCompliancesOutput) with field(s):
11    ///   - [`component_compliances(Vec::<AppComponentCompliance>)`](crate::operation::list_app_component_compliances::ListAppComponentCompliancesOutput::component_compliances): <p>The compliances for an Resilience Hub Application Component, returned as an object. This object contains the names of the Application Components, compliances, costs, resiliency scores, outage scores, and more.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_app_component_compliances::ListAppComponentCompliancesOutput::next_token): <p>Token for the next set of results, or null if there are no more results.</p>
13    /// - On failure, responds with [`SdkError<ListAppComponentCompliancesError>`](crate::operation::list_app_component_compliances::ListAppComponentCompliancesError)
14    pub fn list_app_component_compliances(
15        &self,
16    ) -> crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder {
17        crate::operation::list_app_component_compliances::builders::ListAppComponentCompliancesFluentBuilder::new(self.handle.clone())
18    }
19}