Struct aws_sdk_inspector2::operation::disable::builders::DisableFluentBuilder
source · pub struct DisableFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to Disable
.
Disables Amazon Inspector scans for one or more Amazon Web Services accounts. Disabling all scan types in an account disables the Amazon Inspector service.
Implementations§
source§impl DisableFluentBuilder
impl DisableFluentBuilder
sourcepub fn as_input(&self) -> &DisableInputBuilder
pub fn as_input(&self) -> &DisableInputBuilder
Access the Disable as a reference.
sourcepub async fn send(
self
) -> Result<DisableOutput, SdkError<DisableError, HttpResponse>>
pub async fn send( self ) -> Result<DisableOutput, SdkError<DisableError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DisableOutput, DisableError, Self>
pub fn customize( self ) -> CustomizableOperation<DisableOutput, DisableError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to accountIds
.
To override the contents of this collection use set_account_ids
.
An array of account IDs you want to disable Amazon Inspector scans for.
sourcepub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
An array of account IDs you want to disable Amazon Inspector scans for.
sourcepub fn get_account_ids(&self) -> &Option<Vec<String>>
pub fn get_account_ids(&self) -> &Option<Vec<String>>
An array of account IDs you want to disable Amazon Inspector scans for.
sourcepub fn resource_types(self, input: ResourceScanType) -> Self
pub fn resource_types(self, input: ResourceScanType) -> Self
Appends an item to resourceTypes
.
To override the contents of this collection use set_resource_types
.
The resource scan types you want to disable.
sourcepub fn set_resource_types(self, input: Option<Vec<ResourceScanType>>) -> Self
pub fn set_resource_types(self, input: Option<Vec<ResourceScanType>>) -> Self
The resource scan types you want to disable.
sourcepub fn get_resource_types(&self) -> &Option<Vec<ResourceScanType>>
pub fn get_resource_types(&self) -> &Option<Vec<ResourceScanType>>
The resource scan types you want to disable.
Trait Implementations§
source§impl Clone for DisableFluentBuilder
impl Clone for DisableFluentBuilder
source§fn clone(&self) -> DisableFluentBuilder
fn clone(&self) -> DisableFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more