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.

CreateCrawlerInput

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

type CreateCrawlerInput struct { Classifiers []*string `type:"list"` Configuration *string `type:"string"` CrawlerSecurityConfiguration *string `type:"string"` DatabaseName *string `type:"string" required:"true"` Description *string `type:"string"` Name *string `min:"1" type:"string" required:"true"` Role *string `type:"string" required:"true"` Schedule *string `type:"string"` SchemaChangePolicy *SchemaChangePolicy `type:"structure"` TablePrefix *string `type:"string"` Targets *CrawlerTargets `type:"structure" required:"true"` }

Classifiers

Type: []*string

A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.

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).

CrawlerSecurityConfiguration

Type: *string

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

DatabaseName

Type: *string

The AWS Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*.

DatabaseName is a required field

Description

Type: *string

A description of the new crawler.

Name

Type: *string

Name of the new crawler.

Name is a required field

Role

Type: *string

The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.

Role is a required field

Schedule

Type: *string

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html). For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

SchemaChangePolicy

Crawler policy for update and deletion behavior.

TablePrefix

Type: *string

The table prefix used for catalog tables that are created.

Targets

Specifies data stores to crawl.

Method

GoString

func (s CreateCrawlerInput) GoString() string

GoString returns the string representation

SetClassifiers

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

SetClassifiers sets the Classifiers field's value.

SetConfiguration

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

SetConfiguration sets the Configuration field's value.

SetCrawlerSecurityConfiguration

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

SetCrawlerSecurityConfiguration sets the CrawlerSecurityConfiguration field's value.

SetDatabaseName

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

SetDatabaseName sets the DatabaseName field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetName

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

SetName sets the Name field's value.

SetRole

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

SetRole sets the Role field's value.

SetSchedule

func (s *CreateCrawlerInput) SetSchedule(v string) *CreateCrawlerInput

SetSchedule sets the Schedule field's value.

SetSchemaChangePolicy

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

SetSchemaChangePolicy sets the SchemaChangePolicy field's value.

SetTablePrefix

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

SetTablePrefix sets the TablePrefix field's value.

SetTargets

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

SetTargets sets the Targets field's value.

String

func (s CreateCrawlerInput) String() string

String returns the string representation

Validate

func (s *CreateCrawlerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: