aws_sdk_guardduty/client/create_threat_intel_set.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 [`CreateThreatIntelSet`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector of the GuardDuty account for which you want to create a <code>threatIntelSet</code>.</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 /// - [`name(impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_name):<br>required: **true**<br><p>A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.</p><br>
8 /// - [`format(ThreatIntelSetFormat)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::format) / [`set_format(Option<ThreatIntelSetFormat>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_format):<br>required: **true**<br><p>The format of the file that contains the ThreatIntelSet.</p><br>
9 /// - [`location(impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::location) / [`set_location(Option<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_location):<br>required: **true**<br><p>The URI of the file that contains the ThreatIntelSet.</p><br>
10 /// - [`activate(bool)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::activate) / [`set_activate(Option<bool>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_activate):<br>required: **true**<br><p>A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_client_token):<br>required: **false**<br><p>The idempotency token for the create request.</p><br>
12 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to be added to a new threat list resource.</p><br>
13 /// - [`expected_bucket_owner(impl Into<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::expected_bucket_owner) / [`set_expected_bucket_owner(Option<String>)`](crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::set_expected_bucket_owner):<br>required: **false**<br><p>The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the <b>location</b> parameter.</p><br>
14 /// - On success, responds with [`CreateThreatIntelSetOutput`](crate::operation::create_threat_intel_set::CreateThreatIntelSetOutput) with field(s):
15 /// - [`threat_intel_set_id(Option<String>)`](crate::operation::create_threat_intel_set::CreateThreatIntelSetOutput::threat_intel_set_id): <p>The ID of the ThreatIntelSet resource.</p>
16 /// - On failure, responds with [`SdkError<CreateThreatIntelSetError>`](crate::operation::create_threat_intel_set::CreateThreatIntelSetError)
17 pub fn create_threat_intel_set(&self) -> crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder {
18 crate::operation::create_threat_intel_set::builders::CreateThreatIntelSetFluentBuilder::new(self.handle.clone())
19 }
20}