aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAnnotation`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_project):<br>required: **true**<br><p>The name of the project.</p><br>
    ///   - [`framework(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::framework) / [`set_framework(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_framework):<br>required: **true**<br><p>The name of the compliance framework.</p><br>
    ///   - [`framework_version(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::framework_version) / [`set_framework_version(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_framework_version):<br>required: **true**<br><p>The version of the compliance framework.</p><br>
    ///   - [`control_id(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::control_id) / [`set_control_id(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_control_id):<br>required: **true**<br><p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p><br>
    ///   - [`assessment_id(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::assessment_id) / [`set_assessment_id(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_assessment_id):<br>required: **true**<br><p>The identifier of the assessment.</p><br>
    ///   - [`evidence_id(impl Into<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::evidence_id) / [`set_evidence_id(Option<String>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_evidence_id):<br>required: **true**<br><p>The identifier of the evidence the annotation applies to.</p><br>
    ///   - [`evidence_version(i32)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::evidence_version) / [`set_evidence_version(Option<i32>)`](crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::set_evidence_version):<br>required: **true**<br><p>The version number of the evidence the annotation applies to.</p><br>
    /// - On success, responds with [`GetAnnotationOutput`](crate::operation::get_annotation::GetAnnotationOutput) with field(s):
    ///   - [`environment_arn(String)`](crate::operation::get_annotation::GetAnnotationOutput::environment_arn): <p>The ARN of this governance environment.</p>
    ///   - [`project(String)`](crate::operation::get_annotation::GetAnnotationOutput::project): <p>The name of the project.</p>
    ///   - [`framework(String)`](crate::operation::get_annotation::GetAnnotationOutput::framework): <p>The name of the compliance framework.</p>
    ///   - [`framework_version(String)`](crate::operation::get_annotation::GetAnnotationOutput::framework_version): <p>The version of the compliance framework.</p>
    ///   - [`control_id(String)`](crate::operation::get_annotation::GetAnnotationOutput::control_id): <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    ///   - [`assessment_id(String)`](crate::operation::get_annotation::GetAnnotationOutput::assessment_id): <p>The identifier of the assessment.</p>
    ///   - [`evidence_id(String)`](crate::operation::get_annotation::GetAnnotationOutput::evidence_id): <p>The identifier of the evidence the annotation applies to.</p>
    ///   - [`evidence_version(i32)`](crate::operation::get_annotation::GetAnnotationOutput::evidence_version): <p>The version number of the evidence the annotation applies to.</p>
    ///   - [`notes(Option<String>)`](crate::operation::get_annotation::GetAnnotationOutput::notes): <p>The free-text reviewer note attached to the evidence.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_annotation::GetAnnotationOutput::created_at): <p>The timestamp when the annotation was created.</p>
    /// - On failure, responds with [`SdkError<GetAnnotationError>`](crate::operation::get_annotation::GetAnnotationError)
    pub fn get_annotation(&self) -> crate::operation::get_annotation::builders::GetAnnotationFluentBuilder {
        crate::operation::get_annotation::builders::GetAnnotationFluentBuilder::new(self.handle.clone())
    }
}