1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetTrailStatus`](crate::operation::get_trail_status::builders::GetTrailStatusFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::get_trail_status::builders::GetTrailStatusFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_trail_status::builders::GetTrailStatusFluentBuilder::set_name):<br>required: **true**<br><p>Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another Region), you must specify its ARN. The following is the format of a trail ARN.</p> <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p><br>
    /// - On success, responds with [`GetTrailStatusOutput`](crate::operation::get_trail_status::GetTrailStatusOutput) with field(s):
    ///   - [`is_logging(Option<bool>)`](crate::operation::get_trail_status::GetTrailStatusOutput::is_logging): <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
    ///   - [`latest_delivery_error(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_delivery_error): <p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver log files to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error Responses</a> in the Amazon S3 API Reference.</p><note>  <p>This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.</p> </note>
    ///   - [`latest_notification_error(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_notification_error): <p>Displays any Amazon SNS error that CloudTrail encountered when attempting to send a notification. For more information about Amazon SNS errors, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon SNS Developer Guide</a>.</p>
    ///   - [`latest_delivery_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_delivery_time): <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
    ///   - [`latest_notification_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_notification_time): <p>Specifies the date and time of the most recent Amazon SNS notification that CloudTrail has written a new log file to an account's Amazon S3 bucket.</p>
    ///   - [`start_logging_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::start_logging_time): <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
    ///   - [`stop_logging_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::stop_logging_time): <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
    ///   - [`latest_cloud_watch_logs_delivery_error(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_cloud_watch_logs_delivery_error): <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
    ///   - [`latest_cloud_watch_logs_delivery_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_cloud_watch_logs_delivery_time): <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
    ///   - [`latest_digest_delivery_time(Option<DateTime>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_digest_delivery_time): <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
    ///   - [`latest_digest_delivery_error(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_digest_delivery_error): <p>Displays any Amazon S3 error that CloudTrail encountered when attempting to deliver a digest file to the designated bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html">Error Responses</a> in the Amazon S3 API Reference.</p><note>  <p>This error occurs only when there is a problem with the destination S3 bucket, and does not occur for requests that time out. To resolve the issue, create a new bucket, and then call <code>UpdateTrail</code> to specify the new bucket; or fix the existing objects so that CloudTrail can again write to the bucket.</p> </note>
    ///   - [`latest_delivery_attempt_time(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_delivery_attempt_time): <p>This field is no longer in use.</p>
    ///   - [`latest_notification_attempt_time(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_notification_attempt_time): <p>This field is no longer in use.</p>
    ///   - [`latest_notification_attempt_succeeded(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_notification_attempt_succeeded): <p>This field is no longer in use.</p>
    ///   - [`latest_delivery_attempt_succeeded(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::latest_delivery_attempt_succeeded): <p>This field is no longer in use.</p>
    ///   - [`time_logging_started(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::time_logging_started): <p>This field is no longer in use.</p>
    ///   - [`time_logging_stopped(Option<String>)`](crate::operation::get_trail_status::GetTrailStatusOutput::time_logging_stopped): <p>This field is no longer in use.</p>
    /// - On failure, responds with [`SdkError<GetTrailStatusError>`](crate::operation::get_trail_status::GetTrailStatusError)
    pub fn get_trail_status(&self) -> crate::operation::get_trail_status::builders::GetTrailStatusFluentBuilder {
        crate::operation::get_trail_status::builders::GetTrailStatusFluentBuilder::new(self.handle.clone())
    }
}