@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 AWS 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 custom classifiers 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 when the crawler was created.
|
String |
databaseName()
The database where metadata is written by this crawler.
|
String |
description()
A description of the crawler.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
LastCrawlInfo |
lastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
|
Instant |
lastUpdated()
The time the crawler was last updated.
|
String |
name()
The crawler name.
|
String |
role()
The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.
|
Schedule |
schedule()
For scheduled crawlers, the schedule when the crawler runs.
|
SchemaChangePolicy |
schemaChangePolicy()
Sets the behavior when the crawler finds a changed or deleted object.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
version()
The version of the crawler.
|
copy
public String name()
The crawler name.
public String role()
The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.
public CrawlerTargets targets()
A collection of targets to crawl.
public String databaseName()
The database where metadata is written by this crawler.
public String description()
A description of the crawler.
public List<String> classifiers()
A list of custom classifiers associated with the crawler.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public SchemaChangePolicy schemaChangePolicy()
Sets the behavior when the crawler finds a changed or deleted object.
public 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()
.
CrawlerState
public 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()
.
CrawlerState
public String tablePrefix()
The prefix added to the names of tables that are created.
public Schedule schedule()
For scheduled crawlers, the schedule when the crawler runs.
public Long crawlElapsedTime()
If the crawler is running, contains the total time elapsed since the last crawl began.
public Instant creationTime()
The time when the crawler was created.
public Instant lastUpdated()
The time the crawler was last updated.
public LastCrawlInfo lastCrawl()
The status of the last crawl, and potentially error information if an error occurred.
public Long version()
The version of the crawler.
public String configuration()
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler.
public String crawlerSecurityConfiguration()
The name of the SecurityConfiguration structure to be used by this Crawler.
public Crawler.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Crawler.Builder,Crawler>
public static Crawler.Builder builder()
public static Class<? extends Crawler.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.