aws_sdk_guardduty/client/
get_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 [`GetThreatIntelSet`](crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector that is associated with the threatIntelSet.</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    ///   - [`threat_intel_set_id(impl Into<String>)`](crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder::threat_intel_set_id) / [`set_threat_intel_set_id(Option<String>)`](crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder::set_threat_intel_set_id):<br>required: **true**<br><p>The unique ID of the threatIntelSet that you want to get.</p><br>
8    /// - On success, responds with [`GetThreatIntelSetOutput`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput) with field(s):
9    ///   - [`name(Option<String>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::name): <p>A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.</p>
10    ///   - [`format(Option<ThreatIntelSetFormat>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::format): <p>The format of the threatIntelSet.</p>
11    ///   - [`location(Option<String>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::location): <p>The URI of the file that contains the ThreatIntelSet.</p>
12    ///   - [`status(Option<ThreatIntelSetStatus>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::status): <p>The status of threatIntelSet file uploaded.</p>
13    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::tags): <p>The tags of the threat list resource.</p>
14    ///   - [`expected_bucket_owner(Option<String>)`](crate::operation::get_threat_intel_set::GetThreatIntelSetOutput::expected_bucket_owner): <p>The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the <b>location</b> parameter. This field appears in the response only if it was provided during ThreatIntelSet creation or update.</p>
15    /// - On failure, responds with [`SdkError<GetThreatIntelSetError>`](crate::operation::get_threat_intel_set::GetThreatIntelSetError)
16    pub fn get_threat_intel_set(&self) -> crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder {
17        crate::operation::get_threat_intel_set::builders::GetThreatIntelSetFluentBuilder::new(self.handle.clone())
18    }
19}