AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Crawler

import "github.com/aws/aws-sdk-go/service/glue"

type Crawler struct { Classifiers []*string `type:"list"` Configuration *string `type:"string"` CrawlElapsedTime *int64 `type:"long"` CrawlerSecurityConfiguration *string `type:"string"` CreationTime *time.Time `type:"timestamp"` DatabaseName *string `type:"string"` Description *string `type:"string"` LastCrawl *LastCrawlInfo `type:"structure"` LastUpdated *time.Time `type:"timestamp"` Name *string `min:"1" type:"string"` Role *string `type:"string"` Schedule *Schedule `type:"structure"` SchemaChangePolicy *SchemaChangePolicy `type:"structure"` State *string `type:"string" enum:"CrawlerState"` TablePrefix *string `type:"string"` Targets *CrawlerTargets `type:"structure"` Version *int64 `type:"long"` }

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.

Classifiers

Type: []*string

A list of custom classifiers associated with the crawler.

Configuration

Type: *string

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html).

CrawlElapsedTime

Type: *int64

If the crawler is running, contains the total time elapsed since the last crawl began.

CrawlerSecurityConfiguration

Type: *string

The name of the SecurityConfiguration structure to be used by this Crawler.

CreationTime

Type: *time.Time

The time when the crawler was created.

DatabaseName

Type: *string

The database where metadata is written by this crawler.

Description

Type: *string

A description of the crawler.

LastCrawl

Status and error information about the most recent crawl.

LastUpdated

Type: *time.Time

The time the crawler was last updated.

Name

Type: *string

The crawler name.

Role

Type: *string

The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.

Schedule

A scheduling object using a cron statement to schedule an event.

SchemaChangePolicy

Crawler policy for update and deletion behavior.

State

Type: *string

Indicates whether the crawler is running, or whether a run is pending.

TablePrefix

Type: *string

The prefix added to the names of tables that are created.

Targets

Specifies data stores to crawl.

Version

Type: *int64

The version of the crawler.

Method

GoString

func (s Crawler) GoString() string

GoString returns the string representation

SetClassifiers

func (s *Crawler) SetClassifiers(v []*string) *Crawler

SetClassifiers sets the Classifiers field's value.

SetConfiguration

func (s *Crawler) SetConfiguration(v string) *Crawler

SetConfiguration sets the Configuration field's value.

SetCrawlElapsedTime

func (s *Crawler) SetCrawlElapsedTime(v int64) *Crawler

SetCrawlElapsedTime sets the CrawlElapsedTime field's value.

SetCrawlerSecurityConfiguration

func (s *Crawler) SetCrawlerSecurityConfiguration(v string) *Crawler

SetCrawlerSecurityConfiguration sets the CrawlerSecurityConfiguration field's value.

SetCreationTime

func (s *Crawler) SetCreationTime(v time.Time) *Crawler

SetCreationTime sets the CreationTime field's value.

SetDatabaseName

func (s *Crawler) SetDatabaseName(v string) *Crawler

SetDatabaseName sets the DatabaseName field's value.

SetDescription

func (s *Crawler) SetDescription(v string) *Crawler

SetDescription sets the Description field's value.

SetLastCrawl

func (s *Crawler) SetLastCrawl(v *LastCrawlInfo) *Crawler

SetLastCrawl sets the LastCrawl field's value.

SetLastUpdated

func (s *Crawler) SetLastUpdated(v time.Time) *Crawler

SetLastUpdated sets the LastUpdated field's value.

SetName

func (s *Crawler) SetName(v string) *Crawler

SetName sets the Name field's value.

SetRole

func (s *Crawler) SetRole(v string) *Crawler

SetRole sets the Role field's value.

SetSchedule

func (s *Crawler) SetSchedule(v *Schedule) *Crawler

SetSchedule sets the Schedule field's value.

SetSchemaChangePolicy

func (s *Crawler) SetSchemaChangePolicy(v *SchemaChangePolicy) *Crawler

SetSchemaChangePolicy sets the SchemaChangePolicy field's value.

SetState

func (s *Crawler) SetState(v string) *Crawler

SetState sets the State field's value.

SetTablePrefix

func (s *Crawler) SetTablePrefix(v string) *Crawler

SetTablePrefix sets the TablePrefix field's value.

SetTargets

func (s *Crawler) SetTargets(v *CrawlerTargets) *Crawler

SetTargets sets the Targets field's value.

SetVersion

func (s *Crawler) SetVersion(v int64) *Crawler

SetVersion sets the Version field's value.

String

func (s Crawler) String() string

String returns the string representation

On this page: