Skip to content

GlueClient.create_crawler

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in the s3Targets field, the jdbcTargets field, or the DynamoDBTargets field.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
    CrawlerTargets,
    CreateCrawlerOutput,
    LakeFormationConfiguration,
    LineageConfiguration,
    RecrawlPolicy,
    SchemaChangePolicy,
)

Signature

async def create_crawler(
    *,
    name: str,
    role: str,
    targets: CrawlerTargets,
    database_name: str | None = None,
    description: str | 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,
    tags: dict[str, str] | None = None,
    catalog_id: str | None = None,
) -> CreateCrawlerOutput: ...

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 Yes The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new crawler to access customer resources.
targets Yes A list of collection of targets to crawl.
database_name No The Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/* .
description No A description of the new crawler.
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.
tags No The tags to use with this crawler request. You may use tags to limit access to the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
catalog_id No The ID of the Data Catalog in which to store the crawler's output. If none is supplied, the Amazon Web Services account ID is used by default.

Output

CreateCrawlerOutput.

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.

CrawlerTargets, CreateCrawlerOutput, LakeFormationConfiguration, LineageConfiguration, RecrawlPolicy, SchemaChangePolicy

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:

AlreadyExistsError, InvalidInputError, OperationTimeoutError, ResourceNumberLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model