Class CfnCrawler.DynamoDBTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnCrawler.DynamoDBTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCrawler.DynamoDBTargetProperty>
- Enclosing interface:
CfnCrawler.DynamoDBTargetProperty
@Stability(Stable)
public static final class CfnCrawler.DynamoDBTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCrawler.DynamoDBTargetProperty>
A builder for
CfnCrawler.DynamoDBTargetProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnCrawler.DynamoDBTargetProperty.getPath()
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanAll()
scanAll
(IResolvable scanAll) Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanAll()
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getPath()
- Parameters:
path
- The name of the DynamoDB table to crawl.- Returns:
this
-
scanAll
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanAll()
- Parameters:
scanAll
- Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.A value of
true
means to scan all records, while a value offalse
means to sample the records. If no value is specified, the value defaults totrue
.- Returns:
this
-
scanAll
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanAll()
- Parameters:
scanAll
- Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.A value of
true
means to scan all records, while a value offalse
means to sample the records. If no value is specified, the value defaults totrue
.- Returns:
this
-
scanRate
Sets the value ofCfnCrawler.DynamoDBTargetProperty.getScanRate()
- Parameters:
scanRate
- The percentage of the configured read capacity units to use by the AWS Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCrawler.DynamoDBTargetProperty>
- Returns:
- a new instance of
CfnCrawler.DynamoDBTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-