update_crawler
async
¶
update_crawler(
name: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
role: Optional[Role] = None,
database_name: Optional[DatabaseName] = None,
description: Optional[DescriptionStringRemovable] = None,
targets: Optional[CrawlerTargets] = None,
schedule: Optional[CronExpression] = None,
classifiers: Optional[ClassifierNameList] = None,
table_prefix: Optional[TablePrefix] = None,
schema_change_policy: Optional[SchemaChangePolicy] = None,
recrawl_policy: Optional[RecrawlPolicy] = None,
lineage_configuration: Optional[LineageConfiguration] = None,
lake_formation_configuration: Optional[LakeFormationConfiguration] = None,
configuration: Optional[CrawlerConfiguration] = None,
crawler_security_configuration: Optional[CrawlerSecurityConfiguration] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> UpdateCrawlerResponse
Updates a crawler. If a crawler is running, you must stop it using StopCrawler before updating it.
Parameters:
-
name(NameString) –Name of the new crawler.
-
role(Optional[Role], default:None) –The IAM role or Amazon Resource Name (ARN) of an IAM role that is used by the new crawler to access customer resources.
-
database_name(Optional[DatabaseName], default:None) –The Glue database where results are stored, such as:
arn:aws:daylight:us-east-1::database/sometable/*. -
description(Optional[DescriptionStringRemovable], default:None) –A description of the new crawler.
-
targets(Optional[CrawlerTargets], default:None) –A list of targets to crawl.
-
schedule(Optional[CronExpression], default:None) –A
cronexpression 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 * * ? *). -
classifiers(Optional[ClassifierNameList], default:None) –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.
-
table_prefix(Optional[TablePrefix], default:None) –The table prefix used for catalog tables that are created.
-
schema_change_policy(Optional[SchemaChangePolicy], default:None) –The policy for the crawler's update and deletion behavior.
-
recrawl_policy(Optional[RecrawlPolicy], default:None) –A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
-
lineage_configuration(Optional[LineageConfiguration], default:None) –Specifies data lineage configuration settings for the crawler.
-
lake_formation_configuration(Optional[LakeFormationConfiguration], default:None) –Specifies Lake Formation configuration settings for the crawler.
-
configuration(Optional[CrawlerConfiguration], default:None) –Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
-
crawler_security_configuration(Optional[CrawlerSecurityConfiguration], default:None) –The name of the
SecurityConfigurationstructure to be used by this crawler. -
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog in which to store the crawler's output. If you omit this value, the existing value on the crawler is preserved.
Raises:
-
CrawlerRunningException–The operation cannot be performed because the crawler is already running.
-
EntityNotFoundException–A specified entity does not exist
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
VersionMismatchException–There was a version conflict.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 | |