@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 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()
Returns true if the Classifiers property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
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.
|
String |
name()
The name of the crawler.
|
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, wait
copy
public String name()
The name of the crawler.
public 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 CrawlerTargets targets()
A collection of targets to crawl.
public String databaseName()
The name of the database in which the crawler's output is stored.
public String description()
A description of the crawler.
public boolean hasClassifiers()
public 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.
You can use hasClassifiers()
to see if a value was sent in this field.
public SchemaChangePolicy schemaChangePolicy()
The policy that specifies update and delete behaviors for the crawler.
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 that the crawler was created.
public Instant lastUpdated()
The time that 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.
SecurityConfiguration
structure to be used by this crawler.public Crawler.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Crawler.Builder,Crawler>
public static Crawler.Builder builder()
public static Class<? extends Crawler.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.