aws_sdk_auditmanager/client/get_assessment.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 [`GetAssessment`](crate::operation::get_assessment::builders::GetAssessmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`assessment_id(impl Into<String>)`](crate::operation::get_assessment::builders::GetAssessmentFluentBuilder::assessment_id) / [`set_assessment_id(Option<String>)`](crate::operation::get_assessment::builders::GetAssessmentFluentBuilder::set_assessment_id):<br>required: **true**<br><p>The unique identifier for the assessment.</p><br>
7 /// - On success, responds with [`GetAssessmentOutput`](crate::operation::get_assessment::GetAssessmentOutput) with field(s):
8 /// - [`assessment(Option<Assessment>)`](crate::operation::get_assessment::GetAssessmentOutput::assessment): <p>An entity that defines the scope of audit evidence collected by Audit Manager. An Audit Manager assessment is an implementation of an Audit Manager framework.</p>
9 /// - [`user_role(Option<Role>)`](crate::operation::get_assessment::GetAssessmentOutput::user_role): <p>The wrapper that contains the Audit Manager role information of the current user. This includes the role type and IAM Amazon Resource Name (ARN).</p>
10 /// - On failure, responds with [`SdkError<GetAssessmentError>`](crate::operation::get_assessment::GetAssessmentError)
11 pub fn get_assessment(&self) -> crate::operation::get_assessment::builders::GetAssessmentFluentBuilder {
12 crate::operation::get_assessment::builders::GetAssessmentFluentBuilder::new(self.handle.clone())
13 }
14}