Class CfnCrawler
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Glue::Crawler.
The AWS::Glue::Crawler resource specifies an AWS Glue crawler. For more information, see Cataloging Tables with a Crawler and Crawler Structure in the AWS Glue Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
Object tags;
CfnCrawler cfnCrawler = CfnCrawler.Builder.create(this, "MyCfnCrawler")
.role("role")
.targets(TargetsProperty.builder()
.catalogTargets(List.of(CatalogTargetProperty.builder()
.connectionName("connectionName")
.databaseName("databaseName")
.dlqEventQueueArn("dlqEventQueueArn")
.eventQueueArn("eventQueueArn")
.tables(List.of("tables"))
.build()))
.deltaTargets(List.of(DeltaTargetProperty.builder()
.connectionName("connectionName")
.createNativeDeltaTable(false)
.deltaTables(List.of("deltaTables"))
.writeManifest(false)
.build()))
.dynamoDbTargets(List.of(DynamoDBTargetProperty.builder()
.path("path")
.build()))
.jdbcTargets(List.of(JdbcTargetProperty.builder()
.connectionName("connectionName")
.exclusions(List.of("exclusions"))
.path("path")
.build()))
.mongoDbTargets(List.of(MongoDBTargetProperty.builder()
.connectionName("connectionName")
.path("path")
.build()))
.s3Targets(List.of(S3TargetProperty.builder()
.connectionName("connectionName")
.dlqEventQueueArn("dlqEventQueueArn")
.eventQueueArn("eventQueueArn")
.exclusions(List.of("exclusions"))
.path("path")
.sampleSize(123)
.build()))
.build())
// the properties below are optional
.classifiers(List.of("classifiers"))
.configuration("configuration")
.crawlerSecurityConfiguration("crawlerSecurityConfiguration")
.databaseName("databaseName")
.description("description")
.name("name")
.recrawlPolicy(RecrawlPolicyProperty.builder()
.recrawlBehavior("recrawlBehavior")
.build())
.schedule(ScheduleProperty.builder()
.scheduleExpression("scheduleExpression")
.build())
.schemaChangePolicy(SchemaChangePolicyProperty.builder()
.deleteBehavior("deleteBehavior")
.updateBehavior("updateBehavior")
.build())
.tablePrefix("tablePrefix")
.tags(tags)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCrawler.static interfaceSpecifies an AWS Glue Data Catalog target.static interfaceExample:static interfaceSpecifies an Amazon DynamoDB table to crawl.static interfaceSpecifies a JDBC data store to crawl.static interfaceSpecifies an Amazon DocumentDB or MongoDB data store to crawl.static interfaceWhen crawling an Amazon S3 data source after the first crawl is complete, specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.static interfaceSpecifies a data store in Amazon Simple Storage Service (Amazon S3).static interfaceA scheduling object using acronstatement to schedule an event.static interfaceThe policy that specifies update and delete behaviors for the crawler.static interfaceSpecifies data stores to crawl.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnCrawler(Construct scope, String id, CfnCrawlerProps props) Create a newAWS::Glue::Crawler.protectedCfnCrawler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCrawler(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.Crawler configuration information.The name of theSecurityConfigurationstructure to be used by this crawler.The name of the database in which the crawler's output is stored.A description of the crawler.getName()The name of the crawler.A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.getRole()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.For scheduled crawlers, the schedule when the crawler runs.The policy that specifies update and delete behaviors for the crawler.The prefix added to the names of tables that are created.getTags()The tags to use with this crawler.A collection of targets to crawl.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetClassifiers(List<String> value) A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.voidsetConfiguration(String value) Crawler configuration information.voidThe name of theSecurityConfigurationstructure to be used by this crawler.voidsetDatabaseName(String value) The name of the database in which the crawler's output is stored.voidsetDescription(String value) A description of the crawler.voidThe name of the crawler.voidsetRecrawlPolicy(IResolvable value) A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.voidA policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.voidThe Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.voidsetSchedule(IResolvable value) For scheduled crawlers, the schedule when the crawler runs.voidFor scheduled crawlers, the schedule when the crawler runs.voidsetSchemaChangePolicy(IResolvable value) The policy that specifies update and delete behaviors for the crawler.voidThe policy that specifies update and delete behaviors for the crawler.voidsetTablePrefix(String value) The prefix added to the names of tables that are created.voidsetTargets(IResolvable value) A collection of targets to crawl.voidA collection of targets to crawl.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCrawler
protected CfnCrawler(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCrawler
protected CfnCrawler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCrawler
@Stability(Stable) public CfnCrawler(@NotNull Construct scope, @NotNull String id, @NotNull CfnCrawlerProps props) Create a newAWS::Glue::Crawler.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags to use with this crawler. -
getRole
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. -
setRole
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. -
getTargets
A collection of targets to crawl. -
setTargets
A collection of targets to crawl. -
setTargets
A collection of targets to crawl. -
getClassifiers
A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler. -
setClassifiers
A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler. -
getConfiguration
Crawler configuration information.This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler .
-
setConfiguration
Crawler configuration information.This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler .
-
getCrawlerSecurityConfiguration
The name of theSecurityConfigurationstructure to be used by this crawler. -
setCrawlerSecurityConfiguration
The name of theSecurityConfigurationstructure to be used by this crawler. -
getDatabaseName
The name of the database in which the crawler's output is stored. -
setDatabaseName
The name of the database in which the crawler's output is stored. -
getDescription
A description of the crawler. -
setDescription
A description of the crawler. -
getName
The name of the crawler. -
setName
The name of the crawler. -
getRecrawlPolicy
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run. -
setRecrawlPolicy
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run. -
setRecrawlPolicy
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run. -
getSchedule
For scheduled crawlers, the schedule when the crawler runs. -
setSchedule
For scheduled crawlers, the schedule when the crawler runs. -
setSchedule
For scheduled crawlers, the schedule when the crawler runs. -
getSchemaChangePolicy
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. The
SchemaChangePolicydoes 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. -
setSchemaChangePolicy
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. The
SchemaChangePolicydoes 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. -
setSchemaChangePolicy
@Stability(Stable) public void setSchemaChangePolicy(@Nullable CfnCrawler.SchemaChangePolicyProperty value) 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. The
SchemaChangePolicydoes 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. -
getTablePrefix
The prefix added to the names of tables that are created. -
setTablePrefix
The prefix added to the names of tables that are created.
-