Copyright | (c) 2013-2021 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 |
Updates a crawler. If a crawler is running, you must stop it using
StopCrawler
before updating it.
Synopsis
- data UpdateCrawler = UpdateCrawler' {
- schemaChangePolicy :: Maybe SchemaChangePolicy
- schedule :: Maybe Text
- recrawlPolicy :: Maybe RecrawlPolicy
- classifiers :: Maybe [Text]
- role' :: Maybe Text
- targets :: Maybe CrawlerTargets
- databaseName :: Maybe Text
- crawlerSecurityConfiguration :: Maybe Text
- lineageConfiguration :: Maybe LineageConfiguration
- configuration :: Maybe Text
- tablePrefix :: Maybe Text
- description :: Maybe Text
- name :: Text
- newUpdateCrawler :: Text -> UpdateCrawler
- updateCrawler_schemaChangePolicy :: Lens' UpdateCrawler (Maybe SchemaChangePolicy)
- updateCrawler_schedule :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_recrawlPolicy :: Lens' UpdateCrawler (Maybe RecrawlPolicy)
- updateCrawler_classifiers :: Lens' UpdateCrawler (Maybe [Text])
- updateCrawler_role :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_targets :: Lens' UpdateCrawler (Maybe CrawlerTargets)
- updateCrawler_databaseName :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_crawlerSecurityConfiguration :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_lineageConfiguration :: Lens' UpdateCrawler (Maybe LineageConfiguration)
- updateCrawler_configuration :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_tablePrefix :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_description :: Lens' UpdateCrawler (Maybe Text)
- updateCrawler_name :: Lens' UpdateCrawler Text
- data UpdateCrawlerResponse = UpdateCrawlerResponse' {
- httpStatus :: Int
- newUpdateCrawlerResponse :: Int -> UpdateCrawlerResponse
- updateCrawlerResponse_httpStatus :: Lens' UpdateCrawlerResponse Int
Creating a Request
data UpdateCrawler Source #
See: newUpdateCrawler
smart constructor.
UpdateCrawler' | |
|
Instances
Create a value of UpdateCrawler
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:schemaChangePolicy:UpdateCrawler'
, updateCrawler_schemaChangePolicy
- The policy for the crawler's update and deletion behavior.
$sel:schedule:UpdateCrawler'
, updateCrawler_schedule
- 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 * * ? *)
.
$sel:recrawlPolicy:UpdateCrawler'
, updateCrawler_recrawlPolicy
- A policy that specifies whether to crawl the entire dataset again, or to
crawl only folders that were added since the last crawler run.
$sel:classifiers:UpdateCrawler'
, updateCrawler_classifiers
- 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.
$sel:role':UpdateCrawler'
, updateCrawler_role
- The IAM role or Amazon Resource Name (ARN) of an IAM role that is used
by the new crawler to access customer resources.
$sel:targets:UpdateCrawler'
, updateCrawler_targets
- A list of targets to crawl.
$sel:databaseName:UpdateCrawler'
, updateCrawler_databaseName
- The Glue database where results are stored, such as:
arn:aws:daylight:us-east-1::database/sometable/*
.
$sel:crawlerSecurityConfiguration:UpdateCrawler'
, updateCrawler_crawlerSecurityConfiguration
- The name of the SecurityConfiguration
structure to be used by this
crawler.
$sel:lineageConfiguration:UpdateCrawler'
, updateCrawler_lineageConfiguration
- Specifies data lineage configuration settings for the crawler.
$sel:configuration:UpdateCrawler'
, updateCrawler_configuration
- Crawler configuration information. This versioned JSON string allows
users to specify aspects of a crawler's behavior. For more information,
see
Configuring a Crawler.
$sel:tablePrefix:UpdateCrawler'
, updateCrawler_tablePrefix
- The table prefix used for catalog tables that are created.
$sel:description:UpdateCrawler'
, updateCrawler_description
- A description of the new crawler.
$sel:name:UpdateCrawler'
, updateCrawler_name
- Name of the new crawler.
Request Lenses
updateCrawler_schemaChangePolicy :: Lens' UpdateCrawler (Maybe SchemaChangePolicy) Source #
The policy for the crawler's update and deletion behavior.
updateCrawler_schedule :: 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 * * ? *)
.
updateCrawler_recrawlPolicy :: Lens' UpdateCrawler (Maybe RecrawlPolicy) Source #
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
updateCrawler_classifiers :: Lens' UpdateCrawler (Maybe [Text]) Source #
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.
updateCrawler_role :: Lens' UpdateCrawler (Maybe Text) Source #
The IAM role or Amazon Resource Name (ARN) of an IAM role that is used by the new crawler to access customer resources.
updateCrawler_targets :: Lens' UpdateCrawler (Maybe CrawlerTargets) Source #
A list of targets to crawl.
updateCrawler_databaseName :: Lens' UpdateCrawler (Maybe Text) Source #
The Glue database where results are stored, such as:
arn:aws:daylight:us-east-1::database/sometable/*
.
updateCrawler_crawlerSecurityConfiguration :: Lens' UpdateCrawler (Maybe Text) Source #
The name of the SecurityConfiguration
structure to be used by this
crawler.
updateCrawler_lineageConfiguration :: Lens' UpdateCrawler (Maybe LineageConfiguration) Source #
Specifies data lineage configuration settings for the crawler.
updateCrawler_configuration :: Lens' UpdateCrawler (Maybe Text) Source #
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler.
updateCrawler_tablePrefix :: Lens' UpdateCrawler (Maybe Text) Source #
The table prefix used for catalog tables that are created.
updateCrawler_description :: Lens' UpdateCrawler (Maybe Text) Source #
A description of the new crawler.
updateCrawler_name :: Lens' UpdateCrawler Text Source #
Name of the new crawler.
Destructuring the Response
data UpdateCrawlerResponse Source #
See: newUpdateCrawlerResponse
smart constructor.
UpdateCrawlerResponse' | |
|
Instances
newUpdateCrawlerResponse Source #
Create a value of UpdateCrawlerResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateCrawlerResponse'
, updateCrawlerResponse_httpStatus
- The response's http status code.
Response Lenses
updateCrawlerResponse_httpStatus :: Lens' UpdateCrawlerResponse Int Source #
The response's http status code.