Struct aws_sdk_glue::model::crawler::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Crawler.
Implementations§
source§impl Builder
impl Builder
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
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.
sourcepub fn targets(self, input: CrawlerTargets) -> Self
pub fn targets(self, input: CrawlerTargets) -> Self
A collection of targets to crawl.
sourcepub fn set_targets(self, input: Option<CrawlerTargets>) -> Self
pub fn set_targets(self, input: Option<CrawlerTargets>) -> Self
A collection of targets to crawl.
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the database in which the crawler's output is stored.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the database in which the crawler's output is stored.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the crawler.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the crawler.
sourcepub fn classifiers(self, input: impl Into<String>) -> Self
pub fn classifiers(self, input: impl Into<String>) -> Self
Appends an item to classifiers.
To override the contents of this collection use set_classifiers.
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
sourcepub fn set_classifiers(self, input: Option<Vec<String>>) -> Self
pub fn set_classifiers(self, input: Option<Vec<String>>) -> Self
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
sourcepub fn recrawl_policy(self, input: RecrawlPolicy) -> Self
pub fn recrawl_policy(self, input: RecrawlPolicy) -> Self
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
sourcepub fn set_recrawl_policy(self, input: Option<RecrawlPolicy>) -> Self
pub fn set_recrawl_policy(self, input: Option<RecrawlPolicy>) -> Self
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
sourcepub fn schema_change_policy(self, input: SchemaChangePolicy) -> Self
pub fn schema_change_policy(self, input: SchemaChangePolicy) -> Self
The policy that specifies update and delete behaviors for the crawler.
sourcepub fn set_schema_change_policy(self, input: Option<SchemaChangePolicy>) -> Self
pub fn set_schema_change_policy(self, input: Option<SchemaChangePolicy>) -> Self
The policy that specifies update and delete behaviors for the crawler.
sourcepub fn lineage_configuration(self, input: LineageConfiguration) -> Self
pub fn lineage_configuration(self, input: LineageConfiguration) -> Self
A configuration that specifies whether data lineage is enabled for the crawler.
sourcepub fn set_lineage_configuration(
self,
input: Option<LineageConfiguration>
) -> Self
pub fn set_lineage_configuration(
self,
input: Option<LineageConfiguration>
) -> Self
A configuration that specifies whether data lineage is enabled for the crawler.
sourcepub fn state(self, input: CrawlerState) -> Self
pub fn state(self, input: CrawlerState) -> Self
Indicates whether the crawler is running, or whether a run is pending.
sourcepub fn set_state(self, input: Option<CrawlerState>) -> Self
pub fn set_state(self, input: Option<CrawlerState>) -> Self
Indicates whether the crawler is running, or whether a run is pending.
sourcepub fn table_prefix(self, input: impl Into<String>) -> Self
pub fn table_prefix(self, input: impl Into<String>) -> Self
The prefix added to the names of tables that are created.
sourcepub fn set_table_prefix(self, input: Option<String>) -> Self
pub fn set_table_prefix(self, input: Option<String>) -> Self
The prefix added to the names of tables that are created.
sourcepub fn schedule(self, input: Schedule) -> Self
pub fn schedule(self, input: Schedule) -> Self
For scheduled crawlers, the schedule when the crawler runs.
sourcepub fn set_schedule(self, input: Option<Schedule>) -> Self
pub fn set_schedule(self, input: Option<Schedule>) -> Self
For scheduled crawlers, the schedule when the crawler runs.
sourcepub fn crawl_elapsed_time(self, input: i64) -> Self
pub fn crawl_elapsed_time(self, input: i64) -> Self
If the crawler is running, contains the total time elapsed since the last crawl began.
sourcepub fn set_crawl_elapsed_time(self, input: Option<i64>) -> Self
pub fn set_crawl_elapsed_time(self, input: Option<i64>) -> Self
If the crawler is running, contains the total time elapsed since the last crawl began.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time that the crawler was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time that the crawler was created.
sourcepub fn last_updated(self, input: DateTime) -> Self
pub fn last_updated(self, input: DateTime) -> Self
The time that the crawler was last updated.
sourcepub fn set_last_updated(self, input: Option<DateTime>) -> Self
pub fn set_last_updated(self, input: Option<DateTime>) -> Self
The time that the crawler was last updated.
sourcepub fn last_crawl(self, input: LastCrawlInfo) -> Self
pub fn last_crawl(self, input: LastCrawlInfo) -> Self
The status of the last crawl, and potentially error information if an error occurred.
sourcepub fn set_last_crawl(self, input: Option<LastCrawlInfo>) -> Self
pub fn set_last_crawl(self, input: Option<LastCrawlInfo>) -> Self
The status of the last crawl, and potentially error information if an error occurred.
sourcepub fn set_version(self, input: Option<i64>) -> Self
pub fn set_version(self, input: Option<i64>) -> Self
The version of the crawler.
sourcepub fn configuration(self, input: impl Into<String>) -> Self
pub fn configuration(self, input: impl Into<String>) -> Self
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
sourcepub fn set_configuration(self, input: Option<String>) -> Self
pub fn set_configuration(self, input: Option<String>) -> Self
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
sourcepub fn crawler_security_configuration(self, input: impl Into<String>) -> Self
pub fn crawler_security_configuration(self, input: impl Into<String>) -> Self
The name of the SecurityConfiguration structure to be used by this crawler.
sourcepub fn set_crawler_security_configuration(self, input: Option<String>) -> Self
pub fn set_crawler_security_configuration(self, input: Option<String>) -> Self
The name of the SecurityConfiguration structure to be used by this crawler.
sourcepub fn lake_formation_configuration(
self,
input: LakeFormationConfiguration
) -> Self
pub fn lake_formation_configuration(
self,
input: LakeFormationConfiguration
) -> Self
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.
sourcepub fn set_lake_formation_configuration(
self,
input: Option<LakeFormationConfiguration>
) -> Self
pub fn set_lake_formation_configuration(
self,
input: Option<LakeFormationConfiguration>
) -> Self
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.