aws_sdk_guardduty/client/
describe_publishing_destination.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 [`DescribePublishingDestination`](crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`detector_id(impl Into<String>)`](crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the detector associated with the publishing destination to retrieve.</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    ///   - [`destination_id(impl Into<String>)`](crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder::destination_id) / [`set_destination_id(Option<String>)`](crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder::set_destination_id):<br>required: **true**<br><p>The ID of the publishing destination to retrieve.</p><br>
8    /// - On success, responds with [`DescribePublishingDestinationOutput`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput) with field(s):
9    ///   - [`destination_id(Option<String>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::destination_id): <p>The ID of the publishing destination.</p>
10    ///   - [`destination_type(Option<DestinationType>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::destination_type): <p>The type of publishing destination. Currently, only Amazon S3 buckets are supported.</p>
11    ///   - [`status(Option<PublishingStatus>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::status): <p>The status of the publishing destination.</p>
12    ///   - [`publishing_failure_start_timestamp(Option<i64>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::publishing_failure_start_timestamp): <p>The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the destination.</p>
13    ///   - [`destination_properties(Option<DestinationProperties>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::destination_properties): <p>A <code>DestinationProperties</code> object that includes the <code>DestinationArn</code> and <code>KmsKeyArn</code> of the publishing destination.</p>
14    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::describe_publishing_destination::DescribePublishingDestinationOutput::tags): <p>The tags of the publishing destination resource.</p>
15    /// - On failure, responds with [`SdkError<DescribePublishingDestinationError>`](crate::operation::describe_publishing_destination::DescribePublishingDestinationError)
16    pub fn describe_publishing_destination(
17        &self,
18    ) -> crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder {
19        crate::operation::describe_publishing_destination::builders::DescribePublishingDestinationFluentBuilder::new(self.handle.clone())
20    }
21}