aws_sdk_frauddetector/client/put_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 [`PutDetector`](crate::operation::put_detector::builders::PutDetectorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::set_detector_id):<br>required: **true**<br><p>The detector ID.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::set_description):<br>required: **false**<br><p>The description of the detector.</p><br>
8 /// - [`event_type_name(impl Into<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::event_type_name) / [`set_event_type_name(Option<String>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::set_event_type_name):<br>required: **true**<br><p>The name of the event type.</p><br>
9 /// - [`tags(Tag)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::put_detector::builders::PutDetectorFluentBuilder::set_tags):<br>required: **false**<br><p>A collection of key and value pairs.</p><br>
10 /// - On success, responds with [`PutDetectorOutput`](crate::operation::put_detector::PutDetectorOutput)
11 /// - On failure, responds with [`SdkError<PutDetectorError>`](crate::operation::put_detector::PutDetectorError)
12 pub fn put_detector(&self) -> crate::operation::put_detector::builders::PutDetectorFluentBuilder {
13 crate::operation::put_detector::builders::PutDetectorFluentBuilder::new(self.handle.clone())
14 }
15}