aws_sdk_inspector2/client/
get_code_security_scan.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 [`GetCodeSecurityScan`](crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource(CodeSecurityResource)`](crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder::resource) / [`set_resource(Option<CodeSecurityResource>)`](crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder::set_resource):<br>required: **true**<br><p>The resource identifier for the code repository that was scanned.</p><br>
7    ///   - [`scan_id(impl Into<String>)`](crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder::scan_id) / [`set_scan_id(Option<String>)`](crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder::set_scan_id):<br>required: **true**<br><p>The unique identifier of the scan to retrieve.</p><br>
8    /// - On success, responds with [`GetCodeSecurityScanOutput`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput) with field(s):
9    ///   - [`scan_id(Option<String>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::scan_id): <p>The unique identifier of the scan.</p>
10    ///   - [`resource(Option<CodeSecurityResource>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::resource): <p>The resource identifier for the code repository that was scanned.</p>
11    ///   - [`account_id(Option<String>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::account_id): <p>The Amazon Web Services account ID associated with the scan.</p>
12    ///   - [`status(Option<CodeScanStatus>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::status): <p>The current status of the scan.</p>
13    ///   - [`status_reason(Option<String>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::status_reason): <p>The reason for the current status of the scan.</p>
14    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::created_at): <p>The timestamp when the scan was created.</p>
15    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::updated_at): <p>The timestamp when the scan was last updated.</p>
16    ///   - [`last_commit_id(Option<String>)`](crate::operation::get_code_security_scan::GetCodeSecurityScanOutput::last_commit_id): <p>The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped.</p>
17    /// - On failure, responds with [`SdkError<GetCodeSecurityScanError>`](crate::operation::get_code_security_scan::GetCodeSecurityScanError)
18    pub fn get_code_security_scan(&self) -> crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder {
19        crate::operation::get_code_security_scan::builders::GetCodeSecurityScanFluentBuilder::new(self.handle.clone())
20    }
21}