exclude_patterns=['excluded_partition']
args = { '--recurse': True, '--exclude-patterns': ','.join(exclude_patterns) }
import boto3 from botocore.exceptions import ClientError
glue_client = boto3.client('glue')
crawler_name = 'example_crawler'
try: response = glue_client.start_crawler( Name=crawler_name, Arguments=args ) print(f"Starting crawler '{crawler_name}'") except ClientError as e: print(f"Failed to start crawler '{crawler_name}': {e}")