@Generated(value="software.amazon.awssdk:codegen") public final class Crawler extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Crawler.Builder,Crawler>
Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metadata concerning the data source in the Glue Data Catalog.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Crawler.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Crawler.Builder |
builder() |
List<String> |
classifiers()
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
|
String |
configuration()
Crawler configuration information.
|
Long |
crawlElapsedTime()
If the crawler is running, contains the total time elapsed since the last crawl began.
|
String |
crawlerSecurityConfiguration()
The name of the
SecurityConfiguration structure to be used by this crawler. |
Instant |
creationTime()
The time that the crawler was created.
|
String |
databaseName()
The name of the database in which the crawler's output is stored.
|
String |
description()
A description of the crawler.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasClassifiers()
For responses, this returns true if the service returned a value for the Classifiers property.
|
int |
hashCode() |
LakeFormationConfiguration |
lakeFormationConfiguration()
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role
credentials.
|
LastCrawlInfo |
lastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
|
Instant |
lastUpdated()
The time that the crawler was last updated.
|
LineageConfiguration |
lineageConfiguration()
A configuration that specifies whether data lineage is enabled for the crawler.
|
String |
name()
The name of the crawler.
|
RecrawlPolicy |
recrawlPolicy()
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since
the last crawler run.
|
String |
role()
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.
|
Schedule |
schedule()
For scheduled crawlers, the schedule when the crawler runs.
|
SchemaChangePolicy |
schemaChangePolicy()
The policy that specifies update and delete behaviors for the crawler.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Crawler.Builder> |
serializableBuilderClass() |
CrawlerState |
state()
Indicates whether the crawler is running, or whether a run is pending.
|
String |
stateAsString()
Indicates whether the crawler is running, or whether a run is pending.
|
String |
tablePrefix()
The prefix added to the names of tables that are created.
|
CrawlerTargets |
targets()
A collection of targets to crawl.
|
Crawler.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Long |
version()
The version of the crawler.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the crawler.
public final String role()
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.
public final CrawlerTargets targets()
A collection of targets to crawl.
public final String databaseName()
The name of the database in which the crawler's output is stored.
public final String description()
A description of the crawler.
public final boolean hasClassifiers()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> classifiers()
A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasClassifiers() method.
public final RecrawlPolicy recrawlPolicy()
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
public final SchemaChangePolicy schemaChangePolicy()
The policy that specifies update and delete behaviors for the crawler.
public final LineageConfiguration lineageConfiguration()
A configuration that specifies whether data lineage is enabled for the crawler.
public final CrawlerState state()
Indicates whether the crawler is running, or whether a run is pending.
If the service returns an enum value that is not available in the current SDK version, state will return
CrawlerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CrawlerStatepublic final String stateAsString()
Indicates whether the crawler is running, or whether a run is pending.
If the service returns an enum value that is not available in the current SDK version, state will return
CrawlerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
CrawlerStatepublic final String tablePrefix()
The prefix added to the names of tables that are created.
public final Schedule schedule()
For scheduled crawlers, the schedule when the crawler runs.
public final Long crawlElapsedTime()
If the crawler is running, contains the total time elapsed since the last crawl began.
public final Instant creationTime()
The time that the crawler was created.
public final Instant lastUpdated()
The time that the crawler was last updated.
public final LastCrawlInfo lastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
public final Long version()
The version of the crawler.
public final String configuration()
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
public final String crawlerSecurityConfiguration()
The name of the SecurityConfiguration structure to be used by this crawler.
SecurityConfiguration structure to be used by this crawler.public final LakeFormationConfiguration lakeFormationConfiguration()
Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.
public Crawler.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Crawler.Builder,Crawler>public static Crawler.Builder builder()
public static Class<? extends Crawler.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.