Class: AWS.Glue

Inherits:
AWS.Service show all
Identifier:
glue
API Version:
2017-03-31
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Sending a Request Using Glue

var glue = new AWS.Glue();
glue.batchCreatePartition(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Glue object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var glue = new AWS.Glue({apiVersion: '2017-03-31'});

You can also set the API version globally in AWS.config.apiVersions using the glue service identifier:

AWS.config.apiVersions = {
  glue: '2017-03-31',
  // other service API versions
};

var glue = new AWS.Glue();

Version:

  • 2017-03-31

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Glue(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Glue object

var glue = new AWS.Glue({apiVersion: '2017-03-31'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com'.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Glue.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Glue.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Glue.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and returns the amount of time to delay in milliseconds. The base option will be ignored if this option is supplied.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

batchCreatePartition(params = {}, callback) ⇒ AWS.Request

Creates one or more partitions in a batch operation.

Service Reference:

Examples:

Calling the batchCreatePartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionInputList: [ /* required */
    {
      LastAccessTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
      LastAnalyzedTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
      Parameters: {
        '<KeyString>': 'STRING_VALUE',
        /* '<KeyString>': ... */
      },
      StorageDescriptor: {
        BucketColumns: [
          'STRING_VALUE',
          /* more items */
        ],
        Columns: [
          {
            Name: 'STRING_VALUE', /* required */
            Comment: 'STRING_VALUE',
            Type: 'STRING_VALUE'
          },
          /* more items */
        ],
        Compressed: true || false,
        InputFormat: 'STRING_VALUE',
        Location: 'STRING_VALUE',
        NumberOfBuckets: 0,
        OutputFormat: 'STRING_VALUE',
        Parameters: {
          '<KeyString>': 'STRING_VALUE',
          /* '<KeyString>': ... */
        },
        SerdeInfo: {
          Name: 'STRING_VALUE',
          Parameters: {
            '<KeyString>': 'STRING_VALUE',
            /* '<KeyString>': ... */
          },
          SerializationLibrary: 'STRING_VALUE'
        },
        SkewedInfo: {
          SkewedColumnNames: [
            'STRING_VALUE',
            /* more items */
          ],
          SkewedColumnValueLocationMaps: {
            '<ColumnValuesString>': 'STRING_VALUE',
            /* '<ColumnValuesString>': ... */
          },
          SkewedColumnValues: [
            'STRING_VALUE',
            /* more items */
          ]
        },
        SortColumns: [
          {
            Column: 'STRING_VALUE', /* required */
            SortOrder: 0 /* required */
          },
          /* more items */
        ],
        StoredAsSubDirectories: true || false
      },
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.batchCreatePartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.

    • DatabaseName — (String)

      The name of the metadata database in which the partition is to be created.

    • TableName — (String)

      The name of the metadata table in which the partition is to be created.

    • PartitionInputList — (Array<map>)

      A list of PartitionInput structures that define the partitions to be created.

      • Values — (Array<String>)

        The values of the partition.

      • LastAccessTime — (Date)

        The last time at which the partition was accessed.

      • StorageDescriptor — (map)

        Provides information about the physical location where the partition is stored.

        • Columns — (Array<map>)

          A list of the Columns in the table.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • Location — (String)

          The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

        • InputFormat — (String)

          The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

        • OutputFormat — (String)

          The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

        • Compressed — (Boolean)

          True if the data in the table is compressed, or False if not.

        • NumberOfBuckets — (Integer)

          Must be specified if the table contains any dimension columns.

        • SerdeInfo — (map)

          Serialization/deserialization (SerDe) information.

          • Name — (String)

            Name of the SerDe.

          • SerializationLibrary — (String)

            Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

          • Parameters — (map<String>)

            A list of initialization parameters for the SerDe, in key-value form.

        • BucketColumns — (Array<String>)

          A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

        • SortColumns — (Array<map>)

          A list specifying the sort order of each bucket in the table.

          • Columnrequired — (String)

            The name of the column.

          • SortOrderrequired — (Integer)

            Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

        • Parameters — (map<String>)

          User-supplied properties in key-value form.

        • SkewedInfo — (map)

          Information about values that appear very frequently in a column (skewed values).

          • SkewedColumnNames — (Array<String>)

            A list of names of columns that contain skewed values.

          • SkewedColumnValues — (Array<String>)

            A list of values that appear so frequently as to be considered skewed.

          • SkewedColumnValueLocationMaps — (map<String>)

            A mapping of skewed values to the columns that contain them.

        • StoredAsSubDirectories — (Boolean)

          True if the table data is stored in subdirectories, or False if not.

      • Parameters — (map<String>)

        Partition parameters, in the form of a list of key-value pairs.

      • LastAnalyzedTime — (Date)

        The last time at which column statistics were computed for this partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Errors — (Array<map>)

        Errors encountered when trying to create the requested partitions.

        • PartitionValues — (Array<String>)

          The values that define the partition.

        • ErrorDetail — (map)

          Details about the partition error.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchDeleteConnection(params = {}, callback) ⇒ AWS.Request

Deletes a list of connection definitions from the Data Catalog.

Service Reference:

Examples:

Calling the batchDeleteConnection operation

var params = {
  ConnectionNameList: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  CatalogId: 'STRING_VALUE'
};
glue.batchDeleteConnection(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the connections reside. If none is supplied, the AWS account ID is used by default.

    • ConnectionNameList — (Array<String>)

      A list of names of the connections to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Succeeded — (Array<String>)

        A list of names of the connection definitions that were successfully deleted.

      • Errors — (map<map>)

        A map of the names of connections that were not successfully deleted to error details.

        • ErrorCode — (String)

          The code associated with this error.

        • ErrorMessage — (String)

          A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchDeletePartition(params = {}, callback) ⇒ AWS.Request

Deletes one or more partitions in a batch operation.

Service Reference:

Examples:

Calling the batchDeletePartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionsToDelete: [ /* required */
    {
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.batchDeletePartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partition to be deleted resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which the table in question resides.

    • TableName — (String)

      The name of the table where the partitions to be deleted is located.

    • PartitionsToDelete — (Array<map>)

      A list of PartitionInput structures that define the partitions to be deleted.

      • Valuesrequired — (Array<String>)

        The list of values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Errors — (Array<map>)

        Errors encountered when trying to delete the requested partitions.

        • PartitionValues — (Array<String>)

          The values that define the partition.

        • ErrorDetail — (map)

          Details about the partition error.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchDeleteTable(params = {}, callback) ⇒ AWS.Request

Deletes multiple tables at once.

Service Reference:

Examples:

Calling the batchDeleteTable operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TablesToDelete: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  CatalogId: 'STRING_VALUE'
};
glue.batchDeleteTable(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the tables to delete reside.

    • TablesToDelete — (Array<String>)

      A list of the table to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Errors — (Array<map>)

        A list of errors encountered in attempting to delete the specified tables.

        • TableName — (String)

          Name of the table.

        • ErrorDetail — (map)

          Detail about the error.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchGetPartition(params = {}, callback) ⇒ AWS.Request

Retrieves partitions in a batch request.

Service Reference:

Examples:

Calling the batchGetPartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionsToGet: [ /* required */
    {
      Values: [ /* required */
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.batchGetPartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partitions in question reside. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the partitions reside.

    • TableName — (String)

      The name of the partitions' table.

    • PartitionsToGet — (Array<map>)

      A list of partition values identifying the partitions to retrieve.

      • Valuesrequired — (Array<String>)

        The list of values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Partitions — (Array<map>)

        A list of the requested partitions.

        • Values — (Array<String>)

          The values of the partition.

        • DatabaseName — (String)

          The name of the catalog database where the table in question is located.

        • TableName — (String)

          The name of the table in question.

        • CreationTime — (Date)

          The time at which the partition was created.

        • LastAccessTime — (Date)

          The last time at which the partition was accessed.

        • StorageDescriptor — (map)

          Provides information about the physical location where the partition is stored.

          • Columns — (Array<map>)

            A list of the Columns in the table.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • Location — (String)

            The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

          • InputFormat — (String)

            The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

          • OutputFormat — (String)

            The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

          • Compressed — (Boolean)

            True if the data in the table is compressed, or False if not.

          • NumberOfBuckets — (Integer)

            Must be specified if the table contains any dimension columns.

          • SerdeInfo — (map)

            Serialization/deserialization (SerDe) information.

            • Name — (String)

              Name of the SerDe.

            • SerializationLibrary — (String)

              Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

            • Parameters — (map<String>)

              A list of initialization parameters for the SerDe, in key-value form.

          • BucketColumns — (Array<String>)

            A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

          • SortColumns — (Array<map>)

            A list specifying the sort order of each bucket in the table.

            • Columnrequired — (String)

              The name of the column.

            • SortOrderrequired — (Integer)

              Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

          • Parameters — (map<String>)

            User-supplied properties in key-value form.

          • SkewedInfo — (map)

            Information about values that appear very frequently in a column (skewed values).

            • SkewedColumnNames — (Array<String>)

              A list of names of columns that contain skewed values.

            • SkewedColumnValues — (Array<String>)

              A list of values that appear so frequently as to be considered skewed.

            • SkewedColumnValueLocationMaps — (map<String>)

              A mapping of skewed values to the columns that contain them.

          • StoredAsSubDirectories — (Boolean)

            True if the table data is stored in subdirectories, or False if not.

        • Parameters — (map<String>)

          Partition parameters, in the form of a list of key-value pairs.

        • LastAnalyzedTime — (Date)

          The last time at which column statistics were computed for this partition.

      • UnprocessedKeys — (Array<map>)

        A list of the partition values in the request for which partions were not returned.

        • Valuesrequired — (Array<String>)

          The list of values.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchStopJobRun(params = {}, callback) ⇒ AWS.Request

Stops a batch of job runs for a given job.

Service Reference:

Examples:

Calling the batchStopJobRun operation

var params = {
  JobName: 'STRING_VALUE', /* required */
  JobRunIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
glue.batchStopJobRun(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job whose job runs are to be stopped.

    • JobRunIds — (Array<String>)

      A list of job run Ids of the given job to be stopped.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SuccessfulSubmissions — (Array<map>)

        A list of job runs which are successfully submitted for stopping.

        • JobName — (String)

          The name of the job.

        • JobRunId — (String)

          The job run Id.

      • Errors — (Array<map>)

        A list containing the job run Ids and details of the error that occurred for each job run while submitting to stop.

        • JobName — (String)

          The name of the job.

        • JobRunId — (String)

          The job run Id.

        • ErrorDetail — (map)

          The details of the error that occurred.

          • ErrorCode — (String)

            The code associated with this error.

          • ErrorMessage — (String)

            A message describing the error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createClassifier(params = {}, callback) ⇒ AWS.Request

Creates a classifier in the user's account. This may be either a GrokClassifier or an XMLClassifier.

Service Reference:

Examples:

Calling the createClassifier operation

var params = {
  GrokClassifier: {
    Classification: 'STRING_VALUE', /* required */
    GrokPattern: 'STRING_VALUE', /* required */
    Name: 'STRING_VALUE', /* required */
    CustomPatterns: 'STRING_VALUE'
  },
  XMLClassifier: {
    Classification: 'STRING_VALUE', /* required */
    Name: 'STRING_VALUE', /* required */
    RowTag: 'STRING_VALUE'
  }
};
glue.createClassifier(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GrokClassifier — (map)

      A GrokClassifier object specifying the classifier to create.

      • Classificationrequired — (String)

        An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

      • Namerequired — (String)

        The name of the new classifier.

      • GrokPatternrequired — (String)

        The grok pattern used by this classifier.

      • CustomPatterns — (String)

        Optional custom grok patterns used by this classifier.

    • XMLClassifier — (map)

      An XMLClassifier object specifying the classifier to create.

      • Classificationrequired — (String)

        An identifier of the data format that the classifier matches.

      • Namerequired — (String)

        The name of the classifier.

      • RowTag — (String)

        The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot be an empty element. It must contain child elements representing fields in the record.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createConnection(params = {}, callback) ⇒ AWS.Request

Creates a connection definition in the Data Catalog.

Service Reference:

Examples:

Calling the createConnection operation

var params = {
  ConnectionInput: { /* required */
    ConnectionProperties: {
      '<ConnectionPropertyKey>': 'STRING_VALUE',
      /* '<ConnectionPropertyKey>': ... */
    },
    ConnectionType: JDBC | SFTP,
    Description: 'STRING_VALUE',
    MatchCriteria: [
      'STRING_VALUE',
      /* more items */
    ],
    Name: 'STRING_VALUE',
    PhysicalConnectionRequirements: {
      AvailabilityZone: 'STRING_VALUE',
      SecurityGroupIdList: [
        'STRING_VALUE',
        /* more items */
      ],
      SubnetId: 'STRING_VALUE'
    }
  },
  CatalogId: 'STRING_VALUE'
};
glue.createConnection(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default.

    • ConnectionInput — (map)

      A ConnectionInput object defining the connection to create.

      • Name — (String)

        The name of the connection.

      • Description — (String)

        Description of the connection.

      • ConnectionType — (String)

        The type of the connection. Currently, only JDBC is supported; SFTP is not supported.

        Possible values include:
        • "JDBC"
        • "SFTP"
      • MatchCriteria — (Array<String>)

        A list of criteria that can be used in selecting this connection.

      • ConnectionProperties — (map<String>)

        A list of key-value pairs used as parameters for this connection.

      • PhysicalConnectionRequirements — (map)

        A map of physical connection requirements, such as VPC and SecurityGroup, needed for making this connection successfully.

        • SubnetId — (String)

          The subnet ID used by the connection.

        • SecurityGroupIdList — (Array<String>)

          The security group ID list used by the connection.

        • AvailabilityZone — (String)

          The connection's availability zone.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createCrawler(params = {}, callback) ⇒ AWS.Request

Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in either the s3Targets or the jdbcTargets field.

Service Reference:

Examples:

Calling the createCrawler operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Role: 'STRING_VALUE', /* required */
  Targets: { /* required */
    JdbcTargets: [
      {
        ConnectionName: 'STRING_VALUE',
        Exclusions: [
          'STRING_VALUE',
          /* more items */
        ],
        Path: 'STRING_VALUE'
      },
      /* more items */
    ],
    S3Targets: [
      {
        Exclusions: [
          'STRING_VALUE',
          /* more items */
        ],
        Path: 'STRING_VALUE'
      },
      /* more items */
    ]
  },
  Classifiers: [
    'STRING_VALUE',
    /* more items */
  ],
  Configuration: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  Schedule: 'STRING_VALUE',
  SchemaChangePolicy: {
    DeleteBehavior: LOG | DELETE_FROM_DATABASE | DEPRECATE_IN_DATABASE,
    UpdateBehavior: LOG | UPDATE_IN_DATABASE
  },
  TablePrefix: 'STRING_VALUE'
};
glue.createCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the new crawler.

    • Role — (String)

      The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.

    • DatabaseName — (String)

      The AWS Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*.

    • Description — (String)

      A description of the new crawler.

    • Targets — (map)

      A list of collection of targets to crawl.

      • S3Targets — (Array<map>)

        Specifies Amazon S3 targets.

        • Path — (String)

          The path to the Amazon S3 target.

        • Exclusions — (Array<String>)

          A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

      • JdbcTargets — (Array<map>)

        Specifies JDBC targets.

        • ConnectionName — (String)

          The name of the connection to use to connect to the JDBC target.

        • Path — (String)

          The path of the JDBC target.

        • Exclusions — (Array<String>)

          A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

    • Schedule — (String)

      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 — (Array<String>)

      A list of custom classifiers 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.

    • TablePrefix — (String)

      The table prefix used for catalog tables that are created.

    • SchemaChangePolicy — (map)

      Policy for the crawler's update and deletion behavior.

      • UpdateBehavior — (String)

        The update behavior when the crawler finds a changed schema.

        Possible values include:
        • "LOG"
        • "UPDATE_IN_DATABASE"
      • DeleteBehavior — (String)

        The deletion behavior when the crawler finds a deleted object.

        Possible values include:
        • "LOG"
        • "DELETE_FROM_DATABASE"
        • "DEPRECATE_IN_DATABASE"
    • Configuration — (String)

      Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

      You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDatabase(params = {}, callback) ⇒ AWS.Request

Creates a new database in a Data Catalog.

Service Reference:

Examples:

Calling the createDatabase operation

var params = {
  DatabaseInput: { /* required */
    Name: 'STRING_VALUE', /* required */
    Description: 'STRING_VALUE',
    LocationUri: 'STRING_VALUE',
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    }
  },
  CatalogId: 'STRING_VALUE'
};
glue.createDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which to create the database. If none is supplied, the AWS account ID is used by default.

    • DatabaseInput — (map)

      A DatabaseInput object defining the metadata database to create in the catalog.

      • Namerequired — (String)

        Name of the database.

      • Description — (String)

        Description of the database

      • LocationUri — (String)

        The location of the database (for example, an HDFS path).

      • Parameters — (map<String>)

        A list of key-value pairs that define parameters and properties of the database.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDevEndpoint(params = {}, callback) ⇒ AWS.Request

Creates a new DevEndpoint.

Service Reference:

Examples:

Calling the createDevEndpoint operation

var params = {
  EndpointName: 'STRING_VALUE', /* required */
  PublicKey: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  ExtraJarsS3Path: 'STRING_VALUE',
  ExtraPythonLibsS3Path: 'STRING_VALUE',
  NumberOfNodes: 0,
  SecurityGroupIds: [
    'STRING_VALUE',
    /* more items */
  ],
  SubnetId: 'STRING_VALUE'
};
glue.createDevEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointName — (String)

      The name to be assigned to the new DevEndpoint.

    • RoleArn — (String)

      The IAM role for the DevEndpoint.

    • SecurityGroupIds — (Array<String>)

      Security group IDs for the security groups to be used by the new DevEndpoint.

    • SubnetId — (String)

      The subnet ID for the new DevEndpoint to use.

    • PublicKey — (String)

      The public key to use for authentication.

    • NumberOfNodes — (Integer)

      The number of AWS Glue Data Processing Units (DPUs) to allocate to this DevEndpoint.

    • ExtraPythonLibsS3Path — (String)

      Path(s) to one or more Python libraries in an S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

      Please note that only pure Python libraries can currently be used on a DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.

    • ExtraJarsS3Path — (String)

      Path to one or more Java Jars in an S3 bucket that should be loaded in your DevEndpoint.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EndpointName — (String)

        The name assigned to the new DevEndpoint.

      • Status — (String)

        The current status of the new DevEndpoint.

      • SecurityGroupIds — (Array<String>)

        The security groups assigned to the new DevEndpoint.

      • SubnetId — (String)

        The subnet ID assigned to the new DevEndpoint.

      • RoleArn — (String)

        The AWS ARN of the role assigned to the new DevEndpoint.

      • YarnEndpointAddress — (String)

        The address of the YARN endpoint used by this DevEndpoint.

      • ZeppelinRemoteSparkInterpreterPort — (Integer)

        The Apache Zeppelin port for the remote Apache Spark interpreter.

      • NumberOfNodes — (Integer)

        The number of AWS Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

      • AvailabilityZone — (String)

        The AWS availability zone where this DevEndpoint is located.

      • VpcId — (String)

        The ID of the VPC used by this DevEndpoint.

      • ExtraPythonLibsS3Path — (String)

        Path(s) to one or more Python libraries in an S3 bucket that will be loaded in your DevEndpoint.

      • ExtraJarsS3Path — (String)

        Path to one or more Java Jars in an S3 bucket that will be loaded in your DevEndpoint.

      • FailureReason — (String)

        The reason for a current failure in this DevEndpoint.

      • CreatedTimestamp — (Date)

        The point in time at which this DevEndpoint was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createJob(params = {}, callback) ⇒ AWS.Request

Creates a new job.

Service Reference:

Examples:

Calling the createJob operation

var params = {
  Command: { /* required */
    Name: 'STRING_VALUE',
    ScriptLocation: 'STRING_VALUE'
  },
  Name: 'STRING_VALUE', /* required */
  Role: 'STRING_VALUE', /* required */
  AllocatedCapacity: 0,
  Connections: {
    Connections: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  DefaultArguments: {
    '<GenericString>': 'STRING_VALUE',
    /* '<GenericString>': ... */
  },
  Description: 'STRING_VALUE',
  ExecutionProperty: {
    MaxConcurrentRuns: 0
  },
  LogUri: 'STRING_VALUE',
  MaxRetries: 0
};
glue.createJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name you assign to this job.

    • Description — (String)

      Description of the job.

    • LogUri — (String)

      This field is reserved for future use.

    • Role — (String)

      The role associated with this job.

    • ExecutionProperty — (map)

      An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.

      • MaxConcurrentRuns — (Integer)

        The maximum number of concurrent runs allowed for a job.

    • Command — (map)

      The JobCommand that executes this job.

      • Name — (String)

        The name of this job command.

      • ScriptLocation — (String)

        Specifies the location of a script that executes a job.

    • DefaultArguments — (map<String>)

      The default parameters for this job.

    • Connections — (map)

      The connections used for this job.

      • Connections — (Array<String>)

        A list of connections used by the job.

    • MaxRetries — (Integer)

      The maximum number of times to retry this job if it fails.

    • AllocatedCapacity — (Integer)

      The number of capacity units allocated to this job.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The unique name of the new job that has been created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createPartition(params = {}, callback) ⇒ AWS.Request

Creates a new partition.

Service Reference:

Examples:

Calling the createPartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionInput: { /* required */
    LastAccessTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    LastAnalyzedTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    },
    StorageDescriptor: {
      BucketColumns: [
        'STRING_VALUE',
        /* more items */
      ],
      Columns: [
        {
          Name: 'STRING_VALUE', /* required */
          Comment: 'STRING_VALUE',
          Type: 'STRING_VALUE'
        },
        /* more items */
      ],
      Compressed: true || false,
      InputFormat: 'STRING_VALUE',
      Location: 'STRING_VALUE',
      NumberOfBuckets: 0,
      OutputFormat: 'STRING_VALUE',
      Parameters: {
        '<KeyString>': 'STRING_VALUE',
        /* '<KeyString>': ... */
      },
      SerdeInfo: {
        Name: 'STRING_VALUE',
        Parameters: {
          '<KeyString>': 'STRING_VALUE',
          /* '<KeyString>': ... */
        },
        SerializationLibrary: 'STRING_VALUE'
      },
      SkewedInfo: {
        SkewedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ],
        SkewedColumnValueLocationMaps: {
          '<ColumnValuesString>': 'STRING_VALUE',
          /* '<ColumnValuesString>': ... */
        },
        SkewedColumnValues: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      SortColumns: [
        {
          Column: 'STRING_VALUE', /* required */
          SortOrder: 0 /* required */
        },
        /* more items */
      ],
      StoredAsSubDirectories: true || false
    },
    Values: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.createPartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.

    • DatabaseName — (String)

      The name of the metadata database in which the partition is to be created.

    • TableName — (String)

      The name of the metadata table in which the partition is to be created.

    • PartitionInput — (map)

      A PartitionInput structure defining the partition to be created.

      • Values — (Array<String>)

        The values of the partition.

      • LastAccessTime — (Date)

        The last time at which the partition was accessed.

      • StorageDescriptor — (map)

        Provides information about the physical location where the partition is stored.

        • Columns — (Array<map>)

          A list of the Columns in the table.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • Location — (String)

          The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

        • InputFormat — (String)

          The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

        • OutputFormat — (String)

          The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

        • Compressed — (Boolean)

          True if the data in the table is compressed, or False if not.

        • NumberOfBuckets — (Integer)

          Must be specified if the table contains any dimension columns.

        • SerdeInfo — (map)

          Serialization/deserialization (SerDe) information.

          • Name — (String)

            Name of the SerDe.

          • SerializationLibrary — (String)

            Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

          • Parameters — (map<String>)

            A list of initialization parameters for the SerDe, in key-value form.

        • BucketColumns — (Array<String>)

          A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

        • SortColumns — (Array<map>)

          A list specifying the sort order of each bucket in the table.

          • Columnrequired — (String)

            The name of the column.

          • SortOrderrequired — (Integer)

            Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

        • Parameters — (map<String>)

          User-supplied properties in key-value form.

        • SkewedInfo — (map)

          Information about values that appear very frequently in a column (skewed values).

          • SkewedColumnNames — (Array<String>)

            A list of names of columns that contain skewed values.

          • SkewedColumnValues — (Array<String>)

            A list of values that appear so frequently as to be considered skewed.

          • SkewedColumnValueLocationMaps — (map<String>)

            A mapping of skewed values to the columns that contain them.

        • StoredAsSubDirectories — (Boolean)

          True if the table data is stored in subdirectories, or False if not.

      • Parameters — (map<String>)

        Partition parameters, in the form of a list of key-value pairs.

      • LastAnalyzedTime — (Date)

        The last time at which column statistics were computed for this partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createScript(params = {}, callback) ⇒ AWS.Request

Transforms a directed acyclic graph (DAG) into a Python script.

Service Reference:

Examples:

Calling the createScript operation

var params = {
  DagEdges: [
    {
      Source: 'STRING_VALUE', /* required */
      Target: 'STRING_VALUE', /* required */
      TargetParameter: 'STRING_VALUE'
    },
    /* more items */
  ],
  DagNodes: [
    {
      Args: [ /* required */
        {
          Name: 'STRING_VALUE', /* required */
          Value: 'STRING_VALUE', /* required */
          Param: true || false
        },
        /* more items */
      ],
      Id: 'STRING_VALUE', /* required */
      NodeType: 'STRING_VALUE', /* required */
      LineNumber: 0
    },
    /* more items */
  ]
};
glue.createScript(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DagNodes — (Array<map>)

      A list of the nodes in the DAG.

      • Idrequired — (String)

        A node identifier that is unique within the node's graph.

      • NodeTyperequired — (String)

        The type of node this is.

      • Argsrequired — (Array<map>)

        Properties of the node, in the form of name-value pairs.

        • Namerequired — (String)

          The name of the argument or property.

        • Valuerequired — (String)

          The value of the argument or property.

        • Param — (Boolean)

          True if the value is used as a parameter.

      • LineNumber — (Integer)

        The line number of the node.

    • DagEdges — (Array<map>)

      A list of the edges in the DAG.

      • Sourcerequired — (String)

        The ID of the node at which the edge starts.

      • Targetrequired — (String)

        The ID of the node at which the edge ends.

      • TargetParameter — (String)

        The target of the edge.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PythonScript — (String)

        The Python script generated from the DAG.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createTable(params = {}, callback) ⇒ AWS.Request

Creates a new table definition in the Data Catalog.

Service Reference:

Examples:

Calling the createTable operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableInput: { /* required */
    Name: 'STRING_VALUE', /* required */
    Description: 'STRING_VALUE',
    LastAccessTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    LastAnalyzedTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    Owner: 'STRING_VALUE',
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    },
    PartitionKeys: [
      {
        Name: 'STRING_VALUE', /* required */
        Comment: 'STRING_VALUE',
        Type: 'STRING_VALUE'
      },
      /* more items */
    ],
    Retention: 0,
    StorageDescriptor: {
      BucketColumns: [
        'STRING_VALUE',
        /* more items */
      ],
      Columns: [
        {
          Name: 'STRING_VALUE', /* required */
          Comment: 'STRING_VALUE',
          Type: 'STRING_VALUE'
        },
        /* more items */
      ],
      Compressed: true || false,
      InputFormat: 'STRING_VALUE',
      Location: 'STRING_VALUE',
      NumberOfBuckets: 0,
      OutputFormat: 'STRING_VALUE',
      Parameters: {
        '<KeyString>': 'STRING_VALUE',
        /* '<KeyString>': ... */
      },
      SerdeInfo: {
        Name: 'STRING_VALUE',
        Parameters: {
          '<KeyString>': 'STRING_VALUE',
          /* '<KeyString>': ... */
        },
        SerializationLibrary: 'STRING_VALUE'
      },
      SkewedInfo: {
        SkewedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ],
        SkewedColumnValueLocationMaps: {
          '<ColumnValuesString>': 'STRING_VALUE',
          /* '<ColumnValuesString>': ... */
        },
        SkewedColumnValues: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      SortColumns: [
        {
          Column: 'STRING_VALUE', /* required */
          SortOrder: 0 /* required */
        },
        /* more items */
      ],
      StoredAsSubDirectories: true || false
    },
    TableType: 'STRING_VALUE',
    ViewExpandedText: 'STRING_VALUE',
    ViewOriginalText: 'STRING_VALUE'
  },
  CatalogId: 'STRING_VALUE'
};
glue.createTable(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which to create the Table. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The catalog database in which to create the new table.

    • TableInput — (map)

      The TableInput object that defines the metadata table to create in the catalog.

      • Namerequired — (String)

        Name of the table.

      • Description — (String)

        Description of the table.

      • Owner — (String)

        Owner of the table.

      • LastAccessTime — (Date)

        Last time the table was accessed.

      • LastAnalyzedTime — (Date)

        Last time column statistics were computed for this table.

      • Retention — (Integer)

        Retention time for this table.

      • StorageDescriptor — (map)

        A storage descriptor containing information about the physical storage of this table.

        • Columns — (Array<map>)

          A list of the Columns in the table.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • Location — (String)

          The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

        • InputFormat — (String)

          The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

        • OutputFormat — (String)

          The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

        • Compressed — (Boolean)

          True if the data in the table is compressed, or False if not.

        • NumberOfBuckets — (Integer)

          Must be specified if the table contains any dimension columns.

        • SerdeInfo — (map)

          Serialization/deserialization (SerDe) information.

          • Name — (String)

            Name of the SerDe.

          • SerializationLibrary — (String)

            Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

          • Parameters — (map<String>)

            A list of initialization parameters for the SerDe, in key-value form.

        • BucketColumns — (Array<String>)

          A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

        • SortColumns — (Array<map>)

          A list specifying the sort order of each bucket in the table.

          • Columnrequired — (String)

            The name of the column.

          • SortOrderrequired — (Integer)

            Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

        • Parameters — (map<String>)

          User-supplied properties in key-value form.

        • SkewedInfo — (map)

          Information about values that appear very frequently in a column (skewed values).

          • SkewedColumnNames — (Array<String>)

            A list of names of columns that contain skewed values.

          • SkewedColumnValues — (Array<String>)

            A list of values that appear so frequently as to be considered skewed.

          • SkewedColumnValueLocationMaps — (map<String>)

            A mapping of skewed values to the columns that contain them.

        • StoredAsSubDirectories — (Boolean)

          True if the table data is stored in subdirectories, or False if not.

      • PartitionKeys — (Array<map>)

        A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

        • Namerequired — (String)

          The name of the Column.

        • Type — (String)

          The datatype of data in the Column.

        • Comment — (String)

          Free-form text comment.

      • ViewOriginalText — (String)

        If the table is a view, the original text of the view; otherwise null.

      • ViewExpandedText — (String)

        If the table is a view, the expanded text of the view; otherwise null.

      • TableType — (String)

        The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

      • Parameters — (map<String>)

        Properties associated with this table, as a list of key-value pairs.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createTrigger(params = {}, callback) ⇒ AWS.Request

Creates a new trigger.

Service Reference:

Examples:

Calling the createTrigger operation

var params = {
  Actions: [ /* required */
    {
      Arguments: {
        '<GenericString>': 'STRING_VALUE',
        /* '<GenericString>': ... */
      },
      JobName: 'STRING_VALUE'
    },
    /* more items */
  ],
  Name: 'STRING_VALUE', /* required */
  Type: SCHEDULED | CONDITIONAL | ON_DEMAND, /* required */
  Description: 'STRING_VALUE',
  Predicate: {
    Conditions: [
      {
        JobName: 'STRING_VALUE',
        LogicalOperator: EQUALS,
        State: STARTING | RUNNING | STOPPING | STOPPED | SUCCEEDED | FAILED
      },
      /* more items */
    ],
    Logical: AND
  },
  Schedule: 'STRING_VALUE'
};
glue.createTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name to assign to the new trigger.

    • Type — (String)

      The type of the new trigger.

      Possible values include:
      • "SCHEDULED"
      • "CONDITIONAL"
      • "ON_DEMAND"
    • Schedule — (String)

      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 * * ? *).

    • Predicate — (map)

      A predicate to specify when the new trigger should fire.

      • Logical — (String)

        Currently "OR" is not supported.

        Possible values include:
        • "AND"
      • Conditions — (Array<map>)

        A list of the conditions that determine when the trigger will fire.

        • LogicalOperator — (String)

          A logical operator.

          Possible values include:
          • "EQUALS"
        • JobName — (String)

          The name of the job in question.

        • State — (String)

          The condition state.

          Possible values include:
          • "STARTING"
          • "RUNNING"
          • "STOPPING"
          • "STOPPED"
          • "SUCCEEDED"
          • "FAILED"
    • Actions — (Array<map>)

      The actions initiated by this trigger when it fires.

      • JobName — (String)

        The name of a job to be executed.

      • Arguments — (map<String>)

        Arguments to be passed to the job.

    • Description — (String)

      A description of the new trigger.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name assigned to the new trigger.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createUserDefinedFunction(params = {}, callback) ⇒ AWS.Request

Creates a new function definition in the Data Catalog.

Service Reference:

Examples:

Calling the createUserDefinedFunction operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  FunctionInput: { /* required */
    ClassName: 'STRING_VALUE',
    FunctionName: 'STRING_VALUE',
    OwnerName: 'STRING_VALUE',
    OwnerType: USER | ROLE | GROUP,
    ResourceUris: [
      {
        ResourceType: JAR | FILE | ARCHIVE,
        Uri: 'STRING_VALUE'
      },
      /* more items */
    ]
  },
  CatalogId: 'STRING_VALUE'
};
glue.createUserDefinedFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which to create the function. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which to create the function.

    • FunctionInput — (map)

      A FunctionInput object that defines the function to create in the Data Catalog.

      • FunctionName — (String)

        The name of the function.

      • ClassName — (String)

        The Java class that contains the function code.

      • OwnerName — (String)

        The owner of the function.

      • OwnerType — (String)

        The owner type.

        Possible values include:
        • "USER"
        • "ROLE"
        • "GROUP"
      • ResourceUris — (Array<map>)

        The resource URIs for the function.

        • ResourceType — (String)

          The type of the resource.

          Possible values include:
          • "JAR"
          • "FILE"
          • "ARCHIVE"
        • Uri — (String)

          The URI for accessing the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteClassifier(params = {}, callback) ⇒ AWS.Request

Removes a classifier from the Data Catalog.

Service Reference:

Examples:

Calling the deleteClassifier operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.deleteClassifier(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the classifier to remove.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConnection(params = {}, callback) ⇒ AWS.Request

Deletes a connection from the Data Catalog.

Service Reference:

Examples:

Calling the deleteConnection operation

var params = {
  ConnectionName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.deleteConnection(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the connection resides. If none is supplied, the AWS account ID is used by default.

    • ConnectionName — (String)

      The name of the connection to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteCrawler(params = {}, callback) ⇒ AWS.Request

Removes a specified crawler from the Data Catalog, unless the crawler state is RUNNING.

Service Reference:

Examples:

Calling the deleteCrawler operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.deleteCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the crawler to remove.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDatabase(params = {}, callback) ⇒ AWS.Request

Removes a specified Database from a Data Catalog.

Service Reference:

Examples:

Calling the deleteDatabase operation

var params = {
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.deleteDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.

    • Name — (String)

      The name of the Database to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDevEndpoint(params = {}, callback) ⇒ AWS.Request

Deletes a specified DevEndpoint.

Service Reference:

Examples:

Calling the deleteDevEndpoint operation

var params = {
  EndpointName: 'STRING_VALUE' /* required */
};
glue.deleteDevEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointName — (String)

      The name of the DevEndpoint.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteJob(params = {}, callback) ⇒ AWS.Request

Deletes a specified job.

Service Reference:

Examples:

Calling the deleteJob operation

var params = {
  JobName: 'STRING_VALUE' /* required */
};
glue.deleteJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobName — (String)

        The name of the job that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePartition(params = {}, callback) ⇒ AWS.Request

Deletes a specified partition.

Service Reference:

Examples:

Calling the deletePartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionValues: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.deletePartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partition to be deleted resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which the table in question resides.

    • TableName — (String)

      The name of the table where the partition to be deleted is located.

    • PartitionValues — (Array<String>)

      The values that define the partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteTable(params = {}, callback) ⇒ AWS.Request

Removes a table definition from the Data Catalog.

Service Reference:

Examples:

Calling the deleteTable operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.deleteTable(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which the table resides.

    • Name — (String)

      The name of the table to be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteTrigger(params = {}, callback) ⇒ AWS.Request

Deletes a specified trigger.

Service Reference:

Examples:

Calling the deleteTrigger operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.deleteTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the trigger to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name of the trigger that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteUserDefinedFunction(params = {}, callback) ⇒ AWS.Request

Deletes an existing function definition from the Data Catalog.

Service Reference:

Examples:

Calling the deleteUserDefinedFunction operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  FunctionName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.deleteUserDefinedFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the function to be deleted is located. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the function is located.

    • FunctionName — (String)

      The name of the function definition to be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCatalogImportStatus(params = {}, callback) ⇒ AWS.Request

Retrieves the status of a migration operation.

Service Reference:

Examples:

Calling the getCatalogImportStatus operation

var params = {
  CatalogId: 'STRING_VALUE'
};
glue.getCatalogImportStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the catalog to migrate. Currently, this should be the AWS account ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ImportStatus — (map)

        The status of the specified catalog migration.

        • ImportCompleted — (Boolean)

          True if the migration has completed, or False otherwise.

        • ImportTime — (Date)

          The time that the migration was started.

        • ImportedBy — (String)

          The name of the person who initiated the migration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getClassifier(params = {}, callback) ⇒ AWS.Request

Retrieve a classifier by name.

Service Reference:

Examples:

Calling the getClassifier operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.getClassifier(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the classifier to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Classifier — (map)

        The requested classifier.

        • GrokClassifier — (map)

          A GrokClassifier object.

          • Namerequired — (String)

            The name of the classifier.

          • Classificationrequired — (String)

            An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.

          • CreationTime — (Date)

            The time this classifier was registered.

          • LastUpdated — (Date)

            The time this classifier was last updated.

          • Version — (Integer)

            The version of this classifier.

          • GrokPatternrequired — (String)

            The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifers.

          • CustomPatterns — (String)

            Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifers.

        • XMLClassifier — (map)

          An XMLClassifier object.

          • Namerequired — (String)

            The name of the classifier.

          • Classificationrequired — (String)

            An identifier of the data format that the classifier matches.

          • CreationTime — (Date)

            The time this classifier was registered.

          • LastUpdated — (Date)

            The time this classifier was last updated.

          • Version — (Integer)

            The version of this classifier.

          • RowTag — (String)

            The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot be an empty element. It must contain child elements representing fields in the record.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getClassifiers(params = {}, callback) ⇒ AWS.Request

Lists all classifier objects in the Data Catalog.

Service Reference:

Examples:

Calling the getClassifiers operation

var params = {
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getClassifiers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      Size of the list to return (optional).

    • NextToken — (String)

      An optional continuation token.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Classifiers — (Array<map>)

        The requested list of classifier objects.

        • GrokClassifier — (map)

          A GrokClassifier object.

          • Namerequired — (String)

            The name of the classifier.

          • Classificationrequired — (String)

            An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.

          • CreationTime — (Date)

            The time this classifier was registered.

          • LastUpdated — (Date)

            The time this classifier was last updated.

          • Version — (Integer)

            The version of this classifier.

          • GrokPatternrequired — (String)

            The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifers.

          • CustomPatterns — (String)

            Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifers.

        • XMLClassifier — (map)

          An XMLClassifier object.

          • Namerequired — (String)

            The name of the classifier.

          • Classificationrequired — (String)

            An identifier of the data format that the classifier matches.

          • CreationTime — (Date)

            The time this classifier was registered.

          • LastUpdated — (Date)

            The time this classifier was last updated.

          • Version — (Integer)

            The version of this classifier.

          • RowTag — (String)

            The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot be an empty element. It must contain child elements representing fields in the record.

      • NextToken — (String)

        A continuation token.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConnection(params = {}, callback) ⇒ AWS.Request

Retrieves a connection definition from the Data Catalog.

Service Reference:

Examples:

Calling the getConnection operation

var params = {
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.getConnection(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the connection resides. If none is supplied, the AWS account ID is used by default.

    • Name — (String)

      The name of the connection definition to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Connection — (map)

        The requested connection definition.

        • Name — (String)

          The name of the connection definition.

        • Description — (String)

          Description of the connection.

        • ConnectionType — (String)

          The type of the connection. Currently, only JDBC is supported; SFTP is not supported.

          Possible values include:
          • "JDBC"
          • "SFTP"
        • MatchCriteria — (Array<String>)

          A list of criteria that can be used in selecting this connection.

        • ConnectionProperties — (map<String>)

          A list of key-value pairs used as parameters for this connection.

        • PhysicalConnectionRequirements — (map)

          A map of physical connection requirements, such as VPC and SecurityGroup, needed for making this connection successfully.

          • SubnetId — (String)

            The subnet ID used by the connection.

          • SecurityGroupIdList — (Array<String>)

            The security group ID list used by the connection.

          • AvailabilityZone — (String)

            The connection's availability zone.

        • CreationTime — (Date)

          The time this connection definition was created.

        • LastUpdatedTime — (Date)

          The last time this connection definition was updated.

        • LastUpdatedBy — (String)

          The user, group or role that last updated this connection definition.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getConnections(params = {}, callback) ⇒ AWS.Request

Retrieves a list of connection definitions from the Data Catalog.

Service Reference:

Examples:

Calling the getConnections operation

var params = {
  CatalogId: 'STRING_VALUE',
  Filter: {
    ConnectionType: JDBC | SFTP,
    MatchCriteria: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getConnections(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the connections reside. If none is supplied, the AWS account ID is used by default.

    • Filter — (map)

      A filter that controls which connections will be returned.

      • MatchCriteria — (Array<String>)

        A criteria string that must match the criteria recorded in the connection definition for that connection definition to be returned.

      • ConnectionType — (String)

        The type of connections to return. Currently, only JDBC is supported; SFTP is not supported.

        Possible values include:
        • "JDBC"
        • "SFTP"
    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum number of connections to return in one response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConnectionList — (Array<map>)

        A list of requested connection definitions.

        • Name — (String)

          The name of the connection definition.

        • Description — (String)

          Description of the connection.

        • ConnectionType — (String)

          The type of the connection. Currently, only JDBC is supported; SFTP is not supported.

          Possible values include:
          • "JDBC"
          • "SFTP"
        • MatchCriteria — (Array<String>)

          A list of criteria that can be used in selecting this connection.

        • ConnectionProperties — (map<String>)

          A list of key-value pairs used as parameters for this connection.

        • PhysicalConnectionRequirements — (map)

          A map of physical connection requirements, such as VPC and SecurityGroup, needed for making this connection successfully.

          • SubnetId — (String)

            The subnet ID used by the connection.

          • SecurityGroupIdList — (Array<String>)

            The security group ID list used by the connection.

          • AvailabilityZone — (String)

            The connection's availability zone.

        • CreationTime — (Date)

          The time this connection definition was created.

        • LastUpdatedTime — (Date)

          The last time this connection definition was updated.

        • LastUpdatedBy — (String)

          The user, group or role that last updated this connection definition.

      • NextToken — (String)

        A continuation token, if the list of connections returned does not include the last of the filtered connections.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCrawler(params = {}, callback) ⇒ AWS.Request

Retrieves metadata for a specified crawler.

Service Reference:

Examples:

Calling the getCrawler operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.getCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the crawler to retrieve metadata for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Crawler — (map)

        The metadata for the specified crawler.

        • Name — (String)

          The crawler name.

        • Role — (String)

          The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.

        • Targets — (map)

          A collection of targets to crawl.

          • S3Targets — (Array<map>)

            Specifies Amazon S3 targets.

            • Path — (String)

              The path to the Amazon S3 target.

            • Exclusions — (Array<String>)

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

          • JdbcTargets — (Array<map>)

            Specifies JDBC targets.

            • ConnectionName — (String)

              The name of the connection to use to connect to the JDBC target.

            • Path — (String)

              The path of the JDBC target.

            • Exclusions — (Array<String>)

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • DatabaseName — (String)

          The database where metadata is written by this crawler.

        • Description — (String)

          A description of the crawler.

        • Classifiers — (Array<String>)

          A list of custom classifiers associated with the crawler.

        • SchemaChangePolicy — (map)

          Sets the behavior when the crawler finds a changed or deleted object.

          • UpdateBehavior — (String)

            The update behavior when the crawler finds a changed schema.

            Possible values include:
            • "LOG"
            • "UPDATE_IN_DATABASE"
          • DeleteBehavior — (String)

            The deletion behavior when the crawler finds a deleted object.

            Possible values include:
            • "LOG"
            • "DELETE_FROM_DATABASE"
            • "DEPRECATE_IN_DATABASE"
        • State — (String)

          Indicates whether the crawler is running, or whether a run is pending.

          Possible values include:
          • "READY"
          • "RUNNING"
          • "STOPPING"
        • TablePrefix — (String)

          The prefix added to the names of tables that are created.

        • Schedule — (map)

          For scheduled crawlers, the schedule when the crawler runs.

          • ScheduleExpression — (String)

            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 * * ? *).

          • State — (String)

            The state of the schedule.

            Possible values include:
            • "SCHEDULED"
            • "NOT_SCHEDULED"
            • "TRANSITIONING"
        • CrawlElapsedTime — (Integer)

          If the crawler is running, contains the total time elapsed since the last crawl began.

        • CreationTime — (Date)

          The time when the crawler was created.

        • LastUpdated — (Date)

          The time the crawler was last updated.

        • LastCrawl — (map)

          The status of the last crawl, and potentially error information if an error occurred.

          • Status — (String)

            Status of the last crawl.

            Possible values include:
            • "SUCCEEDED"
            • "CANCELLED"
            • "FAILED"
          • ErrorMessage — (String)

            If an error occurred, the error information about the last crawl.

          • LogGroup — (String)

            The log group for the last crawl.

          • LogStream — (String)

            The log stream for the last crawl.

          • MessagePrefix — (String)

            The prefix for a message about this crawl.

          • StartTime — (Date)

            The time at which the crawl started.

        • Version — (Integer)

          The version of the crawler.

        • Configuration — (String)

          Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

          You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCrawlerMetrics(params = {}, callback) ⇒ AWS.Request

Retrieves metrics about specified crawlers.

Service Reference:

Examples:

Calling the getCrawlerMetrics operation

var params = {
  CrawlerNameList: [
    'STRING_VALUE',
    /* more items */
  ],
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getCrawlerMetrics(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CrawlerNameList — (Array<String>)

      A list of the names of crawlers about which to retrieve metrics.

    • MaxResults — (Integer)

      The maximum size of a list to return.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CrawlerMetricsList — (Array<map>)

        A list of metrics for the specified crawler.

        • CrawlerName — (String)

          The name of the crawler.

        • TimeLeftSeconds — (Float)

          The estimated time left to complete a running crawl.

        • StillEstimating — (Boolean)

          True if the crawler is still estimating how long it will take to complete this run.

        • LastRuntimeSeconds — (Float)

          The duration of the crawler's most recent run, in seconds.

        • MedianRuntimeSeconds — (Float)

          The median duration of this crawler's runs, in seconds.

        • TablesCreated — (Integer)

          The number of tables created by this crawler.

        • TablesUpdated — (Integer)

          The number of tables updated by this crawler.

        • TablesDeleted — (Integer)

          The number of tables deleted by this crawler.

      • NextToken — (String)

        A continuation token, if the returned list does not contain the last metric available.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCrawlers(params = {}, callback) ⇒ AWS.Request

Retrieves metadata for all crawlers defined in the customer account.

Service Reference:

Examples:

Calling the getCrawlers operation

var params = {
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getCrawlers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The number of crawlers to return on each call.

    • NextToken — (String)

      A continuation token, if this is a continuation request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Crawlers — (Array<map>)

        A list of crawler metadata.

        • Name — (String)

          The crawler name.

        • Role — (String)

          The IAM role (or ARN of an IAM role) used to access customer resources, such as data in Amazon S3.

        • Targets — (map)

          A collection of targets to crawl.

          • S3Targets — (Array<map>)

            Specifies Amazon S3 targets.

            • Path — (String)

              The path to the Amazon S3 target.

            • Exclusions — (Array<String>)

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

          • JdbcTargets — (Array<map>)

            Specifies JDBC targets.

            • ConnectionName — (String)

              The name of the connection to use to connect to the JDBC target.

            • Path — (String)

              The path of the JDBC target.

            • Exclusions — (Array<String>)

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • DatabaseName — (String)

          The database where metadata is written by this crawler.

        • Description — (String)

          A description of the crawler.

        • Classifiers — (Array<String>)

          A list of custom classifiers associated with the crawler.

        • SchemaChangePolicy — (map)

          Sets the behavior when the crawler finds a changed or deleted object.

          • UpdateBehavior — (String)

            The update behavior when the crawler finds a changed schema.

            Possible values include:
            • "LOG"
            • "UPDATE_IN_DATABASE"
          • DeleteBehavior — (String)

            The deletion behavior when the crawler finds a deleted object.

            Possible values include:
            • "LOG"
            • "DELETE_FROM_DATABASE"
            • "DEPRECATE_IN_DATABASE"
        • State — (String)

          Indicates whether the crawler is running, or whether a run is pending.

          Possible values include:
          • "READY"
          • "RUNNING"
          • "STOPPING"
        • TablePrefix — (String)

          The prefix added to the names of tables that are created.

        • Schedule — (map)

          For scheduled crawlers, the schedule when the crawler runs.

          • ScheduleExpression — (String)

            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 * * ? *).

          • State — (String)

            The state of the schedule.

            Possible values include:
            • "SCHEDULED"
            • "NOT_SCHEDULED"
            • "TRANSITIONING"
        • CrawlElapsedTime — (Integer)

          If the crawler is running, contains the total time elapsed since the last crawl began.

        • CreationTime — (Date)

          The time when the crawler was created.

        • LastUpdated — (Date)

          The time the crawler was last updated.

        • LastCrawl — (map)

          The status of the last crawl, and potentially error information if an error occurred.

          • Status — (String)

            Status of the last crawl.

            Possible values include:
            • "SUCCEEDED"
            • "CANCELLED"
            • "FAILED"
          • ErrorMessage — (String)

            If an error occurred, the error information about the last crawl.

          • LogGroup — (String)

            The log group for the last crawl.

          • LogStream — (String)

            The log stream for the last crawl.

          • MessagePrefix — (String)

            The prefix for a message about this crawl.

          • StartTime — (Date)

            The time at which the crawl started.

        • Version — (Integer)

          The version of the crawler.

        • Configuration — (String)

          Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

          You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

      • NextToken — (String)

        A continuation token, if the returned list has not reached the end of those defined in this customer account.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDatabase(params = {}, callback) ⇒ AWS.Request

Retrieves the definition of a specified database.

Service Reference:

Examples:

Calling the getDatabase operation

var params = {
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.getDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.

    • Name — (String)

      The name of the database to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Database — (map)

        The definition of the specified database in the catalog.

        • Namerequired — (String)

          Name of the database.

        • Description — (String)

          Description of the database.

        • LocationUri — (String)

          The location of the database (for example, an HDFS path).

        • Parameters — (map<String>)

          A list of key-value pairs that define parameters and properties of the database.

        • CreateTime — (Date)

          The time at which the metadata database was created in the catalog.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDatabases(params = {}, callback) ⇒ AWS.Request

Retrieves all Databases defined in a given Data Catalog.

Service Reference:

Examples:

Calling the getDatabases operation

var params = {
  CatalogId: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getDatabases(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog from which to retrieve Databases. If none is supplied, the AWS account ID is used by default.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum number of databases to return in one response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DatabaseList — (Array<map>)

        A list of Database objects from the specified catalog.

        • Namerequired — (String)

          Name of the database.

        • Description — (String)

          Description of the database.

        • LocationUri — (String)

          The location of the database (for example, an HDFS path).

        • Parameters — (map<String>)

          A list of key-value pairs that define parameters and properties of the database.

        • CreateTime — (Date)

          The time at which the metadata database was created in the catalog.

      • NextToken — (String)

        A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDataflowGraph(params = {}, callback) ⇒ AWS.Request

Transforms a Python script into a directed acyclic graph (DAG).

Service Reference:

Examples:

Calling the getDataflowGraph operation

var params = {
  PythonScript: 'STRING_VALUE'
};
glue.getDataflowGraph(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PythonScript — (String)

      The Python script to transform.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DagNodes — (Array<map>)

        A list of the nodes in the resulting DAG.

        • Idrequired — (String)

          A node identifier that is unique within the node's graph.

        • NodeTyperequired — (String)

          The type of node this is.

        • Argsrequired — (Array<map>)

          Properties of the node, in the form of name-value pairs.

          • Namerequired — (String)

            The name of the argument or property.

          • Valuerequired — (String)

            The value of the argument or property.

          • Param — (Boolean)

            True if the value is used as a parameter.

        • LineNumber — (Integer)

          The line number of the node.

      • DagEdges — (Array<map>)

        A list of the edges in the resulting DAG.

        • Sourcerequired — (String)

          The ID of the node at which the edge starts.

        • Targetrequired — (String)

          The ID of the node at which the edge ends.

        • TargetParameter — (String)

          The target of the edge.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDevEndpoint(params = {}, callback) ⇒ AWS.Request

Retrieves information about a specified DevEndpoint.

Service Reference:

Examples:

Calling the getDevEndpoint operation

var params = {
  EndpointName: 'STRING_VALUE' /* required */
};
glue.getDevEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointName — (String)

      Name of the DevEndpoint for which to retrieve information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DevEndpoint — (map)

        A DevEndpoint definition.

        • EndpointName — (String)

          The name of the DevEndpoint.

        • RoleArn — (String)

          The AWS ARN of the IAM role used in this DevEndpoint.

        • SecurityGroupIds — (Array<String>)

          A list of security group identifiers used in this DevEndpoint.

        • SubnetId — (String)

          The subnet ID for this DevEndpoint.

        • YarnEndpointAddress — (String)

          The YARN endpoint address used by this DevEndpoint.

        • ZeppelinRemoteSparkInterpreterPort — (Integer)

          The Apache Zeppelin port for the remote Apache Spark interpreter.

        • PublicAddress — (String)

          The public address used by this DevEndpoint.

        • Status — (String)

          The current status of this DevEndpoint.

        • NumberOfNodes — (Integer)

          The number of AWS Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

        • AvailabilityZone — (String)

          The AWS availability zone where this DevEndpoint is located.

        • VpcId — (String)

          The ID of the virtual private cloud (VPC) used by this DevEndpoint.

        • ExtraPythonLibsS3Path — (String)

          Path(s) to one or more Python libraries in an S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

          Please note that only pure Python libraries can currently be used on a DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.

        • ExtraJarsS3Path — (String)

          Path to one or more Java Jars in an S3 bucket that should be loaded in your DevEndpoint.

          Please note that only pure Java/Scala libraries can currently be used on a DevEndpoint.

        • FailureReason — (String)

          The reason for a current failure in this DevEndpoint.

        • LastUpdateStatus — (String)

          The status of the last update.

        • CreatedTimestamp — (Date)

          The point in time at which this DevEndpoint was created.

        • LastModifiedTimestamp — (Date)

          The point in time at which this DevEndpoint was last modified.

        • PublicKey — (String)

          The public key to be used by this DevEndpoint for authentication.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDevEndpoints(params = {}, callback) ⇒ AWS.Request

Retrieves all the DevEndpoints in this AWS account.

Service Reference:

Examples:

Calling the getDevEndpoints operation

var params = {
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getDevEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum size of information to return.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DevEndpoints — (Array<map>)

        A list of DevEndpoint definitions.

        • EndpointName — (String)

          The name of the DevEndpoint.

        • RoleArn — (String)

          The AWS ARN of the IAM role used in this DevEndpoint.

        • SecurityGroupIds — (Array<String>)

          A list of security group identifiers used in this DevEndpoint.

        • SubnetId — (String)

          The subnet ID for this DevEndpoint.

        • YarnEndpointAddress — (String)

          The YARN endpoint address used by this DevEndpoint.

        • ZeppelinRemoteSparkInterpreterPort — (Integer)

          The Apache Zeppelin port for the remote Apache Spark interpreter.

        • PublicAddress — (String)

          The public address used by this DevEndpoint.

        • Status — (String)

          The current status of this DevEndpoint.

        • NumberOfNodes — (Integer)

          The number of AWS Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

        • AvailabilityZone — (String)

          The AWS availability zone where this DevEndpoint is located.

        • VpcId — (String)

          The ID of the virtual private cloud (VPC) used by this DevEndpoint.

        • ExtraPythonLibsS3Path — (String)

          Path(s) to one or more Python libraries in an S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

          Please note that only pure Python libraries can currently be used on a DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.

        • ExtraJarsS3Path — (String)

          Path to one or more Java Jars in an S3 bucket that should be loaded in your DevEndpoint.

          Please note that only pure Java/Scala libraries can currently be used on a DevEndpoint.

        • FailureReason — (String)

          The reason for a current failure in this DevEndpoint.

        • LastUpdateStatus — (String)

          The status of the last update.

        • CreatedTimestamp — (Date)

          The point in time at which this DevEndpoint was created.

        • LastModifiedTimestamp — (Date)

          The point in time at which this DevEndpoint was last modified.

        • PublicKey — (String)

          The public key to be used by this DevEndpoint for authentication.

      • NextToken — (String)

        A continuation token, if not all DevEndpoint definitions have yet been returned.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getJob(params = {}, callback) ⇒ AWS.Request

Retrieves an existing job definition.

Service Reference:

Examples:

Calling the getJob operation

var params = {
  JobName: 'STRING_VALUE' /* required */
};
glue.getJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Job — (map)

        The requested job definition.

        • Name — (String)

          The name you assign to this job.

        • Description — (String)

          Description of this job.

        • LogUri — (String)

          This field is reserved for future use.

        • Role — (String)

          The role associated with this job.

        • CreatedOn — (Date)

          The time and date that this job specification was created.

        • LastModifiedOn — (Date)

          The last point in time when this job specification was modified.

        • ExecutionProperty — (map)

          An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.

          • MaxConcurrentRuns — (Integer)

            The maximum number of concurrent runs allowed for a job.

        • Command — (map)

          The JobCommand that executes this job.

          • Name — (String)

            The name of this job command.

          • ScriptLocation — (String)

            Specifies the location of a script that executes a job.

        • DefaultArguments — (map<String>)

          The default parameters for this job.

        • Connections — (map)

          The connections used for this job.

          • Connections — (Array<String>)

            A list of connections used by the job.

        • MaxRetries — (Integer)

          The maximum number of times to retry this job if it fails.

        • AllocatedCapacity — (Integer)

          The number of capacity units allocated to this job.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getJobRun(params = {}, callback) ⇒ AWS.Request

Retrieves the metadata for a given job run.

Service Reference:

Examples:

Calling the getJobRun operation

var params = {
  JobName: 'STRING_VALUE', /* required */
  RunId: 'STRING_VALUE', /* required */
  PredecessorsIncluded: true || false
};
glue.getJobRun(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      Name of the job being run.

    • RunId — (String)

      The ID of the job run.

    • PredecessorsIncluded — (Boolean)

      A list of the predecessor runs to return as well.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobRun — (map)

        The requested job-run metadata.

        • Id — (String)

          The ID of this job run.

        • Attempt — (Integer)

          The number or the attempt to run this job.

        • PreviousRunId — (String)

          The ID of the previous run of this job.

        • TriggerName — (String)

          The name of the trigger for this job run.

        • JobName — (String)

          The name of the job being run.

        • StartedOn — (Date)

          The date and time at which this job run was started.

        • LastModifiedOn — (Date)

          The last time this job run was modified.

        • CompletedOn — (Date)

          The date and time this job run completed.

        • JobRunState — (String)

          The current state of the job run.

          Possible values include:
          • "STARTING"
          • "RUNNING"
          • "STOPPING"
          • "STOPPED"
          • "SUCCEEDED"
          • "FAILED"
        • Arguments — (map<String>)

          The job arguments associated with this run.

        • ErrorMessage — (String)

          An error message associated with this job run.

        • PredecessorRuns — (Array<map>)

          A list of predecessors to this job run.

          • JobName — (String)

            The name of the predecessor job.

          • RunId — (String)

            The job-run ID of the precessor job run.

        • AllocatedCapacity — (Integer)

          The amount of infrastructure capacity allocated to this job run.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getJobRuns(params = {}, callback) ⇒ AWS.Request

Retrieves metadata for all runs of a given job.

Service Reference:

Examples:

Calling the getJobRuns operation

var params = {
  JobName: 'STRING_VALUE', /* required */
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getJobRuns(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job for which to retrieve all job runs.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum size of the response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobRuns — (Array<map>)

        A list of job-run metatdata objects.

        • Id — (String)

          The ID of this job run.

        • Attempt — (Integer)

          The number or the attempt to run this job.

        • PreviousRunId — (String)

          The ID of the previous run of this job.

        • TriggerName — (String)

          The name of the trigger for this job run.

        • JobName — (String)

          The name of the job being run.

        • StartedOn — (Date)

          The date and time at which this job run was started.

        • LastModifiedOn — (Date)

          The last time this job run was modified.

        • CompletedOn — (Date)

          The date and time this job run completed.

        • JobRunState — (String)

          The current state of the job run.

          Possible values include:
          • "STARTING"
          • "RUNNING"
          • "STOPPING"
          • "STOPPED"
          • "SUCCEEDED"
          • "FAILED"
        • Arguments — (map<String>)

          The job arguments associated with this run.

        • ErrorMessage — (String)

          An error message associated with this job run.

        • PredecessorRuns — (Array<map>)

          A list of predecessors to this job run.

          • JobName — (String)

            The name of the predecessor job.

          • RunId — (String)

            The job-run ID of the precessor job run.

        • AllocatedCapacity — (Integer)

          The amount of infrastructure capacity allocated to this job run.

      • NextToken — (String)

        A continuation token, if not all reequested job runs have been returned.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getJobs(params = {}, callback) ⇒ AWS.Request

Retrieves all current jobs.

Service Reference:

Examples:

Calling the getJobs operation

var params = {
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getJobs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum size of the response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Jobs — (Array<map>)

        A list of jobs.

        • Name — (String)

          The name you assign to this job.

        • Description — (String)

          Description of this job.

        • LogUri — (String)

          This field is reserved for future use.

        • Role — (String)

          The role associated with this job.

        • CreatedOn — (Date)

          The time and date that this job specification was created.

        • LastModifiedOn — (Date)

          The last point in time when this job specification was modified.

        • ExecutionProperty — (map)

          An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.

          • MaxConcurrentRuns — (Integer)

            The maximum number of concurrent runs allowed for a job.

        • Command — (map)

          The JobCommand that executes this job.

          • Name — (String)

            The name of this job command.

          • ScriptLocation — (String)

            Specifies the location of a script that executes a job.

        • DefaultArguments — (map<String>)

          The default parameters for this job.

        • Connections — (map)

          The connections used for this job.

          • Connections — (Array<String>)

            A list of connections used by the job.

        • MaxRetries — (Integer)

          The maximum number of times to retry this job if it fails.

        • AllocatedCapacity — (Integer)

          The number of capacity units allocated to this job.

      • NextToken — (String)

        A continuation token, if not all jobs have yet been returned.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getMapping(params = {}, callback) ⇒ AWS.Request

Creates mappings.

Service Reference:

Examples:

Calling the getMapping operation

var params = {
  Source: { /* required */
    DatabaseName: 'STRING_VALUE', /* required */
    TableName: 'STRING_VALUE' /* required */
  },
  Location: {
    Jdbc: [
      {
        Name: 'STRING_VALUE', /* required */
        Value: 'STRING_VALUE', /* required */
        Param: true || false
      },
      /* more items */
    ],
    S3: [
      {
        Name: 'STRING_VALUE', /* required */
        Value: 'STRING_VALUE', /* required */
        Param: true || false
      },
      /* more items */
    ]
  },
  Sinks: [
    {
      DatabaseName: 'STRING_VALUE', /* required */
      TableName: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
glue.getMapping(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Source — (map)

      Specifies the source table.

      • DatabaseNamerequired — (String)

        The database in which the table metadata resides.

      • TableNamerequired — (String)

        The name of the table in question.

    • Sinks — (Array<map>)

      A list of target tables.

      • DatabaseNamerequired — (String)

        The database in which the table metadata resides.

      • TableNamerequired — (String)

        The name of the table in question.

    • Location — (map)

      Parameters for the mapping.

      • Jdbc — (Array<map>)

        A JDBC location.

        • Namerequired — (String)

          The name of the argument or property.

        • Valuerequired — (String)

          The value of the argument or property.

        • Param — (Boolean)

          True if the value is used as a parameter.

      • S3 — (Array<map>)

        An Amazon S3 location.

        • Namerequired — (String)

          The name of the argument or property.

        • Valuerequired — (String)

          The value of the argument or property.

        • Param — (Boolean)

          True if the value is used as a parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Mapping — (Array<map>)

        A list of mappings to the specified targets.

        • SourceTable — (String)

          The name of the source table.

        • SourcePath — (String)

          The source path.

        • SourceType — (String)

          The source type.

        • TargetTable — (String)

          The target table.

        • TargetPath — (String)

          The target path.

        • TargetType — (String)

          The target type.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getPartition(params = {}, callback) ⇒ AWS.Request

Retrieves information about a specified partition.

Service Reference:

Examples:

Calling the getPartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionValues: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.getPartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partition in question resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the partition resides.

    • TableName — (String)

      The name of the partition's table.

    • PartitionValues — (Array<String>)

      The values that define the partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Partition — (map)

        The requested information, in the form of a Partition object.

        • Values — (Array<String>)

          The values of the partition.

        • DatabaseName — (String)

          The name of the catalog database where the table in question is located.

        • TableName — (String)

          The name of the table in question.

        • CreationTime — (Date)

          The time at which the partition was created.

        • LastAccessTime — (Date)

          The last time at which the partition was accessed.

        • StorageDescriptor — (map)

          Provides information about the physical location where the partition is stored.

          • Columns — (Array<map>)

            A list of the Columns in the table.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • Location — (String)

            The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

          • InputFormat — (String)

            The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

          • OutputFormat — (String)

            The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

          • Compressed — (Boolean)

            True if the data in the table is compressed, or False if not.

          • NumberOfBuckets — (Integer)

            Must be specified if the table contains any dimension columns.

          • SerdeInfo — (map)

            Serialization/deserialization (SerDe) information.

            • Name — (String)

              Name of the SerDe.

            • SerializationLibrary — (String)

              Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

            • Parameters — (map<String>)

              A list of initialization parameters for the SerDe, in key-value form.

          • BucketColumns — (Array<String>)

            A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

          • SortColumns — (Array<map>)

            A list specifying the sort order of each bucket in the table.

            • Columnrequired — (String)

              The name of the column.

            • SortOrderrequired — (Integer)

              Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

          • Parameters — (map<String>)

            User-supplied properties in key-value form.

          • SkewedInfo — (map)

            Information about values that appear very frequently in a column (skewed values).

            • SkewedColumnNames — (Array<String>)

              A list of names of columns that contain skewed values.

            • SkewedColumnValues — (Array<String>)

              A list of values that appear so frequently as to be considered skewed.

            • SkewedColumnValueLocationMaps — (map<String>)

              A mapping of skewed values to the columns that contain them.

          • StoredAsSubDirectories — (Boolean)

            True if the table data is stored in subdirectories, or False if not.

        • Parameters — (map<String>)

          Partition parameters, in the form of a list of key-value pairs.

        • LastAnalyzedTime — (Date)

          The last time at which column statistics were computed for this partition.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getPartitions(params = {}, callback) ⇒ AWS.Request

Retrieves information about the partitions in a table.

Service Reference:

Examples:

Calling the getPartitions operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  Expression: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE',
  Segment: {
    SegmentNumber: 0, /* required */
    TotalSegments: 0 /* required */
  }
};
glue.getPartitions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partitions in question reside. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the partitions reside.

    • TableName — (String)

      The name of the partitions' table.

    • Expression — (String)

      An expression filtering the partitions to be returned.

    • NextToken — (String)

      A continuation token, if this is not the first call to retrieve these partitions.

    • Segment — (map)

      The segment of the table's partitions to scan in this request.

      • SegmentNumberrequired — (Integer)

        The zero-based index number of the this segment. For example, if the total number of segments is 4, SegmentNumber values will range from zero through three.

      • TotalSegmentsrequired — (Integer)

        The total numer of segments.

    • MaxResults — (Integer)

      The maximum number of partitions to return in a single response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Partitions — (Array<map>)

        A list of requested partitions.

        • Values — (Array<String>)

          The values of the partition.

        • DatabaseName — (String)

          The name of the catalog database where the table in question is located.

        • TableName — (String)

          The name of the table in question.

        • CreationTime — (Date)

          The time at which the partition was created.

        • LastAccessTime — (Date)

          The last time at which the partition was accessed.

        • StorageDescriptor — (map)

          Provides information about the physical location where the partition is stored.

          • Columns — (Array<map>)

            A list of the Columns in the table.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • Location — (String)

            The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

          • InputFormat — (String)

            The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

          • OutputFormat — (String)

            The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

          • Compressed — (Boolean)

            True if the data in the table is compressed, or False if not.

          • NumberOfBuckets — (Integer)

            Must be specified if the table contains any dimension columns.

          • SerdeInfo — (map)

            Serialization/deserialization (SerDe) information.

            • Name — (String)

              Name of the SerDe.

            • SerializationLibrary — (String)

              Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

            • Parameters — (map<String>)

              A list of initialization parameters for the SerDe, in key-value form.

          • BucketColumns — (Array<String>)

            A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

          • SortColumns — (Array<map>)

            A list specifying the sort order of each bucket in the table.

            • Columnrequired — (String)

              The name of the column.

            • SortOrderrequired — (Integer)

              Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

          • Parameters — (map<String>)

            User-supplied properties in key-value form.

          • SkewedInfo — (map)

            Information about values that appear very frequently in a column (skewed values).

            • SkewedColumnNames — (Array<String>)

              A list of names of columns that contain skewed values.

            • SkewedColumnValues — (Array<String>)

              A list of values that appear so frequently as to be considered skewed.

            • SkewedColumnValueLocationMaps — (map<String>)

              A mapping of skewed values to the columns that contain them.

          • StoredAsSubDirectories — (Boolean)

            True if the table data is stored in subdirectories, or False if not.

        • Parameters — (map<String>)

          Partition parameters, in the form of a list of key-value pairs.

        • LastAnalyzedTime — (Date)

          The last time at which column statistics were computed for this partition.

      • NextToken — (String)

        A continuation token, if the returned list of partitions does not does not include the last one.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getPlan(params = {}, callback) ⇒ AWS.Request

Gets a Python script to perform a specified mapping.

Service Reference:

Examples:

Calling the getPlan operation

var params = {
  Mapping: [ /* required */
    {
      SourcePath: 'STRING_VALUE',
      SourceTable: 'STRING_VALUE',
      SourceType: 'STRING_VALUE',
      TargetPath: 'STRING_VALUE',
      TargetTable: 'STRING_VALUE',
      TargetType: 'STRING_VALUE'
    },
    /* more items */
  ],
  Source: { /* required */
    DatabaseName: 'STRING_VALUE', /* required */
    TableName: 'STRING_VALUE' /* required */
  },
  Location: {
    Jdbc: [
      {
        Name: 'STRING_VALUE', /* required */
        Value: 'STRING_VALUE', /* required */
        Param: true || false
      },
      /* more items */
    ],
    S3: [
      {
        Name: 'STRING_VALUE', /* required */
        Value: 'STRING_VALUE', /* required */
        Param: true || false
      },
      /* more items */
    ]
  },
  Sinks: [
    {
      DatabaseName: 'STRING_VALUE', /* required */
      TableName: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
glue.getPlan(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Mapping — (Array<map>)

      The list of mappings from a source table to target tables.

      • SourceTable — (String)

        The name of the source table.

      • SourcePath — (String)

        The source path.

      • SourceType — (String)

        The source type.

      • TargetTable — (String)

        The target table.

      • TargetPath — (String)

        The target path.

      • TargetType — (String)

        The target type.

    • Source — (map)

      The source table.

      • DatabaseNamerequired — (String)

        The database in which the table metadata resides.

      • TableNamerequired — (String)

        The name of the table in question.

    • Sinks — (Array<map>)

      The target tables.

      • DatabaseNamerequired — (String)

        The database in which the table metadata resides.

      • TableNamerequired — (String)

        The name of the table in question.

    • Location — (map)

      Parameters for the mapping.

      • Jdbc — (Array<map>)

        A JDBC location.

        • Namerequired — (String)

          The name of the argument or property.

        • Valuerequired — (String)

          The value of the argument or property.

        • Param — (Boolean)

          True if the value is used as a parameter.

      • S3 — (Array<map>)

        An Amazon S3 location.

        • Namerequired — (String)

          The name of the argument or property.

        • Valuerequired — (String)

          The value of the argument or property.

        • Param — (Boolean)

          True if the value is used as a parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PythonScript — (String)

        A Python script to perform the mapping.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTable(params = {}, callback) ⇒ AWS.Request

Retrieves the Table definition in a Data Catalog for a specified table.

Service Reference:

Examples:

Calling the getTable operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.getTable(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the database in the catalog in which the table resides.

    • Name — (String)

      The name of the table for which to retrieve the definition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Table — (map)

        The Table object that defines the specified table.

        • Namerequired — (String)

          Name of the table.

        • DatabaseName — (String)

          Name of the metadata database where the table metadata resides.

        • Description — (String)

          Description of the table.

        • Owner — (String)

          Owner of the table.

        • CreateTime — (Date)

          Time when the table definition was created in the Data Catalog.

        • UpdateTime — (Date)

          Last time the table was updated.

        • LastAccessTime — (Date)

          Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.

        • LastAnalyzedTime — (Date)

          Last time column statistics were computed for this table.

        • Retention — (Integer)

          Retention time for this table.

        • StorageDescriptor — (map)

          A storage descriptor containing information about the physical storage of this table.

          • Columns — (Array<map>)

            A list of the Columns in the table.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • Location — (String)

            The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

          • InputFormat — (String)

            The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

          • OutputFormat — (String)

            The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

          • Compressed — (Boolean)

            True if the data in the table is compressed, or False if not.

          • NumberOfBuckets — (Integer)

            Must be specified if the table contains any dimension columns.

          • SerdeInfo — (map)

            Serialization/deserialization (SerDe) information.

            • Name — (String)

              Name of the SerDe.

            • SerializationLibrary — (String)

              Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

            • Parameters — (map<String>)

              A list of initialization parameters for the SerDe, in key-value form.

          • BucketColumns — (Array<String>)

            A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

          • SortColumns — (Array<map>)

            A list specifying the sort order of each bucket in the table.

            • Columnrequired — (String)

              The name of the column.

            • SortOrderrequired — (Integer)

              Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

          • Parameters — (map<String>)

            User-supplied properties in key-value form.

          • SkewedInfo — (map)

            Information about values that appear very frequently in a column (skewed values).

            • SkewedColumnNames — (Array<String>)

              A list of names of columns that contain skewed values.

            • SkewedColumnValues — (Array<String>)

              A list of values that appear so frequently as to be considered skewed.

            • SkewedColumnValueLocationMaps — (map<String>)

              A mapping of skewed values to the columns that contain them.

          • StoredAsSubDirectories — (Boolean)

            True if the table data is stored in subdirectories, or False if not.

        • PartitionKeys — (Array<map>)

          A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • ViewOriginalText — (String)

          If the table is a view, the original text of the view; otherwise null.

        • ViewExpandedText — (String)

          If the table is a view, the expanded text of the view; otherwise null.

        • TableType — (String)

          The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

        • Parameters — (map<String>)

          Properties associated with this table, as a list of key-value pairs.

        • CreatedBy — (String)

          Person or entity who created the table.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTables(params = {}, callback) ⇒ AWS.Request

Retrieves the definitions of some or all of the tables in a given Database.

Service Reference:

Examples:

Calling the getTables operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  Expression: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getTables(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The database in the catalog whose tables to list.

    • Expression — (String)

      A regular expression pattern. If present, only those tables whose names match the pattern are returned.

    • NextToken — (String)

      A continuation token, included if this is a continuation call.

    • MaxResults — (Integer)

      The maximum number of tables to return in a single response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TableList — (Array<map>)

        A list of the requested Table objects.

        • Namerequired — (String)

          Name of the table.

        • DatabaseName — (String)

          Name of the metadata database where the table metadata resides.

        • Description — (String)

          Description of the table.

        • Owner — (String)

          Owner of the table.

        • CreateTime — (Date)

          Time when the table definition was created in the Data Catalog.

        • UpdateTime — (Date)

          Last time the table was updated.

        • LastAccessTime — (Date)

          Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.

        • LastAnalyzedTime — (Date)

          Last time column statistics were computed for this table.

        • Retention — (Integer)

          Retention time for this table.

        • StorageDescriptor — (map)

          A storage descriptor containing information about the physical storage of this table.

          • Columns — (Array<map>)

            A list of the Columns in the table.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • Location — (String)

            The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

          • InputFormat — (String)

            The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

          • OutputFormat — (String)

            The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

          • Compressed — (Boolean)

            True if the data in the table is compressed, or False if not.

          • NumberOfBuckets — (Integer)

            Must be specified if the table contains any dimension columns.

          • SerdeInfo — (map)

            Serialization/deserialization (SerDe) information.

            • Name — (String)

              Name of the SerDe.

            • SerializationLibrary — (String)

              Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

            • Parameters — (map<String>)

              A list of initialization parameters for the SerDe, in key-value form.

          • BucketColumns — (Array<String>)

            A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

          • SortColumns — (Array<map>)

            A list specifying the sort order of each bucket in the table.

            • Columnrequired — (String)

              The name of the column.

            • SortOrderrequired — (Integer)

              Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

          • Parameters — (map<String>)

            User-supplied properties in key-value form.

          • SkewedInfo — (map)

            Information about values that appear very frequently in a column (skewed values).

            • SkewedColumnNames — (Array<String>)

              A list of names of columns that contain skewed values.

            • SkewedColumnValues — (Array<String>)

              A list of values that appear so frequently as to be considered skewed.

            • SkewedColumnValueLocationMaps — (map<String>)

              A mapping of skewed values to the columns that contain them.

          • StoredAsSubDirectories — (Boolean)

            True if the table data is stored in subdirectories, or False if not.

        • PartitionKeys — (Array<map>)

          A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • ViewOriginalText — (String)

          If the table is a view, the original text of the view; otherwise null.

        • ViewExpandedText — (String)

          If the table is a view, the expanded text of the view; otherwise null.

        • TableType — (String)

          The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

        • Parameters — (map<String>)

          Properties associated with this table, as a list of key-value pairs.

        • CreatedBy — (String)

          Person or entity who created the table.

      • NextToken — (String)

        A continuation token, present if the current list segment is not the last.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTableVersions(params = {}, callback) ⇒ AWS.Request

Retrieves a list of strings that identify available versions of a specified table.

Service Reference:

Examples:

Calling the getTableVersions operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getTableVersions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The database in the catalog in which the table resides.

    • TableName — (String)

      The name of the table.

    • NextToken — (String)

      A continuation token, if this is not the first call.

    • MaxResults — (Integer)

      The maximum number of table versions to return in one response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TableVersions — (Array<map>)

        A list of strings identifying available versions of the specified table.

        • Table — (map)

          The table in question

          • Namerequired — (String)

            Name of the table.

          • DatabaseName — (String)

            Name of the metadata database where the table metadata resides.

          • Description — (String)

            Description of the table.

          • Owner — (String)

            Owner of the table.

          • CreateTime — (Date)

            Time when the table definition was created in the Data Catalog.

          • UpdateTime — (Date)

            Last time the table was updated.

          • LastAccessTime — (Date)

            Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.

          • LastAnalyzedTime — (Date)

            Last time column statistics were computed for this table.

          • Retention — (Integer)

            Retention time for this table.

          • StorageDescriptor — (map)

            A storage descriptor containing information about the physical storage of this table.

            • Columns — (Array<map>)

              A list of the Columns in the table.

              • Namerequired — (String)

                The name of the Column.

              • Type — (String)

                The datatype of data in the Column.

              • Comment — (String)

                Free-form text comment.

            • Location — (String)

              The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

            • InputFormat — (String)

              The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

            • OutputFormat — (String)

              The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

            • Compressed — (Boolean)

              True if the data in the table is compressed, or False if not.

            • NumberOfBuckets — (Integer)

              Must be specified if the table contains any dimension columns.

            • SerdeInfo — (map)

              Serialization/deserialization (SerDe) information.

              • Name — (String)

                Name of the SerDe.

              • SerializationLibrary — (String)

                Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

              • Parameters — (map<String>)

                A list of initialization parameters for the SerDe, in key-value form.

            • BucketColumns — (Array<String>)

              A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

            • SortColumns — (Array<map>)

              A list specifying the sort order of each bucket in the table.

              • Columnrequired — (String)

                The name of the column.

              • SortOrderrequired — (Integer)

                Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

            • Parameters — (map<String>)

              User-supplied properties in key-value form.

            • SkewedInfo — (map)

              Information about values that appear very frequently in a column (skewed values).

              • SkewedColumnNames — (Array<String>)

                A list of names of columns that contain skewed values.

              • SkewedColumnValues — (Array<String>)

                A list of values that appear so frequently as to be considered skewed.

              • SkewedColumnValueLocationMaps — (map<String>)

                A mapping of skewed values to the columns that contain them.

            • StoredAsSubDirectories — (Boolean)

              True if the table data is stored in subdirectories, or False if not.

          • PartitionKeys — (Array<map>)

            A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

            • Namerequired — (String)

              The name of the Column.

            • Type — (String)

              The datatype of data in the Column.

            • Comment — (String)

              Free-form text comment.

          • ViewOriginalText — (String)

            If the table is a view, the original text of the view; otherwise null.

          • ViewExpandedText — (String)

            If the table is a view, the expanded text of the view; otherwise null.

          • TableType — (String)

            The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

          • Parameters — (map<String>)

            Properties associated with this table, as a list of key-value pairs.

          • CreatedBy — (String)

            Person or entity who created the table.

        • VersionId — (String)

          The ID value that identifies this table version.

      • NextToken — (String)

        A continuation token, if the list of available versions does not include the last one.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTrigger(params = {}, callback) ⇒ AWS.Request

Retrieves the definition of a trigger.

Service Reference:

Examples:

Calling the getTrigger operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.getTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the trigger to retrieve.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Trigger — (map)

        The requested trigger definition.

        • Name — (String)

          Name of the trigger.

        • Id — (String)

          The trigger ID.

        • Type — (String)

          The type of trigger that this is.

          Possible values include:
          • "SCHEDULED"
          • "CONDITIONAL"
          • "ON_DEMAND"
        • State — (String)

          The current state of the trigger.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "ACTIVATING"
          • "ACTIVATED"
          • "DEACTIVATING"
          • "DEACTIVATED"
          • "DELETING"
          • "UPDATING"
        • Description — (String)

          A description of this trigger.

        • Schedule — (String)

          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 * * ? *).

        • Actions — (Array<map>)

          The actions initiated by this trigger.

          • JobName — (String)

            The name of a job to be executed.

          • Arguments — (map<String>)

            Arguments to be passed to the job.

        • Predicate — (map)

          The predicate of this trigger.

          • Logical — (String)

            Currently "OR" is not supported.

            Possible values include:
            • "AND"
          • Conditions — (Array<map>)

            A list of the conditions that determine when the trigger will fire.

            • LogicalOperator — (String)

              A logical operator.

              Possible values include:
              • "EQUALS"
            • JobName — (String)

              The name of the job in question.

            • State — (String)

              The condition state.

              Possible values include:
              • "STARTING"
              • "RUNNING"
              • "STOPPING"
              • "STOPPED"
              • "SUCCEEDED"
              • "FAILED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getTriggers(params = {}, callback) ⇒ AWS.Request

Gets all the triggers associated with a job.

Service Reference:

Examples:

Calling the getTriggers operation

var params = {
  DependentJobName: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getTriggers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • DependentJobName — (String)

      The name of the job for which to retrieve triggers.

    • MaxResults — (Integer)

      The maximum size of the response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Triggers — (Array<map>)

        A list of triggers for the specified job.

        • Name — (String)

          Name of the trigger.

        • Id — (String)

          The trigger ID.

        • Type — (String)

          The type of trigger that this is.

          Possible values include:
          • "SCHEDULED"
          • "CONDITIONAL"
          • "ON_DEMAND"
        • State — (String)

          The current state of the trigger.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "ACTIVATING"
          • "ACTIVATED"
          • "DEACTIVATING"
          • "DEACTIVATED"
          • "DELETING"
          • "UPDATING"
        • Description — (String)

          A description of this trigger.

        • Schedule — (String)

          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 * * ? *).

        • Actions — (Array<map>)

          The actions initiated by this trigger.

          • JobName — (String)

            The name of a job to be executed.

          • Arguments — (map<String>)

            Arguments to be passed to the job.

        • Predicate — (map)

          The predicate of this trigger.

          • Logical — (String)

            Currently "OR" is not supported.

            Possible values include:
            • "AND"
          • Conditions — (Array<map>)

            A list of the conditions that determine when the trigger will fire.

            • LogicalOperator — (String)

              A logical operator.

              Possible values include:
              • "EQUALS"
            • JobName — (String)

              The name of the job in question.

            • State — (String)

              The condition state.

              Possible values include:
              • "STARTING"
              • "RUNNING"
              • "STOPPING"
              • "STOPPED"
              • "SUCCEEDED"
              • "FAILED"
      • NextToken — (String)

        A continuation token, if not all the requested triggers have yet been returned.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getUserDefinedFunction(params = {}, callback) ⇒ AWS.Request

Retrieves a specified function definition from the Data Catalog.

Service Reference:

Examples:

Calling the getUserDefinedFunction operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  FunctionName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.getUserDefinedFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the function to be retrieved is located. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the function is located.

    • FunctionName — (String)

      The name of the function.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserDefinedFunction — (map)

        The requested function definition.

        • FunctionName — (String)

          The name of the function.

        • ClassName — (String)

          The Java class that contains the function code.

        • OwnerName — (String)

          The owner of the function.

        • OwnerType — (String)

          The owner type.

          Possible values include:
          • "USER"
          • "ROLE"
          • "GROUP"
        • CreateTime — (Date)

          The time at which the function was created.

        • ResourceUris — (Array<map>)

          The resource URIs for the function.

          • ResourceType — (String)

            The type of the resource.

            Possible values include:
            • "JAR"
            • "FILE"
            • "ARCHIVE"
          • Uri — (String)

            The URI for accessing the resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getUserDefinedFunctions(params = {}, callback) ⇒ AWS.Request

Retrieves a multiple function definitions from the Data Catalog.

Service Reference:

Examples:

Calling the getUserDefinedFunctions operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  Pattern: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE',
  MaxResults: 0,
  NextToken: 'STRING_VALUE'
};
glue.getUserDefinedFunctions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the functions to be retrieved are located. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the functions are located.

    • Pattern — (String)

      An optional function-name pattern string that filters the function definitions returned.

    • NextToken — (String)

      A continuation token, if this is a continuation call.

    • MaxResults — (Integer)

      The maximum number of functions to return in one response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UserDefinedFunctions — (Array<map>)

        A list of requested function definitions.

        • FunctionName — (String)

          The name of the function.

        • ClassName — (String)

          The Java class that contains the function code.

        • OwnerName — (String)

          The owner of the function.

        • OwnerType — (String)

          The owner type.

          Possible values include:
          • "USER"
          • "ROLE"
          • "GROUP"
        • CreateTime — (Date)

          The time at which the function was created.

        • ResourceUris — (Array<map>)

          The resource URIs for the function.

          • ResourceType — (String)

            The type of the resource.

            Possible values include:
            • "JAR"
            • "FILE"
            • "ARCHIVE"
          • Uri — (String)

            The URI for accessing the resource.

      • NextToken — (String)

        A continuation token, if the list of functions returned does not include the last requested function.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

importCatalogToGlue(params = {}, callback) ⇒ AWS.Request

Imports an existing Athena Data Catalog to AWS Glue

Service Reference:

Examples:

Calling the importCatalogToGlue operation

var params = {
  CatalogId: 'STRING_VALUE'
};
glue.importCatalogToGlue(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the catalog to import. Currently, this should be the AWS account ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

resetJobBookmark(params = {}, callback) ⇒ AWS.Request

Resets a bookmark entry.

Service Reference:

Examples:

Calling the resetJobBookmark operation

var params = {
  JobName: 'STRING_VALUE' /* required */
};
glue.resetJobBookmark(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job in question.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobBookmarkEntry — (map)

        The reset bookmark entry.

        • JobName — (String)

          Name of the job in question.

        • Version — (Integer)

          Version of the job.

        • Run — (Integer)

          The run ID number.

        • Attempt — (Integer)

          The attempt ID number.

        • JobBookmark — (String)

          The bookmark itself.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startCrawler(params = {}, callback) ⇒ AWS.Request

Starts a crawl using the specified crawler, regardless of what is scheduled. If the crawler is already running, does nothing.

Service Reference:

Examples:

Calling the startCrawler operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.startCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the crawler to start.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startCrawlerSchedule(params = {}, callback) ⇒ AWS.Request

Changes the schedule state of the specified crawler to SCHEDULED, unless the crawler is already running or the schedule state is already SCHEDULED.

Service Reference:

Examples:

Calling the startCrawlerSchedule operation

var params = {
  CrawlerName: 'STRING_VALUE' /* required */
};
glue.startCrawlerSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CrawlerName — (String)

      Name of the crawler to schedule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startJobRun(params = {}, callback) ⇒ AWS.Request

Runs a job.

Service Reference:

Examples:

Calling the startJobRun operation

var params = {
  JobName: 'STRING_VALUE', /* required */
  AllocatedCapacity: 0,
  Arguments: {
    '<GenericString>': 'STRING_VALUE',
    /* '<GenericString>': ... */
  },
  JobRunId: 'STRING_VALUE'
};
glue.startJobRun(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      The name of the job to start.

    • JobRunId — (String)

      The ID of the job run to start.

    • Arguments — (map<String>)

      Specific arguments for this job run.

    • AllocatedCapacity — (Integer)

      The infrastructure capacity to allocate to this job.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobRunId — (String)

        The ID assigned to this job run.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startTrigger(params = {}, callback) ⇒ AWS.Request

Starts an existing trigger.

Service Reference:

Examples:

Calling the startTrigger operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.startTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the trigger to start.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name of the trigger that was started.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopCrawler(params = {}, callback) ⇒ AWS.Request

If the specified crawler is running, stops the crawl.

Service Reference:

Examples:

Calling the stopCrawler operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.stopCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the crawler to stop.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopCrawlerSchedule(params = {}, callback) ⇒ AWS.Request

Sets the schedule state of the specified crawler to NOT_SCHEDULED, but does not stop the crawler if it is already running.

Service Reference:

Examples:

Calling the stopCrawlerSchedule operation

var params = {
  CrawlerName: 'STRING_VALUE' /* required */
};
glue.stopCrawlerSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CrawlerName — (String)

      Name of the crawler whose schedule state to set.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopTrigger(params = {}, callback) ⇒ AWS.Request

Stops a specified trigger.

Service Reference:

Examples:

Calling the stopTrigger operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
glue.stopTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the trigger to stop.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name of the trigger that was stopped.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateClassifier(params = {}, callback) ⇒ AWS.Request

Modifies an existing classifier (either a GrokClassifier or an XMLClassifier).

Service Reference:

Examples:

Calling the updateClassifier operation

var params = {
  GrokClassifier: {
    Name: 'STRING_VALUE', /* required */
    Classification: 'STRING_VALUE',
    CustomPatterns: 'STRING_VALUE',
    GrokPattern: 'STRING_VALUE'
  },
  XMLClassifier: {
    Name: 'STRING_VALUE', /* required */
    Classification: 'STRING_VALUE',
    RowTag: 'STRING_VALUE'
  }
};
glue.updateClassifier(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • GrokClassifier — (map)

      A GrokClassifier object with updated fields.

      • Namerequired — (String)

        The name of the GrokClassifier.

      • Classification — (String)

        An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

      • GrokPattern — (String)

        The grok pattern used by this classifier.

      • CustomPatterns — (String)

        Optional custom grok patterns used by this classifier.

    • XMLClassifier — (map)

      An XMLClassifier object with updated fields.

      • Namerequired — (String)

        The name of the classifier.

      • Classification — (String)

        An identifier of the data format that the classifier matches.

      • RowTag — (String)

        The XML tag designating the element that contains each record in an XML document being parsed. Note that this cannot be an empty element. It must contain child elements representing fields in the record.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateConnection(params = {}, callback) ⇒ AWS.Request

Updates a connection definition in the Data Catalog.

Service Reference:

Examples:

Calling the updateConnection operation

var params = {
  ConnectionInput: { /* required */
    ConnectionProperties: {
      '<ConnectionPropertyKey>': 'STRING_VALUE',
      /* '<ConnectionPropertyKey>': ... */
    },
    ConnectionType: JDBC | SFTP,
    Description: 'STRING_VALUE',
    MatchCriteria: [
      'STRING_VALUE',
      /* more items */
    ],
    Name: 'STRING_VALUE',
    PhysicalConnectionRequirements: {
      AvailabilityZone: 'STRING_VALUE',
      SecurityGroupIdList: [
        'STRING_VALUE',
        /* more items */
      ],
      SubnetId: 'STRING_VALUE'
    }
  },
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.updateConnection(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the connection resides. If none is supplied, the AWS account ID is used by default.

    • Name — (String)

      The name of the connection definition to update.

    • ConnectionInput — (map)

      A ConnectionInput object that redefines the connection in question.

      • Name — (String)

        The name of the connection.

      • Description — (String)

        Description of the connection.

      • ConnectionType — (String)

        The type of the connection. Currently, only JDBC is supported; SFTP is not supported.

        Possible values include:
        • "JDBC"
        • "SFTP"
      • MatchCriteria — (Array<String>)

        A list of criteria that can be used in selecting this connection.

      • ConnectionProperties — (map<String>)

        A list of key-value pairs used as parameters for this connection.

      • PhysicalConnectionRequirements — (map)

        A map of physical connection requirements, such as VPC and SecurityGroup, needed for making this connection successfully.

        • SubnetId — (String)

          The subnet ID used by the connection.

        • SecurityGroupIdList — (Array<String>)

          The security group ID list used by the connection.

        • AvailabilityZone — (String)

          The connection's availability zone.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCrawler(params = {}, callback) ⇒ AWS.Request

Updates a crawler. If a crawler is running, you must stop it using StopCrawler before updating it.

Service Reference:

Examples:

Calling the updateCrawler operation

var params = {
  Name: 'STRING_VALUE', /* required */
  Classifiers: [
    'STRING_VALUE',
    /* more items */
  ],
  Configuration: 'STRING_VALUE',
  DatabaseName: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  Role: 'STRING_VALUE',
  Schedule: 'STRING_VALUE',
  SchemaChangePolicy: {
    DeleteBehavior: LOG | DELETE_FROM_DATABASE | DEPRECATE_IN_DATABASE,
    UpdateBehavior: LOG | UPDATE_IN_DATABASE
  },
  TablePrefix: 'STRING_VALUE',
  Targets: {
    JdbcTargets: [
      {
        ConnectionName: 'STRING_VALUE',
        Exclusions: [
          'STRING_VALUE',
          /* more items */
        ],
        Path: 'STRING_VALUE'
      },
      /* more items */
    ],
    S3Targets: [
      {
        Exclusions: [
          'STRING_VALUE',
          /* more items */
        ],
        Path: 'STRING_VALUE'
      },
      /* more items */
    ]
  }
};
glue.updateCrawler(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      Name of the new crawler.

    • Role — (String)

      The IAM role (or ARN of an IAM role) used by the new crawler to access customer resources.

    • DatabaseName — (String)

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

    • Description — (String)

      A description of the new crawler.

    • Targets — (map)

      A list of targets to crawl.

      • S3Targets — (Array<map>)

        Specifies Amazon S3 targets.

        • Path — (String)

          The path to the Amazon S3 target.

        • Exclusions — (Array<String>)

          A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

      • JdbcTargets — (Array<map>)

        Specifies JDBC targets.

        • ConnectionName — (String)

          The name of the connection to use to connect to the JDBC target.

        • Path — (String)

          The path of the JDBC target.

        • Exclusions — (Array<String>)

          A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

    • Schedule — (String)

      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 — (Array<String>)

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

    • TablePrefix — (String)

      The table prefix used for catalog tables that are created.

    • SchemaChangePolicy — (map)

      Policy for the crawler's update and deletion behavior.

      • UpdateBehavior — (String)

        The update behavior when the crawler finds a changed schema.

        Possible values include:
        • "LOG"
        • "UPDATE_IN_DATABASE"
      • DeleteBehavior — (String)

        The deletion behavior when the crawler finds a deleted object.

        Possible values include:
        • "LOG"
        • "DELETE_FROM_DATABASE"
        • "DEPRECATE_IN_DATABASE"
    • Configuration — (String)

      Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

      You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateCrawlerSchedule(params = {}, callback) ⇒ AWS.Request

Updates the schedule of a crawler using a cron expression.

Service Reference:

Examples:

Calling the updateCrawlerSchedule operation

var params = {
  CrawlerName: 'STRING_VALUE', /* required */
  Schedule: 'STRING_VALUE'
};
glue.updateCrawlerSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CrawlerName — (String)

      Name of the crawler whose schedule to update.

    • Schedule — (String)

      The updated 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 * * ? *).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDatabase(params = {}, callback) ⇒ AWS.Request

Updates an existing database definition in a Data Catalog.

Service Reference:

Examples:

Calling the updateDatabase operation

var params = {
  DatabaseInput: { /* required */
    Name: 'STRING_VALUE', /* required */
    Description: 'STRING_VALUE',
    LocationUri: 'STRING_VALUE',
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    }
  },
  Name: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.updateDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog in which the metadata database resides. If none is supplied, the AWS account ID is used by default.

    • Name — (String)

      The name of the metadata database to update in the catalog.

    • DatabaseInput — (map)

      A DatabaseInput object specifying the new definition of the metadata database in the catalog.

      • Namerequired — (String)

        Name of the database.

      • Description — (String)

        Description of the database

      • LocationUri — (String)

        The location of the database (for example, an HDFS path).

      • Parameters — (map<String>)

        A list of key-value pairs that define parameters and properties of the database.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDevEndpoint(params = {}, callback) ⇒ AWS.Request

Updates a specified DevEndpoint.

Service Reference:

Examples:

Calling the updateDevEndpoint operation

var params = {
  EndpointName: 'STRING_VALUE', /* required */
  CustomLibraries: {
    ExtraJarsS3Path: 'STRING_VALUE',
    ExtraPythonLibsS3Path: 'STRING_VALUE'
  },
  PublicKey: 'STRING_VALUE',
  UpdateEtlLibraries: true || false
};
glue.updateDevEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • EndpointName — (String)

      The name of the DevEndpoint to be updated.

    • PublicKey — (String)

      The public key for the DevEndpoint to use.

    • CustomLibraries — (map)

      Custom Python or Java libraries to be loaded in the DevEndpoint.

      • ExtraPythonLibsS3Path — (String)

        Path(s) to one or more Python libraries in an S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

        Please note that only pure Python libraries can currently be used on a DevEndpoint. Libraries that rely on C extensions, such as the pandas Python data analysis library, are not yet supported.

      • ExtraJarsS3Path — (String)

        Path to one or more Java Jars in an S3 bucket that should be loaded in your DevEndpoint.

        Please note that only pure Java/Scala libraries can currently be used on a DevEndpoint.

    • UpdateEtlLibraries — (Boolean)

      True if the list of custom libraries to be loaded in the development endpoint needs to be updated, or False otherwise.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateJob(params = {}, callback) ⇒ AWS.Request

Updates an existing job definition.

Service Reference:

Examples:

Calling the updateJob operation

var params = {
  JobName: 'STRING_VALUE', /* required */
  JobUpdate: { /* required */
    AllocatedCapacity: 0,
    Command: {
      Name: 'STRING_VALUE',
      ScriptLocation: 'STRING_VALUE'
    },
    Connections: {
      Connections: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    DefaultArguments: {
      '<GenericString>': 'STRING_VALUE',
      /* '<GenericString>': ... */
    },
    Description: 'STRING_VALUE',
    ExecutionProperty: {
      MaxConcurrentRuns: 0
    },
    LogUri: 'STRING_VALUE',
    MaxRetries: 0,
    Role: 'STRING_VALUE'
  }
};
glue.updateJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • JobName — (String)

      Name of the job definition to update.

    • JobUpdate — (map)

      Specifies the values with which to update the job.

      • Description — (String)

        Description of the job.

      • LogUri — (String)

        This field is reserved for future use.

      • Role — (String)

        The role associated with this job.

      • ExecutionProperty — (map)

        An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.

        • MaxConcurrentRuns — (Integer)

          The maximum number of concurrent runs allowed for a job.

      • Command — (map)

        The JobCommand that executes this job.

        • Name — (String)

          The name of this job command.

        • ScriptLocation — (String)

          Specifies the location of a script that executes a job.

      • DefaultArguments — (map<String>)

        The default parameters for this job.

      • Connections — (map)

        The connections used for this job.

        • Connections — (Array<String>)

          A list of connections used by the job.

      • MaxRetries — (Integer)

        The maximum number of times to retry this job if it fails.

      • AllocatedCapacity — (Integer)

        The number of capacity units allocated to this job.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • JobName — (String)

        Returns the name of the updated job.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updatePartition(params = {}, callback) ⇒ AWS.Request

Updates a partition.

Service Reference:

Examples:

Calling the updatePartition operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  PartitionInput: { /* required */
    LastAccessTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    LastAnalyzedTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    },
    StorageDescriptor: {
      BucketColumns: [
        'STRING_VALUE',
        /* more items */
      ],
      Columns: [
        {
          Name: 'STRING_VALUE', /* required */
          Comment: 'STRING_VALUE',
          Type: 'STRING_VALUE'
        },
        /* more items */
      ],
      Compressed: true || false,
      InputFormat: 'STRING_VALUE',
      Location: 'STRING_VALUE',
      NumberOfBuckets: 0,
      OutputFormat: 'STRING_VALUE',
      Parameters: {
        '<KeyString>': 'STRING_VALUE',
        /* '<KeyString>': ... */
      },
      SerdeInfo: {
        Name: 'STRING_VALUE',
        Parameters: {
          '<KeyString>': 'STRING_VALUE',
          /* '<KeyString>': ... */
        },
        SerializationLibrary: 'STRING_VALUE'
      },
      SkewedInfo: {
        SkewedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ],
        SkewedColumnValueLocationMaps: {
          '<ColumnValuesString>': 'STRING_VALUE',
          /* '<ColumnValuesString>': ... */
        },
        SkewedColumnValues: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      SortColumns: [
        {
          Column: 'STRING_VALUE', /* required */
          SortOrder: 0 /* required */
        },
        /* more items */
      ],
      StoredAsSubDirectories: true || false
    },
    Values: [
      'STRING_VALUE',
      /* more items */
    ]
  },
  PartitionValueList: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  TableName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.updatePartition(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the partition to be updated resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which the table in question resides.

    • TableName — (String)

      The name of the table where the partition to be updated is located.

    • PartitionValueList — (Array<String>)

      A list of the values defining the partition.

    • PartitionInput — (map)

      The new partition object to which to update the partition.

      • Values — (Array<String>)

        The values of the partition.

      • LastAccessTime — (Date)

        The last time at which the partition was accessed.

      • StorageDescriptor — (map)

        Provides information about the physical location where the partition is stored.

        • Columns — (Array<map>)

          A list of the Columns in the table.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • Location — (String)

          The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

        • InputFormat — (String)

          The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

        • OutputFormat — (String)

          The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

        • Compressed — (Boolean)

          True if the data in the table is compressed, or False if not.

        • NumberOfBuckets — (Integer)

          Must be specified if the table contains any dimension columns.

        • SerdeInfo — (map)

          Serialization/deserialization (SerDe) information.

          • Name — (String)

            Name of the SerDe.

          • SerializationLibrary — (String)

            Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

          • Parameters — (map<String>)

            A list of initialization parameters for the SerDe, in key-value form.

        • BucketColumns — (Array<String>)

          A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

        • SortColumns — (Array<map>)

          A list specifying the sort order of each bucket in the table.

          • Columnrequired — (String)

            The name of the column.

          • SortOrderrequired — (Integer)

            Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

        • Parameters — (map<String>)

          User-supplied properties in key-value form.

        • SkewedInfo — (map)

          Information about values that appear very frequently in a column (skewed values).

          • SkewedColumnNames — (Array<String>)

            A list of names of columns that contain skewed values.

          • SkewedColumnValues — (Array<String>)

            A list of values that appear so frequently as to be considered skewed.

          • SkewedColumnValueLocationMaps — (map<String>)

            A mapping of skewed values to the columns that contain them.

        • StoredAsSubDirectories — (Boolean)

          True if the table data is stored in subdirectories, or False if not.

      • Parameters — (map<String>)

        Partition parameters, in the form of a list of key-value pairs.

      • LastAnalyzedTime — (Date)

        The last time at which column statistics were computed for this partition.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTable(params = {}, callback) ⇒ AWS.Request

Updates a metadata table in the Data Catalog.

Service Reference:

Examples:

Calling the updateTable operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  TableInput: { /* required */
    Name: 'STRING_VALUE', /* required */
    Description: 'STRING_VALUE',
    LastAccessTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    LastAnalyzedTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    Owner: 'STRING_VALUE',
    Parameters: {
      '<KeyString>': 'STRING_VALUE',
      /* '<KeyString>': ... */
    },
    PartitionKeys: [
      {
        Name: 'STRING_VALUE', /* required */
        Comment: 'STRING_VALUE',
        Type: 'STRING_VALUE'
      },
      /* more items */
    ],
    Retention: 0,
    StorageDescriptor: {
      BucketColumns: [
        'STRING_VALUE',
        /* more items */
      ],
      Columns: [
        {
          Name: 'STRING_VALUE', /* required */
          Comment: 'STRING_VALUE',
          Type: 'STRING_VALUE'
        },
        /* more items */
      ],
      Compressed: true || false,
      InputFormat: 'STRING_VALUE',
      Location: 'STRING_VALUE',
      NumberOfBuckets: 0,
      OutputFormat: 'STRING_VALUE',
      Parameters: {
        '<KeyString>': 'STRING_VALUE',
        /* '<KeyString>': ... */
      },
      SerdeInfo: {
        Name: 'STRING_VALUE',
        Parameters: {
          '<KeyString>': 'STRING_VALUE',
          /* '<KeyString>': ... */
        },
        SerializationLibrary: 'STRING_VALUE'
      },
      SkewedInfo: {
        SkewedColumnNames: [
          'STRING_VALUE',
          /* more items */
        ],
        SkewedColumnValueLocationMaps: {
          '<ColumnValuesString>': 'STRING_VALUE',
          /* '<ColumnValuesString>': ... */
        },
        SkewedColumnValues: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      SortColumns: [
        {
          Column: 'STRING_VALUE', /* required */
          SortOrder: 0 /* required */
        },
        /* more items */
      ],
      StoredAsSubDirectories: true || false
    },
    TableType: 'STRING_VALUE',
    ViewExpandedText: 'STRING_VALUE',
    ViewOriginalText: 'STRING_VALUE'
  },
  CatalogId: 'STRING_VALUE'
};
glue.updateTable(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database in which the table resides.

    • TableInput — (map)

      An updated TableInput object to define the metadata table in the catalog.

      • Namerequired — (String)

        Name of the table.

      • Description — (String)

        Description of the table.

      • Owner — (String)

        Owner of the table.

      • LastAccessTime — (Date)

        Last time the table was accessed.

      • LastAnalyzedTime — (Date)

        Last time column statistics were computed for this table.

      • Retention — (Integer)

        Retention time for this table.

      • StorageDescriptor — (map)

        A storage descriptor containing information about the physical storage of this table.

        • Columns — (Array<map>)

          A list of the Columns in the table.

          • Namerequired — (String)

            The name of the Column.

          • Type — (String)

            The datatype of data in the Column.

          • Comment — (String)

            Free-form text comment.

        • Location — (String)

          The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.

        • InputFormat — (String)

          The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.

        • OutputFormat — (String)

          The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.

        • Compressed — (Boolean)

          True if the data in the table is compressed, or False if not.

        • NumberOfBuckets — (Integer)

          Must be specified if the table contains any dimension columns.

        • SerdeInfo — (map)

          Serialization/deserialization (SerDe) information.

          • Name — (String)

            Name of the SerDe.

          • SerializationLibrary — (String)

            Usually the class that implements the SerDe. An example is: org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe.

          • Parameters — (map<String>)

            A list of initialization parameters for the SerDe, in key-value form.

        • BucketColumns — (Array<String>)

          A list of reducer grouping columns, clustering columns, and bucketing columns in the table.

        • SortColumns — (Array<map>)

          A list specifying the sort order of each bucket in the table.

          • Columnrequired — (String)

            The name of the column.

          • SortOrderrequired — (Integer)

            Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).

        • Parameters — (map<String>)

          User-supplied properties in key-value form.

        • SkewedInfo — (map)

          Information about values that appear very frequently in a column (skewed values).

          • SkewedColumnNames — (Array<String>)

            A list of names of columns that contain skewed values.

          • SkewedColumnValues — (Array<String>)

            A list of values that appear so frequently as to be considered skewed.

          • SkewedColumnValueLocationMaps — (map<String>)

            A mapping of skewed values to the columns that contain them.

        • StoredAsSubDirectories — (Boolean)

          True if the table data is stored in subdirectories, or False if not.

      • PartitionKeys — (Array<map>)

        A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

        • Namerequired — (String)

          The name of the Column.

        • Type — (String)

          The datatype of data in the Column.

        • Comment — (String)

          Free-form text comment.

      • ViewOriginalText — (String)

        If the table is a view, the original text of the view; otherwise null.

      • ViewExpandedText — (String)

        If the table is a view, the expanded text of the view; otherwise null.

      • TableType — (String)

        The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

      • Parameters — (map<String>)

        Properties associated with this table, as a list of key-value pairs.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTrigger(params = {}, callback) ⇒ AWS.Request

Updates a trigger definition.

Service Reference:

Examples:

Calling the updateTrigger operation

var params = {
  Name: 'STRING_VALUE', /* required */
  TriggerUpdate: { /* required */
    Actions: [
      {
        Arguments: {
          '<GenericString>': 'STRING_VALUE',
          /* '<GenericString>': ... */
        },
        JobName: 'STRING_VALUE'
      },
      /* more items */
    ],
    Description: 'STRING_VALUE',
    Name: 'STRING_VALUE',
    Predicate: {
      Conditions: [
        {
          JobName: 'STRING_VALUE',
          LogicalOperator: EQUALS,
          State: STARTING | RUNNING | STOPPING | STOPPED | SUCCEEDED | FAILED
        },
        /* more items */
      ],
      Logical: AND
    },
    Schedule: 'STRING_VALUE'
  }
};
glue.updateTrigger(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the trigger to update.

    • TriggerUpdate — (map)

      The new values with which to update the trigger.

      • Name — (String)

        The name of the trigger.

      • Description — (String)

        A description of this trigger.

      • Schedule — (String)

        An updated 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 * * ? *).

      • Actions — (Array<map>)

        The actions initiated by this trigger.

        • JobName — (String)

          The name of a job to be executed.

        • Arguments — (map<String>)

          Arguments to be passed to the job.

      • Predicate — (map)

        The predicate of this trigger, which defines when it will fire.

        • Logical — (String)

          Currently "OR" is not supported.

          Possible values include:
          • "AND"
        • Conditions — (Array<map>)

          A list of the conditions that determine when the trigger will fire.

          • LogicalOperator — (String)

            A logical operator.

            Possible values include:
            • "EQUALS"
          • JobName — (String)

            The name of the job in question.

          • State — (String)

            The condition state.

            Possible values include:
            • "STARTING"
            • "RUNNING"
            • "STOPPING"
            • "STOPPED"
            • "SUCCEEDED"
            • "FAILED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Trigger — (map)

        The resulting trigger definition.

        • Name — (String)

          Name of the trigger.

        • Id — (String)

          The trigger ID.

        • Type — (String)

          The type of trigger that this is.

          Possible values include:
          • "SCHEDULED"
          • "CONDITIONAL"
          • "ON_DEMAND"
        • State — (String)

          The current state of the trigger.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "ACTIVATING"
          • "ACTIVATED"
          • "DEACTIVATING"
          • "DEACTIVATED"
          • "DELETING"
          • "UPDATING"
        • Description — (String)

          A description of this trigger.

        • Schedule — (String)

          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 * * ? *).

        • Actions — (Array<map>)

          The actions initiated by this trigger.

          • JobName — (String)

            The name of a job to be executed.

          • Arguments — (map<String>)

            Arguments to be passed to the job.

        • Predicate — (map)

          The predicate of this trigger.

          • Logical — (String)

            Currently "OR" is not supported.

            Possible values include:
            • "AND"
          • Conditions — (Array<map>)

            A list of the conditions that determine when the trigger will fire.

            • LogicalOperator — (String)

              A logical operator.

              Possible values include:
              • "EQUALS"
            • JobName — (String)

              The name of the job in question.

            • State — (String)

              The condition state.

              Possible values include:
              • "STARTING"
              • "RUNNING"
              • "STOPPING"
              • "STOPPED"
              • "SUCCEEDED"
              • "FAILED"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateUserDefinedFunction(params = {}, callback) ⇒ AWS.Request

Updates an existing function definition in the Data Catalog.

Service Reference:

Examples:

Calling the updateUserDefinedFunction operation

var params = {
  DatabaseName: 'STRING_VALUE', /* required */
  FunctionInput: { /* required */
    ClassName: 'STRING_VALUE',
    FunctionName: 'STRING_VALUE',
    OwnerName: 'STRING_VALUE',
    OwnerType: USER | ROLE | GROUP,
    ResourceUris: [
      {
        ResourceType: JAR | FILE | ARCHIVE,
        Uri: 'STRING_VALUE'
      },
      /* more items */
    ]
  },
  FunctionName: 'STRING_VALUE', /* required */
  CatalogId: 'STRING_VALUE'
};
glue.updateUserDefinedFunction(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CatalogId — (String)

      The ID of the Data Catalog where the function to be updated is located. If none is supplied, the AWS account ID is used by default.

    • DatabaseName — (String)

      The name of the catalog database where the function to be updated is located.

    • FunctionName — (String)

      The name of the function.

    • FunctionInput — (map)

      A FunctionInput object that re-defines the function in the Data Catalog.

      • FunctionName — (String)

        The name of the function.

      • ClassName — (String)

        The Java class that contains the function code.

      • OwnerName — (String)

        The owner of the function.

      • OwnerType — (String)

        The owner type.

        Possible values include:
        • "USER"
        • "ROLE"
        • "GROUP"
      • ResourceUris — (Array<map>)

        The resource URIs for the function.

        • ResourceType — (String)

          The type of the resource.

          Possible values include:
          • "JAR"
          • "FILE"
          • "ARCHIVE"
        • Uri — (String)

          The URI for accessing the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.