Class CfnCrawler.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawler>
- Enclosing class:
CfnCrawler
CfnCrawler
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
classifiers
(List<String> classifiers) A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.configuration
(String configuration) Crawler configuration information.crawlerSecurityConfiguration
(String crawlerSecurityConfiguration) The name of theSecurityConfiguration
structure to be used by this crawler.static CfnCrawler.Builder
databaseName
(String databaseName) The name of the database in which the crawler's output is stored.description
(String description) A description of the crawler.lakeFormationConfiguration
(IResolvable lakeFormationConfiguration) Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.lakeFormationConfiguration
(CfnCrawler.LakeFormationConfigurationProperty lakeFormationConfiguration) Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.The name of the crawler.recrawlPolicy
(IResolvable recrawlPolicy) A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.recrawlPolicy
(CfnCrawler.RecrawlPolicyProperty recrawlPolicy) A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.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.schedule
(IResolvable schedule) For scheduled crawlers, the schedule when the crawler runs.schedule
(CfnCrawler.ScheduleProperty schedule) For scheduled crawlers, the schedule when the crawler runs.schemaChangePolicy
(IResolvable schemaChangePolicy) The policy that specifies update and delete behaviors for the crawler.schemaChangePolicy
(CfnCrawler.SchemaChangePolicyProperty schemaChangePolicy) The policy that specifies update and delete behaviors for the crawler.tablePrefix
(String tablePrefix) The prefix added to the names of tables that are created.The tags to use with this crawler.targets
(IResolvable targets) A collection of targets to crawl.targets
(CfnCrawler.TargetsProperty targets) A collection of targets to crawl.
-
Method Details
-
create
@Stability(Stable) public static CfnCrawler.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCrawler.Builder
.
-
role
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.- Parameters:
role
- 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. This parameter is required.- Returns:
this
- See Also:
-
targets
A collection of targets to crawl.- Parameters:
targets
- A collection of targets to crawl. This parameter is required.- Returns:
this
- See Also:
-
targets
A collection of targets to crawl.- Parameters:
targets
- A collection of targets to crawl. This parameter is required.- Returns:
this
- See Also:
-
classifiers
A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.- Parameters:
classifiers
- A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler. This parameter is required.- Returns:
this
- See Also:
-
configuration
Crawler configuration information.This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler .
- Parameters:
configuration
- Crawler configuration information. This parameter is required.- Returns:
this
- See Also:
-
crawlerSecurityConfiguration
@Stability(Stable) public CfnCrawler.Builder crawlerSecurityConfiguration(String crawlerSecurityConfiguration) The name of theSecurityConfiguration
structure to be used by this crawler.- Parameters:
crawlerSecurityConfiguration
- The name of theSecurityConfiguration
structure to be used by this crawler. This parameter is required.- Returns:
this
- See Also:
-
databaseName
The name of the database in which the crawler's output is stored.- Parameters:
databaseName
- The name of the database in which the crawler's output is stored. This parameter is required.- Returns:
this
- See Also:
-
description
A description of the crawler.- Parameters:
description
- A description of the crawler. This parameter is required.- Returns:
this
- See Also:
-
lakeFormationConfiguration
@Stability(Stable) public CfnCrawler.Builder lakeFormationConfiguration(IResolvable lakeFormationConfiguration) Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.- Parameters:
lakeFormationConfiguration
- Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials. This parameter is required.- Returns:
this
- See Also:
-
lakeFormationConfiguration
@Stability(Stable) public CfnCrawler.Builder lakeFormationConfiguration(CfnCrawler.LakeFormationConfigurationProperty lakeFormationConfiguration) Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.- Parameters:
lakeFormationConfiguration
- Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the crawler.- Parameters:
name
- The name of the crawler. This parameter is required.- Returns:
this
- See Also:
-
recrawlPolicy
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.- Parameters:
recrawlPolicy
- A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run. This parameter is required.- Returns:
this
- See Also:
-
recrawlPolicy
@Stability(Stable) public CfnCrawler.Builder recrawlPolicy(CfnCrawler.RecrawlPolicyProperty recrawlPolicy) A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.- Parameters:
recrawlPolicy
- A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run. This parameter is required.- Returns:
this
- See Also:
-
schedule
For scheduled crawlers, the schedule when the crawler runs.- Parameters:
schedule
- For scheduled crawlers, the schedule when the crawler runs. This parameter is required.- Returns:
this
- See Also:
-
schedule
For scheduled crawlers, the schedule when the crawler runs.- Parameters:
schedule
- For scheduled crawlers, the schedule when the crawler runs. This parameter is required.- Returns:
this
- See Also:
-
schemaChangePolicy
The policy that specifies update and delete behaviors for the crawler.The policy tells the crawler what to do in the event that it detects a change in a table that already exists in the customer's database at the time of the crawl. The
SchemaChangePolicy
does not affect whether or how new tables and partitions are added. New tables and partitions are always created regardless of theSchemaChangePolicy
on a crawler.The SchemaChangePolicy consists of two components,
UpdateBehavior
andDeleteBehavior
.- Parameters:
schemaChangePolicy
- The policy that specifies update and delete behaviors for the crawler. This parameter is required.- Returns:
this
- See Also:
-
schemaChangePolicy
@Stability(Stable) public CfnCrawler.Builder schemaChangePolicy(CfnCrawler.SchemaChangePolicyProperty schemaChangePolicy) The policy that specifies update and delete behaviors for the crawler.The policy tells the crawler what to do in the event that it detects a change in a table that already exists in the customer's database at the time of the crawl. The
SchemaChangePolicy
does not affect whether or how new tables and partitions are added. New tables and partitions are always created regardless of theSchemaChangePolicy
on a crawler.The SchemaChangePolicy consists of two components,
UpdateBehavior
andDeleteBehavior
.- Parameters:
schemaChangePolicy
- The policy that specifies update and delete behaviors for the crawler. This parameter is required.- Returns:
this
- See Also:
-
tablePrefix
The prefix added to the names of tables that are created.- Parameters:
tablePrefix
- The prefix added to the names of tables that are created. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags to use with this crawler.- Parameters:
tags
- The tags to use with this crawler. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrawler>
- Returns:
- a newly built instance of
CfnCrawler
.
-