1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartImageScan`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`registry_id(impl Into<String>)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the repository in which to start an image scan request. If you do not specify a registry, the default registry is assumed.</p><br>
    ///   - [`repository_name(impl Into<String>)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository that contains the images to scan.</p><br>
    ///   - [`image_id(ImageIdentifier)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::image_id) / [`set_image_id(Option<ImageIdentifier>)`](crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::set_image_id):<br>required: **true**<br><p>An object with identifying information for an image in an Amazon ECR repository.</p><br>
    /// - On success, responds with [`StartImageScanOutput`](crate::operation::start_image_scan::StartImageScanOutput) with field(s):
    ///   - [`registry_id(Option<String>)`](crate::operation::start_image_scan::StartImageScanOutput::registry_id): <p>The registry ID associated with the request.</p>
    ///   - [`repository_name(Option<String>)`](crate::operation::start_image_scan::StartImageScanOutput::repository_name): <p>The repository name associated with the request.</p>
    ///   - [`image_id(Option<ImageIdentifier>)`](crate::operation::start_image_scan::StartImageScanOutput::image_id): <p>An object with identifying information for an image in an Amazon ECR repository.</p>
    ///   - [`image_scan_status(Option<ImageScanStatus>)`](crate::operation::start_image_scan::StartImageScanOutput::image_scan_status): <p>The current state of the scan.</p>
    /// - On failure, responds with [`SdkError<StartImageScanError>`](crate::operation::start_image_scan::StartImageScanError)
    pub fn start_image_scan(&self) -> crate::operation::start_image_scan::builders::StartImageScanFluentBuilder {
        crate::operation::start_image_scan::builders::StartImageScanFluentBuilder::new(self.handle.clone())
    }
}