Class CfnCrawler.S3TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnCrawler.S3TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawler.S3TargetProperty>
- Enclosing interface:
CfnCrawler.S3TargetProperty
@Stability(Stable)
public static final class CfnCrawler.S3TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrawler.S3TargetProperty>
A builder for
CfnCrawler.S3TargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionName
(String connectionName) Sets the value ofCfnCrawler.S3TargetProperty.getConnectionName()
dlqEventQueueArn
(String dlqEventQueueArn) Sets the value ofCfnCrawler.S3TargetProperty.getDlqEventQueueArn()
eventQueueArn
(String eventQueueArn) Sets the value ofCfnCrawler.S3TargetProperty.getEventQueueArn()
exclusions
(List<String> exclusions) Sets the value ofCfnCrawler.S3TargetProperty.getExclusions()
Sets the value ofCfnCrawler.S3TargetProperty.getPath()
sampleSize
(Number sampleSize) Sets the value ofCfnCrawler.S3TargetProperty.getSampleSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionName
Sets the value ofCfnCrawler.S3TargetProperty.getConnectionName()
- Parameters:
connectionName
- The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).- Returns:
this
-
dlqEventQueueArn
@Stability(Stable) public CfnCrawler.S3TargetProperty.Builder dlqEventQueueArn(String dlqEventQueueArn) Sets the value ofCfnCrawler.S3TargetProperty.getDlqEventQueueArn()
- Parameters:
dlqEventQueueArn
- A valid Amazon dead-letter SQS ARN. For example,arn:aws:sqs:region:account:deadLetterQueue
.- Returns:
this
-
eventQueueArn
Sets the value ofCfnCrawler.S3TargetProperty.getEventQueueArn()
- Parameters:
eventQueueArn
- A valid Amazon SQS ARN. For example,arn:aws:sqs:region:account:sqs
.- Returns:
this
-
exclusions
Sets the value ofCfnCrawler.S3TargetProperty.getExclusions()
- Parameters:
exclusions
- A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler .- Returns:
this
-
path
Sets the value ofCfnCrawler.S3TargetProperty.getPath()
- Parameters:
path
- The path to the Amazon S3 target.- Returns:
this
-
sampleSize
Sets the value ofCfnCrawler.S3TargetProperty.getSampleSize()
- Parameters:
sampleSize
- Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrawler.S3TargetProperty>
- Returns:
- a new instance of
CfnCrawler.S3TargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-