JSPM

@aws-sdk/client-glue

3.891.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 214130
  • Score
    100M100P100Q185038F
  • License Apache-2.0

AWS SDK for JavaScript Glue Client for Node.js, Browser and React Native

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-sdk/client-glue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @aws-sdk/client-glue

    Description

    AWS SDK for JavaScript Glue Client for Node.js, Browser and React Native.

    Glue

    Defines the public endpoint for the Glue service.

    Installing

    To install this package, simply type add or install @aws-sdk/client-glue using your favorite package manager:

    • npm install @aws-sdk/client-glue
    • yarn add @aws-sdk/client-glue
    • pnpm add @aws-sdk/client-glue

    Getting Started

    Import

    The AWS SDK is modulized by clients and commands. To send a request, you only need to import the GlueClient and the commands you need, for example ListJobsCommand:

    // ES5 example
    const { GlueClient, ListJobsCommand } = require("@aws-sdk/client-glue");
    // ES6+ example
    import { GlueClient, ListJobsCommand } from "@aws-sdk/client-glue";

    Usage

    To send a request, you:

    • Initiate client with configuration (e.g. credentials, region).
    • Initiate command with input parameters.
    • Call send operation on client with command object as input.
    • If you are using a custom http handler, you may call destroy() to close open connections.
    // a client can be shared by different commands.
    const client = new GlueClient({ region: "REGION" });
    
    const params = {
      /** input parameters */
    };
    const command = new ListJobsCommand(params);

    Async/await

    We recommend using await operator to wait for the promise returned by send operation as follows:

    // async/await.
    try {
      const data = await client.send(command);
      // process data.
    } catch (error) {
      // error handling.
    } finally {
      // finally.
    }

    Async-await is clean, concise, intuitive, easy to debug and has better error handling as compared to using Promise chains or callbacks.

    Promises

    You can also use Promise chaining to execute send operation.

    client.send(command).then(
      (data) => {
        // process data.
      },
      (error) => {
        // error handling.
      }
    );

    Promises can also be called using .catch() and .finally() as follows:

    client
      .send(command)
      .then((data) => {
        // process data.
      })
      .catch((error) => {
        // error handling.
      })
      .finally(() => {
        // finally.
      });

    Callbacks

    We do not recommend using callbacks because of callback hell, but they are supported by the send operation.

    // callbacks.
    client.send(command, (err, data) => {
      // process err and data.
    });

    v2 compatible style

    The client can also send requests using v2 compatible style. However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post on modular packages in AWS SDK for JavaScript

    import * as AWS from "@aws-sdk/client-glue";
    const client = new AWS.Glue({ region: "REGION" });
    
    // async/await.
    try {
      const data = await client.listJobs(params);
      // process data.
    } catch (error) {
      // error handling.
    }
    
    // Promises.
    client
      .listJobs(params)
      .then((data) => {
        // process data.
      })
      .catch((error) => {
        // error handling.
      });
    
    // callbacks.
    client.listJobs(params, (err, data) => {
      // process err and data.
    });

    Troubleshooting

    When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).

    try {
      const data = await client.send(command);
      // process data.
    } catch (error) {
      const { requestId, cfId, extendedRequestId } = error.$metadata;
      console.log({ requestId, cfId, extendedRequestId });
      /**
       * The keys within exceptions are also parsed.
       * You can access them by specifying exception names:
       * if (error.name === 'SomeServiceException') {
       *     const value = error.specialKeyInException;
       * }
       */
    }

    Getting Help

    Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.

    To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.

    Contributing

    This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-glue package is updated. To contribute to client you can check our generate clients scripts.

    License

    This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.

    Client Commands (Operations List)

    BatchCreatePartition

    Command API Reference / Input / Output

    BatchDeleteConnection

    Command API Reference / Input / Output

    BatchDeletePartition

    Command API Reference / Input / Output

    BatchDeleteTable

    Command API Reference / Input / Output

    BatchDeleteTableVersion

    Command API Reference / Input / Output

    BatchGetBlueprints

    Command API Reference / Input / Output

    BatchGetCrawlers

    Command API Reference / Input / Output

    BatchGetCustomEntityTypes

    Command API Reference / Input / Output

    BatchGetDataQualityResult

    Command API Reference / Input / Output

    BatchGetDevEndpoints

    Command API Reference / Input / Output

    BatchGetJobs

    Command API Reference / Input / Output

    BatchGetPartition

    Command API Reference / Input / Output

    BatchGetTableOptimizer

    Command API Reference / Input / Output

    BatchGetTriggers

    Command API Reference / Input / Output

    BatchGetWorkflows

    Command API Reference / Input / Output

    BatchPutDataQualityStatisticAnnotation

    Command API Reference / Input / Output

    BatchStopJobRun

    Command API Reference / Input / Output

    BatchUpdatePartition

    Command API Reference / Input / Output

    CancelDataQualityRuleRecommendationRun

    Command API Reference / Input / Output

    CancelDataQualityRulesetEvaluationRun

    Command API Reference / Input / Output

    CancelMLTaskRun

    Command API Reference / Input / Output

    CancelStatement

    Command API Reference / Input / Output

    CheckSchemaVersionValidity

    Command API Reference / Input / Output

    CreateBlueprint

    Command API Reference / Input / Output

    CreateCatalog

    Command API Reference / Input / Output

    CreateClassifier

    Command API Reference / Input / Output

    CreateColumnStatisticsTaskSettings

    Command API Reference / Input / Output

    CreateConnection

    Command API Reference / Input / Output

    CreateCrawler

    Command API Reference / Input / Output

    CreateCustomEntityType

    Command API Reference / Input / Output

    CreateDatabase

    Command API Reference / Input / Output

    CreateDataQualityRuleset

    Command API Reference / Input / Output

    CreateDevEndpoint

    Command API Reference / Input / Output

    CreateGlueIdentityCenterConfiguration

    Command API Reference / Input / Output

    CreateIntegration

    Command API Reference / Input / Output

    CreateIntegrationResourceProperty

    Command API Reference / Input / Output

    CreateIntegrationTableProperties

    Command API Reference / Input / Output

    CreateJob

    Command API Reference / Input / Output

    CreateMLTransform

    Command API Reference / Input / Output

    CreatePartition

    Command API Reference / Input / Output

    CreatePartitionIndex

    Command API Reference / Input / Output

    CreateRegistry

    Command API Reference / Input / Output

    CreateSchema

    Command API Reference / Input / Output

    CreateScript

    Command API Reference / Input / Output

    CreateSecurityConfiguration

    Command API Reference / Input / Output

    CreateSession

    Command API Reference / Input / Output

    CreateTable

    Command API Reference / Input / Output

    CreateTableOptimizer

    Command API Reference / Input / Output

    CreateTrigger

    Command API Reference / Input / Output

    CreateUsageProfile

    Command API Reference / Input / Output

    CreateUserDefinedFunction

    Command API Reference / Input / Output

    CreateWorkflow

    Command API Reference / Input / Output

    DeleteBlueprint

    Command API Reference / Input / Output

    DeleteCatalog

    Command API Reference / Input / Output

    DeleteClassifier

    Command API Reference / Input / Output

    DeleteColumnStatisticsForPartition

    Command API Reference / Input / Output

    DeleteColumnStatisticsForTable

    Command API Reference / Input / Output

    DeleteColumnStatisticsTaskSettings

    Command API Reference / Input / Output

    DeleteConnection

    Command API Reference / Input / Output

    DeleteCrawler

    Command API Reference / Input / Output

    DeleteCustomEntityType

    Command API Reference / Input / Output

    DeleteDatabase

    Command API Reference / Input / Output

    DeleteDataQualityRuleset

    Command API Reference / Input / Output

    DeleteDevEndpoint

    Command API Reference / Input / Output

    DeleteGlueIdentityCenterConfiguration

    Command API Reference / Input / Output

    DeleteIntegration

    Command API Reference / Input / Output

    DeleteIntegrationTableProperties

    Command API Reference / Input / Output

    DeleteJob

    Command API Reference / Input / Output

    DeleteMLTransform

    Command API Reference / Input / Output

    DeletePartition

    Command API Reference / Input / Output

    DeletePartitionIndex

    Command API Reference / Input / Output

    DeleteRegistry

    Command API Reference / Input / Output

    DeleteResourcePolicy

    Command API Reference / Input / Output

    DeleteSchema

    Command API Reference / Input / Output

    DeleteSchemaVersions

    Command API Reference / Input / Output

    DeleteSecurityConfiguration

    Command API Reference / Input / Output

    DeleteSession

    Command API Reference / Input / Output

    DeleteTable

    Command API Reference / Input / Output

    DeleteTableOptimizer

    Command API Reference / Input / Output

    DeleteTableVersion

    Command API Reference / Input / Output

    DeleteTrigger

    Command API Reference / Input / Output

    DeleteUsageProfile

    Command API Reference / Input / Output

    DeleteUserDefinedFunction

    Command API Reference / Input / Output

    DeleteWorkflow

    Command API Reference / Input / Output

    DescribeConnectionType

    Command API Reference / Input / Output

    DescribeEntity

    Command API Reference / Input / Output

    DescribeInboundIntegrations

    Command API Reference / Input / Output

    DescribeIntegrations

    Command API Reference / Input / Output

    GetBlueprint

    Command API Reference / Input / Output

    GetBlueprintRun

    Command API Reference / Input / Output

    GetBlueprintRuns

    Command API Reference / Input / Output

    GetCatalog

    Command API Reference / Input / Output

    GetCatalogImportStatus

    Command API Reference / Input / Output

    GetCatalogs

    Command API Reference / Input / Output

    GetClassifier

    Command API Reference / Input / Output

    GetClassifiers

    Command API Reference / Input / Output

    GetColumnStatisticsForPartition

    Command API Reference / Input / Output

    GetColumnStatisticsForTable

    Command API Reference / Input / Output

    GetColumnStatisticsTaskRun

    Command API Reference / Input / Output

    GetColumnStatisticsTaskRuns

    Command API Reference / Input / Output

    GetColumnStatisticsTaskSettings

    Command API Reference / Input / Output

    GetConnection

    Command API Reference / Input / Output

    GetConnections

    Command API Reference / Input / Output

    GetCrawler

    Command API Reference / Input / Output

    GetCrawlerMetrics

    Command API Reference / Input / Output

    GetCrawlers

    Command API Reference / Input / Output

    GetCustomEntityType

    Command API Reference / Input / Output

    GetDatabase

    Command API Reference / Input / Output

    GetDatabases

    Command API Reference / Input / Output

    GetDataCatalogEncryptionSettings

    Command API Reference / Input / Output

    GetDataflowGraph

    Command API Reference / Input / Output

    GetDataQualityModel

    Command API Reference / Input / Output

    GetDataQualityModelResult

    Command API Reference / Input / Output

    GetDataQualityResult

    Command API Reference / Input / Output

    GetDataQualityRuleRecommendationRun

    Command API Reference / Input / Output

    GetDataQualityRuleset

    Command API Reference / Input / Output

    GetDataQualityRulesetEvaluationRun

    Command API Reference / Input / Output

    GetDevEndpoint

    Command API Reference / Input / Output

    GetDevEndpoints

    Command API Reference / Input / Output

    GetEntityRecords

    Command API Reference / Input / Output

    GetGlueIdentityCenterConfiguration

    Command API Reference / Input / Output

    GetIntegrationResourceProperty

    Command API Reference / Input / Output

    GetIntegrationTableProperties

    Command API Reference / Input / Output

    GetJob

    Command API Reference / Input / Output

    GetJobBookmark

    Command API Reference / Input / Output

    GetJobRun

    Command API Reference / Input / Output

    GetJobRuns

    Command API Reference / Input / Output

    GetJobs

    Command API Reference / Input / Output

    GetMapping

    Command API Reference / Input / Output

    GetMLTaskRun

    Command API Reference / Input / Output

    GetMLTaskRuns

    Command API Reference / Input / Output

    GetMLTransform

    Command API Reference / Input / Output

    GetMLTransforms

    Command API Reference / Input / Output

    GetPartition

    Command API Reference / Input / Output

    GetPartitionIndexes

    Command API Reference / Input / Output

    GetPartitions

    Command API Reference / Input / Output

    GetPlan

    Command API Reference / Input / Output

    GetRegistry

    Command API Reference / Input / Output

    GetResourcePolicies

    Command API Reference / Input / Output

    GetResourcePolicy

    Command API Reference / Input / Output

    GetSchema

    Command API Reference / Input / Output

    GetSchemaByDefinition

    Command API Reference / Input / Output

    GetSchemaVersion

    Command API Reference / Input / Output

    GetSchemaVersionsDiff

    Command API Reference / Input / Output

    GetSecurityConfiguration

    Command API Reference / Input / Output

    GetSecurityConfigurations

    Command API Reference / Input / Output

    GetSession

    Command API Reference / Input / Output

    GetStatement

    Command API Reference / Input / Output

    GetTable

    Command API Reference / Input / Output

    GetTableOptimizer

    Command API Reference / Input / Output

    GetTables

    Command API Reference / Input / Output

    GetTableVersion

    Command API Reference / Input / Output

    GetTableVersions

    Command API Reference / Input / Output

    GetTags

    Command API Reference / Input / Output

    GetTrigger

    Command API Reference / Input / Output

    GetTriggers

    Command API Reference / Input / Output

    GetUnfilteredPartitionMetadata

    Command API Reference / Input / Output

    GetUnfilteredPartitionsMetadata

    Command API Reference / Input / Output

    GetUnfilteredTableMetadata

    Command API Reference / Input / Output

    GetUsageProfile

    Command API Reference / Input / Output

    GetUserDefinedFunction

    Command API Reference / Input / Output

    GetUserDefinedFunctions

    Command API Reference / Input / Output

    GetWorkflow

    Command API Reference / Input / Output

    GetWorkflowRun

    Command API Reference / Input / Output

    GetWorkflowRunProperties

    Command API Reference / Input / Output

    GetWorkflowRuns

    Command API Reference / Input / Output

    ImportCatalogToGlue

    Command API Reference / Input / Output

    ListBlueprints

    Command API Reference / Input / Output

    ListColumnStatisticsTaskRuns

    Command API Reference / Input / Output

    ListConnectionTypes

    Command API Reference / Input / Output

    ListCrawlers

    Command API Reference / Input / Output

    ListCrawls

    Command API Reference / Input / Output

    ListCustomEntityTypes

    Command API Reference / Input / Output

    ListDataQualityResults

    Command API Reference / Input / Output

    ListDataQualityRuleRecommendationRuns

    Command API Reference / Input / Output

    ListDataQualityRulesetEvaluationRuns

    Command API Reference / Input / Output

    ListDataQualityRulesets

    Command API Reference / Input / Output

    ListDataQualityStatisticAnnotations

    Command API Reference / Input / Output

    ListDataQualityStatistics

    Command API Reference / Input / Output

    ListDevEndpoints

    Command API Reference / Input / Output

    ListEntities

    Command API Reference / Input / Output

    ListJobs

    Command API Reference / Input / Output

    ListMLTransforms

    Command API Reference / Input / Output

    ListRegistries

    Command API Reference / Input / Output

    ListSchemas

    Command API Reference / Input / Output

    ListSchemaVersions

    Command API Reference / Input / Output

    ListSessions

    Command API Reference / Input / Output

    ListStatements

    Command API Reference / Input / Output

    ListTableOptimizerRuns

    Command API Reference / Input / Output

    ListTriggers

    Command API Reference / Input / Output

    ListUsageProfiles

    Command API Reference / Input / Output

    ListWorkflows

    Command API Reference / Input / Output

    ModifyIntegration

    Command API Reference / Input / Output

    PutDataCatalogEncryptionSettings

    Command API Reference / Input / Output

    PutDataQualityProfileAnnotation

    Command API Reference / Input / Output

    PutResourcePolicy

    Command API Reference / Input / Output

    PutSchemaVersionMetadata

    Command API Reference / Input / Output

    PutWorkflowRunProperties

    Command API Reference / Input / Output

    QuerySchemaVersionMetadata

    Command API Reference / Input / Output

    RegisterSchemaVersion

    Command API Reference / Input / Output

    RemoveSchemaVersionMetadata

    Command API Reference / Input / Output

    ResetJobBookmark

    Command API Reference / Input / Output

    ResumeWorkflowRun

    Command API Reference / Input / Output

    RunStatement

    Command API Reference / Input / Output

    SearchTables

    Command API Reference / Input / Output

    StartBlueprintRun

    Command API Reference / Input / Output

    StartColumnStatisticsTaskRun

    Command API Reference / Input / Output

    StartColumnStatisticsTaskRunSchedule

    Command API Reference / Input / Output

    StartCrawler

    Command API Reference / Input / Output

    StartCrawlerSchedule

    Command API Reference / Input / Output

    StartDataQualityRuleRecommendationRun

    Command API Reference / Input / Output

    StartDataQualityRulesetEvaluationRun

    Command API Reference / Input / Output

    StartExportLabelsTaskRun

    Command API Reference / Input / Output

    StartImportLabelsTaskRun

    Command API Reference / Input / Output

    StartJobRun

    Command API Reference / Input / Output

    StartMLEvaluationTaskRun

    Command API Reference / Input / Output

    StartMLLabelingSetGenerationTaskRun

    Command API Reference / Input / Output

    StartTrigger

    Command API Reference / Input / Output

    StartWorkflowRun

    Command API Reference / Input / Output

    StopColumnStatisticsTaskRun

    Command API Reference / Input / Output

    StopColumnStatisticsTaskRunSchedule

    Command API Reference / Input / Output

    StopCrawler

    Command API Reference / Input / Output

    StopCrawlerSchedule

    Command API Reference / Input / Output

    StopSession

    Command API Reference / Input / Output

    StopTrigger

    Command API Reference / Input / Output

    StopWorkflowRun

    Command API Reference / Input / Output

    TagResource

    Command API Reference / Input / Output

    TestConnection

    Command API Reference / Input / Output

    UntagResource

    Command API Reference / Input / Output

    UpdateBlueprint

    Command API Reference / Input / Output

    UpdateCatalog

    Command API Reference / Input / Output

    UpdateClassifier

    Command API Reference / Input / Output

    UpdateColumnStatisticsForPartition

    Command API Reference / Input / Output

    UpdateColumnStatisticsForTable

    Command API Reference / Input / Output

    UpdateColumnStatisticsTaskSettings

    Command API Reference / Input / Output

    UpdateConnection

    Command API Reference / Input / Output

    UpdateCrawler

    Command API Reference / Input / Output

    UpdateCrawlerSchedule

    Command API Reference / Input / Output

    UpdateDatabase

    Command API Reference / Input / Output

    UpdateDataQualityRuleset

    Command API Reference / Input / Output

    UpdateDevEndpoint

    Command API Reference / Input / Output

    UpdateGlueIdentityCenterConfiguration

    Command API Reference / Input / Output

    UpdateIntegrationResourceProperty

    Command API Reference / Input / Output

    UpdateIntegrationTableProperties

    Command API Reference / Input / Output

    UpdateJob

    Command API Reference / Input / Output

    UpdateJobFromSourceControl

    Command API Reference / Input / Output

    UpdateMLTransform

    Command API Reference / Input / Output

    UpdatePartition

    Command API Reference / Input / Output

    UpdateRegistry

    Command API Reference / Input / Output

    UpdateSchema

    Command API Reference / Input / Output

    UpdateSourceControlFromJob

    Command API Reference / Input / Output

    UpdateTable

    Command API Reference / Input / Output

    UpdateTableOptimizer

    Command API Reference / Input / Output

    UpdateTrigger

    Command API Reference / Input / Output

    UpdateUsageProfile

    Command API Reference / Input / Output

    UpdateUserDefinedFunction

    Command API Reference / Input / Output

    UpdateWorkflow

    Command API Reference / Input / Output