aws_sdk_guardduty/client/
get_threat_entity_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 [`GetThreatEntitySet`](crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector associated with the threat entity set resource.</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_entity_set_id(impl Into<String>)`](crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder::threat_entity_set_id) / [`set_threat_entity_set_id(Option<String>)`](crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder::set_threat_entity_set_id):<br>required: **true**<br><p>The unique ID that helps GuardDuty identify the threat entity set.</p><br>
8    /// - On success, responds with [`GetThreatEntitySetOutput`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput) with field(s):
9    ///   - [`name(Option<String>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::name): <p>The name of the threat entity set associated with the specified <code>threatEntitySetId</code>.</p>
10    ///   - [`format(Option<ThreatEntitySetFormat>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::format): <p>The format of the file that contains the threat entity set.</p>
11    ///   - [`location(Option<String>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::location): <p>The URI of the file that contains the threat entity set.</p>
12    ///   - [`expected_bucket_owner(Option<String>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::expected_bucket_owner): <p>The Amazon Web Services account ID that owns the Amazon S3 bucket specified in the <b>location</b> parameter.</p>
13    ///   - [`status(Option<ThreatEntitySetStatus>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::status): <p>The status of the associated threat entity set.</p>
14    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::tags): <p>The tags associated with the threat entity set resource.</p>
15    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::created_at): <p>The timestamp when the associated threat entity set was created.</p>
16    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::updated_at): <p>The timestamp when the associated threat entity set was updated.</p>
17    ///   - [`error_details(Option<String>)`](crate::operation::get_threat_entity_set::GetThreatEntitySetOutput::error_details): <p>The error details when the status is shown as <code>ERROR</code>.</p>
18    /// - On failure, responds with [`SdkError<GetThreatEntitySetError>`](crate::operation::get_threat_entity_set::GetThreatEntitySetError)
19    pub fn get_threat_entity_set(&self) -> crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder {
20        crate::operation::get_threat_entity_set::builders::GetThreatEntitySetFluentBuilder::new(self.handle.clone())
21    }
22}