aws_sdk_accessanalyzer/client/
start_resource_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 [`StartResourceScan`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`analyzer_arn(impl Into<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::analyzer_arn) / [`set_analyzer_arn(Option<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::set_analyzer_arn):<br>required: **true**<br><p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of the analyzer</a> to use to scan the policies applied to the specified resource.</p><br>
7    ///   - [`resource_arn(impl Into<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The ARN of the resource to scan.</p><br>
8    ///   - [`resource_owner_account(impl Into<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::resource_owner_account) / [`set_resource_owner_account(Option<String>)`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::set_resource_owner_account):<br>required: **false**<br><p>The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.</p><br>
9    /// - On success, responds with [`StartResourceScanOutput`](crate::operation::start_resource_scan::StartResourceScanOutput)
10    /// - On failure, responds with [`SdkError<StartResourceScanError>`](crate::operation::start_resource_scan::StartResourceScanError)
11    pub fn start_resource_scan(&self) -> crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder {
12        crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::new(self.handle.clone())
13    }
14}