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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Returns the objects or data listed below if successful. Otherwise, returns an error.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetTrailStatusOutput {
/// <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
pub is_logging: ::std::option::Option<bool>,
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub latest_delivery_error: ::std::option::Option<::std::string::String>,
/// <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>
pub latest_notification_error: ::std::option::Option<::std::string::String>,
/// <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
pub latest_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <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>
pub latest_notification_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
pub start_logging_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
pub stop_logging_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
pub latest_cloud_watch_logs_delivery_error: ::std::option::Option<::std::string::String>,
/// <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
pub latest_cloud_watch_logs_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
pub latest_digest_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub latest_digest_delivery_error: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub latest_delivery_attempt_time: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub latest_notification_attempt_time: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub latest_notification_attempt_succeeded: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub latest_delivery_attempt_succeeded: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub time_logging_started: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use.</p>
pub time_logging_stopped: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetTrailStatusOutput {
/// <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
pub fn is_logging(&self) -> ::std::option::Option<bool> {
self.is_logging
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn latest_delivery_error(&self) -> ::std::option::Option<&str> {
self.latest_delivery_error.as_deref()
}
/// <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>
pub fn latest_notification_error(&self) -> ::std::option::Option<&str> {
self.latest_notification_error.as_deref()
}
/// <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
pub fn latest_delivery_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.latest_delivery_time.as_ref()
}
/// <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>
pub fn latest_notification_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.latest_notification_time.as_ref()
}
/// <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
pub fn start_logging_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_logging_time.as_ref()
}
/// <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
pub fn stop_logging_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.stop_logging_time.as_ref()
}
/// <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
pub fn latest_cloud_watch_logs_delivery_error(&self) -> ::std::option::Option<&str> {
self.latest_cloud_watch_logs_delivery_error.as_deref()
}
/// <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
pub fn latest_cloud_watch_logs_delivery_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.latest_cloud_watch_logs_delivery_time.as_ref()
}
/// <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
pub fn latest_digest_delivery_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.latest_digest_delivery_time.as_ref()
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn latest_digest_delivery_error(&self) -> ::std::option::Option<&str> {
self.latest_digest_delivery_error.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn latest_delivery_attempt_time(&self) -> ::std::option::Option<&str> {
self.latest_delivery_attempt_time.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn latest_notification_attempt_time(&self) -> ::std::option::Option<&str> {
self.latest_notification_attempt_time.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn latest_notification_attempt_succeeded(&self) -> ::std::option::Option<&str> {
self.latest_notification_attempt_succeeded.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn latest_delivery_attempt_succeeded(&self) -> ::std::option::Option<&str> {
self.latest_delivery_attempt_succeeded.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn time_logging_started(&self) -> ::std::option::Option<&str> {
self.time_logging_started.as_deref()
}
/// <p>This field is no longer in use.</p>
pub fn time_logging_stopped(&self) -> ::std::option::Option<&str> {
self.time_logging_stopped.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetTrailStatusOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetTrailStatusOutput {
/// Creates a new builder-style object to manufacture [`GetTrailStatusOutput`](crate::operation::get_trail_status::GetTrailStatusOutput).
pub fn builder() -> crate::operation::get_trail_status::builders::GetTrailStatusOutputBuilder {
crate::operation::get_trail_status::builders::GetTrailStatusOutputBuilder::default()
}
}
/// A builder for [`GetTrailStatusOutput`](crate::operation::get_trail_status::GetTrailStatusOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetTrailStatusOutputBuilder {
pub(crate) is_logging: ::std::option::Option<bool>,
pub(crate) latest_delivery_error: ::std::option::Option<::std::string::String>,
pub(crate) latest_notification_error: ::std::option::Option<::std::string::String>,
pub(crate) latest_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) latest_notification_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) start_logging_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) stop_logging_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) latest_cloud_watch_logs_delivery_error: ::std::option::Option<::std::string::String>,
pub(crate) latest_cloud_watch_logs_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) latest_digest_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) latest_digest_delivery_error: ::std::option::Option<::std::string::String>,
pub(crate) latest_delivery_attempt_time: ::std::option::Option<::std::string::String>,
pub(crate) latest_notification_attempt_time: ::std::option::Option<::std::string::String>,
pub(crate) latest_notification_attempt_succeeded: ::std::option::Option<::std::string::String>,
pub(crate) latest_delivery_attempt_succeeded: ::std::option::Option<::std::string::String>,
pub(crate) time_logging_started: ::std::option::Option<::std::string::String>,
pub(crate) time_logging_stopped: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetTrailStatusOutputBuilder {
/// <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
pub fn is_logging(mut self, input: bool) -> Self {
self.is_logging = ::std::option::Option::Some(input);
self
}
/// <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
pub fn set_is_logging(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_logging = input;
self
}
/// <p>Whether the CloudTrail trail is currently logging Amazon Web Services API calls.</p>
pub fn get_is_logging(&self) -> &::std::option::Option<bool> {
&self.is_logging
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn latest_delivery_error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_delivery_error = ::std::option::Option::Some(input.into());
self
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn set_latest_delivery_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_delivery_error = input;
self
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn get_latest_delivery_error(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_delivery_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>
pub fn latest_notification_error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_notification_error = ::std::option::Option::Some(input.into());
self
}
/// <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>
pub fn set_latest_notification_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_notification_error = input;
self
}
/// <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>
pub fn get_latest_notification_error(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_notification_error
}
/// <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
pub fn latest_delivery_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.latest_delivery_time = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
pub fn set_latest_delivery_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.latest_delivery_time = input;
self
}
/// <p>Specifies the date and time that CloudTrail last delivered log files to an account's Amazon S3 bucket.</p>
pub fn get_latest_delivery_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.latest_delivery_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>
pub fn latest_notification_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.latest_notification_time = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_latest_notification_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.latest_notification_time = input;
self
}
/// <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>
pub fn get_latest_notification_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.latest_notification_time
}
/// <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
pub fn start_logging_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_logging_time = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
pub fn set_start_logging_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_logging_time = input;
self
}
/// <p>Specifies the most recent date and time when CloudTrail started recording API calls for an Amazon Web Services account.</p>
pub fn get_start_logging_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_logging_time
}
/// <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
pub fn stop_logging_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.stop_logging_time = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
pub fn set_stop_logging_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.stop_logging_time = input;
self
}
/// <p>Specifies the most recent date and time when CloudTrail stopped recording API calls for an Amazon Web Services account.</p>
pub fn get_stop_logging_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.stop_logging_time
}
/// <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
pub fn latest_cloud_watch_logs_delivery_error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_cloud_watch_logs_delivery_error = ::std::option::Option::Some(input.into());
self
}
/// <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
pub fn set_latest_cloud_watch_logs_delivery_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_cloud_watch_logs_delivery_error = input;
self
}
/// <p>Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.</p>
pub fn get_latest_cloud_watch_logs_delivery_error(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_cloud_watch_logs_delivery_error
}
/// <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
pub fn latest_cloud_watch_logs_delivery_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.latest_cloud_watch_logs_delivery_time = ::std::option::Option::Some(input);
self
}
/// <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
pub fn set_latest_cloud_watch_logs_delivery_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.latest_cloud_watch_logs_delivery_time = input;
self
}
/// <p>Displays the most recent date and time when CloudTrail delivered logs to CloudWatch Logs.</p>
pub fn get_latest_cloud_watch_logs_delivery_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.latest_cloud_watch_logs_delivery_time
}
/// <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
pub fn latest_digest_delivery_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.latest_digest_delivery_time = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
pub fn set_latest_digest_delivery_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.latest_digest_delivery_time = input;
self
}
/// <p>Specifies the date and time that CloudTrail last delivered a digest file to an account's Amazon S3 bucket.</p>
pub fn get_latest_digest_delivery_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.latest_digest_delivery_time
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn latest_digest_delivery_error(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_digest_delivery_error = ::std::option::Option::Some(input.into());
self
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn set_latest_digest_delivery_error(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_digest_delivery_error = input;
self
}
/// <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, fix the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create-s3-bucket-policy-for-cloudtrail.html">bucket policy</a> so that CloudTrail can write to the bucket; or create a new bucket and call <code>UpdateTrail</code> to specify the new bucket.</p>
/// </note>
pub fn get_latest_digest_delivery_error(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_digest_delivery_error
}
/// <p>This field is no longer in use.</p>
pub fn latest_delivery_attempt_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_delivery_attempt_time = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_latest_delivery_attempt_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_delivery_attempt_time = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_latest_delivery_attempt_time(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_delivery_attempt_time
}
/// <p>This field is no longer in use.</p>
pub fn latest_notification_attempt_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_notification_attempt_time = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_latest_notification_attempt_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_notification_attempt_time = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_latest_notification_attempt_time(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_notification_attempt_time
}
/// <p>This field is no longer in use.</p>
pub fn latest_notification_attempt_succeeded(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_notification_attempt_succeeded = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_latest_notification_attempt_succeeded(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_notification_attempt_succeeded = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_latest_notification_attempt_succeeded(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_notification_attempt_succeeded
}
/// <p>This field is no longer in use.</p>
pub fn latest_delivery_attempt_succeeded(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_delivery_attempt_succeeded = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_latest_delivery_attempt_succeeded(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_delivery_attempt_succeeded = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_latest_delivery_attempt_succeeded(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_delivery_attempt_succeeded
}
/// <p>This field is no longer in use.</p>
pub fn time_logging_started(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.time_logging_started = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_time_logging_started(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.time_logging_started = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_time_logging_started(&self) -> &::std::option::Option<::std::string::String> {
&self.time_logging_started
}
/// <p>This field is no longer in use.</p>
pub fn time_logging_stopped(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.time_logging_stopped = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use.</p>
pub fn set_time_logging_stopped(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.time_logging_stopped = input;
self
}
/// <p>This field is no longer in use.</p>
pub fn get_time_logging_stopped(&self) -> &::std::option::Option<::std::string::String> {
&self.time_logging_stopped
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetTrailStatusOutput`](crate::operation::get_trail_status::GetTrailStatusOutput).
pub fn build(self) -> crate::operation::get_trail_status::GetTrailStatusOutput {
crate::operation::get_trail_status::GetTrailStatusOutput {
is_logging: self.is_logging,
latest_delivery_error: self.latest_delivery_error,
latest_notification_error: self.latest_notification_error,
latest_delivery_time: self.latest_delivery_time,
latest_notification_time: self.latest_notification_time,
start_logging_time: self.start_logging_time,
stop_logging_time: self.stop_logging_time,
latest_cloud_watch_logs_delivery_error: self.latest_cloud_watch_logs_delivery_error,
latest_cloud_watch_logs_delivery_time: self.latest_cloud_watch_logs_delivery_time,
latest_digest_delivery_time: self.latest_digest_delivery_time,
latest_digest_delivery_error: self.latest_digest_delivery_error,
latest_delivery_attempt_time: self.latest_delivery_attempt_time,
latest_notification_attempt_time: self.latest_notification_attempt_time,
latest_notification_attempt_succeeded: self.latest_notification_attempt_succeeded,
latest_delivery_attempt_succeeded: self.latest_delivery_attempt_succeeded,
time_logging_started: self.time_logging_started,
time_logging_stopped: self.time_logging_stopped,
_request_id: self._request_id,
}
}
}