You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glue::Types::CreateCrawlerRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateCrawlerRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "NameString", # required
  role: "RoleArn", # required
  database_name: "DatabaseName", # required
  description: "DescriptionString",
  targets: { # required
    s3_targets: [
      {
        path: "Path",
        exclusions: ["Path"],
      },
    ],
    jdbc_targets: [
      {
        connection_name: "ConnectionName",
        path: "Path",
        exclusions: ["Path"],
      },
    ],
  },
  schedule: "CronExpression",
  classifiers: ["NameString"],
  table_prefix: "TablePrefix",
  schema_change_policy: {
    update_behavior: "LOG", # accepts LOG, UPDATE_IN_DATABASE
    delete_behavior: "LOG", # accepts LOG, DELETE_FROM_DATABASE, DEPRECATE_IN_DATABASE
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#classifiersArray<String>

A list of custom Classifier names that the user has registered. By default, all AWS classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.

Returns:

  • (Array<String>)

    A list of custom Classifier names that the user has registered.

#database_nameString

The Glue Database where results will be stored, such as: arn:aws:daylight:us-east-1::database/sometable/*.

Returns:

  • (String)

    The Glue Database where results will be stored, such as: arn:aws:daylight:us-east-1::database/sometable/*.

#descriptionString

A description of the new Crawler.

Returns:

  • (String)

    A description of the new Crawler.

#nameString

Name of the new Crawler.

Returns:

  • (String)

    Name of the new Crawler.

#roleString

The AWS ARN of the IAM role used by the new Crawler to access customer resources.

Returns:

  • (String)

    The AWS ARN of the IAM role used by the new Crawler to access customer resources.

#scheduleString

A cron expression that can be used as a Cloudwatch event (see CloudWatch Schedule Expression Syntax. For example, to run every day at 12:15 UTC, specify: cron(15 12 * * ? *).

Returns:

  • (String)

    A cron expression that can be used as a Cloudwatch event (see [CloudWatch Schedule Expression Syntax][1]. For example, to run every day at 12:15 UTC, specify: cron(15 12 * * ? *).

#schema_change_policyTypes::SchemaChangePolicy

Policy for the crawler\'s update and deletion behavior.

Returns:

#table_prefixString

The table prefix used for catalog tables created.

Returns:

  • (String)

    The table prefix used for catalog tables created.

#targetsTypes::CrawlerTargets

A list of collection of targets to crawl.

Returns: