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 |
Updates a crawler. If a crawler is running, you must stop it using StopCrawler
before updating it.
- updateCrawler :: Text -> UpdateCrawler
- data UpdateCrawler
- uSchemaChangePolicy :: Lens' UpdateCrawler (Maybe SchemaChangePolicy)
- uSchedule :: Lens' UpdateCrawler (Maybe Text)
- uClassifiers :: Lens' UpdateCrawler [Text]
- uRole :: Lens' UpdateCrawler (Maybe Text)
- uTargets :: Lens' UpdateCrawler (Maybe CrawlerTargets)
- uDatabaseName :: Lens' UpdateCrawler (Maybe Text)
- uConfiguration :: Lens' UpdateCrawler (Maybe Text)
- uTablePrefix :: Lens' UpdateCrawler (Maybe Text)
- uDescription :: Lens' UpdateCrawler (Maybe Text)
- uName :: Lens' UpdateCrawler Text
- updateCrawlerResponse :: Int -> UpdateCrawlerResponse
- data UpdateCrawlerResponse
- uccrsResponseStatus :: Lens' UpdateCrawlerResponse Int
Creating a Request
:: Text | |
-> UpdateCrawler |
Creates a value of UpdateCrawler
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uSchemaChangePolicy
- Policy for the crawler's update and deletion behavior.uSchedule
- 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 * * ? *)
.uClassifiers
- A list of custom classifiers that the user has registered. By default, all classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.uRole
- The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.uTargets
- A list of targets to crawl.uDatabaseName
- The AWS Glue database where results are stored, such as:arn:aws:daylight:us-east-1::databasesometable*
.uConfiguration
- 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 } } }'
uTablePrefix
- The table prefix used for catalog tables that are created.uDescription
- A description of the new crawler.uName
- Name of the new crawler.
data UpdateCrawler Source #
See: updateCrawler
smart constructor.
Request Lenses
uSchemaChangePolicy :: Lens' UpdateCrawler (Maybe SchemaChangePolicy) Source #
Policy for the crawler's update and deletion behavior.
uSchedule :: Lens' UpdateCrawler (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 * * ? *)
.
uClassifiers :: Lens' UpdateCrawler [Text] Source #
A list of custom classifiers that the user has registered. By default, all classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
uRole :: Lens' UpdateCrawler (Maybe Text) Source #
The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.
uTargets :: Lens' UpdateCrawler (Maybe CrawlerTargets) Source #
A list of targets to crawl.
uDatabaseName :: Lens' UpdateCrawler (Maybe Text) Source #
The AWS Glue database where results are stored, such as: arn:aws:daylight:us-east-1::databasesometable*
.
uConfiguration :: Lens' UpdateCrawler (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 } } }'
uTablePrefix :: Lens' UpdateCrawler (Maybe Text) Source #
The table prefix used for catalog tables that are created.
uDescription :: Lens' UpdateCrawler (Maybe Text) Source #
A description of the new crawler.
Destructuring the Response
updateCrawlerResponse Source #
Creates a value of UpdateCrawlerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uccrsResponseStatus
- -- | The response status code.
data UpdateCrawlerResponse Source #
See: updateCrawlerResponse
smart constructor.
Response Lenses
uccrsResponseStatus :: Lens' UpdateCrawlerResponse Int Source #
- - | The response status code.