aws_sdk_guardduty/client/update_detector.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 [`UpdateDetector`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector to update.</p> <p>To find the <code>detectorId</code> in the current Region, see the Settings page in the GuardDuty console, or run the <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html">ListDetectors</a> API.</p><br>
7 /// - [`enable(bool)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::enable) / [`set_enable(Option<bool>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::set_enable):<br>required: **false**<br><p>Specifies whether the detector is enabled or not enabled.</p><br>
8 /// - [`finding_publishing_frequency(FindingPublishingFrequency)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::finding_publishing_frequency) / [`set_finding_publishing_frequency(Option<FindingPublishingFrequency>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::set_finding_publishing_frequency):<br>required: **false**<br><p>An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.</p><br>
9 /// - [`data_sources(DataSourceConfigurations)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::data_sources) / [`set_data_sources(Option<DataSourceConfigurations>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::set_data_sources):<br>required: **false**<br><p>Describes which data sources will be updated.</p> <p>There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_regions.html">Regions and endpoints</a>.</p><br>
10 /// - [`features(DetectorFeatureConfiguration)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::features) / [`set_features(Option<Vec::<DetectorFeatureConfiguration>>)`](crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::set_features):<br>required: **false**<br><p>Provides the features that will be updated for the detector.</p><br>
11 /// - On success, responds with [`UpdateDetectorOutput`](crate::operation::update_detector::UpdateDetectorOutput)
12 /// - On failure, responds with [`SdkError<UpdateDetectorError>`](crate::operation::update_detector::UpdateDetectorError)
13 pub fn update_detector(&self) -> crate::operation::update_detector::builders::UpdateDetectorFluentBuilder {
14 crate::operation::update_detector::builders::UpdateDetectorFluentBuilder::new(self.handle.clone())
15 }
16}