Class CfnCrawlerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.glue.CfnCrawlerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawlerMixinProps>
- Enclosing interface:
CfnCrawlerMixinProps
@Stability(Stable)
public static final class CfnCrawlerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrawlerMixinProps>
A builder for
CfnCrawlerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.classifiers(List<String> classifiers) Sets the value ofCfnCrawlerMixinProps.getClassifiers()configuration(String configuration) Sets the value ofCfnCrawlerMixinProps.getConfiguration()crawlerSecurityConfiguration(String crawlerSecurityConfiguration) Sets the value ofCfnCrawlerMixinProps.getCrawlerSecurityConfiguration()databaseName(String databaseName) Sets the value ofCfnCrawlerMixinProps.getDatabaseName()databaseName(IBucketRef databaseName) Sets the value ofCfnCrawlerMixinProps.getDatabaseName()description(String description) Sets the value ofCfnCrawlerMixinProps.getDescription()lakeFormationConfiguration(CfnCrawlerPropsMixin.LakeFormationConfigurationProperty lakeFormationConfiguration) Sets the value ofCfnCrawlerMixinProps.getLakeFormationConfiguration()lakeFormationConfiguration(IResolvable lakeFormationConfiguration) Sets the value ofCfnCrawlerMixinProps.getLakeFormationConfiguration()Sets the value ofCfnCrawlerMixinProps.getName()recrawlPolicy(CfnCrawlerPropsMixin.RecrawlPolicyProperty recrawlPolicy) Sets the value ofCfnCrawlerMixinProps.getRecrawlPolicy()recrawlPolicy(IResolvable recrawlPolicy) Sets the value ofCfnCrawlerMixinProps.getRecrawlPolicy()Sets the value ofCfnCrawlerMixinProps.getRole()Sets the value ofCfnCrawlerMixinProps.getRole()Sets the value ofCfnCrawlerMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnCrawlerMixinProps.getSchedule()schemaChangePolicy(CfnCrawlerPropsMixin.SchemaChangePolicyProperty schemaChangePolicy) Sets the value ofCfnCrawlerMixinProps.getSchemaChangePolicy()schemaChangePolicy(IResolvable schemaChangePolicy) Sets the value ofCfnCrawlerMixinProps.getSchemaChangePolicy()tablePrefix(String tablePrefix) Sets the value ofCfnCrawlerMixinProps.getTablePrefix()Sets the value ofCfnCrawlerMixinProps.getTags()Sets the value ofCfnCrawlerMixinProps.getTargets()targets(IResolvable targets) Sets the value ofCfnCrawlerMixinProps.getTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
classifiers
Sets the value ofCfnCrawlerMixinProps.getClassifiers()- Parameters:
classifiers- A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.- Returns:
this
-
configuration
Sets the value ofCfnCrawlerMixinProps.getConfiguration()- Parameters:
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 .- Returns:
this
-
crawlerSecurityConfiguration
@Stability(Stable) public CfnCrawlerMixinProps.Builder crawlerSecurityConfiguration(String crawlerSecurityConfiguration) Sets the value ofCfnCrawlerMixinProps.getCrawlerSecurityConfiguration()- Parameters:
crawlerSecurityConfiguration- The name of theSecurityConfigurationstructure to be used by this crawler.- Returns:
this
-
databaseName
Sets the value ofCfnCrawlerMixinProps.getDatabaseName()- Parameters:
databaseName- The name of the database in which the crawler's output is stored.- Returns:
this
-
databaseName
Sets the value ofCfnCrawlerMixinProps.getDatabaseName()- Parameters:
databaseName- The name of the database in which the crawler's output is stored.- Returns:
this
-
description
Sets the value ofCfnCrawlerMixinProps.getDescription()- Parameters:
description- A description of the crawler.- Returns:
this
-
lakeFormationConfiguration
@Stability(Stable) public CfnCrawlerMixinProps.Builder lakeFormationConfiguration(IResolvable lakeFormationConfiguration) Sets the value ofCfnCrawlerMixinProps.getLakeFormationConfiguration()- Parameters:
lakeFormationConfiguration- Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.- Returns:
this
-
lakeFormationConfiguration
@Stability(Stable) public CfnCrawlerMixinProps.Builder lakeFormationConfiguration(CfnCrawlerPropsMixin.LakeFormationConfigurationProperty lakeFormationConfiguration) Sets the value ofCfnCrawlerMixinProps.getLakeFormationConfiguration()- Parameters:
lakeFormationConfiguration- Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.- Returns:
this
-
name
Sets the value ofCfnCrawlerMixinProps.getName()- Parameters:
name- The name of the crawler.- Returns:
this
-
recrawlPolicy
Sets the value ofCfnCrawlerMixinProps.getRecrawlPolicy()- 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.- Returns:
this
-
recrawlPolicy
@Stability(Stable) public CfnCrawlerMixinProps.Builder recrawlPolicy(CfnCrawlerPropsMixin.RecrawlPolicyProperty recrawlPolicy) Sets the value ofCfnCrawlerMixinProps.getRecrawlPolicy()- 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.- Returns:
this
-
role
Sets the value ofCfnCrawlerMixinProps.getRole()- 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.- Returns:
this
-
role
Sets the value ofCfnCrawlerMixinProps.getRole()- 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.- Returns:
this
-
schedule
Sets the value ofCfnCrawlerMixinProps.getSchedule()- Parameters:
schedule- For scheduled crawlers, the schedule when the crawler runs.- Returns:
this
-
schedule
@Stability(Stable) public CfnCrawlerMixinProps.Builder schedule(CfnCrawlerPropsMixin.ScheduleProperty schedule) Sets the value ofCfnCrawlerMixinProps.getSchedule()- Parameters:
schedule- For scheduled crawlers, the schedule when the crawler runs.- Returns:
this
-
schemaChangePolicy
@Stability(Stable) public CfnCrawlerMixinProps.Builder schemaChangePolicy(IResolvable schemaChangePolicy) Sets the value ofCfnCrawlerMixinProps.getSchemaChangePolicy()- Parameters:
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. TheSchemaChangePolicydoes not affect whether or how new tables and partitions are added. New tables and partitions are always created regardless of theSchemaChangePolicyon a crawler.The SchemaChangePolicy consists of two components,
UpdateBehaviorandDeleteBehavior.- Returns:
this
-
schemaChangePolicy
@Stability(Stable) public CfnCrawlerMixinProps.Builder schemaChangePolicy(CfnCrawlerPropsMixin.SchemaChangePolicyProperty schemaChangePolicy) Sets the value ofCfnCrawlerMixinProps.getSchemaChangePolicy()- Parameters:
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. TheSchemaChangePolicydoes not affect whether or how new tables and partitions are added. New tables and partitions are always created regardless of theSchemaChangePolicyon a crawler.The SchemaChangePolicy consists of two components,
UpdateBehaviorandDeleteBehavior.- Returns:
this
-
tablePrefix
Sets the value ofCfnCrawlerMixinProps.getTablePrefix()- Parameters:
tablePrefix- The prefix added to the names of tables that are created.- Returns:
this
-
tags
Sets the value ofCfnCrawlerMixinProps.getTags()- Parameters:
tags- The tags to use with this crawler.- Returns:
this
-
targets
Sets the value ofCfnCrawlerMixinProps.getTargets()- Parameters:
targets- A collection of targets to crawl.- Returns:
this
-
targets
@Stability(Stable) public CfnCrawlerMixinProps.Builder targets(CfnCrawlerPropsMixin.TargetsProperty targets) Sets the value ofCfnCrawlerMixinProps.getTargets()- Parameters:
targets- A collection of targets to crawl.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCrawlerMixinProps>- Returns:
- a new instance of
CfnCrawlerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-