aws-sdk-glue 1.149.0

AWS SDK for AWS Glue
Documentation
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
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metadata concerning the data source in the Glue Data Catalog.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Crawler {
    /// <p>The name of the crawler.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
    pub role: ::std::option::Option<::std::string::String>,
    /// <p>A collection of targets to crawl.</p>
    pub targets: ::std::option::Option<crate::types::CrawlerTargets>,
    /// <p>The name of the database in which the crawler's output is stored.</p>
    pub database_name: ::std::option::Option<::std::string::String>,
    /// <p>A description of the crawler.</p>
    pub description: ::std::option::Option<::std::string::String>,
    /// <p>A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.</p>
    pub classifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.</p>
    pub recrawl_policy: ::std::option::Option<crate::types::RecrawlPolicy>,
    /// <p>The policy that specifies update and delete behaviors for the crawler.</p>
    pub schema_change_policy: ::std::option::Option<crate::types::SchemaChangePolicy>,
    /// <p>A configuration that specifies whether data lineage is enabled for the crawler.</p>
    pub lineage_configuration: ::std::option::Option<crate::types::LineageConfiguration>,
    /// <p>Indicates whether the crawler is running, or whether a run is pending.</p>
    pub state: ::std::option::Option<crate::types::CrawlerState>,
    /// <p>The prefix added to the names of tables that are created.</p>
    pub table_prefix: ::std::option::Option<::std::string::String>,
    /// <p>For scheduled crawlers, the schedule when the crawler runs.</p>
    pub schedule: ::std::option::Option<crate::types::Schedule>,
    /// <p>If the crawler is running, contains the total time elapsed since the last crawl began.</p>
    pub crawl_elapsed_time: i64,
    /// <p>The time that the crawler was created.</p>
    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The time that the crawler was last updated.</p>
    pub last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The status of the last crawl, and potentially error information if an error occurred.</p>
    pub last_crawl: ::std::option::Option<crate::types::LastCrawlInfo>,
    /// <p>The version of the crawler.</p>
    pub version: i64,
    /// <p>Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Setting crawler configuration options</a>.</p>
    pub configuration: ::std::option::Option<::std::string::String>,
    /// <p>The name of the <code>SecurityConfiguration</code> structure to be used by this crawler.</p>
    pub crawler_security_configuration: ::std::option::Option<::std::string::String>,
    /// <p>Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
    pub lake_formation_configuration: ::std::option::Option<crate::types::LakeFormationConfiguration>,
}
impl Crawler {
    /// <p>The name of the crawler.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
    pub fn role(&self) -> ::std::option::Option<&str> {
        self.role.as_deref()
    }
    /// <p>A collection of targets to crawl.</p>
    pub fn targets(&self) -> ::std::option::Option<&crate::types::CrawlerTargets> {
        self.targets.as_ref()
    }
    /// <p>The name of the database in which the crawler's output is stored.</p>
    pub fn database_name(&self) -> ::std::option::Option<&str> {
        self.database_name.as_deref()
    }
    /// <p>A description of the crawler.</p>
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
    /// <p>A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.classifiers.is_none()`.
    pub fn classifiers(&self) -> &[::std::string::String] {
        self.classifiers.as_deref().unwrap_or_default()
    }
    /// <p>A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.</p>
    pub fn recrawl_policy(&self) -> ::std::option::Option<&crate::types::RecrawlPolicy> {
        self.recrawl_policy.as_ref()
    }
    /// <p>The policy that specifies update and delete behaviors for the crawler.</p>
    pub fn schema_change_policy(&self) -> ::std::option::Option<&crate::types::SchemaChangePolicy> {
        self.schema_change_policy.as_ref()
    }
    /// <p>A configuration that specifies whether data lineage is enabled for the crawler.</p>
    pub fn lineage_configuration(&self) -> ::std::option::Option<&crate::types::LineageConfiguration> {
        self.lineage_configuration.as_ref()
    }
    /// <p>Indicates whether the crawler is running, or whether a run is pending.</p>
    pub fn state(&self) -> ::std::option::Option<&crate::types::CrawlerState> {
        self.state.as_ref()
    }
    /// <p>The prefix added to the names of tables that are created.</p>
    pub fn table_prefix(&self) -> ::std::option::Option<&str> {
        self.table_prefix.as_deref()
    }
    /// <p>For scheduled crawlers, the schedule when the crawler runs.</p>
    pub fn schedule(&self) -> ::std::option::Option<&crate::types::Schedule> {
        self.schedule.as_ref()
    }
    /// <p>If the crawler is running, contains the total time elapsed since the last crawl began.</p>
    pub fn crawl_elapsed_time(&self) -> i64 {
        self.crawl_elapsed_time
    }
    /// <p>The time that the crawler was created.</p>
    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.creation_time.as_ref()
    }
    /// <p>The time that the crawler was last updated.</p>
    pub fn last_updated(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_updated.as_ref()
    }
    /// <p>The status of the last crawl, and potentially error information if an error occurred.</p>
    pub fn last_crawl(&self) -> ::std::option::Option<&crate::types::LastCrawlInfo> {
        self.last_crawl.as_ref()
    }
    /// <p>The version of the crawler.</p>
    pub fn version(&self) -> i64 {
        self.version
    }
    /// <p>Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Setting crawler configuration options</a>.</p>
    pub fn configuration(&self) -> ::std::option::Option<&str> {
        self.configuration.as_deref()
    }
    /// <p>The name of the <code>SecurityConfiguration</code> structure to be used by this crawler.</p>
    pub fn crawler_security_configuration(&self) -> ::std::option::Option<&str> {
        self.crawler_security_configuration.as_deref()
    }
    /// <p>Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
    pub fn lake_formation_configuration(&self) -> ::std::option::Option<&crate::types::LakeFormationConfiguration> {
        self.lake_formation_configuration.as_ref()
    }
}
impl Crawler {
    /// Creates a new builder-style object to manufacture [`Crawler`](crate::types::Crawler).
    pub fn builder() -> crate::types::builders::CrawlerBuilder {
        crate::types::builders::CrawlerBuilder::default()
    }
}

