Sha256: 29b989be6df238c90c9e42f2a4d150c7d57d52ea326c7439960526188ef146a3

Contents?: true

Size: 600 Bytes

Versions: 35

Compression:

Stored size: 600 Bytes

Contents

var util = require('../util');
var property = util.property;

function ResourceWaiter(name, waiter, options) {
  options = options || {};
  property(this, 'name', name);
  property(this, 'api', options.api, false);

  if (waiter.operation) {
    property(this, 'operation', util.string.lowerFirst(waiter.operation));
  }

  var self = this;
  var keys = [
    'type',
    'description',
    'delay',
    'maxAttempts',
    'acceptors'
  ];

  keys.forEach(function(key) {
    var value = waiter[key];
    if (value) {
      property(self, key, value);
    }
  });
}

module.exports = ResourceWaiter;

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/resource_waiter.js