GlueClient.update_crawler
rboto-glue==0.4.0 · Service index · Types
Model summary (excerpt): Updates a crawler. If a crawler is running, you must stop it using StopCrawler before updating it.
Install and imports
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
CrawlerTargets,
LakeFormationConfiguration,
LineageConfiguration,
RecrawlPolicy,
SchemaChangePolicy,
UpdateCrawlerOutput,
)
Signature
async def update_crawler(
*,
name: str,
role: str | None = None,
database_name: str | None = None,
description: str | None = None,
targets: CrawlerTargets | None = None,
schedule: str | None = None,
classifiers: Sequence[str] | None = None,
table_prefix: str | None = None,
schema_change_policy: SchemaChangePolicy | None = None,
recrawl_policy: RecrawlPolicy | None = None,
lineage_configuration: LineageConfiguration | None = None,
lake_formation_configuration: LakeFormationConfiguration | None = None,
configuration: str | None = None,
crawler_security_configuration: str | None = None,
catalog_id: str | None = None,
) -> UpdateCrawlerOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | Name of the new crawler. |
role |
No | 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 |
No | The Glue database where results are stored, such as: arn:aws:daylight:us-east-1::database/sometable/* . |
description |
No | A description of the new crawler. |
targets |
No | A list of targets to crawl. |
schedule |
No | 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 * * ? *) . |
classifiers |
No | 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 |
No | The table prefix used for catalog tables that are created. |
schema_change_policy |
No | The policy for the crawler's update and deletion behavior. |
recrawl_policy |
No | 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 |
No | Specifies data lineage configuration settings for the crawler. |
lake_formation_configuration |
No | Specifies Lake Formation configuration settings for the crawler. |
configuration |
No | 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 |
No | The name of the SecurityConfiguration structure to be used by this crawler. |
catalog_id |
No | 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. |
Output
UpdateCrawlerOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
CrawlerTargets, LakeFormationConfiguration, LineageConfiguration, RecrawlPolicy, SchemaChangePolicy, UpdateCrawlerOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_glue.exceptions:
CrawlerRunningError, EntityNotFoundError, InvalidInputError, OperationTimeoutError, VersionMismatchError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.