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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The settings for a trail.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Trail {
/// <p>Name of the trail set by calling <code>CreateTrail</code>. The maximum length is 128 characters.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3 Bucket naming rules</a>.</p>
pub s3_bucket_name: ::std::option::Option<::std::string::String>,
/// <p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>
pub s3_key_prefix: ::std::option::Option<::std::string::String>,
/// <p>This field is no longer in use. Use <code>SnsTopicARN</code>.</p>
#[deprecated]
pub sns_topic_name: ::std::option::Option<::std::string::String>,
/// <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.</p>
/// <p><code>arn:aws:sns:us-east-2:123456789012:MyTopic</code></p>
pub sns_topic_arn: ::std::option::Option<::std::string::String>,
/// <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, <b>False</b>.</p>
pub include_global_service_events: ::std::option::Option<bool>,
/// <p>Specifies whether the trail exists only in one Region or exists in all Regions.</p>
pub is_multi_region_trail: ::std::option::Option<bool>,
/// <p>The Region in which the trail was created.</p>
pub home_region: ::std::option::Option<::std::string::String>,
/// <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
/// <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p>
pub trail_arn: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether log file validation is enabled.</p>
pub log_file_validation_enabled: ::std::option::Option<bool>,
/// <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
pub cloud_watch_logs_log_group_arn: ::std::option::Option<::std::string::String>,
/// <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
pub cloud_watch_logs_role_arn: ::std::option::Option<::std::string::String>,
/// <p>Specifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
/// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>Specifies if the trail has custom event selectors.</p>
pub has_custom_event_selectors: ::std::option::Option<bool>,
/// <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
pub has_insight_selectors: ::std::option::Option<bool>,
/// <p>Specifies whether the trail is an organization trail.</p>
pub is_organization_trail: ::std::option::Option<bool>,
}
impl Trail {
/// <p>Name of the trail set by calling <code>CreateTrail</code>. The maximum length is 128 characters.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3 Bucket naming rules</a>.</p>
pub fn s3_bucket_name(&self) -> ::std::option::Option<&str> {
self.s3_bucket_name.as_deref()
}
/// <p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>
pub fn s3_key_prefix(&self) -> ::std::option::Option<&str> {
self.s3_key_prefix.as_deref()
}
/// <p>This field is no longer in use. Use <code>SnsTopicARN</code>.</p>
#[deprecated]
pub fn sns_topic_name(&self) -> ::std::option::Option<&str> {
self.sns_topic_name.as_deref()
}
/// <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.</p>
/// <p><code>arn:aws:sns:us-east-2:123456789012:MyTopic</code></p>
pub fn sns_topic_arn(&self) -> ::std::option::Option<&str> {
self.sns_topic_arn.as_deref()
}
/// <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, <b>False</b>.</p>
pub fn include_global_service_events(&self) -> ::std::option::Option<bool> {
self.include_global_service_events
}
/// <p>Specifies whether the trail exists only in one Region or exists in all Regions.</p>
pub fn is_multi_region_trail(&self) -> ::std::option::Option<bool> {
self.is_multi_region_trail
}
/// <p>The Region in which the trail was created.</p>
pub fn home_region(&self) -> ::std::option::Option<&str> {
self.home_region.as_deref()
}
/// <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
/// <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p>
pub fn trail_arn(&self) -> ::std::option::Option<&str> {
self.trail_arn.as_deref()
}
/// <p>Specifies whether log file validation is enabled.</p>
pub fn log_file_validation_enabled(&self) -> ::std::option::Option<bool> {
self.log_file_validation_enabled
}
/// <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
pub fn cloud_watch_logs_log_group_arn(&self) -> ::std::option::Option<&str> {
self.cloud_watch_logs_log_group_arn.as_deref()
}
/// <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
pub fn cloud_watch_logs_role_arn(&self) -> ::std::option::Option<&str> {
self.cloud_watch_logs_role_arn.as_deref()
}
/// <p>Specifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
/// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>Specifies if the trail has custom event selectors.</p>
pub fn has_custom_event_selectors(&self) -> ::std::option::Option<bool> {
self.has_custom_event_selectors
}
/// <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
pub fn has_insight_selectors(&self) -> ::std::option::Option<bool> {
self.has_insight_selectors
}
/// <p>Specifies whether the trail is an organization trail.</p>
pub fn is_organization_trail(&self) -> ::std::option::Option<bool> {
self.is_organization_trail
}
}
impl Trail {
/// Creates a new builder-style object to manufacture [`Trail`](crate::types::Trail).
pub fn builder() -> crate::types::builders::TrailBuilder {
crate::types::builders::TrailBuilder::default()
}
}
/// A builder for [`Trail`](crate::types::Trail).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct TrailBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) s3_bucket_name: ::std::option::Option<::std::string::String>,
pub(crate) s3_key_prefix: ::std::option::Option<::std::string::String>,
pub(crate) sns_topic_name: ::std::option::Option<::std::string::String>,
pub(crate) sns_topic_arn: ::std::option::Option<::std::string::String>,
pub(crate) include_global_service_events: ::std::option::Option<bool>,
pub(crate) is_multi_region_trail: ::std::option::Option<bool>,
pub(crate) home_region: ::std::option::Option<::std::string::String>,
pub(crate) trail_arn: ::std::option::Option<::std::string::String>,
pub(crate) log_file_validation_enabled: ::std::option::Option<bool>,
pub(crate) cloud_watch_logs_log_group_arn: ::std::option::Option<::std::string::String>,
pub(crate) cloud_watch_logs_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) has_custom_event_selectors: ::std::option::Option<bool>,
pub(crate) has_insight_selectors: ::std::option::Option<bool>,
pub(crate) is_organization_trail: ::std::option::Option<bool>,
}
impl TrailBuilder {
/// <p>Name of the trail set by calling <code>CreateTrail</code>. The maximum length is 128 characters.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>Name of the trail set by calling <code>CreateTrail</code>. The maximum length is 128 characters.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>Name of the trail set by calling <code>CreateTrail</code>. The maximum length is 128 characters.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3 Bucket naming rules</a>.</p>
pub fn s3_bucket_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_bucket_name = ::std::option::Option::Some(input.into());
self
}
/// <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3 Bucket naming rules</a>.</p>
pub fn set_s3_bucket_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_bucket_name = input;
self
}
/// <p>Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon S3 Bucket naming rules</a>.</p>
pub fn get_s3_bucket_name(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_bucket_name
}
/// <p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>
pub fn s3_key_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_key_prefix = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>
pub fn set_s3_key_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_key_prefix = input;
self
}
/// <p>Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/get-and-view-cloudtrail-log-files.html#cloudtrail-find-log-files">Finding Your CloudTrail Log Files</a>. The maximum length is 200 characters.</p>
pub fn get_s3_key_prefix(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_key_prefix
}
/// <p>This field is no longer in use. Use <code>SnsTopicARN</code>.</p>
#[deprecated]
pub fn sns_topic_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sns_topic_name = ::std::option::Option::Some(input.into());
self
}
/// <p>This field is no longer in use. Use <code>SnsTopicARN</code>.</p>
#[deprecated]
pub fn set_sns_topic_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sns_topic_name = input;
self
}
/// <p>This field is no longer in use. Use <code>SnsTopicARN</code>.</p>
#[deprecated]
pub fn get_sns_topic_name(&self) -> &::std::option::Option<::std::string::String> {
&self.sns_topic_name
}
/// <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.</p>
/// <p><code>arn:aws:sns:us-east-2:123456789012:MyTopic</code></p>
pub fn sns_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sns_topic_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.</p>
/// <p><code>arn:aws:sns:us-east-2:123456789012:MyTopic</code></p>
pub fn set_sns_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sns_topic_arn = input;
self
}
/// <p>Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.</p>
/// <p><code>arn:aws:sns:us-east-2:123456789012:MyTopic</code></p>
pub fn get_sns_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.sns_topic_arn
}
/// <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, <b>False</b>.</p>
pub fn include_global_service_events(mut self, input: bool) -> Self {
self.include_global_service_events = ::std::option::Option::Some(input);
self
}
/// <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, <b>False</b>.</p>
pub fn set_include_global_service_events(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_global_service_events = input;
self
}
/// <p>Set to <b>True</b> to include Amazon Web Services API calls from Amazon Web Services global services such as IAM. Otherwise, <b>False</b>.</p>
pub fn get_include_global_service_events(&self) -> &::std::option::Option<bool> {
&self.include_global_service_events
}
/// <p>Specifies whether the trail exists only in one Region or exists in all Regions.</p>
pub fn is_multi_region_trail(mut self, input: bool) -> Self {
self.is_multi_region_trail = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the trail exists only in one Region or exists in all Regions.</p>
pub fn set_is_multi_region_trail(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_multi_region_trail = input;
self
}
/// <p>Specifies whether the trail exists only in one Region or exists in all Regions.</p>
pub fn get_is_multi_region_trail(&self) -> &::std::option::Option<bool> {
&self.is_multi_region_trail
}
/// <p>The Region in which the trail was created.</p>
pub fn home_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.home_region = ::std::option::Option::Some(input.into());
self
}
/// <p>The Region in which the trail was created.</p>
pub fn set_home_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.home_region = input;
self
}
/// <p>The Region in which the trail was created.</p>
pub fn get_home_region(&self) -> &::std::option::Option<::std::string::String> {
&self.home_region
}
/// <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
/// <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p>
pub fn trail_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.trail_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
/// <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p>
pub fn set_trail_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.trail_arn = input;
self
}
/// <p>Specifies the ARN of the trail. The following is the format of a trail ARN.</p>
/// <p><code>arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail</code></p>
pub fn get_trail_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.trail_arn
}
/// <p>Specifies whether log file validation is enabled.</p>
pub fn log_file_validation_enabled(mut self, input: bool) -> Self {
self.log_file_validation_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether log file validation is enabled.</p>
pub fn set_log_file_validation_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.log_file_validation_enabled = input;
self
}
/// <p>Specifies whether log file validation is enabled.</p>
pub fn get_log_file_validation_enabled(&self) -> &::std::option::Option<bool> {
&self.log_file_validation_enabled
}
/// <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
pub fn cloud_watch_logs_log_group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cloud_watch_logs_log_group_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
pub fn set_cloud_watch_logs_log_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cloud_watch_logs_log_group_arn = input;
self
}
/// <p>Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.</p>
pub fn get_cloud_watch_logs_log_group_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cloud_watch_logs_log_group_arn
}
/// <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
pub fn cloud_watch_logs_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cloud_watch_logs_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
pub fn set_cloud_watch_logs_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cloud_watch_logs_role_arn = input;
self
}
/// <p>Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.</p>
pub fn get_cloud_watch_logs_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cloud_watch_logs_role_arn
}
/// <p>Specifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
/// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>Specifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
/// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>Specifies the KMS key ID that encrypts the logs and digest files delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.</p>
/// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// <p>Specifies if the trail has custom event selectors.</p>
pub fn has_custom_event_selectors(mut self, input: bool) -> Self {
self.has_custom_event_selectors = ::std::option::Option::Some(input);
self
}
/// <p>Specifies if the trail has custom event selectors.</p>
pub fn set_has_custom_event_selectors(mut self, input: ::std::option::Option<bool>) -> Self {
self.has_custom_event_selectors = input;
self
}
/// <p>Specifies if the trail has custom event selectors.</p>
pub fn get_has_custom_event_selectors(&self) -> &::std::option::Option<bool> {
&self.has_custom_event_selectors
}
/// <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
pub fn has_insight_selectors(mut self, input: bool) -> Self {
self.has_insight_selectors = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
pub fn set_has_insight_selectors(mut self, input: ::std::option::Option<bool>) -> Self {
self.has_insight_selectors = input;
self
}
/// <p>Specifies whether a trail has insight types specified in an <code>InsightSelector</code> list.</p>
pub fn get_has_insight_selectors(&self) -> &::std::option::Option<bool> {
&self.has_insight_selectors
}
/// <p>Specifies whether the trail is an organization trail.</p>
pub fn is_organization_trail(mut self, input: bool) -> Self {
self.is_organization_trail = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the trail is an organization trail.</p>
pub fn set_is_organization_trail(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_organization_trail = input;
self
}
/// <p>Specifies whether the trail is an organization trail.</p>
pub fn get_is_organization_trail(&self) -> &::std::option::Option<bool> {
&self.is_organization_trail
}
/// Consumes the builder and constructs a [`Trail`](crate::types::Trail).
pub fn build(self) -> crate::types::Trail {
crate::types::Trail {
name: self.name,
s3_bucket_name: self.s3_bucket_name,
s3_key_prefix: self.s3_key_prefix,
sns_topic_name: self.sns_topic_name,
sns_topic_arn: self.sns_topic_arn,
include_global_service_events: self.include_global_service_events,
is_multi_region_trail: self.is_multi_region_trail,
home_region: self.home_region,
trail_arn: self.trail_arn,
log_file_validation_enabled: self.log_file_validation_enabled,
cloud_watch_logs_log_group_arn: self.cloud_watch_logs_log_group_arn,
cloud_watch_logs_role_arn: self.cloud_watch_logs_role_arn,
kms_key_id: self.kms_key_id,
has_custom_event_selectors: self.has_custom_event_selectors,
has_insight_selectors: self.has_insight_selectors,
is_organization_trail: self.is_organization_trail,
}
}
}