How to use the Glue function from aws-sdk

Find comprehensive JavaScript aws-sdk.Glue code examples handpicked from public code repositorys.

5
6
7
8
9
10
11
12
13
14
//update region to AWS region where Amazon Neptune database resides
AWS.config.update({
    region: 'us-west-2'
})

var glue = new AWS.Glue();
var dbidentifier = uuidv4();
var databaseName = `graph-database-${dbidentifier}`;

function addDatabase(addTablesAfterDatabase) {
fork icon253
star icon0
watch icon0

37
38
39
40
41
42
43
44
45
46
  };
}

putDataCatalogEncryptionSettings(catalogId, catalogEncryptionMode) {
  return new Promise((resolve, reject) => {
    let glue = new AWS.Glue(this.config);
    const params = {
      DataCatalogEncryptionSettings: {
        ConnectionPasswordEncryption: {
          ReturnConnectionPasswordEncrypted: true
fork icon29
star icon34
watch icon4

37
38
39
40
41
42
43
44
45
46
      });
    }
  }, event.Records);
}

const glue = new AWS.Glue();
glue.startCrawler(
  { Name: 'AWSCURCrawler-aws-perspective-cost-and-usage' },
  function (err, data) {
    if (err) {
fork icon66
star icon632
watch icon40

1
2
3
4
5
6
7
8
9
10

const AWS = require('aws-sdk')
// Set the region
AWS.config.update({region: process.env.AWS_REGION})

const glue = new AWS.Glue()
const jobName = process.env.GLUE_JOB_NAME

exports.handler = async function (event, context) {
  return new Promise((resolve, reject) => {
fork icon6
star icon1
watch icon3

1
2
3
4
5
6
7
8
9
10
const router = express.Router({});
const asyncMiddleware = require('../utils/asyncMiddleware');
const logger = require('../utils/logger');
const {Glue} = require('aws-sdk');

const glue = new Glue();

router.get('/', asyncMiddleware(async (req, res) => {
  logger.debug('Get AWS Glue databases');
  const databases = await glue.getDatabases().promise();
fork icon1
star icon0
watch icon0