amazonka-glue-1.6.0: Amazon Glue SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Glue.CreateCrawler

Contents

Description

Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in either the s3Targets or the jdbcTargets field.

Synopsis

Creating a Request

createCrawler Source #

Creates a value of CreateCrawler with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ccSchemaChangePolicy - Policy for the crawler's update and deletion behavior.
  • ccSchedule - A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers . For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *) .
  • ccClassifiers - A list of custom classifiers that the user has registered. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
  • ccConfiguration - Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior. You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior: Example: '{ Version: 1.0, CrawlerOutput: { Partitions: { AddOrUpdateBehavior: InheritFromTable } } }'
  • ccTablePrefix - The table prefix used for catalog tables that are created.
  • ccDescription - A description of the new crawler.
  • ccName - Name of the new crawler.
  • ccRole - The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.
  • ccDatabaseName - The AWS Glue database where results are written, such as: arn:aws:daylight:us-east-1::databasesometable* .
  • ccTargets - A list of collection of targets to crawl.

data CreateCrawler Source #

See: createCrawler smart constructor.

Instances

Eq CreateCrawler Source # 
Data CreateCrawler Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCrawler -> c CreateCrawler #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCrawler #

toConstr :: CreateCrawler -> Constr #

dataTypeOf :: CreateCrawler -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateCrawler) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCrawler) #

gmapT :: (forall b. Data b => b -> b) -> CreateCrawler -> CreateCrawler #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCrawler -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCrawler -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCrawler -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCrawler -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCrawler -> m CreateCrawler #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCrawler -> m CreateCrawler #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCrawler -> m CreateCrawler #

Read CreateCrawler Source # 
Show CreateCrawler Source # 
Generic CreateCrawler Source # 

Associated Types

type Rep CreateCrawler :: * -> * #

Hashable CreateCrawler Source # 
ToJSON CreateCrawler Source # 
NFData CreateCrawler Source # 

Methods

rnf :: CreateCrawler -> () #

AWSRequest CreateCrawler Source # 
ToHeaders CreateCrawler Source # 
ToPath CreateCrawler Source # 
ToQuery CreateCrawler Source # 
type Rep CreateCrawler Source # 
type Rs CreateCrawler Source # 

Request Lenses

ccSchemaChangePolicy :: Lens' CreateCrawler (Maybe SchemaChangePolicy) Source #

Policy for the crawler's update and deletion behavior.

ccSchedule :: Lens' CreateCrawler (Maybe Text) Source #

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers . For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *) .

ccClassifiers :: Lens' CreateCrawler [Text] Source #

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

ccConfiguration :: Lens' CreateCrawler (Maybe Text) Source #

Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior. You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior: Example: '{ Version: 1.0, CrawlerOutput: { Partitions: { AddOrUpdateBehavior: InheritFromTable } } }'

ccTablePrefix :: Lens' CreateCrawler (Maybe Text) Source #

The table prefix used for catalog tables that are created.

ccDescription :: Lens' CreateCrawler (Maybe Text) Source #

A description of the new crawler.

ccName :: Lens' CreateCrawler Text Source #

Name of the new crawler.

ccRole :: Lens' CreateCrawler Text Source #

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

ccDatabaseName :: Lens' CreateCrawler Text Source #

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

ccTargets :: Lens' CreateCrawler CrawlerTargets Source #

A list of collection of targets to crawl.

Destructuring the Response

createCrawlerResponse Source #

Creates a value of CreateCrawlerResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateCrawlerResponse Source #

See: createCrawlerResponse smart constructor.

Instances

Eq CreateCrawlerResponse Source # 
Data CreateCrawlerResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateCrawlerResponse -> c CreateCrawlerResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateCrawlerResponse #

toConstr :: CreateCrawlerResponse -> Constr #

dataTypeOf :: CreateCrawlerResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateCrawlerResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateCrawlerResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateCrawlerResponse -> CreateCrawlerResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateCrawlerResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateCrawlerResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateCrawlerResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateCrawlerResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateCrawlerResponse -> m CreateCrawlerResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCrawlerResponse -> m CreateCrawlerResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateCrawlerResponse -> m CreateCrawlerResponse #

Read CreateCrawlerResponse Source # 
Show CreateCrawlerResponse Source # 
Generic CreateCrawlerResponse Source # 
NFData CreateCrawlerResponse Source # 

Methods

rnf :: CreateCrawlerResponse -> () #

type Rep CreateCrawlerResponse Source # 
type Rep CreateCrawlerResponse = D1 * (MetaData "CreateCrawlerResponse" "Network.AWS.Glue.CreateCrawler" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" True) (C1 * (MetaCons "CreateCrawlerResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_crersResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

crersResponseStatus :: Lens' CreateCrawlerResponse Int Source #

  • - | The response status code.