aws_sdk_accessanalyzer/client/start_resource_scan.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`StartResourceScan`](crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`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>
/// - [`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>
/// - [`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>
/// - On success, responds with [`StartResourceScanOutput`](crate::operation::start_resource_scan::StartResourceScanOutput)
/// - On failure, responds with [`SdkError<StartResourceScanError>`](crate::operation::start_resource_scan::StartResourceScanError)
pub fn start_resource_scan(&self) -> crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder {
crate::operation::start_resource_scan::builders::StartResourceScanFluentBuilder::new(self.handle.clone())
}
}