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 [`GetEvidence`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`evidence_id(impl Into<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::evidence_id) / [`set_evidence_id(Option<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::set_evidence_id):<br>required: **true**<br><p>The unique identifier of the evidence item.</p><br>
    ///   - [`evidence_version(i32)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::evidence_version) / [`set_evidence_version(Option<i32>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::set_evidence_version):<br>required: **false**<br><p>Specifies the version. Omit to get the latest version.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::set_project):<br>required: **true**<br><p>The name of the project.</p><br>
    /// - On success, responds with [`GetEvidenceOutput`](crate::operation::get_evidence::GetEvidenceOutput) with field(s):
    ///   - [`evidence_id(String)`](crate::operation::get_evidence::GetEvidenceOutput::evidence_id): <p>The unique identifier of the evidence item.</p>
    ///   - [`version(i32)`](crate::operation::get_evidence::GetEvidenceOutput::version): <p>The version number of the evidence.</p>
    ///   - [`title(String)`](crate::operation::get_evidence::GetEvidenceOutput::title): <p>The human-readable title of the evidence.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_evidence::GetEvidenceOutput::description): <p>The optional description of the evidence.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_evidence::GetEvidenceOutput::created_at): <p>The timestamp when the evidence was created.</p>
    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_evidence::GetEvidenceOutput::updated_at): <p>The timestamp when the evidence was last updated.</p>
    ///   - [`status(Option<EvidenceStatus>)`](crate::operation::get_evidence::GetEvidenceOutput::status): <p>The lifecycle status of the evidence.</p>
    ///   - [`checksum(Option<String>)`](crate::operation::get_evidence::GetEvidenceOutput::checksum): <p>The checksum of the evidence content. Uploaded and Amazon S3 evidence use SHA-256. GitHub evidence uses SHA-1, because GitHub reports content hashes only in SHA-1.</p>
    ///   - [`reference(Option<String>)`](crate::operation::get_evidence::GetEvidenceOutput::reference): <p>The external reference URI if this is reference-based evidence.</p>
    ///   - [`linked_controls(Option<Vec::<ControlReferenceDetail>>)`](crate::operation::get_evidence::GetEvidenceOutput::linked_controls): <p>The controls this evidence is linked to.</p>
    ///   - [`uploaded_by(Option<String>)`](crate::operation::get_evidence::GetEvidenceOutput::uploaded_by): <p>The principal that supplied this evidence.</p>
    ///   - [`link_mode(Option<LinkMode>)`](crate::operation::get_evidence::GetEvidenceOutput::link_mode): <p>The auto-linking mode in effect for the evidence. AWS Assurance sets it when you add the evidence, or sets it to <code>AUTO</code> when you start a new analysis with <code>UpdateEvidence</code>.</p>
    ///   - [`purpose(Option<EvidencePurpose>)`](crate::operation::get_evidence::GetEvidenceOutput::purpose): <p>What the evidence is for. AWS Assurance sets the purpose when you add the evidence.</p>
    ///   - [`last_auto_analysis_started_at(Option<DateTime>)`](crate::operation::get_evidence::GetEvidenceOutput::last_auto_analysis_started_at): <p>The time when the most recent automatic linking analysis of this evidence version started. For the result, see <code>status</code>. This field is absent if no analysis of this version has started.</p>
    /// - On failure, responds with [`SdkError<GetEvidenceError>`](crate::operation::get_evidence::GetEvidenceError)
    pub fn get_evidence(&self) -> crate::operation::get_evidence::builders::GetEvidenceFluentBuilder {
        crate::operation::get_evidence::builders::GetEvidenceFluentBuilder::new(self.handle.clone())
    }
}