Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- createCrawler :: Text -> Text -> Text -> CrawlerTargets -> CreateCrawler
- data CreateCrawler
- ccSchemaChangePolicy :: Lens' CreateCrawler (Maybe SchemaChangePolicy)
- ccSchedule :: Lens' CreateCrawler (Maybe Text)
- ccClassifiers :: Lens' CreateCrawler [Text]
- ccConfiguration :: Lens' CreateCrawler (Maybe Text)
- ccTablePrefix :: Lens' CreateCrawler (Maybe Text)
- ccDescription :: Lens' CreateCrawler (Maybe Text)
- ccName :: Lens' CreateCrawler Text
- ccRole :: Lens' CreateCrawler Text
- ccDatabaseName :: Lens' CreateCrawler Text
- ccTargets :: Lens' CreateCrawler CrawlerTargets
- createCrawlerResponse :: Int -> CreateCrawlerResponse
- data CreateCrawlerResponse
- crersResponseStatus :: Lens' CreateCrawlerResponse Int
Creating a Request
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
- Acron
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
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.
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:
crersResponseStatus
- -- | The response status code.
data CreateCrawlerResponse Source #
See: createCrawlerResponse
smart constructor.
Instances
Response Lenses
crersResponseStatus :: Lens' CreateCrawlerResponse Int Source #
- - | The response status code.