AWS::Glue::CrawlerThe `AWS::Glue::Crawler` resource specifies an AWS Glue crawler. For more information, see [Cataloging Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html) and [Crawler Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-crawling.html#aws-glue-api-crawler-crawling-Crawler) in the *AWS Glue Developer Guide* .
import { CfnCrawler } from 'aws-cdk-lib/aws-glue';Or use the module namespace:
import * as glue from 'aws-cdk-lib/aws-glue';
// glue.CfnCrawlerConfiguration passed to the constructor as CfnCrawlerProps.
roleRequiredstring | IRoleRefThe Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.
targetsRequiredIResolvable | TargetsPropertyA collection of targets to crawl.
classifiersOptionalstring[]A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.
configurationOptionalstringCrawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see [Configuring a Crawler](https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html) .
crawlerSecurityConfigurationOptionalstringThe name of the `SecurityConfiguration` structure to be used by this crawler.
databaseNameOptionalstring | IBucketRefThe name of the database in which the crawler's output is stored.
descriptionOptionalstringA description of the crawler.
lakeFormationConfigurationOptionalIResolvable | LakeFormationConfigurationPropertySpecifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.
nameOptionalstringThe name of the crawler.
recrawlPolicyOptionalIResolvable | RecrawlPolicyPropertyA policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
scheduleOptionalIResolvable | SchedulePropertyFor scheduled crawlers, the schedule when the crawler runs.
schemaChangePolicyOptionalIResolvable | SchemaChangePolicyPropertyThe 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 the `SchemaChangePolicy` on a crawler. The SchemaChangePolicy consists of two components, `UpdateBehavior` and `DeleteBehavior` .
tablePrefixOptionalstringThe prefix added to the names of tables that are created.
tagsOptionalanyThe tags to use with this crawler.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-glueAWS::Glue::Crawler