/// A builder for [`Crawler`](crate::types::Crawler).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CrawlerBuilder {
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) role: ::std::option::Option<::std::string::String>,
    pub(crate) targets: ::std::option::Option<crate::types::CrawlerTargets>,
    pub(crate) database_name: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) classifiers: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) recrawl_policy: ::std::option::Option<crate::types::RecrawlPolicy>,
    pub(crate) schema_change_policy: ::std::option::Option<crate::types::SchemaChangePolicy>,
    pub(crate) lineage_configuration: ::std::option::Option<crate::types::LineageConfiguration>,
    pub(crate) state: ::std::option::Option<crate::types::CrawlerState>,
    pub(crate) table_prefix: ::std::option::Option<::std::string::String>,
    pub(crate) schedule: ::std::option::Option<crate::types::Schedule>,
    pub(crate) crawl_elapsed_time: ::std::option::Option<i64>,
    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_updated: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_crawl: ::std::option::Option<crate::types::LastCrawlInfo>,
    pub(crate) version: ::std::option::Option<i64>,
    pub(crate) configuration: ::std::option::Option<::std::string::String>,
    pub(crate) crawler_security_configuration: ::std::option::Option<::std::string::String>,
    pub(crate) lake_formation_configuration: ::std::option::Option<crate::types::LakeFormationConfiguration>,
}
impl CrawlerBuilder {
    /// <p>The name of the crawler.</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>The name of the crawler.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the crawler.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
    pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.role = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
    pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.role = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.</p>
    pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
        &self.role
    }
    /// <p>A collection of targets to crawl.</p>
    pub fn targets(mut self, input: crate::types::CrawlerTargets) -> Self {
        self.targets = ::std::option::Option::Some(input);
        self
    }
    /// <p>A collection of targets to crawl.</p>
    pub fn set_targets(mut self, input: ::std::option::Option<crate::types::CrawlerTargets>) -> Self {
        self.targets = input;
        self
    }
    /// <p>A collection of targets to crawl.</p>
    pub fn get_targets(&self) -> &::std::option::Option<crate::types::CrawlerTargets> {
        &self.targets
    }
    /// <p>The name of the database in which the crawler's output is stored.</p>
    pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.database_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the database in which the crawler's output is stored.</p>
    pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.database_name = input;
        self
    }
    /// <p>The name of the database in which the crawler's output is stored.</p>
    pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.database_name
    }
    /// <p>A description of the crawler.</p>
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A description of the crawler.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>A description of the crawler.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// Appends an item to `classifiers`.
    ///
    /// To override the contents of this collection use [`set_classifiers`](Self::set_classifiers).
    ///
    /// <p>A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.</p>
    pub fn classifiers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.classifiers.unwrap_or_default();
        v.push(input.into());
        self.classifiers = ::std::option::Option::Some(v);
        self
    }
    /// <p>A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.</p>
    pub fn set_classifiers(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.classifiers = input;
        self
    }
    /// <p>A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.</p>
    pub fn get_classifiers(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.classifiers
    }
    /// <p>A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.</p>
    pub fn recrawl_policy(mut self, input: crate::types::RecrawlPolicy) -> Self {
        self.recrawl_policy = ::std::option::Option::Some(input);
        self
    }
    /// <p>A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.</p>
    pub fn set_recrawl_policy(mut self, input: ::std::option::Option<crate::types::RecrawlPolicy>) -> Self {
        self.recrawl_policy = input;
        self
    }
    /// <p>A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.</p>
    pub fn get_recrawl_policy(&self) -> &::std::option::Option<crate::types::RecrawlPolicy> {
        &self.recrawl_policy
    }
    /// <p>The policy that specifies update and delete behaviors for the crawler.</p>
    pub fn schema_change_policy(mut self, input: crate::types::SchemaChangePolicy) -> Self {
        self.schema_change_policy = ::std::option::Option::Some(input);
        self
    }
    /// <p>The policy that specifies update and delete behaviors for the crawler.</p>
    pub fn set_schema_change_policy(mut self, input: ::std::option::Option<crate::types::SchemaChangePolicy>) -> Self {
        self.schema_change_policy = input;
        self
    }
    /// <p>The policy that specifies update and delete behaviors for the crawler.</p>
    pub fn get_schema_change_policy(&self) -> &::std::option::Option<crate::types::SchemaChangePolicy> {
        &self.schema_change_policy
    }
    /// <p>A configuration that specifies whether data lineage is enabled for the crawler.</p>
    pub fn lineage_configuration(mut self, input: crate::types::LineageConfiguration) -> Self {
        self.lineage_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>A configuration that specifies whether data lineage is enabled for the crawler.</p>
    pub fn set_lineage_configuration(mut self, input: ::std::option::Option<crate::types::LineageConfiguration>) -> Self {
        self.lineage_configuration = input;
        self
    }
    /// <p>A configuration that specifies whether data lineage is enabled for the crawler.</p>
    pub fn get_lineage_configuration(&self) -> &::std::option::Option<crate::types::LineageConfiguration> {
        &self.lineage_configuration
    }
    /// <p>Indicates whether the crawler is running, or whether a run is pending.</p>
    pub fn state(mut self, input: crate::types::CrawlerState) -> Self {
        self.state = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether the crawler is running, or whether a run is pending.</p>
    pub fn set_state(mut self, input: ::std::option::Option<crate::types::CrawlerState>) -> Self {
        self.state = input;
        self
    }
    /// <p>Indicates whether the crawler is running, or whether a run is pending.</p>
    pub fn get_state(&self) -> &::std::option::Option<crate::types::CrawlerState> {
        &self.state
    }
    /// <p>The prefix added to the names of tables that are created.</p>
    pub fn table_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.table_prefix = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The prefix added to the names of tables that are created.</p>
    pub fn set_table_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.table_prefix = input;
        self
    }
    /// <p>The prefix added to the names of tables that are created.</p>
    pub fn get_table_prefix(&self) -> &::std::option::Option<::std::string::String> {
        &self.table_prefix
    }
    /// <p>For scheduled crawlers, the schedule when the crawler runs.</p>
    pub fn schedule(mut self, input: crate::types::Schedule) -> Self {
        self.schedule = ::std::option::Option::Some(input);
        self
    }
    /// <p>For scheduled crawlers, the schedule when the crawler runs.</p>
    pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::Schedule>) -> Self {
        self.schedule = input;
        self
    }
    /// <p>For scheduled crawlers, the schedule when the crawler runs.</p>
    pub fn get_schedule(&self) -> &::std::option::Option<crate::types::Schedule> {
        &self.schedule
    }
    /// <p>If the crawler is running, contains the total time elapsed since the last crawl began.</p>
    pub fn crawl_elapsed_time(mut self, input: i64) -> Self {
        self.crawl_elapsed_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>If the crawler is running, contains the total time elapsed since the last crawl began.</p>
    pub fn set_crawl_elapsed_time(mut self, input: ::std::option::Option<i64>) -> Self {
        self.crawl_elapsed_time = input;
        self
    }
    /// <p>If the crawler is running, contains the total time elapsed since the last crawl began.</p>
    pub fn get_crawl_elapsed_time(&self) -> &::std::option::Option<i64> {
        &self.crawl_elapsed_time
    }
    /// <p>The time that the crawler was created.</p>
    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.creation_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time that the crawler was created.</p>
    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.creation_time = input;
        self
    }
    /// <p>The time that the crawler was created.</p>
    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.creation_time
    }
    /// <p>The time that the crawler was last updated.</p>
    pub fn last_updated(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_updated = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time that the crawler was last updated.</p>
    pub fn set_last_updated(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_updated = input;
        self
    }
    /// <p>The time that the crawler was last updated.</p>
    pub fn get_last_updated(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_updated
    }
    /// <p>The status of the last crawl, and potentially error information if an error occurred.</p>
    pub fn last_crawl(mut self, input: crate::types::LastCrawlInfo) -> Self {
        self.last_crawl = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the last crawl, and potentially error information if an error occurred.</p>
    pub fn set_last_crawl(mut self, input: ::std::option::Option<crate::types::LastCrawlInfo>) -> Self {
        self.last_crawl = input;
        self
    }
    /// <p>The status of the last crawl, and potentially error information if an error occurred.</p>
    pub fn get_last_crawl(&self) -> &::std::option::Option<crate::types::LastCrawlInfo> {
        &self.last_crawl
    }
    /// <p>The version of the crawler.</p>
    pub fn version(mut self, input: i64) -> Self {
        self.version = ::std::option::Option::Some(input);
        self
    }
    /// <p>The version of the crawler.</p>
    pub fn set_version(mut self, input: ::std::option::Option<i64>) -> Self {
        self.version = input;
        self
    }
    /// <p>The version of the crawler.</p>
    pub fn get_version(&self) -> &::std::option::Option<i64> {
        &self.version
    }
    /// <p>Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Setting crawler configuration options</a>.</p>
    pub fn configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.configuration = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Setting crawler configuration options</a>.</p>
    pub fn set_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.configuration = input;
        self
    }
    /// <p>Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html">Setting crawler configuration options</a>.</p>
    pub fn get_configuration(&self) -> &::std::option::Option<::std::string::String> {
        &self.configuration
    }
    /// <p>The name of the <code>SecurityConfiguration</code> structure to be used by this crawler.</p>
    pub fn crawler_security_configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.crawler_security_configuration = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the <code>SecurityConfiguration</code> structure to be used by this crawler.</p>
    pub fn set_crawler_security_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.crawler_security_configuration = input;
        self
    }
    /// <p>The name of the <code>SecurityConfiguration</code> structure to be used by this crawler.</p>
    pub fn get_crawler_security_configuration(&self) -> &::std::option::Option<::std::string::String> {
        &self.crawler_security_configuration
    }
    /// <p>Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
    pub fn lake_formation_configuration(mut self, input: crate::types::LakeFormationConfiguration) -> Self {
        self.lake_formation_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
    pub fn set_lake_formation_configuration(mut self, input: ::std::option::Option<crate::types::LakeFormationConfiguration>) -> Self {
        self.lake_formation_configuration = input;
        self
    }
    /// <p>Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.</p>
    pub fn get_lake_formation_configuration(&self) -> &::std::option::Option<crate::types::LakeFormationConfiguration> {
        &self.lake_formation_configuration
    }
    /// Consumes the builder and constructs a [`Crawler`](crate::types::Crawler).
    pub fn build(self) -> crate::types::Crawler {
        crate::types::Crawler {
            name: self.name,
            role: self.role,
            targets: self.targets,
            database_name: self.database_name,
            description: self.description,
            classifiers: self.classifiers,
            recrawl_policy: self.recrawl_policy,
            schema_change_policy: self.schema_change_policy,
            lineage_configuration: self.lineage_configuration,
            state: self.state,
            table_prefix: self.table_prefix,
            schedule: self.schedule,
            crawl_elapsed_time: self.crawl_elapsed_time.unwrap_or_default(),
            creation_time: self.creation_time,
            last_updated: self.last_updated,
            last_crawl: self.last_crawl,
            version: self.version.unwrap_or_default(),
            configuration: self.configuration,
            crawler_security_configuration: self.crawler_security_configuration,
            lake_formation_configuration: self.lake_formation_configuration,
        }
    }
}