Class CfnCrawler
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.glue.CfnCrawler
- All Implemented Interfaces:
IInspectable,ICrawlerRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:37.463Z")
@Stability(Stable)
public class CfnCrawler
extends CfnResource
implements IInspectable, ICrawlerRef, ITaggable
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")
.scanAll(false)
.scanRate(123)
.build()))
.hudiTargets(List.of(HudiTargetProperty.builder()
.connectionName("connectionName")
.exclusions(List.of("exclusions"))
.maximumTraversalDepth(123)
.paths(List.of("paths"))
.build()))
.icebergTargets(List.of(IcebergTargetProperty.builder()
.connectionName("connectionName")
.exclusions(List.of("exclusions"))
.maximumTraversalDepth(123)
.paths(List.of("paths"))
.build()))
.jdbcTargets(List.of(JdbcTargetProperty.builder()
.connectionName("connectionName")
.enableAdditionalMetadata(List.of("enableAdditionalMetadata"))
.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")
.lakeFormationConfiguration(LakeFormationConfigurationProperty.builder()
.accountId("accountId")
.useLakeFormationCredentials(false)
.build())
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCrawler.static interfaceSpecifies an AWS Glue Data Catalog target.static interfaceSpecifies a Delta data store to crawl one or more Delta tables.static interfaceSpecifies an Amazon DynamoDB table to crawl.static interfaceSpecifies an Apache Hudi data source.static interfaceSpecifies Apache Iceberg data store targets.static interfaceSpecifies a JDBC data store to crawl.static interfaceSpecifies AWS Lake Formation configuration settings for the crawler.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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.glue.ICrawlerRef
ICrawlerRef.Jsii$Default, ICrawlerRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCrawler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCrawler(software.amazon.jsii.JsiiObjectRef objRef) CfnCrawler(software.constructs.Construct scope, String id, CfnCrawlerProps props) Create a newAWS::Glue::Crawler. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForCrawler(ICrawlerRef resource) static ICrawlerReffromCrawlerName(software.constructs.Construct scope, String id, String crawlerName) Creates a new ICrawlerRef from a crawlerName.A list of UTF-8 strings that specify the names of custom classifiers that are associated with the crawler.Crawler configuration information.A reference to a Crawler resource.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.Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.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()Tag Manager which manages the tags for this resource.The tags to use with this crawler.A collection of targets to crawl.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnCrawler.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.voidSpecifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.voidSpecifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.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.voidsetTagsRaw(Object value) The tags to use with this crawler.voidsetTargets(IResolvable value) A collection of targets to crawl.voidA collection of targets to crawl.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnCrawlerProps props) Create a newAWS::Glue::Crawler.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForCrawler
- Parameters:
resource- This parameter is required.
-
fromCrawlerName
@Stability(Stable) @NotNull public static ICrawlerRef fromCrawlerName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String crawlerName) Creates a new ICrawlerRef from a crawlerName.- Parameters:
scope- This parameter is required.id- This parameter is required.crawlerName- This parameter is required.
-
isCfnCrawler
Checks whether the given object is a CfnCrawler.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
-
getCrawlerRef
A reference to a Crawler resource.- Specified by:
getCrawlerRefin interfaceICrawlerRef
-
getTags
Tag Manager which manages the tags for this resource. -
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.Returns union: either
IResolvableorCfnCrawler.TargetsProperty -
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. -
setConfiguration
Crawler configuration information. -
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. -
getLakeFormationConfiguration
Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials.Returns union: either
IResolvableorCfnCrawler.LakeFormationConfigurationProperty -
setLakeFormationConfiguration
Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials. -
setLakeFormationConfiguration
@Stability(Stable) public void setLakeFormationConfiguration(@Nullable CfnCrawler.LakeFormationConfigurationProperty value) Specifies whether the crawler should use AWS Lake Formation credentials for the crawler instead of the IAM role credentials. -
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.Returns union: either
IResolvableorCfnCrawler.RecrawlPolicyProperty -
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.Returns union: either
IResolvableorCfnCrawler.ScheduleProperty -
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.Returns union: either
IResolvableorCfnCrawler.SchemaChangePolicyProperty -
setSchemaChangePolicy
The policy that specifies update and delete behaviors for the crawler. -
setSchemaChangePolicy
@Stability(Stable) public void setSchemaChangePolicy(@Nullable CfnCrawler.SchemaChangePolicyProperty value) The policy that specifies update and delete behaviors for the crawler. -
getTablePrefix
The prefix added to the names of tables that are created. -
setTablePrefix
The prefix added to the names of tables that are created. -
getTagsRaw
The tags to use with this crawler. -
setTagsRaw
The tags to use with this crawler.
-