'AWS CFT Glue add sampling in DynamoDB Target

I have so far Glue Crawler defined in Cloud Formation Template as:

Type: AWS::Glue::Crawler
Properties:
  Name: CrawlerName
  DatabaseName: DBName
  Targets:
    DynamoDBTargets:
      - Path: DynamoDBTableName

How I can turn on enable sampling option available in UI Console, but I do not see it in AWS Documentation of CFT



Solution 1:[1]

I haven't tried this myself, but this might work based on how the aws api for glue is structured

Type: AWS::Glue::Crawler
Properties:
  Name: CrawlerName
  DatabaseName: DBName
  Targets:
    DynamoDBTargets:
      - Path: DynamoDBTableName
      - ScanAll: False

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 velsim