require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 9) { return n; } else { return '0' + n; } } function getDateTimeString() { var d = new Date(); // // The additional ''s are used to force JavaScript to interpret the // '+' operator as string concatenation rather than arithmetic. // return d.getUTCFullYear() + '' + makeTwoDigits(d.getUTCMonth() + 1) + '' + makeTwoDigits(d.getUTCDate()) + 'T' + '' + makeTwoDigits(d.getUTCHours()) + '' + makeTwoDigits(d.getUTCMinutes()) + '' + makeTwoDigits(d.getUTCSeconds()) + 'Z'; } function getDateString(dateTimeString) { return dateTimeString.substring(0, dateTimeString.indexOf('T')); } function getSignatureKey(key, dateStamp, regionName, serviceName) { var kDate = crypto.HmacSHA256(dateStamp, 'AWS4' + key, { asBytes: true }); var kRegion = crypto.HmacSHA256(regionName, kDate, { asBytes: true }); var kService = crypto.HmacSHA256(serviceName, kRegion, { asBytes: true }); var kSigning = crypto.HmacSHA256('aws4_request', kService, { asBytes: true }); return kSigning; } function signUrl(method, scheme, hostname, path, queryParams, accessId, secretKey, region, serviceName, payload, today, now, debug, awsSTSToken) { var signedHeaders = 'host'; var canonicalHeaders = 'host:' + hostname.toLowerCase() + '\n'; var canonicalRequest = method + '\n' + // method path + '\n' + // path queryParams + '\n' + // query params canonicalHeaders + // headers '\n' + // required signedHeaders + '\n' + // signed header list crypto.SHA256(payload, { asBytes: true }); // hash of payload (empty string) if (debug === true) { console.log('canonical request: ' + canonicalRequest + '\n'); } var hashedCanonicalRequest = crypto.SHA256(canonicalRequest, { asBytes: true }); if (debug === true) { console.log('hashed canonical request: ' + hashedCanonicalRequest + '\n'); } var stringToSign = 'AWS4-HMAC-SHA256\n' + now + '\n' + today + '/' + region + '/' + serviceName + '/aws4_request\n' + hashedCanonicalRequest; if (debug === true) { console.log('string to sign: ' + stringToSign + '\n'); } var signingKey = getSignatureKey(secretKey, today, region, serviceName); if (debug === true) { console.log('signing key: ' + signingKey + '\n'); } var signature = crypto.HmacSHA256(stringToSign, signingKey, { asBytes: true }); if (debug === true) { console.log('signature: ' + signature + '\n'); } var finalParams = queryParams + '&X-Amz-Signature=' + signature; if (!isUndefined(awsSTSToken)) { finalParams += '&X-Amz-Security-Token=' + encodeURIComponent(awsSTSToken); } var url = scheme + hostname + path + '?' + finalParams; if (debug === true) { console.log('url: ' + url + '\n'); } return url; } function prepareWebSocketUrl(options, awsAccessId, awsSecretKey, awsSTSToken) { var now = getDateTimeString(); var today = getDateString(now); var path = '/mqtt'; var awsServiceName = 'iotdata'; var queryParams = 'X-Amz-Algorithm=AWS4-HMAC-SHA256' + '&X-Amz-Credential=' + awsAccessId + '%2F' + today + '%2F' + options.region + '%2F' + awsServiceName + '%2Faws4_request' + '&X-Amz-Date=' + now + '&X-Amz-SignedHeaders=host'; return signUrl('GET', 'wss://', options.host, path, queryParams, awsAccessId, awsSecretKey, options.region, awsServiceName, '', today, now, options.debug, awsSTSToken); } // // This method is the exposed module; it validates the mqtt options, // creates a secure mqtt connection via TLS, and returns the mqtt // connection instance. // function DeviceClient(options) { // // Force instantiation using the 'new' operator; this will cause inherited // constructors (e.g. the 'events' class) to be called. // if (!(this instanceof DeviceClient)) { return new DeviceClient(options); } // // A copy of 'this' for use inside of closures // var that = this; // // Offline Operation // // The connection to AWS IoT can be in one of three states: // // 1) Inactive // 2) Established // 3) Stable // // During state 1), publish operations are placed in a queue // ("filling") // // During states 2) and 3), any operations present in the queue // are sent to the mqtt client for completion ("draining"). // // In all states, subscriptions are tracked in a cache // // A "draining interval" is used to specify the rate at which // which operations are drained from the queue. // // +- - - - - - - - - - - - - - - - - - - - - - - - + // | | // // | FILLING | // // | | // +-----------------------------+ // | | | | // | | // | v | | // +- - Established Inactive - -+ // | | ^ | // | | // | | | | // +----------> Stable ----------+ // | | // // | DRAINING | // // | | // +- - - - - - - - - - - - - - - - - - - - - - - - + // // // Draining Operation // // During draining, existing subscriptions are re-sent, // followed by any publishes which occurred while offline. // // // Operation cache used during filling // var offlineOperations = []; var offlineQueueing = true; var offlineQueueMaxSize = 0; var offlineQueueDropBehavior = 'oldest'; // oldest or newest offlineOperations.length = 0; // // Subscription cache; active if autoResubscribe === true // var activeSubscriptions = []; var autoResubscribe = true; activeSubscriptions.length = 0; // // Cloned subscription cache; active during initial draining. // var clonedSubscriptions = []; clonedSubscriptions.length = 0; // // Contains the operational state of the connection // var connectionState = 'inactive'; // // Used to time draining operations; active during draining. // var drainingTimer = null; var drainTimeMs = 250; // // These properties control the reconnect behavior of the MQTT Client. If // the MQTT client becomes disconnected, it will attempt to reconnect after // a quiet period; this quiet period doubles with each reconnection attempt, // e.g. 1 seconds, 2 seconds, 2, 8, 16, 32, etc... up until a maximum // reconnection time is reached. // // If a connection is active for the minimum connection time, the quiet // period is reset to the initial value. // // baseReconnectTime: the time in seconds to wait before the first // reconnect attempt // // minimumConnectionTime: the time in seconds that a connection must be // active before resetting the current reconnection time to the base // reconnection time // // maximumReconnectTime: the maximum time in seconds to wait between // reconnect attempts // // The defaults for these values are: // // baseReconnectTime: 1 seconds // minimumConnectionTime: 20 seconds // maximumReconnectTime: 128 seconds // var baseReconnectTimeMs = 1000; var minimumConnectionTimeMs = 20000; var maximumReconnectTimeMs = 128000; var currentReconnectTimeMs; // // Used to measure the length of time the connection has been active to // know if it's stable or not. Active beginning from receipt of a 'connect' // event (e.g. received CONNACK) until 'minimumConnectionTimeMs' has elapsed. // var connectionTimer = null; // // Credentials when authenticating via WebSocket/SigV4 // var awsAccessId; var awsSecretKey; var awsSTSToken; // // Validate options, set default reconnect period if not specified. // if (isUndefined(options) || Object.keys(options).length === 0) { throw new Error(exceptions.INVALID_CONNECT_OPTIONS); } if (!isUndefined(options.baseReconnectTimeMs)) { baseReconnectTimeMs = options.baseReconnectTimeMs; } if (!isUndefined(options.minimumConnectionTimeMs)) { minimumConnectionTimeMs = options.minimumConnectionTimeMs; } if (!isUndefined(options.maximumReconnectTimeMs)) { maximumReconnectTimeMs = options.maximumReconnectTimeMs; } if (!isUndefined(options.drainTimeMs)) { drainTimeMs = options.drainTimeMs; } if (!isUndefined(options.autoResubscribe)) { autoResubscribe = options.autoResubscribe; } if (!isUndefined(options.offlineQueueing)) { offlineQueueing = options.offlineQueueing; } if (!isUndefined(options.offlineQueueMaxSize)) { offlineQueueMaxSize = options.offlineQueueMaxSize; } if (!isUndefined(options.offlineQueueDropBehavior)) { offlineQueueDropBehavior = options.offlineQueueDropBehavior; } currentReconnectTimeMs = baseReconnectTimeMs; options.reconnectPeriod = currentReconnectTimeMs; options.fastDisconnectDetection = true; // // Verify that the reconnection timing parameters make sense. // if (options.baseReconnectTimeMs <= 0) { throw new Error(exceptions.INVALID_RECONNECT_TIMING); } if (maximumReconnectTimeMs < baseReconnectTimeMs) { throw new Error(exceptions.INVALID_RECONNECT_TIMING); } if (minimumConnectionTimeMs < baseReconnectTimeMs) { throw new Error(exceptions.INVALID_RECONNECT_TIMING); } // // Verify that the other optional parameters make sense. // if (offlineQueueDropBehavior !== 'newest' && offlineQueueDropBehavior !== 'oldest') { throw new Error(exceptions.INVALID_OFFLINE_QUEUEING_PARAMETERS); } if (offlineQueueMaxSize < 0) { throw new Error(exceptions.INVALID_OFFLINE_QUEUEING_PARAMETERS); } // set protocol, do not override existing definitions if available if (isUndefined(options.protocol)) { options.protocol = 'mqtts'; } if (isUndefined(options.host)) { if (!(isUndefined(options.region))) { options.host = 'data.iot.' + options.region + '.amazonaws.com'; } else { throw new Error(exceptions.INVALID_CONNECT_OPTIONS); } } if (options.protocol === 'mqtts') { // set port, do not override existing definitions if available if (isUndefined(options.port)) { options.port = 8883; } //read and map certificates tlsReader(options); } else if (options.protocol === 'wss') { // // AWS access id and secret key must be available as either // options or in the environment. // if (!isUndefined(options.accessKeyId)) { awsAccessId = options.accessKeyId; } else { awsAccessId = process.env.AWS_ACCESS_KEY_ID; } if (!isUndefined(options.secretKey)) { awsSecretKey = options.secretKey; } else { awsSecretKey = process.env.AWS_SECRET_ACCESS_KEY; } if (!isUndefined(options.sessionToken)) { awsSTSToken = options.sessionToken; } else { awsSTSToken = process.env.AWS_SESSION_TOKEN; } // AWS region must be defined when connecting via WebSocket/SigV4 if (isUndefined(options.region)) { console.log('AWS region must be defined when connecting via WebSocket/SigV4; see README.md'); throw new Error(exceptions.INVALID_CONNECT_OPTIONS); } // AWS Access Key ID and AWS Secret Key must be defined if (isUndefined(awsAccessId) || (isUndefined(awsSecretKey))) { console.log('To connect via WebSocket/SigV4, AWS Access Key ID and AWS Secret Key must be passed either in options or as environment variables; see README.md'); throw new Error(exceptions.INVALID_CONNECT_OPTIONS); } // set port, do not override existing definitions if available if (isUndefined(options.port)) { options.port = 443; } // check websocketOptions and ensure that the protocol is defined if (isUndefined(options.websocketOptions)) { options.websocketOptions = { protocol: 'mqttv3.1' }; } else { options.websocketOptions.protocol = 'mqttv3.1'; } } if ((!isUndefined(options)) && (options.debug === true)) { console.log(options); console.log('attempting new mqtt connection...'); } //connect and return the client instance to map all mqttjs apis var protocols = {}; protocols.mqtts = require('./lib/tls'); protocols.wss = require('./lib/ws'); function _addToSubscriptionCache(topic, options, callback) { var matches = activeSubscriptions.filter(function(element) { return element.topic === topic; }); // // Add the element only if it doesn't already exist. // if (matches.length === 0) { activeSubscriptions.push({ topic: topic, options: options, callback: callback }); } } function _deleteFromSubscriptionCache(topic, options, callback) { var remaining = activeSubscriptions.filter(function(element) { return element.topic !== topic; }); activeSubscriptions = remaining; } function _updateSubscriptionCache(operation, topics, options, callback) { var opFunc = null; // // Don't cache subscriptions if auto-resubscribe is disabled // if (autoResubscribe === false) { return; } if (operation === 'subscribe') { opFunc = _addToSubscriptionCache; } else if (operation === 'unsubscribe') { opFunc = _deleteFromSubscriptionCache; } // // Test to see if 'topics' is an array and if so, iterate. // if (Object.prototype.toString.call(topics) === '[object Array]') { topics.forEach(function(item, index, array) { opFunc(item, options, callback); }); } else { opFunc(topics, options, callback); } } // // Return true if the connection is currently in a 'filling' // state // function _filling() { return connectionState === 'inactive'; } function _wrapper(client) { if (options.protocol === 'wss') { var url; // // If the access id and secret key are available, prepare the URL. // Otherwise, set the url to an invalid value. // if (awsAccessId === '' || awsSecretKey === '') { url = 'wss://no-credentials-available'; } else { url = prepareWebSocketUrl(options, awsAccessId, awsSecretKey, awsSTSToken); } if (options.debug === true) { console.log('using websockets, will connect to \'' + url + '\'...'); } options.url = url; } return protocols[options.protocol](client, options); } const device = new mqtt.MqttClient(_wrapper, options); //handle events from the mqtt client // // Timeout expiry function for the connection timer; once a connection // is stable, reset the current reconnection time to the base value. // function _markConnectionStable() { currentReconnectTimeMs = baseReconnectTimeMs; device.options.reconnectPeriod = currentReconnectTimeMs; // // Mark this timeout as expired // connectionTimer = null; connectionState = 'stable'; } // // Trim the offline queue if required; returns true if another // element can be placed in the queue // function _trimOfflineQueueIfNecessary() { var rc = true; if ((offlineQueueMaxSize > 0) && (offlineOperations.length >= offlineQueueMaxSize)) { // // The queue has reached its maximum size, trim it // according to the defined drop behavior. // if (offlineQueueDropBehavior === 'oldest') { offlineOperations.shift(); } else { rc = false; } } return rc; } // // Timeout expiry function for the drain timer; once a connection // has been established, begin draining cached transactions. // function _drainOperationQueue() { // // Handle our active subscriptions first, using a cloned // copy of the array. We shift them out one-by-one until // all have been processed, leaving the official record // of active subscriptions untouched. // var subscription = clonedSubscriptions.shift(); if (!isUndefined(subscription)) { device.subscribe(subscription.topic, subscription.options, subscription.callback); } else { // // Then handle cached operations... // var operation = offlineOperations.shift(); if (!isUndefined(operation)) { switch (operation.type) { case 'publish': device.publish(operation.topic, operation.message, operation.options, operation.callback); break; default: console.log('unrecognized operation \'' + operation + '\' during draining!'); break; } } if (offlineOperations.length === 0) { // // The subscription and operation queues are fully drained, // cancel the draining timer. // clearInterval(drainingTimer); drainingTimer = null; } } } // // Event handling - *all* events generated by the mqtt.js client must be // handled here, *and* propagated upwards. // device.on('connect', function() { // // If not already running, start the connection timer. // if (connectionTimer === null) { connectionTimer = setTimeout(_markConnectionStable, minimumConnectionTimeMs); } connectionState = 'established'; // // If not already running, start the draining timer and // clone the active subscriptions. // if (drainingTimer === null) { clonedSubscriptions = activeSubscriptions.slice(0); drainingTimer = setInterval(_drainOperationQueue, drainTimeMs); } that.emit('connect'); }); device.on('close', function() { if ((!isUndefined(options)) && (options.debug === true)) { console.log('connection lost - will attempt reconnection in ' + device.options.reconnectPeriod / 1000 + ' seconds...'); } // // Clear the connection and drain timers // clearTimeout(connectionTimer); connectionTimer = null; clearInterval(drainingTimer); drainingTimer = null; // // Mark the connection state as inactive // connectionState = 'inactive'; that.emit('close'); }); device.on('reconnect', function() { // // Update the current reconnect timeout; this will be the // next timeout value used if this connect attempt fails. // currentReconnectTimeMs = currentReconnectTimeMs * 2; currentReconnectTimeMs = Math.min(maximumReconnectTimeMs, currentReconnectTimeMs); device.options.reconnectPeriod = currentReconnectTimeMs; that.emit('reconnect'); }); device.on('offline', function() { that.emit('offline'); }); device.on('error', function(error) { that.emit('error', error); }); device.on('message', function(topic, message, packet) { that.emit('message', topic, message, packet); }); // // The signatures of these methods *must* match those of the mqtt.js // client. // this.publish = function(topic, message, options, callback) { // // If filling or still draining, push this publish operation // into the offline operations queue; otherwise, perform it // immediately. // if (offlineQueueing === true && (_filling() || drainingTimer !== null)) { if (_trimOfflineQueueIfNecessary()) { offlineOperations.push({ type: 'publish', topic: topic, message: message, options: options, callback: callback }); } } else { if (offlineQueueing === true || !_filling()) { device.publish(topic, message, options, callback); } } }; this.subscribe = function(topics, options, callback) { _updateSubscriptionCache('subscribe', topics, options, callback); if (!_filling() || autoResubscribe === false) { device.subscribe(topics, options, callback); } }; this.unsubscribe = function(topics, options, callback) { _updateSubscriptionCache('unsubscribe', topics, options, callback); if (!_filling() || autoResubscribe === false) { device.unsubscribe(topics, options, callback); } }; this.end = function(force, callback) { device.end(force, callback); }; this.handleMessage = function(packet, callback) { device.handleMessage(packet, callback); }; // // Call this function to update the credentials used when // connecting via WebSocket/SigV4. // this.updateWebSocketCredentials = function(accessKeyId, secretKey, sessionToken, expiration) { awsAccessId = accessKeyId; awsSecretKey = secretKey; awsSTSToken = sessionToken; }; // // Used for integration testing only // this.simulateNetworkFailure = function() { device.stream.emit('error', new Error('simulated connection error')); device.stream.end(); }; } // // Allow instances to listen in on events that we produce for them // inherits(DeviceClient, events.EventEmitter); module.exports = DeviceClient; module.exports.DeviceClient = DeviceClient; // // Exported for unit testing only // module.exports.prepareWebSocketUrl = prepareWebSocketUrl; }).call(this,require('_process')) },{"../common/lib/is-undefined":2,"../common/lib/tls-reader":3,"./lib/exceptions":5,"./lib/tls":6,"./lib/ws":7,"_process":432,"crypto-js":275,"events":426,"mqtt":369,"util":455}],5:[function(require,module,exports){ /* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ //node.js deps //npm deps //app deps //begin module module.exports = { INVALID_CONNECT_OPTIONS: 'Invalid connect options supplied.', INVALID_CLIENT_ID_OPTION: 'Invalid "clientId" (mqtt client id) option supplied.', INVALID_RECONNECT_TIMING: 'Invalid reconnect timing options supplied.', INVALID_OFFLINE_QUEUEING_PARAMETERS: 'Invalid offline queueing options supplied.' }; },{}],6:[function(require,module,exports){ /* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ //node.js deps var tls = require('tls'); //npm deps //app deps function buildBuilder(mqttClient, opts) { var connection; connection = tls.connect(opts); function handleTLSerrors(err) { mqttClient.emit('error', err); connection.end(); } connection.on('secureConnect', function() { if (!connection.authorized) { connection.emit('error', new Error('TLS not authorized')); } else { connection.removeListener('error', handleTLSerrors); } }); connection.on('error', handleTLSerrors); return connection; } module.exports = buildBuilder; },{"tls":422}],7:[function(require,module,exports){ /* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ //node.js deps //npm deps const websocket = require('websocket-stream'); //app deps function buildBuilder(client, opts) { return websocket(opts.url, ['mqttv3.1'],opts.websocketOptions); } module.exports = buildBuilder; },{"websocket-stream":399}],8:[function(require,module,exports){ /* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ //node.js deps const events = require('events'); const inherits = require('util').inherits; //npm deps //app deps const deviceModule = require('../device'); const isUndefined = require('../common/lib/is-undefined'); // // private functions // function buildThingShadowTopic(thingName, operation, type) { if (!isUndefined(type)) { return '$aws/things/' + thingName + '/shadow/' + operation + '/' + type; } return '$aws/things/' + thingName + '/shadow/' + operation; } function isReservedTopic(topic) { if (topic.substring(0, 12) === '$aws/things/') { return true; } return false; } function isThingShadowTopic(topicTokens, direction) { var rc = false; if (topicTokens[0] === '$aws') { // // Thing shadow topics have the form: // // $aws/things/{thingName}/shadow/{Operation}/{Status} // // Where {Operation} === update|get|delete // And {Status} === accepted|rejected|delta // if ((topicTokens[1] === 'things') && (topicTokens[3] === 'shadow') && ((topicTokens[4] === 'update') || (topicTokens[4] === 'get') || (topicTokens[4] === 'delete'))) { // // Looks good so far; now check the direction and see if // still makes sense. // if (direction === 'subscribe') { if (((topicTokens[5] === 'accepted') || (topicTokens[5] === 'rejected') || (topicTokens[5] === 'delta')) && (topicTokens.length === 6)) { rc = true; } } else // direction === 'publish' { if (topicTokens.length === 5) { rc = true; } } } } return rc; } //begin module function ThingShadowsClient(deviceOptions, thingShadowOptions) { // // Force instantiation using the 'new' operator; this will cause inherited // constructors (e.g. the 'events' class) to be called. // if (!(this instanceof ThingShadowsClient)) { return new ThingShadowsClient(deviceOptions, thingShadowOptions); } // // A copy of 'this' for use inside of closures // var that = this; // // Track Thing Shadow registrations in here. // var thingShadows = [{}]; // // Implements for every operation, used to construct clientToken. // var operationCount = 0; // // Operation timeout (milliseconds). If no accepted or rejected response // to a thing operation is received within this time, subscriptions // to the accepted and rejected sub-topics for a thing are cancelled. // var operationTimeout = 10000; /* milliseconds */ // // Variable used by the testing API setConnectionStatus() to simulate // network connectivity failures. // var connected = true; // // Instantiate the device. // const device = deviceModule.DeviceClient(deviceOptions); if (!isUndefined(thingShadowOptions)) { if (!isUndefined(thingShadowOptions.operationTimeout)) { operationTimeout = thingShadowOptions.operationTimeout; } } // // Private function to subscribe and unsubscribe from topics. // this._handleSubscriptions = function(thingName, operations, statii, devFunction, callback) { var topics = []; // // Build an array of topic names. // for (var i = 0, k = 0, opsLen = operations.length; i < opsLen; i++) { for (var j = 0, statLen = statii.length; j < statLen; j++) { topics[k++] = buildThingShadowTopic(thingName, operations[i], statii[j]); } } if (thingShadows[thingName].debug === true) { console.log(devFunction + ' on ' + topics); } // // Subscribe/unsubscribe from the topics and perform callback when complete. // if (!isUndefined(callback)) { device[devFunction](topics, { qos: thingShadows[thingName].qos }, callback); } else { device[devFunction](topics, { qos: thingShadows[thingName].qos }); } }; // // Private function to handle messages and dispatch them accordingly. // this._handleMessages = function(thingName, operation, operationStatus, payload) { var stateObject = {}; try { stateObject = JSON.parse(payload.toString()); } catch (err) { if (deviceOptions.debug === true) { console.error('failed parsing JSON \'' + payload.toString() + '\', ' + err); } return; } var clientToken = stateObject.clientToken; var version = stateObject.version; // // Remove the properties 'clientToken' and 'version' from the stateObject; // these properties are internal to this class. // delete stateObject.clientToken; delete stateObject.version; // // Update the thing version on every accepted or delta message which // contains it. // if ((!isUndefined(version)) && (operationStatus !== 'rejected')) { // // The thing shadow version is incremented by AWS IoT and should always // increase. Do not update our local version if the received version is // less than our version. // if ((isUndefined(thingShadows[thingName].version)) || (version >= thingShadows[thingName].version)) { thingShadows[thingName].version = version; } else { // // We've received a message from AWS IoT with a version number lower than // we would expect. There are two things that can cause this: // // 1) The shadow has been deleted (version # reverts to 1 in this case.) // 2) The message has arrived out-of-order. // // For case 1) we can look at the operation to determine that this // is the case and notify the client if appropriate. For case 2, // we will not process it unless the client has specifically expressed // an interested in these messages by setting 'discardStale' to false. // if (operation !== 'delete' && thingShadows[thingName].discardStale === true) { if (deviceOptions.debug === true) { console.warn('out-of-date version \'' + version + '\' on \'' + thingName + '\' (local version \'' + thingShadows[thingName].version + '\')'); } return; } } } // // If this is a 'delta' message, emit an event for it and return. // if (operationStatus === 'delta') { this.emit('delta', thingName, stateObject); return; } // // only accepted/rejected messages past this point // =============================================== // If this is an unkown clientToken (e.g., it doesn't have a corresponding // property in the timeouts list), the shadow has been modified by another // client. If it's an update/accepted or delete/accepted, update the // shadow and notify the client. // if (isUndefined(thingShadows[thingName].timeouts[clientToken])) { if ((operationStatus === 'accepted') && (operation !== 'get')) { // // This is a foreign update or delete accepted, update our // shadow with the latest state and send a notification. // this.emit('foreignStateChange', thingName, operation, stateObject); } return; } // // A response has been received, so cancel any outstanding timeout on this // thingName/clientToken, delete the timeout handle, and unsubscribe from // all sub-topics. // clearTimeout( thingShadows[thingName].timeouts[clientToken]); delete thingShadows[thingName].timeouts[clientToken]; // // Mark this operation as complete. // thingShadows[thingName].pending = false; // // Unsubscribe from the 'accepted' and 'rejected' sub-topics unless we are // persistently subscribed to this thing shadow. // if (thingShadows[thingName].persistentSubscribe === false) { this._handleSubscriptions(thingName, [operation], ['accepted', 'rejected'], 'unsubscribe'); } // // Emit an event detailing the operation status; the clientToken is included // as an argument so that the application can correlate status events to // the operations they are associated with. // this.emit('status', thingName, operationStatus, clientToken, stateObject); }; device.on('connect', function() { that.emit('connect'); }); device.on('close', function() { that.emit('close'); }); device.on('reconnect', function() { that.emit('reconnect'); }); device.on('offline', function() { that.emit('offline'); }); device.on('error', function(error) { that.emit('error', error); }); device.on('message', function(topic, payload) { if (connected === true) { // // Parse the topic to determine what to do with it. // var topicTokens = topic.split('/'); // // First, do a rough check to see if we should continue or not. // if (isThingShadowTopic(topicTokens, 'subscribe')) { // // This looks like a valid Thing topic, so see if the Thing is in the // registered Thing table. // if (thingShadows.hasOwnProperty(topicTokens[2])) { // // This is a registered Thing, so perform message handling on it. // that._handleMessages(topicTokens[2], // thingName topicTokens[4], // operation topicTokens[5], // status payload); } // // Any messages received for unregistered Things fall here and are ignored. // } else { // // This isn't a Thing topic, so pass it along to the instance if they have // indicated they want to handle it. // that.emit('message', topic, payload); } } }); this._thingOperation = function(thingName, operation, stateObject) { var rc = null; if (thingShadows.hasOwnProperty(thingName)) { // // Don't allow a new operation if an existing one is still in process. // if (thingShadows[thingName].pending === false) { // // Starting a new operation // thingShadows[thingName].pending = true; // // If not provided, construct a clientToken from the clientId and a rolling // operation count. The clientToken is transmitted in any published stateObject // and is returned to the caller for each operation. Applications can use // clientToken values to correlate received responses or timeouts with // the original operations. // var clientToken; if (isUndefined(stateObject.clientToken)) { clientToken = deviceOptions.clientId + '-' + operationCount++; } else { clientToken = stateObject.clientToken; } var publishTopic = buildThingShadowTopic(thingName, operation); // // Subscribe to the 'accepted' and 'rejected' sub-topics for this get // operation and set a timeout beyond which they will be unsubscribed if // no messages have been received for either of them. // thingShadows[thingName].timeouts[clientToken] = setTimeout( function(thingName, clientToken) { // // Timed-out. Unsubscribe from the 'accepted' and 'rejected' sub-topics unless // we are persistently subscribing to this thing shadow. // if (thingShadows[thingName].persistentSubscribe === false) { that._handleSubscriptions(thingName, [operation], ['accepted', 'rejected'], 'unsubscribe'); } // // Mark this operation as complete. // thingShadows[thingName].pending = false; // // Emit an event for the timeout; the clientToken is included as an argument // so that the application can correlate timeout events to the operations // they are associated with. // that.emit('timeout', thingName, clientToken); // // Delete the timeout handle for this thingName/clientToken combination. // delete thingShadows[thingName].timeouts[clientToken]; }, operationTimeout, thingName, clientToken); // // Subscribe to the 'accepted' and 'rejected' sub-topics unless we are // persistently subscribing, in which case we can publish to the topic immediately // since we are already subscribed to all applicable sub-topics. // if (thingShadows[thingName].persistentSubscribe === false) { this._handleSubscriptions(thingName, [operation], ['accepted', 'rejected'], 'subscribe', function(err) { // // If 'stateObject' is defined, publish it to the publish topic for this // thingName+operation. // if (err !== null) { console.warn('failed subscription to accepted/rejected topics'); return; } if (!isUndefined(stateObject)) { // // Add the version # (if known and versioning is enabled) and // 'clientToken' properties to the stateObject. // if (!isUndefined(thingShadows[thingName].version) && thingShadows[thingName].enableVersioning) { stateObject.version = thingShadows[thingName].version; } stateObject.clientToken = clientToken; device.publish(publishTopic, JSON.stringify(stateObject), { qos: thingShadows[thingName].qos }); if (!(isUndefined(thingShadows[thingName])) && thingShadows[thingName].debug === true) { console.log('publishing \'' + JSON.stringify(stateObject) + ' on \'' + publishTopic + '\''); } } }); } else { // // Add the version # (if known and versioning is enabled) and // 'clientToken' properties to the stateObject. // if (!isUndefined(thingShadows[thingName].version) && thingShadows[thingName].enableVersioning) { stateObject.version = thingShadows[thingName].version; } stateObject.clientToken = clientToken; device.publish(publishTopic, JSON.stringify(stateObject), { qos: thingShadows[thingName].qos }); if (thingShadows[thingName].debug === true) { console.log('publishing \'' + JSON.stringify(stateObject) + ' on \'' + publishTopic + '\''); } } rc = clientToken; // return the clientToken to the caller } else { if (deviceOptions.debug === true) { console.error(operation + ' still in progress on thing: ', thingName); } } } else { if (deviceOptions.debug === true) { console.error('attempting to ' + operation + ' unknown thing: ', thingName); } } return rc; }; this.register = function(thingName, options) { if (!thingShadows.hasOwnProperty(thingName)) { // // Initialize the registration entry for this thing; because the version # is // not yet known, do not add the property for it yet. The version number // property will be added after the first accepted update from AWS IoT. // var ignoreDeltas = false; thingShadows[thingName] = { timeouts: {}, persistentSubscribe: true, debug: false, discardStale: true, enableVersioning: true, qos: 0, pending: false }; if (!isUndefined(options)) { if (!isUndefined(options.ignoreDeltas)) { ignoreDeltas = options.ignoreDeltas; } if (!isUndefined(options.persistentSubscribe)) { thingShadows[thingName].persistentSubscribe = options.persistentSubscribe; } if (!isUndefined(options.debug)) { thingShadows[thingName].debug = options.debug; } if (!isUndefined(options.discardStale)) { thingShadows[thingName].discardStale = options.discardStale; } if (!isUndefined(options.enableVersioning)) { thingShadows[thingName].enableVersioning = options.enableVersioning; } if (!isUndefined(options.qos)) { thingShadows[thingName].qos = options.qos; } } // // Always listen for deltas unless requested otherwise. // if (ignoreDeltas === false) { this._handleSubscriptions(thingName, ['update'], ['delta'], 'subscribe'); } // // If we are persistently subscribing, we subscribe to everything we could ever // possibly be interested in. This will provide us the ability to publish // without waiting at the cost of potentially increased irrelevant traffic // which the application will need to filter out. // if (thingShadows[thingName].persistentSubscribe === true) { this._handleSubscriptions(thingName, ['update', 'get', 'delete'], ['accepted', 'rejected'], 'subscribe'); } } else { if (deviceOptions.debug === true) { console.error('thing already registered: ', thingName); } } }; this.unregister = function(thingName) { if (thingShadows.hasOwnProperty(thingName)) { // // If an operation is outstanding, it will have a timeout set; when it // expires any accept/reject sub-topic subscriptions for the thing will be // deleted. If any messages arrive after the thing has been deleted, they // will simply be ignored as it no longer exists in the thing registrations. // The only sub-topic we need to unsubscribe from is the delta sub-topic, // which is always active. // this._handleSubscriptions(thingName, ['update'], ['delta'], 'unsubscribe'); // // If we are persistently subscribing, we subscribe to everything we could ever // possibly be interested in; this means that when it's time to unregister // interest in a thing, we need to unsubscribe from all of these topics. // if (thingShadows[thingName].persistentSubscribe === true) { this._handleSubscriptions(thingName, ['update', 'get', 'delete'], ['accepted', 'rejected'], 'unsubscribe'); } // // Delete any pending timeouts // for (var timeout in thingShadows[thingName].timeouts) { if (thingShadows[thingName].timeouts.hasOwnProperty(timeout)) { clearTimeout(thingShadows[thingName].timeouts[timeout]); } } // // Delete the thing from the Thing registrations. // delete thingShadows[thingName]; } else { if (deviceOptions.debug === true) { console.error('attempting to unregister unknown thing: ', thingName); } } }; // // Perform an update operation on the given thing shadow. // this.update = function(thingName, stateObject) { var rc = null; // // Verify that the message does not contain a property named 'version', // as these property is reserved for use within this class. // if (isUndefined(stateObject.version)) { rc = that._thingOperation(thingName, 'update', stateObject); } else { console.error('message can\'t contain \'version\' property'); } return rc; }; // // Perform a get operation on the given thing shadow; allow the user // to specify their own client token if they don't want to use the // default. // this.get = function(thingName, clientToken) { var stateObject = {}; if (!isUndefined(clientToken)) { stateObject.clientToken = clientToken; } return that._thingOperation(thingName, 'get', stateObject); }; // // Perform a delete operation on the given thing shadow. // this.delete = function(thingName, clientToken) { var stateObject = {}; if (!isUndefined(clientToken)) { stateObject.clientToken = clientToken; } return that._thingOperation(thingName, 'delete', stateObject); }; // // Publish on non-thing topics. // this.publish = function(topic, message, options, callback) { if (!isReservedTopic(topic)) { device.publish(topic, message, options, callback); } else { throw ('cannot publish to reserved topic \'' + topic + '\''); } }; // // Subscribe to non-thing topics. // this.subscribe = function(topic, options, callback) { if (!isReservedTopic(topic)) { device.subscribe(topic, options, callback); } else { throw ('cannot subscribe to reserved topic \'' + topic + '\''); } }; // // Unsubscribe from non-thing topics. // this.unsubscribe = function(topic, options, callback) { if (!isReservedTopic(topic)) { device.unsubscribe(topic, options, callback); } else { throw ('cannot unsubscribe from reserved topic \'' + topic + '\''); } }; // // Close the device connection; this will be passed through to // the device class. // this.end = function(force, callback) { device.end(force, callback); }; // // Call this function to update the credentials used when // connecting via WebSocket/SigV4; this will be passed through // to the device class. // this.updateWebSocketCredentials = function(accessKeyId, secretKey, sessionToken, expiration) { device.updateWebSocketCredentials(accessKeyId, secretKey, sessionToken, expiration); }; // // This is an unpublished API used for testing. // this.setConnectionStatus = function(connectionStatus) { connected = connectionStatus; }; events.EventEmitter.call(this); } // // Allow instances to listen in on events that we produce for them // inherits(ThingShadowsClient, events.EventEmitter); module.exports = ThingShadowsClient; },{"../common/lib/is-undefined":2,"../device":4,"events":426,"util":455}],9:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-12-08", "endpointPrefix": "acm", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "ACM", "serviceFullName": "AWS Certificate Manager", "signatureVersion": "v4", "targetPrefix": "CertificateManager" }, "operations": { "AddTagsToCertificate": { "input": { "type": "structure", "required": [ "CertificateArn", "Tags" ], "members": { "CertificateArn": {}, "Tags": { "shape": "S3" } } } }, "DeleteCertificate": { "input": { "type": "structure", "required": [ "CertificateArn" ], "members": { "CertificateArn": {} } } }, "DescribeCertificate": { "input": { "type": "structure", "required": [ "CertificateArn" ], "members": { "CertificateArn": {} } }, "output": { "type": "structure", "members": { "Certificate": { "type": "structure", "members": { "CertificateArn": {}, "DomainName": {}, "SubjectAlternativeNames": { "shape": "Sc" }, "DomainValidationOptions": { "type": "list", "member": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "ValidationEmails": { "type": "list", "member": {} }, "ValidationDomain": {} } } }, "Serial": {}, "Subject": {}, "Issuer": {}, "CreatedAt": { "type": "timestamp" }, "IssuedAt": { "type": "timestamp" }, "Status": {}, "RevokedAt": { "type": "timestamp" }, "RevocationReason": {}, "NotBefore": { "type": "timestamp" }, "NotAfter": { "type": "timestamp" }, "KeyAlgorithm": {}, "SignatureAlgorithm": {}, "InUseBy": { "type": "list", "member": {} }, "FailureReason": {} } } } } }, "GetCertificate": { "input": { "type": "structure", "required": [ "CertificateArn" ], "members": { "CertificateArn": {} } }, "output": { "type": "structure", "members": { "Certificate": {}, "CertificateChain": {} } } }, "ListCertificates": { "input": { "type": "structure", "members": { "CertificateStatuses": { "type": "list", "member": {} }, "NextToken": {}, "MaxItems": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextToken": {}, "CertificateSummaryList": { "type": "list", "member": { "type": "structure", "members": { "CertificateArn": {}, "DomainName": {} } } } } } }, "ListTagsForCertificate": { "input": { "type": "structure", "required": [ "CertificateArn" ], "members": { "CertificateArn": {} } }, "output": { "type": "structure", "members": { "Tags": { "shape": "S3" } } } }, "RemoveTagsFromCertificate": { "input": { "type": "structure", "required": [ "CertificateArn", "Tags" ], "members": { "CertificateArn": {}, "Tags": { "shape": "S3" } } } }, "RequestCertificate": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "SubjectAlternativeNames": { "shape": "Sc" }, "IdempotencyToken": {}, "DomainValidationOptions": { "type": "list", "member": { "type": "structure", "required": [ "DomainName", "ValidationDomain" ], "members": { "DomainName": {}, "ValidationDomain": {} } } } } }, "output": { "type": "structure", "members": { "CertificateArn": {} } } }, "ResendValidationEmail": { "input": { "type": "structure", "required": [ "CertificateArn", "Domain", "ValidationDomain" ], "members": { "CertificateArn": {}, "Domain": {}, "ValidationDomain": {} } } } }, "shapes": { "S3": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } }, "Sc": { "type": "list", "member": {} } } } },{}],10:[function(require,module,exports){ module.exports={ "pagination": { "ListCertificates": { "limit_key": "MaxItems", "input_token": "NextToken", "output_token": "NextToken", "result_key": "CertificateSummaryList" } } } },{}],11:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-07-09", "endpointPrefix": "apigateway", "protocol": "rest-json", "serviceFullName": "Amazon API Gateway", "signatureVersion": "v4" }, "operations": { "CreateApiKey": { "http": { "requestUri": "/apikeys", "responseCode": 201 }, "input": { "type": "structure", "members": { "name": {}, "description": {}, "enabled": { "type": "boolean" }, "generateDistinctId": { "type": "boolean" }, "value": {}, "stageKeys": { "type": "list", "member": { "type": "structure", "members": { "restApiId": {}, "stageName": {} } } } } }, "output": { "shape": "S6" } }, "CreateAuthorizer": { "http": { "requestUri": "/restapis/{restapi_id}/authorizers", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "name", "type", "identitySource" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "name": {}, "type": {}, "providerARNs": { "shape": "Sb" }, "authType": {}, "authorizerUri": {}, "authorizerCredentials": {}, "identitySource": {}, "identityValidationExpression": {}, "authorizerResultTtlInSeconds": { "type": "integer" } } }, "output": { "shape": "Se" } }, "CreateBasePathMapping": { "http": { "requestUri": "/domainnames/{domain_name}/basepathmappings", "responseCode": 201 }, "input": { "type": "structure", "required": [ "domainName", "restApiId" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "basePath": {}, "restApiId": {}, "stage": {} } }, "output": { "shape": "Sg" } }, "CreateDeployment": { "http": { "requestUri": "/restapis/{restapi_id}/deployments", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": {}, "stageDescription": {}, "description": {}, "cacheClusterEnabled": { "type": "boolean" }, "cacheClusterSize": {}, "variables": { "shape": "Sk" } } }, "output": { "shape": "Sl" } }, "CreateDomainName": { "http": { "requestUri": "/domainnames", "responseCode": 201 }, "input": { "type": "structure", "required": [ "domainName", "certificateName", "certificateBody", "certificatePrivateKey", "certificateChain" ], "members": { "domainName": {}, "certificateName": {}, "certificateBody": {}, "certificatePrivateKey": {}, "certificateChain": {} } }, "output": { "shape": "Sq" } }, "CreateModel": { "http": { "requestUri": "/restapis/{restapi_id}/models", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "name", "contentType" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "name": {}, "description": {}, "schema": {}, "contentType": {} } }, "output": { "shape": "Ss" } }, "CreateResource": { "http": { "requestUri": "/restapis/{restapi_id}/resources/{parent_id}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "parentId", "pathPart" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "parentId": { "location": "uri", "locationName": "parent_id" }, "pathPart": {} } }, "output": { "shape": "Su" } }, "CreateRestApi": { "http": { "requestUri": "/restapis", "responseCode": 201 }, "input": { "type": "structure", "required": [ "name" ], "members": { "name": {}, "description": {}, "cloneFrom": {} } }, "output": { "shape": "S16" } }, "CreateStage": { "http": { "requestUri": "/restapis/{restapi_id}/stages", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "stageName", "deploymentId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": {}, "deploymentId": {}, "description": {}, "cacheClusterEnabled": { "type": "boolean" }, "cacheClusterSize": {}, "variables": { "shape": "Sk" } } }, "output": { "shape": "S18" } }, "CreateUsagePlan": { "http": { "requestUri": "/usageplans", "responseCode": 201 }, "input": { "type": "structure", "required": [ "name" ], "members": { "name": {}, "description": {}, "apiStages": { "shape": "S1g" }, "throttle": { "shape": "S1i" }, "quota": { "shape": "S1j" } } }, "output": { "shape": "S1l" } }, "CreateUsagePlanKey": { "http": { "requestUri": "/usageplans/{usageplanId}/keys", "responseCode": 201 }, "input": { "type": "structure", "required": [ "usagePlanId", "keyId", "keyType" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "keyId": {}, "keyType": {} } }, "output": { "shape": "S1n" } }, "DeleteApiKey": { "http": { "method": "DELETE", "requestUri": "/apikeys/{api_Key}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "apiKey" ], "members": { "apiKey": { "location": "uri", "locationName": "api_Key" } } } }, "DeleteAuthorizer": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/authorizers/{authorizer_id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "authorizerId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "authorizerId": { "location": "uri", "locationName": "authorizer_id" } } } }, "DeleteBasePathMapping": { "http": { "method": "DELETE", "requestUri": "/domainnames/{domain_name}/basepathmappings/{base_path}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "domainName", "basePath" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "basePath": { "location": "uri", "locationName": "base_path" } } } }, "DeleteClientCertificate": { "http": { "method": "DELETE", "requestUri": "/clientcertificates/{clientcertificate_id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "clientCertificateId" ], "members": { "clientCertificateId": { "location": "uri", "locationName": "clientcertificate_id" } } } }, "DeleteDeployment": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/deployments/{deployment_id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "deploymentId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "deploymentId": { "location": "uri", "locationName": "deployment_id" } } } }, "DeleteDomainName": { "http": { "method": "DELETE", "requestUri": "/domainnames/{domain_name}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "domainName" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" } } } }, "DeleteIntegration": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", "responseCode": 204 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" } } } }, "DeleteIntegrationResponse": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" } } } }, "DeleteMethod": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" } } } }, "DeleteMethodResponse": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" } } } }, "DeleteModel": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/models/{model_name}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "modelName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "modelName": { "location": "uri", "locationName": "model_name" } } } }, "DeleteResource": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" } } } }, "DeleteRestApi": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" } } } }, "DeleteStage": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" } } } }, "DeleteUsagePlan": { "http": { "method": "DELETE", "requestUri": "/usageplans/{usageplanId}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "usagePlanId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" } } } }, "DeleteUsagePlanKey": { "http": { "method": "DELETE", "requestUri": "/usageplans/{usageplanId}/keys/{keyId}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "usagePlanId", "keyId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "keyId": { "location": "uri", "locationName": "keyId" } } } }, "FlushStageAuthorizersCache": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" } } } }, "FlushStageCache": { "http": { "method": "DELETE", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}/cache/data", "responseCode": 202 }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" } } } }, "GenerateClientCertificate": { "http": { "requestUri": "/clientcertificates", "responseCode": 201 }, "input": { "type": "structure", "members": { "description": {} } }, "output": { "shape": "S27" } }, "GetAccount": { "http": { "method": "GET", "requestUri": "/account" }, "input": { "type": "structure", "members": {} }, "output": { "shape": "S29" } }, "GetApiKey": { "http": { "method": "GET", "requestUri": "/apikeys/{api_Key}" }, "input": { "type": "structure", "required": [ "apiKey" ], "members": { "apiKey": { "location": "uri", "locationName": "api_Key" }, "includeValue": { "location": "querystring", "locationName": "includeValue", "type": "boolean" } } }, "output": { "shape": "S6" } }, "GetApiKeys": { "http": { "method": "GET", "requestUri": "/apikeys" }, "input": { "type": "structure", "members": { "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" }, "nameQuery": { "location": "querystring", "locationName": "name" }, "includeValues": { "location": "querystring", "locationName": "includeValues", "type": "boolean" } } }, "output": { "type": "structure", "members": { "warnings": { "shape": "S8" }, "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "S6" } } } } }, "GetAuthorizer": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/authorizers/{authorizer_id}" }, "input": { "type": "structure", "required": [ "restApiId", "authorizerId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "authorizerId": { "location": "uri", "locationName": "authorizer_id" } } }, "output": { "shape": "Se" } }, "GetAuthorizers": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/authorizers" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Se" } } } } }, "GetBasePathMapping": { "http": { "method": "GET", "requestUri": "/domainnames/{domain_name}/basepathmappings/{base_path}" }, "input": { "type": "structure", "required": [ "domainName", "basePath" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "basePath": { "location": "uri", "locationName": "base_path" } } }, "output": { "shape": "Sg" } }, "GetBasePathMappings": { "http": { "method": "GET", "requestUri": "/domainnames/{domain_name}/basepathmappings" }, "input": { "type": "structure", "required": [ "domainName" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Sg" } } } } }, "GetClientCertificate": { "http": { "method": "GET", "requestUri": "/clientcertificates/{clientcertificate_id}" }, "input": { "type": "structure", "required": [ "clientCertificateId" ], "members": { "clientCertificateId": { "location": "uri", "locationName": "clientcertificate_id" } } }, "output": { "shape": "S27" } }, "GetClientCertificates": { "http": { "method": "GET", "requestUri": "/clientcertificates" }, "input": { "type": "structure", "members": { "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "S27" } } } } }, "GetDeployment": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/deployments/{deployment_id}" }, "input": { "type": "structure", "required": [ "restApiId", "deploymentId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "deploymentId": { "location": "uri", "locationName": "deployment_id" } } }, "output": { "shape": "Sl" } }, "GetDeployments": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/deployments" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Sl" } } } } }, "GetDomainName": { "http": { "method": "GET", "requestUri": "/domainnames/{domain_name}" }, "input": { "type": "structure", "required": [ "domainName" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" } } }, "output": { "shape": "Sq" } }, "GetDomainNames": { "http": { "method": "GET", "requestUri": "/domainnames" }, "input": { "type": "structure", "members": { "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Sq" } } } } }, "GetExport": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "restApiId", "stageName", "exportType" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" }, "exportType": { "location": "uri", "locationName": "export_type" }, "parameters": { "shape": "Sk", "location": "querystring" }, "accepts": { "location": "header", "locationName": "Accept" } } }, "output": { "type": "structure", "members": { "contentType": { "location": "header", "locationName": "Content-Type" }, "contentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "body": { "type": "blob" } }, "payload": "body" } }, "GetIntegration": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" } } }, "output": { "shape": "S11" } }, "GetIntegrationResponse": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" } } }, "output": { "shape": "S14" } }, "GetMethod": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" } } }, "output": { "shape": "Sw" } }, "GetMethodResponse": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" } } }, "output": { "shape": "Sz" } }, "GetModel": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/models/{model_name}" }, "input": { "type": "structure", "required": [ "restApiId", "modelName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "modelName": { "location": "uri", "locationName": "model_name" }, "flatten": { "location": "querystring", "locationName": "flatten", "type": "boolean" } } }, "output": { "shape": "Ss" } }, "GetModelTemplate": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/models/{model_name}/default_template" }, "input": { "type": "structure", "required": [ "restApiId", "modelName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "modelName": { "location": "uri", "locationName": "model_name" } } }, "output": { "type": "structure", "members": { "value": {} } } }, "GetModels": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/models" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Ss" } } } } }, "GetResource": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" } } }, "output": { "shape": "Su" } }, "GetResources": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/resources" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "Su" } } } } }, "GetRestApi": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" } } }, "output": { "shape": "S16" } }, "GetRestApis": { "http": { "method": "GET", "requestUri": "/restapis" }, "input": { "type": "structure", "members": { "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "S16" } } } } }, "GetSdk": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}/sdks/{sdk_type}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "restApiId", "stageName", "sdkType" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" }, "sdkType": { "location": "uri", "locationName": "sdk_type" }, "parameters": { "shape": "Sk", "location": "querystring" } } }, "output": { "type": "structure", "members": { "contentType": { "location": "header", "locationName": "Content-Type" }, "contentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "body": { "type": "blob" } }, "payload": "body" } }, "GetStage": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}" }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" } } }, "output": { "shape": "S18" } }, "GetStages": { "http": { "method": "GET", "requestUri": "/restapis/{restapi_id}/stages" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "deploymentId": { "location": "querystring", "locationName": "deploymentId" } } }, "output": { "type": "structure", "members": { "item": { "type": "list", "member": { "shape": "S18" } } } } }, "GetUsage": { "http": { "method": "GET", "requestUri": "/usageplans/{usageplanId}/usage" }, "input": { "type": "structure", "required": [ "usagePlanId", "startDate", "endDate" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "keyId": { "location": "querystring", "locationName": "keyId" }, "startDate": { "location": "querystring", "locationName": "startDate" }, "endDate": { "location": "querystring", "locationName": "endDate" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "shape": "S3q" } }, "GetUsagePlan": { "http": { "method": "GET", "requestUri": "/usageplans/{usageplanId}" }, "input": { "type": "structure", "required": [ "usagePlanId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" } } }, "output": { "shape": "S1l" } }, "GetUsagePlanKey": { "http": { "method": "GET", "requestUri": "/usageplans/{usageplanId}/keys/{keyId}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "usagePlanId", "keyId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "keyId": { "location": "uri", "locationName": "keyId" } } }, "output": { "shape": "S1n" } }, "GetUsagePlanKeys": { "http": { "method": "GET", "requestUri": "/usageplans/{usageplanId}/keys" }, "input": { "type": "structure", "required": [ "usagePlanId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "position": { "location": "querystring", "locationName": "position" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" }, "nameQuery": { "location": "querystring", "locationName": "name" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "S1n" } } } } }, "GetUsagePlans": { "http": { "method": "GET", "requestUri": "/usageplans" }, "input": { "type": "structure", "members": { "position": { "location": "querystring", "locationName": "position" }, "keyId": { "location": "querystring", "locationName": "keyId" }, "limit": { "location": "querystring", "locationName": "limit", "type": "integer" } } }, "output": { "type": "structure", "members": { "position": {}, "items": { "locationName": "item", "type": "list", "member": { "shape": "S1l" } } } } }, "ImportApiKeys": { "http": { "requestUri": "/apikeys?mode=import", "responseCode": 201 }, "input": { "type": "structure", "required": [ "body", "format" ], "members": { "body": { "type": "blob" }, "format": { "location": "querystring", "locationName": "format" }, "failOnWarnings": { "location": "querystring", "locationName": "failonwarnings", "type": "boolean" } }, "payload": "body" }, "output": { "type": "structure", "members": { "ids": { "shape": "S8" }, "warnings": { "shape": "S8" } } } }, "ImportRestApi": { "http": { "requestUri": "/restapis?mode=import", "responseCode": 201 }, "input": { "type": "structure", "required": [ "body" ], "members": { "failOnWarnings": { "location": "querystring", "locationName": "failonwarnings", "type": "boolean" }, "parameters": { "shape": "Sk", "location": "querystring" }, "body": { "type": "blob" } }, "payload": "body" }, "output": { "shape": "S16" } }, "PutIntegration": { "http": { "method": "PUT", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "type" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "type": {}, "integrationHttpMethod": { "locationName": "httpMethod" }, "uri": {}, "credentials": {}, "requestParameters": { "shape": "Sk" }, "requestTemplates": { "shape": "Sk" }, "passthroughBehavior": {}, "cacheNamespace": {}, "cacheKeyParameters": { "shape": "S8" } } }, "output": { "shape": "S11" } }, "PutIntegrationResponse": { "http": { "method": "PUT", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" }, "selectionPattern": {}, "responseParameters": { "shape": "Sk" }, "responseTemplates": { "shape": "Sk" } } }, "output": { "shape": "S14" } }, "PutMethod": { "http": { "method": "PUT", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "authorizationType" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "authorizationType": {}, "authorizerId": {}, "apiKeyRequired": { "type": "boolean" }, "requestParameters": { "shape": "Sx" }, "requestModels": { "shape": "Sk" } } }, "output": { "shape": "Sw" } }, "PutMethodResponse": { "http": { "method": "PUT", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" }, "responseParameters": { "shape": "Sx" }, "responseModels": { "shape": "Sk" } } }, "output": { "shape": "Sz" } }, "PutRestApi": { "http": { "method": "PUT", "requestUri": "/restapis/{restapi_id}" }, "input": { "type": "structure", "required": [ "restApiId", "body" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "mode": { "location": "querystring", "locationName": "mode" }, "failOnWarnings": { "location": "querystring", "locationName": "failonwarnings", "type": "boolean" }, "parameters": { "shape": "Sk", "location": "querystring" }, "body": { "type": "blob" } }, "payload": "body" }, "output": { "shape": "S16" } }, "TestInvokeAuthorizer": { "http": { "requestUri": "/restapis/{restapi_id}/authorizers/{authorizer_id}" }, "input": { "type": "structure", "required": [ "restApiId", "authorizerId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "authorizerId": { "location": "uri", "locationName": "authorizer_id" }, "headers": { "shape": "S4e" }, "pathWithQueryString": {}, "body": {}, "stageVariables": { "shape": "Sk" }, "additionalContext": { "shape": "Sk" } } }, "output": { "type": "structure", "members": { "clientStatus": { "type": "integer" }, "log": {}, "latency": { "type": "long" }, "principalId": {}, "policy": {}, "authorization": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "claims": { "shape": "Sk" } } } }, "TestInvokeMethod": { "http": { "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "pathWithQueryString": {}, "body": {}, "headers": { "shape": "S4e" }, "clientCertificateId": {}, "stageVariables": { "shape": "Sk" } } }, "output": { "type": "structure", "members": { "status": { "type": "integer" }, "body": {}, "headers": { "shape": "S4e" }, "log": {}, "latency": { "type": "long" } } } }, "UpdateAccount": { "http": { "method": "PATCH", "requestUri": "/account" }, "input": { "type": "structure", "members": { "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S29" } }, "UpdateApiKey": { "http": { "method": "PATCH", "requestUri": "/apikeys/{api_Key}" }, "input": { "type": "structure", "required": [ "apiKey" ], "members": { "apiKey": { "location": "uri", "locationName": "api_Key" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S6" } }, "UpdateAuthorizer": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/authorizers/{authorizer_id}" }, "input": { "type": "structure", "required": [ "restApiId", "authorizerId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "authorizerId": { "location": "uri", "locationName": "authorizer_id" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Se" } }, "UpdateBasePathMapping": { "http": { "method": "PATCH", "requestUri": "/domainnames/{domain_name}/basepathmappings/{base_path}" }, "input": { "type": "structure", "required": [ "domainName", "basePath" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "basePath": { "location": "uri", "locationName": "base_path" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Sg" } }, "UpdateClientCertificate": { "http": { "method": "PATCH", "requestUri": "/clientcertificates/{clientcertificate_id}" }, "input": { "type": "structure", "required": [ "clientCertificateId" ], "members": { "clientCertificateId": { "location": "uri", "locationName": "clientcertificate_id" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S27" } }, "UpdateDeployment": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/deployments/{deployment_id}" }, "input": { "type": "structure", "required": [ "restApiId", "deploymentId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "deploymentId": { "location": "uri", "locationName": "deployment_id" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Sl" } }, "UpdateDomainName": { "http": { "method": "PATCH", "requestUri": "/domainnames/{domain_name}" }, "input": { "type": "structure", "required": [ "domainName" ], "members": { "domainName": { "location": "uri", "locationName": "domain_name" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Sq" } }, "UpdateIntegration": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S11" } }, "UpdateIntegrationResponse": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/integration/responses/{status_code}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S14" } }, "UpdateMethod": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Sw" } }, "UpdateMethodResponse": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}/methods/{http_method}/responses/{status_code}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "restApiId", "resourceId", "httpMethod", "statusCode" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "httpMethod": { "location": "uri", "locationName": "http_method" }, "statusCode": { "location": "uri", "locationName": "status_code" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Sz" } }, "UpdateModel": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/models/{model_name}" }, "input": { "type": "structure", "required": [ "restApiId", "modelName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "modelName": { "location": "uri", "locationName": "model_name" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Ss" } }, "UpdateResource": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/resources/{resource_id}" }, "input": { "type": "structure", "required": [ "restApiId", "resourceId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "resourceId": { "location": "uri", "locationName": "resource_id" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "Su" } }, "UpdateRestApi": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}" }, "input": { "type": "structure", "required": [ "restApiId" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S16" } }, "UpdateStage": { "http": { "method": "PATCH", "requestUri": "/restapis/{restapi_id}/stages/{stage_name}" }, "input": { "type": "structure", "required": [ "restApiId", "stageName" ], "members": { "restApiId": { "location": "uri", "locationName": "restapi_id" }, "stageName": { "location": "uri", "locationName": "stage_name" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S18" } }, "UpdateUsage": { "http": { "method": "PATCH", "requestUri": "/usageplans/{usageplanId}/keys/{keyId}/usage" }, "input": { "type": "structure", "required": [ "usagePlanId", "keyId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "keyId": { "location": "uri", "locationName": "keyId" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S3q" } }, "UpdateUsagePlan": { "http": { "method": "PATCH", "requestUri": "/usageplans/{usageplanId}" }, "input": { "type": "structure", "required": [ "usagePlanId" ], "members": { "usagePlanId": { "location": "uri", "locationName": "usageplanId" }, "patchOperations": { "shape": "S4k" } } }, "output": { "shape": "S1l" } } }, "shapes": { "S6": { "type": "structure", "members": { "id": {}, "value": {}, "name": {}, "description": {}, "enabled": { "type": "boolean" }, "createdDate": { "type": "timestamp" }, "lastUpdatedDate": { "type": "timestamp" }, "stageKeys": { "shape": "S8" } } }, "S8": { "type": "list", "member": {} }, "Sb": { "type": "list", "member": {} }, "Se": { "type": "structure", "members": { "id": {}, "name": {}, "type": {}, "providerARNs": { "shape": "Sb" }, "authType": {}, "authorizerUri": {}, "authorizerCredentials": {}, "identitySource": {}, "identityValidationExpression": {}, "authorizerResultTtlInSeconds": { "type": "integer" } } }, "Sg": { "type": "structure", "members": { "basePath": {}, "restApiId": {}, "stage": {} } }, "Sk": { "type": "map", "key": {}, "value": {} }, "Sl": { "type": "structure", "members": { "id": {}, "description": {}, "createdDate": { "type": "timestamp" }, "apiSummary": { "type": "map", "key": {}, "value": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "authorizationType": {}, "apiKeyRequired": { "type": "boolean" } } } } } } }, "Sq": { "type": "structure", "members": { "domainName": {}, "certificateName": {}, "certificateUploadDate": { "type": "timestamp" }, "distributionDomainName": {} } }, "Ss": { "type": "structure", "members": { "id": {}, "name": {}, "description": {}, "schema": {}, "contentType": {} } }, "Su": { "type": "structure", "members": { "id": {}, "parentId": {}, "pathPart": {}, "path": {}, "resourceMethods": { "type": "map", "key": {}, "value": { "shape": "Sw" } } } }, "Sw": { "type": "structure", "members": { "httpMethod": {}, "authorizationType": {}, "authorizerId": {}, "apiKeyRequired": { "type": "boolean" }, "requestParameters": { "shape": "Sx" }, "requestModels": { "shape": "Sk" }, "methodResponses": { "type": "map", "key": {}, "value": { "shape": "Sz" } }, "methodIntegration": { "shape": "S11" } } }, "Sx": { "type": "map", "key": {}, "value": { "type": "boolean" } }, "Sz": { "type": "structure", "members": { "statusCode": {}, "responseParameters": { "shape": "Sx" }, "responseModels": { "shape": "Sk" } } }, "S11": { "type": "structure", "members": { "type": {}, "httpMethod": {}, "uri": {}, "credentials": {}, "requestParameters": { "shape": "Sk" }, "requestTemplates": { "shape": "Sk" }, "passthroughBehavior": {}, "cacheNamespace": {}, "cacheKeyParameters": { "shape": "S8" }, "integrationResponses": { "type": "map", "key": {}, "value": { "shape": "S14" } } } }, "S14": { "type": "structure", "members": { "statusCode": {}, "selectionPattern": {}, "responseParameters": { "shape": "Sk" }, "responseTemplates": { "shape": "Sk" } } }, "S16": { "type": "structure", "members": { "id": {}, "name": {}, "description": {}, "createdDate": { "type": "timestamp" }, "warnings": { "shape": "S8" } } }, "S18": { "type": "structure", "members": { "deploymentId": {}, "clientCertificateId": {}, "stageName": {}, "description": {}, "cacheClusterEnabled": { "type": "boolean" }, "cacheClusterSize": {}, "cacheClusterStatus": {}, "methodSettings": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "metricsEnabled": { "type": "boolean" }, "loggingLevel": {}, "dataTraceEnabled": { "type": "boolean" }, "throttlingBurstLimit": { "type": "integer" }, "throttlingRateLimit": { "type": "double" }, "cachingEnabled": { "type": "boolean" }, "cacheTtlInSeconds": { "type": "integer" }, "cacheDataEncrypted": { "type": "boolean" }, "requireAuthorizationForCacheControl": { "type": "boolean" }, "unauthorizedCacheControlHeaderStrategy": {} } } }, "variables": { "shape": "Sk" }, "createdDate": { "type": "timestamp" }, "lastUpdatedDate": { "type": "timestamp" } } }, "S1g": { "type": "list", "member": { "type": "structure", "members": { "apiId": {}, "stage": {} } } }, "S1i": { "type": "structure", "members": { "burstLimit": { "type": "integer" }, "rateLimit": { "type": "double" } } }, "S1j": { "type": "structure", "members": { "limit": { "type": "integer" }, "offset": { "type": "integer" }, "period": {} } }, "S1l": { "type": "structure", "members": { "id": {}, "name": {}, "description": {}, "apiStages": { "shape": "S1g" }, "throttle": { "shape": "S1i" }, "quota": { "shape": "S1j" } } }, "S1n": { "type": "structure", "members": { "id": {}, "type": {}, "value": {}, "name": {} } }, "S27": { "type": "structure", "members": { "clientCertificateId": {}, "description": {}, "pemEncodedCertificate": {}, "createdDate": { "type": "timestamp" }, "expirationDate": { "type": "timestamp" } } }, "S29": { "type": "structure", "members": { "cloudwatchRoleArn": {}, "throttleSettings": { "shape": "S1i" }, "features": { "shape": "S8" }, "apiKeyVersion": {} } }, "S3q": { "type": "structure", "members": { "usagePlanId": {}, "startDate": {}, "endDate": {}, "position": {}, "items": { "locationName": "values", "type": "map", "key": {}, "value": { "type": "list", "member": { "type": "list", "member": { "type": "long" } } } } } }, "S4e": { "type": "map", "key": {}, "value": {} }, "S4k": { "type": "list", "member": { "type": "structure", "members": { "op": {}, "path": {}, "value": {}, "from": {} } } } } } },{}],12:[function(require,module,exports){ module.exports={ "pagination": { "GetApiKeys": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetBasePathMappings": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetClientCertificates": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetDeployments": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetDomainNames": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetModels": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetResources": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetRestApis": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetUsage": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetUsagePlans": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" }, "GetUsagePlanKeys": { "input_token": "position", "output_token": "position", "limit_key": "limit", "result_key": "items" } } } },{}],13:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2016-02-06", "endpointPrefix": "autoscaling", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Application Auto Scaling", "signatureVersion": "v4", "signingName": "application-autoscaling", "targetPrefix": "AnyScaleFrontendService" }, "operations": { "DeleteScalingPolicy": { "input": { "type": "structure", "required": [ "PolicyName", "ServiceNamespace", "ResourceId", "ScalableDimension" ], "members": { "PolicyName": {}, "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {} } }, "output": { "type": "structure", "members": {} } }, "DeregisterScalableTarget": { "input": { "type": "structure", "required": [ "ServiceNamespace", "ResourceId", "ScalableDimension" ], "members": { "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {} } }, "output": { "type": "structure", "members": {} } }, "DescribeScalableTargets": { "input": { "type": "structure", "required": [ "ServiceNamespace" ], "members": { "ServiceNamespace": {}, "ResourceIds": { "shape": "S9" }, "ScalableDimension": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ScalableTargets": { "type": "list", "member": { "type": "structure", "required": [ "ServiceNamespace", "ResourceId", "ScalableDimension", "MinCapacity", "MaxCapacity", "RoleARN", "CreationTime" ], "members": { "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "MinCapacity": { "type": "integer" }, "MaxCapacity": { "type": "integer" }, "RoleARN": {}, "CreationTime": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeScalingActivities": { "input": { "type": "structure", "required": [ "ServiceNamespace" ], "members": { "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ScalingActivities": { "type": "list", "member": { "type": "structure", "required": [ "ActivityId", "ServiceNamespace", "ResourceId", "ScalableDimension", "Description", "Cause", "StartTime", "StatusCode" ], "members": { "ActivityId": {}, "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "Description": {}, "Cause": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "StatusCode": {}, "StatusMessage": {}, "Details": {} } } }, "NextToken": {} } } }, "DescribeScalingPolicies": { "input": { "type": "structure", "required": [ "ServiceNamespace" ], "members": { "PolicyNames": { "shape": "S9" }, "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ScalingPolicies": { "type": "list", "member": { "type": "structure", "required": [ "PolicyARN", "PolicyName", "ServiceNamespace", "ResourceId", "ScalableDimension", "PolicyType", "CreationTime" ], "members": { "PolicyARN": {}, "PolicyName": {}, "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "PolicyType": {}, "StepScalingPolicyConfiguration": { "shape": "St" }, "Alarms": { "type": "list", "member": { "type": "structure", "required": [ "AlarmName", "AlarmARN" ], "members": { "AlarmName": {}, "AlarmARN": {} } } }, "CreationTime": { "type": "timestamp" } } } }, "NextToken": {} } } }, "PutScalingPolicy": { "input": { "type": "structure", "required": [ "PolicyName", "ServiceNamespace", "ResourceId", "ScalableDimension" ], "members": { "PolicyName": {}, "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "PolicyType": {}, "StepScalingPolicyConfiguration": { "shape": "St" } } }, "output": { "type": "structure", "required": [ "PolicyARN" ], "members": { "PolicyARN": {} } } }, "RegisterScalableTarget": { "input": { "type": "structure", "required": [ "ServiceNamespace", "ResourceId", "ScalableDimension" ], "members": { "ServiceNamespace": {}, "ResourceId": {}, "ScalableDimension": {}, "MinCapacity": { "type": "integer" }, "MaxCapacity": { "type": "integer" }, "RoleARN": {} } }, "output": { "type": "structure", "members": {} } } }, "shapes": { "S9": { "type": "list", "member": {} }, "St": { "type": "structure", "members": { "AdjustmentType": {}, "StepAdjustments": { "type": "list", "member": { "type": "structure", "required": [ "ScalingAdjustment" ], "members": { "MetricIntervalLowerBound": { "type": "double" }, "MetricIntervalUpperBound": { "type": "double" }, "ScalingAdjustment": { "type": "integer" } } } }, "MinAdjustmentMagnitude": { "type": "integer" }, "Cooldown": { "type": "integer" }, "MetricAggregationType": {} } } } } },{}],14:[function(require,module,exports){ module.exports={ "pagination": { "DescribeScalableTargets": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "ScalableTargets" }, "DescribeScalingPolicies": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "ScalingPolicies" }, "DescribeScalingActivities": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "ScalingActivities" } } } },{}],15:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2011-01-01", "endpointPrefix": "autoscaling", "protocol": "query", "serviceFullName": "Auto Scaling", "signatureVersion": "v4", "xmlNamespace": "http://autoscaling.amazonaws.com/doc/2011-01-01/" }, "operations": { "AttachInstances": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "InstanceIds": { "shape": "S2" }, "AutoScalingGroupName": {} } } }, "AttachLoadBalancerTargetGroups": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "TargetGroupARNs" ], "members": { "AutoScalingGroupName": {}, "TargetGroupARNs": { "shape": "S6" } } }, "output": { "resultWrapper": "AttachLoadBalancerTargetGroupsResult", "type": "structure", "members": {} } }, "AttachLoadBalancers": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "LoadBalancerNames" ], "members": { "AutoScalingGroupName": {}, "LoadBalancerNames": { "shape": "Sa" } } }, "output": { "resultWrapper": "AttachLoadBalancersResult", "type": "structure", "members": {} } }, "CompleteLifecycleAction": { "input": { "type": "structure", "required": [ "LifecycleHookName", "AutoScalingGroupName", "LifecycleActionResult" ], "members": { "LifecycleHookName": {}, "AutoScalingGroupName": {}, "LifecycleActionToken": {}, "LifecycleActionResult": {}, "InstanceId": {} } }, "output": { "resultWrapper": "CompleteLifecycleActionResult", "type": "structure", "members": {} } }, "CreateAutoScalingGroup": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "MinSize", "MaxSize" ], "members": { "AutoScalingGroupName": {}, "LaunchConfigurationName": {}, "InstanceId": {}, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" }, "DesiredCapacity": { "type": "integer" }, "DefaultCooldown": { "type": "integer" }, "AvailabilityZones": { "shape": "Sn" }, "LoadBalancerNames": { "shape": "Sa" }, "TargetGroupARNs": { "shape": "S6" }, "HealthCheckType": {}, "HealthCheckGracePeriod": { "type": "integer" }, "PlacementGroup": {}, "VPCZoneIdentifier": {}, "TerminationPolicies": { "shape": "Sr" }, "NewInstancesProtectedFromScaleIn": { "type": "boolean" }, "Tags": { "shape": "Su" } } } }, "CreateLaunchConfiguration": { "input": { "type": "structure", "required": [ "LaunchConfigurationName" ], "members": { "LaunchConfigurationName": {}, "ImageId": {}, "KeyName": {}, "SecurityGroups": { "shape": "S11" }, "ClassicLinkVPCId": {}, "ClassicLinkVPCSecurityGroups": { "shape": "S12" }, "UserData": {}, "InstanceId": {}, "InstanceType": {}, "KernelId": {}, "RamdiskId": {}, "BlockDeviceMappings": { "shape": "S14" }, "InstanceMonitoring": { "shape": "S1d" }, "SpotPrice": {}, "IamInstanceProfile": {}, "EbsOptimized": { "type": "boolean" }, "AssociatePublicIpAddress": { "type": "boolean" }, "PlacementTenancy": {} } } }, "CreateOrUpdateTags": { "input": { "type": "structure", "required": [ "Tags" ], "members": { "Tags": { "shape": "Su" } } } }, "DeleteAutoScalingGroup": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "ForceDelete": { "type": "boolean" } } } }, "DeleteLaunchConfiguration": { "input": { "type": "structure", "required": [ "LaunchConfigurationName" ], "members": { "LaunchConfigurationName": {} } } }, "DeleteLifecycleHook": { "input": { "type": "structure", "required": [ "LifecycleHookName", "AutoScalingGroupName" ], "members": { "LifecycleHookName": {}, "AutoScalingGroupName": {} } }, "output": { "resultWrapper": "DeleteLifecycleHookResult", "type": "structure", "members": {} } }, "DeleteNotificationConfiguration": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "TopicARN" ], "members": { "AutoScalingGroupName": {}, "TopicARN": {} } } }, "DeletePolicy": { "input": { "type": "structure", "required": [ "PolicyName" ], "members": { "AutoScalingGroupName": {}, "PolicyName": {} } } }, "DeleteScheduledAction": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "ScheduledActionName" ], "members": { "AutoScalingGroupName": {}, "ScheduledActionName": {} } } }, "DeleteTags": { "input": { "type": "structure", "required": [ "Tags" ], "members": { "Tags": { "shape": "Su" } } } }, "DescribeAccountLimits": { "output": { "resultWrapper": "DescribeAccountLimitsResult", "type": "structure", "members": { "MaxNumberOfAutoScalingGroups": { "type": "integer" }, "MaxNumberOfLaunchConfigurations": { "type": "integer" }, "NumberOfAutoScalingGroups": { "type": "integer" }, "NumberOfLaunchConfigurations": { "type": "integer" } } } }, "DescribeAdjustmentTypes": { "output": { "resultWrapper": "DescribeAdjustmentTypesResult", "type": "structure", "members": { "AdjustmentTypes": { "type": "list", "member": { "type": "structure", "members": { "AdjustmentType": {} } } } } } }, "DescribeAutoScalingGroups": { "input": { "type": "structure", "members": { "AutoScalingGroupNames": { "shape": "S22" }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeAutoScalingGroupsResult", "type": "structure", "required": [ "AutoScalingGroups" ], "members": { "AutoScalingGroups": { "type": "list", "member": { "type": "structure", "required": [ "AutoScalingGroupName", "MinSize", "MaxSize", "DesiredCapacity", "DefaultCooldown", "AvailabilityZones", "HealthCheckType", "CreatedTime" ], "members": { "AutoScalingGroupName": {}, "AutoScalingGroupARN": {}, "LaunchConfigurationName": {}, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" }, "DesiredCapacity": { "type": "integer" }, "DefaultCooldown": { "type": "integer" }, "AvailabilityZones": { "shape": "Sn" }, "LoadBalancerNames": { "shape": "Sa" }, "TargetGroupARNs": { "shape": "S6" }, "HealthCheckType": {}, "HealthCheckGracePeriod": { "type": "integer" }, "Instances": { "type": "list", "member": { "type": "structure", "required": [ "InstanceId", "AvailabilityZone", "LifecycleState", "HealthStatus", "LaunchConfigurationName", "ProtectedFromScaleIn" ], "members": { "InstanceId": {}, "AvailabilityZone": {}, "LifecycleState": {}, "HealthStatus": {}, "LaunchConfigurationName": {}, "ProtectedFromScaleIn": { "type": "boolean" } } } }, "CreatedTime": { "type": "timestamp" }, "SuspendedProcesses": { "type": "list", "member": { "type": "structure", "members": { "ProcessName": {}, "SuspensionReason": {} } } }, "PlacementGroup": {}, "VPCZoneIdentifier": {}, "EnabledMetrics": { "type": "list", "member": { "type": "structure", "members": { "Metric": {}, "Granularity": {} } } }, "Status": {}, "Tags": { "shape": "S2f" }, "TerminationPolicies": { "shape": "Sr" }, "NewInstancesProtectedFromScaleIn": { "type": "boolean" } } } }, "NextToken": {} } } }, "DescribeAutoScalingInstances": { "input": { "type": "structure", "members": { "InstanceIds": { "shape": "S2" }, "MaxRecords": { "type": "integer" }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeAutoScalingInstancesResult", "type": "structure", "members": { "AutoScalingInstances": { "type": "list", "member": { "type": "structure", "required": [ "InstanceId", "AutoScalingGroupName", "AvailabilityZone", "LifecycleState", "HealthStatus", "LaunchConfigurationName", "ProtectedFromScaleIn" ], "members": { "InstanceId": {}, "AutoScalingGroupName": {}, "AvailabilityZone": {}, "LifecycleState": {}, "HealthStatus": {}, "LaunchConfigurationName": {}, "ProtectedFromScaleIn": { "type": "boolean" } } } }, "NextToken": {} } } }, "DescribeAutoScalingNotificationTypes": { "output": { "resultWrapper": "DescribeAutoScalingNotificationTypesResult", "type": "structure", "members": { "AutoScalingNotificationTypes": { "shape": "S2m" } } } }, "DescribeLaunchConfigurations": { "input": { "type": "structure", "members": { "LaunchConfigurationNames": { "type": "list", "member": {} }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeLaunchConfigurationsResult", "type": "structure", "required": [ "LaunchConfigurations" ], "members": { "LaunchConfigurations": { "type": "list", "member": { "type": "structure", "required": [ "LaunchConfigurationName", "ImageId", "InstanceType", "CreatedTime" ], "members": { "LaunchConfigurationName": {}, "LaunchConfigurationARN": {}, "ImageId": {}, "KeyName": {}, "SecurityGroups": { "shape": "S11" }, "ClassicLinkVPCId": {}, "ClassicLinkVPCSecurityGroups": { "shape": "S12" }, "UserData": {}, "InstanceType": {}, "KernelId": {}, "RamdiskId": {}, "BlockDeviceMappings": { "shape": "S14" }, "InstanceMonitoring": { "shape": "S1d" }, "SpotPrice": {}, "IamInstanceProfile": {}, "CreatedTime": { "type": "timestamp" }, "EbsOptimized": { "type": "boolean" }, "AssociatePublicIpAddress": { "type": "boolean" }, "PlacementTenancy": {} } } }, "NextToken": {} } } }, "DescribeLifecycleHookTypes": { "output": { "resultWrapper": "DescribeLifecycleHookTypesResult", "type": "structure", "members": { "LifecycleHookTypes": { "shape": "S2m" } } } }, "DescribeLifecycleHooks": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "LifecycleHookNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeLifecycleHooksResult", "type": "structure", "members": { "LifecycleHooks": { "type": "list", "member": { "type": "structure", "members": { "LifecycleHookName": {}, "AutoScalingGroupName": {}, "LifecycleTransition": {}, "NotificationTargetARN": {}, "RoleARN": {}, "NotificationMetadata": {}, "HeartbeatTimeout": { "type": "integer" }, "GlobalTimeout": { "type": "integer" }, "DefaultResult": {} } } } } } }, "DescribeLoadBalancerTargetGroups": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeLoadBalancerTargetGroupsResult", "type": "structure", "members": { "LoadBalancerTargetGroups": { "type": "list", "member": { "type": "structure", "members": { "LoadBalancerTargetGroupARN": {}, "State": {} } } }, "NextToken": {} } } }, "DescribeLoadBalancers": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeLoadBalancersResult", "type": "structure", "members": { "LoadBalancers": { "type": "list", "member": { "type": "structure", "members": { "LoadBalancerName": {}, "State": {} } } }, "NextToken": {} } } }, "DescribeMetricCollectionTypes": { "output": { "resultWrapper": "DescribeMetricCollectionTypesResult", "type": "structure", "members": { "Metrics": { "type": "list", "member": { "type": "structure", "members": { "Metric": {} } } }, "Granularities": { "type": "list", "member": { "type": "structure", "members": { "Granularity": {} } } } } } }, "DescribeNotificationConfigurations": { "input": { "type": "structure", "members": { "AutoScalingGroupNames": { "shape": "S22" }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeNotificationConfigurationsResult", "type": "structure", "required": [ "NotificationConfigurations" ], "members": { "NotificationConfigurations": { "type": "list", "member": { "type": "structure", "members": { "AutoScalingGroupName": {}, "TopicARN": {}, "NotificationType": {} } } }, "NextToken": {} } } }, "DescribePolicies": { "input": { "type": "structure", "members": { "AutoScalingGroupName": {}, "PolicyNames": { "type": "list", "member": {} }, "PolicyTypes": { "type": "list", "member": {} }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribePoliciesResult", "type": "structure", "members": { "ScalingPolicies": { "type": "list", "member": { "type": "structure", "members": { "AutoScalingGroupName": {}, "PolicyName": {}, "PolicyARN": {}, "PolicyType": {}, "AdjustmentType": {}, "MinAdjustmentStep": { "shape": "S3p" }, "MinAdjustmentMagnitude": { "type": "integer" }, "ScalingAdjustment": { "type": "integer" }, "Cooldown": { "type": "integer" }, "StepAdjustments": { "shape": "S3s" }, "MetricAggregationType": {}, "EstimatedInstanceWarmup": { "type": "integer" }, "Alarms": { "type": "list", "member": { "type": "structure", "members": { "AlarmName": {}, "AlarmARN": {} } } } } } }, "NextToken": {} } } }, "DescribeScalingActivities": { "input": { "type": "structure", "members": { "ActivityIds": { "type": "list", "member": {} }, "AutoScalingGroupName": {}, "MaxRecords": { "type": "integer" }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeScalingActivitiesResult", "type": "structure", "required": [ "Activities" ], "members": { "Activities": { "shape": "S41" }, "NextToken": {} } } }, "DescribeScalingProcessTypes": { "output": { "resultWrapper": "DescribeScalingProcessTypesResult", "type": "structure", "members": { "Processes": { "type": "list", "member": { "type": "structure", "required": [ "ProcessName" ], "members": { "ProcessName": {} } } } } } }, "DescribeScheduledActions": { "input": { "type": "structure", "members": { "AutoScalingGroupName": {}, "ScheduledActionNames": { "type": "list", "member": {} }, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeScheduledActionsResult", "type": "structure", "members": { "ScheduledUpdateGroupActions": { "type": "list", "member": { "type": "structure", "members": { "AutoScalingGroupName": {}, "ScheduledActionName": {}, "ScheduledActionARN": {}, "Time": { "type": "timestamp" }, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Recurrence": {}, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" }, "DesiredCapacity": { "type": "integer" } } } }, "NextToken": {} } } }, "DescribeTags": { "input": { "type": "structure", "members": { "Filters": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Values": { "type": "list", "member": {} } } } }, "NextToken": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeTagsResult", "type": "structure", "members": { "Tags": { "shape": "S2f" }, "NextToken": {} } } }, "DescribeTerminationPolicyTypes": { "output": { "resultWrapper": "DescribeTerminationPolicyTypesResult", "type": "structure", "members": { "TerminationPolicyTypes": { "shape": "Sr" } } } }, "DetachInstances": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "ShouldDecrementDesiredCapacity" ], "members": { "InstanceIds": { "shape": "S2" }, "AutoScalingGroupName": {}, "ShouldDecrementDesiredCapacity": { "type": "boolean" } } }, "output": { "resultWrapper": "DetachInstancesResult", "type": "structure", "members": { "Activities": { "shape": "S41" } } } }, "DetachLoadBalancerTargetGroups": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "TargetGroupARNs" ], "members": { "AutoScalingGroupName": {}, "TargetGroupARNs": { "shape": "S6" } } }, "output": { "resultWrapper": "DetachLoadBalancerTargetGroupsResult", "type": "structure", "members": {} } }, "DetachLoadBalancers": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "LoadBalancerNames" ], "members": { "AutoScalingGroupName": {}, "LoadBalancerNames": { "shape": "Sa" } } }, "output": { "resultWrapper": "DetachLoadBalancersResult", "type": "structure", "members": {} } }, "DisableMetricsCollection": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "Metrics": { "shape": "S4r" } } } }, "EnableMetricsCollection": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "Granularity" ], "members": { "AutoScalingGroupName": {}, "Metrics": { "shape": "S4r" }, "Granularity": {} } } }, "EnterStandby": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "ShouldDecrementDesiredCapacity" ], "members": { "InstanceIds": { "shape": "S2" }, "AutoScalingGroupName": {}, "ShouldDecrementDesiredCapacity": { "type": "boolean" } } }, "output": { "resultWrapper": "EnterStandbyResult", "type": "structure", "members": { "Activities": { "shape": "S41" } } } }, "ExecutePolicy": { "input": { "type": "structure", "required": [ "PolicyName" ], "members": { "AutoScalingGroupName": {}, "PolicyName": {}, "HonorCooldown": { "type": "boolean" }, "MetricValue": { "type": "double" }, "BreachThreshold": { "type": "double" } } } }, "ExitStandby": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "InstanceIds": { "shape": "S2" }, "AutoScalingGroupName": {} } }, "output": { "resultWrapper": "ExitStandbyResult", "type": "structure", "members": { "Activities": { "shape": "S41" } } } }, "PutLifecycleHook": { "input": { "type": "structure", "required": [ "LifecycleHookName", "AutoScalingGroupName" ], "members": { "LifecycleHookName": {}, "AutoScalingGroupName": {}, "LifecycleTransition": {}, "RoleARN": {}, "NotificationTargetARN": {}, "NotificationMetadata": {}, "HeartbeatTimeout": { "type": "integer" }, "DefaultResult": {} } }, "output": { "resultWrapper": "PutLifecycleHookResult", "type": "structure", "members": {} } }, "PutNotificationConfiguration": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "TopicARN", "NotificationTypes" ], "members": { "AutoScalingGroupName": {}, "TopicARN": {}, "NotificationTypes": { "shape": "S2m" } } } }, "PutScalingPolicy": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "PolicyName", "AdjustmentType" ], "members": { "AutoScalingGroupName": {}, "PolicyName": {}, "PolicyType": {}, "AdjustmentType": {}, "MinAdjustmentStep": { "shape": "S3p" }, "MinAdjustmentMagnitude": { "type": "integer" }, "ScalingAdjustment": { "type": "integer" }, "Cooldown": { "type": "integer" }, "MetricAggregationType": {}, "StepAdjustments": { "shape": "S3s" }, "EstimatedInstanceWarmup": { "type": "integer" } } }, "output": { "resultWrapper": "PutScalingPolicyResult", "type": "structure", "members": { "PolicyARN": {} } } }, "PutScheduledUpdateGroupAction": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "ScheduledActionName" ], "members": { "AutoScalingGroupName": {}, "ScheduledActionName": {}, "Time": { "type": "timestamp" }, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Recurrence": {}, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" }, "DesiredCapacity": { "type": "integer" } } } }, "RecordLifecycleActionHeartbeat": { "input": { "type": "structure", "required": [ "LifecycleHookName", "AutoScalingGroupName" ], "members": { "LifecycleHookName": {}, "AutoScalingGroupName": {}, "LifecycleActionToken": {}, "InstanceId": {} } }, "output": { "resultWrapper": "RecordLifecycleActionHeartbeatResult", "type": "structure", "members": {} } }, "ResumeProcesses": { "input": { "shape": "S58" } }, "SetDesiredCapacity": { "input": { "type": "structure", "required": [ "AutoScalingGroupName", "DesiredCapacity" ], "members": { "AutoScalingGroupName": {}, "DesiredCapacity": { "type": "integer" }, "HonorCooldown": { "type": "boolean" } } } }, "SetInstanceHealth": { "input": { "type": "structure", "required": [ "InstanceId", "HealthStatus" ], "members": { "InstanceId": {}, "HealthStatus": {}, "ShouldRespectGracePeriod": { "type": "boolean" } } } }, "SetInstanceProtection": { "input": { "type": "structure", "required": [ "InstanceIds", "AutoScalingGroupName", "ProtectedFromScaleIn" ], "members": { "InstanceIds": { "shape": "S2" }, "AutoScalingGroupName": {}, "ProtectedFromScaleIn": { "type": "boolean" } } }, "output": { "resultWrapper": "SetInstanceProtectionResult", "type": "structure", "members": {} } }, "SuspendProcesses": { "input": { "shape": "S58" } }, "TerminateInstanceInAutoScalingGroup": { "input": { "type": "structure", "required": [ "InstanceId", "ShouldDecrementDesiredCapacity" ], "members": { "InstanceId": {}, "ShouldDecrementDesiredCapacity": { "type": "boolean" } } }, "output": { "resultWrapper": "TerminateInstanceInAutoScalingGroupResult", "type": "structure", "members": { "Activity": { "shape": "S42" } } } }, "UpdateAutoScalingGroup": { "input": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "LaunchConfigurationName": {}, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" }, "DesiredCapacity": { "type": "integer" }, "DefaultCooldown": { "type": "integer" }, "AvailabilityZones": { "shape": "Sn" }, "HealthCheckType": {}, "HealthCheckGracePeriod": { "type": "integer" }, "PlacementGroup": {}, "VPCZoneIdentifier": {}, "TerminationPolicies": { "shape": "Sr" }, "NewInstancesProtectedFromScaleIn": { "type": "boolean" } } } } }, "shapes": { "S2": { "type": "list", "member": {} }, "S6": { "type": "list", "member": {} }, "Sa": { "type": "list", "member": {} }, "Sn": { "type": "list", "member": {} }, "Sr": { "type": "list", "member": {} }, "Su": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "ResourceId": {}, "ResourceType": {}, "Key": {}, "Value": {}, "PropagateAtLaunch": { "type": "boolean" } } } }, "S11": { "type": "list", "member": {} }, "S12": { "type": "list", "member": {} }, "S14": { "type": "list", "member": { "type": "structure", "required": [ "DeviceName" ], "members": { "VirtualName": {}, "DeviceName": {}, "Ebs": { "type": "structure", "members": { "SnapshotId": {}, "VolumeSize": { "type": "integer" }, "VolumeType": {}, "DeleteOnTermination": { "type": "boolean" }, "Iops": { "type": "integer" }, "Encrypted": { "type": "boolean" } } }, "NoDevice": { "type": "boolean" } } } }, "S1d": { "type": "structure", "members": { "Enabled": { "type": "boolean" } } }, "S22": { "type": "list", "member": {} }, "S2f": { "type": "list", "member": { "type": "structure", "members": { "ResourceId": {}, "ResourceType": {}, "Key": {}, "Value": {}, "PropagateAtLaunch": { "type": "boolean" } } } }, "S2m": { "type": "list", "member": {} }, "S3p": { "type": "integer", "deprecated": true }, "S3s": { "type": "list", "member": { "type": "structure", "required": [ "ScalingAdjustment" ], "members": { "MetricIntervalLowerBound": { "type": "double" }, "MetricIntervalUpperBound": { "type": "double" }, "ScalingAdjustment": { "type": "integer" } } } }, "S41": { "type": "list", "member": { "shape": "S42" } }, "S42": { "type": "structure", "required": [ "ActivityId", "AutoScalingGroupName", "Cause", "StartTime", "StatusCode" ], "members": { "ActivityId": {}, "AutoScalingGroupName": {}, "Description": {}, "Cause": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "StatusCode": {}, "StatusMessage": {}, "Progress": { "type": "integer" }, "Details": {} } }, "S4r": { "type": "list", "member": {} }, "S58": { "type": "structure", "required": [ "AutoScalingGroupName" ], "members": { "AutoScalingGroupName": {}, "ScalingProcesses": { "type": "list", "member": {} } } } } } },{}],16:[function(require,module,exports){ module.exports={ "pagination": { "DescribeAutoScalingGroups": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "AutoScalingGroups" }, "DescribeAutoScalingInstances": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "AutoScalingInstances" }, "DescribeLaunchConfigurations": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "LaunchConfigurations" }, "DescribeNotificationConfigurations": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "NotificationConfigurations" }, "DescribePolicies": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "ScalingPolicies" }, "DescribeScalingActivities": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "Activities" }, "DescribeScheduledActions": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "ScheduledUpdateGroupActions" }, "DescribeTags": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "Tags" } } } },{}],17:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2010-05-15", "endpointPrefix": "cloudformation", "protocol": "query", "serviceFullName": "AWS CloudFormation", "signatureVersion": "v4", "xmlNamespace": "http://cloudformation.amazonaws.com/doc/2010-05-15/" }, "operations": { "CancelUpdateStack": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {} } } }, "ContinueUpdateRollback": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "RoleARN": {} } }, "output": { "resultWrapper": "ContinueUpdateRollbackResult", "type": "structure", "members": {} } }, "CreateChangeSet": { "input": { "type": "structure", "required": [ "StackName", "ChangeSetName" ], "members": { "StackName": {}, "TemplateBody": {}, "TemplateURL": {}, "UsePreviousTemplate": { "type": "boolean" }, "Parameters": { "shape": "Sb" }, "Capabilities": { "shape": "Sg" }, "ResourceTypes": { "shape": "Si" }, "RoleARN": {}, "NotificationARNs": { "shape": "Sk" }, "Tags": { "shape": "Sm" }, "ChangeSetName": {}, "ClientToken": {}, "Description": {} } }, "output": { "resultWrapper": "CreateChangeSetResult", "type": "structure", "members": { "Id": {} } } }, "CreateStack": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "TemplateBody": {}, "TemplateURL": {}, "Parameters": { "shape": "Sb" }, "DisableRollback": { "type": "boolean" }, "TimeoutInMinutes": { "type": "integer" }, "NotificationARNs": { "shape": "Sk" }, "Capabilities": { "shape": "Sg" }, "ResourceTypes": { "shape": "Si" }, "RoleARN": {}, "OnFailure": {}, "StackPolicyBody": {}, "StackPolicyURL": {}, "Tags": { "shape": "Sm" } } }, "output": { "resultWrapper": "CreateStackResult", "type": "structure", "members": { "StackId": {} } } }, "DeleteChangeSet": { "input": { "type": "structure", "required": [ "ChangeSetName" ], "members": { "ChangeSetName": {}, "StackName": {} } }, "output": { "resultWrapper": "DeleteChangeSetResult", "type": "structure", "members": {} } }, "DeleteStack": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "RetainResources": { "type": "list", "member": {} }, "RoleARN": {} } } }, "DescribeAccountLimits": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "resultWrapper": "DescribeAccountLimitsResult", "type": "structure", "members": { "AccountLimits": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Value": { "type": "integer" } } } }, "NextToken": {} } } }, "DescribeChangeSet": { "input": { "type": "structure", "required": [ "ChangeSetName" ], "members": { "ChangeSetName": {}, "StackName": {}, "NextToken": {} } }, "output": { "resultWrapper": "DescribeChangeSetResult", "type": "structure", "members": { "ChangeSetName": {}, "ChangeSetId": {}, "StackId": {}, "StackName": {}, "Description": {}, "Parameters": { "shape": "Sb" }, "CreationTime": { "type": "timestamp" }, "ExecutionStatus": {}, "Status": {}, "StatusReason": {}, "NotificationARNs": { "shape": "Sk" }, "Capabilities": { "shape": "Sg" }, "Tags": { "shape": "Sm" }, "Changes": { "type": "list", "member": { "type": "structure", "members": { "Type": {}, "ResourceChange": { "type": "structure", "members": { "Action": {}, "LogicalResourceId": {}, "PhysicalResourceId": {}, "ResourceType": {}, "Replacement": {}, "Scope": { "type": "list", "member": {} }, "Details": { "type": "list", "member": { "type": "structure", "members": { "Target": { "type": "structure", "members": { "Attribute": {}, "Name": {}, "RequiresRecreation": {} } }, "Evaluation": {}, "ChangeSource": {}, "CausingEntity": {} } } } } } } } }, "NextToken": {} } } }, "DescribeStackEvents": { "input": { "type": "structure", "members": { "StackName": {}, "NextToken": {} } }, "output": { "resultWrapper": "DescribeStackEventsResult", "type": "structure", "members": { "StackEvents": { "type": "list", "member": { "type": "structure", "required": [ "StackId", "EventId", "StackName", "Timestamp" ], "members": { "StackId": {}, "EventId": {}, "StackName": {}, "LogicalResourceId": {}, "PhysicalResourceId": {}, "ResourceType": {}, "Timestamp": { "type": "timestamp" }, "ResourceStatus": {}, "ResourceStatusReason": {}, "ResourceProperties": {} } } }, "NextToken": {} } } }, "DescribeStackResource": { "input": { "type": "structure", "required": [ "StackName", "LogicalResourceId" ], "members": { "StackName": {}, "LogicalResourceId": {} } }, "output": { "resultWrapper": "DescribeStackResourceResult", "type": "structure", "members": { "StackResourceDetail": { "type": "structure", "required": [ "LogicalResourceId", "ResourceType", "LastUpdatedTimestamp", "ResourceStatus" ], "members": { "StackName": {}, "StackId": {}, "LogicalResourceId": {}, "PhysicalResourceId": {}, "ResourceType": {}, "LastUpdatedTimestamp": { "type": "timestamp" }, "ResourceStatus": {}, "ResourceStatusReason": {}, "Description": {}, "Metadata": {} } } } } }, "DescribeStackResources": { "input": { "type": "structure", "members": { "StackName": {}, "LogicalResourceId": {}, "PhysicalResourceId": {} } }, "output": { "resultWrapper": "DescribeStackResourcesResult", "type": "structure", "members": { "StackResources": { "type": "list", "member": { "type": "structure", "required": [ "LogicalResourceId", "ResourceType", "Timestamp", "ResourceStatus" ], "members": { "StackName": {}, "StackId": {}, "LogicalResourceId": {}, "PhysicalResourceId": {}, "ResourceType": {}, "Timestamp": { "type": "timestamp" }, "ResourceStatus": {}, "ResourceStatusReason": {}, "Description": {} } } } } } }, "DescribeStacks": { "input": { "type": "structure", "members": { "StackName": {}, "NextToken": {} } }, "output": { "resultWrapper": "DescribeStacksResult", "type": "structure", "members": { "Stacks": { "type": "list", "member": { "type": "structure", "required": [ "StackName", "CreationTime", "StackStatus" ], "members": { "StackId": {}, "StackName": {}, "Description": {}, "Parameters": { "shape": "Sb" }, "CreationTime": { "type": "timestamp" }, "LastUpdatedTime": { "type": "timestamp" }, "StackStatus": {}, "StackStatusReason": {}, "DisableRollback": { "type": "boolean" }, "NotificationARNs": { "shape": "Sk" }, "TimeoutInMinutes": { "type": "integer" }, "Capabilities": { "shape": "Sg" }, "Outputs": { "type": "list", "member": { "type": "structure", "members": { "OutputKey": {}, "OutputValue": {}, "Description": {} } } }, "RoleARN": {}, "Tags": { "shape": "Sm" } } } }, "NextToken": {} } } }, "EstimateTemplateCost": { "input": { "type": "structure", "members": { "TemplateBody": {}, "TemplateURL": {}, "Parameters": { "shape": "Sb" } } }, "output": { "resultWrapper": "EstimateTemplateCostResult", "type": "structure", "members": { "Url": {} } } }, "ExecuteChangeSet": { "input": { "type": "structure", "required": [ "ChangeSetName" ], "members": { "ChangeSetName": {}, "StackName": {} } }, "output": { "resultWrapper": "ExecuteChangeSetResult", "type": "structure", "members": {} } }, "GetStackPolicy": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {} } }, "output": { "resultWrapper": "GetStackPolicyResult", "type": "structure", "members": { "StackPolicyBody": {} } } }, "GetTemplate": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {} } }, "output": { "resultWrapper": "GetTemplateResult", "type": "structure", "members": { "TemplateBody": {} } } }, "GetTemplateSummary": { "input": { "type": "structure", "members": { "TemplateBody": {}, "TemplateURL": {}, "StackName": {} } }, "output": { "resultWrapper": "GetTemplateSummaryResult", "type": "structure", "members": { "Parameters": { "type": "list", "member": { "type": "structure", "members": { "ParameterKey": {}, "DefaultValue": {}, "ParameterType": {}, "NoEcho": { "type": "boolean" }, "Description": {}, "ParameterConstraints": { "type": "structure", "members": { "AllowedValues": { "type": "list", "member": {} } } } } } }, "Description": {}, "Capabilities": { "shape": "Sg" }, "CapabilitiesReason": {}, "ResourceTypes": { "shape": "Si" }, "Version": {}, "Metadata": {} } } }, "ListChangeSets": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "NextToken": {} } }, "output": { "resultWrapper": "ListChangeSetsResult", "type": "structure", "members": { "Summaries": { "type": "list", "member": { "type": "structure", "members": { "StackId": {}, "StackName": {}, "ChangeSetId": {}, "ChangeSetName": {}, "ExecutionStatus": {}, "Status": {}, "StatusReason": {}, "CreationTime": { "type": "timestamp" }, "Description": {} } } }, "NextToken": {} } } }, "ListStackResources": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "NextToken": {} } }, "output": { "resultWrapper": "ListStackResourcesResult", "type": "structure", "members": { "StackResourceSummaries": { "type": "list", "member": { "type": "structure", "required": [ "LogicalResourceId", "ResourceType", "LastUpdatedTimestamp", "ResourceStatus" ], "members": { "LogicalResourceId": {}, "PhysicalResourceId": {}, "ResourceType": {}, "LastUpdatedTimestamp": { "type": "timestamp" }, "ResourceStatus": {}, "ResourceStatusReason": {} } } }, "NextToken": {} } } }, "ListStacks": { "input": { "type": "structure", "members": { "NextToken": {}, "StackStatusFilter": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "ListStacksResult", "type": "structure", "members": { "StackSummaries": { "type": "list", "member": { "type": "structure", "required": [ "StackName", "CreationTime", "StackStatus" ], "members": { "StackId": {}, "StackName": {}, "TemplateDescription": {}, "CreationTime": { "type": "timestamp" }, "LastUpdatedTime": { "type": "timestamp" }, "DeletionTime": { "type": "timestamp" }, "StackStatus": {}, "StackStatusReason": {} } } }, "NextToken": {} } } }, "SetStackPolicy": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "StackPolicyBody": {}, "StackPolicyURL": {} } } }, "SignalResource": { "input": { "type": "structure", "required": [ "StackName", "LogicalResourceId", "UniqueId", "Status" ], "members": { "StackName": {}, "LogicalResourceId": {}, "UniqueId": {}, "Status": {} } } }, "UpdateStack": { "input": { "type": "structure", "required": [ "StackName" ], "members": { "StackName": {}, "TemplateBody": {}, "TemplateURL": {}, "UsePreviousTemplate": { "type": "boolean" }, "StackPolicyDuringUpdateBody": {}, "StackPolicyDuringUpdateURL": {}, "Parameters": { "shape": "Sb" }, "Capabilities": { "shape": "Sg" }, "ResourceTypes": { "shape": "Si" }, "RoleARN": {}, "StackPolicyBody": {}, "StackPolicyURL": {}, "NotificationARNs": { "shape": "Sk" }, "Tags": { "shape": "Sm" } } }, "output": { "resultWrapper": "UpdateStackResult", "type": "structure", "members": { "StackId": {} } } }, "ValidateTemplate": { "input": { "type": "structure", "members": { "TemplateBody": {}, "TemplateURL": {} } }, "output": { "resultWrapper": "ValidateTemplateResult", "type": "structure", "members": { "Parameters": { "type": "list", "member": { "type": "structure", "members": { "ParameterKey": {}, "DefaultValue": {}, "NoEcho": { "type": "boolean" }, "Description": {} } } }, "Description": {}, "Capabilities": { "shape": "Sg" }, "CapabilitiesReason": {} } } } }, "shapes": { "Sb": { "type": "list", "member": { "type": "structure", "members": { "ParameterKey": {}, "ParameterValue": {}, "UsePreviousValue": { "type": "boolean" } } } }, "Sg": { "type": "list", "member": {} }, "Si": { "type": "list", "member": {} }, "Sk": { "type": "list", "member": {} }, "Sm": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } } } } },{}],18:[function(require,module,exports){ module.exports={ "pagination": { "DescribeStackEvents": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "StackEvents" }, "DescribeStackResources": { "result_key": "StackResources" }, "DescribeStacks": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Stacks" }, "ListStackResources": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "StackResourceSummaries" }, "ListStacks": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "StackSummaries" } } } },{}],19:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "StackExists": { "delay": 5, "operation": "DescribeStacks", "maxAttempts": 20, "acceptors": [ { "matcher": "status", "expected": 200, "state": "success" }, { "matcher": "error", "expected": "ValidationError", "state": "retry" } ] }, "StackCreateComplete": { "delay": 30, "operation": "DescribeStacks", "maxAttempts": 120, "description": "Wait until stack status is CREATE_COMPLETE.", "acceptors": [ { "expected": "CREATE_COMPLETE", "matcher": "pathAll", "state": "success", "argument": "Stacks[].StackStatus" }, { "expected": "CREATE_FAILED", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "expected": "DELETE_COMPLETE", "matcher": "pathAny", "argument": "Stacks[].StackStatus", "state": "failure" }, { "expected": "DELETE_IN_PROGRESS", "matcher": "pathAny", "argument": "Stacks[].StackStatus", "state": "failure" }, { "expected": "DELETE_FAILED", "matcher": "pathAny", "argument": "Stacks[].StackStatus", "state": "failure" }, { "expected": "ROLLBACK_COMPLETE", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "expected": "ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "expected": "ROLLBACK_IN_PROGRESS", "matcher": "pathAny", "argument": "Stacks[].StackStatus", "state": "failure" }, { "expected": "ValidationError", "matcher": "error", "state": "failure" } ] }, "StackDeleteComplete": { "delay": 30, "operation": "DescribeStacks", "maxAttempts": 120, "description": "Wait until stack status is DELETE_COMPLETE.", "acceptors": [ { "expected": "DELETE_COMPLETE", "matcher": "pathAll", "state": "success", "argument": "Stacks[].StackStatus" }, { "expected": "ValidationError", "matcher": "error", "state": "success" }, { "expected": "DELETE_FAILED", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "argument": "Stacks[].StackStatus", "expected": "CREATE_COMPLETE", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "CREATE_FAILED", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "CREATE_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "ROLLBACK_COMPLETE", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "ROLLBACK_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_COMPLETE", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_COMPLETE", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_IN_PROGRESS", "matcher": "pathAny", "state": "failure" } ] }, "StackUpdateComplete": { "delay": 30, "maxAttempts": 120, "operation": "DescribeStacks", "description": "Wait until stack status is UPDATE_COMPLETE.", "acceptors": [ { "expected": "UPDATE_COMPLETE", "matcher": "pathAll", "state": "success", "argument": "Stacks[].StackStatus" }, { "expected": "UPDATE_FAILED", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "expected": "UPDATE_ROLLBACK_COMPLETE", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "expected": "UPDATE_ROLLBACK_FAILED", "matcher": "pathAny", "state": "failure", "argument": "Stacks[].StackStatus" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "argument": "Stacks[].StackStatus", "expected": "UPDATE_ROLLBACK_IN_PROGRESS", "matcher": "pathAny", "state": "failure" }, { "expected": "ValidationError", "matcher": "error", "state": "failure" } ] } } } },{}],20:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2016-09-07", "endpointPrefix": "cloudfront", "globalEndpoint": "cloudfront.amazonaws.com", "protocol": "rest-xml", "serviceAbbreviation": "CloudFront", "serviceFullName": "Amazon CloudFront", "signatureVersion": "v4" }, "operations": { "CreateCloudFrontOriginAccessIdentity": { "http": { "requestUri": "/2016-09-07/origin-access-identity/cloudfront", "responseCode": 201 }, "input": { "type": "structure", "required": [ "CloudFrontOriginAccessIdentityConfig" ], "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2", "locationName": "CloudFrontOriginAccessIdentityConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } } }, "payload": "CloudFrontOriginAccessIdentityConfig" }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "CreateDistribution": { "http": { "requestUri": "/2016-09-07/distribution", "responseCode": 201 }, "input": { "type": "structure", "required": [ "DistributionConfig" ], "members": { "DistributionConfig": { "shape": "S7", "locationName": "DistributionConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } } }, "payload": "DistributionConfig" }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1o" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "CreateDistributionWithTags": { "http": { "requestUri": "/2016-09-07/distribution?WithTags", "responseCode": 201 }, "input": { "type": "structure", "required": [ "DistributionConfigWithTags" ], "members": { "DistributionConfigWithTags": { "locationName": "DistributionConfigWithTags", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" }, "type": "structure", "required": [ "DistributionConfig", "Tags" ], "members": { "DistributionConfig": { "shape": "S7" }, "Tags": { "shape": "S1x" } } } }, "payload": "DistributionConfigWithTags" }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1o" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "CreateInvalidation": { "http": { "requestUri": "/2016-09-07/distribution/{DistributionId}/invalidation", "responseCode": 201 }, "input": { "type": "structure", "required": [ "DistributionId", "InvalidationBatch" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "InvalidationBatch": { "shape": "S24", "locationName": "InvalidationBatch", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } } }, "payload": "InvalidationBatch" }, "output": { "type": "structure", "members": { "Location": { "location": "header", "locationName": "Location" }, "Invalidation": { "shape": "S28" } }, "payload": "Invalidation" } }, "CreateStreamingDistribution": { "http": { "requestUri": "/2016-09-07/streaming-distribution", "responseCode": 201 }, "input": { "type": "structure", "required": [ "StreamingDistributionConfig" ], "members": { "StreamingDistributionConfig": { "shape": "S2a", "locationName": "StreamingDistributionConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } } }, "payload": "StreamingDistributionConfig" }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S2e" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } }, "CreateStreamingDistributionWithTags": { "http": { "requestUri": "/2016-09-07/streaming-distribution?WithTags", "responseCode": 201 }, "input": { "type": "structure", "required": [ "StreamingDistributionConfigWithTags" ], "members": { "StreamingDistributionConfigWithTags": { "locationName": "StreamingDistributionConfigWithTags", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" }, "type": "structure", "required": [ "StreamingDistributionConfig", "Tags" ], "members": { "StreamingDistributionConfig": { "shape": "S2a" }, "Tags": { "shape": "S1x" } } } }, "payload": "StreamingDistributionConfigWithTags" }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S2e" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } }, "DeleteCloudFrontOriginAccessIdentity": { "http": { "method": "DELETE", "requestUri": "/2016-09-07/origin-access-identity/cloudfront/{Id}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } } } }, "DeleteDistribution": { "http": { "method": "DELETE", "requestUri": "/2016-09-07/distribution/{Id}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } } } }, "DeleteStreamingDistribution": { "http": { "method": "DELETE", "requestUri": "/2016-09-07/streaming-distribution/{Id}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } } } }, "GetCloudFrontOriginAccessIdentity": { "http": { "method": "GET", "requestUri": "/2016-09-07/origin-access-identity/cloudfront/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "GetCloudFrontOriginAccessIdentityConfig": { "http": { "method": "GET", "requestUri": "/2016-09-07/origin-access-identity/cloudfront/{Id}/config" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentityConfig" } }, "GetDistribution": { "http": { "method": "GET", "requestUri": "/2016-09-07/distribution/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1o" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "GetDistributionConfig": { "http": { "method": "GET", "requestUri": "/2016-09-07/distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "DistributionConfig": { "shape": "S7" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "DistributionConfig" } }, "GetInvalidation": { "http": { "method": "GET", "requestUri": "/2016-09-07/distribution/{DistributionId}/invalidation/{Id}" }, "input": { "type": "structure", "required": [ "DistributionId", "Id" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Invalidation": { "shape": "S28" } }, "payload": "Invalidation" } }, "GetStreamingDistribution": { "http": { "method": "GET", "requestUri": "/2016-09-07/streaming-distribution/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S2e" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } }, "GetStreamingDistributionConfig": { "http": { "method": "GET", "requestUri": "/2016-09-07/streaming-distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "StreamingDistributionConfig": { "shape": "S2a" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistributionConfig" } }, "ListCloudFrontOriginAccessIdentities": { "http": { "method": "GET", "requestUri": "/2016-09-07/origin-access-identity/cloudfront" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentityList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CloudFrontOriginAccessIdentitySummary", "type": "structure", "required": [ "Id", "S3CanonicalUserId", "Comment" ], "members": { "Id": {}, "S3CanonicalUserId": {}, "Comment": {} } } } } } }, "payload": "CloudFrontOriginAccessIdentityList" } }, "ListDistributions": { "http": { "method": "GET", "requestUri": "/2016-09-07/distribution" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "DistributionList": { "shape": "S36" } }, "payload": "DistributionList" } }, "ListDistributionsByWebACLId": { "http": { "method": "GET", "requestUri": "/2016-09-07/distributionsByWebACLId/{WebACLId}" }, "input": { "type": "structure", "required": [ "WebACLId" ], "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" }, "WebACLId": { "location": "uri", "locationName": "WebACLId" } } }, "output": { "type": "structure", "members": { "DistributionList": { "shape": "S36" } }, "payload": "DistributionList" } }, "ListInvalidations": { "http": { "method": "GET", "requestUri": "/2016-09-07/distribution/{DistributionId}/invalidation" }, "input": { "type": "structure", "required": [ "DistributionId" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "InvalidationList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "InvalidationSummary", "type": "structure", "required": [ "Id", "CreateTime", "Status" ], "members": { "Id": {}, "CreateTime": { "type": "timestamp" }, "Status": {} } } } } } }, "payload": "InvalidationList" } }, "ListStreamingDistributions": { "http": { "method": "GET", "requestUri": "/2016-09-07/streaming-distribution" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "StreamingDistributionList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "StreamingDistributionSummary", "type": "structure", "required": [ "Id", "ARN", "Status", "LastModifiedTime", "DomainName", "S3Origin", "Aliases", "TrustedSigners", "Comment", "PriceClass", "Enabled" ], "members": { "Id": {}, "ARN": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "S3Origin": { "shape": "S2b" }, "Aliases": { "shape": "S8" }, "TrustedSigners": { "shape": "Sy" }, "Comment": {}, "PriceClass": {}, "Enabled": { "type": "boolean" } } } } } } }, "payload": "StreamingDistributionList" } }, "ListTagsForResource": { "http": { "method": "GET", "requestUri": "/2016-09-07/tagging" }, "input": { "type": "structure", "required": [ "Resource" ], "members": { "Resource": { "location": "querystring", "locationName": "Resource" } } }, "output": { "type": "structure", "required": [ "Tags" ], "members": { "Tags": { "shape": "S1x" } }, "payload": "Tags" } }, "TagResource": { "http": { "requestUri": "/2016-09-07/tagging?Operation=Tag", "responseCode": 204 }, "input": { "type": "structure", "required": [ "Resource", "Tags" ], "members": { "Resource": { "location": "querystring", "locationName": "Resource" }, "Tags": { "shape": "S1x", "locationName": "Tags", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } } }, "payload": "Tags" } }, "UntagResource": { "http": { "requestUri": "/2016-09-07/tagging?Operation=Untag", "responseCode": 204 }, "input": { "type": "structure", "required": [ "Resource", "TagKeys" ], "members": { "Resource": { "location": "querystring", "locationName": "Resource" }, "TagKeys": { "locationName": "TagKeys", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" }, "type": "structure", "members": { "Items": { "type": "list", "member": { "locationName": "Key" } } } } }, "payload": "TagKeys" } }, "UpdateCloudFrontOriginAccessIdentity": { "http": { "method": "PUT", "requestUri": "/2016-09-07/origin-access-identity/cloudfront/{Id}/config" }, "input": { "type": "structure", "required": [ "CloudFrontOriginAccessIdentityConfig", "Id" ], "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2", "locationName": "CloudFrontOriginAccessIdentityConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "CloudFrontOriginAccessIdentityConfig" }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "UpdateDistribution": { "http": { "method": "PUT", "requestUri": "/2016-09-07/distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "DistributionConfig", "Id" ], "members": { "DistributionConfig": { "shape": "S7", "locationName": "DistributionConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "DistributionConfig" }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1o" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "UpdateStreamingDistribution": { "http": { "method": "PUT", "requestUri": "/2016-09-07/streaming-distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "StreamingDistributionConfig", "Id" ], "members": { "StreamingDistributionConfig": { "shape": "S2a", "locationName": "StreamingDistributionConfig", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2016-09-07/" } }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "StreamingDistributionConfig" }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S2e" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } } }, "shapes": { "S2": { "type": "structure", "required": [ "CallerReference", "Comment" ], "members": { "CallerReference": {}, "Comment": {} } }, "S5": { "type": "structure", "required": [ "Id", "S3CanonicalUserId" ], "members": { "Id": {}, "S3CanonicalUserId": {}, "CloudFrontOriginAccessIdentityConfig": { "shape": "S2" } } }, "S7": { "type": "structure", "required": [ "CallerReference", "Origins", "DefaultCacheBehavior", "Comment", "Enabled" ], "members": { "CallerReference": {}, "Aliases": { "shape": "S8" }, "DefaultRootObject": {}, "Origins": { "shape": "Sb" }, "DefaultCacheBehavior": { "shape": "Sn" }, "CacheBehaviors": { "shape": "S16" }, "CustomErrorResponses": { "shape": "S19" }, "Comment": {}, "Logging": { "type": "structure", "required": [ "Enabled", "IncludeCookies", "Bucket", "Prefix" ], "members": { "Enabled": { "type": "boolean" }, "IncludeCookies": { "type": "boolean" }, "Bucket": {}, "Prefix": {} } }, "PriceClass": {}, "Enabled": { "type": "boolean" }, "ViewerCertificate": { "shape": "S1e" }, "Restrictions": { "shape": "S1i" }, "WebACLId": {}, "HttpVersion": {} } }, "S8": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CNAME" } } } }, "Sb": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Origin", "type": "structure", "required": [ "Id", "DomainName" ], "members": { "Id": {}, "DomainName": {}, "OriginPath": {}, "CustomHeaders": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "OriginCustomHeader", "type": "structure", "required": [ "HeaderName", "HeaderValue" ], "members": { "HeaderName": {}, "HeaderValue": {} } } } } }, "S3OriginConfig": { "type": "structure", "required": [ "OriginAccessIdentity" ], "members": { "OriginAccessIdentity": {} } }, "CustomOriginConfig": { "type": "structure", "required": [ "HTTPPort", "HTTPSPort", "OriginProtocolPolicy" ], "members": { "HTTPPort": { "type": "integer" }, "HTTPSPort": { "type": "integer" }, "OriginProtocolPolicy": {}, "OriginSslProtocols": { "type": "structure", "required": [ "Quantity", "Items" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "SslProtocol" } } } } } } } } } } }, "Sn": { "type": "structure", "required": [ "TargetOriginId", "ForwardedValues", "TrustedSigners", "ViewerProtocolPolicy", "MinTTL" ], "members": { "TargetOriginId": {}, "ForwardedValues": { "shape": "So" }, "TrustedSigners": { "shape": "Sy" }, "ViewerProtocolPolicy": {}, "MinTTL": { "type": "long" }, "AllowedMethods": { "shape": "S12" }, "SmoothStreaming": { "type": "boolean" }, "DefaultTTL": { "type": "long" }, "MaxTTL": { "type": "long" }, "Compress": { "type": "boolean" } } }, "So": { "type": "structure", "required": [ "QueryString", "Cookies" ], "members": { "QueryString": { "type": "boolean" }, "Cookies": { "type": "structure", "required": [ "Forward" ], "members": { "Forward": {}, "WhitelistedNames": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Name" } } } } } }, "Headers": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Name" } } } }, "QueryStringCacheKeys": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Name" } } } } } }, "Sy": { "type": "structure", "required": [ "Enabled", "Quantity" ], "members": { "Enabled": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "AwsAccountNumber" } } } }, "S12": { "type": "structure", "required": [ "Quantity", "Items" ], "members": { "Quantity": { "type": "integer" }, "Items": { "shape": "S13" }, "CachedMethods": { "type": "structure", "required": [ "Quantity", "Items" ], "members": { "Quantity": { "type": "integer" }, "Items": { "shape": "S13" } } } } }, "S13": { "type": "list", "member": { "locationName": "Method" } }, "S16": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CacheBehavior", "type": "structure", "required": [ "PathPattern", "TargetOriginId", "ForwardedValues", "TrustedSigners", "ViewerProtocolPolicy", "MinTTL" ], "members": { "PathPattern": {}, "TargetOriginId": {}, "ForwardedValues": { "shape": "So" }, "TrustedSigners": { "shape": "Sy" }, "ViewerProtocolPolicy": {}, "MinTTL": { "type": "long" }, "AllowedMethods": { "shape": "S12" }, "SmoothStreaming": { "type": "boolean" }, "DefaultTTL": { "type": "long" }, "MaxTTL": { "type": "long" }, "Compress": { "type": "boolean" } } } } } }, "S19": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CustomErrorResponse", "type": "structure", "required": [ "ErrorCode" ], "members": { "ErrorCode": { "type": "integer" }, "ResponsePagePath": {}, "ResponseCode": {}, "ErrorCachingMinTTL": { "type": "long" } } } } } }, "S1e": { "type": "structure", "members": { "CloudFrontDefaultCertificate": { "type": "boolean" }, "IAMCertificateId": {}, "ACMCertificateArn": {}, "SSLSupportMethod": {}, "MinimumProtocolVersion": {}, "Certificate": { "deprecated": true }, "CertificateSource": { "deprecated": true } } }, "S1i": { "type": "structure", "required": [ "GeoRestriction" ], "members": { "GeoRestriction": { "type": "structure", "required": [ "RestrictionType", "Quantity" ], "members": { "RestrictionType": {}, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Location" } } } } } }, "S1o": { "type": "structure", "required": [ "Id", "ARN", "Status", "LastModifiedTime", "InProgressInvalidationBatches", "DomainName", "ActiveTrustedSigners", "DistributionConfig" ], "members": { "Id": {}, "ARN": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "InProgressInvalidationBatches": { "type": "integer" }, "DomainName": {}, "ActiveTrustedSigners": { "shape": "S1q" }, "DistributionConfig": { "shape": "S7" } } }, "S1q": { "type": "structure", "required": [ "Enabled", "Quantity" ], "members": { "Enabled": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Signer", "type": "structure", "members": { "AwsAccountNumber": {}, "KeyPairIds": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "KeyPairId" } } } } } } } } }, "S1x": { "type": "structure", "members": { "Items": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } } } }, "S24": { "type": "structure", "required": [ "Paths", "CallerReference" ], "members": { "Paths": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Path" } } } }, "CallerReference": {} } }, "S28": { "type": "structure", "required": [ "Id", "Status", "CreateTime", "InvalidationBatch" ], "members": { "Id": {}, "Status": {}, "CreateTime": { "type": "timestamp" }, "InvalidationBatch": { "shape": "S24" } } }, "S2a": { "type": "structure", "required": [ "CallerReference", "S3Origin", "Comment", "TrustedSigners", "Enabled" ], "members": { "CallerReference": {}, "S3Origin": { "shape": "S2b" }, "Aliases": { "shape": "S8" }, "Comment": {}, "Logging": { "type": "structure", "required": [ "Enabled", "Bucket", "Prefix" ], "members": { "Enabled": { "type": "boolean" }, "Bucket": {}, "Prefix": {} } }, "TrustedSigners": { "shape": "Sy" }, "PriceClass": {}, "Enabled": { "type": "boolean" } } }, "S2b": { "type": "structure", "required": [ "DomainName", "OriginAccessIdentity" ], "members": { "DomainName": {}, "OriginAccessIdentity": {} } }, "S2e": { "type": "structure", "required": [ "Id", "ARN", "Status", "DomainName", "ActiveTrustedSigners", "StreamingDistributionConfig" ], "members": { "Id": {}, "ARN": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "ActiveTrustedSigners": { "shape": "S1q" }, "StreamingDistributionConfig": { "shape": "S2a" } } }, "S36": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "DistributionSummary", "type": "structure", "required": [ "Id", "ARN", "Status", "LastModifiedTime", "DomainName", "Aliases", "Origins", "DefaultCacheBehavior", "CacheBehaviors", "CustomErrorResponses", "Comment", "PriceClass", "Enabled", "ViewerCertificate", "Restrictions", "WebACLId", "HttpVersion" ], "members": { "Id": {}, "ARN": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "Aliases": { "shape": "S8" }, "Origins": { "shape": "Sb" }, "DefaultCacheBehavior": { "shape": "Sn" }, "CacheBehaviors": { "shape": "S16" }, "CustomErrorResponses": { "shape": "S19" }, "Comment": {}, "PriceClass": {}, "Enabled": { "type": "boolean" }, "ViewerCertificate": { "shape": "S1e" }, "Restrictions": { "shape": "S1i" }, "WebACLId": {}, "HttpVersion": {} } } } } } } } },{}],21:[function(require,module,exports){ module.exports={ "pagination": { "ListCloudFrontOriginAccessIdentities": { "input_token": "Marker", "output_token": "CloudFrontOriginAccessIdentityList.NextMarker", "limit_key": "MaxItems", "more_results": "CloudFrontOriginAccessIdentityList.IsTruncated", "result_key": "CloudFrontOriginAccessIdentityList.Items" }, "ListDistributions": { "input_token": "Marker", "output_token": "DistributionList.NextMarker", "limit_key": "MaxItems", "more_results": "DistributionList.IsTruncated", "result_key": "DistributionList.Items" }, "ListInvalidations": { "input_token": "Marker", "output_token": "InvalidationList.NextMarker", "limit_key": "MaxItems", "more_results": "InvalidationList.IsTruncated", "result_key": "InvalidationList.Items" }, "ListStreamingDistributions": { "input_token": "Marker", "output_token": "StreamingDistributionList.NextMarker", "limit_key": "MaxItems", "more_results": "StreamingDistributionList.IsTruncated", "result_key": "StreamingDistributionList.Items" } } } },{}],22:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "DistributionDeployed": { "delay": 60, "operation": "GetDistribution", "maxAttempts": 25, "description": "Wait until a distribution is deployed.", "acceptors": [ { "expected": "Deployed", "matcher": "path", "state": "success", "argument": "Distribution.Status" } ] }, "InvalidationCompleted": { "delay": 20, "operation": "GetInvalidation", "maxAttempts": 30, "description": "Wait until an invalidation has completed.", "acceptors": [ { "expected": "Completed", "matcher": "path", "state": "success", "argument": "Invalidation.Status" } ] }, "StreamingDistributionDeployed": { "delay": 60, "operation": "GetStreamingDistribution", "maxAttempts": 25, "description": "Wait until a streaming distribution is deployed.", "acceptors": [ { "expected": "Deployed", "matcher": "path", "state": "success", "argument": "StreamingDistribution.Status" } ] } } } },{}],23:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-05-30", "endpointPrefix": "cloudhsm", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "CloudHSM", "serviceFullName": "Amazon CloudHSM", "signatureVersion": "v4", "targetPrefix": "CloudHsmFrontendService" }, "operations": { "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceArn", "TagList" ], "members": { "ResourceArn": {}, "TagList": { "shape": "S3" } } }, "output": { "type": "structure", "required": [ "Status" ], "members": { "Status": {} } } }, "CreateHapg": { "input": { "type": "structure", "required": [ "Label" ], "members": { "Label": {} } }, "output": { "type": "structure", "members": { "HapgArn": {} } } }, "CreateHsm": { "input": { "type": "structure", "required": [ "SubnetId", "SshKey", "IamRoleArn", "SubscriptionType" ], "members": { "SubnetId": { "locationName": "SubnetId" }, "SshKey": { "locationName": "SshKey" }, "EniIp": { "locationName": "EniIp" }, "IamRoleArn": { "locationName": "IamRoleArn" }, "ExternalId": { "locationName": "ExternalId" }, "SubscriptionType": { "locationName": "SubscriptionType" }, "ClientToken": { "locationName": "ClientToken" }, "SyslogIp": { "locationName": "SyslogIp" } }, "locationName": "CreateHsmRequest" }, "output": { "type": "structure", "members": { "HsmArn": {} } } }, "CreateLunaClient": { "input": { "type": "structure", "required": [ "Certificate" ], "members": { "Label": {}, "Certificate": {} } }, "output": { "type": "structure", "members": { "ClientArn": {} } } }, "DeleteHapg": { "input": { "type": "structure", "required": [ "HapgArn" ], "members": { "HapgArn": {} } }, "output": { "type": "structure", "required": [ "Status" ], "members": { "Status": {} } } }, "DeleteHsm": { "input": { "type": "structure", "required": [ "HsmArn" ], "members": { "HsmArn": { "locationName": "HsmArn" } }, "locationName": "DeleteHsmRequest" }, "output": { "type": "structure", "required": [ "Status" ], "members": { "Status": {} } } }, "DeleteLunaClient": { "input": { "type": "structure", "required": [ "ClientArn" ], "members": { "ClientArn": {} } }, "output": { "type": "structure", "required": [ "Status" ], "members": { "Status": {} } } }, "DescribeHapg": { "input": { "type": "structure", "required": [ "HapgArn" ], "members": { "HapgArn": {} } }, "output": { "type": "structure", "members": { "HapgArn": {}, "HapgSerial": {}, "HsmsLastActionFailed": { "shape": "Sz" }, "HsmsPendingDeletion": { "shape": "Sz" }, "HsmsPendingRegistration": { "shape": "Sz" }, "Label": {}, "LastModifiedTimestamp": {}, "PartitionSerialList": { "shape": "S11" }, "State": {} } } }, "DescribeHsm": { "input": { "type": "structure", "members": { "HsmArn": {}, "HsmSerialNumber": {} } }, "output": { "type": "structure", "members": { "HsmArn": {}, "Status": {}, "StatusDetails": {}, "AvailabilityZone": {}, "EniId": {}, "EniIp": {}, "SubscriptionType": {}, "SubscriptionStartDate": {}, "SubscriptionEndDate": {}, "VpcId": {}, "SubnetId": {}, "IamRoleArn": {}, "SerialNumber": {}, "VendorName": {}, "HsmType": {}, "SoftwareVersion": {}, "SshPublicKey": {}, "SshKeyLastUpdated": {}, "ServerCertUri": {}, "ServerCertLastUpdated": {}, "Partitions": { "type": "list", "member": {} } } } }, "DescribeLunaClient": { "input": { "type": "structure", "members": { "ClientArn": {}, "CertificateFingerprint": {} } }, "output": { "type": "structure", "members": { "ClientArn": {}, "Certificate": {}, "CertificateFingerprint": {}, "LastModifiedTimestamp": {}, "Label": {} } } }, "GetConfig": { "input": { "type": "structure", "required": [ "ClientArn", "ClientVersion", "HapgList" ], "members": { "ClientArn": {}, "ClientVersion": {}, "HapgList": { "shape": "S1i" } } }, "output": { "type": "structure", "members": { "ConfigType": {}, "ConfigFile": {}, "ConfigCred": {} } } }, "ListAvailableZones": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "AZList": { "type": "list", "member": {} } } } }, "ListHapgs": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "type": "structure", "required": [ "HapgList" ], "members": { "HapgList": { "shape": "S1i" }, "NextToken": {} } } }, "ListHsms": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "type": "structure", "members": { "HsmList": { "shape": "Sz" }, "NextToken": {} } } }, "ListLunaClients": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "type": "structure", "required": [ "ClientList" ], "members": { "ClientList": { "type": "list", "member": {} }, "NextToken": {} } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceArn" ], "members": { "ResourceArn": {} } }, "output": { "type": "structure", "required": [ "TagList" ], "members": { "TagList": { "shape": "S3" } } } }, "ModifyHapg": { "input": { "type": "structure", "required": [ "HapgArn" ], "members": { "HapgArn": {}, "Label": {}, "PartitionSerialList": { "shape": "S11" } } }, "output": { "type": "structure", "members": { "HapgArn": {} } } }, "ModifyHsm": { "input": { "type": "structure", "required": [ "HsmArn" ], "members": { "HsmArn": { "locationName": "HsmArn" }, "SubnetId": { "locationName": "SubnetId" }, "EniIp": { "locationName": "EniIp" }, "IamRoleArn": { "locationName": "IamRoleArn" }, "ExternalId": { "locationName": "ExternalId" }, "SyslogIp": { "locationName": "SyslogIp" } }, "locationName": "ModifyHsmRequest" }, "output": { "type": "structure", "members": { "HsmArn": {} } } }, "ModifyLunaClient": { "input": { "type": "structure", "required": [ "ClientArn", "Certificate" ], "members": { "ClientArn": {}, "Certificate": {} } }, "output": { "type": "structure", "members": { "ClientArn": {} } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceArn", "TagKeyList" ], "members": { "ResourceArn": {}, "TagKeyList": { "type": "list", "member": {} } } }, "output": { "type": "structure", "required": [ "Status" ], "members": { "Status": {} } } } }, "shapes": { "S3": { "type": "list", "member": { "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {} } } }, "Sz": { "type": "list", "member": {} }, "S11": { "type": "list", "member": {} }, "S1i": { "type": "list", "member": {} } } } },{}],24:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-11-01", "endpointPrefix": "cloudtrail", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "CloudTrail", "serviceFullName": "AWS CloudTrail", "signatureVersion": "v4", "targetPrefix": "com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101" }, "operations": { "AddTags": { "input": { "type": "structure", "required": [ "ResourceId" ], "members": { "ResourceId": {}, "TagsList": { "shape": "S3" } } }, "output": { "type": "structure", "members": {} }, "idempotent": true }, "CreateTrail": { "input": { "type": "structure", "required": [ "Name", "S3BucketName" ], "members": { "Name": {}, "S3BucketName": {}, "S3KeyPrefix": {}, "SnsTopicName": {}, "IncludeGlobalServiceEvents": { "type": "boolean" }, "IsMultiRegionTrail": { "type": "boolean" }, "EnableLogFileValidation": { "type": "boolean" }, "CloudWatchLogsLogGroupArn": {}, "CloudWatchLogsRoleArn": {}, "KmsKeyId": {} } }, "output": { "type": "structure", "members": { "Name": {}, "S3BucketName": {}, "S3KeyPrefix": {}, "SnsTopicName": { "deprecated": true }, "SnsTopicARN": {}, "IncludeGlobalServiceEvents": { "type": "boolean" }, "IsMultiRegionTrail": { "type": "boolean" }, "TrailARN": {}, "LogFileValidationEnabled": { "type": "boolean" }, "CloudWatchLogsLogGroupArn": {}, "CloudWatchLogsRoleArn": {}, "KmsKeyId": {} } }, "idempotent": true }, "DeleteTrail": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": {} }, "idempotent": true }, "DescribeTrails": { "input": { "type": "structure", "members": { "trailNameList": { "type": "list", "member": {} }, "includeShadowTrails": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "trailList": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "S3BucketName": {}, "S3KeyPrefix": {}, "SnsTopicName": { "deprecated": true }, "SnsTopicARN": {}, "IncludeGlobalServiceEvents": { "type": "boolean" }, "IsMultiRegionTrail": { "type": "boolean" }, "HomeRegion": {}, "TrailARN": {}, "LogFileValidationEnabled": { "type": "boolean" }, "CloudWatchLogsLogGroupArn": {}, "CloudWatchLogsRoleArn": {}, "KmsKeyId": {} } } } } }, "idempotent": true }, "GetTrailStatus": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": { "IsLogging": { "type": "boolean" }, "LatestDeliveryError": {}, "LatestNotificationError": {}, "LatestDeliveryTime": { "type": "timestamp" }, "LatestNotificationTime": { "type": "timestamp" }, "StartLoggingTime": { "type": "timestamp" }, "StopLoggingTime": { "type": "timestamp" }, "LatestCloudWatchLogsDeliveryError": {}, "LatestCloudWatchLogsDeliveryTime": { "type": "timestamp" }, "LatestDigestDeliveryTime": { "type": "timestamp" }, "LatestDigestDeliveryError": {}, "LatestDeliveryAttemptTime": {}, "LatestNotificationAttemptTime": {}, "LatestNotificationAttemptSucceeded": {}, "LatestDeliveryAttemptSucceeded": {}, "TimeLoggingStarted": {}, "TimeLoggingStopped": {} } }, "idempotent": true }, "ListPublicKeys": { "input": { "type": "structure", "members": { "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "PublicKeyList": { "type": "list", "member": { "type": "structure", "members": { "Value": { "type": "blob" }, "ValidityStartTime": { "type": "timestamp" }, "ValidityEndTime": { "type": "timestamp" }, "Fingerprint": {} } } }, "NextToken": {} } }, "idempotent": true }, "ListTags": { "input": { "type": "structure", "required": [ "ResourceIdList" ], "members": { "ResourceIdList": { "type": "list", "member": {} }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ResourceTagList": { "type": "list", "member": { "type": "structure", "members": { "ResourceId": {}, "TagsList": { "shape": "S3" } } } }, "NextToken": {} } }, "idempotent": true }, "LookupEvents": { "input": { "type": "structure", "members": { "LookupAttributes": { "type": "list", "member": { "type": "structure", "required": [ "AttributeKey", "AttributeValue" ], "members": { "AttributeKey": {}, "AttributeValue": {} } } }, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "Events": { "type": "list", "member": { "type": "structure", "members": { "EventId": {}, "EventName": {}, "EventTime": { "type": "timestamp" }, "Username": {}, "Resources": { "type": "list", "member": { "type": "structure", "members": { "ResourceType": {}, "ResourceName": {} } } }, "CloudTrailEvent": {} } } }, "NextToken": {} } }, "idempotent": true }, "RemoveTags": { "input": { "type": "structure", "required": [ "ResourceId" ], "members": { "ResourceId": {}, "TagsList": { "shape": "S3" } } }, "output": { "type": "structure", "members": {} }, "idempotent": true }, "StartLogging": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": {} }, "idempotent": true }, "StopLogging": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": {} }, "idempotent": true }, "UpdateTrail": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "S3BucketName": {}, "S3KeyPrefix": {}, "SnsTopicName": {}, "IncludeGlobalServiceEvents": { "type": "boolean" }, "IsMultiRegionTrail": { "type": "boolean" }, "EnableLogFileValidation": { "type": "boolean" }, "CloudWatchLogsLogGroupArn": {}, "CloudWatchLogsRoleArn": {}, "KmsKeyId": {} } }, "output": { "type": "structure", "members": { "Name": {}, "S3BucketName": {}, "S3KeyPrefix": {}, "SnsTopicName": { "deprecated": true }, "SnsTopicARN": {}, "IncludeGlobalServiceEvents": { "type": "boolean" }, "IsMultiRegionTrail": { "type": "boolean" }, "TrailARN": {}, "LogFileValidationEnabled": { "type": "boolean" }, "CloudWatchLogsLogGroupArn": {}, "CloudWatchLogsRoleArn": {}, "KmsKeyId": {} } }, "idempotent": true } }, "shapes": { "S3": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } } } } },{}],25:[function(require,module,exports){ module.exports={ "pagination": { "DescribeTrails": { "result_key": "trailList" } } } },{}],26:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-04-13", "endpointPrefix": "codecommit", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "CodeCommit", "serviceFullName": "AWS CodeCommit", "signatureVersion": "v4", "targetPrefix": "CodeCommit_20150413" }, "operations": { "BatchGetRepositories": { "input": { "type": "structure", "required": [ "repositoryNames" ], "members": { "repositoryNames": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "repositories": { "type": "list", "member": { "shape": "S6" } }, "repositoriesNotFound": { "type": "list", "member": {} } } } }, "CreateBranch": { "input": { "type": "structure", "required": [ "repositoryName", "branchName", "commitId" ], "members": { "repositoryName": {}, "branchName": {}, "commitId": {} } } }, "CreateRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {}, "repositoryDescription": {} } }, "output": { "type": "structure", "members": { "repositoryMetadata": { "shape": "S6" } } } }, "DeleteRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {} } }, "output": { "type": "structure", "members": { "repositoryId": {} } } }, "GetBranch": { "input": { "type": "structure", "members": { "repositoryName": {}, "branchName": {} } }, "output": { "type": "structure", "members": { "branch": { "type": "structure", "members": { "branchName": {}, "commitId": {} } } } } }, "GetCommit": { "input": { "type": "structure", "required": [ "repositoryName", "commitId" ], "members": { "repositoryName": {}, "commitId": {} } }, "output": { "type": "structure", "required": [ "commit" ], "members": { "commit": { "type": "structure", "members": { "treeId": {}, "parents": { "type": "list", "member": {} }, "message": {}, "author": { "shape": "Sw" }, "committer": { "shape": "Sw" }, "additionalData": {} } } } } }, "GetRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {} } }, "output": { "type": "structure", "members": { "repositoryMetadata": { "shape": "S6" } } } }, "GetRepositoryTriggers": { "input": { "type": "structure", "members": { "repositoryName": {} } }, "output": { "type": "structure", "members": { "configurationId": {}, "triggers": { "shape": "S16" } } } }, "ListBranches": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "branches": { "shape": "S1a" }, "nextToken": {} } } }, "ListRepositories": { "input": { "type": "structure", "members": { "nextToken": {}, "sortBy": {}, "order": {} } }, "output": { "type": "structure", "members": { "repositories": { "type": "list", "member": { "type": "structure", "members": { "repositoryName": {}, "repositoryId": {} } } }, "nextToken": {} } } }, "PutRepositoryTriggers": { "input": { "type": "structure", "members": { "repositoryName": {}, "triggers": { "shape": "S16" } } }, "output": { "type": "structure", "members": { "configurationId": {} } } }, "TestRepositoryTriggers": { "input": { "type": "structure", "members": { "repositoryName": {}, "triggers": { "shape": "S16" } } }, "output": { "type": "structure", "members": { "successfulExecutions": { "type": "list", "member": {} }, "failedExecutions": { "type": "list", "member": { "type": "structure", "members": { "trigger": {}, "failureMessage": {} } } } } } }, "UpdateDefaultBranch": { "input": { "type": "structure", "required": [ "repositoryName", "defaultBranchName" ], "members": { "repositoryName": {}, "defaultBranchName": {} } } }, "UpdateRepositoryDescription": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {}, "repositoryDescription": {} } } }, "UpdateRepositoryName": { "input": { "type": "structure", "required": [ "oldName", "newName" ], "members": { "oldName": {}, "newName": {} } } } }, "shapes": { "S6": { "type": "structure", "members": { "accountId": {}, "repositoryId": {}, "repositoryName": {}, "repositoryDescription": {}, "defaultBranch": {}, "lastModifiedDate": { "type": "timestamp" }, "creationDate": { "type": "timestamp" }, "cloneUrlHttp": {}, "cloneUrlSsh": {}, "Arn": {} } }, "Sw": { "type": "structure", "members": { "name": {}, "email": {}, "date": {} } }, "S16": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "destinationArn": {}, "customData": {}, "branches": { "shape": "S1a" }, "events": { "type": "list", "member": {} } } } }, "S1a": { "type": "list", "member": {} } } } },{}],27:[function(require,module,exports){ module.exports={ "pagination": { "ListBranches": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "branches" }, "ListRepositories": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "repositories" } } } },{}],28:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-10-06", "endpointPrefix": "codedeploy", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "CodeDeploy", "serviceFullName": "AWS CodeDeploy", "signatureVersion": "v4", "targetPrefix": "CodeDeploy_20141006", "timestampFormat": "unixTimestamp" }, "operations": { "AddTagsToOnPremisesInstances": { "input": { "type": "structure", "required": [ "tags", "instanceNames" ], "members": { "tags": { "shape": "S2" }, "instanceNames": { "shape": "S6" } } } }, "BatchGetApplicationRevisions": { "input": { "type": "structure", "required": [ "applicationName", "revisions" ], "members": { "applicationName": {}, "revisions": { "shape": "Sa" } } }, "output": { "type": "structure", "members": { "applicationName": {}, "errorMessage": {}, "revisions": { "type": "list", "member": { "type": "structure", "members": { "revisionLocation": { "shape": "Sb" }, "genericRevisionInfo": { "shape": "Sq" } } } } } } }, "BatchGetApplications": { "input": { "type": "structure", "members": { "applicationNames": { "shape": "Sw" } } }, "output": { "type": "structure", "members": { "applicationsInfo": { "type": "list", "member": { "shape": "Sz" } } } } }, "BatchGetDeploymentGroups": { "input": { "type": "structure", "required": [ "applicationName", "deploymentGroupNames" ], "members": { "applicationName": {}, "deploymentGroupNames": { "shape": "Ss" } } }, "output": { "type": "structure", "members": { "deploymentGroupsInfo": { "type": "list", "member": { "shape": "S15" } }, "errorMessage": {} } } }, "BatchGetDeploymentInstances": { "input": { "type": "structure", "required": [ "deploymentId", "instanceIds" ], "members": { "deploymentId": {}, "instanceIds": { "shape": "S1y" } } }, "output": { "type": "structure", "members": { "instancesSummary": { "type": "list", "member": { "shape": "S22" } }, "errorMessage": {} } } }, "BatchGetDeployments": { "input": { "type": "structure", "members": { "deploymentIds": { "shape": "S2e" } } }, "output": { "type": "structure", "members": { "deploymentsInfo": { "type": "list", "member": { "shape": "S2h" } } } } }, "BatchGetOnPremisesInstances": { "input": { "type": "structure", "members": { "instanceNames": { "shape": "S6" } } }, "output": { "type": "structure", "members": { "instanceInfos": { "type": "list", "member": { "shape": "S2s" } } } } }, "CreateApplication": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {} } }, "output": { "type": "structure", "members": { "applicationId": {} } } }, "CreateDeployment": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {}, "deploymentGroupName": {}, "revision": { "shape": "Sb" }, "deploymentConfigName": {}, "description": {}, "ignoreApplicationStopFailures": { "type": "boolean" }, "autoRollbackConfiguration": { "shape": "S1t" }, "updateOutdatedInstancesOnly": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "deploymentId": {} } } }, "CreateDeploymentConfig": { "input": { "type": "structure", "required": [ "deploymentConfigName" ], "members": { "deploymentConfigName": {}, "minimumHealthyHosts": { "shape": "S30" } } }, "output": { "type": "structure", "members": { "deploymentConfigId": {} } } }, "CreateDeploymentGroup": { "input": { "type": "structure", "required": [ "applicationName", "deploymentGroupName", "serviceRoleArn" ], "members": { "applicationName": {}, "deploymentGroupName": {}, "deploymentConfigName": {}, "ec2TagFilters": { "shape": "S18" }, "onPremisesInstanceTagFilters": { "shape": "S1b" }, "autoScalingGroups": { "shape": "S36" }, "serviceRoleArn": {}, "triggerConfigurations": { "shape": "S1j" }, "alarmConfiguration": { "shape": "S1p" }, "autoRollbackConfiguration": { "shape": "S1t" } } }, "output": { "type": "structure", "members": { "deploymentGroupId": {} } } }, "DeleteApplication": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {} } } }, "DeleteDeploymentConfig": { "input": { "type": "structure", "required": [ "deploymentConfigName" ], "members": { "deploymentConfigName": {} } } }, "DeleteDeploymentGroup": { "input": { "type": "structure", "required": [ "applicationName", "deploymentGroupName" ], "members": { "applicationName": {}, "deploymentGroupName": {} } }, "output": { "type": "structure", "members": { "hooksNotCleanedUp": { "shape": "S1e" } } } }, "DeregisterOnPremisesInstance": { "input": { "type": "structure", "required": [ "instanceName" ], "members": { "instanceName": {} } } }, "GetApplication": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {} } }, "output": { "type": "structure", "members": { "application": { "shape": "Sz" } } } }, "GetApplicationRevision": { "input": { "type": "structure", "required": [ "applicationName", "revision" ], "members": { "applicationName": {}, "revision": { "shape": "Sb" } } }, "output": { "type": "structure", "members": { "applicationName": {}, "revision": { "shape": "Sb" }, "revisionInfo": { "shape": "Sq" } } } }, "GetDeployment": { "input": { "type": "structure", "required": [ "deploymentId" ], "members": { "deploymentId": {} } }, "output": { "type": "structure", "members": { "deploymentInfo": { "shape": "S2h" } } } }, "GetDeploymentConfig": { "input": { "type": "structure", "required": [ "deploymentConfigName" ], "members": { "deploymentConfigName": {} } }, "output": { "type": "structure", "members": { "deploymentConfigInfo": { "type": "structure", "members": { "deploymentConfigId": {}, "deploymentConfigName": {}, "minimumHealthyHosts": { "shape": "S30" }, "createTime": { "type": "timestamp" } } } } } }, "GetDeploymentGroup": { "input": { "type": "structure", "required": [ "applicationName", "deploymentGroupName" ], "members": { "applicationName": {}, "deploymentGroupName": {} } }, "output": { "type": "structure", "members": { "deploymentGroupInfo": { "shape": "S15" } } } }, "GetDeploymentInstance": { "input": { "type": "structure", "required": [ "deploymentId", "instanceId" ], "members": { "deploymentId": {}, "instanceId": {} } }, "output": { "type": "structure", "members": { "instanceSummary": { "shape": "S22" } } } }, "GetOnPremisesInstance": { "input": { "type": "structure", "required": [ "instanceName" ], "members": { "instanceName": {} } }, "output": { "type": "structure", "members": { "instanceInfo": { "shape": "S2s" } } } }, "ListApplicationRevisions": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {}, "sortBy": {}, "sortOrder": {}, "s3Bucket": {}, "s3KeyPrefix": {}, "deployed": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "revisions": { "shape": "Sa" }, "nextToken": {} } } }, "ListApplications": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "applications": { "shape": "Sw" }, "nextToken": {} } } }, "ListDeploymentConfigs": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "deploymentConfigsList": { "type": "list", "member": {} }, "nextToken": {} } } }, "ListDeploymentGroups": { "input": { "type": "structure", "required": [ "applicationName" ], "members": { "applicationName": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "applicationName": {}, "deploymentGroups": { "shape": "Ss" }, "nextToken": {} } } }, "ListDeploymentInstances": { "input": { "type": "structure", "required": [ "deploymentId" ], "members": { "deploymentId": {}, "nextToken": {}, "instanceStatusFilter": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "instancesList": { "shape": "S1y" }, "nextToken": {} } } }, "ListDeployments": { "input": { "type": "structure", "members": { "applicationName": {}, "deploymentGroupName": {}, "includeOnlyStatuses": { "type": "list", "member": {} }, "createTimeRange": { "type": "structure", "members": { "start": { "type": "timestamp" }, "end": { "type": "timestamp" } } }, "nextToken": {} } }, "output": { "type": "structure", "members": { "deployments": { "shape": "S2e" }, "nextToken": {} } } }, "ListOnPremisesInstances": { "input": { "type": "structure", "members": { "registrationStatus": {}, "tagFilters": { "shape": "S1b" }, "nextToken": {} } }, "output": { "type": "structure", "members": { "instanceNames": { "shape": "S6" }, "nextToken": {} } } }, "RegisterApplicationRevision": { "input": { "type": "structure", "required": [ "applicationName", "revision" ], "members": { "applicationName": {}, "description": {}, "revision": { "shape": "Sb" } } } }, "RegisterOnPremisesInstance": { "input": { "type": "structure", "required": [ "instanceName", "iamUserArn" ], "members": { "instanceName": {}, "iamUserArn": {} } } }, "RemoveTagsFromOnPremisesInstances": { "input": { "type": "structure", "required": [ "tags", "instanceNames" ], "members": { "tags": { "shape": "S2" }, "instanceNames": { "shape": "S6" } } } }, "StopDeployment": { "input": { "type": "structure", "required": [ "deploymentId" ], "members": { "deploymentId": {}, "autoRollbackEnabled": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "status": {}, "statusMessage": {} } } }, "UpdateApplication": { "input": { "type": "structure", "members": { "applicationName": {}, "newApplicationName": {} } } }, "UpdateDeploymentGroup": { "input": { "type": "structure", "required": [ "applicationName", "currentDeploymentGroupName" ], "members": { "applicationName": {}, "currentDeploymentGroupName": {}, "newDeploymentGroupName": {}, "deploymentConfigName": {}, "ec2TagFilters": { "shape": "S18" }, "onPremisesInstanceTagFilters": { "shape": "S1b" }, "autoScalingGroups": { "shape": "S36" }, "serviceRoleArn": {}, "triggerConfigurations": { "shape": "S1j" }, "alarmConfiguration": { "shape": "S1p" }, "autoRollbackConfiguration": { "shape": "S1t" } } }, "output": { "type": "structure", "members": { "hooksNotCleanedUp": { "shape": "S1e" } } } } }, "shapes": { "S2": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S6": { "type": "list", "member": {} }, "Sa": { "type": "list", "member": { "shape": "Sb" } }, "Sb": { "type": "structure", "members": { "revisionType": {}, "s3Location": { "type": "structure", "members": { "bucket": {}, "key": {}, "bundleType": {}, "version": {}, "eTag": {} } }, "gitHubLocation": { "type": "structure", "members": { "repository": {}, "commitId": {} } } } }, "Sq": { "type": "structure", "members": { "description": {}, "deploymentGroups": { "shape": "Ss" }, "firstUsedTime": { "type": "timestamp" }, "lastUsedTime": { "type": "timestamp" }, "registerTime": { "type": "timestamp" } } }, "Ss": { "type": "list", "member": {} }, "Sw": { "type": "list", "member": {} }, "Sz": { "type": "structure", "members": { "applicationId": {}, "applicationName": {}, "createTime": { "type": "timestamp" }, "linkedToGitHub": { "type": "boolean" } } }, "S15": { "type": "structure", "members": { "applicationName": {}, "deploymentGroupId": {}, "deploymentGroupName": {}, "deploymentConfigName": {}, "ec2TagFilters": { "shape": "S18" }, "onPremisesInstanceTagFilters": { "shape": "S1b" }, "autoScalingGroups": { "shape": "S1e" }, "serviceRoleArn": {}, "targetRevision": { "shape": "Sb" }, "triggerConfigurations": { "shape": "S1j" }, "alarmConfiguration": { "shape": "S1p" }, "autoRollbackConfiguration": { "shape": "S1t" } } }, "S18": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {}, "Type": {} } } }, "S1b": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {}, "Type": {} } } }, "S1e": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "hook": {} } } }, "S1j": { "type": "list", "member": { "type": "structure", "members": { "triggerName": {}, "triggerTargetArn": {}, "triggerEvents": { "type": "list", "member": {} } } } }, "S1p": { "type": "structure", "members": { "enabled": { "type": "boolean" }, "ignorePollAlarmFailure": { "type": "boolean" }, "alarms": { "type": "list", "member": { "type": "structure", "members": { "name": {} } } } } }, "S1t": { "type": "structure", "members": { "enabled": { "type": "boolean" }, "events": { "type": "list", "member": {} } } }, "S1y": { "type": "list", "member": {} }, "S22": { "type": "structure", "members": { "deploymentId": {}, "instanceId": {}, "status": {}, "lastUpdatedAt": { "type": "timestamp" }, "lifecycleEvents": { "type": "list", "member": { "type": "structure", "members": { "lifecycleEventName": {}, "diagnostics": { "type": "structure", "members": { "errorCode": {}, "scriptName": {}, "message": {}, "logTail": {} } }, "startTime": { "type": "timestamp" }, "endTime": { "type": "timestamp" }, "status": {} } } } } }, "S2e": { "type": "list", "member": {} }, "S2h": { "type": "structure", "members": { "applicationName": {}, "deploymentGroupName": {}, "deploymentConfigName": {}, "deploymentId": {}, "revision": { "shape": "Sb" }, "status": {}, "errorInformation": { "type": "structure", "members": { "code": {}, "message": {} } }, "createTime": { "type": "timestamp" }, "startTime": { "type": "timestamp" }, "completeTime": { "type": "timestamp" }, "deploymentOverview": { "type": "structure", "members": { "Pending": { "type": "long" }, "InProgress": { "type": "long" }, "Succeeded": { "type": "long" }, "Failed": { "type": "long" }, "Skipped": { "type": "long" } } }, "description": {}, "creator": {}, "ignoreApplicationStopFailures": { "type": "boolean" }, "autoRollbackConfiguration": { "shape": "S1t" }, "updateOutdatedInstancesOnly": { "type": "boolean" }, "rollbackInfo": { "type": "structure", "members": { "rollbackDeploymentId": {}, "rollbackTriggeringDeploymentId": {}, "rollbackMessage": {} } } } }, "S2s": { "type": "structure", "members": { "instanceName": {}, "iamUserArn": {}, "instanceArn": {}, "registerTime": { "type": "timestamp" }, "deregisterTime": { "type": "timestamp" }, "tags": { "shape": "S2" } } }, "S30": { "type": "structure", "members": { "value": { "type": "integer" }, "type": {} } }, "S36": { "type": "list", "member": {} } } } },{}],29:[function(require,module,exports){ module.exports={ "pagination": { "ListApplicationRevisions": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "revisions" }, "ListApplications": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "applications" }, "ListDeploymentConfigs": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "deploymentConfigsList" }, "ListDeploymentGroups": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "deploymentGroups" }, "ListDeploymentInstances": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "instancesList" }, "ListDeployments": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "deployments" } } } },{}],30:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "DeploymentSuccessful": { "delay": 15, "operation": "GetDeployment", "maxAttempts": 120, "acceptors": [ { "expected": "Succeeded", "matcher": "path", "state": "success", "argument": "deploymentInfo.status" }, { "expected": "Failed", "matcher": "path", "state": "failure", "argument": "deploymentInfo.status" }, { "expected": "Stopped", "matcher": "path", "state": "failure", "argument": "deploymentInfo.status" } ] } } } },{}],31:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-07-09", "endpointPrefix": "codepipeline", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "CodePipeline", "serviceFullName": "AWS CodePipeline", "signatureVersion": "v4", "targetPrefix": "CodePipeline_20150709" }, "operations": { "AcknowledgeJob": { "input": { "type": "structure", "required": [ "jobId", "nonce" ], "members": { "jobId": {}, "nonce": {} } }, "output": { "type": "structure", "members": { "status": {} } } }, "AcknowledgeThirdPartyJob": { "input": { "type": "structure", "required": [ "jobId", "nonce", "clientToken" ], "members": { "jobId": {}, "nonce": {}, "clientToken": {} } }, "output": { "type": "structure", "members": { "status": {} } } }, "CreateCustomActionType": { "input": { "type": "structure", "required": [ "category", "provider", "version", "inputArtifactDetails", "outputArtifactDetails" ], "members": { "category": {}, "provider": {}, "version": {}, "settings": { "shape": "Se" }, "configurationProperties": { "shape": "Sh" }, "inputArtifactDetails": { "shape": "Sn" }, "outputArtifactDetails": { "shape": "Sn" } } }, "output": { "type": "structure", "required": [ "actionType" ], "members": { "actionType": { "shape": "Sr" } } } }, "CreatePipeline": { "input": { "type": "structure", "required": [ "pipeline" ], "members": { "pipeline": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "pipeline": { "shape": "Sv" } } } }, "DeleteCustomActionType": { "input": { "type": "structure", "required": [ "category", "provider", "version" ], "members": { "category": {}, "provider": {}, "version": {} } } }, "DeletePipeline": { "input": { "type": "structure", "required": [ "name" ], "members": { "name": {} } } }, "DisableStageTransition": { "input": { "type": "structure", "required": [ "pipelineName", "stageName", "transitionType", "reason" ], "members": { "pipelineName": {}, "stageName": {}, "transitionType": {}, "reason": {} } } }, "EnableStageTransition": { "input": { "type": "structure", "required": [ "pipelineName", "stageName", "transitionType" ], "members": { "pipelineName": {}, "stageName": {}, "transitionType": {} } } }, "GetJobDetails": { "input": { "type": "structure", "required": [ "jobId" ], "members": { "jobId": {} } }, "output": { "type": "structure", "members": { "jobDetails": { "type": "structure", "members": { "id": {}, "data": { "shape": "S1x" }, "accountId": {} } } } } }, "GetPipeline": { "input": { "type": "structure", "required": [ "name" ], "members": { "name": {}, "version": { "type": "integer" } } }, "output": { "type": "structure", "members": { "pipeline": { "shape": "Sv" } } } }, "GetPipelineExecution": { "input": { "type": "structure", "required": [ "pipelineName", "pipelineExecutionId" ], "members": { "pipelineName": {}, "pipelineExecutionId": {} } }, "output": { "type": "structure", "members": { "pipelineExecution": { "type": "structure", "members": { "pipelineName": {}, "pipelineVersion": { "type": "integer" }, "pipelineExecutionId": {}, "status": {}, "artifactRevisions": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "revisionId": {}, "revisionChangeIdentifier": {}, "revisionSummary": {}, "created": { "type": "timestamp" }, "revisionUrl": {} } } } } } } } }, "GetPipelineState": { "input": { "type": "structure", "required": [ "name" ], "members": { "name": {} } }, "output": { "type": "structure", "members": { "pipelineName": {}, "pipelineVersion": { "type": "integer" }, "stageStates": { "type": "list", "member": { "type": "structure", "members": { "stageName": {}, "inboundTransitionState": { "type": "structure", "members": { "enabled": { "type": "boolean" }, "lastChangedBy": {}, "lastChangedAt": { "type": "timestamp" }, "disabledReason": {} } }, "actionStates": { "type": "list", "member": { "type": "structure", "members": { "actionName": {}, "currentRevision": { "shape": "S32" }, "latestExecution": { "type": "structure", "members": { "status": {}, "summary": {}, "lastStatusChange": { "type": "timestamp" }, "token": {}, "lastUpdatedBy": {}, "externalExecutionId": {}, "externalExecutionUrl": {}, "percentComplete": { "type": "integer" }, "errorDetails": { "type": "structure", "members": { "code": {}, "message": {} } } } }, "entityUrl": {}, "revisionUrl": {} } } }, "latestExecution": { "type": "structure", "required": [ "pipelineExecutionId", "status" ], "members": { "pipelineExecutionId": {}, "status": {} } } } } }, "created": { "type": "timestamp" }, "updated": { "type": "timestamp" } } } }, "GetThirdPartyJobDetails": { "input": { "type": "structure", "required": [ "jobId", "clientToken" ], "members": { "jobId": {}, "clientToken": {} } }, "output": { "type": "structure", "members": { "jobDetails": { "type": "structure", "members": { "id": {}, "data": { "type": "structure", "members": { "actionTypeId": { "shape": "Ss" }, "actionConfiguration": { "shape": "S1y" }, "pipelineContext": { "shape": "S1z" }, "inputArtifacts": { "shape": "S22" }, "outputArtifacts": { "shape": "S22" }, "artifactCredentials": { "shape": "S2a" }, "continuationToken": {}, "encryptionKey": { "shape": "S11" } } }, "nonce": {} } } } } }, "ListActionTypes": { "input": { "type": "structure", "members": { "actionOwnerFilter": {}, "nextToken": {} } }, "output": { "type": "structure", "required": [ "actionTypes" ], "members": { "actionTypes": { "type": "list", "member": { "shape": "Sr" } }, "nextToken": {} } } }, "ListPipelines": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "pipelines": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "version": { "type": "integer" }, "created": { "type": "timestamp" }, "updated": { "type": "timestamp" } } } }, "nextToken": {} } } }, "PollForJobs": { "input": { "type": "structure", "required": [ "actionTypeId" ], "members": { "actionTypeId": { "shape": "Ss" }, "maxBatchSize": { "type": "integer" }, "queryParam": { "type": "map", "key": {}, "value": {} } } }, "output": { "type": "structure", "members": { "jobs": { "type": "list", "member": { "type": "structure", "members": { "id": {}, "data": { "shape": "S1x" }, "nonce": {}, "accountId": {} } } } } } }, "PollForThirdPartyJobs": { "input": { "type": "structure", "required": [ "actionTypeId" ], "members": { "actionTypeId": { "shape": "Ss" }, "maxBatchSize": { "type": "integer" } } }, "output": { "type": "structure", "members": { "jobs": { "type": "list", "member": { "type": "structure", "members": { "clientId": {}, "jobId": {} } } } } } }, "PutActionRevision": { "input": { "type": "structure", "required": [ "pipelineName", "stageName", "actionName", "actionRevision" ], "members": { "pipelineName": {}, "stageName": {}, "actionName": {}, "actionRevision": { "shape": "S32" } } }, "output": { "type": "structure", "members": { "newRevision": { "type": "boolean" }, "pipelineExecutionId": {} } } }, "PutApprovalResult": { "input": { "type": "structure", "required": [ "pipelineName", "stageName", "actionName", "result", "token" ], "members": { "pipelineName": {}, "stageName": {}, "actionName": {}, "result": { "type": "structure", "required": [ "summary", "status" ], "members": { "summary": {}, "status": {} } }, "token": {} } }, "output": { "type": "structure", "members": { "approvedAt": { "type": "timestamp" } } } }, "PutJobFailureResult": { "input": { "type": "structure", "required": [ "jobId", "failureDetails" ], "members": { "jobId": {}, "failureDetails": { "shape": "S4c" } } } }, "PutJobSuccessResult": { "input": { "type": "structure", "required": [ "jobId" ], "members": { "jobId": {}, "currentRevision": { "shape": "S4f" }, "continuationToken": {}, "executionDetails": { "shape": "S4h" } } } }, "PutThirdPartyJobFailureResult": { "input": { "type": "structure", "required": [ "jobId", "clientToken", "failureDetails" ], "members": { "jobId": {}, "clientToken": {}, "failureDetails": { "shape": "S4c" } } } }, "PutThirdPartyJobSuccessResult": { "input": { "type": "structure", "required": [ "jobId", "clientToken" ], "members": { "jobId": {}, "clientToken": {}, "currentRevision": { "shape": "S4f" }, "continuationToken": {}, "executionDetails": { "shape": "S4h" } } } }, "RetryStageExecution": { "input": { "type": "structure", "required": [ "pipelineName", "stageName", "pipelineExecutionId", "retryMode" ], "members": { "pipelineName": {}, "stageName": {}, "pipelineExecutionId": {}, "retryMode": {} } }, "output": { "type": "structure", "members": { "pipelineExecutionId": {} } } }, "StartPipelineExecution": { "input": { "type": "structure", "required": [ "name" ], "members": { "name": {} } }, "output": { "type": "structure", "members": { "pipelineExecutionId": {} } } }, "UpdatePipeline": { "input": { "type": "structure", "required": [ "pipeline" ], "members": { "pipeline": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "pipeline": { "shape": "Sv" } } } } }, "shapes": { "Se": { "type": "structure", "members": { "thirdPartyConfigurationUrl": {}, "entityUrlTemplate": {}, "executionUrlTemplate": {}, "revisionUrlTemplate": {} } }, "Sh": { "type": "list", "member": { "type": "structure", "required": [ "name", "required", "key", "secret" ], "members": { "name": {}, "required": { "type": "boolean" }, "key": { "type": "boolean" }, "secret": { "type": "boolean" }, "queryable": { "type": "boolean" }, "description": {}, "type": {} } } }, "Sn": { "type": "structure", "required": [ "minimumCount", "maximumCount" ], "members": { "minimumCount": { "type": "integer" }, "maximumCount": { "type": "integer" } } }, "Sr": { "type": "structure", "required": [ "id", "inputArtifactDetails", "outputArtifactDetails" ], "members": { "id": { "shape": "Ss" }, "settings": { "shape": "Se" }, "actionConfigurationProperties": { "shape": "Sh" }, "inputArtifactDetails": { "shape": "Sn" }, "outputArtifactDetails": { "shape": "Sn" } } }, "Ss": { "type": "structure", "required": [ "category", "owner", "provider", "version" ], "members": { "category": {}, "owner": {}, "provider": {}, "version": {} } }, "Sv": { "type": "structure", "required": [ "name", "roleArn", "artifactStore", "stages" ], "members": { "name": {}, "roleArn": {}, "artifactStore": { "type": "structure", "required": [ "type", "location" ], "members": { "type": {}, "location": {}, "encryptionKey": { "shape": "S11" } } }, "stages": { "type": "list", "member": { "type": "structure", "required": [ "name", "actions" ], "members": { "name": {}, "blockers": { "type": "list", "member": { "type": "structure", "required": [ "name", "type" ], "members": { "name": {}, "type": {} } } }, "actions": { "type": "list", "member": { "type": "structure", "required": [ "name", "actionTypeId" ], "members": { "name": {}, "actionTypeId": { "shape": "Ss" }, "runOrder": { "type": "integer" }, "configuration": { "shape": "S1f" }, "outputArtifacts": { "type": "list", "member": { "type": "structure", "required": [ "name" ], "members": { "name": {} } } }, "inputArtifacts": { "type": "list", "member": { "type": "structure", "required": [ "name" ], "members": { "name": {} } } }, "roleArn": {} } } } } } }, "version": { "type": "integer" } } }, "S11": { "type": "structure", "required": [ "id", "type" ], "members": { "id": {}, "type": {} } }, "S1f": { "type": "map", "key": {}, "value": {} }, "S1x": { "type": "structure", "members": { "actionTypeId": { "shape": "Ss" }, "actionConfiguration": { "shape": "S1y" }, "pipelineContext": { "shape": "S1z" }, "inputArtifacts": { "shape": "S22" }, "outputArtifacts": { "shape": "S22" }, "artifactCredentials": { "shape": "S2a" }, "continuationToken": {}, "encryptionKey": { "shape": "S11" } } }, "S1y": { "type": "structure", "members": { "configuration": { "shape": "S1f" } } }, "S1z": { "type": "structure", "members": { "pipelineName": {}, "stage": { "type": "structure", "members": { "name": {} } }, "action": { "type": "structure", "members": { "name": {} } } } }, "S22": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "revision": {}, "location": { "type": "structure", "members": { "type": {}, "s3Location": { "type": "structure", "required": [ "bucketName", "objectKey" ], "members": { "bucketName": {}, "objectKey": {} } } } } } } }, "S2a": { "type": "structure", "required": [ "accessKeyId", "secretAccessKey", "sessionToken" ], "members": { "accessKeyId": {}, "secretAccessKey": {}, "sessionToken": {} }, "sensitive": true }, "S32": { "type": "structure", "required": [ "revisionId", "revisionChangeId", "created" ], "members": { "revisionId": {}, "revisionChangeId": {}, "created": { "type": "timestamp" } } }, "S4c": { "type": "structure", "required": [ "type", "message" ], "members": { "type": {}, "message": {}, "externalExecutionId": {} } }, "S4f": { "type": "structure", "required": [ "revision", "changeIdentifier" ], "members": { "revision": {}, "changeIdentifier": {}, "created": { "type": "timestamp" }, "revisionSummary": {} } }, "S4h": { "type": "structure", "members": { "summary": {}, "externalExecutionId": {}, "percentComplete": { "type": "integer" } } } } } },{}],32:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-06-30", "endpointPrefix": "cognito-identity", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon Cognito Identity", "signatureVersion": "v4", "targetPrefix": "AWSCognitoIdentityService" }, "operations": { "CreateIdentityPool": { "input": { "type": "structure", "required": [ "IdentityPoolName", "AllowUnauthenticatedIdentities" ], "members": { "IdentityPoolName": {}, "AllowUnauthenticatedIdentities": { "type": "boolean" }, "SupportedLoginProviders": { "shape": "S4" }, "DeveloperProviderName": {}, "OpenIdConnectProviderARNs": { "shape": "S8" }, "CognitoIdentityProviders": { "shape": "Sa" }, "SamlProviderARNs": { "shape": "Se" } } }, "output": { "shape": "Sf" } }, "DeleteIdentities": { "input": { "type": "structure", "required": [ "IdentityIdsToDelete" ], "members": { "IdentityIdsToDelete": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "UnprocessedIdentityIds": { "type": "list", "member": { "type": "structure", "members": { "IdentityId": {}, "ErrorCode": {} } } } } } }, "DeleteIdentityPool": { "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": {} } } }, "DescribeIdentity": { "input": { "type": "structure", "required": [ "IdentityId" ], "members": { "IdentityId": {} } }, "output": { "shape": "Sq" } }, "DescribeIdentityPool": { "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": {} } }, "output": { "shape": "Sf" } }, "GetCredentialsForIdentity": { "input": { "type": "structure", "required": [ "IdentityId" ], "members": { "IdentityId": {}, "Logins": { "shape": "Sv" }, "CustomRoleArn": {} } }, "output": { "type": "structure", "members": { "IdentityId": {}, "Credentials": { "type": "structure", "members": { "AccessKeyId": {}, "SecretKey": {}, "SessionToken": {}, "Expiration": { "type": "timestamp" } } } } } }, "GetId": { "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "AccountId": {}, "IdentityPoolId": {}, "Logins": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "IdentityId": {} } } }, "GetIdentityPoolRoles": { "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": {} } }, "output": { "type": "structure", "members": { "IdentityPoolId": {}, "Roles": { "shape": "S17" } } } }, "GetOpenIdToken": { "input": { "type": "structure", "required": [ "IdentityId" ], "members": { "IdentityId": {}, "Logins": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "IdentityId": {}, "Token": {} } } }, "GetOpenIdTokenForDeveloperIdentity": { "input": { "type": "structure", "required": [ "IdentityPoolId", "Logins" ], "members": { "IdentityPoolId": {}, "IdentityId": {}, "Logins": { "shape": "Sv" }, "TokenDuration": { "type": "long" } } }, "output": { "type": "structure", "members": { "IdentityId": {}, "Token": {} } } }, "ListIdentities": { "input": { "type": "structure", "required": [ "IdentityPoolId", "MaxResults" ], "members": { "IdentityPoolId": {}, "MaxResults": { "type": "integer" }, "NextToken": {}, "HideDisabled": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "IdentityPoolId": {}, "Identities": { "type": "list", "member": { "shape": "Sq" } }, "NextToken": {} } } }, "ListIdentityPools": { "input": { "type": "structure", "required": [ "MaxResults" ], "members": { "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "IdentityPools": { "type": "list", "member": { "type": "structure", "members": { "IdentityPoolId": {}, "IdentityPoolName": {} } } }, "NextToken": {} } } }, "LookupDeveloperIdentity": { "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": {}, "IdentityId": {}, "DeveloperUserIdentifier": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "IdentityId": {}, "DeveloperUserIdentifierList": { "type": "list", "member": {} }, "NextToken": {} } } }, "MergeDeveloperIdentities": { "input": { "type": "structure", "required": [ "SourceUserIdentifier", "DestinationUserIdentifier", "DeveloperProviderName", "IdentityPoolId" ], "members": { "SourceUserIdentifier": {}, "DestinationUserIdentifier": {}, "DeveloperProviderName": {}, "IdentityPoolId": {} } }, "output": { "type": "structure", "members": { "IdentityId": {} } } }, "SetIdentityPoolRoles": { "input": { "type": "structure", "required": [ "IdentityPoolId", "Roles" ], "members": { "IdentityPoolId": {}, "Roles": { "shape": "S17" } } } }, "UnlinkDeveloperIdentity": { "input": { "type": "structure", "required": [ "IdentityId", "IdentityPoolId", "DeveloperProviderName", "DeveloperUserIdentifier" ], "members": { "IdentityId": {}, "IdentityPoolId": {}, "DeveloperProviderName": {}, "DeveloperUserIdentifier": {} } } }, "UnlinkIdentity": { "input": { "type": "structure", "required": [ "IdentityId", "Logins", "LoginsToRemove" ], "members": { "IdentityId": {}, "Logins": { "shape": "Sv" }, "LoginsToRemove": { "shape": "Sr" } } } }, "UpdateIdentityPool": { "input": { "shape": "Sf" }, "output": { "shape": "Sf" } } }, "shapes": { "S4": { "type": "map", "key": {}, "value": {} }, "S8": { "type": "list", "member": {} }, "Sa": { "type": "list", "member": { "type": "structure", "members": { "ProviderName": {}, "ClientId": {} } } }, "Se": { "type": "list", "member": {} }, "Sf": { "type": "structure", "required": [ "IdentityPoolId", "IdentityPoolName", "AllowUnauthenticatedIdentities" ], "members": { "IdentityPoolId": {}, "IdentityPoolName": {}, "AllowUnauthenticatedIdentities": { "type": "boolean" }, "SupportedLoginProviders": { "shape": "S4" }, "DeveloperProviderName": {}, "OpenIdConnectProviderARNs": { "shape": "S8" }, "CognitoIdentityProviders": { "shape": "Sa" }, "SamlProviderARNs": { "shape": "Se" } } }, "Sq": { "type": "structure", "members": { "IdentityId": {}, "Logins": { "shape": "Sr" }, "CreationDate": { "type": "timestamp" }, "LastModifiedDate": { "type": "timestamp" } } }, "Sr": { "type": "list", "member": {} }, "Sv": { "type": "map", "key": {}, "value": {} }, "S17": { "type": "map", "key": {}, "value": {} } } } },{}],33:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2016-04-18", "endpointPrefix": "cognito-idp", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon Cognito Identity Provider", "signatureVersion": "v4", "targetPrefix": "AWSCognitoIdentityProviderService" }, "operations": { "AddCustomAttributes": { "input": { "type": "structure", "required": [ "UserPoolId", "CustomAttributes" ], "members": { "UserPoolId": {}, "CustomAttributes": { "type": "list", "member": { "shape": "S4" } } } }, "output": { "type": "structure", "members": {} } }, "AdminConfirmSignUp": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": {} } }, "AdminCreateUser": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "UserAttributes": { "shape": "Sg" }, "ValidationData": { "shape": "Sg" }, "TemporaryPassword": { "shape": "Sk" }, "ForceAliasCreation": { "type": "boolean" }, "MessageAction": {}, "DesiredDeliveryMediums": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "User": { "shape": "Sq" } } } }, "AdminDeleteUser": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } } }, "AdminDeleteUserAttributes": { "input": { "type": "structure", "required": [ "UserPoolId", "Username", "UserAttributeNames" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "UserAttributeNames": { "shape": "Sx" } } }, "output": { "type": "structure", "members": {} } }, "AdminDisableUser": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": {} } }, "AdminEnableUser": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": {} } }, "AdminForgetDevice": { "input": { "type": "structure", "required": [ "UserPoolId", "Username", "DeviceKey" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "DeviceKey": {} } } }, "AdminGetDevice": { "input": { "type": "structure", "required": [ "DeviceKey", "UserPoolId", "Username" ], "members": { "DeviceKey": {}, "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "required": [ "Device" ], "members": { "Device": { "shape": "S17" } } } }, "AdminGetUser": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "required": [ "Username" ], "members": { "Username": { "shape": "Sd" }, "UserAttributes": { "shape": "Sg" }, "UserCreateDate": { "type": "timestamp" }, "UserLastModifiedDate": { "type": "timestamp" }, "Enabled": { "type": "boolean" }, "UserStatus": {}, "MFAOptions": { "shape": "St" } } } }, "AdminInitiateAuth": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientId", "AuthFlow" ], "members": { "UserPoolId": {}, "ClientId": { "shape": "S1b" }, "AuthFlow": {}, "AuthParameters": { "shape": "S1d" }, "ClientMetadata": { "shape": "S1e" } } }, "output": { "type": "structure", "members": { "ChallengeName": {}, "Session": {}, "ChallengeParameters": { "shape": "S1i" }, "AuthenticationResult": { "shape": "S1j" } } } }, "AdminListDevices": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "Limit": { "type": "integer" }, "PaginationToken": {} } }, "output": { "type": "structure", "members": { "Devices": { "shape": "S1r" }, "PaginationToken": {} } } }, "AdminResetUserPassword": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": {} } }, "AdminRespondToAuthChallenge": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientId", "ChallengeName" ], "members": { "UserPoolId": {}, "ClientId": { "shape": "S1b" }, "ChallengeName": {}, "ChallengeResponses": { "shape": "S1v" }, "Session": {} } }, "output": { "type": "structure", "members": { "ChallengeName": {}, "Session": {}, "ChallengeParameters": { "shape": "S1i" }, "AuthenticationResult": { "shape": "S1j" } } } }, "AdminSetUserSettings": { "input": { "type": "structure", "required": [ "UserPoolId", "Username", "MFAOptions" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "MFAOptions": { "shape": "St" } } }, "output": { "type": "structure", "members": {} } }, "AdminUpdateDeviceStatus": { "input": { "type": "structure", "required": [ "UserPoolId", "Username", "DeviceKey" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "DeviceKey": {}, "DeviceRememberedStatus": {} } }, "output": { "type": "structure", "members": {} } }, "AdminUpdateUserAttributes": { "input": { "type": "structure", "required": [ "UserPoolId", "Username", "UserAttributes" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" }, "UserAttributes": { "shape": "Sg" } } }, "output": { "type": "structure", "members": {} } }, "AdminUserGlobalSignOut": { "input": { "type": "structure", "required": [ "UserPoolId", "Username" ], "members": { "UserPoolId": {}, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": {} } }, "ChangePassword": { "input": { "type": "structure", "required": [ "PreviousPassword", "ProposedPassword" ], "members": { "PreviousPassword": { "shape": "Sk" }, "ProposedPassword": { "shape": "Sk" }, "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "members": {} }, "authtype": "none" }, "ConfirmDevice": { "input": { "type": "structure", "required": [ "AccessToken", "DeviceKey" ], "members": { "AccessToken": { "shape": "S1k" }, "DeviceKey": {}, "DeviceSecretVerifierConfig": { "type": "structure", "members": { "PasswordVerifier": {}, "Salt": {} } }, "DeviceName": {} } }, "output": { "type": "structure", "members": { "UserConfirmationNecessary": { "type": "boolean" } } } }, "ConfirmForgotPassword": { "input": { "type": "structure", "required": [ "ClientId", "Username", "ConfirmationCode", "Password" ], "members": { "ClientId": { "shape": "S1b" }, "SecretHash": { "shape": "S2d" }, "Username": { "shape": "Sd" }, "ConfirmationCode": {}, "Password": { "shape": "Sk" } } }, "output": { "type": "structure", "members": {} }, "authtype": "none" }, "ConfirmSignUp": { "input": { "type": "structure", "required": [ "ClientId", "Username", "ConfirmationCode" ], "members": { "ClientId": { "shape": "S1b" }, "SecretHash": { "shape": "S2d" }, "Username": { "shape": "Sd" }, "ConfirmationCode": {}, "ForceAliasCreation": { "type": "boolean" } } }, "output": { "type": "structure", "members": {} }, "authtype": "none" }, "CreateUserImportJob": { "input": { "type": "structure", "required": [ "JobName", "UserPoolId", "CloudWatchLogsRoleArn" ], "members": { "JobName": {}, "UserPoolId": {}, "CloudWatchLogsRoleArn": {} } }, "output": { "type": "structure", "members": { "UserImportJob": { "shape": "S2m" } } } }, "CreateUserPool": { "input": { "type": "structure", "required": [ "PoolName" ], "members": { "PoolName": {}, "Policies": { "shape": "S2u" }, "LambdaConfig": { "shape": "S2x" }, "AutoVerifiedAttributes": { "shape": "S2y" }, "AliasAttributes": { "shape": "S30" }, "SmsVerificationMessage": {}, "EmailVerificationMessage": {}, "EmailVerificationSubject": {}, "SmsAuthenticationMessage": {}, "MfaConfiguration": {}, "DeviceConfiguration": { "shape": "S36" }, "EmailConfiguration": { "shape": "S37" }, "SmsConfiguration": { "shape": "S39" }, "AdminCreateUserConfig": { "shape": "S3a" } } }, "output": { "type": "structure", "members": { "UserPool": { "shape": "S3e" } } } }, "CreateUserPoolClient": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientName" ], "members": { "UserPoolId": {}, "ClientName": {}, "GenerateSecret": { "type": "boolean" }, "RefreshTokenValidity": { "type": "integer" }, "ReadAttributes": { "shape": "S3l" }, "WriteAttributes": { "shape": "S3l" }, "ExplicitAuthFlows": { "shape": "S3n" } } }, "output": { "type": "structure", "members": { "UserPoolClient": { "shape": "S3q" } } } }, "DeleteUser": { "input": { "type": "structure", "members": { "AccessToken": { "shape": "S1k" } } }, "authtype": "none" }, "DeleteUserAttributes": { "input": { "type": "structure", "required": [ "UserAttributeNames" ], "members": { "UserAttributeNames": { "shape": "Sx" }, "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "members": {} }, "authtype": "none" }, "DeleteUserPool": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {} } } }, "DeleteUserPoolClient": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientId" ], "members": { "UserPoolId": {}, "ClientId": { "shape": "S1b" } } } }, "DescribeUserImportJob": { "input": { "type": "structure", "required": [ "UserPoolId", "JobId" ], "members": { "UserPoolId": {}, "JobId": {} } }, "output": { "type": "structure", "members": { "UserImportJob": { "shape": "S2m" } } } }, "DescribeUserPool": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {} } }, "output": { "type": "structure", "members": { "UserPool": { "shape": "S3e" } } } }, "DescribeUserPoolClient": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientId" ], "members": { "UserPoolId": {}, "ClientId": { "shape": "S1b" } } }, "output": { "type": "structure", "members": { "UserPoolClient": { "shape": "S3q" } } } }, "ForgetDevice": { "input": { "type": "structure", "required": [ "DeviceKey" ], "members": { "AccessToken": { "shape": "S1k" }, "DeviceKey": {} } } }, "ForgotPassword": { "input": { "type": "structure", "required": [ "ClientId", "Username" ], "members": { "ClientId": { "shape": "S1b" }, "SecretHash": { "shape": "S2d" }, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": { "CodeDeliveryDetails": { "shape": "S46" } } }, "authtype": "none" }, "GetCSVHeader": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {} } }, "output": { "type": "structure", "members": { "UserPoolId": {}, "CSVHeader": { "type": "list", "member": {} } } } }, "GetDevice": { "input": { "type": "structure", "required": [ "DeviceKey" ], "members": { "DeviceKey": {}, "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "required": [ "Device" ], "members": { "Device": { "shape": "S17" } } } }, "GetUser": { "input": { "type": "structure", "members": { "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "required": [ "Username", "UserAttributes" ], "members": { "Username": { "shape": "Sd" }, "UserAttributes": { "shape": "Sg" }, "MFAOptions": { "shape": "St" } } }, "authtype": "none" }, "GetUserAttributeVerificationCode": { "input": { "type": "structure", "required": [ "AttributeName" ], "members": { "AccessToken": { "shape": "S1k" }, "AttributeName": {} } }, "output": { "type": "structure", "members": { "CodeDeliveryDetails": { "shape": "S46" } } }, "authtype": "none" }, "GlobalSignOut": { "input": { "type": "structure", "members": { "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "members": {} } }, "InitiateAuth": { "input": { "type": "structure", "required": [ "AuthFlow", "ClientId" ], "members": { "AuthFlow": {}, "AuthParameters": { "shape": "S1d" }, "ClientMetadata": { "shape": "S1e" }, "ClientId": { "shape": "S1b" } } }, "output": { "type": "structure", "members": { "ChallengeName": {}, "Session": {}, "ChallengeParameters": { "shape": "S1i" }, "AuthenticationResult": { "shape": "S1j" } } } }, "ListDevices": { "input": { "type": "structure", "required": [ "AccessToken" ], "members": { "AccessToken": { "shape": "S1k" }, "Limit": { "type": "integer" }, "PaginationToken": {} } }, "output": { "type": "structure", "members": { "Devices": { "shape": "S1r" }, "PaginationToken": {} } } }, "ListUserImportJobs": { "input": { "type": "structure", "required": [ "UserPoolId", "MaxResults" ], "members": { "UserPoolId": {}, "MaxResults": { "type": "integer" }, "PaginationToken": {} } }, "output": { "type": "structure", "members": { "UserImportJobs": { "type": "list", "member": { "shape": "S2m" } }, "PaginationToken": {} } } }, "ListUserPoolClients": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "UserPoolClients": { "type": "list", "member": { "type": "structure", "members": { "ClientId": { "shape": "S1b" }, "UserPoolId": {}, "ClientName": {} } } }, "NextToken": {} } } }, "ListUserPools": { "input": { "type": "structure", "required": [ "MaxResults" ], "members": { "NextToken": {}, "MaxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "UserPools": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Name": {}, "LambdaConfig": { "shape": "S2x" }, "Status": {}, "LastModifiedDate": { "type": "timestamp" }, "CreationDate": { "type": "timestamp" } } } }, "NextToken": {} } } }, "ListUsers": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {}, "AttributesToGet": { "type": "list", "member": {} }, "Limit": { "type": "integer" }, "PaginationToken": {}, "Filter": {} } }, "output": { "type": "structure", "members": { "Users": { "type": "list", "member": { "shape": "Sq" } }, "PaginationToken": {} } } }, "ResendConfirmationCode": { "input": { "type": "structure", "required": [ "ClientId", "Username" ], "members": { "ClientId": { "shape": "S1b" }, "SecretHash": { "shape": "S2d" }, "Username": { "shape": "Sd" } } }, "output": { "type": "structure", "members": { "CodeDeliveryDetails": { "shape": "S46" } } }, "authtype": "none" }, "RespondToAuthChallenge": { "input": { "type": "structure", "required": [ "ClientId", "ChallengeName" ], "members": { "ClientId": { "shape": "S1b" }, "ChallengeName": {}, "Session": {}, "ChallengeResponses": { "shape": "S1v" } } }, "output": { "type": "structure", "members": { "ChallengeName": {}, "Session": {}, "ChallengeParameters": { "shape": "S1i" }, "AuthenticationResult": { "shape": "S1j" } } } }, "SetUserSettings": { "input": { "type": "structure", "required": [ "AccessToken", "MFAOptions" ], "members": { "AccessToken": { "shape": "S1k" }, "MFAOptions": { "shape": "St" } } }, "output": { "type": "structure", "members": {} }, "authtype": "none" }, "SignUp": { "input": { "type": "structure", "required": [ "ClientId", "Username", "Password" ], "members": { "ClientId": { "shape": "S1b" }, "SecretHash": { "shape": "S2d" }, "Username": { "shape": "Sd" }, "Password": { "shape": "Sk" }, "UserAttributes": { "shape": "Sg" }, "ValidationData": { "shape": "Sg" } } }, "output": { "type": "structure", "members": { "UserConfirmed": { "type": "boolean" }, "CodeDeliveryDetails": { "shape": "S46" } } }, "authtype": "none" }, "StartUserImportJob": { "input": { "type": "structure", "required": [ "UserPoolId", "JobId" ], "members": { "UserPoolId": {}, "JobId": {} } }, "output": { "type": "structure", "members": { "UserImportJob": { "shape": "S2m" } } } }, "StopUserImportJob": { "input": { "type": "structure", "required": [ "UserPoolId", "JobId" ], "members": { "UserPoolId": {}, "JobId": {} } }, "output": { "type": "structure", "members": { "UserImportJob": { "shape": "S2m" } } } }, "UpdateDeviceStatus": { "input": { "type": "structure", "required": [ "AccessToken", "DeviceKey" ], "members": { "AccessToken": { "shape": "S1k" }, "DeviceKey": {}, "DeviceRememberedStatus": {} } }, "output": { "type": "structure", "members": {} } }, "UpdateUserAttributes": { "input": { "type": "structure", "required": [ "UserAttributes" ], "members": { "UserAttributes": { "shape": "Sg" }, "AccessToken": { "shape": "S1k" } } }, "output": { "type": "structure", "members": { "CodeDeliveryDetailsList": { "type": "list", "member": { "shape": "S46" } } } }, "authtype": "none" }, "UpdateUserPool": { "input": { "type": "structure", "required": [ "UserPoolId" ], "members": { "UserPoolId": {}, "Policies": { "shape": "S2u" }, "LambdaConfig": { "shape": "S2x" }, "AutoVerifiedAttributes": { "shape": "S2y" }, "SmsVerificationMessage": {}, "EmailVerificationMessage": {}, "EmailVerificationSubject": {}, "SmsAuthenticationMessage": {}, "MfaConfiguration": {}, "DeviceConfiguration": { "shape": "S36" }, "EmailConfiguration": { "shape": "S37" }, "SmsConfiguration": { "shape": "S39" }, "AdminCreateUserConfig": { "shape": "S3a" } } }, "output": { "type": "structure", "members": {} } }, "UpdateUserPoolClient": { "input": { "type": "structure", "required": [ "UserPoolId", "ClientId" ], "members": { "UserPoolId": {}, "ClientId": { "shape": "S1b" }, "ClientName": {}, "RefreshTokenValidity": { "type": "integer" }, "ReadAttributes": { "shape": "S3l" }, "WriteAttributes": { "shape": "S3l" }, "ExplicitAuthFlows": { "shape": "S3n" } } }, "output": { "type": "structure", "members": { "UserPoolClient": { "shape": "S3q" } } } }, "VerifyUserAttribute": { "input": { "type": "structure", "required": [ "AttributeName", "Code" ], "members": { "AccessToken": { "shape": "S1k" }, "AttributeName": {}, "Code": {} } }, "output": { "type": "structure", "members": {} }, "authtype": "none" } }, "shapes": { "S4": { "type": "structure", "members": { "Name": {}, "AttributeDataType": {}, "DeveloperOnlyAttribute": { "type": "boolean" }, "Mutable": { "type": "boolean" }, "Required": { "type": "boolean" }, "NumberAttributeConstraints": { "type": "structure", "members": { "MinValue": {}, "MaxValue": {} } }, "StringAttributeConstraints": { "type": "structure", "members": { "MinLength": {}, "MaxLength": {} } } } }, "Sd": { "type": "string", "sensitive": true }, "Sg": { "type": "list", "member": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "Value": { "type": "string", "sensitive": true } } } }, "Sk": { "type": "string", "sensitive": true }, "Sq": { "type": "structure", "members": { "Username": { "shape": "Sd" }, "Attributes": { "shape": "Sg" }, "UserCreateDate": { "type": "timestamp" }, "UserLastModifiedDate": { "type": "timestamp" }, "Enabled": { "type": "boolean" }, "UserStatus": {}, "MFAOptions": { "shape": "St" } } }, "St": { "type": "list", "member": { "type": "structure", "members": { "DeliveryMedium": {}, "AttributeName": {} } } }, "Sx": { "type": "list", "member": {} }, "S17": { "type": "structure", "members": { "DeviceKey": {}, "DeviceAttributes": { "shape": "Sg" }, "DeviceCreateDate": { "type": "timestamp" }, "DeviceLastModifiedDate": { "type": "timestamp" }, "DeviceLastAuthenticatedDate": { "type": "timestamp" } } }, "S1b": { "type": "string", "sensitive": true }, "S1d": { "type": "map", "key": {}, "value": {} }, "S1e": { "type": "map", "key": {}, "value": {} }, "S1i": { "type": "map", "key": {}, "value": {} }, "S1j": { "type": "structure", "members": { "AccessToken": { "shape": "S1k" }, "ExpiresIn": { "type": "integer" }, "TokenType": {}, "RefreshToken": { "shape": "S1k" }, "IdToken": { "shape": "S1k" }, "NewDeviceMetadata": { "type": "structure", "members": { "DeviceKey": {}, "DeviceGroupKey": {} } } } }, "S1k": { "type": "string", "sensitive": true }, "S1r": { "type": "list", "member": { "shape": "S17" } }, "S1v": { "type": "map", "key": {}, "value": {} }, "S2d": { "type": "string", "sensitive": true }, "S2m": { "type": "structure", "members": { "JobName": {}, "JobId": {}, "UserPoolId": {}, "PreSignedUrl": {}, "CreationDate": { "type": "timestamp" }, "StartDate": { "type": "timestamp" }, "CompletionDate": { "type": "timestamp" }, "Status": {}, "CloudWatchLogsRoleArn": {}, "ImportedUsers": { "type": "long" }, "SkippedUsers": { "type": "long" }, "FailedUsers": { "type": "long" }, "CompletionMessage": {} } }, "S2u": { "type": "structure", "members": { "PasswordPolicy": { "type": "structure", "members": { "MinimumLength": { "type": "integer" }, "RequireUppercase": { "type": "boolean" }, "RequireLowercase": { "type": "boolean" }, "RequireNumbers": { "type": "boolean" }, "RequireSymbols": { "type": "boolean" } } } } }, "S2x": { "type": "structure", "members": { "PreSignUp": {}, "CustomMessage": {}, "PostConfirmation": {}, "PreAuthentication": {}, "PostAuthentication": {}, "DefineAuthChallenge": {}, "CreateAuthChallenge": {}, "VerifyAuthChallengeResponse": {} } }, "S2y": { "type": "list", "member": {} }, "S30": { "type": "list", "member": {} }, "S36": { "type": "structure", "members": { "ChallengeRequiredOnNewDevice": { "type": "boolean" }, "DeviceOnlyRememberedOnUserPrompt": { "type": "boolean" } } }, "S37": { "type": "structure", "members": { "SourceArn": {}, "ReplyToEmailAddress": {} } }, "S39": { "type": "structure", "members": { "SnsCallerArn": {}, "ExternalId": {} } }, "S3a": { "type": "structure", "members": { "AllowAdminCreateUserOnly": { "type": "boolean" }, "UnusedAccountValidityDays": { "type": "integer" }, "InviteMessageTemplate": { "type": "structure", "members": { "SMSMessage": {}, "EmailMessage": {}, "EmailSubject": {} } } } }, "S3e": { "type": "structure", "members": { "Id": {}, "Name": {}, "Policies": { "shape": "S2u" }, "LambdaConfig": { "shape": "S2x" }, "Status": {}, "LastModifiedDate": { "type": "timestamp" }, "CreationDate": { "type": "timestamp" }, "SchemaAttributes": { "type": "list", "member": { "shape": "S4" } }, "AutoVerifiedAttributes": { "shape": "S2y" }, "AliasAttributes": { "shape": "S30" }, "SmsVerificationMessage": {}, "EmailVerificationMessage": {}, "EmailVerificationSubject": {}, "SmsAuthenticationMessage": {}, "MfaConfiguration": {}, "DeviceConfiguration": { "shape": "S36" }, "EstimatedNumberOfUsers": { "type": "integer" }, "EmailConfiguration": { "shape": "S37" }, "SmsConfiguration": { "shape": "S39" }, "SmsConfigurationFailure": {}, "EmailConfigurationFailure": {}, "AdminCreateUserConfig": { "shape": "S3a" } } }, "S3l": { "type": "list", "member": {} }, "S3n": { "type": "list", "member": {} }, "S3q": { "type": "structure", "members": { "UserPoolId": {}, "ClientName": {}, "ClientId": { "shape": "S1b" }, "ClientSecret": { "type": "string", "sensitive": true }, "LastModifiedDate": { "type": "timestamp" }, "CreationDate": { "type": "timestamp" }, "RefreshTokenValidity": { "type": "integer" }, "ReadAttributes": { "shape": "S3l" }, "WriteAttributes": { "shape": "S3l" }, "ExplicitAuthFlows": { "shape": "S3n" } } }, "S46": { "type": "structure", "members": { "Destination": {}, "DeliveryMedium": {}, "AttributeName": {} } } } } },{}],34:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-06-30", "endpointPrefix": "cognito-sync", "jsonVersion": "1.1", "serviceFullName": "Amazon Cognito Sync", "signatureVersion": "v4", "protocol": "rest-json" }, "operations": { "BulkPublish": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/bulkpublish", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" } } }, "output": { "type": "structure", "members": { "IdentityPoolId": {} } } }, "DeleteDataset": { "http": { "method": "DELETE", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" } } }, "output": { "type": "structure", "members": { "Dataset": { "shape": "S8" } } } }, "DescribeDataset": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" } } }, "output": { "type": "structure", "members": { "Dataset": { "shape": "S8" } } } }, "DescribeIdentityPoolUsage": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" } } }, "output": { "type": "structure", "members": { "IdentityPoolUsage": { "shape": "Sg" } } } }, "DescribeIdentityUsage": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" } } }, "output": { "type": "structure", "members": { "IdentityUsage": { "type": "structure", "members": { "IdentityId": {}, "IdentityPoolId": {}, "LastModifiedDate": { "type": "timestamp" }, "DatasetCount": { "type": "integer" }, "DataStorage": { "type": "long" } } } } } }, "GetBulkPublishDetails": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/getBulkPublishDetails", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" } } }, "output": { "type": "structure", "members": { "IdentityPoolId": {}, "BulkPublishStartTime": { "type": "timestamp" }, "BulkPublishCompleteTime": { "type": "timestamp" }, "BulkPublishStatus": {}, "FailureMessage": {} } } }, "GetCognitoEvents": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/events", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" } } }, "output": { "type": "structure", "members": { "Events": { "shape": "Sq" } } } }, "GetIdentityPoolConfiguration": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" } } }, "output": { "type": "structure", "members": { "IdentityPoolId": {}, "PushSync": { "shape": "Sv" }, "CognitoStreams": { "shape": "Sz" } } } }, "ListDatasets": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityId", "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "NextToken": { "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "Datasets": { "type": "list", "member": { "shape": "S8" } }, "Count": { "type": "integer" }, "NextToken": {} } } }, "ListIdentityPoolUsage": { "http": { "method": "GET", "requestUri": "/identitypools", "responseCode": 200 }, "input": { "type": "structure", "members": { "NextToken": { "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "IdentityPoolUsages": { "type": "list", "member": { "shape": "Sg" } }, "MaxResults": { "type": "integer" }, "Count": { "type": "integer" }, "NextToken": {} } } }, "ListRecords": { "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" }, "LastSyncCount": { "location": "querystring", "locationName": "lastSyncCount", "type": "long" }, "NextToken": { "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" }, "SyncSessionToken": { "location": "querystring", "locationName": "syncSessionToken" } } }, "output": { "type": "structure", "members": { "Records": { "shape": "S1c" }, "NextToken": {}, "Count": { "type": "integer" }, "DatasetSyncCount": { "type": "long" }, "LastModifiedBy": {}, "MergedDatasetNames": { "type": "list", "member": {} }, "DatasetExists": { "type": "boolean" }, "DatasetDeletedAfterRequestedSyncCount": { "type": "boolean" }, "SyncSessionToken": {} } } }, "RegisterDevice": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "Platform", "Token" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "Platform": {}, "Token": {} } }, "output": { "type": "structure", "members": { "DeviceId": {} } } }, "SetCognitoEvents": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/events", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "Events" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "Events": { "shape": "Sq" } } } }, "SetIdentityPoolConfiguration": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "PushSync": { "shape": "Sv" }, "CognitoStreams": { "shape": "Sz" } } }, "output": { "type": "structure", "members": { "IdentityPoolId": {}, "PushSync": { "shape": "Sv" }, "CognitoStreams": { "shape": "Sz" } } } }, "SubscribeToDataset": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "DeviceId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" }, "DeviceId": { "location": "uri", "locationName": "DeviceId" } } }, "output": { "type": "structure", "members": {} } }, "UnsubscribeFromDataset": { "http": { "method": "DELETE", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "DeviceId" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" }, "DeviceId": { "location": "uri", "locationName": "DeviceId" } } }, "output": { "type": "structure", "members": {} } }, "UpdateRecords": { "http": { "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "SyncSessionToken" ], "members": { "IdentityPoolId": { "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "location": "uri", "locationName": "DatasetName" }, "DeviceId": {}, "RecordPatches": { "type": "list", "member": { "type": "structure", "required": [ "Op", "Key", "SyncCount" ], "members": { "Op": {}, "Key": {}, "Value": {}, "SyncCount": { "type": "long" }, "DeviceLastModifiedDate": { "type": "timestamp" } } } }, "SyncSessionToken": {}, "ClientContext": { "location": "header", "locationName": "x-amz-Client-Context" } } }, "output": { "type": "structure", "members": { "Records": { "shape": "S1c" } } } } }, "shapes": { "S8": { "type": "structure", "members": { "IdentityId": {}, "DatasetName": {}, "CreationDate": { "type": "timestamp" }, "LastModifiedDate": { "type": "timestamp" }, "LastModifiedBy": {}, "DataStorage": { "type": "long" }, "NumRecords": { "type": "long" } } }, "Sg": { "type": "structure", "members": { "IdentityPoolId": {}, "SyncSessionsCount": { "type": "long" }, "DataStorage": { "type": "long" }, "LastModifiedDate": { "type": "timestamp" } } }, "Sq": { "type": "map", "key": {}, "value": {} }, "Sv": { "type": "structure", "members": { "ApplicationArns": { "type": "list", "member": {} }, "RoleArn": {} } }, "Sz": { "type": "structure", "members": { "StreamName": {}, "RoleArn": {}, "StreamingStatus": {} } }, "S1c": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {}, "SyncCount": { "type": "long" }, "LastModifiedDate": { "type": "timestamp" }, "LastModifiedBy": {}, "DeviceLastModifiedDate": { "type": "timestamp" } } } } }, "examples": {} } },{}],35:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-11-12", "endpointPrefix": "config", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Config Service", "serviceFullName": "AWS Config", "signatureVersion": "v4", "targetPrefix": "StarlingDoveService" }, "operations": { "DeleteConfigRule": { "input": { "type": "structure", "required": [ "ConfigRuleName" ], "members": { "ConfigRuleName": {} } } }, "DeleteConfigurationRecorder": { "input": { "type": "structure", "required": [ "ConfigurationRecorderName" ], "members": { "ConfigurationRecorderName": {} } } }, "DeleteDeliveryChannel": { "input": { "type": "structure", "required": [ "DeliveryChannelName" ], "members": { "DeliveryChannelName": {} } } }, "DeleteEvaluationResults": { "input": { "type": "structure", "required": [ "ConfigRuleName" ], "members": { "ConfigRuleName": {} } }, "output": { "type": "structure", "members": {} } }, "DeliverConfigSnapshot": { "input": { "type": "structure", "required": [ "deliveryChannelName" ], "members": { "deliveryChannelName": {} } }, "output": { "type": "structure", "members": { "configSnapshotId": {} } } }, "DescribeComplianceByConfigRule": { "input": { "type": "structure", "members": { "ConfigRuleNames": { "shape": "Sd" }, "ComplianceTypes": { "shape": "Se" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ComplianceByConfigRules": { "type": "list", "member": { "type": "structure", "members": { "ConfigRuleName": {}, "Compliance": { "shape": "Sj" } } } }, "NextToken": {} } } }, "DescribeComplianceByResource": { "input": { "type": "structure", "members": { "ResourceType": {}, "ResourceId": {}, "ComplianceTypes": { "shape": "Se" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ComplianceByResources": { "type": "list", "member": { "type": "structure", "members": { "ResourceType": {}, "ResourceId": {}, "Compliance": { "shape": "Sj" } } } }, "NextToken": {} } } }, "DescribeConfigRuleEvaluationStatus": { "input": { "type": "structure", "members": { "ConfigRuleNames": { "shape": "Sd" } } }, "output": { "type": "structure", "members": { "ConfigRulesEvaluationStatus": { "type": "list", "member": { "type": "structure", "members": { "ConfigRuleName": {}, "ConfigRuleArn": {}, "ConfigRuleId": {}, "LastSuccessfulInvocationTime": { "type": "timestamp" }, "LastFailedInvocationTime": { "type": "timestamp" }, "LastSuccessfulEvaluationTime": { "type": "timestamp" }, "LastFailedEvaluationTime": { "type": "timestamp" }, "FirstActivatedTime": { "type": "timestamp" }, "LastErrorCode": {}, "LastErrorMessage": {}, "FirstEvaluationStarted": { "type": "boolean" } } } } } } }, "DescribeConfigRules": { "input": { "type": "structure", "members": { "ConfigRuleNames": { "shape": "Sd" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ConfigRules": { "type": "list", "member": { "shape": "S12" } }, "NextToken": {} } } }, "DescribeConfigurationRecorderStatus": { "input": { "type": "structure", "members": { "ConfigurationRecorderNames": { "shape": "S1g" } } }, "output": { "type": "structure", "members": { "ConfigurationRecordersStatus": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "lastStartTime": { "type": "timestamp" }, "lastStopTime": { "type": "timestamp" }, "recording": { "type": "boolean" }, "lastStatus": {}, "lastErrorCode": {}, "lastErrorMessage": {}, "lastStatusChangeTime": { "type": "timestamp" } } } } } } }, "DescribeConfigurationRecorders": { "input": { "type": "structure", "members": { "ConfigurationRecorderNames": { "shape": "S1g" } } }, "output": { "type": "structure", "members": { "ConfigurationRecorders": { "type": "list", "member": { "shape": "S1o" } } } } }, "DescribeDeliveryChannelStatus": { "input": { "type": "structure", "members": { "DeliveryChannelNames": { "shape": "S1v" } } }, "output": { "type": "structure", "members": { "DeliveryChannelsStatus": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "configSnapshotDeliveryInfo": { "shape": "S1z" }, "configHistoryDeliveryInfo": { "shape": "S1z" }, "configStreamDeliveryInfo": { "type": "structure", "members": { "lastStatus": {}, "lastErrorCode": {}, "lastErrorMessage": {}, "lastStatusChangeTime": { "type": "timestamp" } } } } } } } } }, "DescribeDeliveryChannels": { "input": { "type": "structure", "members": { "DeliveryChannelNames": { "shape": "S1v" } } }, "output": { "type": "structure", "members": { "DeliveryChannels": { "type": "list", "member": { "shape": "S25" } } } } }, "GetComplianceDetailsByConfigRule": { "input": { "type": "structure", "required": [ "ConfigRuleName" ], "members": { "ConfigRuleName": {}, "ComplianceTypes": { "shape": "Se" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "EvaluationResults": { "shape": "S29" }, "NextToken": {} } } }, "GetComplianceDetailsByResource": { "input": { "type": "structure", "required": [ "ResourceType", "ResourceId" ], "members": { "ResourceType": {}, "ResourceId": {}, "ComplianceTypes": { "shape": "Se" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "EvaluationResults": { "shape": "S29" }, "NextToken": {} } } }, "GetComplianceSummaryByConfigRule": { "output": { "type": "structure", "members": { "ComplianceSummary": { "shape": "S2g" } } } }, "GetComplianceSummaryByResourceType": { "input": { "type": "structure", "members": { "ResourceTypes": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "ComplianceSummariesByResourceType": { "type": "list", "member": { "type": "structure", "members": { "ResourceType": {}, "ComplianceSummary": { "shape": "S2g" } } } } } } }, "GetResourceConfigHistory": { "input": { "type": "structure", "required": [ "resourceType", "resourceId" ], "members": { "resourceType": {}, "resourceId": {}, "laterTime": { "type": "timestamp" }, "earlierTime": { "type": "timestamp" }, "chronologicalOrder": {}, "limit": { "type": "integer" }, "nextToken": {} } }, "output": { "type": "structure", "members": { "configurationItems": { "type": "list", "member": { "type": "structure", "members": { "version": {}, "accountId": {}, "configurationItemCaptureTime": { "type": "timestamp" }, "configurationItemStatus": {}, "configurationStateId": {}, "configurationItemMD5Hash": {}, "arn": {}, "resourceType": {}, "resourceId": {}, "resourceName": {}, "awsRegion": {}, "availabilityZone": {}, "resourceCreationTime": { "type": "timestamp" }, "tags": { "type": "map", "key": {}, "value": {} }, "relatedEvents": { "type": "list", "member": {} }, "relationships": { "type": "list", "member": { "type": "structure", "members": { "resourceType": {}, "resourceId": {}, "resourceName": {}, "relationshipName": {} } } }, "configuration": {}, "supplementaryConfiguration": { "type": "map", "key": {}, "value": {} } } } }, "nextToken": {} } } }, "ListDiscoveredResources": { "input": { "type": "structure", "required": [ "resourceType" ], "members": { "resourceType": {}, "resourceIds": { "type": "list", "member": {} }, "resourceName": {}, "limit": { "type": "integer" }, "includeDeletedResources": { "type": "boolean" }, "nextToken": {} } }, "output": { "type": "structure", "members": { "resourceIdentifiers": { "type": "list", "member": { "type": "structure", "members": { "resourceType": {}, "resourceId": {}, "resourceName": {}, "resourceDeletionTime": { "type": "timestamp" } } } }, "nextToken": {} } } }, "PutConfigRule": { "input": { "type": "structure", "required": [ "ConfigRule" ], "members": { "ConfigRule": { "shape": "S12" } } } }, "PutConfigurationRecorder": { "input": { "type": "structure", "required": [ "ConfigurationRecorder" ], "members": { "ConfigurationRecorder": { "shape": "S1o" } } } }, "PutDeliveryChannel": { "input": { "type": "structure", "required": [ "DeliveryChannel" ], "members": { "DeliveryChannel": { "shape": "S25" } } } }, "PutEvaluations": { "input": { "type": "structure", "required": [ "ResultToken" ], "members": { "Evaluations": { "shape": "S3r" }, "ResultToken": {} } }, "output": { "type": "structure", "members": { "FailedEvaluations": { "shape": "S3r" } } } }, "StartConfigRulesEvaluation": { "input": { "type": "structure", "members": { "ConfigRuleNames": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": {} } }, "StartConfigurationRecorder": { "input": { "type": "structure", "required": [ "ConfigurationRecorderName" ], "members": { "ConfigurationRecorderName": {} } } }, "StopConfigurationRecorder": { "input": { "type": "structure", "required": [ "ConfigurationRecorderName" ], "members": { "ConfigurationRecorderName": {} } } } }, "shapes": { "Sd": { "type": "list", "member": {} }, "Se": { "type": "list", "member": {} }, "Sj": { "type": "structure", "members": { "ComplianceType": {}, "ComplianceContributorCount": { "shape": "Sk" } } }, "Sk": { "type": "structure", "members": { "CappedCount": { "type": "integer" }, "CapExceeded": { "type": "boolean" } } }, "S12": { "type": "structure", "required": [ "Source" ], "members": { "ConfigRuleName": {}, "ConfigRuleArn": {}, "ConfigRuleId": {}, "Description": {}, "Scope": { "type": "structure", "members": { "ComplianceResourceTypes": { "type": "list", "member": {} }, "TagKey": {}, "TagValue": {}, "ComplianceResourceId": {} } }, "Source": { "type": "structure", "members": { "Owner": {}, "SourceIdentifier": {}, "SourceDetails": { "type": "list", "member": { "type": "structure", "members": { "EventSource": {}, "MessageType": {}, "MaximumExecutionFrequency": {} } } } } }, "InputParameters": {}, "MaximumExecutionFrequency": {}, "ConfigRuleState": {} } }, "S1g": { "type": "list", "member": {} }, "S1o": { "type": "structure", "members": { "name": {}, "roleARN": {}, "recordingGroup": { "type": "structure", "members": { "allSupported": { "type": "boolean" }, "includeGlobalResourceTypes": { "type": "boolean" }, "resourceTypes": { "type": "list", "member": {} } } } } }, "S1v": { "type": "list", "member": {} }, "S1z": { "type": "structure", "members": { "lastStatus": {}, "lastErrorCode": {}, "lastErrorMessage": {}, "lastAttemptTime": { "type": "timestamp" }, "lastSuccessfulTime": { "type": "timestamp" }, "nextDeliveryTime": { "type": "timestamp" } } }, "S25": { "type": "structure", "members": { "name": {}, "s3BucketName": {}, "s3KeyPrefix": {}, "snsTopicARN": {}, "configSnapshotDeliveryProperties": { "type": "structure", "members": { "deliveryFrequency": {} } } } }, "S29": { "type": "list", "member": { "type": "structure", "members": { "EvaluationResultIdentifier": { "type": "structure", "members": { "EvaluationResultQualifier": { "type": "structure", "members": { "ConfigRuleName": {}, "ResourceType": {}, "ResourceId": {} } }, "OrderingTimestamp": { "type": "timestamp" } } }, "ComplianceType": {}, "ResultRecordedTime": { "type": "timestamp" }, "ConfigRuleInvokedTime": { "type": "timestamp" }, "Annotation": {}, "ResultToken": {} } } }, "S2g": { "type": "structure", "members": { "CompliantResourceCount": { "shape": "Sk" }, "NonCompliantResourceCount": { "shape": "Sk" }, "ComplianceSummaryTimestamp": { "type": "timestamp" } } }, "S3r": { "type": "list", "member": { "type": "structure", "required": [ "ComplianceResourceType", "ComplianceResourceId", "ComplianceType", "OrderingTimestamp" ], "members": { "ComplianceResourceType": {}, "ComplianceResourceId": {}, "ComplianceType": {}, "Annotation": {}, "OrderingTimestamp": { "type": "timestamp" } } } } } } },{}],36:[function(require,module,exports){ module.exports={ "pagination": { "GetResourceConfigHistory": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "configurationItems" } } } },{}],37:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-06-23", "endpointPrefix": "devicefarm", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS Device Farm", "signatureVersion": "v4", "targetPrefix": "DeviceFarm_20150623" }, "operations": { "CreateDevicePool": { "input": { "type": "structure", "required": [ "projectArn", "name", "rules" ], "members": { "projectArn": {}, "name": {}, "description": {}, "rules": { "shape": "S5" } } }, "output": { "type": "structure", "members": { "devicePool": { "shape": "Sb" } } } }, "CreateProject": { "input": { "type": "structure", "required": [ "name" ], "members": { "name": {} } }, "output": { "type": "structure", "members": { "project": { "shape": "Sf" } } } }, "CreateRemoteAccessSession": { "input": { "type": "structure", "required": [ "projectArn", "deviceArn" ], "members": { "projectArn": {}, "deviceArn": {}, "name": {}, "configuration": { "type": "structure", "members": { "billingMethod": {} } } } }, "output": { "type": "structure", "members": { "remoteAccessSession": { "shape": "Sl" } } } }, "CreateUpload": { "input": { "type": "structure", "required": [ "projectArn", "name", "type" ], "members": { "projectArn": {}, "name": {}, "type": {}, "contentType": {} } }, "output": { "type": "structure", "members": { "upload": { "shape": "S12" } } } }, "DeleteDevicePool": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteProject": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteRemoteAccessSession": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteRun": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteUpload": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": {} } }, "GetAccountSettings": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "accountSettings": { "type": "structure", "members": { "awsAccountNumber": {}, "unmeteredDevices": { "shape": "S1k" }, "unmeteredRemoteAccessDevices": { "shape": "S1k" } } } } } }, "GetDevice": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "device": { "shape": "So" } } } }, "GetDevicePool": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "devicePool": { "shape": "Sb" } } } }, "GetDevicePoolCompatibility": { "input": { "type": "structure", "required": [ "devicePoolArn" ], "members": { "devicePoolArn": {}, "appArn": {}, "testType": {} } }, "output": { "type": "structure", "members": { "compatibleDevices": { "shape": "S1s" }, "incompatibleDevices": { "shape": "S1s" } } } }, "GetJob": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "job": { "shape": "S1y" } } } }, "GetOfferingStatus": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "current": { "shape": "S23" }, "nextPeriod": { "shape": "S23" }, "nextToken": {} } } }, "GetProject": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "project": { "shape": "Sf" } } } }, "GetRemoteAccessSession": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "remoteAccessSession": { "shape": "Sl" } } } }, "GetRun": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "run": { "shape": "S2k" } } } }, "GetSuite": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "suite": { "shape": "S2n" } } } }, "GetTest": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "test": { "shape": "S2q" } } } }, "GetUpload": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "upload": { "shape": "S12" } } } }, "InstallToRemoteAccessSession": { "input": { "type": "structure", "required": [ "remoteAccessSessionArn", "appArn" ], "members": { "remoteAccessSessionArn": {}, "appArn": {} } }, "output": { "type": "structure", "members": { "appUpload": { "shape": "S12" } } } }, "ListArtifacts": { "input": { "type": "structure", "required": [ "arn", "type" ], "members": { "arn": {}, "type": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "artifacts": { "type": "list", "member": { "type": "structure", "members": { "arn": {}, "name": {}, "type": {}, "extension": {}, "url": {} } } }, "nextToken": {} } } }, "ListDevicePools": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "type": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "devicePools": { "type": "list", "member": { "shape": "Sb" } }, "nextToken": {} } } }, "ListDevices": { "input": { "type": "structure", "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "devices": { "type": "list", "member": { "shape": "So" } }, "nextToken": {} } } }, "ListJobs": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "jobs": { "type": "list", "member": { "shape": "S1y" } }, "nextToken": {} } } }, "ListOfferingTransactions": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "offeringTransactions": { "type": "list", "member": { "shape": "S3d" } }, "nextToken": {} } } }, "ListOfferings": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "type": "structure", "members": { "offerings": { "type": "list", "member": { "shape": "S27" } }, "nextToken": {} } } }, "ListProjects": { "input": { "type": "structure", "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "projects": { "type": "list", "member": { "shape": "Sf" } }, "nextToken": {} } } }, "ListRemoteAccessSessions": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "remoteAccessSessions": { "type": "list", "member": { "shape": "Sl" } }, "nextToken": {} } } }, "ListRuns": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "runs": { "type": "list", "member": { "shape": "S2k" } }, "nextToken": {} } } }, "ListSamples": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "samples": { "type": "list", "member": { "type": "structure", "members": { "arn": {}, "type": {}, "url": {} } } }, "nextToken": {} } } }, "ListSuites": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "suites": { "type": "list", "member": { "shape": "S2n" } }, "nextToken": {} } } }, "ListTests": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "tests": { "type": "list", "member": { "shape": "S2q" } }, "nextToken": {} } } }, "ListUniqueProblems": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "uniqueProblems": { "type": "map", "key": {}, "value": { "type": "list", "member": { "type": "structure", "members": { "message": {}, "problems": { "type": "list", "member": { "type": "structure", "members": { "run": { "shape": "S49" }, "job": { "shape": "S49" }, "suite": { "shape": "S49" }, "test": { "shape": "S49" }, "device": { "shape": "So" }, "result": {}, "message": {} } } } } } } }, "nextToken": {} } } }, "ListUploads": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "nextToken": {} } }, "output": { "type": "structure", "members": { "uploads": { "type": "list", "member": { "shape": "S12" } }, "nextToken": {} } } }, "PurchaseOffering": { "input": { "type": "structure", "members": { "offeringId": {}, "quantity": { "type": "integer" } } }, "output": { "type": "structure", "members": { "offeringTransaction": { "shape": "S3d" } } } }, "RenewOffering": { "input": { "type": "structure", "members": { "offeringId": {}, "quantity": { "type": "integer" } } }, "output": { "type": "structure", "members": { "offeringTransaction": { "shape": "S3d" } } } }, "ScheduleRun": { "input": { "type": "structure", "required": [ "projectArn", "devicePoolArn", "test" ], "members": { "projectArn": {}, "appArn": {}, "devicePoolArn": {}, "name": {}, "test": { "type": "structure", "required": [ "type" ], "members": { "type": {}, "testPackageArn": {}, "filter": {}, "parameters": { "type": "map", "key": {}, "value": {} } } }, "configuration": { "type": "structure", "members": { "extraDataPackageArn": {}, "networkProfileArn": {}, "locale": {}, "location": { "type": "structure", "required": [ "latitude", "longitude" ], "members": { "latitude": { "type": "double" }, "longitude": { "type": "double" } } }, "radios": { "type": "structure", "members": { "wifi": { "type": "boolean" }, "bluetooth": { "type": "boolean" }, "nfc": { "type": "boolean" }, "gps": { "type": "boolean" } } }, "auxiliaryApps": { "type": "list", "member": {} }, "billingMethod": {} } } } }, "output": { "type": "structure", "members": { "run": { "shape": "S2k" } } } }, "StopRemoteAccessSession": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "remoteAccessSession": { "shape": "Sl" } } } }, "StopRun": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {} } }, "output": { "type": "structure", "members": { "run": { "shape": "S2k" } } } }, "UpdateDevicePool": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "name": {}, "description": {}, "rules": { "shape": "S5" } } }, "output": { "type": "structure", "members": { "devicePool": { "shape": "Sb" } } } }, "UpdateProject": { "input": { "type": "structure", "required": [ "arn" ], "members": { "arn": {}, "name": {} } }, "output": { "type": "structure", "members": { "project": { "shape": "Sf" } } } } }, "shapes": { "S5": { "type": "list", "member": { "type": "structure", "members": { "attribute": {}, "operator": {}, "value": {} } } }, "Sb": { "type": "structure", "members": { "arn": {}, "name": {}, "description": {}, "type": {}, "rules": { "shape": "S5" } } }, "Sf": { "type": "structure", "members": { "arn": {}, "name": {}, "created": { "type": "timestamp" } } }, "Sl": { "type": "structure", "members": { "arn": {}, "name": {}, "created": { "type": "timestamp" }, "status": {}, "result": {}, "message": {}, "started": { "type": "timestamp" }, "stopped": { "type": "timestamp" }, "device": { "shape": "So" }, "billingMethod": {}, "deviceMinutes": { "shape": "Sx" }, "endpoint": {} } }, "So": { "type": "structure", "members": { "arn": {}, "name": {}, "manufacturer": {}, "model": {}, "formFactor": {}, "platform": {}, "os": {}, "cpu": { "type": "structure", "members": { "frequency": {}, "architecture": {}, "clock": { "type": "double" } } }, "resolution": { "type": "structure", "members": { "width": { "type": "integer" }, "height": { "type": "integer" } } }, "heapSize": { "type": "long" }, "memory": { "type": "long" }, "image": {}, "carrier": {}, "radio": {}, "remoteAccessEnabled": { "type": "boolean" }, "fleetType": {}, "fleetName": {} } }, "Sx": { "type": "structure", "members": { "total": { "type": "double" }, "metered": { "type": "double" }, "unmetered": { "type": "double" } } }, "S12": { "type": "structure", "members": { "arn": {}, "name": {}, "created": { "type": "timestamp" }, "type": {}, "status": {}, "url": {}, "metadata": {}, "contentType": {}, "message": {} } }, "S1k": { "type": "map", "key": {}, "value": { "type": "integer" } }, "S1s": { "type": "list", "member": { "type": "structure", "members": { "device": { "shape": "So" }, "compatible": { "type": "boolean" }, "incompatibilityMessages": { "type": "list", "member": { "type": "structure", "members": { "message": {}, "type": {} } } } } } }, "S1y": { "type": "structure", "members": { "arn": {}, "name": {}, "type": {}, "created": { "type": "timestamp" }, "status": {}, "result": {}, "started": { "type": "timestamp" }, "stopped": { "type": "timestamp" }, "counters": { "shape": "S1z" }, "message": {}, "device": { "shape": "So" }, "deviceMinutes": { "shape": "Sx" } } }, "S1z": { "type": "structure", "members": { "total": { "type": "integer" }, "passed": { "type": "integer" }, "failed": { "type": "integer" }, "warned": { "type": "integer" }, "errored": { "type": "integer" }, "stopped": { "type": "integer" }, "skipped": { "type": "integer" } } }, "S23": { "type": "map", "key": {}, "value": { "shape": "S25" } }, "S25": { "type": "structure", "members": { "type": {}, "offering": { "shape": "S27" }, "quantity": { "type": "integer" }, "effectiveOn": { "type": "timestamp" } } }, "S27": { "type": "structure", "members": { "id": {}, "description": {}, "type": {}, "platform": {}, "recurringCharges": { "type": "list", "member": { "type": "structure", "members": { "cost": { "shape": "S2b" }, "frequency": {} } } } } }, "S2b": { "type": "structure", "members": { "amount": { "type": "double" }, "currencyCode": {} } }, "S2k": { "type": "structure", "members": { "arn": {}, "name": {}, "type": {}, "platform": {}, "created": { "type": "timestamp" }, "status": {}, "result": {}, "started": { "type": "timestamp" }, "stopped": { "type": "timestamp" }, "counters": { "shape": "S1z" }, "message": {}, "totalJobs": { "type": "integer" }, "completedJobs": { "type": "integer" }, "billingMethod": {}, "deviceMinutes": { "shape": "Sx" } } }, "S2n": { "type": "structure", "members": { "arn": {}, "name": {}, "type": {}, "created": { "type": "timestamp" }, "status": {}, "result": {}, "started": { "type": "timestamp" }, "stopped": { "type": "timestamp" }, "counters": { "shape": "S1z" }, "message": {}, "deviceMinutes": { "shape": "Sx" } } }, "S2q": { "type": "structure", "members": { "arn": {}, "name": {}, "type": {}, "created": { "type": "timestamp" }, "status": {}, "result": {}, "started": { "type": "timestamp" }, "stopped": { "type": "timestamp" }, "counters": { "shape": "S1z" }, "message": {}, "deviceMinutes": { "shape": "Sx" } } }, "S3d": { "type": "structure", "members": { "offeringStatus": { "shape": "S25" }, "transactionId": {}, "createdOn": { "type": "timestamp" }, "cost": { "shape": "S2b" } } }, "S49": { "type": "structure", "members": { "arn": {}, "name": {} } } } } },{}],38:[function(require,module,exports){ module.exports={ "pagination": { "GetOfferingStatus": { "input_token": "nextToken", "output_token": "nextToken", "result_key": ["current","nextPeriod"] }, "ListArtifacts": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "artifacts" }, "ListDevicePools": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "devicePools" }, "ListDevices": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "devices" }, "ListJobs": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "jobs" }, "ListOfferingTransactions": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "offeringTransactions" }, "ListOfferings": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "offerings" }, "ListProjects": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "projects" }, "ListRuns": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "runs" }, "ListSamples": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "samples" }, "ListSuites": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "suites" }, "ListTests": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "tests" }, "ListUniqueProblems": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "uniqueProblems" }, "ListUploads": { "input_token": "nextToken", "output_token": "nextToken", "result_key": "uploads" } } } },{}],39:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-10-25", "endpointPrefix": "directconnect", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS Direct Connect", "signatureVersion": "v4", "targetPrefix": "OvertureService" }, "operations": { "AllocateConnectionOnInterconnect": { "input": { "type": "structure", "required": [ "bandwidth", "connectionName", "ownerAccount", "interconnectId", "vlan" ], "members": { "bandwidth": {}, "connectionName": {}, "ownerAccount": {}, "interconnectId": {}, "vlan": { "type": "integer" } } }, "output": { "shape": "S7" } }, "AllocatePrivateVirtualInterface": { "input": { "type": "structure", "required": [ "connectionId", "ownerAccount", "newPrivateVirtualInterfaceAllocation" ], "members": { "connectionId": {}, "ownerAccount": {}, "newPrivateVirtualInterfaceAllocation": { "type": "structure", "required": [ "virtualInterfaceName", "vlan", "asn" ], "members": { "virtualInterfaceName": {}, "vlan": { "type": "integer" }, "asn": { "type": "integer" }, "authKey": {}, "amazonAddress": {}, "customerAddress": {} } } } }, "output": { "shape": "Sl" } }, "AllocatePublicVirtualInterface": { "input": { "type": "structure", "required": [ "connectionId", "ownerAccount", "newPublicVirtualInterfaceAllocation" ], "members": { "connectionId": {}, "ownerAccount": {}, "newPublicVirtualInterfaceAllocation": { "type": "structure", "required": [ "virtualInterfaceName", "vlan", "asn", "amazonAddress", "customerAddress", "routeFilterPrefixes" ], "members": { "virtualInterfaceName": {}, "vlan": { "type": "integer" }, "asn": { "type": "integer" }, "authKey": {}, "amazonAddress": {}, "customerAddress": {}, "routeFilterPrefixes": { "shape": "Sr" } } } } }, "output": { "shape": "Sl" } }, "ConfirmConnection": { "input": { "type": "structure", "required": [ "connectionId" ], "members": { "connectionId": {} } }, "output": { "type": "structure", "members": { "connectionState": {} } } }, "ConfirmPrivateVirtualInterface": { "input": { "type": "structure", "required": [ "virtualInterfaceId", "virtualGatewayId" ], "members": { "virtualInterfaceId": {}, "virtualGatewayId": {} } }, "output": { "type": "structure", "members": { "virtualInterfaceState": {} } } }, "ConfirmPublicVirtualInterface": { "input": { "type": "structure", "required": [ "virtualInterfaceId" ], "members": { "virtualInterfaceId": {} } }, "output": { "type": "structure", "members": { "virtualInterfaceState": {} } } }, "CreateConnection": { "input": { "type": "structure", "required": [ "location", "bandwidth", "connectionName" ], "members": { "location": {}, "bandwidth": {}, "connectionName": {} } }, "output": { "shape": "S7" } }, "CreateInterconnect": { "input": { "type": "structure", "required": [ "interconnectName", "bandwidth", "location" ], "members": { "interconnectName": {}, "bandwidth": {}, "location": {} } }, "output": { "shape": "S15" } }, "CreatePrivateVirtualInterface": { "input": { "type": "structure", "required": [ "connectionId", "newPrivateVirtualInterface" ], "members": { "connectionId": {}, "newPrivateVirtualInterface": { "type": "structure", "required": [ "virtualInterfaceName", "vlan", "asn", "virtualGatewayId" ], "members": { "virtualInterfaceName": {}, "vlan": { "type": "integer" }, "asn": { "type": "integer" }, "authKey": {}, "amazonAddress": {}, "customerAddress": {}, "virtualGatewayId": {} } } } }, "output": { "shape": "Sl" } }, "CreatePublicVirtualInterface": { "input": { "type": "structure", "required": [ "connectionId", "newPublicVirtualInterface" ], "members": { "connectionId": {}, "newPublicVirtualInterface": { "type": "structure", "required": [ "virtualInterfaceName", "vlan", "asn", "amazonAddress", "customerAddress", "routeFilterPrefixes" ], "members": { "virtualInterfaceName": {}, "vlan": { "type": "integer" }, "asn": { "type": "integer" }, "authKey": {}, "amazonAddress": {}, "customerAddress": {}, "routeFilterPrefixes": { "shape": "Sr" } } } } }, "output": { "shape": "Sl" } }, "DeleteConnection": { "input": { "type": "structure", "required": [ "connectionId" ], "members": { "connectionId": {} } }, "output": { "shape": "S7" } }, "DeleteInterconnect": { "input": { "type": "structure", "required": [ "interconnectId" ], "members": { "interconnectId": {} } }, "output": { "type": "structure", "members": { "interconnectState": {} } } }, "DeleteVirtualInterface": { "input": { "type": "structure", "required": [ "virtualInterfaceId" ], "members": { "virtualInterfaceId": {} } }, "output": { "type": "structure", "members": { "virtualInterfaceState": {} } } }, "DescribeConnectionLoa": { "input": { "type": "structure", "required": [ "connectionId" ], "members": { "connectionId": {}, "providerName": {}, "loaContentType": {} } }, "output": { "type": "structure", "members": { "loa": { "shape": "S1k" } } } }, "DescribeConnections": { "input": { "type": "structure", "members": { "connectionId": {} } }, "output": { "shape": "S1n" } }, "DescribeConnectionsOnInterconnect": { "input": { "type": "structure", "required": [ "interconnectId" ], "members": { "interconnectId": {} } }, "output": { "shape": "S1n" } }, "DescribeInterconnectLoa": { "input": { "type": "structure", "required": [ "interconnectId" ], "members": { "interconnectId": {}, "providerName": {}, "loaContentType": {} } }, "output": { "type": "structure", "members": { "loa": { "shape": "S1k" } } } }, "DescribeInterconnects": { "input": { "type": "structure", "members": { "interconnectId": {} } }, "output": { "type": "structure", "members": { "interconnects": { "type": "list", "member": { "shape": "S15" } } } } }, "DescribeLocations": { "output": { "type": "structure", "members": { "locations": { "type": "list", "member": { "type": "structure", "members": { "locationCode": {}, "locationName": {} } } } } } }, "DescribeVirtualGateways": { "output": { "type": "structure", "members": { "virtualGateways": { "type": "list", "member": { "type": "structure", "members": { "virtualGatewayId": {}, "virtualGatewayState": {} } } } } } }, "DescribeVirtualInterfaces": { "input": { "type": "structure", "members": { "connectionId": {}, "virtualInterfaceId": {} } }, "output": { "type": "structure", "members": { "virtualInterfaces": { "type": "list", "member": { "shape": "Sl" } } } } } }, "shapes": { "S7": { "type": "structure", "members": { "ownerAccount": {}, "connectionId": {}, "connectionName": {}, "connectionState": {}, "region": {}, "location": {}, "bandwidth": {}, "vlan": { "type": "integer" }, "partnerName": {}, "loaIssueTime": { "type": "timestamp" } } }, "Sl": { "type": "structure", "members": { "ownerAccount": {}, "virtualInterfaceId": {}, "location": {}, "connectionId": {}, "virtualInterfaceType": {}, "virtualInterfaceName": {}, "vlan": { "type": "integer" }, "asn": { "type": "integer" }, "authKey": {}, "amazonAddress": {}, "customerAddress": {}, "virtualInterfaceState": {}, "customerRouterConfig": {}, "virtualGatewayId": {}, "routeFilterPrefixes": { "shape": "Sr" } } }, "Sr": { "type": "list", "member": { "type": "structure", "members": { "cidr": {} } } }, "S15": { "type": "structure", "members": { "interconnectId": {}, "interconnectName": {}, "interconnectState": {}, "region": {}, "location": {}, "bandwidth": {}, "loaIssueTime": { "type": "timestamp" } } }, "S1k": { "type": "structure", "members": { "loaContent": { "type": "blob" }, "loaContentType": {} } }, "S1n": { "type": "structure", "members": { "connections": { "type": "list", "member": { "shape": "S7" } } } } } } },{}],40:[function(require,module,exports){ module.exports={ "pagination": { "DescribeConnections": { "result_key": "connections" }, "DescribeConnectionsOnInterconnect": { "result_key": "connections" }, "DescribeInterconnects": { "result_key": "interconnects" }, "DescribeLocations": { "result_key": "locations" }, "DescribeVirtualGateways": { "result_key": "virtualGateways" }, "DescribeVirtualInterfaces": { "result_key": "virtualInterfaces" } } } },{}],41:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2011-12-05", "endpointPrefix": "dynamodb", "jsonVersion": "1.0", "protocol": "json", "serviceAbbreviation": "DynamoDB", "serviceFullName": "Amazon DynamoDB", "signatureVersion": "v4", "targetPrefix": "DynamoDB_20111205" }, "operations": { "BatchGetItem": { "input": { "type": "structure", "required": [ "RequestItems" ], "members": { "RequestItems": { "shape": "S2" } } }, "output": { "type": "structure", "members": { "Responses": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "Items": { "shape": "Sk" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "UnprocessedKeys": { "shape": "S2" } } } }, "BatchWriteItem": { "input": { "type": "structure", "required": [ "RequestItems" ], "members": { "RequestItems": { "shape": "So" } } }, "output": { "type": "structure", "members": { "Responses": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "ConsumedCapacityUnits": { "type": "double" } } } }, "UnprocessedItems": { "shape": "So" } } } }, "CreateTable": { "input": { "type": "structure", "required": [ "TableName", "KeySchema", "ProvisionedThroughput" ], "members": { "TableName": {}, "KeySchema": { "shape": "Sy" }, "ProvisionedThroughput": { "shape": "S12" } } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S15" } } } }, "DeleteItem": { "input": { "type": "structure", "required": [ "TableName", "Key" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "Expected": { "shape": "S1b" }, "ReturnValues": {} } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Sl" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "DeleteTable": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {} } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S15" } } } }, "DescribeTable": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {} } }, "output": { "type": "structure", "members": { "Table": { "shape": "S15" } } } }, "GetItem": { "input": { "type": "structure", "required": [ "TableName", "Key" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "AttributesToGet": { "shape": "Se" }, "ConsistentRead": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "Item": { "shape": "Sl" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "ListTables": { "input": { "type": "structure", "members": { "ExclusiveStartTableName": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "TableNames": { "type": "list", "member": {} }, "LastEvaluatedTableName": {} } } }, "PutItem": { "input": { "type": "structure", "required": [ "TableName", "Item" ], "members": { "TableName": {}, "Item": { "shape": "Ss" }, "Expected": { "shape": "S1b" }, "ReturnValues": {} } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Sl" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "Query": { "input": { "type": "structure", "required": [ "TableName", "HashKeyValue" ], "members": { "TableName": {}, "AttributesToGet": { "shape": "Se" }, "Limit": { "type": "integer" }, "ConsistentRead": { "type": "boolean" }, "Count": { "type": "boolean" }, "HashKeyValue": { "shape": "S7" }, "RangeKeyCondition": { "shape": "S1u" }, "ScanIndexForward": { "type": "boolean" }, "ExclusiveStartKey": { "shape": "S6" } } }, "output": { "type": "structure", "members": { "Items": { "shape": "Sk" }, "Count": { "type": "integer" }, "LastEvaluatedKey": { "shape": "S6" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "Scan": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {}, "AttributesToGet": { "shape": "Se" }, "Limit": { "type": "integer" }, "Count": { "type": "boolean" }, "ScanFilter": { "type": "map", "key": {}, "value": { "shape": "S1u" } }, "ExclusiveStartKey": { "shape": "S6" } } }, "output": { "type": "structure", "members": { "Items": { "shape": "Sk" }, "Count": { "type": "integer" }, "ScannedCount": { "type": "integer" }, "LastEvaluatedKey": { "shape": "S6" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "UpdateItem": { "input": { "type": "structure", "required": [ "TableName", "Key", "AttributeUpdates" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "AttributeUpdates": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "Value": { "shape": "S7" }, "Action": {} } } }, "Expected": { "shape": "S1b" }, "ReturnValues": {} } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Sl" }, "ConsumedCapacityUnits": { "type": "double" } } } }, "UpdateTable": { "input": { "type": "structure", "required": [ "TableName", "ProvisionedThroughput" ], "members": { "TableName": {}, "ProvisionedThroughput": { "shape": "S12" } } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S15" } } } } }, "shapes": { "S2": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "Keys" ], "members": { "Keys": { "type": "list", "member": { "shape": "S6" } }, "AttributesToGet": { "shape": "Se" }, "ConsistentRead": { "type": "boolean" } } } }, "S6": { "type": "structure", "required": [ "HashKeyElement" ], "members": { "HashKeyElement": { "shape": "S7" }, "RangeKeyElement": { "shape": "S7" } } }, "S7": { "type": "structure", "members": { "S": {}, "N": {}, "B": { "type": "blob" }, "SS": { "type": "list", "member": {} }, "NS": { "type": "list", "member": {} }, "BS": { "type": "list", "member": { "type": "blob" } } } }, "Se": { "type": "list", "member": {} }, "Sk": { "type": "list", "member": { "shape": "Sl" } }, "Sl": { "type": "map", "key": {}, "value": { "shape": "S7" } }, "So": { "type": "map", "key": {}, "value": { "type": "list", "member": { "type": "structure", "members": { "PutRequest": { "type": "structure", "required": [ "Item" ], "members": { "Item": { "shape": "Ss" } } }, "DeleteRequest": { "type": "structure", "required": [ "Key" ], "members": { "Key": { "shape": "S6" } } } } } } }, "Ss": { "type": "map", "key": {}, "value": { "shape": "S7" } }, "Sy": { "type": "structure", "required": [ "HashKeyElement" ], "members": { "HashKeyElement": { "shape": "Sz" }, "RangeKeyElement": { "shape": "Sz" } } }, "Sz": { "type": "structure", "required": [ "AttributeName", "AttributeType" ], "members": { "AttributeName": {}, "AttributeType": {} } }, "S12": { "type": "structure", "required": [ "ReadCapacityUnits", "WriteCapacityUnits" ], "members": { "ReadCapacityUnits": { "type": "long" }, "WriteCapacityUnits": { "type": "long" } } }, "S15": { "type": "structure", "members": { "TableName": {}, "KeySchema": { "shape": "Sy" }, "TableStatus": {}, "CreationDateTime": { "type": "timestamp" }, "ProvisionedThroughput": { "type": "structure", "members": { "LastIncreaseDateTime": { "type": "timestamp" }, "LastDecreaseDateTime": { "type": "timestamp" }, "NumberOfDecreasesToday": { "type": "long" }, "ReadCapacityUnits": { "type": "long" }, "WriteCapacityUnits": { "type": "long" } } }, "TableSizeBytes": { "type": "long" }, "ItemCount": { "type": "long" } } }, "S1b": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "Value": { "shape": "S7" }, "Exists": { "type": "boolean" } } } }, "S1u": { "type": "structure", "required": [ "ComparisonOperator" ], "members": { "AttributeValueList": { "type": "list", "member": { "shape": "S7" } }, "ComparisonOperator": {} } } } } },{}],42:[function(require,module,exports){ module.exports={ "pagination": { "BatchGetItem": { "input_token": "RequestItems", "output_token": "UnprocessedKeys" }, "ListTables": { "input_token": "ExclusiveStartTableName", "output_token": "LastEvaluatedTableName", "limit_key": "Limit", "result_key": "TableNames" }, "Query": { "input_token": "ExclusiveStartKey", "output_token": "LastEvaluatedKey", "limit_key": "Limit", "result_key": "Items" }, "Scan": { "input_token": "ExclusiveStartKey", "output_token": "LastEvaluatedKey", "limit_key": "Limit", "result_key": "Items" } } } },{}],43:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "TableExists": { "delay": 20, "operation": "DescribeTable", "maxAttempts": 25, "acceptors": [ { "expected": "ACTIVE", "matcher": "path", "state": "success", "argument": "Table.TableStatus" }, { "expected": "ResourceNotFoundException", "matcher": "error", "state": "retry" } ] }, "TableNotExists": { "delay": 20, "operation": "DescribeTable", "maxAttempts": 25, "acceptors": [ { "expected": "ResourceNotFoundException", "matcher": "error", "state": "success" } ] } } } },{}],44:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-08-10", "endpointPrefix": "dynamodb", "jsonVersion": "1.0", "protocol": "json", "serviceAbbreviation": "DynamoDB", "serviceFullName": "Amazon DynamoDB", "signatureVersion": "v4", "targetPrefix": "DynamoDB_20120810" }, "operations": { "BatchGetItem": { "input": { "type": "structure", "required": [ "RequestItems" ], "members": { "RequestItems": { "shape": "S2" }, "ReturnConsumedCapacity": {} } }, "output": { "type": "structure", "members": { "Responses": { "type": "map", "key": {}, "value": { "shape": "Sr" } }, "UnprocessedKeys": { "shape": "S2" }, "ConsumedCapacity": { "shape": "St" } } } }, "BatchWriteItem": { "input": { "type": "structure", "required": [ "RequestItems" ], "members": { "RequestItems": { "shape": "S10" }, "ReturnConsumedCapacity": {}, "ReturnItemCollectionMetrics": {} } }, "output": { "type": "structure", "members": { "UnprocessedItems": { "shape": "S10" }, "ItemCollectionMetrics": { "type": "map", "key": {}, "value": { "type": "list", "member": { "shape": "S1a" } } }, "ConsumedCapacity": { "shape": "St" } } } }, "CreateTable": { "input": { "type": "structure", "required": [ "AttributeDefinitions", "TableName", "KeySchema", "ProvisionedThroughput" ], "members": { "AttributeDefinitions": { "shape": "S1f" }, "TableName": {}, "KeySchema": { "shape": "S1j" }, "LocalSecondaryIndexes": { "type": "list", "member": { "type": "structure", "required": [ "IndexName", "KeySchema", "Projection" ], "members": { "IndexName": {}, "KeySchema": { "shape": "S1j" }, "Projection": { "shape": "S1o" } } } }, "GlobalSecondaryIndexes": { "type": "list", "member": { "type": "structure", "required": [ "IndexName", "KeySchema", "Projection", "ProvisionedThroughput" ], "members": { "IndexName": {}, "KeySchema": { "shape": "S1j" }, "Projection": { "shape": "S1o" }, "ProvisionedThroughput": { "shape": "S1u" } } } }, "ProvisionedThroughput": { "shape": "S1u" }, "StreamSpecification": { "shape": "S1w" } } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S20" } } } }, "DeleteItem": { "input": { "type": "structure", "required": [ "TableName", "Key" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "Expected": { "shape": "S2e" }, "ConditionalOperator": {}, "ReturnValues": {}, "ReturnConsumedCapacity": {}, "ReturnItemCollectionMetrics": {}, "ConditionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" }, "ExpressionAttributeValues": { "shape": "S2m" } } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Ss" }, "ConsumedCapacity": { "shape": "Su" }, "ItemCollectionMetrics": { "shape": "S1a" } } } }, "DeleteTable": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {} } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S20" } } } }, "DescribeLimits": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "AccountMaxReadCapacityUnits": { "type": "long" }, "AccountMaxWriteCapacityUnits": { "type": "long" }, "TableMaxReadCapacityUnits": { "type": "long" }, "TableMaxWriteCapacityUnits": { "type": "long" } } } }, "DescribeTable": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {} } }, "output": { "type": "structure", "members": { "Table": { "shape": "S20" } } } }, "GetItem": { "input": { "type": "structure", "required": [ "TableName", "Key" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "AttributesToGet": { "shape": "Sj" }, "ConsistentRead": { "type": "boolean" }, "ReturnConsumedCapacity": {}, "ProjectionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" } } }, "output": { "type": "structure", "members": { "Item": { "shape": "Ss" }, "ConsumedCapacity": { "shape": "Su" } } } }, "ListTables": { "input": { "type": "structure", "members": { "ExclusiveStartTableName": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "TableNames": { "type": "list", "member": {} }, "LastEvaluatedTableName": {} } } }, "PutItem": { "input": { "type": "structure", "required": [ "TableName", "Item" ], "members": { "TableName": {}, "Item": { "shape": "S14" }, "Expected": { "shape": "S2e" }, "ReturnValues": {}, "ReturnConsumedCapacity": {}, "ReturnItemCollectionMetrics": {}, "ConditionalOperator": {}, "ConditionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" }, "ExpressionAttributeValues": { "shape": "S2m" } } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Ss" }, "ConsumedCapacity": { "shape": "Su" }, "ItemCollectionMetrics": { "shape": "S1a" } } } }, "Query": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {}, "IndexName": {}, "Select": {}, "AttributesToGet": { "shape": "Sj" }, "Limit": { "type": "integer" }, "ConsistentRead": { "type": "boolean" }, "KeyConditions": { "type": "map", "key": {}, "value": { "shape": "S37" } }, "QueryFilter": { "shape": "S38" }, "ConditionalOperator": {}, "ScanIndexForward": { "type": "boolean" }, "ExclusiveStartKey": { "shape": "S6" }, "ReturnConsumedCapacity": {}, "ProjectionExpression": {}, "FilterExpression": {}, "KeyConditionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" }, "ExpressionAttributeValues": { "shape": "S2m" } } }, "output": { "type": "structure", "members": { "Items": { "shape": "Sr" }, "Count": { "type": "integer" }, "ScannedCount": { "type": "integer" }, "LastEvaluatedKey": { "shape": "S6" }, "ConsumedCapacity": { "shape": "Su" } } } }, "Scan": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "TableName": {}, "IndexName": {}, "AttributesToGet": { "shape": "Sj" }, "Limit": { "type": "integer" }, "Select": {}, "ScanFilter": { "shape": "S38" }, "ConditionalOperator": {}, "ExclusiveStartKey": { "shape": "S6" }, "ReturnConsumedCapacity": {}, "TotalSegments": { "type": "integer" }, "Segment": { "type": "integer" }, "ProjectionExpression": {}, "FilterExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" }, "ExpressionAttributeValues": { "shape": "S2m" }, "ConsistentRead": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "Items": { "shape": "Sr" }, "Count": { "type": "integer" }, "ScannedCount": { "type": "integer" }, "LastEvaluatedKey": { "shape": "S6" }, "ConsumedCapacity": { "shape": "Su" } } } }, "UpdateItem": { "input": { "type": "structure", "required": [ "TableName", "Key" ], "members": { "TableName": {}, "Key": { "shape": "S6" }, "AttributeUpdates": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "Value": { "shape": "S8" }, "Action": {} } } }, "Expected": { "shape": "S2e" }, "ConditionalOperator": {}, "ReturnValues": {}, "ReturnConsumedCapacity": {}, "ReturnItemCollectionMetrics": {}, "UpdateExpression": {}, "ConditionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" }, "ExpressionAttributeValues": { "shape": "S2m" } } }, "output": { "type": "structure", "members": { "Attributes": { "shape": "Ss" }, "ConsumedCapacity": { "shape": "Su" }, "ItemCollectionMetrics": { "shape": "S1a" } } } }, "UpdateTable": { "input": { "type": "structure", "required": [ "TableName" ], "members": { "AttributeDefinitions": { "shape": "S1f" }, "TableName": {}, "ProvisionedThroughput": { "shape": "S1u" }, "GlobalSecondaryIndexUpdates": { "type": "list", "member": { "type": "structure", "members": { "Update": { "type": "structure", "required": [ "IndexName", "ProvisionedThroughput" ], "members": { "IndexName": {}, "ProvisionedThroughput": { "shape": "S1u" } } }, "Create": { "type": "structure", "required": [ "IndexName", "KeySchema", "Projection", "ProvisionedThroughput" ], "members": { "IndexName": {}, "KeySchema": { "shape": "S1j" }, "Projection": { "shape": "S1o" }, "ProvisionedThroughput": { "shape": "S1u" } } }, "Delete": { "type": "structure", "required": [ "IndexName" ], "members": { "IndexName": {} } } } } }, "StreamSpecification": { "shape": "S1w" } } }, "output": { "type": "structure", "members": { "TableDescription": { "shape": "S20" } } } } }, "shapes": { "S2": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "Keys" ], "members": { "Keys": { "type": "list", "member": { "shape": "S6" } }, "AttributesToGet": { "shape": "Sj" }, "ConsistentRead": { "type": "boolean" }, "ProjectionExpression": {}, "ExpressionAttributeNames": { "shape": "Sm" } } } }, "S6": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "S8": { "type": "structure", "members": { "S": {}, "N": {}, "B": { "type": "blob" }, "SS": { "type": "list", "member": {} }, "NS": { "type": "list", "member": {} }, "BS": { "type": "list", "member": { "type": "blob" } }, "M": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "L": { "type": "list", "member": { "shape": "S8" } }, "NULL": { "type": "boolean" }, "BOOL": { "type": "boolean" } } }, "Sj": { "type": "list", "member": {} }, "Sm": { "type": "map", "key": {}, "value": {} }, "Sr": { "type": "list", "member": { "shape": "Ss" } }, "Ss": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "St": { "type": "list", "member": { "shape": "Su" } }, "Su": { "type": "structure", "members": { "TableName": {}, "CapacityUnits": { "type": "double" }, "Table": { "shape": "Sw" }, "LocalSecondaryIndexes": { "shape": "Sx" }, "GlobalSecondaryIndexes": { "shape": "Sx" } } }, "Sw": { "type": "structure", "members": { "CapacityUnits": { "type": "double" } } }, "Sx": { "type": "map", "key": {}, "value": { "shape": "Sw" } }, "S10": { "type": "map", "key": {}, "value": { "type": "list", "member": { "type": "structure", "members": { "PutRequest": { "type": "structure", "required": [ "Item" ], "members": { "Item": { "shape": "S14" } } }, "DeleteRequest": { "type": "structure", "required": [ "Key" ], "members": { "Key": { "shape": "S6" } } } } } } }, "S14": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "S1a": { "type": "structure", "members": { "ItemCollectionKey": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "SizeEstimateRangeGB": { "type": "list", "member": { "type": "double" } } } }, "S1f": { "type": "list", "member": { "type": "structure", "required": [ "AttributeName", "AttributeType" ], "members": { "AttributeName": {}, "AttributeType": {} } } }, "S1j": { "type": "list", "member": { "type": "structure", "required": [ "AttributeName", "KeyType" ], "members": { "AttributeName": {}, "KeyType": {} } } }, "S1o": { "type": "structure", "members": { "ProjectionType": {}, "NonKeyAttributes": { "type": "list", "member": {} } } }, "S1u": { "type": "structure", "required": [ "ReadCapacityUnits", "WriteCapacityUnits" ], "members": { "ReadCapacityUnits": { "type": "long" }, "WriteCapacityUnits": { "type": "long" } } }, "S1w": { "type": "structure", "members": { "StreamEnabled": { "type": "boolean" }, "StreamViewType": {} } }, "S20": { "type": "structure", "members": { "AttributeDefinitions": { "shape": "S1f" }, "TableName": {}, "KeySchema": { "shape": "S1j" }, "TableStatus": {}, "CreationDateTime": { "type": "timestamp" }, "ProvisionedThroughput": { "shape": "S23" }, "TableSizeBytes": { "type": "long" }, "ItemCount": { "type": "long" }, "TableArn": {}, "LocalSecondaryIndexes": { "type": "list", "member": { "type": "structure", "members": { "IndexName": {}, "KeySchema": { "shape": "S1j" }, "Projection": { "shape": "S1o" }, "IndexSizeBytes": { "type": "long" }, "ItemCount": { "type": "long" }, "IndexArn": {} } } }, "GlobalSecondaryIndexes": { "type": "list", "member": { "type": "structure", "members": { "IndexName": {}, "KeySchema": { "shape": "S1j" }, "Projection": { "shape": "S1o" }, "IndexStatus": {}, "Backfilling": { "type": "boolean" }, "ProvisionedThroughput": { "shape": "S23" }, "IndexSizeBytes": { "type": "long" }, "ItemCount": { "type": "long" }, "IndexArn": {} } } }, "StreamSpecification": { "shape": "S1w" }, "LatestStreamLabel": {}, "LatestStreamArn": {} } }, "S23": { "type": "structure", "members": { "LastIncreaseDateTime": { "type": "timestamp" }, "LastDecreaseDateTime": { "type": "timestamp" }, "NumberOfDecreasesToday": { "type": "long" }, "ReadCapacityUnits": { "type": "long" }, "WriteCapacityUnits": { "type": "long" } } }, "S2e": { "type": "map", "key": {}, "value": { "type": "structure", "members": { "Value": { "shape": "S8" }, "Exists": { "type": "boolean" }, "ComparisonOperator": {}, "AttributeValueList": { "shape": "S2i" } } } }, "S2i": { "type": "list", "member": { "shape": "S8" } }, "S2m": { "type": "map", "key": {}, "value": { "shape": "S8" } }, "S37": { "type": "structure", "required": [ "ComparisonOperator" ], "members": { "AttributeValueList": { "shape": "S2i" }, "ComparisonOperator": {} } }, "S38": { "type": "map", "key": {}, "value": { "shape": "S37" } } } } },{}],45:[function(require,module,exports){ arguments[4][42][0].apply(exports,arguments) },{"dup":42}],46:[function(require,module,exports){ arguments[4][43][0].apply(exports,arguments) },{"dup":43}],47:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2016-09-15", "endpointPrefix": "ec2", "protocol": "ec2", "serviceAbbreviation": "Amazon EC2", "serviceFullName": "Amazon Elastic Compute Cloud", "signatureVersion": "v4", "xmlNamespace": "http://ec2.amazonaws.com/doc/2016-09-15" }, "operations": { "AcceptReservedInstancesExchangeQuote": { "input": { "type": "structure", "required": [ "ReservedInstanceIds" ], "members": { "DryRun": { "type": "boolean" }, "ReservedInstanceIds": { "shape": "S3", "locationName": "ReservedInstanceId" }, "TargetConfigurations": { "shape": "S5", "locationName": "TargetConfiguration" } } }, "output": { "type": "structure", "members": { "ExchangeId": { "locationName": "exchangeId" } } } }, "AcceptVpcPeeringConnection": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" } } }, "output": { "type": "structure", "members": { "VpcPeeringConnection": { "shape": "Sb", "locationName": "vpcPeeringConnection" } } } }, "AllocateAddress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Domain": {} } }, "output": { "type": "structure", "members": { "PublicIp": { "locationName": "publicIp" }, "Domain": { "locationName": "domain" }, "AllocationId": { "locationName": "allocationId" } } } }, "AllocateHosts": { "input": { "type": "structure", "required": [ "InstanceType", "Quantity", "AvailabilityZone" ], "members": { "AutoPlacement": { "locationName": "autoPlacement" }, "ClientToken": { "locationName": "clientToken" }, "InstanceType": { "locationName": "instanceType" }, "Quantity": { "locationName": "quantity", "type": "integer" }, "AvailabilityZone": { "locationName": "availabilityZone" } } }, "output": { "type": "structure", "members": { "HostIds": { "shape": "Sp", "locationName": "hostIdSet" } } } }, "AssignPrivateIpAddresses": { "input": { "type": "structure", "required": [ "NetworkInterfaceId" ], "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "PrivateIpAddresses": { "shape": "Sr", "locationName": "privateIpAddress" }, "SecondaryPrivateIpAddressCount": { "locationName": "secondaryPrivateIpAddressCount", "type": "integer" }, "AllowReassignment": { "locationName": "allowReassignment", "type": "boolean" } } } }, "AssociateAddress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": {}, "PublicIp": {}, "AllocationId": {}, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "AllowReassociation": { "locationName": "allowReassociation", "type": "boolean" } } }, "output": { "type": "structure", "members": { "AssociationId": { "locationName": "associationId" } } } }, "AssociateDhcpOptions": { "input": { "type": "structure", "required": [ "DhcpOptionsId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "DhcpOptionsId": {}, "VpcId": {} } } }, "AssociateRouteTable": { "input": { "type": "structure", "required": [ "SubnetId", "RouteTableId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SubnetId": { "locationName": "subnetId" }, "RouteTableId": { "locationName": "routeTableId" } } }, "output": { "type": "structure", "members": { "AssociationId": { "locationName": "associationId" } } } }, "AttachClassicLinkVpc": { "input": { "type": "structure", "required": [ "InstanceId", "VpcId", "Groups" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "VpcId": { "locationName": "vpcId" }, "Groups": { "shape": "Sy", "locationName": "SecurityGroupId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "AttachInternetGateway": { "input": { "type": "structure", "required": [ "InternetGatewayId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InternetGatewayId": { "locationName": "internetGatewayId" }, "VpcId": { "locationName": "vpcId" } } } }, "AttachNetworkInterface": { "input": { "type": "structure", "required": [ "NetworkInterfaceId", "InstanceId", "DeviceIndex" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "InstanceId": { "locationName": "instanceId" }, "DeviceIndex": { "locationName": "deviceIndex", "type": "integer" } } }, "output": { "type": "structure", "members": { "AttachmentId": { "locationName": "attachmentId" } } } }, "AttachVolume": { "input": { "type": "structure", "required": [ "VolumeId", "InstanceId", "Device" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {}, "InstanceId": {}, "Device": {} } }, "output": { "shape": "S14" } }, "AttachVpnGateway": { "input": { "type": "structure", "required": [ "VpnGatewayId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnGatewayId": {}, "VpcId": {} } }, "output": { "type": "structure", "members": { "VpcAttachment": { "shape": "S18", "locationName": "attachment" } } } }, "AuthorizeSecurityGroupEgress": { "input": { "type": "structure", "required": [ "GroupId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupId": { "locationName": "groupId" }, "SourceSecurityGroupName": { "locationName": "sourceSecurityGroupName" }, "SourceSecurityGroupOwnerId": { "locationName": "sourceSecurityGroupOwnerId" }, "IpProtocol": { "locationName": "ipProtocol" }, "FromPort": { "locationName": "fromPort", "type": "integer" }, "ToPort": { "locationName": "toPort", "type": "integer" }, "CidrIp": { "locationName": "cidrIp" }, "IpPermissions": { "shape": "S1b", "locationName": "ipPermissions" } } } }, "AuthorizeSecurityGroupIngress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": {}, "GroupId": {}, "SourceSecurityGroupName": {}, "SourceSecurityGroupOwnerId": {}, "IpProtocol": {}, "FromPort": { "type": "integer" }, "ToPort": { "type": "integer" }, "CidrIp": {}, "IpPermissions": { "shape": "S1b" } } } }, "BundleInstance": { "input": { "type": "structure", "required": [ "InstanceId", "Storage" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": {}, "Storage": { "shape": "S1l" } } }, "output": { "type": "structure", "members": { "BundleTask": { "shape": "S1p", "locationName": "bundleInstanceTask" } } } }, "CancelBundleTask": { "input": { "type": "structure", "required": [ "BundleId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "BundleId": {} } }, "output": { "type": "structure", "members": { "BundleTask": { "shape": "S1p", "locationName": "bundleInstanceTask" } } } }, "CancelConversionTask": { "input": { "type": "structure", "required": [ "ConversionTaskId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ConversionTaskId": { "locationName": "conversionTaskId" }, "ReasonMessage": { "locationName": "reasonMessage" } } } }, "CancelExportTask": { "input": { "type": "structure", "required": [ "ExportTaskId" ], "members": { "ExportTaskId": { "locationName": "exportTaskId" } } } }, "CancelImportTask": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "ImportTaskId": {}, "CancelReason": {} } }, "output": { "type": "structure", "members": { "ImportTaskId": { "locationName": "importTaskId" }, "State": { "locationName": "state" }, "PreviousState": { "locationName": "previousState" } } } }, "CancelReservedInstancesListing": { "input": { "type": "structure", "required": [ "ReservedInstancesListingId" ], "members": { "ReservedInstancesListingId": { "locationName": "reservedInstancesListingId" } } }, "output": { "type": "structure", "members": { "ReservedInstancesListings": { "shape": "S20", "locationName": "reservedInstancesListingsSet" } } } }, "CancelSpotFleetRequests": { "input": { "type": "structure", "required": [ "SpotFleetRequestIds", "TerminateInstances" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotFleetRequestIds": { "shape": "S2c", "locationName": "spotFleetRequestId" }, "TerminateInstances": { "locationName": "terminateInstances", "type": "boolean" } } }, "output": { "type": "structure", "members": { "UnsuccessfulFleetRequests": { "locationName": "unsuccessfulFleetRequestSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "SpotFleetRequestId", "Error" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "Error": { "locationName": "error", "type": "structure", "required": [ "Code", "Message" ], "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } } } } }, "SuccessfulFleetRequests": { "locationName": "successfulFleetRequestSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "SpotFleetRequestId", "CurrentSpotFleetRequestState", "PreviousSpotFleetRequestState" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "CurrentSpotFleetRequestState": { "locationName": "currentSpotFleetRequestState" }, "PreviousSpotFleetRequestState": { "locationName": "previousSpotFleetRequestState" } } } } } } }, "CancelSpotInstanceRequests": { "input": { "type": "structure", "required": [ "SpotInstanceRequestIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotInstanceRequestIds": { "shape": "S2m", "locationName": "SpotInstanceRequestId" } } }, "output": { "type": "structure", "members": { "CancelledSpotInstanceRequests": { "locationName": "spotInstanceRequestSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "SpotInstanceRequestId": { "locationName": "spotInstanceRequestId" }, "State": { "locationName": "state" } } } } } } }, "ConfirmProductInstance": { "input": { "type": "structure", "required": [ "ProductCode", "InstanceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ProductCode": {}, "InstanceId": {} } }, "output": { "type": "structure", "members": { "OwnerId": { "locationName": "ownerId" }, "Return": { "locationName": "return", "type": "boolean" } } } }, "CopyImage": { "input": { "type": "structure", "required": [ "SourceRegion", "SourceImageId", "Name" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SourceRegion": {}, "SourceImageId": {}, "Name": {}, "Description": {}, "ClientToken": {}, "Encrypted": { "locationName": "encrypted", "type": "boolean" }, "KmsKeyId": { "locationName": "kmsKeyId" } } }, "output": { "type": "structure", "members": { "ImageId": { "locationName": "imageId" } } } }, "CopySnapshot": { "input": { "type": "structure", "required": [ "SourceRegion", "SourceSnapshotId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SourceRegion": {}, "SourceSnapshotId": {}, "Description": {}, "DestinationRegion": { "locationName": "destinationRegion" }, "PresignedUrl": { "locationName": "presignedUrl" }, "Encrypted": { "locationName": "encrypted", "type": "boolean" }, "KmsKeyId": { "locationName": "kmsKeyId" } } }, "output": { "type": "structure", "members": { "SnapshotId": { "locationName": "snapshotId" } } } }, "CreateCustomerGateway": { "input": { "type": "structure", "required": [ "Type", "PublicIp", "BgpAsn" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Type": {}, "PublicIp": { "locationName": "IpAddress" }, "BgpAsn": { "type": "integer" } } }, "output": { "type": "structure", "members": { "CustomerGateway": { "shape": "S30", "locationName": "customerGateway" } } } }, "CreateDhcpOptions": { "input": { "type": "structure", "required": [ "DhcpConfigurations" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "DhcpConfigurations": { "locationName": "dhcpConfiguration", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Key": { "locationName": "key" }, "Values": { "shape": "S2c", "locationName": "Value" } } } } } }, "output": { "type": "structure", "members": { "DhcpOptions": { "shape": "S35", "locationName": "dhcpOptions" } } } }, "CreateFlowLogs": { "input": { "type": "structure", "required": [ "ResourceIds", "ResourceType", "TrafficType", "LogGroupName", "DeliverLogsPermissionArn" ], "members": { "ResourceIds": { "shape": "S2c", "locationName": "ResourceId" }, "ResourceType": {}, "TrafficType": {}, "LogGroupName": {}, "DeliverLogsPermissionArn": {}, "ClientToken": {} } }, "output": { "type": "structure", "members": { "FlowLogIds": { "shape": "S2c", "locationName": "flowLogIdSet" }, "ClientToken": { "locationName": "clientToken" }, "Unsuccessful": { "shape": "S3e", "locationName": "unsuccessful" } } } }, "CreateImage": { "input": { "type": "structure", "required": [ "InstanceId", "Name" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "Name": { "locationName": "name" }, "Description": { "locationName": "description" }, "NoReboot": { "locationName": "noReboot", "type": "boolean" }, "BlockDeviceMappings": { "shape": "S3i", "locationName": "blockDeviceMapping" } } }, "output": { "type": "structure", "members": { "ImageId": { "locationName": "imageId" } } } }, "CreateInstanceExportTask": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "Description": { "locationName": "description" }, "InstanceId": { "locationName": "instanceId" }, "TargetEnvironment": { "locationName": "targetEnvironment" }, "ExportToS3Task": { "locationName": "exportToS3", "type": "structure", "members": { "DiskImageFormat": { "locationName": "diskImageFormat" }, "ContainerFormat": { "locationName": "containerFormat" }, "S3Bucket": { "locationName": "s3Bucket" }, "S3Prefix": { "locationName": "s3Prefix" } } } } }, "output": { "type": "structure", "members": { "ExportTask": { "shape": "S3t", "locationName": "exportTask" } } } }, "CreateInternetGateway": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" } } }, "output": { "type": "structure", "members": { "InternetGateway": { "shape": "S3z", "locationName": "internetGateway" } } } }, "CreateKeyPair": { "input": { "type": "structure", "required": [ "KeyName" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "KeyName": {} } }, "output": { "type": "structure", "members": { "KeyName": { "locationName": "keyName" }, "KeyFingerprint": { "locationName": "keyFingerprint" }, "KeyMaterial": { "locationName": "keyMaterial" } } } }, "CreateNatGateway": { "input": { "type": "structure", "required": [ "SubnetId", "AllocationId" ], "members": { "SubnetId": {}, "AllocationId": {}, "ClientToken": {} } }, "output": { "type": "structure", "members": { "NatGateway": { "shape": "S46", "locationName": "natGateway" }, "ClientToken": { "locationName": "clientToken" } } } }, "CreateNetworkAcl": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": { "locationName": "vpcId" } } }, "output": { "type": "structure", "members": { "NetworkAcl": { "shape": "S4d", "locationName": "networkAcl" } } } }, "CreateNetworkAclEntry": { "input": { "type": "structure", "required": [ "NetworkAclId", "RuleNumber", "Protocol", "RuleAction", "Egress", "CidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkAclId": { "locationName": "networkAclId" }, "RuleNumber": { "locationName": "ruleNumber", "type": "integer" }, "Protocol": { "locationName": "protocol" }, "RuleAction": { "locationName": "ruleAction" }, "Egress": { "locationName": "egress", "type": "boolean" }, "CidrBlock": { "locationName": "cidrBlock" }, "IcmpTypeCode": { "shape": "S4h", "locationName": "Icmp" }, "PortRange": { "shape": "S4i", "locationName": "portRange" } } } }, "CreateNetworkInterface": { "input": { "type": "structure", "required": [ "SubnetId" ], "members": { "SubnetId": { "locationName": "subnetId" }, "Description": { "locationName": "description" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "Groups": { "shape": "S4n", "locationName": "SecurityGroupId" }, "PrivateIpAddresses": { "shape": "S4o", "locationName": "privateIpAddresses" }, "SecondaryPrivateIpAddressCount": { "locationName": "secondaryPrivateIpAddressCount", "type": "integer" }, "DryRun": { "locationName": "dryRun", "type": "boolean" } } }, "output": { "type": "structure", "members": { "NetworkInterface": { "shape": "S4r", "locationName": "networkInterface" } } } }, "CreatePlacementGroup": { "input": { "type": "structure", "required": [ "GroupName", "Strategy" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": { "locationName": "groupName" }, "Strategy": { "locationName": "strategy" } } } }, "CreateReservedInstancesListing": { "input": { "type": "structure", "required": [ "ReservedInstancesId", "InstanceCount", "PriceSchedules", "ClientToken" ], "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" }, "PriceSchedules": { "locationName": "priceSchedules", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Term": { "locationName": "term", "type": "long" }, "Price": { "locationName": "price", "type": "double" }, "CurrencyCode": { "locationName": "currencyCode" } } } }, "ClientToken": { "locationName": "clientToken" } } }, "output": { "type": "structure", "members": { "ReservedInstancesListings": { "shape": "S20", "locationName": "reservedInstancesListingsSet" } } } }, "CreateRoute": { "input": { "type": "structure", "required": [ "RouteTableId", "DestinationCidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RouteTableId": { "locationName": "routeTableId" }, "DestinationCidrBlock": { "locationName": "destinationCidrBlock" }, "GatewayId": { "locationName": "gatewayId" }, "InstanceId": { "locationName": "instanceId" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" }, "NatGatewayId": { "locationName": "natGatewayId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "CreateRouteTable": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": { "locationName": "vpcId" } } }, "output": { "type": "structure", "members": { "RouteTable": { "shape": "S5a", "locationName": "routeTable" } } } }, "CreateSecurityGroup": { "input": { "type": "structure", "required": [ "GroupName", "Description" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": {}, "Description": { "locationName": "GroupDescription" }, "VpcId": {} } }, "output": { "type": "structure", "members": { "GroupId": { "locationName": "groupId" } } } }, "CreateSnapshot": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {}, "Description": {} } }, "output": { "shape": "S5m" } }, "CreateSpotDatafeedSubscription": { "input": { "type": "structure", "required": [ "Bucket" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Bucket": { "locationName": "bucket" }, "Prefix": { "locationName": "prefix" } } }, "output": { "type": "structure", "members": { "SpotDatafeedSubscription": { "shape": "S5q", "locationName": "spotDatafeedSubscription" } } } }, "CreateSubnet": { "input": { "type": "structure", "required": [ "VpcId", "CidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": {}, "CidrBlock": {}, "AvailabilityZone": {} } }, "output": { "type": "structure", "members": { "Subnet": { "shape": "S5v", "locationName": "subnet" } } } }, "CreateTags": { "input": { "type": "structure", "required": [ "Resources", "Tags" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Resources": { "shape": "S5y", "locationName": "ResourceId" }, "Tags": { "shape": "Sh", "locationName": "Tag" } } } }, "CreateVolume": { "input": { "type": "structure", "required": [ "AvailabilityZone" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Size": { "type": "integer" }, "SnapshotId": {}, "AvailabilityZone": {}, "VolumeType": {}, "Iops": { "type": "integer" }, "Encrypted": { "locationName": "encrypted", "type": "boolean" }, "KmsKeyId": {} } }, "output": { "shape": "S60" } }, "CreateVpc": { "input": { "type": "structure", "required": [ "CidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "CidrBlock": {}, "InstanceTenancy": { "locationName": "instanceTenancy" } } }, "output": { "type": "structure", "members": { "Vpc": { "shape": "S66", "locationName": "vpc" } } } }, "CreateVpcEndpoint": { "input": { "type": "structure", "required": [ "VpcId", "ServiceName" ], "members": { "DryRun": { "type": "boolean" }, "VpcId": {}, "ServiceName": {}, "PolicyDocument": {}, "RouteTableIds": { "shape": "S2c", "locationName": "RouteTableId" }, "ClientToken": {} } }, "output": { "type": "structure", "members": { "VpcEndpoint": { "shape": "S6a", "locationName": "vpcEndpoint" }, "ClientToken": { "locationName": "clientToken" } } } }, "CreateVpcPeeringConnection": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": { "locationName": "vpcId" }, "PeerVpcId": { "locationName": "peerVpcId" }, "PeerOwnerId": { "locationName": "peerOwnerId" } } }, "output": { "type": "structure", "members": { "VpcPeeringConnection": { "shape": "Sb", "locationName": "vpcPeeringConnection" } } } }, "CreateVpnConnection": { "input": { "type": "structure", "required": [ "Type", "CustomerGatewayId", "VpnGatewayId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Type": {}, "CustomerGatewayId": {}, "VpnGatewayId": {}, "Options": { "locationName": "options", "type": "structure", "members": { "StaticRoutesOnly": { "locationName": "staticRoutesOnly", "type": "boolean" } } } } }, "output": { "type": "structure", "members": { "VpnConnection": { "shape": "S6h", "locationName": "vpnConnection" } } } }, "CreateVpnConnectionRoute": { "input": { "type": "structure", "required": [ "VpnConnectionId", "DestinationCidrBlock" ], "members": { "VpnConnectionId": {}, "DestinationCidrBlock": {} } } }, "CreateVpnGateway": { "input": { "type": "structure", "required": [ "Type" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Type": {}, "AvailabilityZone": {} } }, "output": { "type": "structure", "members": { "VpnGateway": { "shape": "S6t", "locationName": "vpnGateway" } } } }, "DeleteCustomerGateway": { "input": { "type": "structure", "required": [ "CustomerGatewayId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "CustomerGatewayId": {} } } }, "DeleteDhcpOptions": { "input": { "type": "structure", "required": [ "DhcpOptionsId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "DhcpOptionsId": {} } } }, "DeleteFlowLogs": { "input": { "type": "structure", "required": [ "FlowLogIds" ], "members": { "FlowLogIds": { "shape": "S2c", "locationName": "FlowLogId" } } }, "output": { "type": "structure", "members": { "Unsuccessful": { "shape": "S3e", "locationName": "unsuccessful" } } } }, "DeleteInternetGateway": { "input": { "type": "structure", "required": [ "InternetGatewayId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InternetGatewayId": { "locationName": "internetGatewayId" } } } }, "DeleteKeyPair": { "input": { "type": "structure", "required": [ "KeyName" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "KeyName": {} } } }, "DeleteNatGateway": { "input": { "type": "structure", "required": [ "NatGatewayId" ], "members": { "NatGatewayId": {} } }, "output": { "type": "structure", "members": { "NatGatewayId": { "locationName": "natGatewayId" } } } }, "DeleteNetworkAcl": { "input": { "type": "structure", "required": [ "NetworkAclId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkAclId": { "locationName": "networkAclId" } } } }, "DeleteNetworkAclEntry": { "input": { "type": "structure", "required": [ "NetworkAclId", "RuleNumber", "Egress" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkAclId": { "locationName": "networkAclId" }, "RuleNumber": { "locationName": "ruleNumber", "type": "integer" }, "Egress": { "locationName": "egress", "type": "boolean" } } } }, "DeleteNetworkInterface": { "input": { "type": "structure", "required": [ "NetworkInterfaceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" } } } }, "DeletePlacementGroup": { "input": { "type": "structure", "required": [ "GroupName" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": { "locationName": "groupName" } } } }, "DeleteRoute": { "input": { "type": "structure", "required": [ "RouteTableId", "DestinationCidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RouteTableId": { "locationName": "routeTableId" }, "DestinationCidrBlock": { "locationName": "destinationCidrBlock" } } } }, "DeleteRouteTable": { "input": { "type": "structure", "required": [ "RouteTableId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RouteTableId": { "locationName": "routeTableId" } } } }, "DeleteSecurityGroup": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": {}, "GroupId": {} } } }, "DeleteSnapshot": { "input": { "type": "structure", "required": [ "SnapshotId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SnapshotId": {} } } }, "DeleteSpotDatafeedSubscription": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" } } } }, "DeleteSubnet": { "input": { "type": "structure", "required": [ "SubnetId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SubnetId": {} } } }, "DeleteTags": { "input": { "type": "structure", "required": [ "Resources" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Resources": { "shape": "S5y", "locationName": "resourceId" }, "Tags": { "shape": "Sh", "locationName": "tag" } } } }, "DeleteVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {} } } }, "DeleteVpc": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": {} } } }, "DeleteVpcEndpoints": { "input": { "type": "structure", "required": [ "VpcEndpointIds" ], "members": { "DryRun": { "type": "boolean" }, "VpcEndpointIds": { "shape": "S2c", "locationName": "VpcEndpointId" } } }, "output": { "type": "structure", "members": { "Unsuccessful": { "shape": "S3e", "locationName": "unsuccessful" } } } }, "DeleteVpcPeeringConnection": { "input": { "type": "structure", "required": [ "VpcPeeringConnectionId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "DeleteVpnConnection": { "input": { "type": "structure", "required": [ "VpnConnectionId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnConnectionId": {} } } }, "DeleteVpnConnectionRoute": { "input": { "type": "structure", "required": [ "VpnConnectionId", "DestinationCidrBlock" ], "members": { "VpnConnectionId": {}, "DestinationCidrBlock": {} } } }, "DeleteVpnGateway": { "input": { "type": "structure", "required": [ "VpnGatewayId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnGatewayId": {} } } }, "DeregisterImage": { "input": { "type": "structure", "required": [ "ImageId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageId": {} } } }, "DescribeAccountAttributes": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AttributeNames": { "locationName": "attributeName", "type": "list", "member": { "locationName": "attributeName" } } } }, "output": { "type": "structure", "members": { "AccountAttributes": { "locationName": "accountAttributeSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "AttributeName": { "locationName": "attributeName" }, "AttributeValues": { "locationName": "attributeValueSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "AttributeValue": { "locationName": "attributeValue" } } } } } } } } } }, "DescribeAddresses": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIps": { "locationName": "PublicIp", "type": "list", "member": { "locationName": "PublicIp" } }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "AllocationIds": { "locationName": "AllocationId", "type": "list", "member": { "locationName": "AllocationId" } } } }, "output": { "type": "structure", "members": { "Addresses": { "locationName": "addressesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "PublicIp": { "locationName": "publicIp" }, "AllocationId": { "locationName": "allocationId" }, "AssociationId": { "locationName": "associationId" }, "Domain": { "locationName": "domain" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "NetworkInterfaceOwnerId": { "locationName": "networkInterfaceOwnerId" }, "PrivateIpAddress": { "locationName": "privateIpAddress" } } } } } } }, "DescribeAvailabilityZones": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ZoneNames": { "locationName": "ZoneName", "type": "list", "member": { "locationName": "ZoneName" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "AvailabilityZones": { "locationName": "availabilityZoneInfo", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ZoneName": { "locationName": "zoneName" }, "State": { "locationName": "zoneState" }, "RegionName": { "locationName": "regionName" }, "Messages": { "locationName": "messageSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Message": { "locationName": "message" } } } } } } } } } }, "DescribeBundleTasks": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "BundleIds": { "locationName": "BundleId", "type": "list", "member": { "locationName": "BundleId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "BundleTasks": { "locationName": "bundleInstanceTasksSet", "type": "list", "member": { "shape": "S1p", "locationName": "item" } } } } }, "DescribeClassicLinkInstances": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "Instances": { "locationName": "instancesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "VpcId": { "locationName": "vpcId" }, "Groups": { "shape": "S4t", "locationName": "groupSet" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeConversionTasks": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ConversionTaskIds": { "locationName": "conversionTaskId", "type": "list", "member": { "locationName": "item" } } } }, "output": { "type": "structure", "members": { "ConversionTasks": { "locationName": "conversionTasks", "type": "list", "member": { "shape": "S8p", "locationName": "item" } } } } }, "DescribeCustomerGateways": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "CustomerGatewayIds": { "locationName": "CustomerGatewayId", "type": "list", "member": { "locationName": "CustomerGatewayId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "CustomerGateways": { "locationName": "customerGatewaySet", "type": "list", "member": { "shape": "S30", "locationName": "item" } } } } }, "DescribeDhcpOptions": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "DhcpOptionsIds": { "locationName": "DhcpOptionsId", "type": "list", "member": { "locationName": "DhcpOptionsId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "DhcpOptions": { "locationName": "dhcpOptionsSet", "type": "list", "member": { "shape": "S35", "locationName": "item" } } } } }, "DescribeExportTasks": { "input": { "type": "structure", "members": { "ExportTaskIds": { "locationName": "exportTaskId", "type": "list", "member": { "locationName": "ExportTaskId" } } } }, "output": { "type": "structure", "members": { "ExportTasks": { "locationName": "exportTaskSet", "type": "list", "member": { "shape": "S3t", "locationName": "item" } } } } }, "DescribeFlowLogs": { "input": { "type": "structure", "members": { "FlowLogIds": { "shape": "S2c", "locationName": "FlowLogId" }, "Filter": { "shape": "S7y" }, "NextToken": {}, "MaxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "FlowLogs": { "locationName": "flowLogSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "CreationTime": { "locationName": "creationTime", "type": "timestamp" }, "FlowLogId": { "locationName": "flowLogId" }, "FlowLogStatus": { "locationName": "flowLogStatus" }, "ResourceId": { "locationName": "resourceId" }, "TrafficType": { "locationName": "trafficType" }, "LogGroupName": { "locationName": "logGroupName" }, "DeliverLogsStatus": { "locationName": "deliverLogsStatus" }, "DeliverLogsErrorMessage": { "locationName": "deliverLogsErrorMessage" }, "DeliverLogsPermissionArn": { "locationName": "deliverLogsPermissionArn" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeHostReservationOfferings": { "input": { "type": "structure", "members": { "OfferingId": {}, "MinDuration": { "type": "integer" }, "MaxDuration": { "type": "integer" }, "Filter": { "shape": "S7y" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "OfferingSet": { "locationName": "offeringSet", "type": "list", "member": { "type": "structure", "members": { "OfferingId": { "locationName": "offeringId" }, "InstanceFamily": { "locationName": "instanceFamily" }, "PaymentOption": { "locationName": "paymentOption" }, "UpfrontPrice": { "locationName": "upfrontPrice" }, "HourlyPrice": { "locationName": "hourlyPrice" }, "CurrencyCode": { "locationName": "currencyCode" }, "Duration": { "locationName": "duration", "type": "integer" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeHostReservations": { "input": { "type": "structure", "members": { "HostReservationIdSet": { "type": "list", "member": { "locationName": "item" } }, "Filter": { "shape": "S7y" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "HostReservationSet": { "locationName": "hostReservationSet", "type": "list", "member": { "type": "structure", "members": { "HostReservationId": { "locationName": "hostReservationId" }, "HostIdSet": { "shape": "S9o", "locationName": "hostIdSet" }, "OfferingId": { "locationName": "offeringId" }, "InstanceFamily": { "locationName": "instanceFamily" }, "PaymentOption": { "locationName": "paymentOption" }, "HourlyPrice": { "locationName": "hourlyPrice" }, "UpfrontPrice": { "locationName": "upfrontPrice" }, "CurrencyCode": { "locationName": "currencyCode" }, "Count": { "locationName": "count", "type": "integer" }, "Duration": { "locationName": "duration", "type": "integer" }, "End": { "locationName": "end", "type": "timestamp" }, "Start": { "locationName": "start", "type": "timestamp" }, "State": { "locationName": "state" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeHosts": { "input": { "type": "structure", "members": { "HostIds": { "shape": "S9r", "locationName": "hostId" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" }, "Filter": { "shape": "S7y", "locationName": "filter" } } }, "output": { "type": "structure", "members": { "Hosts": { "locationName": "hostSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "HostId": { "locationName": "hostId" }, "AutoPlacement": { "locationName": "autoPlacement" }, "HostReservationId": { "locationName": "hostReservationId" }, "ClientToken": { "locationName": "clientToken" }, "HostProperties": { "locationName": "hostProperties", "type": "structure", "members": { "Sockets": { "locationName": "sockets", "type": "integer" }, "Cores": { "locationName": "cores", "type": "integer" }, "TotalVCpus": { "locationName": "totalVCpus", "type": "integer" }, "InstanceType": { "locationName": "instanceType" } } }, "State": { "locationName": "state" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Instances": { "locationName": "instances", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "InstanceType": { "locationName": "instanceType" } } } }, "AvailableCapacity": { "locationName": "availableCapacity", "type": "structure", "members": { "AvailableInstanceCapacity": { "locationName": "availableInstanceCapacity", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceType": { "locationName": "instanceType" }, "AvailableCapacity": { "locationName": "availableCapacity", "type": "integer" }, "TotalCapacity": { "locationName": "totalCapacity", "type": "integer" } } } }, "AvailableVCpus": { "locationName": "availableVCpus", "type": "integer" } } } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeIdFormat": { "input": { "type": "structure", "members": { "Resource": {} } }, "output": { "type": "structure", "members": { "Statuses": { "shape": "Sa4", "locationName": "statusSet" } } } }, "DescribeIdentityIdFormat": { "input": { "type": "structure", "required": [ "PrincipalArn" ], "members": { "Resource": { "locationName": "resource" }, "PrincipalArn": { "locationName": "principalArn" } } }, "output": { "type": "structure", "members": { "Statuses": { "shape": "Sa4", "locationName": "statusSet" } } } }, "DescribeImageAttribute": { "input": { "type": "structure", "required": [ "ImageId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageId": {}, "Attribute": {} } }, "output": { "type": "structure", "members": { "ImageId": { "locationName": "imageId" }, "LaunchPermissions": { "shape": "Sab", "locationName": "launchPermission" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" }, "KernelId": { "shape": "S39", "locationName": "kernel" }, "RamdiskId": { "shape": "S39", "locationName": "ramdisk" }, "Description": { "shape": "S39", "locationName": "description" }, "SriovNetSupport": { "shape": "S39", "locationName": "sriovNetSupport" }, "BlockDeviceMappings": { "shape": "Sah", "locationName": "blockDeviceMapping" } } } }, "DescribeImages": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageIds": { "locationName": "ImageId", "type": "list", "member": { "locationName": "ImageId" } }, "Owners": { "shape": "Sak", "locationName": "Owner" }, "ExecutableUsers": { "locationName": "ExecutableBy", "type": "list", "member": { "locationName": "ExecutableBy" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "Images": { "locationName": "imagesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ImageId": { "locationName": "imageId" }, "ImageLocation": { "locationName": "imageLocation" }, "State": { "locationName": "imageState" }, "OwnerId": { "locationName": "imageOwnerId" }, "CreationDate": { "locationName": "creationDate" }, "Public": { "locationName": "isPublic", "type": "boolean" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" }, "Architecture": { "locationName": "architecture" }, "ImageType": { "locationName": "imageType" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "Platform": { "locationName": "platform" }, "SriovNetSupport": { "locationName": "sriovNetSupport" }, "EnaSupport": { "locationName": "enaSupport", "type": "boolean" }, "StateReason": { "shape": "Sas", "locationName": "stateReason" }, "ImageOwnerAlias": { "locationName": "imageOwnerAlias" }, "Name": { "locationName": "name" }, "Description": { "locationName": "description" }, "RootDeviceType": { "locationName": "rootDeviceType" }, "RootDeviceName": { "locationName": "rootDeviceName" }, "BlockDeviceMappings": { "shape": "Sah", "locationName": "blockDeviceMapping" }, "VirtualizationType": { "locationName": "virtualizationType" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "Hypervisor": { "locationName": "hypervisor" } } } } } } }, "DescribeImportImageTasks": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "ImportTaskIds": { "shape": "Sax", "locationName": "ImportTaskId" }, "NextToken": {}, "MaxResults": { "type": "integer" }, "Filters": { "shape": "S7y" } } }, "output": { "type": "structure", "members": { "ImportImageTasks": { "locationName": "importImageTaskSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ImportTaskId": { "locationName": "importTaskId" }, "Architecture": { "locationName": "architecture" }, "LicenseType": { "locationName": "licenseType" }, "Platform": { "locationName": "platform" }, "Hypervisor": { "locationName": "hypervisor" }, "Description": { "locationName": "description" }, "SnapshotDetails": { "shape": "Sb1", "locationName": "snapshotDetailSet" }, "ImageId": { "locationName": "imageId" }, "Progress": { "locationName": "progress" }, "StatusMessage": { "locationName": "statusMessage" }, "Status": { "locationName": "status" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeImportSnapshotTasks": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "ImportTaskIds": { "shape": "Sax", "locationName": "ImportTaskId" }, "NextToken": {}, "MaxResults": { "type": "integer" }, "Filters": { "shape": "S7y" } } }, "output": { "type": "structure", "members": { "ImportSnapshotTasks": { "locationName": "importSnapshotTaskSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ImportTaskId": { "locationName": "importTaskId" }, "SnapshotTaskDetail": { "shape": "Sb8", "locationName": "snapshotTaskDetail" }, "Description": { "locationName": "description" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeInstanceAttribute": { "input": { "type": "structure", "required": [ "InstanceId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "Attribute": { "locationName": "attribute" } } }, "output": { "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "InstanceType": { "shape": "S39", "locationName": "instanceType" }, "KernelId": { "shape": "S39", "locationName": "kernel" }, "RamdiskId": { "shape": "S39", "locationName": "ramdisk" }, "UserData": { "shape": "S39", "locationName": "userData" }, "DisableApiTermination": { "shape": "Sbc", "locationName": "disableApiTermination" }, "InstanceInitiatedShutdownBehavior": { "shape": "S39", "locationName": "instanceInitiatedShutdownBehavior" }, "RootDeviceName": { "shape": "S39", "locationName": "rootDeviceName" }, "BlockDeviceMappings": { "shape": "Sbd", "locationName": "blockDeviceMapping" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" }, "EbsOptimized": { "shape": "Sbc", "locationName": "ebsOptimized" }, "SriovNetSupport": { "shape": "S39", "locationName": "sriovNetSupport" }, "EnaSupport": { "shape": "Sbc", "locationName": "enaSupport" }, "SourceDestCheck": { "shape": "Sbc", "locationName": "sourceDestCheck" }, "Groups": { "shape": "S4t", "locationName": "groupSet" } } } }, "DescribeInstanceStatus": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": {}, "MaxResults": { "type": "integer" }, "IncludeAllInstances": { "locationName": "includeAllInstances", "type": "boolean" } } }, "output": { "type": "structure", "members": { "InstanceStatuses": { "locationName": "instanceStatusSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Events": { "locationName": "eventsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Code": { "locationName": "code" }, "Description": { "locationName": "description" }, "NotBefore": { "locationName": "notBefore", "type": "timestamp" }, "NotAfter": { "locationName": "notAfter", "type": "timestamp" } } } }, "InstanceState": { "shape": "Sbn", "locationName": "instanceState" }, "SystemStatus": { "shape": "Sbp", "locationName": "systemStatus" }, "InstanceStatus": { "shape": "Sbp", "locationName": "instanceStatus" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeInstances": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "Reservations": { "locationName": "reservationSet", "type": "list", "member": { "shape": "Sby", "locationName": "item" } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeInternetGateways": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InternetGatewayIds": { "shape": "S2c", "locationName": "internetGatewayId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "InternetGateways": { "locationName": "internetGatewaySet", "type": "list", "member": { "shape": "S3z", "locationName": "item" } } } } }, "DescribeKeyPairs": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "KeyNames": { "locationName": "KeyName", "type": "list", "member": { "locationName": "KeyName" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "KeyPairs": { "locationName": "keySet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "KeyName": { "locationName": "keyName" }, "KeyFingerprint": { "locationName": "keyFingerprint" } } } } } } }, "DescribeMovingAddresses": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIps": { "shape": "S2c", "locationName": "publicIp" }, "NextToken": { "locationName": "nextToken" }, "Filters": { "shape": "S7y", "locationName": "filter" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "MovingAddressStatuses": { "locationName": "movingAddressStatusSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PublicIp": { "locationName": "publicIp" }, "MoveStatus": { "locationName": "moveStatus" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeNatGateways": { "input": { "type": "structure", "members": { "NatGatewayIds": { "shape": "S2c", "locationName": "NatGatewayId" }, "Filter": { "shape": "S7y" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "NatGateways": { "locationName": "natGatewaySet", "type": "list", "member": { "shape": "S46", "locationName": "item" } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeNetworkAcls": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkAclIds": { "shape": "S2c", "locationName": "NetworkAclId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "NetworkAcls": { "locationName": "networkAclSet", "type": "list", "member": { "shape": "S4d", "locationName": "item" } } } } }, "DescribeNetworkInterfaceAttribute": { "input": { "type": "structure", "required": [ "NetworkInterfaceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "Attribute": { "locationName": "attribute" } } }, "output": { "type": "structure", "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "Description": { "shape": "S39", "locationName": "description" }, "SourceDestCheck": { "shape": "Sbc", "locationName": "sourceDestCheck" }, "Groups": { "shape": "S4t", "locationName": "groupSet" }, "Attachment": { "shape": "S4v", "locationName": "attachment" } } } }, "DescribeNetworkInterfaces": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceIds": { "locationName": "NetworkInterfaceId", "type": "list", "member": { "locationName": "item" } }, "Filters": { "shape": "S7y", "locationName": "filter" } } }, "output": { "type": "structure", "members": { "NetworkInterfaces": { "locationName": "networkInterfaceSet", "type": "list", "member": { "shape": "S4r", "locationName": "item" } } } } }, "DescribePlacementGroups": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupNames": { "locationName": "groupName", "type": "list", "member": {} }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "PlacementGroups": { "locationName": "placementGroupSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "GroupName": { "locationName": "groupName" }, "Strategy": { "locationName": "strategy" }, "State": { "locationName": "state" } } } } } } }, "DescribePrefixLists": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "PrefixListIds": { "shape": "S2c", "locationName": "PrefixListId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "PrefixLists": { "locationName": "prefixListSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PrefixListId": { "locationName": "prefixListId" }, "PrefixListName": { "locationName": "prefixListName" }, "Cidrs": { "shape": "S2c", "locationName": "cidrSet" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeRegions": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RegionNames": { "locationName": "RegionName", "type": "list", "member": { "locationName": "RegionName" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "Regions": { "locationName": "regionInfo", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "RegionName": { "locationName": "regionName" }, "Endpoint": { "locationName": "regionEndpoint" } } } } } } }, "DescribeReservedInstances": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ReservedInstancesIds": { "shape": "Sdj", "locationName": "ReservedInstancesId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "OfferingType": { "locationName": "offeringType" }, "OfferingClass": {} } }, "output": { "type": "structure", "members": { "ReservedInstances": { "locationName": "reservedInstancesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" }, "InstanceType": { "locationName": "instanceType" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Start": { "locationName": "start", "type": "timestamp" }, "End": { "locationName": "end", "type": "timestamp" }, "Duration": { "locationName": "duration", "type": "long" }, "UsagePrice": { "locationName": "usagePrice", "type": "float" }, "FixedPrice": { "locationName": "fixedPrice", "type": "float" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" }, "ProductDescription": { "locationName": "productDescription" }, "State": { "locationName": "state" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "InstanceTenancy": { "locationName": "instanceTenancy" }, "CurrencyCode": { "locationName": "currencyCode" }, "OfferingType": { "locationName": "offeringType" }, "RecurringCharges": { "shape": "Sds", "locationName": "recurringCharges" }, "OfferingClass": { "locationName": "offeringClass" }, "Scope": { "locationName": "scope" } } } } } } }, "DescribeReservedInstancesListings": { "input": { "type": "structure", "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" }, "ReservedInstancesListingId": { "locationName": "reservedInstancesListingId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "ReservedInstancesListings": { "shape": "S20", "locationName": "reservedInstancesListingsSet" } } } }, "DescribeReservedInstancesModifications": { "input": { "type": "structure", "members": { "ReservedInstancesModificationIds": { "locationName": "ReservedInstancesModificationId", "type": "list", "member": { "locationName": "ReservedInstancesModificationId" } }, "NextToken": { "locationName": "nextToken" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "ReservedInstancesModifications": { "locationName": "reservedInstancesModificationsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesModificationId": { "locationName": "reservedInstancesModificationId" }, "ReservedInstancesIds": { "locationName": "reservedInstancesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" } } } }, "ModificationResults": { "locationName": "modificationResultSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" }, "TargetConfiguration": { "shape": "Se7", "locationName": "targetConfiguration" } } } }, "CreateDate": { "locationName": "createDate", "type": "timestamp" }, "UpdateDate": { "locationName": "updateDate", "type": "timestamp" }, "EffectiveDate": { "locationName": "effectiveDate", "type": "timestamp" }, "Status": { "locationName": "status" }, "StatusMessage": { "locationName": "statusMessage" }, "ClientToken": { "locationName": "clientToken" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeReservedInstancesOfferings": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ReservedInstancesOfferingIds": { "locationName": "ReservedInstancesOfferingId", "type": "list", "member": {} }, "InstanceType": {}, "AvailabilityZone": {}, "ProductDescription": {}, "Filters": { "shape": "S7y", "locationName": "Filter" }, "InstanceTenancy": { "locationName": "instanceTenancy" }, "OfferingType": { "locationName": "offeringType" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" }, "IncludeMarketplace": { "type": "boolean" }, "MinDuration": { "type": "long" }, "MaxDuration": { "type": "long" }, "MaxInstanceCount": { "type": "integer" }, "OfferingClass": {} } }, "output": { "type": "structure", "members": { "ReservedInstancesOfferings": { "locationName": "reservedInstancesOfferingsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesOfferingId": { "locationName": "reservedInstancesOfferingId" }, "InstanceType": { "locationName": "instanceType" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Duration": { "locationName": "duration", "type": "long" }, "UsagePrice": { "locationName": "usagePrice", "type": "float" }, "FixedPrice": { "locationName": "fixedPrice", "type": "float" }, "ProductDescription": { "locationName": "productDescription" }, "InstanceTenancy": { "locationName": "instanceTenancy" }, "CurrencyCode": { "locationName": "currencyCode" }, "OfferingType": { "locationName": "offeringType" }, "RecurringCharges": { "shape": "Sds", "locationName": "recurringCharges" }, "Marketplace": { "locationName": "marketplace", "type": "boolean" }, "PricingDetails": { "locationName": "pricingDetailsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Price": { "locationName": "price", "type": "double" }, "Count": { "locationName": "count", "type": "integer" } } } }, "OfferingClass": { "locationName": "offeringClass" }, "Scope": { "locationName": "scope" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeRouteTables": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RouteTableIds": { "shape": "S2c", "locationName": "RouteTableId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "RouteTables": { "locationName": "routeTableSet", "type": "list", "member": { "shape": "S5a", "locationName": "item" } } } } }, "DescribeScheduledInstanceAvailability": { "input": { "type": "structure", "required": [ "Recurrence", "FirstSlotStartTimeRange" ], "members": { "DryRun": { "type": "boolean" }, "Recurrence": { "type": "structure", "members": { "Frequency": {}, "Interval": { "type": "integer" }, "OccurrenceDays": { "locationName": "OccurrenceDay", "type": "list", "member": { "locationName": "OccurenceDay", "type": "integer" } }, "OccurrenceRelativeToEnd": { "type": "boolean" }, "OccurrenceUnit": {} } }, "FirstSlotStartTimeRange": { "type": "structure", "required": [ "EarliestTime", "LatestTime" ], "members": { "EarliestTime": { "type": "timestamp" }, "LatestTime": { "type": "timestamp" } } }, "MinSlotDurationInHours": { "type": "integer" }, "MaxSlotDurationInHours": { "type": "integer" }, "NextToken": {}, "MaxResults": { "type": "integer" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "NextToken": { "locationName": "nextToken" }, "ScheduledInstanceAvailabilitySet": { "locationName": "scheduledInstanceAvailabilitySet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceType": { "locationName": "instanceType" }, "Platform": { "locationName": "platform" }, "NetworkPlatform": { "locationName": "networkPlatform" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "PurchaseToken": { "locationName": "purchaseToken" }, "SlotDurationInHours": { "locationName": "slotDurationInHours", "type": "integer" }, "Recurrence": { "shape": "Sep", "locationName": "recurrence" }, "FirstSlotStartTime": { "locationName": "firstSlotStartTime", "type": "timestamp" }, "HourlyPrice": { "locationName": "hourlyPrice" }, "TotalScheduledInstanceHours": { "locationName": "totalScheduledInstanceHours", "type": "integer" }, "AvailableInstanceCount": { "locationName": "availableInstanceCount", "type": "integer" }, "MinTermDurationInDays": { "locationName": "minTermDurationInDays", "type": "integer" }, "MaxTermDurationInDays": { "locationName": "maxTermDurationInDays", "type": "integer" } } } } } } }, "DescribeScheduledInstances": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "ScheduledInstanceIds": { "locationName": "ScheduledInstanceId", "type": "list", "member": { "locationName": "ScheduledInstanceId" } }, "SlotStartTimeRange": { "type": "structure", "members": { "EarliestTime": { "type": "timestamp" }, "LatestTime": { "type": "timestamp" } } }, "NextToken": {}, "MaxResults": { "type": "integer" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "NextToken": { "locationName": "nextToken" }, "ScheduledInstanceSet": { "locationName": "scheduledInstanceSet", "type": "list", "member": { "shape": "Sew", "locationName": "item" } } } } }, "DescribeSecurityGroupReferences": { "input": { "type": "structure", "required": [ "GroupId" ], "members": { "DryRun": { "type": "boolean" }, "GroupId": { "type": "list", "member": { "locationName": "item" } } } }, "output": { "type": "structure", "members": { "SecurityGroupReferenceSet": { "locationName": "securityGroupReferenceSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "GroupId", "ReferencingVpcId" ], "members": { "GroupId": { "locationName": "groupId" }, "ReferencingVpcId": { "locationName": "referencingVpcId" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" } } } } } } }, "DescribeSecurityGroups": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupNames": { "shape": "Sf3", "locationName": "GroupName" }, "GroupIds": { "shape": "Sy", "locationName": "GroupId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "SecurityGroups": { "locationName": "securityGroupInfo", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "OwnerId": { "locationName": "ownerId" }, "GroupName": { "locationName": "groupName" }, "GroupId": { "locationName": "groupId" }, "Description": { "locationName": "groupDescription" }, "IpPermissions": { "shape": "S1b", "locationName": "ipPermissions" }, "IpPermissionsEgress": { "shape": "S1b", "locationName": "ipPermissionsEgress" }, "VpcId": { "locationName": "vpcId" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } } } } } }, "DescribeSnapshotAttribute": { "input": { "type": "structure", "required": [ "SnapshotId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SnapshotId": {}, "Attribute": {} } }, "output": { "type": "structure", "members": { "SnapshotId": { "locationName": "snapshotId" }, "CreateVolumePermissions": { "shape": "Sfa", "locationName": "createVolumePermission" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" } } } }, "DescribeSnapshots": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SnapshotIds": { "locationName": "SnapshotId", "type": "list", "member": { "locationName": "SnapshotId" } }, "OwnerIds": { "shape": "Sak", "locationName": "Owner" }, "RestorableByUserIds": { "locationName": "RestorableBy", "type": "list", "member": {} }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": {}, "MaxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Snapshots": { "locationName": "snapshotSet", "type": "list", "member": { "shape": "S5m", "locationName": "item" } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeSpotDatafeedSubscription": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" } } }, "output": { "type": "structure", "members": { "SpotDatafeedSubscription": { "shape": "S5q", "locationName": "spotDatafeedSubscription" } } } }, "DescribeSpotFleetInstances": { "input": { "type": "structure", "required": [ "SpotFleetRequestId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "required": [ "SpotFleetRequestId", "ActiveInstances" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "ActiveInstances": { "locationName": "activeInstanceSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceType": { "locationName": "instanceType" }, "InstanceId": { "locationName": "instanceId" }, "SpotInstanceRequestId": { "locationName": "spotInstanceRequestId" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeSpotFleetRequestHistory": { "input": { "type": "structure", "required": [ "SpotFleetRequestId", "StartTime" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "EventType": { "locationName": "eventType" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "required": [ "SpotFleetRequestId", "StartTime", "LastEvaluatedTime", "HistoryRecords" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "LastEvaluatedTime": { "locationName": "lastEvaluatedTime", "type": "timestamp" }, "HistoryRecords": { "locationName": "historyRecordSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "Timestamp", "EventType", "EventInformation" ], "members": { "Timestamp": { "locationName": "timestamp", "type": "timestamp" }, "EventType": { "locationName": "eventType" }, "EventInformation": { "locationName": "eventInformation", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "EventSubType": { "locationName": "eventSubType" }, "EventDescription": { "locationName": "eventDescription" } } } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeSpotFleetRequests": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotFleetRequestIds": { "shape": "S2c", "locationName": "spotFleetRequestId" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "required": [ "SpotFleetRequestConfigs" ], "members": { "SpotFleetRequestConfigs": { "locationName": "spotFleetRequestConfigSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "SpotFleetRequestId", "SpotFleetRequestState", "SpotFleetRequestConfig", "CreateTime" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "SpotFleetRequestState": { "locationName": "spotFleetRequestState" }, "SpotFleetRequestConfig": { "shape": "Sfx", "locationName": "spotFleetRequestConfig" }, "CreateTime": { "locationName": "createTime", "type": "timestamp" }, "ActivityStatus": { "locationName": "activityStatus" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeSpotInstanceRequests": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotInstanceRequestIds": { "shape": "S2m", "locationName": "SpotInstanceRequestId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "SpotInstanceRequests": { "shape": "Sgb", "locationName": "spotInstanceRequestSet" } } } }, "DescribeSpotPriceHistory": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "EndTime": { "locationName": "endTime", "type": "timestamp" }, "InstanceTypes": { "locationName": "InstanceType", "type": "list", "member": {} }, "ProductDescriptions": { "locationName": "ProductDescription", "type": "list", "member": {} }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "MaxResults": { "locationName": "maxResults", "type": "integer" }, "NextToken": { "locationName": "nextToken" } } }, "output": { "type": "structure", "members": { "SpotPriceHistory": { "locationName": "spotPriceHistorySet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceType": { "locationName": "instanceType" }, "ProductDescription": { "locationName": "productDescription" }, "SpotPrice": { "locationName": "spotPrice" }, "Timestamp": { "locationName": "timestamp", "type": "timestamp" }, "AvailabilityZone": { "locationName": "availabilityZone" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeStaleSecurityGroups": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "type": "boolean" }, "VpcId": {}, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "StaleSecurityGroupSet": { "locationName": "staleSecurityGroupSet", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "GroupId" ], "members": { "GroupId": { "locationName": "groupId" }, "GroupName": { "locationName": "groupName" }, "Description": { "locationName": "description" }, "VpcId": { "locationName": "vpcId" }, "StaleIpPermissions": { "shape": "Sgu", "locationName": "staleIpPermissions" }, "StaleIpPermissionsEgress": { "shape": "Sgu", "locationName": "staleIpPermissionsEgress" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeSubnets": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SubnetIds": { "locationName": "SubnetId", "type": "list", "member": { "locationName": "SubnetId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "Subnets": { "locationName": "subnetSet", "type": "list", "member": { "shape": "S5v", "locationName": "item" } } } } }, "DescribeTags": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "MaxResults": { "locationName": "maxResults", "type": "integer" }, "NextToken": { "locationName": "nextToken" } } }, "output": { "type": "structure", "members": { "Tags": { "locationName": "tagSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ResourceId": { "locationName": "resourceId" }, "ResourceType": { "locationName": "resourceType" }, "Key": { "locationName": "key" }, "Value": { "locationName": "value" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVolumeAttribute": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {}, "Attribute": {} } }, "output": { "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "AutoEnableIO": { "shape": "Sbc", "locationName": "autoEnableIO" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" } } } }, "DescribeVolumeStatus": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeIds": { "shape": "Shc", "locationName": "VolumeId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": {}, "MaxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "VolumeStatuses": { "locationName": "volumeStatusSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "VolumeStatus": { "locationName": "volumeStatus", "type": "structure", "members": { "Status": { "locationName": "status" }, "Details": { "locationName": "details", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Name": { "locationName": "name" }, "Status": { "locationName": "status" } } } } } }, "Events": { "locationName": "eventsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "EventType": { "locationName": "eventType" }, "Description": { "locationName": "description" }, "NotBefore": { "locationName": "notBefore", "type": "timestamp" }, "NotAfter": { "locationName": "notAfter", "type": "timestamp" }, "EventId": { "locationName": "eventId" } } } }, "Actions": { "locationName": "actionsSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Code": { "locationName": "code" }, "Description": { "locationName": "description" }, "EventType": { "locationName": "eventType" }, "EventId": { "locationName": "eventId" } } } } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVolumes": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeIds": { "shape": "Shc", "locationName": "VolumeId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "NextToken": { "locationName": "nextToken" }, "MaxResults": { "locationName": "maxResults", "type": "integer" } } }, "output": { "type": "structure", "members": { "Volumes": { "locationName": "volumeSet", "type": "list", "member": { "shape": "S60", "locationName": "item" } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVpcAttribute": { "input": { "type": "structure", "required": [ "VpcId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": {}, "Attribute": {} } }, "output": { "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "EnableDnsSupport": { "shape": "Sbc", "locationName": "enableDnsSupport" }, "EnableDnsHostnames": { "shape": "Sbc", "locationName": "enableDnsHostnames" } } } }, "DescribeVpcClassicLink": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcIds": { "shape": "Shw", "locationName": "VpcId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "Vpcs": { "locationName": "vpcSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "ClassicLinkEnabled": { "locationName": "classicLinkEnabled", "type": "boolean" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } } } } } }, "DescribeVpcClassicLinkDnsSupport": { "input": { "type": "structure", "members": { "VpcIds": { "shape": "Shw" }, "MaxResults": { "locationName": "maxResults", "type": "integer" }, "NextToken": { "locationName": "nextToken" } } }, "output": { "type": "structure", "members": { "Vpcs": { "locationName": "vpcs", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "ClassicLinkDnsSupported": { "locationName": "classicLinkDnsSupported", "type": "boolean" } } } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVpcEndpointServices": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ServiceNames": { "shape": "S2c", "locationName": "serviceNameSet" }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVpcEndpoints": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "VpcEndpointIds": { "shape": "S2c", "locationName": "VpcEndpointId" }, "Filters": { "shape": "S7y", "locationName": "Filter" }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "VpcEndpoints": { "locationName": "vpcEndpointSet", "type": "list", "member": { "shape": "S6a", "locationName": "item" } }, "NextToken": { "locationName": "nextToken" } } } }, "DescribeVpcPeeringConnections": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcPeeringConnectionIds": { "shape": "S2c", "locationName": "VpcPeeringConnectionId" }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "VpcPeeringConnections": { "locationName": "vpcPeeringConnectionSet", "type": "list", "member": { "shape": "Sb", "locationName": "item" } } } } }, "DescribeVpcs": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcIds": { "locationName": "VpcId", "type": "list", "member": { "locationName": "VpcId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "Vpcs": { "locationName": "vpcSet", "type": "list", "member": { "shape": "S66", "locationName": "item" } } } } }, "DescribeVpnConnections": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnConnectionIds": { "locationName": "VpnConnectionId", "type": "list", "member": { "locationName": "VpnConnectionId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "VpnConnections": { "locationName": "vpnConnectionSet", "type": "list", "member": { "shape": "S6h", "locationName": "item" } } } } }, "DescribeVpnGateways": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnGatewayIds": { "locationName": "VpnGatewayId", "type": "list", "member": { "locationName": "VpnGatewayId" } }, "Filters": { "shape": "S7y", "locationName": "Filter" } } }, "output": { "type": "structure", "members": { "VpnGateways": { "locationName": "vpnGatewaySet", "type": "list", "member": { "shape": "S6t", "locationName": "item" } } } } }, "DetachClassicLinkVpc": { "input": { "type": "structure", "required": [ "InstanceId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "VpcId": { "locationName": "vpcId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "DetachInternetGateway": { "input": { "type": "structure", "required": [ "InternetGatewayId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InternetGatewayId": { "locationName": "internetGatewayId" }, "VpcId": { "locationName": "vpcId" } } } }, "DetachNetworkInterface": { "input": { "type": "structure", "required": [ "AttachmentId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AttachmentId": { "locationName": "attachmentId" }, "Force": { "locationName": "force", "type": "boolean" } } } }, "DetachVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {}, "InstanceId": {}, "Device": {}, "Force": { "type": "boolean" } } }, "output": { "shape": "S14" } }, "DetachVpnGateway": { "input": { "type": "structure", "required": [ "VpnGatewayId", "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpnGatewayId": {}, "VpcId": {} } } }, "DisableVgwRoutePropagation": { "input": { "type": "structure", "required": [ "RouteTableId", "GatewayId" ], "members": { "RouteTableId": {}, "GatewayId": {} } } }, "DisableVpcClassicLink": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": { "locationName": "vpcId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "DisableVpcClassicLinkDnsSupport": { "input": { "type": "structure", "members": { "VpcId": {} } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "DisassociateAddress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIp": {}, "AssociationId": {} } } }, "DisassociateRouteTable": { "input": { "type": "structure", "required": [ "AssociationId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AssociationId": { "locationName": "associationId" } } } }, "EnableVgwRoutePropagation": { "input": { "type": "structure", "required": [ "RouteTableId", "GatewayId" ], "members": { "RouteTableId": {}, "GatewayId": {} } } }, "EnableVolumeIO": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": { "locationName": "volumeId" } } } }, "EnableVpcClassicLink": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcId": { "locationName": "vpcId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "EnableVpcClassicLinkDnsSupport": { "input": { "type": "structure", "members": { "VpcId": {} } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "GetConsoleOutput": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": {} } }, "output": { "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "Timestamp": { "locationName": "timestamp", "type": "timestamp" }, "Output": { "locationName": "output" } } } }, "GetConsoleScreenshot": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "DryRun": { "type": "boolean" }, "InstanceId": {}, "WakeUp": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "ImageData": { "locationName": "imageData" } } } }, "GetHostReservationPurchasePreview": { "input": { "type": "structure", "required": [ "OfferingId", "HostIdSet" ], "members": { "OfferingId": {}, "HostIdSet": { "shape": "Sjc" } } }, "output": { "type": "structure", "members": { "Purchase": { "shape": "Sje", "locationName": "purchase" }, "TotalUpfrontPrice": { "locationName": "totalUpfrontPrice" }, "TotalHourlyPrice": { "locationName": "totalHourlyPrice" }, "CurrencyCode": { "locationName": "currencyCode" } } } }, "GetPasswordData": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": {} } }, "output": { "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "Timestamp": { "locationName": "timestamp", "type": "timestamp" }, "PasswordData": { "locationName": "passwordData" } } } }, "GetReservedInstancesExchangeQuote": { "input": { "type": "structure", "required": [ "ReservedInstanceIds" ], "members": { "DryRun": { "type": "boolean" }, "ReservedInstanceIds": { "shape": "S3", "locationName": "ReservedInstanceId" }, "TargetConfigurations": { "shape": "S5", "locationName": "TargetConfiguration" } } }, "output": { "type": "structure", "members": { "ReservedInstanceValueSet": { "locationName": "reservedInstanceValueSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstanceId": { "locationName": "reservedInstanceId" }, "ReservationValue": { "shape": "Sjm", "locationName": "reservationValue" } } } }, "ReservedInstanceValueRollup": { "shape": "Sjm", "locationName": "reservedInstanceValueRollup" }, "TargetConfigurationValueSet": { "locationName": "targetConfigurationValueSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "TargetConfiguration": { "locationName": "targetConfiguration", "type": "structure", "members": { "OfferingId": { "locationName": "offeringId" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" } } }, "ReservationValue": { "shape": "Sjm", "locationName": "reservationValue" } } } }, "TargetConfigurationValueRollup": { "shape": "Sjm", "locationName": "targetConfigurationValueRollup" }, "PaymentDue": { "locationName": "paymentDue" }, "CurrencyCode": { "locationName": "currencyCode" }, "OutputReservedInstancesWillExpireAt": { "locationName": "outputReservedInstancesWillExpireAt", "type": "timestamp" }, "IsValidExchange": { "locationName": "isValidExchange", "type": "boolean" }, "ValidationFailureReason": { "locationName": "validationFailureReason" } } } }, "ImportImage": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "Description": {}, "DiskContainers": { "locationName": "DiskContainer", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Description": {}, "Format": {}, "Url": {}, "UserBucket": { "shape": "Sjt" }, "DeviceName": {}, "SnapshotId": {} } } }, "LicenseType": {}, "Hypervisor": {}, "Architecture": {}, "Platform": {}, "ClientData": { "shape": "Sju" }, "ClientToken": {}, "RoleName": {} } }, "output": { "type": "structure", "members": { "ImportTaskId": { "locationName": "importTaskId" }, "Architecture": { "locationName": "architecture" }, "LicenseType": { "locationName": "licenseType" }, "Platform": { "locationName": "platform" }, "Hypervisor": { "locationName": "hypervisor" }, "Description": { "locationName": "description" }, "SnapshotDetails": { "shape": "Sb1", "locationName": "snapshotDetailSet" }, "ImageId": { "locationName": "imageId" }, "Progress": { "locationName": "progress" }, "StatusMessage": { "locationName": "statusMessage" }, "Status": { "locationName": "status" } } } }, "ImportInstance": { "input": { "type": "structure", "required": [ "Platform" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Description": { "locationName": "description" }, "LaunchSpecification": { "locationName": "launchSpecification", "type": "structure", "members": { "Architecture": { "locationName": "architecture" }, "GroupNames": { "shape": "Sjy", "locationName": "GroupName" }, "GroupIds": { "shape": "S4n", "locationName": "GroupId" }, "AdditionalInfo": { "locationName": "additionalInfo" }, "UserData": { "locationName": "userData", "type": "structure", "members": { "Data": { "locationName": "data" } } }, "InstanceType": { "locationName": "instanceType" }, "Placement": { "shape": "Sc2", "locationName": "placement" }, "Monitoring": { "locationName": "monitoring", "type": "boolean" }, "SubnetId": { "locationName": "subnetId" }, "InstanceInitiatedShutdownBehavior": { "locationName": "instanceInitiatedShutdownBehavior" }, "PrivateIpAddress": { "locationName": "privateIpAddress" } } }, "DiskImages": { "locationName": "diskImage", "type": "list", "member": { "type": "structure", "members": { "Image": { "shape": "Sk3" }, "Description": {}, "Volume": { "shape": "Sk4" } } } }, "Platform": { "locationName": "platform" } } }, "output": { "type": "structure", "members": { "ConversionTask": { "shape": "S8p", "locationName": "conversionTask" } } } }, "ImportKeyPair": { "input": { "type": "structure", "required": [ "KeyName", "PublicKeyMaterial" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "KeyName": { "locationName": "keyName" }, "PublicKeyMaterial": { "locationName": "publicKeyMaterial", "type": "blob" } } }, "output": { "type": "structure", "members": { "KeyName": { "locationName": "keyName" }, "KeyFingerprint": { "locationName": "keyFingerprint" } } } }, "ImportSnapshot": { "input": { "type": "structure", "members": { "DryRun": { "type": "boolean" }, "Description": {}, "DiskContainer": { "type": "structure", "members": { "Description": {}, "Format": {}, "Url": {}, "UserBucket": { "shape": "Sjt" } } }, "ClientData": { "shape": "Sju" }, "ClientToken": {}, "RoleName": {} } }, "output": { "type": "structure", "members": { "ImportTaskId": { "locationName": "importTaskId" }, "SnapshotTaskDetail": { "shape": "Sb8", "locationName": "snapshotTaskDetail" }, "Description": { "locationName": "description" } } } }, "ImportVolume": { "input": { "type": "structure", "required": [ "AvailabilityZone", "Image", "Volume" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Image": { "shape": "Sk3", "locationName": "image" }, "Description": { "locationName": "description" }, "Volume": { "shape": "Sk4", "locationName": "volume" } } }, "output": { "type": "structure", "members": { "ConversionTask": { "shape": "S8p", "locationName": "conversionTask" } } } }, "ModifyHosts": { "input": { "type": "structure", "required": [ "HostIds", "AutoPlacement" ], "members": { "HostIds": { "shape": "S9r", "locationName": "hostId" }, "AutoPlacement": { "locationName": "autoPlacement" } } }, "output": { "type": "structure", "members": { "Successful": { "shape": "Sp", "locationName": "successful" }, "Unsuccessful": { "shape": "Skf", "locationName": "unsuccessful" } } } }, "ModifyIdFormat": { "input": { "type": "structure", "required": [ "Resource", "UseLongIds" ], "members": { "Resource": {}, "UseLongIds": { "type": "boolean" } } } }, "ModifyIdentityIdFormat": { "input": { "type": "structure", "required": [ "Resource", "UseLongIds", "PrincipalArn" ], "members": { "Resource": { "locationName": "resource" }, "UseLongIds": { "locationName": "useLongIds", "type": "boolean" }, "PrincipalArn": { "locationName": "principalArn" } } } }, "ModifyImageAttribute": { "input": { "type": "structure", "required": [ "ImageId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageId": {}, "Attribute": {}, "OperationType": {}, "UserIds": { "shape": "Skk", "locationName": "UserId" }, "UserGroups": { "locationName": "UserGroup", "type": "list", "member": { "locationName": "UserGroup" } }, "ProductCodes": { "locationName": "ProductCode", "type": "list", "member": { "locationName": "ProductCode" } }, "Value": {}, "LaunchPermission": { "type": "structure", "members": { "Add": { "shape": "Sab" }, "Remove": { "shape": "Sab" } } }, "Description": { "shape": "S39" } } } }, "ModifyInstanceAttribute": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "Attribute": { "locationName": "attribute" }, "Value": { "locationName": "value" }, "BlockDeviceMappings": { "locationName": "blockDeviceMapping", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "DeviceName": { "locationName": "deviceName" }, "Ebs": { "locationName": "ebs", "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } }, "VirtualName": { "locationName": "virtualName" }, "NoDevice": { "locationName": "noDevice" } } } }, "SourceDestCheck": { "shape": "Sbc" }, "DisableApiTermination": { "shape": "Sbc", "locationName": "disableApiTermination" }, "InstanceType": { "shape": "S39", "locationName": "instanceType" }, "Kernel": { "shape": "S39", "locationName": "kernel" }, "Ramdisk": { "shape": "S39", "locationName": "ramdisk" }, "UserData": { "locationName": "userData", "type": "structure", "members": { "Value": { "locationName": "value", "type": "blob" } } }, "InstanceInitiatedShutdownBehavior": { "shape": "S39", "locationName": "instanceInitiatedShutdownBehavior" }, "Groups": { "shape": "Sy", "locationName": "GroupId" }, "EbsOptimized": { "shape": "Sbc", "locationName": "ebsOptimized" }, "SriovNetSupport": { "shape": "S39", "locationName": "sriovNetSupport" }, "EnaSupport": { "shape": "Sbc", "locationName": "enaSupport" } } } }, "ModifyInstancePlacement": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": { "locationName": "instanceId" }, "Tenancy": { "locationName": "tenancy" }, "Affinity": { "locationName": "affinity" }, "HostId": { "locationName": "hostId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "ModifyNetworkInterfaceAttribute": { "input": { "type": "structure", "required": [ "NetworkInterfaceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "Description": { "shape": "S39", "locationName": "description" }, "SourceDestCheck": { "shape": "Sbc", "locationName": "sourceDestCheck" }, "Groups": { "shape": "S4n", "locationName": "SecurityGroupId" }, "Attachment": { "locationName": "attachment", "type": "structure", "members": { "AttachmentId": { "locationName": "attachmentId" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } } } } }, "ModifyReservedInstances": { "input": { "type": "structure", "required": [ "ReservedInstancesIds", "TargetConfigurations" ], "members": { "ClientToken": { "locationName": "clientToken" }, "ReservedInstancesIds": { "shape": "Sdj", "locationName": "ReservedInstancesId" }, "TargetConfigurations": { "locationName": "ReservedInstancesConfigurationSetItemType", "type": "list", "member": { "shape": "Se7", "locationName": "item" } } } }, "output": { "type": "structure", "members": { "ReservedInstancesModificationId": { "locationName": "reservedInstancesModificationId" } } } }, "ModifySnapshotAttribute": { "input": { "type": "structure", "required": [ "SnapshotId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SnapshotId": {}, "Attribute": {}, "OperationType": {}, "UserIds": { "shape": "Skk", "locationName": "UserId" }, "GroupNames": { "shape": "Sf3", "locationName": "UserGroup" }, "CreateVolumePermission": { "type": "structure", "members": { "Add": { "shape": "Sfa" }, "Remove": { "shape": "Sfa" } } } } } }, "ModifySpotFleetRequest": { "input": { "type": "structure", "required": [ "SpotFleetRequestId" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" }, "TargetCapacity": { "locationName": "targetCapacity", "type": "integer" }, "ExcessCapacityTerminationPolicy": { "locationName": "excessCapacityTerminationPolicy" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "ModifySubnetAttribute": { "input": { "type": "structure", "required": [ "SubnetId" ], "members": { "SubnetId": { "locationName": "subnetId" }, "MapPublicIpOnLaunch": { "shape": "Sbc" } } } }, "ModifyVolumeAttribute": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VolumeId": {}, "AutoEnableIO": { "shape": "Sbc" } } } }, "ModifyVpcAttribute": { "input": { "type": "structure", "required": [ "VpcId" ], "members": { "VpcId": { "locationName": "vpcId" }, "EnableDnsSupport": { "shape": "Sbc" }, "EnableDnsHostnames": { "shape": "Sbc" } } } }, "ModifyVpcEndpoint": { "input": { "type": "structure", "required": [ "VpcEndpointId" ], "members": { "DryRun": { "type": "boolean" }, "VpcEndpointId": {}, "ResetPolicy": { "type": "boolean" }, "PolicyDocument": {}, "AddRouteTableIds": { "shape": "S2c", "locationName": "AddRouteTableId" }, "RemoveRouteTableIds": { "shape": "S2c", "locationName": "RemoveRouteTableId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "ModifyVpcPeeringConnectionOptions": { "input": { "type": "structure", "required": [ "VpcPeeringConnectionId" ], "members": { "DryRun": { "type": "boolean" }, "VpcPeeringConnectionId": {}, "RequesterPeeringConnectionOptions": { "shape": "Slc" }, "AccepterPeeringConnectionOptions": { "shape": "Slc" } } }, "output": { "type": "structure", "members": { "RequesterPeeringConnectionOptions": { "shape": "Sle", "locationName": "requesterPeeringConnectionOptions" }, "AccepterPeeringConnectionOptions": { "shape": "Sle", "locationName": "accepterPeeringConnectionOptions" } } } }, "MonitorInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" } } }, "output": { "type": "structure", "members": { "InstanceMonitorings": { "shape": "Slh", "locationName": "instancesSet" } } } }, "MoveAddressToVpc": { "input": { "type": "structure", "required": [ "PublicIp" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIp": { "locationName": "publicIp" } } }, "output": { "type": "structure", "members": { "AllocationId": { "locationName": "allocationId" }, "Status": { "locationName": "status" } } } }, "PurchaseHostReservation": { "input": { "type": "structure", "required": [ "OfferingId", "HostIdSet" ], "members": { "OfferingId": {}, "HostIdSet": { "shape": "Sjc" }, "LimitPrice": {}, "CurrencyCode": {}, "ClientToken": {} } }, "output": { "type": "structure", "members": { "Purchase": { "shape": "Sje", "locationName": "purchase" }, "TotalUpfrontPrice": { "locationName": "totalUpfrontPrice" }, "TotalHourlyPrice": { "locationName": "totalHourlyPrice" }, "CurrencyCode": { "locationName": "currencyCode" }, "ClientToken": { "locationName": "clientToken" } } } }, "PurchaseReservedInstancesOffering": { "input": { "type": "structure", "required": [ "ReservedInstancesOfferingId", "InstanceCount" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ReservedInstancesOfferingId": {}, "InstanceCount": { "type": "integer" }, "LimitPrice": { "locationName": "limitPrice", "type": "structure", "members": { "Amount": { "locationName": "amount", "type": "double" }, "CurrencyCode": { "locationName": "currencyCode" } } } } }, "output": { "type": "structure", "members": { "ReservedInstancesId": { "locationName": "reservedInstancesId" } } } }, "PurchaseScheduledInstances": { "input": { "type": "structure", "required": [ "PurchaseRequests" ], "members": { "DryRun": { "type": "boolean" }, "ClientToken": { "idempotencyToken": true }, "PurchaseRequests": { "locationName": "PurchaseRequest", "type": "list", "member": { "locationName": "PurchaseRequest", "type": "structure", "required": [ "PurchaseToken", "InstanceCount" ], "members": { "PurchaseToken": {}, "InstanceCount": { "type": "integer" } } } } } }, "output": { "type": "structure", "members": { "ScheduledInstanceSet": { "locationName": "scheduledInstanceSet", "type": "list", "member": { "shape": "Sew", "locationName": "item" } } } } }, "RebootInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" } } } }, "RegisterImage": { "input": { "type": "structure", "required": [ "Name" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageLocation": {}, "Name": { "locationName": "name" }, "Description": { "locationName": "description" }, "Architecture": { "locationName": "architecture" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "RootDeviceName": { "locationName": "rootDeviceName" }, "BlockDeviceMappings": { "shape": "S3i", "locationName": "BlockDeviceMapping" }, "VirtualizationType": { "locationName": "virtualizationType" }, "SriovNetSupport": { "locationName": "sriovNetSupport" }, "EnaSupport": { "locationName": "enaSupport", "type": "boolean" } } }, "output": { "type": "structure", "members": { "ImageId": { "locationName": "imageId" } } } }, "RejectVpcPeeringConnection": { "input": { "type": "structure", "required": [ "VpcPeeringConnectionId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" } } }, "output": { "type": "structure", "members": { "Return": { "locationName": "return", "type": "boolean" } } } }, "ReleaseAddress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIp": {}, "AllocationId": {} } } }, "ReleaseHosts": { "input": { "type": "structure", "required": [ "HostIds" ], "members": { "HostIds": { "shape": "S9r", "locationName": "hostId" } } }, "output": { "type": "structure", "members": { "Successful": { "shape": "Sp", "locationName": "successful" }, "Unsuccessful": { "shape": "Skf", "locationName": "unsuccessful" } } } }, "ReplaceNetworkAclAssociation": { "input": { "type": "structure", "required": [ "AssociationId", "NetworkAclId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AssociationId": { "locationName": "associationId" }, "NetworkAclId": { "locationName": "networkAclId" } } }, "output": { "type": "structure", "members": { "NewAssociationId": { "locationName": "newAssociationId" } } } }, "ReplaceNetworkAclEntry": { "input": { "type": "structure", "required": [ "NetworkAclId", "RuleNumber", "Protocol", "RuleAction", "Egress", "CidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkAclId": { "locationName": "networkAclId" }, "RuleNumber": { "locationName": "ruleNumber", "type": "integer" }, "Protocol": { "locationName": "protocol" }, "RuleAction": { "locationName": "ruleAction" }, "Egress": { "locationName": "egress", "type": "boolean" }, "CidrBlock": { "locationName": "cidrBlock" }, "IcmpTypeCode": { "shape": "S4h", "locationName": "Icmp" }, "PortRange": { "shape": "S4i", "locationName": "portRange" } } } }, "ReplaceRoute": { "input": { "type": "structure", "required": [ "RouteTableId", "DestinationCidrBlock" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "RouteTableId": { "locationName": "routeTableId" }, "DestinationCidrBlock": { "locationName": "destinationCidrBlock" }, "GatewayId": { "locationName": "gatewayId" }, "InstanceId": { "locationName": "instanceId" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" }, "NatGatewayId": { "locationName": "natGatewayId" } } } }, "ReplaceRouteTableAssociation": { "input": { "type": "structure", "required": [ "AssociationId", "RouteTableId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "AssociationId": { "locationName": "associationId" }, "RouteTableId": { "locationName": "routeTableId" } } }, "output": { "type": "structure", "members": { "NewAssociationId": { "locationName": "newAssociationId" } } } }, "ReportInstanceStatus": { "input": { "type": "structure", "required": [ "Instances", "Status", "ReasonCodes" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "Instances": { "shape": "S8h", "locationName": "instanceId" }, "Status": { "locationName": "status" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "EndTime": { "locationName": "endTime", "type": "timestamp" }, "ReasonCodes": { "locationName": "reasonCode", "type": "list", "member": { "locationName": "item" } }, "Description": { "locationName": "description" } } } }, "RequestSpotFleet": { "input": { "type": "structure", "required": [ "SpotFleetRequestConfig" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotFleetRequestConfig": { "shape": "Sfx", "locationName": "spotFleetRequestConfig" } } }, "output": { "type": "structure", "required": [ "SpotFleetRequestId" ], "members": { "SpotFleetRequestId": { "locationName": "spotFleetRequestId" } } } }, "RequestSpotInstances": { "input": { "type": "structure", "required": [ "SpotPrice" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SpotPrice": { "locationName": "spotPrice" }, "ClientToken": { "locationName": "clientToken" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" }, "Type": { "locationName": "type" }, "ValidFrom": { "locationName": "validFrom", "type": "timestamp" }, "ValidUntil": { "locationName": "validUntil", "type": "timestamp" }, "LaunchGroup": { "locationName": "launchGroup" }, "AvailabilityZoneGroup": { "locationName": "availabilityZoneGroup" }, "BlockDurationMinutes": { "locationName": "blockDurationMinutes", "type": "integer" }, "LaunchSpecification": { "type": "structure", "members": { "ImageId": { "locationName": "imageId" }, "KeyName": { "locationName": "keyName" }, "SecurityGroups": { "shape": "S2c", "locationName": "SecurityGroup" }, "UserData": { "locationName": "userData" }, "AddressingType": { "locationName": "addressingType" }, "InstanceType": { "locationName": "instanceType" }, "Placement": { "shape": "Sg0", "locationName": "placement" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "BlockDeviceMappings": { "shape": "Sah", "locationName": "blockDeviceMapping" }, "SubnetId": { "locationName": "subnetId" }, "NetworkInterfaces": { "shape": "Sg2", "locationName": "NetworkInterface" }, "IamInstanceProfile": { "shape": "Sg4", "locationName": "iamInstanceProfile" }, "EbsOptimized": { "locationName": "ebsOptimized", "type": "boolean" }, "Monitoring": { "shape": "Sgh", "locationName": "monitoring" }, "SecurityGroupIds": { "shape": "S2c", "locationName": "SecurityGroupId" } } } } }, "output": { "type": "structure", "members": { "SpotInstanceRequests": { "shape": "Sgb", "locationName": "spotInstanceRequestSet" } } } }, "ResetImageAttribute": { "input": { "type": "structure", "required": [ "ImageId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageId": {}, "Attribute": {} } } }, "ResetInstanceAttribute": { "input": { "type": "structure", "required": [ "InstanceId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceId": { "locationName": "instanceId" }, "Attribute": { "locationName": "attribute" } } } }, "ResetNetworkInterfaceAttribute": { "input": { "type": "structure", "required": [ "NetworkInterfaceId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "SourceDestCheck": { "locationName": "sourceDestCheck" } } } }, "ResetSnapshotAttribute": { "input": { "type": "structure", "required": [ "SnapshotId", "Attribute" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "SnapshotId": {}, "Attribute": {} } } }, "RestoreAddressToClassic": { "input": { "type": "structure", "required": [ "PublicIp" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "PublicIp": { "locationName": "publicIp" } } }, "output": { "type": "structure", "members": { "Status": { "locationName": "status" }, "PublicIp": { "locationName": "publicIp" } } } }, "RevokeSecurityGroupEgress": { "input": { "type": "structure", "required": [ "GroupId" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupId": { "locationName": "groupId" }, "SourceSecurityGroupName": { "locationName": "sourceSecurityGroupName" }, "SourceSecurityGroupOwnerId": { "locationName": "sourceSecurityGroupOwnerId" }, "IpProtocol": { "locationName": "ipProtocol" }, "FromPort": { "locationName": "fromPort", "type": "integer" }, "ToPort": { "locationName": "toPort", "type": "integer" }, "CidrIp": { "locationName": "cidrIp" }, "IpPermissions": { "shape": "S1b", "locationName": "ipPermissions" } } } }, "RevokeSecurityGroupIngress": { "input": { "type": "structure", "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "GroupName": {}, "GroupId": {}, "SourceSecurityGroupName": {}, "SourceSecurityGroupOwnerId": {}, "IpProtocol": {}, "FromPort": { "type": "integer" }, "ToPort": { "type": "integer" }, "CidrIp": {}, "IpPermissions": { "shape": "S1b" } } } }, "RunInstances": { "input": { "type": "structure", "required": [ "ImageId", "MinCount", "MaxCount" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "ImageId": {}, "MinCount": { "type": "integer" }, "MaxCount": { "type": "integer" }, "KeyName": {}, "SecurityGroups": { "shape": "Sjy", "locationName": "SecurityGroup" }, "SecurityGroupIds": { "shape": "S4n", "locationName": "SecurityGroupId" }, "UserData": {}, "InstanceType": {}, "Placement": { "shape": "Sc2" }, "KernelId": {}, "RamdiskId": {}, "BlockDeviceMappings": { "shape": "S3i", "locationName": "BlockDeviceMapping" }, "Monitoring": { "shape": "Sgh" }, "SubnetId": {}, "DisableApiTermination": { "locationName": "disableApiTermination", "type": "boolean" }, "InstanceInitiatedShutdownBehavior": { "locationName": "instanceInitiatedShutdownBehavior" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "ClientToken": { "locationName": "clientToken" }, "AdditionalInfo": { "locationName": "additionalInfo" }, "NetworkInterfaces": { "shape": "Sg2", "locationName": "networkInterface" }, "IamInstanceProfile": { "shape": "Sg4", "locationName": "iamInstanceProfile" }, "EbsOptimized": { "locationName": "ebsOptimized", "type": "boolean" } } }, "output": { "shape": "Sby" } }, "RunScheduledInstances": { "input": { "type": "structure", "required": [ "ScheduledInstanceId", "LaunchSpecification" ], "members": { "DryRun": { "type": "boolean" }, "ClientToken": { "idempotencyToken": true }, "InstanceCount": { "type": "integer" }, "ScheduledInstanceId": {}, "LaunchSpecification": { "type": "structure", "required": [ "ImageId" ], "members": { "ImageId": {}, "KeyName": {}, "SecurityGroupIds": { "shape": "Smv", "locationName": "SecurityGroupId" }, "UserData": {}, "Placement": { "type": "structure", "members": { "AvailabilityZone": {}, "GroupName": {} } }, "KernelId": {}, "InstanceType": {}, "RamdiskId": {}, "BlockDeviceMappings": { "locationName": "BlockDeviceMapping", "type": "list", "member": { "locationName": "BlockDeviceMapping", "type": "structure", "members": { "DeviceName": {}, "NoDevice": {}, "VirtualName": {}, "Ebs": { "type": "structure", "members": { "SnapshotId": {}, "VolumeSize": { "type": "integer" }, "DeleteOnTermination": { "type": "boolean" }, "VolumeType": {}, "Iops": { "type": "integer" }, "Encrypted": { "type": "boolean" } } } } } }, "Monitoring": { "type": "structure", "members": { "Enabled": { "type": "boolean" } } }, "SubnetId": {}, "NetworkInterfaces": { "locationName": "NetworkInterface", "type": "list", "member": { "locationName": "NetworkInterface", "type": "structure", "members": { "NetworkInterfaceId": {}, "DeviceIndex": { "type": "integer" }, "SubnetId": {}, "Description": {}, "PrivateIpAddress": {}, "PrivateIpAddressConfigs": { "locationName": "PrivateIpAddressConfig", "type": "list", "member": { "locationName": "PrivateIpAddressConfigSet", "type": "structure", "members": { "PrivateIpAddress": {}, "Primary": { "type": "boolean" } } } }, "SecondaryPrivateIpAddressCount": { "type": "integer" }, "AssociatePublicIpAddress": { "type": "boolean" }, "Groups": { "shape": "Smv", "locationName": "Group" }, "DeleteOnTermination": { "type": "boolean" } } } }, "IamInstanceProfile": { "type": "structure", "members": { "Arn": {}, "Name": {} } }, "EbsOptimized": { "type": "boolean" } } } } }, "output": { "type": "structure", "members": { "InstanceIdSet": { "locationName": "instanceIdSet", "type": "list", "member": { "locationName": "item" } } } } }, "StartInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" }, "AdditionalInfo": { "locationName": "additionalInfo" }, "DryRun": { "locationName": "dryRun", "type": "boolean" } } }, "output": { "type": "structure", "members": { "StartingInstances": { "shape": "Sna", "locationName": "instancesSet" } } } }, "StopInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" }, "Force": { "locationName": "force", "type": "boolean" } } }, "output": { "type": "structure", "members": { "StoppingInstances": { "shape": "Sna", "locationName": "instancesSet" } } } }, "TerminateInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" } } }, "output": { "type": "structure", "members": { "TerminatingInstances": { "shape": "Sna", "locationName": "instancesSet" } } } }, "UnassignPrivateIpAddresses": { "input": { "type": "structure", "required": [ "NetworkInterfaceId", "PrivateIpAddresses" ], "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "PrivateIpAddresses": { "shape": "Sr", "locationName": "privateIpAddress" } } } }, "UnmonitorInstances": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "DryRun": { "locationName": "dryRun", "type": "boolean" }, "InstanceIds": { "shape": "S8h", "locationName": "InstanceId" } } }, "output": { "type": "structure", "members": { "InstanceMonitorings": { "shape": "Slh", "locationName": "instancesSet" } } } } }, "shapes": { "S3": { "type": "list", "member": { "locationName": "ReservedInstanceId" } }, "S5": { "type": "list", "member": { "locationName": "TargetConfigurationRequest", "type": "structure", "required": [ "OfferingId" ], "members": { "OfferingId": {}, "InstanceCount": { "type": "integer" } } } }, "Sb": { "type": "structure", "members": { "AccepterVpcInfo": { "shape": "Sc", "locationName": "accepterVpcInfo" }, "ExpirationTime": { "locationName": "expirationTime", "type": "timestamp" }, "RequesterVpcInfo": { "shape": "Sc", "locationName": "requesterVpcInfo" }, "Status": { "locationName": "status", "type": "structure", "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" } } }, "Sc": { "type": "structure", "members": { "CidrBlock": { "locationName": "cidrBlock" }, "OwnerId": { "locationName": "ownerId" }, "VpcId": { "locationName": "vpcId" }, "PeeringOptions": { "locationName": "peeringOptions", "type": "structure", "members": { "AllowEgressFromLocalClassicLinkToRemoteVpc": { "locationName": "allowEgressFromLocalClassicLinkToRemoteVpc", "type": "boolean" }, "AllowEgressFromLocalVpcToRemoteClassicLink": { "locationName": "allowEgressFromLocalVpcToRemoteClassicLink", "type": "boolean" }, "AllowDnsResolutionFromRemoteVpc": { "locationName": "allowDnsResolutionFromRemoteVpc", "type": "boolean" } } } } }, "Sh": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Key": { "locationName": "key" }, "Value": { "locationName": "value" } } } }, "Sp": { "type": "list", "member": { "locationName": "item" } }, "Sr": { "type": "list", "member": { "locationName": "PrivateIpAddress" } }, "Sy": { "type": "list", "member": { "locationName": "groupId" } }, "S14": { "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "InstanceId": { "locationName": "instanceId" }, "Device": { "locationName": "device" }, "State": { "locationName": "status" }, "AttachTime": { "locationName": "attachTime", "type": "timestamp" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } }, "S18": { "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "State": { "locationName": "state" } } }, "S1b": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "IpProtocol": { "locationName": "ipProtocol" }, "FromPort": { "locationName": "fromPort", "type": "integer" }, "ToPort": { "locationName": "toPort", "type": "integer" }, "UserIdGroupPairs": { "locationName": "groups", "type": "list", "member": { "shape": "S1e", "locationName": "item" } }, "IpRanges": { "locationName": "ipRanges", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "CidrIp": { "locationName": "cidrIp" } } } }, "PrefixListIds": { "locationName": "prefixListIds", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PrefixListId": { "locationName": "prefixListId" } } } } } } }, "S1e": { "type": "structure", "members": { "UserId": { "locationName": "userId" }, "GroupName": { "locationName": "groupName" }, "GroupId": { "locationName": "groupId" }, "VpcId": { "locationName": "vpcId" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" }, "PeeringStatus": { "locationName": "peeringStatus" } } }, "S1l": { "type": "structure", "members": { "S3": { "type": "structure", "members": { "Bucket": { "locationName": "bucket" }, "Prefix": { "locationName": "prefix" }, "AWSAccessKeyId": {}, "UploadPolicy": { "locationName": "uploadPolicy", "type": "blob" }, "UploadPolicySignature": { "locationName": "uploadPolicySignature" } } } } }, "S1p": { "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "BundleId": { "locationName": "bundleId" }, "State": { "locationName": "state" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "UpdateTime": { "locationName": "updateTime", "type": "timestamp" }, "Storage": { "shape": "S1l", "locationName": "storage" }, "Progress": { "locationName": "progress" }, "BundleTaskError": { "locationName": "error", "type": "structure", "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } } } }, "S20": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ReservedInstancesListingId": { "locationName": "reservedInstancesListingId" }, "ReservedInstancesId": { "locationName": "reservedInstancesId" }, "CreateDate": { "locationName": "createDate", "type": "timestamp" }, "UpdateDate": { "locationName": "updateDate", "type": "timestamp" }, "Status": { "locationName": "status" }, "StatusMessage": { "locationName": "statusMessage" }, "InstanceCounts": { "locationName": "instanceCounts", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "State": { "locationName": "state" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" } } } }, "PriceSchedules": { "locationName": "priceSchedules", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Term": { "locationName": "term", "type": "long" }, "Price": { "locationName": "price", "type": "double" }, "CurrencyCode": { "locationName": "currencyCode" }, "Active": { "locationName": "active", "type": "boolean" } } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "ClientToken": { "locationName": "clientToken" } } } }, "S2c": { "type": "list", "member": { "locationName": "item" } }, "S2m": { "type": "list", "member": { "locationName": "SpotInstanceRequestId" } }, "S30": { "type": "structure", "members": { "CustomerGatewayId": { "locationName": "customerGatewayId" }, "State": { "locationName": "state" }, "Type": { "locationName": "type" }, "IpAddress": { "locationName": "ipAddress" }, "BgpAsn": { "locationName": "bgpAsn" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S35": { "type": "structure", "members": { "DhcpOptionsId": { "locationName": "dhcpOptionsId" }, "DhcpConfigurations": { "locationName": "dhcpConfigurationSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Key": { "locationName": "key" }, "Values": { "locationName": "valueSet", "type": "list", "member": { "shape": "S39", "locationName": "item" } } } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S39": { "type": "structure", "members": { "Value": { "locationName": "value" } } }, "S3e": { "type": "list", "member": { "shape": "S3f", "locationName": "item" } }, "S3f": { "type": "structure", "required": [ "Error" ], "members": { "Error": { "locationName": "error", "type": "structure", "required": [ "Code", "Message" ], "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } }, "ResourceId": { "locationName": "resourceId" } } }, "S3i": { "type": "list", "member": { "shape": "S3j", "locationName": "BlockDeviceMapping" } }, "S3j": { "type": "structure", "members": { "VirtualName": { "locationName": "virtualName" }, "DeviceName": { "locationName": "deviceName" }, "Ebs": { "locationName": "ebs", "type": "structure", "members": { "SnapshotId": { "locationName": "snapshotId" }, "VolumeSize": { "locationName": "volumeSize", "type": "integer" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" }, "VolumeType": { "locationName": "volumeType" }, "Iops": { "locationName": "iops", "type": "integer" }, "Encrypted": { "locationName": "encrypted", "type": "boolean" } } }, "NoDevice": { "locationName": "noDevice" } } }, "S3t": { "type": "structure", "members": { "ExportTaskId": { "locationName": "exportTaskId" }, "Description": { "locationName": "description" }, "State": { "locationName": "state" }, "StatusMessage": { "locationName": "statusMessage" }, "InstanceExportDetails": { "locationName": "instanceExport", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "TargetEnvironment": { "locationName": "targetEnvironment" } } }, "ExportToS3Task": { "locationName": "exportToS3", "type": "structure", "members": { "DiskImageFormat": { "locationName": "diskImageFormat" }, "ContainerFormat": { "locationName": "containerFormat" }, "S3Bucket": { "locationName": "s3Bucket" }, "S3Key": { "locationName": "s3Key" } } } } }, "S3z": { "type": "structure", "members": { "InternetGatewayId": { "locationName": "internetGatewayId" }, "Attachments": { "locationName": "attachmentSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "State": { "locationName": "state" } } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S46": { "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "SubnetId": { "locationName": "subnetId" }, "NatGatewayId": { "locationName": "natGatewayId" }, "CreateTime": { "locationName": "createTime", "type": "timestamp" }, "DeleteTime": { "locationName": "deleteTime", "type": "timestamp" }, "NatGatewayAddresses": { "locationName": "natGatewayAddressSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PublicIp": { "locationName": "publicIp" }, "AllocationId": { "locationName": "allocationId" }, "PrivateIp": { "locationName": "privateIp" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" } } } }, "State": { "locationName": "state" }, "FailureCode": { "locationName": "failureCode" }, "FailureMessage": { "locationName": "failureMessage" }, "ProvisionedBandwidth": { "locationName": "provisionedBandwidth", "type": "structure", "members": { "Provisioned": { "locationName": "provisioned" }, "Requested": { "locationName": "requested" }, "RequestTime": { "locationName": "requestTime", "type": "timestamp" }, "ProvisionTime": { "locationName": "provisionTime", "type": "timestamp" }, "Status": { "locationName": "status" } } } } }, "S4d": { "type": "structure", "members": { "NetworkAclId": { "locationName": "networkAclId" }, "VpcId": { "locationName": "vpcId" }, "IsDefault": { "locationName": "default", "type": "boolean" }, "Entries": { "locationName": "entrySet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "RuleNumber": { "locationName": "ruleNumber", "type": "integer" }, "Protocol": { "locationName": "protocol" }, "RuleAction": { "locationName": "ruleAction" }, "Egress": { "locationName": "egress", "type": "boolean" }, "CidrBlock": { "locationName": "cidrBlock" }, "IcmpTypeCode": { "shape": "S4h", "locationName": "icmpTypeCode" }, "PortRange": { "shape": "S4i", "locationName": "portRange" } } } }, "Associations": { "locationName": "associationSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "NetworkAclAssociationId": { "locationName": "networkAclAssociationId" }, "NetworkAclId": { "locationName": "networkAclId" }, "SubnetId": { "locationName": "subnetId" } } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S4h": { "type": "structure", "members": { "Type": { "locationName": "type", "type": "integer" }, "Code": { "locationName": "code", "type": "integer" } } }, "S4i": { "type": "structure", "members": { "From": { "locationName": "from", "type": "integer" }, "To": { "locationName": "to", "type": "integer" } } }, "S4n": { "type": "list", "member": { "locationName": "SecurityGroupId" } }, "S4o": { "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "PrivateIpAddress" ], "members": { "PrivateIpAddress": { "locationName": "privateIpAddress" }, "Primary": { "locationName": "primary", "type": "boolean" } } } }, "S4r": { "type": "structure", "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "SubnetId": { "locationName": "subnetId" }, "VpcId": { "locationName": "vpcId" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Description": { "locationName": "description" }, "OwnerId": { "locationName": "ownerId" }, "RequesterId": { "locationName": "requesterId" }, "RequesterManaged": { "locationName": "requesterManaged", "type": "boolean" }, "Status": { "locationName": "status" }, "MacAddress": { "locationName": "macAddress" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "PrivateDnsName": { "locationName": "privateDnsName" }, "SourceDestCheck": { "locationName": "sourceDestCheck", "type": "boolean" }, "Groups": { "shape": "S4t", "locationName": "groupSet" }, "Attachment": { "shape": "S4v", "locationName": "attachment" }, "Association": { "shape": "S4w", "locationName": "association" }, "TagSet": { "shape": "Sh", "locationName": "tagSet" }, "PrivateIpAddresses": { "locationName": "privateIpAddressesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PrivateIpAddress": { "locationName": "privateIpAddress" }, "PrivateDnsName": { "locationName": "privateDnsName" }, "Primary": { "locationName": "primary", "type": "boolean" }, "Association": { "shape": "S4w", "locationName": "association" } } } }, "InterfaceType": { "locationName": "interfaceType" } } }, "S4t": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "GroupName": { "locationName": "groupName" }, "GroupId": { "locationName": "groupId" } } } }, "S4v": { "type": "structure", "members": { "AttachmentId": { "locationName": "attachmentId" }, "InstanceId": { "locationName": "instanceId" }, "InstanceOwnerId": { "locationName": "instanceOwnerId" }, "DeviceIndex": { "locationName": "deviceIndex", "type": "integer" }, "Status": { "locationName": "status" }, "AttachTime": { "locationName": "attachTime", "type": "timestamp" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } }, "S4w": { "type": "structure", "members": { "PublicIp": { "locationName": "publicIp" }, "PublicDnsName": { "locationName": "publicDnsName" }, "IpOwnerId": { "locationName": "ipOwnerId" }, "AllocationId": { "locationName": "allocationId" }, "AssociationId": { "locationName": "associationId" } } }, "S5a": { "type": "structure", "members": { "RouteTableId": { "locationName": "routeTableId" }, "VpcId": { "locationName": "vpcId" }, "Routes": { "locationName": "routeSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "DestinationCidrBlock": { "locationName": "destinationCidrBlock" }, "DestinationPrefixListId": { "locationName": "destinationPrefixListId" }, "GatewayId": { "locationName": "gatewayId" }, "InstanceId": { "locationName": "instanceId" }, "InstanceOwnerId": { "locationName": "instanceOwnerId" }, "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "VpcPeeringConnectionId": { "locationName": "vpcPeeringConnectionId" }, "NatGatewayId": { "locationName": "natGatewayId" }, "State": { "locationName": "state" }, "Origin": { "locationName": "origin" } } } }, "Associations": { "locationName": "associationSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "RouteTableAssociationId": { "locationName": "routeTableAssociationId" }, "RouteTableId": { "locationName": "routeTableId" }, "SubnetId": { "locationName": "subnetId" }, "Main": { "locationName": "main", "type": "boolean" } } } }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "PropagatingVgws": { "locationName": "propagatingVgwSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "GatewayId": { "locationName": "gatewayId" } } } } } }, "S5m": { "type": "structure", "members": { "SnapshotId": { "locationName": "snapshotId" }, "VolumeId": { "locationName": "volumeId" }, "State": { "locationName": "status" }, "StateMessage": { "locationName": "statusMessage" }, "StartTime": { "locationName": "startTime", "type": "timestamp" }, "Progress": { "locationName": "progress" }, "OwnerId": { "locationName": "ownerId" }, "Description": { "locationName": "description" }, "VolumeSize": { "locationName": "volumeSize", "type": "integer" }, "OwnerAlias": { "locationName": "ownerAlias" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "Encrypted": { "locationName": "encrypted", "type": "boolean" }, "KmsKeyId": { "locationName": "kmsKeyId" }, "DataEncryptionKeyId": { "locationName": "dataEncryptionKeyId" } } }, "S5q": { "type": "structure", "members": { "OwnerId": { "locationName": "ownerId" }, "Bucket": { "locationName": "bucket" }, "Prefix": { "locationName": "prefix" }, "State": { "locationName": "state" }, "Fault": { "shape": "S5s", "locationName": "fault" } } }, "S5s": { "type": "structure", "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } }, "S5v": { "type": "structure", "members": { "SubnetId": { "locationName": "subnetId" }, "State": { "locationName": "state" }, "VpcId": { "locationName": "vpcId" }, "CidrBlock": { "locationName": "cidrBlock" }, "AvailableIpAddressCount": { "locationName": "availableIpAddressCount", "type": "integer" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "DefaultForAz": { "locationName": "defaultForAz", "type": "boolean" }, "MapPublicIpOnLaunch": { "locationName": "mapPublicIpOnLaunch", "type": "boolean" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S5y": { "type": "list", "member": {} }, "S60": { "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "Size": { "locationName": "size", "type": "integer" }, "SnapshotId": { "locationName": "snapshotId" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "State": { "locationName": "status" }, "CreateTime": { "locationName": "createTime", "type": "timestamp" }, "Attachments": { "locationName": "attachmentSet", "type": "list", "member": { "shape": "S14", "locationName": "item" } }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "VolumeType": { "locationName": "volumeType" }, "Iops": { "locationName": "iops", "type": "integer" }, "Encrypted": { "locationName": "encrypted", "type": "boolean" }, "KmsKeyId": { "locationName": "kmsKeyId" } } }, "S66": { "type": "structure", "members": { "VpcId": { "locationName": "vpcId" }, "State": { "locationName": "state" }, "CidrBlock": { "locationName": "cidrBlock" }, "DhcpOptionsId": { "locationName": "dhcpOptionsId" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "InstanceTenancy": { "locationName": "instanceTenancy" }, "IsDefault": { "locationName": "isDefault", "type": "boolean" } } }, "S6a": { "type": "structure", "members": { "VpcEndpointId": { "locationName": "vpcEndpointId" }, "VpcId": { "locationName": "vpcId" }, "ServiceName": { "locationName": "serviceName" }, "State": { "locationName": "state" }, "PolicyDocument": { "locationName": "policyDocument" }, "RouteTableIds": { "shape": "S2c", "locationName": "routeTableIdSet" }, "CreationTimestamp": { "locationName": "creationTimestamp", "type": "timestamp" } } }, "S6h": { "type": "structure", "members": { "VpnConnectionId": { "locationName": "vpnConnectionId" }, "State": { "locationName": "state" }, "CustomerGatewayConfiguration": { "locationName": "customerGatewayConfiguration" }, "Type": { "locationName": "type" }, "CustomerGatewayId": { "locationName": "customerGatewayId" }, "VpnGatewayId": { "locationName": "vpnGatewayId" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "VgwTelemetry": { "locationName": "vgwTelemetry", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "OutsideIpAddress": { "locationName": "outsideIpAddress" }, "Status": { "locationName": "status" }, "LastStatusChange": { "locationName": "lastStatusChange", "type": "timestamp" }, "StatusMessage": { "locationName": "statusMessage" }, "AcceptedRouteCount": { "locationName": "acceptedRouteCount", "type": "integer" } } } }, "Options": { "locationName": "options", "type": "structure", "members": { "StaticRoutesOnly": { "locationName": "staticRoutesOnly", "type": "boolean" } } }, "Routes": { "locationName": "routes", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "DestinationCidrBlock": { "locationName": "destinationCidrBlock" }, "Source": { "locationName": "source" }, "State": { "locationName": "state" } } } } } }, "S6t": { "type": "structure", "members": { "VpnGatewayId": { "locationName": "vpnGatewayId" }, "State": { "locationName": "state" }, "Type": { "locationName": "type" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "VpcAttachments": { "locationName": "attachments", "type": "list", "member": { "shape": "S18", "locationName": "item" } }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S7y": { "type": "list", "member": { "locationName": "Filter", "type": "structure", "members": { "Name": {}, "Values": { "shape": "S2c", "locationName": "Value" } } } }, "S8h": { "type": "list", "member": { "locationName": "InstanceId" } }, "S8p": { "type": "structure", "required": [ "ConversionTaskId", "State" ], "members": { "ConversionTaskId": { "locationName": "conversionTaskId" }, "ExpirationTime": { "locationName": "expirationTime" }, "ImportInstance": { "locationName": "importInstance", "type": "structure", "required": [ "Volumes" ], "members": { "Volumes": { "locationName": "volumes", "type": "list", "member": { "locationName": "item", "type": "structure", "required": [ "BytesConverted", "AvailabilityZone", "Image", "Volume", "Status" ], "members": { "BytesConverted": { "locationName": "bytesConverted", "type": "long" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Image": { "shape": "S8t", "locationName": "image" }, "Volume": { "shape": "S8u", "locationName": "volume" }, "Status": { "locationName": "status" }, "StatusMessage": { "locationName": "statusMessage" }, "Description": { "locationName": "description" } } } }, "InstanceId": { "locationName": "instanceId" }, "Platform": { "locationName": "platform" }, "Description": { "locationName": "description" } } }, "ImportVolume": { "locationName": "importVolume", "type": "structure", "required": [ "BytesConverted", "AvailabilityZone", "Image", "Volume" ], "members": { "BytesConverted": { "locationName": "bytesConverted", "type": "long" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "Description": { "locationName": "description" }, "Image": { "shape": "S8t", "locationName": "image" }, "Volume": { "shape": "S8u", "locationName": "volume" } } }, "State": { "locationName": "state" }, "StatusMessage": { "locationName": "statusMessage" }, "Tags": { "shape": "Sh", "locationName": "tagSet" } } }, "S8t": { "type": "structure", "required": [ "Format", "Size", "ImportManifestUrl" ], "members": { "Format": { "locationName": "format" }, "Size": { "locationName": "size", "type": "long" }, "ImportManifestUrl": { "locationName": "importManifestUrl" }, "Checksum": { "locationName": "checksum" } } }, "S8u": { "type": "structure", "required": [ "Id" ], "members": { "Size": { "locationName": "size", "type": "long" }, "Id": { "locationName": "id" } } }, "S9o": { "type": "list", "member": { "locationName": "item" } }, "S9r": { "type": "list", "member": { "locationName": "item" } }, "Sa4": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Resource": { "locationName": "resource" }, "UseLongIds": { "locationName": "useLongIds", "type": "boolean" }, "Deadline": { "locationName": "deadline", "type": "timestamp" } } } }, "Sab": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "UserId": { "locationName": "userId" }, "Group": { "locationName": "group" } } } }, "Sae": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ProductCodeId": { "locationName": "productCode" }, "ProductCodeType": { "locationName": "type" } } } }, "Sah": { "type": "list", "member": { "shape": "S3j", "locationName": "item" } }, "Sak": { "type": "list", "member": { "locationName": "Owner" } }, "Sas": { "type": "structure", "members": { "Code": { "locationName": "code" }, "Message": { "locationName": "message" } } }, "Sax": { "type": "list", "member": { "locationName": "ImportTaskId" } }, "Sb1": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "DiskImageSize": { "locationName": "diskImageSize", "type": "double" }, "Description": { "locationName": "description" }, "Format": { "locationName": "format" }, "Url": { "locationName": "url" }, "UserBucket": { "shape": "Sb3", "locationName": "userBucket" }, "DeviceName": { "locationName": "deviceName" }, "SnapshotId": { "locationName": "snapshotId" }, "Progress": { "locationName": "progress" }, "StatusMessage": { "locationName": "statusMessage" }, "Status": { "locationName": "status" } } } }, "Sb3": { "type": "structure", "members": { "S3Bucket": { "locationName": "s3Bucket" }, "S3Key": { "locationName": "s3Key" } } }, "Sb8": { "type": "structure", "members": { "DiskImageSize": { "locationName": "diskImageSize", "type": "double" }, "Description": { "locationName": "description" }, "Format": { "locationName": "format" }, "Url": { "locationName": "url" }, "UserBucket": { "shape": "Sb3", "locationName": "userBucket" }, "SnapshotId": { "locationName": "snapshotId" }, "Progress": { "locationName": "progress" }, "StatusMessage": { "locationName": "statusMessage" }, "Status": { "locationName": "status" } } }, "Sbc": { "type": "structure", "members": { "Value": { "locationName": "value", "type": "boolean" } } }, "Sbd": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "DeviceName": { "locationName": "deviceName" }, "Ebs": { "locationName": "ebs", "type": "structure", "members": { "VolumeId": { "locationName": "volumeId" }, "Status": { "locationName": "status" }, "AttachTime": { "locationName": "attachTime", "type": "timestamp" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } } } } }, "Sbn": { "type": "structure", "members": { "Code": { "locationName": "code", "type": "integer" }, "Name": { "locationName": "name" } } }, "Sbp": { "type": "structure", "members": { "Status": { "locationName": "status" }, "Details": { "locationName": "details", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Name": { "locationName": "name" }, "Status": { "locationName": "status" }, "ImpairedSince": { "locationName": "impairedSince", "type": "timestamp" } } } } } }, "Sby": { "type": "structure", "members": { "ReservationId": { "locationName": "reservationId" }, "OwnerId": { "locationName": "ownerId" }, "RequesterId": { "locationName": "requesterId" }, "Groups": { "shape": "S4t", "locationName": "groupSet" }, "Instances": { "locationName": "instancesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "ImageId": { "locationName": "imageId" }, "State": { "shape": "Sbn", "locationName": "instanceState" }, "PrivateDnsName": { "locationName": "privateDnsName" }, "PublicDnsName": { "locationName": "dnsName" }, "StateTransitionReason": { "locationName": "reason" }, "KeyName": { "locationName": "keyName" }, "AmiLaunchIndex": { "locationName": "amiLaunchIndex", "type": "integer" }, "ProductCodes": { "shape": "Sae", "locationName": "productCodes" }, "InstanceType": { "locationName": "instanceType" }, "LaunchTime": { "locationName": "launchTime", "type": "timestamp" }, "Placement": { "shape": "Sc2", "locationName": "placement" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "Platform": { "locationName": "platform" }, "Monitoring": { "shape": "Sc3", "locationName": "monitoring" }, "SubnetId": { "locationName": "subnetId" }, "VpcId": { "locationName": "vpcId" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "PublicIpAddress": { "locationName": "ipAddress" }, "StateReason": { "shape": "Sas", "locationName": "stateReason" }, "Architecture": { "locationName": "architecture" }, "RootDeviceType": { "locationName": "rootDeviceType" }, "RootDeviceName": { "locationName": "rootDeviceName" }, "BlockDeviceMappings": { "shape": "Sbd", "locationName": "blockDeviceMapping" }, "VirtualizationType": { "locationName": "virtualizationType" }, "InstanceLifecycle": { "locationName": "instanceLifecycle" }, "SpotInstanceRequestId": { "locationName": "spotInstanceRequestId" }, "ClientToken": { "locationName": "clientToken" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "SecurityGroups": { "shape": "S4t", "locationName": "groupSet" }, "SourceDestCheck": { "locationName": "sourceDestCheck", "type": "boolean" }, "Hypervisor": { "locationName": "hypervisor" }, "NetworkInterfaces": { "locationName": "networkInterfaceSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "SubnetId": { "locationName": "subnetId" }, "VpcId": { "locationName": "vpcId" }, "Description": { "locationName": "description" }, "OwnerId": { "locationName": "ownerId" }, "Status": { "locationName": "status" }, "MacAddress": { "locationName": "macAddress" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "PrivateDnsName": { "locationName": "privateDnsName" }, "SourceDestCheck": { "locationName": "sourceDestCheck", "type": "boolean" }, "Groups": { "shape": "S4t", "locationName": "groupSet" }, "Attachment": { "locationName": "attachment", "type": "structure", "members": { "AttachmentId": { "locationName": "attachmentId" }, "DeviceIndex": { "locationName": "deviceIndex", "type": "integer" }, "Status": { "locationName": "status" }, "AttachTime": { "locationName": "attachTime", "type": "timestamp" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" } } }, "Association": { "shape": "Sc9", "locationName": "association" }, "PrivateIpAddresses": { "locationName": "privateIpAddressesSet", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "PrivateIpAddress": { "locationName": "privateIpAddress" }, "PrivateDnsName": { "locationName": "privateDnsName" }, "Primary": { "locationName": "primary", "type": "boolean" }, "Association": { "shape": "Sc9", "locationName": "association" } } } } } } }, "IamInstanceProfile": { "locationName": "iamInstanceProfile", "type": "structure", "members": { "Arn": { "locationName": "arn" }, "Id": { "locationName": "id" } } }, "EbsOptimized": { "locationName": "ebsOptimized", "type": "boolean" }, "SriovNetSupport": { "locationName": "sriovNetSupport" }, "EnaSupport": { "locationName": "enaSupport", "type": "boolean" } } } } } }, "Sc2": { "type": "structure", "members": { "AvailabilityZone": { "locationName": "availabilityZone" }, "GroupName": { "locationName": "groupName" }, "Tenancy": { "locationName": "tenancy" }, "HostId": { "locationName": "hostId" }, "Affinity": { "locationName": "affinity" } } }, "Sc3": { "type": "structure", "members": { "State": { "locationName": "state" } } }, "Sc9": { "type": "structure", "members": { "PublicIp": { "locationName": "publicIp" }, "PublicDnsName": { "locationName": "publicDnsName" }, "IpOwnerId": { "locationName": "ipOwnerId" } } }, "Sdj": { "type": "list", "member": { "locationName": "ReservedInstancesId" } }, "Sds": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "Frequency": { "locationName": "frequency" }, "Amount": { "locationName": "amount", "type": "double" } } } }, "Se7": { "type": "structure", "members": { "AvailabilityZone": { "locationName": "availabilityZone" }, "Platform": { "locationName": "platform" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" }, "InstanceType": { "locationName": "instanceType" }, "Scope": { "locationName": "scope" } } }, "Sep": { "type": "structure", "members": { "Frequency": { "locationName": "frequency" }, "Interval": { "locationName": "interval", "type": "integer" }, "OccurrenceDaySet": { "locationName": "occurrenceDaySet", "type": "list", "member": { "locationName": "item", "type": "integer" } }, "OccurrenceRelativeToEnd": { "locationName": "occurrenceRelativeToEnd", "type": "boolean" }, "OccurrenceUnit": { "locationName": "occurrenceUnit" } } }, "Sew": { "type": "structure", "members": { "ScheduledInstanceId": { "locationName": "scheduledInstanceId" }, "InstanceType": { "locationName": "instanceType" }, "Platform": { "locationName": "platform" }, "NetworkPlatform": { "locationName": "networkPlatform" }, "AvailabilityZone": { "locationName": "availabilityZone" }, "SlotDurationInHours": { "locationName": "slotDurationInHours", "type": "integer" }, "Recurrence": { "shape": "Sep", "locationName": "recurrence" }, "PreviousSlotEndTime": { "locationName": "previousSlotEndTime", "type": "timestamp" }, "NextSlotStartTime": { "locationName": "nextSlotStartTime", "type": "timestamp" }, "HourlyPrice": { "locationName": "hourlyPrice" }, "TotalScheduledInstanceHours": { "locationName": "totalScheduledInstanceHours", "type": "integer" }, "InstanceCount": { "locationName": "instanceCount", "type": "integer" }, "TermStartDate": { "locationName": "termStartDate", "type": "timestamp" }, "TermEndDate": { "locationName": "termEndDate", "type": "timestamp" }, "CreateDate": { "locationName": "createDate", "type": "timestamp" } } }, "Sf3": { "type": "list", "member": { "locationName": "GroupName" } }, "Sfa": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "UserId": { "locationName": "userId" }, "Group": { "locationName": "group" } } } }, "Sfx": { "type": "structure", "required": [ "SpotPrice", "TargetCapacity", "IamFleetRole", "LaunchSpecifications" ], "members": { "ClientToken": { "locationName": "clientToken" }, "SpotPrice": { "locationName": "spotPrice" }, "TargetCapacity": { "locationName": "targetCapacity", "type": "integer" }, "ValidFrom": { "locationName": "validFrom", "type": "timestamp" }, "ValidUntil": { "locationName": "validUntil", "type": "timestamp" }, "TerminateInstancesWithExpiration": { "locationName": "terminateInstancesWithExpiration", "type": "boolean" }, "IamFleetRole": { "locationName": "iamFleetRole" }, "LaunchSpecifications": { "locationName": "launchSpecifications", "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "ImageId": { "locationName": "imageId" }, "KeyName": { "locationName": "keyName" }, "SecurityGroups": { "shape": "S4t", "locationName": "groupSet" }, "UserData": { "locationName": "userData" }, "AddressingType": { "locationName": "addressingType" }, "InstanceType": { "locationName": "instanceType" }, "Placement": { "shape": "Sg0", "locationName": "placement" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "BlockDeviceMappings": { "shape": "Sah", "locationName": "blockDeviceMapping" }, "Monitoring": { "locationName": "monitoring", "type": "structure", "members": { "Enabled": { "locationName": "enabled", "type": "boolean" } } }, "SubnetId": { "locationName": "subnetId" }, "NetworkInterfaces": { "shape": "Sg2", "locationName": "networkInterfaceSet" }, "IamInstanceProfile": { "shape": "Sg4", "locationName": "iamInstanceProfile" }, "EbsOptimized": { "locationName": "ebsOptimized", "type": "boolean" }, "WeightedCapacity": { "locationName": "weightedCapacity", "type": "double" }, "SpotPrice": { "locationName": "spotPrice" } } } }, "ExcessCapacityTerminationPolicy": { "locationName": "excessCapacityTerminationPolicy" }, "AllocationStrategy": { "locationName": "allocationStrategy" }, "FulfilledCapacity": { "locationName": "fulfilledCapacity", "type": "double" }, "Type": { "locationName": "type" } } }, "Sg0": { "type": "structure", "members": { "AvailabilityZone": { "locationName": "availabilityZone" }, "GroupName": { "locationName": "groupName" } } }, "Sg2": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "NetworkInterfaceId": { "locationName": "networkInterfaceId" }, "DeviceIndex": { "locationName": "deviceIndex", "type": "integer" }, "SubnetId": { "locationName": "subnetId" }, "Description": { "locationName": "description" }, "PrivateIpAddress": { "locationName": "privateIpAddress" }, "Groups": { "shape": "S4n", "locationName": "SecurityGroupId" }, "DeleteOnTermination": { "locationName": "deleteOnTermination", "type": "boolean" }, "PrivateIpAddresses": { "shape": "S4o", "locationName": "privateIpAddressesSet", "queryName": "PrivateIpAddresses" }, "SecondaryPrivateIpAddressCount": { "locationName": "secondaryPrivateIpAddressCount", "type": "integer" }, "AssociatePublicIpAddress": { "locationName": "associatePublicIpAddress", "type": "boolean" } } } }, "Sg4": { "type": "structure", "members": { "Arn": { "locationName": "arn" }, "Name": { "locationName": "name" } } }, "Sgb": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "SpotInstanceRequestId": { "locationName": "spotInstanceRequestId" }, "SpotPrice": { "locationName": "spotPrice" }, "Type": { "locationName": "type" }, "State": { "locationName": "state" }, "Fault": { "shape": "S5s", "locationName": "fault" }, "Status": { "locationName": "status", "type": "structure", "members": { "Code": { "locationName": "code" }, "UpdateTime": { "locationName": "updateTime", "type": "timestamp" }, "Message": { "locationName": "message" } } }, "ValidFrom": { "locationName": "validFrom", "type": "timestamp" }, "ValidUntil": { "locationName": "validUntil", "type": "timestamp" }, "LaunchGroup": { "locationName": "launchGroup" }, "AvailabilityZoneGroup": { "locationName": "availabilityZoneGroup" }, "LaunchSpecification": { "locationName": "launchSpecification", "type": "structure", "members": { "ImageId": { "locationName": "imageId" }, "KeyName": { "locationName": "keyName" }, "SecurityGroups": { "shape": "S4t", "locationName": "groupSet" }, "UserData": { "locationName": "userData" }, "AddressingType": { "locationName": "addressingType" }, "InstanceType": { "locationName": "instanceType" }, "Placement": { "shape": "Sg0", "locationName": "placement" }, "KernelId": { "locationName": "kernelId" }, "RamdiskId": { "locationName": "ramdiskId" }, "BlockDeviceMappings": { "shape": "Sah", "locationName": "blockDeviceMapping" }, "SubnetId": { "locationName": "subnetId" }, "NetworkInterfaces": { "shape": "Sg2", "locationName": "networkInterfaceSet" }, "IamInstanceProfile": { "shape": "Sg4", "locationName": "iamInstanceProfile" }, "EbsOptimized": { "locationName": "ebsOptimized", "type": "boolean" }, "Monitoring": { "shape": "Sgh", "locationName": "monitoring" } } }, "InstanceId": { "locationName": "instanceId" }, "CreateTime": { "locationName": "createTime", "type": "timestamp" }, "ProductDescription": { "locationName": "productDescription" }, "BlockDurationMinutes": { "locationName": "blockDurationMinutes", "type": "integer" }, "ActualBlockHourlyPrice": { "locationName": "actualBlockHourlyPrice" }, "Tags": { "shape": "Sh", "locationName": "tagSet" }, "LaunchedAvailabilityZone": { "locationName": "launchedAvailabilityZone" } } } }, "Sgh": { "type": "structure", "required": [ "Enabled" ], "members": { "Enabled": { "locationName": "enabled", "type": "boolean" } } }, "Sgu": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "FromPort": { "locationName": "fromPort", "type": "integer" }, "IpProtocol": { "locationName": "ipProtocol" }, "IpRanges": { "locationName": "ipRanges", "type": "list", "member": { "locationName": "item" } }, "PrefixListIds": { "locationName": "prefixListIds", "type": "list", "member": { "locationName": "item" } }, "ToPort": { "locationName": "toPort", "type": "integer" }, "UserIdGroupPairs": { "locationName": "groups", "type": "list", "member": { "shape": "S1e", "locationName": "item" } } } } }, "Shc": { "type": "list", "member": { "locationName": "VolumeId" } }, "Shw": { "type": "list", "member": { "locationName": "VpcId" } }, "Sjc": { "type": "list", "member": { "locationName": "item" } }, "Sje": { "type": "list", "member": { "type": "structure", "members": { "HostReservationId": { "locationName": "hostReservationId" }, "HostIdSet": { "shape": "S9o", "locationName": "hostIdSet" }, "InstanceFamily": { "locationName": "instanceFamily" }, "PaymentOption": { "locationName": "paymentOption" }, "UpfrontPrice": { "locationName": "upfrontPrice" }, "HourlyPrice": { "locationName": "hourlyPrice" }, "CurrencyCode": { "locationName": "currencyCode" }, "Duration": { "locationName": "duration", "type": "integer" } } } }, "Sjm": { "type": "structure", "members": { "RemainingTotalValue": { "locationName": "remainingTotalValue" }, "RemainingUpfrontValue": { "locationName": "remainingUpfrontValue" }, "HourlyPrice": { "locationName": "hourlyPrice" } } }, "Sjt": { "type": "structure", "members": { "S3Bucket": {}, "S3Key": {} } }, "Sju": { "type": "structure", "members": { "UploadStart": { "type": "timestamp" }, "UploadEnd": { "type": "timestamp" }, "UploadSize": { "type": "double" }, "Comment": {} } }, "Sjy": { "type": "list", "member": { "locationName": "SecurityGroup" } }, "Sk3": { "type": "structure", "required": [ "Format", "Bytes", "ImportManifestUrl" ], "members": { "Format": { "locationName": "format" }, "Bytes": { "locationName": "bytes", "type": "long" }, "ImportManifestUrl": { "locationName": "importManifestUrl" } } }, "Sk4": { "type": "structure", "required": [ "Size" ], "members": { "Size": { "locationName": "size", "type": "long" } } }, "Skf": { "type": "list", "member": { "shape": "S3f", "locationName": "item" } }, "Skk": { "type": "list", "member": { "locationName": "UserId" } }, "Slc": { "type": "structure", "members": { "AllowEgressFromLocalClassicLinkToRemoteVpc": { "type": "boolean" }, "AllowEgressFromLocalVpcToRemoteClassicLink": { "type": "boolean" }, "AllowDnsResolutionFromRemoteVpc": { "type": "boolean" } } }, "Sle": { "type": "structure", "members": { "AllowEgressFromLocalClassicLinkToRemoteVpc": { "locationName": "allowEgressFromLocalClassicLinkToRemoteVpc", "type": "boolean" }, "AllowEgressFromLocalVpcToRemoteClassicLink": { "locationName": "allowEgressFromLocalVpcToRemoteClassicLink", "type": "boolean" }, "AllowDnsResolutionFromRemoteVpc": { "locationName": "allowDnsResolutionFromRemoteVpc", "type": "boolean" } } }, "Slh": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "Monitoring": { "shape": "Sc3", "locationName": "monitoring" } } } }, "Smv": { "type": "list", "member": { "locationName": "SecurityGroupId" } }, "Sna": { "type": "list", "member": { "locationName": "item", "type": "structure", "members": { "InstanceId": { "locationName": "instanceId" }, "CurrentState": { "shape": "Sbn", "locationName": "currentState" }, "PreviousState": { "shape": "Sbn", "locationName": "previousState" } } } } } } },{}],48:[function(require,module,exports){ module.exports={ "pagination": { "DescribeAccountAttributes": { "result_key": "AccountAttributes" }, "DescribeAddresses": { "result_key": "Addresses" }, "DescribeAvailabilityZones": { "result_key": "AvailabilityZones" }, "DescribeBundleTasks": { "result_key": "BundleTasks" }, "DescribeConversionTasks": { "result_key": "ConversionTasks" }, "DescribeCustomerGateways": { "result_key": "CustomerGateways" }, "DescribeDhcpOptions": { "result_key": "DhcpOptions" }, "DescribeExportTasks": { "result_key": "ExportTasks" }, "DescribeImages": { "result_key": "Images" }, "DescribeInstanceStatus": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "InstanceStatuses" }, "DescribeInstances": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Reservations" }, "DescribeInternetGateways": { "result_key": "InternetGateways" }, "DescribeKeyPairs": { "result_key": "KeyPairs" }, "DescribeNetworkAcls": { "result_key": "NetworkAcls" }, "DescribeNetworkInterfaces": { "result_key": "NetworkInterfaces" }, "DescribePlacementGroups": { "result_key": "PlacementGroups" }, "DescribeRegions": { "result_key": "Regions" }, "DescribeReservedInstances": { "result_key": "ReservedInstances" }, "DescribeReservedInstancesListings": { "result_key": "ReservedInstancesListings" }, "DescribeReservedInstancesOfferings": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "ReservedInstancesOfferings" }, "DescribeReservedInstancesModifications": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "ReservedInstancesModifications" }, "DescribeRouteTables": { "result_key": "RouteTables" }, "DescribeSecurityGroups": { "result_key": "SecurityGroups" }, "DescribeSnapshots": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Snapshots" }, "DescribeSpotInstanceRequests": { "result_key": "SpotInstanceRequests" }, "DescribeSpotFleetRequests": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "SpotFleetRequestConfigs" }, "DescribeSpotPriceHistory": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "SpotPriceHistory" }, "DescribeSubnets": { "result_key": "Subnets" }, "DescribeTags": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Tags" }, "DescribeVolumeStatus": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "VolumeStatuses" }, "DescribeVolumes": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Volumes" }, "DescribeVpcs": { "result_key": "Vpcs" }, "DescribeVpcPeeringConnections": { "result_key": "VpcPeeringConnections" }, "DescribeVpnConnections": { "result_key": "VpnConnections" }, "DescribeVpnGateways": { "result_key": "VpnGateways" } } } },{}],49:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "InstanceExists": { "delay": 5, "maxAttempts": 40, "operation": "DescribeInstances", "acceptors": [ { "matcher": "path", "expected": true, "argument": "length(Reservations[]) > `0`", "state": "success" }, { "matcher": "error", "expected": "InvalidInstanceID.NotFound", "state": "retry" } ] }, "BundleTaskComplete": { "delay": 15, "operation": "DescribeBundleTasks", "maxAttempts": 40, "acceptors": [ { "expected": "complete", "matcher": "pathAll", "state": "success", "argument": "BundleTasks[].State" }, { "expected": "failed", "matcher": "pathAny", "state": "failure", "argument": "BundleTasks[].State" } ] }, "ConversionTaskCancelled": { "delay": 15, "operation": "DescribeConversionTasks", "maxAttempts": 40, "acceptors": [ { "expected": "cancelled", "matcher": "pathAll", "state": "success", "argument": "ConversionTasks[].State" } ] }, "ConversionTaskCompleted": { "delay": 15, "operation": "DescribeConversionTasks", "maxAttempts": 40, "acceptors": [ { "expected": "completed", "matcher": "pathAll", "state": "success", "argument": "ConversionTasks[].State" }, { "expected": "cancelled", "matcher": "pathAny", "state": "failure", "argument": "ConversionTasks[].State" }, { "expected": "cancelling", "matcher": "pathAny", "state": "failure", "argument": "ConversionTasks[].State" } ] }, "ConversionTaskDeleted": { "delay": 15, "operation": "DescribeConversionTasks", "maxAttempts": 40, "acceptors": [ { "expected": "deleted", "matcher": "pathAll", "state": "success", "argument": "ConversionTasks[].State" } ] }, "CustomerGatewayAvailable": { "delay": 15, "operation": "DescribeCustomerGateways", "maxAttempts": 40, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "CustomerGateways[].State" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "CustomerGateways[].State" }, { "expected": "deleting", "matcher": "pathAny", "state": "failure", "argument": "CustomerGateways[].State" } ] }, "ExportTaskCancelled": { "delay": 15, "operation": "DescribeExportTasks", "maxAttempts": 40, "acceptors": [ { "expected": "cancelled", "matcher": "pathAll", "state": "success", "argument": "ExportTasks[].State" } ] }, "ExportTaskCompleted": { "delay": 15, "operation": "DescribeExportTasks", "maxAttempts": 40, "acceptors": [ { "expected": "completed", "matcher": "pathAll", "state": "success", "argument": "ExportTasks[].State" } ] }, "ImageExists": { "operation": "DescribeImages", "maxAttempts": 40, "delay": 15, "acceptors": [ { "matcher": "path", "expected": true, "argument": "length(Images[]) > `0`", "state": "success" }, { "matcher": "error", "expected": "InvalidAMIID.NotFound", "state": "retry" } ] }, "ImageAvailable": { "operation": "DescribeImages", "maxAttempts": 40, "delay": 15, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "Images[].State", "expected": "available" }, { "state": "failure", "matcher": "pathAny", "argument": "Images[].State", "expected": "failed" } ] }, "InstanceRunning": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "acceptors": [ { "expected": "running", "matcher": "pathAll", "state": "success", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "shutting-down", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "terminated", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "stopping", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" }, { "matcher": "error", "expected": "InvalidInstanceID.NotFound", "state": "retry" } ] }, "InstanceStatusOk": { "operation": "DescribeInstanceStatus", "maxAttempts": 40, "delay": 15, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "InstanceStatuses[].InstanceStatus.Status", "expected": "ok" }, { "matcher": "error", "expected": "InvalidInstanceID.NotFound", "state": "retry" } ] }, "InstanceStopped": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "acceptors": [ { "expected": "stopped", "matcher": "pathAll", "state": "success", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "pending", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "terminated", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" } ] }, "InstanceTerminated": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "acceptors": [ { "expected": "terminated", "matcher": "pathAll", "state": "success", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "pending", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" }, { "expected": "stopping", "matcher": "pathAny", "state": "failure", "argument": "Reservations[].Instances[].State.Name" } ] }, "KeyPairExists": { "operation": "DescribeKeyPairs", "delay": 5, "maxAttempts": 6, "acceptors": [ { "expected": true, "matcher": "pathAll", "state": "success", "argument": "length(KeyPairs[].KeyName) > `0`" }, { "expected": "InvalidKeyPair.NotFound", "matcher": "error", "state": "retry" } ] }, "NatGatewayAvailable": { "operation": "DescribeNatGateways", "delay": 15, "maxAttempts": 40, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "NatGateways[].State", "expected": "available" }, { "state": "failure", "matcher": "pathAny", "argument": "NatGateways[].State", "expected": "failed" }, { "state": "failure", "matcher": "pathAny", "argument": "NatGateways[].State", "expected": "deleting" }, { "state": "failure", "matcher": "pathAny", "argument": "NatGateways[].State", "expected": "deleted" }, { "state": "retry", "matcher": "error", "expected": "NatGatewayNotFound" } ] }, "NetworkInterfaceAvailable": { "operation": "DescribeNetworkInterfaces", "delay": 20, "maxAttempts": 10, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "NetworkInterfaces[].Status" }, { "expected": "InvalidNetworkInterfaceID.NotFound", "matcher": "error", "state": "failure" } ] }, "PasswordDataAvailable": { "operation": "GetPasswordData", "maxAttempts": 40, "delay": 15, "acceptors": [ { "state": "success", "matcher": "path", "argument": "length(PasswordData) > `0`", "expected": true } ] }, "SnapshotCompleted": { "delay": 15, "operation": "DescribeSnapshots", "maxAttempts": 40, "acceptors": [ { "expected": "completed", "matcher": "pathAll", "state": "success", "argument": "Snapshots[].State" } ] }, "SpotInstanceRequestFulfilled": { "operation": "DescribeSpotInstanceRequests", "maxAttempts": 40, "delay": 15, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "SpotInstanceRequests[].Status.Code", "expected": "fulfilled" }, { "state": "failure", "matcher": "pathAny", "argument": "SpotInstanceRequests[].Status.Code", "expected": "schedule-expired" }, { "state": "failure", "matcher": "pathAny", "argument": "SpotInstanceRequests[].Status.Code", "expected": "canceled-before-fulfillment" }, { "state": "failure", "matcher": "pathAny", "argument": "SpotInstanceRequests[].Status.Code", "expected": "bad-parameters" }, { "state": "failure", "matcher": "pathAny", "argument": "SpotInstanceRequests[].Status.Code", "expected": "system-error" } ] }, "SubnetAvailable": { "delay": 15, "operation": "DescribeSubnets", "maxAttempts": 40, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "Subnets[].State" } ] }, "SystemStatusOk": { "operation": "DescribeInstanceStatus", "maxAttempts": 40, "delay": 15, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "InstanceStatuses[].SystemStatus.Status", "expected": "ok" } ] }, "VolumeAvailable": { "delay": 15, "operation": "DescribeVolumes", "maxAttempts": 40, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "Volumes[].State" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "Volumes[].State" } ] }, "VolumeDeleted": { "delay": 15, "operation": "DescribeVolumes", "maxAttempts": 40, "acceptors": [ { "expected": "deleted", "matcher": "pathAll", "state": "success", "argument": "Volumes[].State" }, { "matcher": "error", "expected": "InvalidVolume.NotFound", "state": "success" } ] }, "VolumeInUse": { "delay": 15, "operation": "DescribeVolumes", "maxAttempts": 40, "acceptors": [ { "expected": "in-use", "matcher": "pathAll", "state": "success", "argument": "Volumes[].State" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "Volumes[].State" } ] }, "VpcAvailable": { "delay": 15, "operation": "DescribeVpcs", "maxAttempts": 40, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "Vpcs[].State" } ] }, "VpcExists": { "operation": "DescribeVpcs", "delay": 1, "maxAttempts": 5, "acceptors": [ { "matcher": "status", "expected": 200, "state": "success" }, { "matcher": "error", "expected": "InvalidVpcID.NotFound", "state": "retry" } ] }, "VpnConnectionAvailable": { "delay": 15, "operation": "DescribeVpnConnections", "maxAttempts": 40, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "VpnConnections[].State" }, { "expected": "deleting", "matcher": "pathAny", "state": "failure", "argument": "VpnConnections[].State" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "VpnConnections[].State" } ] }, "VpnConnectionDeleted": { "delay": 15, "operation": "DescribeVpnConnections", "maxAttempts": 40, "acceptors": [ { "expected": "deleted", "matcher": "pathAll", "state": "success", "argument": "VpnConnections[].State" }, { "expected": "pending", "matcher": "pathAny", "state": "failure", "argument": "VpnConnections[].State" } ] }, "VpcPeeringConnectionExists": { "delay": 15, "operation": "DescribeVpcPeeringConnections", "maxAttempts": 40, "acceptors": [ { "matcher": "status", "expected": 200, "state": "success" }, { "matcher": "error", "expected": "InvalidVpcPeeringConnectionID.NotFound", "state": "retry" } ] } } } },{}],50:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-09-21", "endpointPrefix": "ecr", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Amazon ECR", "serviceFullName": "Amazon EC2 Container Registry", "signatureVersion": "v4", "targetPrefix": "AmazonEC2ContainerRegistry_V20150921" }, "operations": { "BatchCheckLayerAvailability": { "input": { "type": "structure", "required": [ "repositoryName", "layerDigests" ], "members": { "registryId": {}, "repositoryName": {}, "layerDigests": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "layers": { "type": "list", "member": { "type": "structure", "members": { "layerDigest": {}, "layerAvailability": {}, "layerSize": { "type": "long" } } } }, "failures": { "type": "list", "member": { "type": "structure", "members": { "layerDigest": {}, "failureCode": {}, "failureReason": {} } } } } } }, "BatchDeleteImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageIds" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Sh" } } }, "output": { "type": "structure", "members": { "imageIds": { "shape": "Sh" }, "failures": { "shape": "Sm" } } } }, "BatchGetImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageIds" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Sh" } } }, "output": { "type": "structure", "members": { "images": { "type": "list", "member": { "shape": "St" } }, "failures": { "shape": "Sm" } } } }, "CompleteLayerUpload": { "input": { "type": "structure", "required": [ "repositoryName", "uploadId", "layerDigests" ], "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "layerDigests": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "layerDigest": {} } } }, "CreateRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "repositoryName": {} } }, "output": { "type": "structure", "members": { "repository": { "shape": "S11" } } } }, "DeleteRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "force": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "repository": { "shape": "S11" } } } }, "DeleteRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "DescribeRepositories": { "input": { "type": "structure", "members": { "registryId": {}, "repositoryNames": { "type": "list", "member": {} }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "repositories": { "type": "list", "member": { "shape": "S11" } }, "nextToken": {} } } }, "GetAuthorizationToken": { "input": { "type": "structure", "members": { "registryIds": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "authorizationData": { "type": "list", "member": { "type": "structure", "members": { "authorizationToken": {}, "expiresAt": { "type": "timestamp" }, "proxyEndpoint": {} } } } } } }, "GetDownloadUrlForLayer": { "input": { "type": "structure", "required": [ "repositoryName", "layerDigest" ], "members": { "registryId": {}, "repositoryName": {}, "layerDigest": {} } }, "output": { "type": "structure", "members": { "downloadUrl": {}, "layerDigest": {} } } }, "GetRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "InitiateLayerUpload": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "uploadId": {}, "partSize": { "type": "long" } } } }, "ListImages": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "nextToken": {}, "maxResults": { "type": "integer" }, "filter": { "type": "structure", "members": { "tagStatus": {} } } } }, "output": { "type": "structure", "members": { "imageIds": { "shape": "Sh" }, "nextToken": {} } } }, "PutImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageManifest" ], "members": { "registryId": {}, "repositoryName": {}, "imageManifest": {} } }, "output": { "type": "structure", "members": { "image": { "shape": "St" } } } }, "SetRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName", "policyText" ], "members": { "registryId": {}, "repositoryName": {}, "policyText": {}, "force": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "UploadLayerPart": { "input": { "type": "structure", "required": [ "repositoryName", "uploadId", "partFirstByte", "partLastByte", "layerPartBlob" ], "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "partFirstByte": { "type": "long" }, "partLastByte": { "type": "long" }, "layerPartBlob": { "type": "blob" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "lastByteReceived": { "type": "long" } } } } }, "shapes": { "Sh": { "type": "list", "member": { "shape": "Si" } }, "Si": { "type": "structure", "members": { "imageDigest": {}, "imageTag": {} } }, "Sm": { "type": "list", "member": { "type": "structure", "members": { "imageId": { "shape": "Si" }, "failureCode": {}, "failureReason": {} } } }, "St": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Si" }, "imageManifest": {} } }, "S11": { "type": "structure", "members": { "repositoryArn": {}, "registryId": {}, "repositoryName": {}, "repositoryUri": {} } } } } },{}],51:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-11-13", "endpointPrefix": "ecs", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Amazon ECS", "serviceFullName": "Amazon EC2 Container Service", "signatureVersion": "v4", "targetPrefix": "AmazonEC2ContainerServiceV20141113" }, "operations": { "CreateCluster": { "input": { "type": "structure", "members": { "clusterName": {} } }, "output": { "type": "structure", "members": { "cluster": { "shape": "S4" } } } }, "CreateService": { "input": { "type": "structure", "required": [ "serviceName", "taskDefinition", "desiredCount" ], "members": { "cluster": {}, "serviceName": {}, "taskDefinition": {}, "loadBalancers": { "shape": "S7" }, "desiredCount": { "type": "integer" }, "clientToken": {}, "role": {}, "deploymentConfiguration": { "shape": "Sa" } } }, "output": { "type": "structure", "members": { "service": { "shape": "Sc" } } } }, "DeleteCluster": { "input": { "type": "structure", "required": [ "cluster" ], "members": { "cluster": {} } }, "output": { "type": "structure", "members": { "cluster": { "shape": "S4" } } } }, "DeleteService": { "input": { "type": "structure", "required": [ "service" ], "members": { "cluster": {}, "service": {} } }, "output": { "type": "structure", "members": { "service": { "shape": "Sc" } } } }, "DeregisterContainerInstance": { "input": { "type": "structure", "required": [ "containerInstance" ], "members": { "cluster": {}, "containerInstance": {}, "force": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "containerInstance": { "shape": "Sp" } } } }, "DeregisterTaskDefinition": { "input": { "type": "structure", "required": [ "taskDefinition" ], "members": { "taskDefinition": {} } }, "output": { "type": "structure", "members": { "taskDefinition": { "shape": "S12" } } } }, "DescribeClusters": { "input": { "type": "structure", "members": { "clusters": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "clusters": { "type": "list", "member": { "shape": "S4" } }, "failures": { "shape": "S1w" } } } }, "DescribeContainerInstances": { "input": { "type": "structure", "required": [ "containerInstances" ], "members": { "cluster": {}, "containerInstances": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "containerInstances": { "type": "list", "member": { "shape": "Sp" } }, "failures": { "shape": "S1w" } } } }, "DescribeServices": { "input": { "type": "structure", "required": [ "services" ], "members": { "cluster": {}, "services": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "services": { "type": "list", "member": { "shape": "Sc" } }, "failures": { "shape": "S1w" } } } }, "DescribeTaskDefinition": { "input": { "type": "structure", "required": [ "taskDefinition" ], "members": { "taskDefinition": {} } }, "output": { "type": "structure", "members": { "taskDefinition": { "shape": "S12" } } } }, "DescribeTasks": { "input": { "type": "structure", "required": [ "tasks" ], "members": { "cluster": {}, "tasks": { "shape": "Sv" } } }, "output": { "type": "structure", "members": { "tasks": { "shape": "S28" }, "failures": { "shape": "S1w" } } } }, "DiscoverPollEndpoint": { "input": { "type": "structure", "members": { "containerInstance": {}, "cluster": {} } }, "output": { "type": "structure", "members": { "endpoint": {}, "telemetryEndpoint": {} } } }, "ListClusters": { "input": { "type": "structure", "members": { "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "clusterArns": { "shape": "Sv" }, "nextToken": {} } } }, "ListContainerInstances": { "input": { "type": "structure", "members": { "cluster": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "containerInstanceArns": { "shape": "Sv" }, "nextToken": {} } } }, "ListServices": { "input": { "type": "structure", "members": { "cluster": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "serviceArns": { "shape": "Sv" }, "nextToken": {} } } }, "ListTaskDefinitionFamilies": { "input": { "type": "structure", "members": { "familyPrefix": {}, "status": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "families": { "shape": "Sv" }, "nextToken": {} } } }, "ListTaskDefinitions": { "input": { "type": "structure", "members": { "familyPrefix": {}, "status": {}, "sort": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "taskDefinitionArns": { "shape": "Sv" }, "nextToken": {} } } }, "ListTasks": { "input": { "type": "structure", "members": { "cluster": {}, "containerInstance": {}, "family": {}, "nextToken": {}, "maxResults": { "type": "integer" }, "startedBy": {}, "serviceName": {}, "desiredStatus": {} } }, "output": { "type": "structure", "members": { "taskArns": { "shape": "Sv" }, "nextToken": {} } } }, "RegisterContainerInstance": { "input": { "type": "structure", "members": { "cluster": {}, "instanceIdentityDocument": {}, "instanceIdentityDocumentSignature": {}, "totalResources": { "shape": "Sr" }, "versionInfo": { "shape": "Sq" }, "containerInstanceArn": {}, "attributes": { "shape": "Sy" } } }, "output": { "type": "structure", "members": { "containerInstance": { "shape": "Sp" } } } }, "RegisterTaskDefinition": { "input": { "type": "structure", "required": [ "family", "containerDefinitions" ], "members": { "family": {}, "taskRoleArn": {}, "networkMode": {}, "containerDefinitions": { "shape": "S13" }, "volumes": { "shape": "S1o" } } }, "output": { "type": "structure", "members": { "taskDefinition": { "shape": "S12" } } } }, "RunTask": { "input": { "type": "structure", "required": [ "taskDefinition" ], "members": { "cluster": {}, "taskDefinition": {}, "overrides": { "shape": "S2a" }, "count": { "type": "integer" }, "startedBy": {} } }, "output": { "type": "structure", "members": { "tasks": { "shape": "S28" }, "failures": { "shape": "S1w" } } } }, "StartTask": { "input": { "type": "structure", "required": [ "taskDefinition", "containerInstances" ], "members": { "cluster": {}, "taskDefinition": {}, "overrides": { "shape": "S2a" }, "containerInstances": { "shape": "Sv" }, "startedBy": {} } }, "output": { "type": "structure", "members": { "tasks": { "shape": "S28" }, "failures": { "shape": "S1w" } } } }, "StopTask": { "input": { "type": "structure", "required": [ "task" ], "members": { "cluster": {}, "task": {}, "reason": {} } }, "output": { "type": "structure", "members": { "task": { "shape": "S29" } } } }, "SubmitContainerStateChange": { "input": { "type": "structure", "members": { "cluster": {}, "task": {}, "containerName": {}, "status": {}, "exitCode": { "type": "integer" }, "reason": {}, "networkBindings": { "shape": "S2f" } } }, "output": { "type": "structure", "members": { "acknowledgment": {} } } }, "SubmitTaskStateChange": { "input": { "type": "structure", "members": { "cluster": {}, "task": {}, "status": {}, "reason": {} } }, "output": { "type": "structure", "members": { "acknowledgment": {} } } }, "UpdateContainerAgent": { "input": { "type": "structure", "required": [ "containerInstance" ], "members": { "cluster": {}, "containerInstance": {} } }, "output": { "type": "structure", "members": { "containerInstance": { "shape": "Sp" } } } }, "UpdateService": { "input": { "type": "structure", "required": [ "service" ], "members": { "cluster": {}, "service": {}, "desiredCount": { "type": "integer" }, "taskDefinition": {}, "deploymentConfiguration": { "shape": "Sa" } } }, "output": { "type": "structure", "members": { "service": { "shape": "Sc" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "clusterArn": {}, "clusterName": {}, "status": {}, "registeredContainerInstancesCount": { "type": "integer" }, "runningTasksCount": { "type": "integer" }, "pendingTasksCount": { "type": "integer" }, "activeServicesCount": { "type": "integer" } } }, "S7": { "type": "list", "member": { "type": "structure", "members": { "targetGroupArn": {}, "loadBalancerName": {}, "containerName": {}, "containerPort": { "type": "integer" } } } }, "Sa": { "type": "structure", "members": { "maximumPercent": { "type": "integer" }, "minimumHealthyPercent": { "type": "integer" } } }, "Sc": { "type": "structure", "members": { "serviceArn": {}, "serviceName": {}, "clusterArn": {}, "loadBalancers": { "shape": "S7" }, "status": {}, "desiredCount": { "type": "integer" }, "runningCount": { "type": "integer" }, "pendingCount": { "type": "integer" }, "taskDefinition": {}, "deploymentConfiguration": { "shape": "Sa" }, "deployments": { "type": "list", "member": { "type": "structure", "members": { "id": {}, "status": {}, "taskDefinition": {}, "desiredCount": { "type": "integer" }, "pendingCount": { "type": "integer" }, "runningCount": { "type": "integer" }, "createdAt": { "type": "timestamp" }, "updatedAt": { "type": "timestamp" } } } }, "roleArn": {}, "events": { "type": "list", "member": { "type": "structure", "members": { "id": {}, "createdAt": { "type": "timestamp" }, "message": {} } } }, "createdAt": { "type": "timestamp" } } }, "Sp": { "type": "structure", "members": { "containerInstanceArn": {}, "ec2InstanceId": {}, "versionInfo": { "shape": "Sq" }, "remainingResources": { "shape": "Sr" }, "registeredResources": { "shape": "Sr" }, "status": {}, "agentConnected": { "type": "boolean" }, "runningTasksCount": { "type": "integer" }, "pendingTasksCount": { "type": "integer" }, "agentUpdateStatus": {}, "attributes": { "shape": "Sy" } } }, "Sq": { "type": "structure", "members": { "agentVersion": {}, "agentHash": {}, "dockerVersion": {} } }, "Sr": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "type": {}, "doubleValue": { "type": "double" }, "longValue": { "type": "long" }, "integerValue": { "type": "integer" }, "stringSetValue": { "shape": "Sv" } } } }, "Sv": { "type": "list", "member": {} }, "Sy": { "type": "list", "member": { "shape": "Sz" } }, "Sz": { "type": "structure", "required": [ "name" ], "members": { "name": {}, "value": {} } }, "S12": { "type": "structure", "members": { "taskDefinitionArn": {}, "containerDefinitions": { "shape": "S13" }, "family": {}, "taskRoleArn": {}, "networkMode": {}, "revision": { "type": "integer" }, "volumes": { "shape": "S1o" }, "status": {}, "requiresAttributes": { "type": "list", "member": { "shape": "Sz" } } } }, "S13": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "image": {}, "cpu": { "type": "integer" }, "memory": { "type": "integer" }, "memoryReservation": { "type": "integer" }, "links": { "shape": "Sv" }, "portMappings": { "type": "list", "member": { "type": "structure", "members": { "containerPort": { "type": "integer" }, "hostPort": { "type": "integer" }, "protocol": {} } } }, "essential": { "type": "boolean" }, "entryPoint": { "shape": "Sv" }, "command": { "shape": "Sv" }, "environment": { "shape": "S18" }, "mountPoints": { "type": "list", "member": { "type": "structure", "members": { "sourceVolume": {}, "containerPath": {}, "readOnly": { "type": "boolean" } } } }, "volumesFrom": { "type": "list", "member": { "type": "structure", "members": { "sourceContainer": {}, "readOnly": { "type": "boolean" } } } }, "hostname": {}, "user": {}, "workingDirectory": {}, "disableNetworking": { "type": "boolean" }, "privileged": { "type": "boolean" }, "readonlyRootFilesystem": { "type": "boolean" }, "dnsServers": { "shape": "Sv" }, "dnsSearchDomains": { "shape": "Sv" }, "extraHosts": { "type": "list", "member": { "type": "structure", "required": [ "hostname", "ipAddress" ], "members": { "hostname": {}, "ipAddress": {} } } }, "dockerSecurityOptions": { "shape": "Sv" }, "dockerLabels": { "type": "map", "key": {}, "value": {} }, "ulimits": { "type": "list", "member": { "type": "structure", "required": [ "name", "softLimit", "hardLimit" ], "members": { "name": {}, "softLimit": { "type": "integer" }, "hardLimit": { "type": "integer" } } } }, "logConfiguration": { "type": "structure", "required": [ "logDriver" ], "members": { "logDriver": {}, "options": { "type": "map", "key": {}, "value": {} } } } } } }, "S18": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "value": {} } } }, "S1o": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "host": { "type": "structure", "members": { "sourcePath": {} } } } } }, "S1w": { "type": "list", "member": { "type": "structure", "members": { "arn": {}, "reason": {} } } }, "S28": { "type": "list", "member": { "shape": "S29" } }, "S29": { "type": "structure", "members": { "taskArn": {}, "clusterArn": {}, "taskDefinitionArn": {}, "containerInstanceArn": {}, "overrides": { "shape": "S2a" }, "lastStatus": {}, "desiredStatus": {}, "containers": { "type": "list", "member": { "type": "structure", "members": { "containerArn": {}, "taskArn": {}, "name": {}, "lastStatus": {}, "exitCode": { "type": "integer" }, "reason": {}, "networkBindings": { "shape": "S2f" } } } }, "startedBy": {}, "stoppedReason": {}, "createdAt": { "type": "timestamp" }, "startedAt": { "type": "timestamp" }, "stoppedAt": { "type": "timestamp" } } }, "S2a": { "type": "structure", "members": { "containerOverrides": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "command": { "shape": "Sv" }, "environment": { "shape": "S18" } } } }, "taskRoleArn": {} } }, "S2f": { "type": "list", "member": { "type": "structure", "members": { "bindIP": {}, "containerPort": { "type": "integer" }, "hostPort": { "type": "integer" }, "protocol": {} } } } } } },{}],52:[function(require,module,exports){ module.exports={ "pagination": { "ListClusters": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "clusterArns" }, "ListContainerInstances": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "containerInstanceArns" }, "ListTaskDefinitions": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "taskDefinitionArns" }, "ListTaskDefinitionFamilies": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "families" }, "ListTasks": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "taskArns" }, "ListServices": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "serviceArns" } } } },{}],53:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "TasksRunning": { "delay": 6, "operation": "DescribeTasks", "maxAttempts": 100, "acceptors": [ { "expected": "STOPPED", "matcher": "pathAny", "state": "failure", "argument": "tasks[].lastStatus" }, { "expected": "MISSING", "matcher": "pathAny", "state": "failure", "argument": "failures[].reason" }, { "expected": "RUNNING", "matcher": "pathAll", "state": "success", "argument": "tasks[].lastStatus" } ] }, "TasksStopped": { "delay": 6, "operation": "DescribeTasks", "maxAttempts": 100, "acceptors": [ { "expected": "STOPPED", "matcher": "pathAll", "state": "success", "argument": "tasks[].lastStatus" } ] }, "ServicesStable": { "delay": 15, "operation": "DescribeServices", "maxAttempts": 40, "acceptors": [ { "expected": "MISSING", "matcher": "pathAny", "state": "failure", "argument": "failures[].reason" }, { "expected": "DRAINING", "matcher": "pathAny", "state": "failure", "argument": "services[].status" }, { "expected": "INACTIVE", "matcher": "pathAny", "state": "failure", "argument": "services[].status" }, { "expected": true, "matcher": "path", "state": "success", "argument": "length(services[?!(length(deployments) == `1` && runningCount == desiredCount)]) == `0`" } ] }, "ServicesInactive": { "delay": 15, "operation": "DescribeServices", "maxAttempts": 40, "acceptors": [ { "expected": "MISSING", "matcher": "pathAny", "state": "failure", "argument": "failures[].reason" }, { "expected": "INACTIVE", "matcher": "pathAny", "state": "success", "argument": "services[].status" } ] } } } },{}],54:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-02-02", "endpointPrefix": "elasticache", "protocol": "query", "serviceFullName": "Amazon ElastiCache", "signatureVersion": "v4", "xmlNamespace": "http://elasticache.amazonaws.com/doc/2015-02-02/" }, "operations": { "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S3" } } }, "output": { "shape": "S5", "resultWrapper": "AddTagsToResourceResult" } }, "AuthorizeCacheSecurityGroupIngress": { "input": { "type": "structure", "required": [ "CacheSecurityGroupName", "EC2SecurityGroupName", "EC2SecurityGroupOwnerId" ], "members": { "CacheSecurityGroupName": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeCacheSecurityGroupIngressResult", "type": "structure", "members": { "CacheSecurityGroup": { "shape": "S8" } } } }, "CopySnapshot": { "input": { "type": "structure", "required": [ "SourceSnapshotName", "TargetSnapshotName" ], "members": { "SourceSnapshotName": {}, "TargetSnapshotName": {}, "TargetBucket": {} } }, "output": { "resultWrapper": "CopySnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "CreateCacheCluster": { "input": { "type": "structure", "required": [ "CacheClusterId" ], "members": { "CacheClusterId": {}, "ReplicationGroupId": {}, "AZMode": {}, "PreferredAvailabilityZone": {}, "PreferredAvailabilityZones": { "shape": "Sl" }, "NumCacheNodes": { "type": "integer" }, "CacheNodeType": {}, "Engine": {}, "EngineVersion": {}, "CacheParameterGroupName": {}, "CacheSubnetGroupName": {}, "CacheSecurityGroupNames": { "shape": "Sm" }, "SecurityGroupIds": { "shape": "Sn" }, "Tags": { "shape": "S3" }, "SnapshotArns": { "shape": "So" }, "SnapshotName": {}, "PreferredMaintenanceWindow": {}, "Port": { "type": "integer" }, "NotificationTopicArn": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {} } }, "output": { "resultWrapper": "CreateCacheClusterResult", "type": "structure", "members": { "CacheCluster": { "shape": "Sr" } } } }, "CreateCacheParameterGroup": { "input": { "type": "structure", "required": [ "CacheParameterGroupName", "CacheParameterGroupFamily", "Description" ], "members": { "CacheParameterGroupName": {}, "CacheParameterGroupFamily": {}, "Description": {} } }, "output": { "resultWrapper": "CreateCacheParameterGroupResult", "type": "structure", "members": { "CacheParameterGroup": { "shape": "S16" } } } }, "CreateCacheSecurityGroup": { "input": { "type": "structure", "required": [ "CacheSecurityGroupName", "Description" ], "members": { "CacheSecurityGroupName": {}, "Description": {} } }, "output": { "resultWrapper": "CreateCacheSecurityGroupResult", "type": "structure", "members": { "CacheSecurityGroup": { "shape": "S8" } } } }, "CreateCacheSubnetGroup": { "input": { "type": "structure", "required": [ "CacheSubnetGroupName", "CacheSubnetGroupDescription", "SubnetIds" ], "members": { "CacheSubnetGroupName": {}, "CacheSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1a" } } }, "output": { "resultWrapper": "CreateCacheSubnetGroupResult", "type": "structure", "members": { "CacheSubnetGroup": { "shape": "S1c" } } } }, "CreateReplicationGroup": { "input": { "type": "structure", "required": [ "ReplicationGroupId", "ReplicationGroupDescription" ], "members": { "ReplicationGroupId": {}, "ReplicationGroupDescription": {}, "PrimaryClusterId": {}, "AutomaticFailoverEnabled": { "type": "boolean" }, "NumCacheClusters": { "type": "integer" }, "PreferredCacheClusterAZs": { "type": "list", "member": { "locationName": "AvailabilityZone" } }, "CacheNodeType": {}, "Engine": {}, "EngineVersion": {}, "CacheParameterGroupName": {}, "CacheSubnetGroupName": {}, "CacheSecurityGroupNames": { "shape": "Sm" }, "SecurityGroupIds": { "shape": "Sn" }, "Tags": { "shape": "S3" }, "SnapshotArns": { "shape": "So" }, "SnapshotName": {}, "PreferredMaintenanceWindow": {}, "Port": { "type": "integer" }, "NotificationTopicArn": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {} } }, "output": { "resultWrapper": "CreateReplicationGroupResult", "type": "structure", "members": { "ReplicationGroup": { "shape": "S1j" } } } }, "CreateSnapshot": { "input": { "type": "structure", "required": [ "CacheClusterId", "SnapshotName" ], "members": { "CacheClusterId": {}, "SnapshotName": {} } }, "output": { "resultWrapper": "CreateSnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "DeleteCacheCluster": { "input": { "type": "structure", "required": [ "CacheClusterId" ], "members": { "CacheClusterId": {}, "FinalSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteCacheClusterResult", "type": "structure", "members": { "CacheCluster": { "shape": "Sr" } } } }, "DeleteCacheParameterGroup": { "input": { "type": "structure", "required": [ "CacheParameterGroupName" ], "members": { "CacheParameterGroupName": {} } } }, "DeleteCacheSecurityGroup": { "input": { "type": "structure", "required": [ "CacheSecurityGroupName" ], "members": { "CacheSecurityGroupName": {} } } }, "DeleteCacheSubnetGroup": { "input": { "type": "structure", "required": [ "CacheSubnetGroupName" ], "members": { "CacheSubnetGroupName": {} } } }, "DeleteReplicationGroup": { "input": { "type": "structure", "required": [ "ReplicationGroupId" ], "members": { "ReplicationGroupId": {}, "RetainPrimaryCluster": { "type": "boolean" }, "FinalSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteReplicationGroupResult", "type": "structure", "members": { "ReplicationGroup": { "shape": "S1j" } } } }, "DeleteSnapshot": { "input": { "type": "structure", "required": [ "SnapshotName" ], "members": { "SnapshotName": {} } }, "output": { "resultWrapper": "DeleteSnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "DescribeCacheClusters": { "input": { "type": "structure", "members": { "CacheClusterId": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "ShowCacheNodeInfo": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeCacheClustersResult", "type": "structure", "members": { "Marker": {}, "CacheClusters": { "type": "list", "member": { "shape": "Sr", "locationName": "CacheCluster" } } } } }, "DescribeCacheEngineVersions": { "input": { "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "CacheParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "DefaultOnly": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeCacheEngineVersionsResult", "type": "structure", "members": { "Marker": {}, "CacheEngineVersions": { "type": "list", "member": { "locationName": "CacheEngineVersion", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "CacheParameterGroupFamily": {}, "CacheEngineDescription": {}, "CacheEngineVersionDescription": {} } } } } } }, "DescribeCacheParameterGroups": { "input": { "type": "structure", "members": { "CacheParameterGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeCacheParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "CacheParameterGroups": { "type": "list", "member": { "shape": "S16", "locationName": "CacheParameterGroup" } } } } }, "DescribeCacheParameters": { "input": { "type": "structure", "required": [ "CacheParameterGroupName" ], "members": { "CacheParameterGroupName": {}, "Source": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeCacheParametersResult", "type": "structure", "members": { "Marker": {}, "Parameters": { "shape": "S2f" }, "CacheNodeTypeSpecificParameters": { "shape": "S2i" } } } }, "DescribeCacheSecurityGroups": { "input": { "type": "structure", "members": { "CacheSecurityGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeCacheSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "CacheSecurityGroups": { "type": "list", "member": { "shape": "S8", "locationName": "CacheSecurityGroup" } } } } }, "DescribeCacheSubnetGroups": { "input": { "type": "structure", "members": { "CacheSubnetGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeCacheSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "CacheSubnetGroups": { "type": "list", "member": { "shape": "S1c", "locationName": "CacheSubnetGroup" } } } } }, "DescribeEngineDefaultParameters": { "input": { "type": "structure", "required": [ "CacheParameterGroupFamily" ], "members": { "CacheParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultParametersResult", "type": "structure", "members": { "EngineDefaults": { "type": "structure", "members": { "CacheParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S2f" }, "CacheNodeTypeSpecificParameters": { "shape": "S2i" } }, "wrapper": true } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "Date": { "type": "timestamp" } } } } } } }, "DescribeReplicationGroups": { "input": { "type": "structure", "members": { "ReplicationGroupId": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReplicationGroupsResult", "type": "structure", "members": { "Marker": {}, "ReplicationGroups": { "type": "list", "member": { "shape": "S1j", "locationName": "ReplicationGroup" } } } } }, "DescribeReservedCacheNodes": { "input": { "type": "structure", "members": { "ReservedCacheNodeId": {}, "ReservedCacheNodesOfferingId": {}, "CacheNodeType": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedCacheNodesResult", "type": "structure", "members": { "Marker": {}, "ReservedCacheNodes": { "type": "list", "member": { "shape": "S36", "locationName": "ReservedCacheNode" } } } } }, "DescribeReservedCacheNodesOfferings": { "input": { "type": "structure", "members": { "ReservedCacheNodesOfferingId": {}, "CacheNodeType": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedCacheNodesOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedCacheNodesOfferings": { "type": "list", "member": { "locationName": "ReservedCacheNodesOffering", "type": "structure", "members": { "ReservedCacheNodesOfferingId": {}, "CacheNodeType": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "ProductDescription": {}, "OfferingType": {}, "RecurringCharges": { "shape": "S38" } }, "wrapper": true } } } } }, "DescribeSnapshots": { "input": { "type": "structure", "members": { "CacheClusterId": {}, "SnapshotName": {}, "SnapshotSource": {}, "Marker": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeSnapshotsResult", "type": "structure", "members": { "Marker": {}, "Snapshots": { "type": "list", "member": { "shape": "Sd", "locationName": "Snapshot" } } } } }, "ListAllowedNodeTypeModifications": { "input": { "type": "structure", "members": { "CacheClusterId": {}, "ReplicationGroupId": {} } }, "output": { "resultWrapper": "ListAllowedNodeTypeModificationsResult", "type": "structure", "members": { "ScaleUpModifications": { "type": "list", "member": {} } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceName" ], "members": { "ResourceName": {} } }, "output": { "shape": "S5", "resultWrapper": "ListTagsForResourceResult" } }, "ModifyCacheCluster": { "input": { "type": "structure", "required": [ "CacheClusterId" ], "members": { "CacheClusterId": {}, "NumCacheNodes": { "type": "integer" }, "CacheNodeIdsToRemove": { "shape": "Sv" }, "AZMode": {}, "NewAvailabilityZones": { "shape": "Sl" }, "CacheSecurityGroupNames": { "shape": "Sm" }, "SecurityGroupIds": { "shape": "Sn" }, "PreferredMaintenanceWindow": {}, "NotificationTopicArn": {}, "CacheParameterGroupName": {}, "NotificationTopicStatus": {}, "ApplyImmediately": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {}, "CacheNodeType": {} } }, "output": { "resultWrapper": "ModifyCacheClusterResult", "type": "structure", "members": { "CacheCluster": { "shape": "Sr" } } } }, "ModifyCacheParameterGroup": { "input": { "type": "structure", "required": [ "CacheParameterGroupName", "ParameterNameValues" ], "members": { "CacheParameterGroupName": {}, "ParameterNameValues": { "shape": "S3o" } } }, "output": { "shape": "S3q", "resultWrapper": "ModifyCacheParameterGroupResult" } }, "ModifyCacheSubnetGroup": { "input": { "type": "structure", "required": [ "CacheSubnetGroupName" ], "members": { "CacheSubnetGroupName": {}, "CacheSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1a" } } }, "output": { "resultWrapper": "ModifyCacheSubnetGroupResult", "type": "structure", "members": { "CacheSubnetGroup": { "shape": "S1c" } } } }, "ModifyReplicationGroup": { "input": { "type": "structure", "required": [ "ReplicationGroupId" ], "members": { "ReplicationGroupId": {}, "ReplicationGroupDescription": {}, "PrimaryClusterId": {}, "SnapshottingClusterId": {}, "AutomaticFailoverEnabled": { "type": "boolean" }, "CacheSecurityGroupNames": { "shape": "Sm" }, "SecurityGroupIds": { "shape": "Sn" }, "PreferredMaintenanceWindow": {}, "NotificationTopicArn": {}, "CacheParameterGroupName": {}, "NotificationTopicStatus": {}, "ApplyImmediately": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {}, "CacheNodeType": {} } }, "output": { "resultWrapper": "ModifyReplicationGroupResult", "type": "structure", "members": { "ReplicationGroup": { "shape": "S1j" } } } }, "PurchaseReservedCacheNodesOffering": { "input": { "type": "structure", "required": [ "ReservedCacheNodesOfferingId" ], "members": { "ReservedCacheNodesOfferingId": {}, "ReservedCacheNodeId": {}, "CacheNodeCount": { "type": "integer" } } }, "output": { "resultWrapper": "PurchaseReservedCacheNodesOfferingResult", "type": "structure", "members": { "ReservedCacheNode": { "shape": "S36" } } } }, "RebootCacheCluster": { "input": { "type": "structure", "required": [ "CacheClusterId", "CacheNodeIdsToReboot" ], "members": { "CacheClusterId": {}, "CacheNodeIdsToReboot": { "shape": "Sv" } } }, "output": { "resultWrapper": "RebootCacheClusterResult", "type": "structure", "members": { "CacheCluster": { "shape": "Sr" } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "type": "list", "member": {} } } }, "output": { "shape": "S5", "resultWrapper": "RemoveTagsFromResourceResult" } }, "ResetCacheParameterGroup": { "input": { "type": "structure", "required": [ "CacheParameterGroupName" ], "members": { "CacheParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "ParameterNameValues": { "shape": "S3o" } } }, "output": { "shape": "S3q", "resultWrapper": "ResetCacheParameterGroupResult" } }, "RevokeCacheSecurityGroupIngress": { "input": { "type": "structure", "required": [ "CacheSecurityGroupName", "EC2SecurityGroupName", "EC2SecurityGroupOwnerId" ], "members": { "CacheSecurityGroupName": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeCacheSecurityGroupIngressResult", "type": "structure", "members": { "CacheSecurityGroup": { "shape": "S8" } } } } }, "shapes": { "S3": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S5": { "type": "structure", "members": { "TagList": { "shape": "S3" } } }, "S8": { "type": "structure", "members": { "OwnerId": {}, "CacheSecurityGroupName": {}, "Description": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {} } } } }, "wrapper": true }, "Sd": { "type": "structure", "members": { "SnapshotName": {}, "CacheClusterId": {}, "SnapshotStatus": {}, "SnapshotSource": {}, "CacheNodeType": {}, "Engine": {}, "EngineVersion": {}, "NumCacheNodes": { "type": "integer" }, "PreferredAvailabilityZone": {}, "CacheClusterCreateTime": { "type": "timestamp" }, "PreferredMaintenanceWindow": {}, "TopicArn": {}, "Port": { "type": "integer" }, "CacheParameterGroupName": {}, "CacheSubnetGroupName": {}, "VpcId": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {}, "NodeSnapshots": { "type": "list", "member": { "locationName": "NodeSnapshot", "type": "structure", "members": { "CacheNodeId": {}, "CacheSize": {}, "CacheNodeCreateTime": { "type": "timestamp" }, "SnapshotCreateTime": { "type": "timestamp" } }, "wrapper": true } } }, "wrapper": true }, "Sl": { "type": "list", "member": { "locationName": "PreferredAvailabilityZone" } }, "Sm": { "type": "list", "member": { "locationName": "CacheSecurityGroupName" } }, "Sn": { "type": "list", "member": { "locationName": "SecurityGroupId" } }, "So": { "type": "list", "member": { "locationName": "SnapshotArn" } }, "Sr": { "type": "structure", "members": { "CacheClusterId": {}, "ConfigurationEndpoint": { "shape": "Ss" }, "ClientDownloadLandingPage": {}, "CacheNodeType": {}, "Engine": {}, "EngineVersion": {}, "CacheClusterStatus": {}, "NumCacheNodes": { "type": "integer" }, "PreferredAvailabilityZone": {}, "CacheClusterCreateTime": { "type": "timestamp" }, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "NumCacheNodes": { "type": "integer" }, "CacheNodeIdsToRemove": { "shape": "Sv" }, "EngineVersion": {}, "CacheNodeType": {} } }, "NotificationConfiguration": { "type": "structure", "members": { "TopicArn": {}, "TopicStatus": {} } }, "CacheSecurityGroups": { "type": "list", "member": { "locationName": "CacheSecurityGroup", "type": "structure", "members": { "CacheSecurityGroupName": {}, "Status": {} } } }, "CacheParameterGroup": { "type": "structure", "members": { "CacheParameterGroupName": {}, "ParameterApplyStatus": {}, "CacheNodeIdsToReboot": { "shape": "Sv" } } }, "CacheSubnetGroupName": {}, "CacheNodes": { "type": "list", "member": { "locationName": "CacheNode", "type": "structure", "members": { "CacheNodeId": {}, "CacheNodeStatus": {}, "CacheNodeCreateTime": { "type": "timestamp" }, "Endpoint": { "shape": "Ss" }, "ParameterGroupStatus": {}, "SourceCacheNodeId": {}, "CustomerAvailabilityZone": {} } } }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "SecurityGroups": { "type": "list", "member": { "type": "structure", "members": { "SecurityGroupId": {}, "Status": {} } } }, "ReplicationGroupId": {}, "SnapshotRetentionLimit": { "type": "integer" }, "SnapshotWindow": {} }, "wrapper": true }, "Ss": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" } } }, "Sv": { "type": "list", "member": { "locationName": "CacheNodeId" } }, "S16": { "type": "structure", "members": { "CacheParameterGroupName": {}, "CacheParameterGroupFamily": {}, "Description": {} }, "wrapper": true }, "S1a": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S1c": { "type": "structure", "members": { "CacheSubnetGroupName": {}, "CacheSubnetGroupDescription": {}, "VpcId": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "type": "structure", "members": { "Name": {} }, "wrapper": true } } } } }, "wrapper": true }, "S1j": { "type": "structure", "members": { "ReplicationGroupId": {}, "Description": {}, "Status": {}, "PendingModifiedValues": { "type": "structure", "members": { "PrimaryClusterId": {}, "AutomaticFailoverStatus": {} } }, "MemberClusters": { "type": "list", "member": { "locationName": "ClusterId" } }, "NodeGroups": { "type": "list", "member": { "locationName": "NodeGroup", "type": "structure", "members": { "NodeGroupId": {}, "Status": {}, "PrimaryEndpoint": { "shape": "Ss" }, "NodeGroupMembers": { "type": "list", "member": { "locationName": "NodeGroupMember", "type": "structure", "members": { "CacheClusterId": {}, "CacheNodeId": {}, "ReadEndpoint": { "shape": "Ss" }, "PreferredAvailabilityZone": {}, "CurrentRole": {} } } } } } }, "SnapshottingClusterId": {}, "AutomaticFailover": {} }, "wrapper": true }, "S2f": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "ChangeType": {} } } }, "S2i": { "type": "list", "member": { "locationName": "CacheNodeTypeSpecificParameter", "type": "structure", "members": { "ParameterName": {}, "Description": {}, "Source": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "CacheNodeTypeSpecificValues": { "type": "list", "member": { "locationName": "CacheNodeTypeSpecificValue", "type": "structure", "members": { "CacheNodeType": {}, "Value": {} } } }, "ChangeType": {} } } }, "S36": { "type": "structure", "members": { "ReservedCacheNodeId": {}, "ReservedCacheNodesOfferingId": {}, "CacheNodeType": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CacheNodeCount": { "type": "integer" }, "ProductDescription": {}, "OfferingType": {}, "State": {}, "RecurringCharges": { "shape": "S38" } }, "wrapper": true }, "S38": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S3o": { "type": "list", "member": { "locationName": "ParameterNameValue", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {} } } }, "S3q": { "type": "structure", "members": { "CacheParameterGroupName": {} } } } } },{}],55:[function(require,module,exports){ module.exports={ "pagination": { "DescribeCacheClusters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "CacheClusters" }, "DescribeCacheEngineVersions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "CacheEngineVersions" }, "DescribeCacheParameterGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "CacheParameterGroups" }, "DescribeCacheParameters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Parameters" }, "DescribeCacheSecurityGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "CacheSecurityGroups" }, "DescribeCacheSubnetGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "CacheSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", "result_key": "EngineDefaults.Parameters" }, "DescribeEvents": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Events" }, "DescribeReservedCacheNodes": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedCacheNodes" }, "DescribeReservedCacheNodesOfferings": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedCacheNodesOfferings" }, "DescribeReplicationGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReplicationGroups" }, "DescribeSnapshots": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Snapshots" } } } },{}],56:[function(require,module,exports){ module.exports={ "version":2, "waiters":{ "CacheClusterAvailable":{ "acceptors":[ { "argument":"CacheClusters[].CacheClusterStatus", "expected":"available", "matcher":"pathAll", "state":"success" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"deleted", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"deleting", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"incompatible-network", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"restore-failed", "matcher":"pathAny", "state":"failure" } ], "delay":15, "description":"Wait until ElastiCache cluster is available.", "maxAttempts":40, "operation":"DescribeCacheClusters" }, "CacheClusterDeleted":{ "acceptors":[ { "argument":"CacheClusters[].CacheClusterStatus", "expected":"deleted", "matcher":"pathAll", "state":"success" }, { "expected":"CacheClusterNotFound", "matcher":"error", "state":"success" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"available", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"creating", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"incompatible-network", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"modifying", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"restore-failed", "matcher":"pathAny", "state":"failure" }, { "argument":"CacheClusters[].CacheClusterStatus", "expected":"snapshotting", "matcher":"pathAny", "state":"failure" } ], "delay":15, "description":"Wait until ElastiCache cluster is deleted.", "maxAttempts":40, "operation":"DescribeCacheClusters" }, "ReplicationGroupAvailable":{ "acceptors":[ { "argument":"ReplicationGroups[].Status", "expected":"available", "matcher":"pathAll", "state":"success" }, { "argument":"ReplicationGroups[].Status", "expected":"deleted", "matcher":"pathAny", "state":"failure" } ], "delay":15, "description":"Wait until ElastiCache replication group is available.", "maxAttempts":40, "operation":"DescribeReplicationGroups" }, "ReplicationGroupDeleted":{ "acceptors":[ { "argument":"ReplicationGroups[].Status", "expected":"deleted", "matcher":"pathAll", "state":"success" }, { "argument":"ReplicationGroups[].Status", "expected":"available", "matcher":"pathAny", "state":"failure" }, { "expected":"ReplicationGroupNotFoundFault", "matcher":"error", "state":"success" } ], "delay":15, "description":"Wait until ElastiCache replication group is deleted.", "maxAttempts":40, "operation":"DescribeReplicationGroups" } } } },{}],57:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2010-12-01", "endpointPrefix": "elasticbeanstalk", "protocol": "query", "serviceAbbreviation": "Elastic Beanstalk", "serviceFullName": "AWS Elastic Beanstalk", "signatureVersion": "v4", "xmlNamespace": "http://elasticbeanstalk.amazonaws.com/docs/2010-12-01/" }, "operations": { "AbortEnvironmentUpdate": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {} } } }, "ApplyEnvironmentManagedAction": { "input": { "type": "structure", "required": [ "ActionId" ], "members": { "EnvironmentName": {}, "EnvironmentId": {}, "ActionId": {} } }, "output": { "resultWrapper": "ApplyEnvironmentManagedActionResult", "type": "structure", "members": { "ActionId": {}, "ActionDescription": {}, "ActionType": {}, "Status": {} } } }, "CheckDNSAvailability": { "input": { "type": "structure", "required": [ "CNAMEPrefix" ], "members": { "CNAMEPrefix": {} } }, "output": { "resultWrapper": "CheckDNSAvailabilityResult", "type": "structure", "members": { "Available": { "type": "boolean" }, "FullyQualifiedCNAME": {} } } }, "ComposeEnvironments": { "input": { "type": "structure", "members": { "ApplicationName": {}, "GroupName": {}, "VersionLabels": { "type": "list", "member": {} } } }, "output": { "shape": "Si", "resultWrapper": "ComposeEnvironmentsResult" } }, "CreateApplication": { "input": { "type": "structure", "required": [ "ApplicationName" ], "members": { "ApplicationName": {}, "Description": {} } }, "output": { "shape": "S14", "resultWrapper": "CreateApplicationResult" } }, "CreateApplicationVersion": { "input": { "type": "structure", "required": [ "ApplicationName", "VersionLabel" ], "members": { "ApplicationName": {}, "VersionLabel": {}, "Description": {}, "SourceBundle": { "shape": "S19" }, "AutoCreateApplication": { "type": "boolean" }, "Process": { "type": "boolean" } } }, "output": { "shape": "S1e", "resultWrapper": "CreateApplicationVersionResult" } }, "CreateConfigurationTemplate": { "input": { "type": "structure", "required": [ "ApplicationName", "TemplateName" ], "members": { "ApplicationName": {}, "TemplateName": {}, "SolutionStackName": {}, "SourceConfiguration": { "type": "structure", "members": { "ApplicationName": {}, "TemplateName": {} } }, "EnvironmentId": {}, "Description": {}, "OptionSettings": { "shape": "S1j" } } }, "output": { "shape": "S1p", "resultWrapper": "CreateConfigurationTemplateResult" } }, "CreateEnvironment": { "input": { "type": "structure", "required": [ "ApplicationName" ], "members": { "ApplicationName": {}, "EnvironmentName": {}, "GroupName": {}, "Description": {}, "CNAMEPrefix": {}, "Tier": { "shape": "S10" }, "Tags": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "VersionLabel": {}, "TemplateName": {}, "SolutionStackName": {}, "OptionSettings": { "shape": "S1j" }, "OptionsToRemove": { "shape": "S1w" } } }, "output": { "shape": "Sk", "resultWrapper": "CreateEnvironmentResult" } }, "CreateStorageLocation": { "output": { "resultWrapper": "CreateStorageLocationResult", "type": "structure", "members": { "S3Bucket": {} } } }, "DeleteApplication": { "input": { "type": "structure", "required": [ "ApplicationName" ], "members": { "ApplicationName": {}, "TerminateEnvByForce": { "type": "boolean" } } } }, "DeleteApplicationVersion": { "input": { "type": "structure", "required": [ "ApplicationName", "VersionLabel" ], "members": { "ApplicationName": {}, "VersionLabel": {}, "DeleteSourceBundle": { "type": "boolean" } } } }, "DeleteConfigurationTemplate": { "input": { "type": "structure", "required": [ "ApplicationName", "TemplateName" ], "members": { "ApplicationName": {}, "TemplateName": {} } } }, "DeleteEnvironmentConfiguration": { "input": { "type": "structure", "required": [ "ApplicationName", "EnvironmentName" ], "members": { "ApplicationName": {}, "EnvironmentName": {} } } }, "DescribeApplicationVersions": { "input": { "type": "structure", "members": { "ApplicationName": {}, "VersionLabels": { "shape": "S16" } } }, "output": { "resultWrapper": "DescribeApplicationVersionsResult", "type": "structure", "members": { "ApplicationVersions": { "type": "list", "member": { "shape": "S1f" } } } } }, "DescribeApplications": { "input": { "type": "structure", "members": { "ApplicationNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeApplicationsResult", "type": "structure", "members": { "Applications": { "type": "list", "member": { "shape": "S15" } } } } }, "DescribeConfigurationOptions": { "input": { "type": "structure", "members": { "ApplicationName": {}, "TemplateName": {}, "EnvironmentName": {}, "SolutionStackName": {}, "Options": { "shape": "S1w" } } }, "output": { "resultWrapper": "DescribeConfigurationOptionsResult", "type": "structure", "members": { "SolutionStackName": {}, "Options": { "type": "list", "member": { "type": "structure", "members": { "Namespace": {}, "Name": {}, "DefaultValue": {}, "ChangeSeverity": {}, "UserDefined": { "type": "boolean" }, "ValueType": {}, "ValueOptions": { "type": "list", "member": {} }, "MinValue": { "type": "integer" }, "MaxValue": { "type": "integer" }, "MaxLength": { "type": "integer" }, "Regex": { "type": "structure", "members": { "Pattern": {}, "Label": {} } } } } } } } }, "DescribeConfigurationSettings": { "input": { "type": "structure", "required": [ "ApplicationName" ], "members": { "ApplicationName": {}, "TemplateName": {}, "EnvironmentName": {} } }, "output": { "resultWrapper": "DescribeConfigurationSettingsResult", "type": "structure", "members": { "ConfigurationSettings": { "type": "list", "member": { "shape": "S1p" } } } } }, "DescribeEnvironmentHealth": { "input": { "type": "structure", "members": { "EnvironmentName": {}, "EnvironmentId": {}, "AttributeNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeEnvironmentHealthResult", "type": "structure", "members": { "EnvironmentName": {}, "HealthStatus": {}, "Status": {}, "Color": {}, "Causes": { "shape": "S2z" }, "ApplicationMetrics": { "shape": "S31" }, "InstancesHealth": { "type": "structure", "members": { "NoData": { "type": "integer" }, "Unknown": { "type": "integer" }, "Pending": { "type": "integer" }, "Ok": { "type": "integer" }, "Info": { "type": "integer" }, "Warning": { "type": "integer" }, "Degraded": { "type": "integer" }, "Severe": { "type": "integer" } } }, "RefreshedAt": { "type": "timestamp" } } } }, "DescribeEnvironmentManagedActionHistory": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {}, "NextToken": {}, "MaxItems": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeEnvironmentManagedActionHistoryResult", "type": "structure", "members": { "ManagedActionHistoryItems": { "type": "list", "member": { "type": "structure", "members": { "ActionId": {}, "ActionType": {}, "ActionDescription": {}, "FailureType": {}, "Status": {}, "FailureDescription": {}, "ExecutedTime": { "type": "timestamp" }, "FinishedTime": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeEnvironmentManagedActions": { "input": { "type": "structure", "members": { "EnvironmentName": {}, "EnvironmentId": {}, "Status": {} } }, "output": { "resultWrapper": "DescribeEnvironmentManagedActionsResult", "type": "structure", "members": { "ManagedActions": { "type": "list", "member": { "type": "structure", "members": { "ActionId": {}, "ActionDescription": {}, "ActionType": {}, "Status": {}, "WindowStartTime": { "type": "timestamp" } } } } } } }, "DescribeEnvironmentResources": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {} } }, "output": { "resultWrapper": "DescribeEnvironmentResourcesResult", "type": "structure", "members": { "EnvironmentResources": { "type": "structure", "members": { "EnvironmentName": {}, "AutoScalingGroups": { "type": "list", "member": { "type": "structure", "members": { "Name": {} } } }, "Instances": { "type": "list", "member": { "type": "structure", "members": { "Id": {} } } }, "LaunchConfigurations": { "type": "list", "member": { "type": "structure", "members": { "Name": {} } } }, "LoadBalancers": { "type": "list", "member": { "type": "structure", "members": { "Name": {} } } }, "Triggers": { "type": "list", "member": { "type": "structure", "members": { "Name": {} } } }, "Queues": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "URL": {} } } } } } } } }, "DescribeEnvironments": { "input": { "type": "structure", "members": { "ApplicationName": {}, "VersionLabel": {}, "EnvironmentIds": { "type": "list", "member": {} }, "EnvironmentNames": { "type": "list", "member": {} }, "IncludeDeleted": { "type": "boolean" }, "IncludedDeletedBackTo": { "type": "timestamp" } } }, "output": { "shape": "Si", "resultWrapper": "DescribeEnvironmentsResult" } }, "DescribeEvents": { "input": { "type": "structure", "members": { "ApplicationName": {}, "VersionLabel": {}, "TemplateName": {}, "EnvironmentId": {}, "EnvironmentName": {}, "RequestId": {}, "Severity": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "MaxRecords": { "type": "integer" }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Events": { "type": "list", "member": { "type": "structure", "members": { "EventDate": { "type": "timestamp" }, "Message": {}, "ApplicationName": {}, "VersionLabel": {}, "TemplateName": {}, "EnvironmentName": {}, "RequestId": {}, "Severity": {} } } }, "NextToken": {} } } }, "DescribeInstancesHealth": { "input": { "type": "structure", "members": { "EnvironmentName": {}, "EnvironmentId": {}, "AttributeNames": { "type": "list", "member": {} }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeInstancesHealthResult", "type": "structure", "members": { "InstanceHealthList": { "type": "list", "member": { "type": "structure", "members": { "InstanceId": {}, "HealthStatus": {}, "Color": {}, "Causes": { "shape": "S2z" }, "LaunchedAt": { "type": "timestamp" }, "ApplicationMetrics": { "shape": "S31" }, "System": { "type": "structure", "members": { "CPUUtilization": { "type": "structure", "members": { "User": { "type": "double" }, "Nice": { "type": "double" }, "System": { "type": "double" }, "Idle": { "type": "double" }, "IOWait": { "type": "double" }, "IRQ": { "type": "double" }, "SoftIRQ": { "type": "double" } } }, "LoadAverage": { "type": "list", "member": { "type": "double" } } } }, "Deployment": { "type": "structure", "members": { "VersionLabel": {}, "DeploymentId": { "type": "long" }, "Status": {}, "DeploymentTime": { "type": "timestamp" } } }, "AvailabilityZone": {}, "InstanceType": {} } } }, "RefreshedAt": { "type": "timestamp" }, "NextToken": {} } } }, "ListAvailableSolutionStacks": { "output": { "resultWrapper": "ListAvailableSolutionStacksResult", "type": "structure", "members": { "SolutionStacks": { "type": "list", "member": {} }, "SolutionStackDetails": { "type": "list", "member": { "type": "structure", "members": { "SolutionStackName": {}, "PermittedFileTypes": { "type": "list", "member": {} } } } } } } }, "RebuildEnvironment": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {} } } }, "RequestEnvironmentInfo": { "input": { "type": "structure", "required": [ "InfoType" ], "members": { "EnvironmentId": {}, "EnvironmentName": {}, "InfoType": {} } } }, "RestartAppServer": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {} } } }, "RetrieveEnvironmentInfo": { "input": { "type": "structure", "required": [ "InfoType" ], "members": { "EnvironmentId": {}, "EnvironmentName": {}, "InfoType": {} } }, "output": { "resultWrapper": "RetrieveEnvironmentInfoResult", "type": "structure", "members": { "EnvironmentInfo": { "type": "list", "member": { "type": "structure", "members": { "InfoType": {}, "Ec2InstanceId": {}, "SampleTimestamp": { "type": "timestamp" }, "Message": {} } } } } } }, "SwapEnvironmentCNAMEs": { "input": { "type": "structure", "members": { "SourceEnvironmentId": {}, "SourceEnvironmentName": {}, "DestinationEnvironmentId": {}, "DestinationEnvironmentName": {} } } }, "TerminateEnvironment": { "input": { "type": "structure", "members": { "EnvironmentId": {}, "EnvironmentName": {}, "TerminateResources": { "type": "boolean" }, "ForceTerminate": { "type": "boolean" } } }, "output": { "shape": "Sk", "resultWrapper": "TerminateEnvironmentResult" } }, "UpdateApplication": { "input": { "type": "structure", "required": [ "ApplicationName" ], "members": { "ApplicationName": {}, "Description": {} } }, "output": { "shape": "S14", "resultWrapper": "UpdateApplicationResult" } }, "UpdateApplicationVersion": { "input": { "type": "structure", "required": [ "ApplicationName", "VersionLabel" ], "members": { "ApplicationName": {}, "VersionLabel": {}, "Description": {} } }, "output": { "shape": "S1e", "resultWrapper": "UpdateApplicationVersionResult" } }, "UpdateConfigurationTemplate": { "input": { "type": "structure", "required": [ "ApplicationName", "TemplateName" ], "members": { "ApplicationName": {}, "TemplateName": {}, "Description": {}, "OptionSettings": { "shape": "S1j" }, "OptionsToRemove": { "shape": "S1w" } } }, "output": { "shape": "S1p", "resultWrapper": "UpdateConfigurationTemplateResult" } }, "UpdateEnvironment": { "input": { "type": "structure", "members": { "ApplicationName": {}, "EnvironmentId": {}, "EnvironmentName": {}, "GroupName": {}, "Description": {}, "Tier": { "shape": "S10" }, "VersionLabel": {}, "TemplateName": {}, "SolutionStackName": {}, "OptionSettings": { "shape": "S1j" }, "OptionsToRemove": { "shape": "S1w" } } }, "output": { "shape": "Sk", "resultWrapper": "UpdateEnvironmentResult" } }, "ValidateConfigurationSettings": { "input": { "type": "structure", "required": [ "ApplicationName", "OptionSettings" ], "members": { "ApplicationName": {}, "TemplateName": {}, "EnvironmentName": {}, "OptionSettings": { "shape": "S1j" } } }, "output": { "resultWrapper": "ValidateConfigurationSettingsResult", "type": "structure", "members": { "Messages": { "type": "list", "member": { "type": "structure", "members": { "Message": {}, "Severity": {}, "Namespace": {}, "OptionName": {} } } } } } } }, "shapes": { "Si": { "type": "structure", "members": { "Environments": { "type": "list", "member": { "shape": "Sk" } } } }, "Sk": { "type": "structure", "members": { "EnvironmentName": {}, "EnvironmentId": {}, "ApplicationName": {}, "VersionLabel": {}, "SolutionStackName": {}, "TemplateName": {}, "Description": {}, "EndpointURL": {}, "CNAME": {}, "DateCreated": { "type": "timestamp" }, "DateUpdated": { "type": "timestamp" }, "Status": {}, "AbortableOperationInProgress": { "type": "boolean" }, "Health": {}, "HealthStatus": {}, "Resources": { "type": "structure", "members": { "LoadBalancer": { "type": "structure", "members": { "LoadBalancerName": {}, "Domain": {}, "Listeners": { "type": "list", "member": { "type": "structure", "members": { "Protocol": {}, "Port": { "type": "integer" } } } } } } } }, "Tier": { "shape": "S10" }, "EnvironmentLinks": { "type": "list", "member": { "type": "structure", "members": { "LinkName": {}, "EnvironmentName": {} } } } } }, "S10": { "type": "structure", "members": { "Name": {}, "Type": {}, "Version": {} } }, "S14": { "type": "structure", "members": { "Application": { "shape": "S15" } } }, "S15": { "type": "structure", "members": { "ApplicationName": {}, "Description": {}, "DateCreated": { "type": "timestamp" }, "DateUpdated": { "type": "timestamp" }, "Versions": { "shape": "S16" }, "ConfigurationTemplates": { "type": "list", "member": {} } } }, "S16": { "type": "list", "member": {} }, "S19": { "type": "structure", "members": { "S3Bucket": {}, "S3Key": {} } }, "S1e": { "type": "structure", "members": { "ApplicationVersion": { "shape": "S1f" } } }, "S1f": { "type": "structure", "members": { "ApplicationName": {}, "Description": {}, "VersionLabel": {}, "SourceBundle": { "shape": "S19" }, "DateCreated": { "type": "timestamp" }, "DateUpdated": { "type": "timestamp" }, "Status": {} } }, "S1j": { "type": "list", "member": { "type": "structure", "members": { "ResourceName": {}, "Namespace": {}, "OptionName": {}, "Value": {} } } }, "S1p": { "type": "structure", "members": { "SolutionStackName": {}, "ApplicationName": {}, "TemplateName": {}, "Description": {}, "EnvironmentName": {}, "DeploymentStatus": {}, "DateCreated": { "type": "timestamp" }, "DateUpdated": { "type": "timestamp" }, "OptionSettings": { "shape": "S1j" } } }, "S1w": { "type": "list", "member": { "type": "structure", "members": { "ResourceName": {}, "Namespace": {}, "OptionName": {} } } }, "S2z": { "type": "list", "member": {} }, "S31": { "type": "structure", "members": { "Duration": { "type": "integer" }, "RequestCount": { "type": "integer" }, "StatusCodes": { "type": "structure", "members": { "Status2xx": { "type": "integer" }, "Status3xx": { "type": "integer" }, "Status4xx": { "type": "integer" }, "Status5xx": { "type": "integer" } } }, "Latency": { "type": "structure", "members": { "P999": { "type": "double" }, "P99": { "type": "double" }, "P95": { "type": "double" }, "P90": { "type": "double" }, "P85": { "type": "double" }, "P75": { "type": "double" }, "P50": { "type": "double" }, "P10": { "type": "double" } } } } } } } },{}],58:[function(require,module,exports){ module.exports={ "pagination": { "DescribeApplicationVersions": { "result_key": "ApplicationVersions" }, "DescribeApplications": { "result_key": "Applications" }, "DescribeConfigurationOptions": { "result_key": "Options" }, "DescribeEnvironments": { "result_key": "Environments" }, "DescribeEvents": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "Events" }, "ListAvailableSolutionStacks": { "result_key": "SolutionStacks" } } } },{}],59:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-06-01", "endpointPrefix": "elasticloadbalancing", "protocol": "query", "serviceFullName": "Elastic Load Balancing", "signatureVersion": "v4", "xmlNamespace": "http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/" }, "operations": { "AddTags": { "input": { "type": "structure", "required": [ "LoadBalancerNames", "Tags" ], "members": { "LoadBalancerNames": { "shape": "S2" }, "Tags": { "shape": "S4" } } }, "output": { "resultWrapper": "AddTagsResult", "type": "structure", "members": {} } }, "ApplySecurityGroupsToLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "SecurityGroups" ], "members": { "LoadBalancerName": {}, "SecurityGroups": { "shape": "Sa" } } }, "output": { "resultWrapper": "ApplySecurityGroupsToLoadBalancerResult", "type": "structure", "members": { "SecurityGroups": { "shape": "Sa" } } } }, "AttachLoadBalancerToSubnets": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Subnets" ], "members": { "LoadBalancerName": {}, "Subnets": { "shape": "Se" } } }, "output": { "resultWrapper": "AttachLoadBalancerToSubnetsResult", "type": "structure", "members": { "Subnets": { "shape": "Se" } } } }, "ConfigureHealthCheck": { "input": { "type": "structure", "required": [ "LoadBalancerName", "HealthCheck" ], "members": { "LoadBalancerName": {}, "HealthCheck": { "shape": "Si" } } }, "output": { "resultWrapper": "ConfigureHealthCheckResult", "type": "structure", "members": { "HealthCheck": { "shape": "Si" } } } }, "CreateAppCookieStickinessPolicy": { "input": { "type": "structure", "required": [ "LoadBalancerName", "PolicyName", "CookieName" ], "members": { "LoadBalancerName": {}, "PolicyName": {}, "CookieName": {} } }, "output": { "resultWrapper": "CreateAppCookieStickinessPolicyResult", "type": "structure", "members": {} } }, "CreateLBCookieStickinessPolicy": { "input": { "type": "structure", "required": [ "LoadBalancerName", "PolicyName" ], "members": { "LoadBalancerName": {}, "PolicyName": {}, "CookieExpirationPeriod": { "type": "long" } } }, "output": { "resultWrapper": "CreateLBCookieStickinessPolicyResult", "type": "structure", "members": {} } }, "CreateLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Listeners" ], "members": { "LoadBalancerName": {}, "Listeners": { "shape": "Sx" }, "AvailabilityZones": { "shape": "S13" }, "Subnets": { "shape": "Se" }, "SecurityGroups": { "shape": "Sa" }, "Scheme": {}, "Tags": { "shape": "S4" } } }, "output": { "resultWrapper": "CreateLoadBalancerResult", "type": "structure", "members": { "DNSName": {} } } }, "CreateLoadBalancerListeners": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Listeners" ], "members": { "LoadBalancerName": {}, "Listeners": { "shape": "Sx" } } }, "output": { "resultWrapper": "CreateLoadBalancerListenersResult", "type": "structure", "members": {} } }, "CreateLoadBalancerPolicy": { "input": { "type": "structure", "required": [ "LoadBalancerName", "PolicyName", "PolicyTypeName" ], "members": { "LoadBalancerName": {}, "PolicyName": {}, "PolicyTypeName": {}, "PolicyAttributes": { "type": "list", "member": { "type": "structure", "members": { "AttributeName": {}, "AttributeValue": {} } } } } }, "output": { "resultWrapper": "CreateLoadBalancerPolicyResult", "type": "structure", "members": {} } }, "DeleteLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName" ], "members": { "LoadBalancerName": {} } }, "output": { "resultWrapper": "DeleteLoadBalancerResult", "type": "structure", "members": {} } }, "DeleteLoadBalancerListeners": { "input": { "type": "structure", "required": [ "LoadBalancerName", "LoadBalancerPorts" ], "members": { "LoadBalancerName": {}, "LoadBalancerPorts": { "type": "list", "member": { "type": "integer" } } } }, "output": { "resultWrapper": "DeleteLoadBalancerListenersResult", "type": "structure", "members": {} } }, "DeleteLoadBalancerPolicy": { "input": { "type": "structure", "required": [ "LoadBalancerName", "PolicyName" ], "members": { "LoadBalancerName": {}, "PolicyName": {} } }, "output": { "resultWrapper": "DeleteLoadBalancerPolicyResult", "type": "structure", "members": {} } }, "DeregisterInstancesFromLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Instances" ], "members": { "LoadBalancerName": {}, "Instances": { "shape": "S1p" } } }, "output": { "resultWrapper": "DeregisterInstancesFromLoadBalancerResult", "type": "structure", "members": { "Instances": { "shape": "S1p" } } } }, "DescribeInstanceHealth": { "input": { "type": "structure", "required": [ "LoadBalancerName" ], "members": { "LoadBalancerName": {}, "Instances": { "shape": "S1p" } } }, "output": { "resultWrapper": "DescribeInstanceHealthResult", "type": "structure", "members": { "InstanceStates": { "type": "list", "member": { "type": "structure", "members": { "InstanceId": {}, "State": {}, "ReasonCode": {}, "Description": {} } } } } } }, "DescribeLoadBalancerAttributes": { "input": { "type": "structure", "required": [ "LoadBalancerName" ], "members": { "LoadBalancerName": {} } }, "output": { "resultWrapper": "DescribeLoadBalancerAttributesResult", "type": "structure", "members": { "LoadBalancerAttributes": { "shape": "S22" } } } }, "DescribeLoadBalancerPolicies": { "input": { "type": "structure", "members": { "LoadBalancerName": {}, "PolicyNames": { "shape": "S2k" } } }, "output": { "resultWrapper": "DescribeLoadBalancerPoliciesResult", "type": "structure", "members": { "PolicyDescriptions": { "type": "list", "member": { "type": "structure", "members": { "PolicyName": {}, "PolicyTypeName": {}, "PolicyAttributeDescriptions": { "type": "list", "member": { "type": "structure", "members": { "AttributeName": {}, "AttributeValue": {} } } } } } } } } }, "DescribeLoadBalancerPolicyTypes": { "input": { "type": "structure", "members": { "PolicyTypeNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeLoadBalancerPolicyTypesResult", "type": "structure", "members": { "PolicyTypeDescriptions": { "type": "list", "member": { "type": "structure", "members": { "PolicyTypeName": {}, "Description": {}, "PolicyAttributeTypeDescriptions": { "type": "list", "member": { "type": "structure", "members": { "AttributeName": {}, "AttributeType": {}, "Description": {}, "DefaultValue": {}, "Cardinality": {} } } } } } } } } }, "DescribeLoadBalancers": { "input": { "type": "structure", "members": { "LoadBalancerNames": { "shape": "S2" }, "Marker": {}, "PageSize": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeLoadBalancersResult", "type": "structure", "members": { "LoadBalancerDescriptions": { "type": "list", "member": { "type": "structure", "members": { "LoadBalancerName": {}, "DNSName": {}, "CanonicalHostedZoneName": {}, "CanonicalHostedZoneNameID": {}, "ListenerDescriptions": { "type": "list", "member": { "type": "structure", "members": { "Listener": { "shape": "Sy" }, "PolicyNames": { "shape": "S2k" } } } }, "Policies": { "type": "structure", "members": { "AppCookieStickinessPolicies": { "type": "list", "member": { "type": "structure", "members": { "PolicyName": {}, "CookieName": {} } } }, "LBCookieStickinessPolicies": { "type": "list", "member": { "type": "structure", "members": { "PolicyName": {}, "CookieExpirationPeriod": { "type": "long" } } } }, "OtherPolicies": { "shape": "S2k" } } }, "BackendServerDescriptions": { "type": "list", "member": { "type": "structure", "members": { "InstancePort": { "type": "integer" }, "PolicyNames": { "shape": "S2k" } } } }, "AvailabilityZones": { "shape": "S13" }, "Subnets": { "shape": "Se" }, "VPCId": {}, "Instances": { "shape": "S1p" }, "HealthCheck": { "shape": "Si" }, "SourceSecurityGroup": { "type": "structure", "members": { "OwnerAlias": {}, "GroupName": {} } }, "SecurityGroups": { "shape": "Sa" }, "CreatedTime": { "type": "timestamp" }, "Scheme": {} } } }, "NextMarker": {} } } }, "DescribeTags": { "input": { "type": "structure", "required": [ "LoadBalancerNames" ], "members": { "LoadBalancerNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeTagsResult", "type": "structure", "members": { "TagDescriptions": { "type": "list", "member": { "type": "structure", "members": { "LoadBalancerName": {}, "Tags": { "shape": "S4" } } } } } } }, "DetachLoadBalancerFromSubnets": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Subnets" ], "members": { "LoadBalancerName": {}, "Subnets": { "shape": "Se" } } }, "output": { "resultWrapper": "DetachLoadBalancerFromSubnetsResult", "type": "structure", "members": { "Subnets": { "shape": "Se" } } } }, "DisableAvailabilityZonesForLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "AvailabilityZones" ], "members": { "LoadBalancerName": {}, "AvailabilityZones": { "shape": "S13" } } }, "output": { "resultWrapper": "DisableAvailabilityZonesForLoadBalancerResult", "type": "structure", "members": { "AvailabilityZones": { "shape": "S13" } } } }, "EnableAvailabilityZonesForLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "AvailabilityZones" ], "members": { "LoadBalancerName": {}, "AvailabilityZones": { "shape": "S13" } } }, "output": { "resultWrapper": "EnableAvailabilityZonesForLoadBalancerResult", "type": "structure", "members": { "AvailabilityZones": { "shape": "S13" } } } }, "ModifyLoadBalancerAttributes": { "input": { "type": "structure", "required": [ "LoadBalancerName", "LoadBalancerAttributes" ], "members": { "LoadBalancerName": {}, "LoadBalancerAttributes": { "shape": "S22" } } }, "output": { "resultWrapper": "ModifyLoadBalancerAttributesResult", "type": "structure", "members": { "LoadBalancerName": {}, "LoadBalancerAttributes": { "shape": "S22" } } } }, "RegisterInstancesWithLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "Instances" ], "members": { "LoadBalancerName": {}, "Instances": { "shape": "S1p" } } }, "output": { "resultWrapper": "RegisterInstancesWithLoadBalancerResult", "type": "structure", "members": { "Instances": { "shape": "S1p" } } } }, "RemoveTags": { "input": { "type": "structure", "required": [ "LoadBalancerNames", "Tags" ], "members": { "LoadBalancerNames": { "shape": "S2" }, "Tags": { "type": "list", "member": { "type": "structure", "members": { "Key": {} } } } } }, "output": { "resultWrapper": "RemoveTagsResult", "type": "structure", "members": {} } }, "SetLoadBalancerListenerSSLCertificate": { "input": { "type": "structure", "required": [ "LoadBalancerName", "LoadBalancerPort", "SSLCertificateId" ], "members": { "LoadBalancerName": {}, "LoadBalancerPort": { "type": "integer" }, "SSLCertificateId": {} } }, "output": { "resultWrapper": "SetLoadBalancerListenerSSLCertificateResult", "type": "structure", "members": {} } }, "SetLoadBalancerPoliciesForBackendServer": { "input": { "type": "structure", "required": [ "LoadBalancerName", "InstancePort", "PolicyNames" ], "members": { "LoadBalancerName": {}, "InstancePort": { "type": "integer" }, "PolicyNames": { "shape": "S2k" } } }, "output": { "resultWrapper": "SetLoadBalancerPoliciesForBackendServerResult", "type": "structure", "members": {} } }, "SetLoadBalancerPoliciesOfListener": { "input": { "type": "structure", "required": [ "LoadBalancerName", "LoadBalancerPort", "PolicyNames" ], "members": { "LoadBalancerName": {}, "LoadBalancerPort": { "type": "integer" }, "PolicyNames": { "shape": "S2k" } } }, "output": { "resultWrapper": "SetLoadBalancerPoliciesOfListenerResult", "type": "structure", "members": {} } } }, "shapes": { "S2": { "type": "list", "member": {} }, "S4": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } }, "Sa": { "type": "list", "member": {} }, "Se": { "type": "list", "member": {} }, "Si": { "type": "structure", "required": [ "Target", "Interval", "Timeout", "UnhealthyThreshold", "HealthyThreshold" ], "members": { "Target": {}, "Interval": { "type": "integer" }, "Timeout": { "type": "integer" }, "UnhealthyThreshold": { "type": "integer" }, "HealthyThreshold": { "type": "integer" } } }, "Sx": { "type": "list", "member": { "shape": "Sy" } }, "Sy": { "type": "structure", "required": [ "Protocol", "LoadBalancerPort", "InstancePort" ], "members": { "Protocol": {}, "LoadBalancerPort": { "type": "integer" }, "InstanceProtocol": {}, "InstancePort": { "type": "integer" }, "SSLCertificateId": {} } }, "S13": { "type": "list", "member": {} }, "S1p": { "type": "list", "member": { "type": "structure", "members": { "InstanceId": {} } } }, "S22": { "type": "structure", "members": { "CrossZoneLoadBalancing": { "type": "structure", "required": [ "Enabled" ], "members": { "Enabled": { "type": "boolean" } } }, "AccessLog": { "type": "structure", "required": [ "Enabled" ], "members": { "Enabled": { "type": "boolean" }, "S3BucketName": {}, "EmitInterval": { "type": "integer" }, "S3BucketPrefix": {} } }, "ConnectionDraining": { "type": "structure", "required": [ "Enabled" ], "members": { "Enabled": { "type": "boolean" }, "Timeout": { "type": "integer" } } }, "ConnectionSettings": { "type": "structure", "required": [ "IdleTimeout" ], "members": { "IdleTimeout": { "type": "integer" } } }, "AdditionalAttributes": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } } } }, "S2k": { "type": "list", "member": {} } } } },{}],60:[function(require,module,exports){ module.exports={ "pagination": { "DescribeInstanceHealth": { "result_key": "InstanceStates" }, "DescribeLoadBalancerPolicies": { "result_key": "PolicyDescriptions" }, "DescribeLoadBalancerPolicyTypes": { "result_key": "PolicyTypeDescriptions" }, "DescribeLoadBalancers": { "input_token": "Marker", "output_token": "NextMarker", "result_key": "LoadBalancerDescriptions" } } } },{}],61:[function(require,module,exports){ module.exports={ "version":2, "waiters":{ "InstanceDeregistered": { "delay": 15, "operation": "DescribeInstanceHealth", "maxAttempts": 40, "acceptors": [ { "expected": "OutOfService", "matcher": "pathAll", "state": "success", "argument": "InstanceStates[].State" }, { "matcher": "error", "expected": "InvalidInstance", "state": "success" } ] }, "AnyInstanceInService":{ "acceptors":[ { "argument":"InstanceStates[].State", "expected":"InService", "matcher":"pathAny", "state":"success" } ], "delay":15, "maxAttempts":40, "operation":"DescribeInstanceHealth" }, "InstanceInService":{ "acceptors":[ { "argument":"InstanceStates[].State", "expected":"InService", "matcher":"pathAll", "state":"success" } ], "delay":15, "maxAttempts":40, "operation":"DescribeInstanceHealth" } } } },{}],62:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-12-01", "endpointPrefix": "elasticloadbalancing", "protocol": "query", "serviceAbbreviation": "Elastic Load Balancing v2", "serviceFullName": "Elastic Load Balancing", "signatureVersion": "v4", "xmlNamespace": "http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/" }, "operations": { "AddTags": { "input": { "type": "structure", "required": [ "ResourceArns", "Tags" ], "members": { "ResourceArns": { "shape": "S2" }, "Tags": { "shape": "S4" } } }, "output": { "resultWrapper": "AddTagsResult", "type": "structure", "members": {} } }, "CreateListener": { "input": { "type": "structure", "required": [ "LoadBalancerArn", "Protocol", "Port", "DefaultActions" ], "members": { "LoadBalancerArn": {}, "Protocol": {}, "Port": { "type": "integer" }, "SslPolicy": {}, "Certificates": { "shape": "Se" }, "DefaultActions": { "shape": "Sh" } } }, "output": { "resultWrapper": "CreateListenerResult", "type": "structure", "members": { "Listeners": { "shape": "Sm" } } } }, "CreateLoadBalancer": { "input": { "type": "structure", "required": [ "Name", "Subnets" ], "members": { "Name": {}, "Subnets": { "shape": "Sr" }, "SecurityGroups": { "shape": "St" }, "Scheme": {}, "Tags": { "shape": "S4" } } }, "output": { "resultWrapper": "CreateLoadBalancerResult", "type": "structure", "members": { "LoadBalancers": { "shape": "Sx" } } } }, "CreateRule": { "input": { "type": "structure", "required": [ "ListenerArn", "Conditions", "Priority", "Actions" ], "members": { "ListenerArn": {}, "Conditions": { "shape": "S1b" }, "Priority": { "type": "integer" }, "Actions": { "shape": "Sh" } } }, "output": { "resultWrapper": "CreateRuleResult", "type": "structure", "members": { "Rules": { "shape": "S1i" } } } }, "CreateTargetGroup": { "input": { "type": "structure", "required": [ "Name", "Protocol", "Port", "VpcId" ], "members": { "Name": {}, "Protocol": {}, "Port": { "type": "integer" }, "VpcId": {}, "HealthCheckProtocol": {}, "HealthCheckPort": {}, "HealthCheckPath": {}, "HealthCheckIntervalSeconds": { "type": "integer" }, "HealthCheckTimeoutSeconds": { "type": "integer" }, "HealthyThresholdCount": { "type": "integer" }, "UnhealthyThresholdCount": { "type": "integer" }, "Matcher": { "shape": "S1u" } } }, "output": { "resultWrapper": "CreateTargetGroupResult", "type": "structure", "members": { "TargetGroups": { "shape": "S1x" } } } }, "DeleteListener": { "input": { "type": "structure", "required": [ "ListenerArn" ], "members": { "ListenerArn": {} } }, "output": { "resultWrapper": "DeleteListenerResult", "type": "structure", "members": {} } }, "DeleteLoadBalancer": { "input": { "type": "structure", "required": [ "LoadBalancerArn" ], "members": { "LoadBalancerArn": {} } }, "output": { "resultWrapper": "DeleteLoadBalancerResult", "type": "structure", "members": {} } }, "DeleteRule": { "input": { "type": "structure", "required": [ "RuleArn" ], "members": { "RuleArn": {} } }, "output": { "resultWrapper": "DeleteRuleResult", "type": "structure", "members": {} } }, "DeleteTargetGroup": { "input": { "type": "structure", "required": [ "TargetGroupArn" ], "members": { "TargetGroupArn": {} } }, "output": { "resultWrapper": "DeleteTargetGroupResult", "type": "structure", "members": {} } }, "DeregisterTargets": { "input": { "type": "structure", "required": [ "TargetGroupArn", "Targets" ], "members": { "TargetGroupArn": {}, "Targets": { "shape": "S29" } } }, "output": { "resultWrapper": "DeregisterTargetsResult", "type": "structure", "members": {} } }, "DescribeListeners": { "input": { "type": "structure", "members": { "LoadBalancerArn": {}, "ListenerArns": { "type": "list", "member": {} }, "Marker": {}, "PageSize": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeListenersResult", "type": "structure", "members": { "Listeners": { "shape": "Sm" }, "NextMarker": {} } } }, "DescribeLoadBalancerAttributes": { "input": { "type": "structure", "required": [ "LoadBalancerArn" ], "members": { "LoadBalancerArn": {} } }, "output": { "resultWrapper": "DescribeLoadBalancerAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "S2k" } } } }, "DescribeLoadBalancers": { "input": { "type": "structure", "members": { "LoadBalancerArns": { "shape": "S1z" }, "Names": { "type": "list", "member": {} }, "Marker": {}, "PageSize": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeLoadBalancersResult", "type": "structure", "members": { "LoadBalancers": { "shape": "Sx" }, "NextMarker": {} } } }, "DescribeRules": { "input": { "type": "structure", "members": { "ListenerArn": {}, "RuleArns": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "DescribeRulesResult", "type": "structure", "members": { "Rules": { "shape": "S1i" } } } }, "DescribeSSLPolicies": { "input": { "type": "structure", "members": { "Names": { "type": "list", "member": {} }, "Marker": {}, "PageSize": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeSSLPoliciesResult", "type": "structure", "members": { "SslPolicies": { "type": "list", "member": { "type": "structure", "members": { "SslProtocols": { "type": "list", "member": {} }, "Ciphers": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Priority": { "type": "integer" } } } }, "Name": {} } } }, "NextMarker": {} } } }, "DescribeTags": { "input": { "type": "structure", "required": [ "ResourceArns" ], "members": { "ResourceArns": { "shape": "S2" } } }, "output": { "resultWrapper": "DescribeTagsResult", "type": "structure", "members": { "TagDescriptions": { "type": "list", "member": { "type": "structure", "members": { "ResourceArn": {}, "Tags": { "shape": "S4" } } } } } } }, "DescribeTargetGroupAttributes": { "input": { "type": "structure", "required": [ "TargetGroupArn" ], "members": { "TargetGroupArn": {} } }, "output": { "resultWrapper": "DescribeTargetGroupAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "S3b" } } } }, "DescribeTargetGroups": { "input": { "type": "structure", "members": { "LoadBalancerArn": {}, "TargetGroupArns": { "type": "list", "member": {} }, "Names": { "type": "list", "member": {} }, "Marker": {}, "PageSize": { "type": "integer" } } }, "output": { "resultWrapper": "DescribeTargetGroupsResult", "type": "structure", "members": { "TargetGroups": { "shape": "S1x" }, "NextMarker": {} } } }, "DescribeTargetHealth": { "input": { "type": "structure", "required": [ "TargetGroupArn" ], "members": { "TargetGroupArn": {}, "Targets": { "shape": "S29" } } }, "output": { "resultWrapper": "DescribeTargetHealthResult", "type": "structure", "members": { "TargetHealthDescriptions": { "type": "list", "member": { "type": "structure", "members": { "Target": { "shape": "S2a" }, "HealthCheckPort": {}, "TargetHealth": { "type": "structure", "members": { "State": {}, "Reason": {}, "Description": {} } } } } } } } }, "ModifyListener": { "input": { "type": "structure", "required": [ "ListenerArn" ], "members": { "ListenerArn": {}, "Port": { "type": "integer" }, "Protocol": {}, "SslPolicy": {}, "Certificates": { "shape": "Se" }, "DefaultActions": { "shape": "Sh" } } }, "output": { "resultWrapper": "ModifyListenerResult", "type": "structure", "members": { "Listeners": { "shape": "Sm" } } } }, "ModifyLoadBalancerAttributes": { "input": { "type": "structure", "required": [ "LoadBalancerArn", "Attributes" ], "members": { "LoadBalancerArn": {}, "Attributes": { "shape": "S2k" } } }, "output": { "resultWrapper": "ModifyLoadBalancerAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "S2k" } } } }, "ModifyRule": { "input": { "type": "structure", "required": [ "RuleArn" ], "members": { "RuleArn": {}, "Conditions": { "shape": "S1b" }, "Actions": { "shape": "Sh" } } }, "output": { "resultWrapper": "ModifyRuleResult", "type": "structure", "members": { "Rules": { "shape": "S1i" } } } }, "ModifyTargetGroup": { "input": { "type": "structure", "required": [ "TargetGroupArn" ], "members": { "TargetGroupArn": {}, "HealthCheckProtocol": {}, "HealthCheckPort": {}, "HealthCheckPath": {}, "HealthCheckIntervalSeconds": { "type": "integer" }, "HealthCheckTimeoutSeconds": { "type": "integer" }, "HealthyThresholdCount": { "type": "integer" }, "UnhealthyThresholdCount": { "type": "integer" }, "Matcher": { "shape": "S1u" } } }, "output": { "resultWrapper": "ModifyTargetGroupResult", "type": "structure", "members": { "TargetGroups": { "shape": "S1x" } } } }, "ModifyTargetGroupAttributes": { "input": { "type": "structure", "required": [ "TargetGroupArn", "Attributes" ], "members": { "TargetGroupArn": {}, "Attributes": { "shape": "S3b" } } }, "output": { "resultWrapper": "ModifyTargetGroupAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "S3b" } } } }, "RegisterTargets": { "input": { "type": "structure", "required": [ "TargetGroupArn", "Targets" ], "members": { "TargetGroupArn": {}, "Targets": { "shape": "S29" } } }, "output": { "resultWrapper": "RegisterTargetsResult", "type": "structure", "members": {} } }, "RemoveTags": { "input": { "type": "structure", "required": [ "ResourceArns", "TagKeys" ], "members": { "ResourceArns": { "shape": "S2" }, "TagKeys": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "RemoveTagsResult", "type": "structure", "members": {} } }, "SetRulePriorities": { "input": { "type": "structure", "required": [ "RulePriorities" ], "members": { "RulePriorities": { "type": "list", "member": { "type": "structure", "members": { "RuleArn": {}, "Priority": { "type": "integer" } } } } } }, "output": { "resultWrapper": "SetRulePrioritiesResult", "type": "structure", "members": { "Rules": { "shape": "S1i" } } } }, "SetSecurityGroups": { "input": { "type": "structure", "required": [ "LoadBalancerArn", "SecurityGroups" ], "members": { "LoadBalancerArn": {}, "SecurityGroups": { "shape": "St" } } }, "output": { "resultWrapper": "SetSecurityGroupsResult", "type": "structure", "members": { "SecurityGroupIds": { "shape": "St" } } } }, "SetSubnets": { "input": { "type": "structure", "required": [ "LoadBalancerArn", "Subnets" ], "members": { "LoadBalancerArn": {}, "Subnets": { "shape": "Sr" } } }, "output": { "resultWrapper": "SetSubnetsResult", "type": "structure", "members": { "AvailabilityZones": { "shape": "S17" } } } } }, "shapes": { "S2": { "type": "list", "member": {} }, "S4": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } }, "Se": { "type": "list", "member": { "type": "structure", "members": { "CertificateArn": {} } } }, "Sh": { "type": "list", "member": { "type": "structure", "required": [ "Type", "TargetGroupArn" ], "members": { "Type": {}, "TargetGroupArn": {} } } }, "Sm": { "type": "list", "member": { "type": "structure", "members": { "ListenerArn": {}, "LoadBalancerArn": {}, "Port": { "type": "integer" }, "Protocol": {}, "Certificates": { "shape": "Se" }, "SslPolicy": {}, "DefaultActions": { "shape": "Sh" } } } }, "Sr": { "type": "list", "member": {} }, "St": { "type": "list", "member": {} }, "Sx": { "type": "list", "member": { "type": "structure", "members": { "LoadBalancerArn": {}, "DNSName": {}, "CanonicalHostedZoneId": {}, "CreatedTime": { "type": "timestamp" }, "LoadBalancerName": {}, "Scheme": {}, "VpcId": {}, "State": { "type": "structure", "members": { "Code": {}, "Reason": {} } }, "Type": {}, "AvailabilityZones": { "shape": "S17" }, "SecurityGroups": { "shape": "St" } } } }, "S17": { "type": "list", "member": { "type": "structure", "members": { "ZoneName": {}, "SubnetId": {} } } }, "S1b": { "type": "list", "member": { "type": "structure", "members": { "Field": {}, "Values": { "type": "list", "member": {} } } } }, "S1i": { "type": "list", "member": { "type": "structure", "members": { "RuleArn": {}, "Priority": {}, "Conditions": { "shape": "S1b" }, "Actions": { "shape": "Sh" }, "IsDefault": { "type": "boolean" } } } }, "S1u": { "type": "structure", "required": [ "HttpCode" ], "members": { "HttpCode": {} } }, "S1x": { "type": "list", "member": { "type": "structure", "members": { "TargetGroupArn": {}, "TargetGroupName": {}, "Protocol": {}, "Port": { "type": "integer" }, "VpcId": {}, "HealthCheckProtocol": {}, "HealthCheckPort": {}, "HealthCheckIntervalSeconds": { "type": "integer" }, "HealthCheckTimeoutSeconds": { "type": "integer" }, "HealthyThresholdCount": { "type": "integer" }, "UnhealthyThresholdCount": { "type": "integer" }, "HealthCheckPath": {}, "Matcher": { "shape": "S1u" }, "LoadBalancerArns": { "shape": "S1z" } } } }, "S1z": { "type": "list", "member": {} }, "S29": { "type": "list", "member": { "shape": "S2a" } }, "S2a": { "type": "structure", "required": [ "Id" ], "members": { "Id": {}, "Port": { "type": "integer" } } }, "S2k": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S3b": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } } } } },{}],63:[function(require,module,exports){ module.exports={ "pagination": { "DescribeTargetGroups": { "input_token": "Marker", "output_token": "NextMarker", "result_key": "TargetGroups" }, "DescribeListeners": { "input_token": "Marker", "output_token": "NextMarker", "result_key": "Listeners" }, "DescribeLoadBalancers": { "input_token": "Marker", "output_token": "NextMarker", "result_key": "LoadBalancers" } } } },{}],64:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2009-03-31", "endpointPrefix": "elasticmapreduce", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Amazon EMR", "serviceFullName": "Amazon Elastic MapReduce", "signatureVersion": "v4", "targetPrefix": "ElasticMapReduce", "timestampFormat": "unixTimestamp" }, "operations": { "AddInstanceGroups": { "input": { "type": "structure", "required": [ "InstanceGroups", "JobFlowId" ], "members": { "InstanceGroups": { "shape": "S2" }, "JobFlowId": {} } }, "output": { "type": "structure", "members": { "JobFlowId": {}, "InstanceGroupIds": { "type": "list", "member": {} } } } }, "AddJobFlowSteps": { "input": { "type": "structure", "required": [ "JobFlowId", "Steps" ], "members": { "JobFlowId": {}, "Steps": { "shape": "Sl" } } }, "output": { "type": "structure", "members": { "StepIds": { "type": "list", "member": {} } } } }, "AddTags": { "input": { "type": "structure", "required": [ "ResourceId", "Tags" ], "members": { "ResourceId": {}, "Tags": { "shape": "Sx" } } }, "output": { "type": "structure", "members": {} } }, "CreateSecurityConfiguration": { "input": { "type": "structure", "required": [ "Name", "SecurityConfiguration" ], "members": { "Name": {}, "SecurityConfiguration": {} } }, "output": { "type": "structure", "required": [ "Name", "CreationDateTime" ], "members": { "Name": {}, "CreationDateTime": { "type": "timestamp" } } } }, "DeleteSecurityConfiguration": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": {} } }, "DescribeCluster": { "input": { "type": "structure", "required": [ "ClusterId" ], "members": { "ClusterId": {} } }, "output": { "type": "structure", "members": { "Cluster": { "type": "structure", "members": { "Id": {}, "Name": {}, "Status": { "shape": "S19" }, "Ec2InstanceAttributes": { "type": "structure", "members": { "Ec2KeyName": {}, "Ec2SubnetId": {}, "Ec2AvailabilityZone": {}, "IamInstanceProfile": {}, "EmrManagedMasterSecurityGroup": {}, "EmrManagedSlaveSecurityGroup": {}, "ServiceAccessSecurityGroup": {}, "AdditionalMasterSecurityGroups": { "shape": "S1f" }, "AdditionalSlaveSecurityGroups": { "shape": "S1f" } } }, "LogUri": {}, "RequestedAmiVersion": {}, "RunningAmiVersion": {}, "ReleaseLabel": {}, "AutoTerminate": { "type": "boolean" }, "TerminationProtected": { "type": "boolean" }, "VisibleToAllUsers": { "type": "boolean" }, "Applications": { "shape": "S1h" }, "Tags": { "shape": "Sx" }, "ServiceRole": {}, "NormalizedInstanceHours": { "type": "integer" }, "MasterPublicDnsName": {}, "Configurations": { "shape": "S9" }, "SecurityConfiguration": {} } } } } }, "DescribeJobFlows": { "input": { "type": "structure", "members": { "CreatedAfter": { "type": "timestamp" }, "CreatedBefore": { "type": "timestamp" }, "JobFlowIds": { "shape": "Ss" }, "JobFlowStates": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "JobFlows": { "type": "list", "member": { "type": "structure", "required": [ "JobFlowId", "Name", "ExecutionStatusDetail", "Instances" ], "members": { "JobFlowId": {}, "Name": {}, "LogUri": {}, "AmiVersion": {}, "ExecutionStatusDetail": { "type": "structure", "required": [ "State", "CreationDateTime" ], "members": { "State": {}, "CreationDateTime": { "type": "timestamp" }, "StartDateTime": { "type": "timestamp" }, "ReadyDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" }, "LastStateChangeReason": {} } }, "Instances": { "type": "structure", "required": [ "MasterInstanceType", "SlaveInstanceType", "InstanceCount" ], "members": { "MasterInstanceType": {}, "MasterPublicDnsName": {}, "MasterInstanceId": {}, "SlaveInstanceType": {}, "InstanceCount": { "type": "integer" }, "InstanceGroups": { "type": "list", "member": { "type": "structure", "required": [ "Market", "InstanceRole", "InstanceType", "InstanceRequestCount", "InstanceRunningCount", "State", "CreationDateTime" ], "members": { "InstanceGroupId": {}, "Name": {}, "Market": {}, "InstanceRole": {}, "BidPrice": {}, "InstanceType": {}, "InstanceRequestCount": { "type": "integer" }, "InstanceRunningCount": { "type": "integer" }, "State": {}, "LastStateChangeReason": {}, "CreationDateTime": { "type": "timestamp" }, "StartDateTime": { "type": "timestamp" }, "ReadyDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" } } } }, "NormalizedInstanceHours": { "type": "integer" }, "Ec2KeyName": {}, "Ec2SubnetId": {}, "Placement": { "shape": "S1u" }, "KeepJobFlowAliveWhenNoSteps": { "type": "boolean" }, "TerminationProtected": { "type": "boolean" }, "HadoopVersion": {} } }, "Steps": { "type": "list", "member": { "type": "structure", "required": [ "StepConfig", "ExecutionStatusDetail" ], "members": { "StepConfig": { "shape": "Sm" }, "ExecutionStatusDetail": { "type": "structure", "required": [ "State", "CreationDateTime" ], "members": { "State": {}, "CreationDateTime": { "type": "timestamp" }, "StartDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" }, "LastStateChangeReason": {} } } } } }, "BootstrapActions": { "type": "list", "member": { "type": "structure", "members": { "BootstrapActionConfig": { "shape": "S21" } } } }, "SupportedProducts": { "shape": "S23" }, "VisibleToAllUsers": { "type": "boolean" }, "JobFlowRole": {}, "ServiceRole": {} } } } } }, "deprecated": true }, "DescribeSecurityConfiguration": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": { "Name": {}, "SecurityConfiguration": {}, "CreationDateTime": { "type": "timestamp" } } } }, "DescribeStep": { "input": { "type": "structure", "required": [ "ClusterId", "StepId" ], "members": { "ClusterId": {}, "StepId": {} } }, "output": { "type": "structure", "members": { "Step": { "type": "structure", "members": { "Id": {}, "Name": {}, "Config": { "shape": "S2a" }, "ActionOnFailure": {}, "Status": { "shape": "S2b" } } } } } }, "ListBootstrapActions": { "input": { "type": "structure", "required": [ "ClusterId" ], "members": { "ClusterId": {}, "Marker": {} } }, "output": { "type": "structure", "members": { "BootstrapActions": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "ScriptPath": {}, "Args": { "shape": "S1f" } } } }, "Marker": {} } } }, "ListClusters": { "input": { "type": "structure", "members": { "CreatedAfter": { "type": "timestamp" }, "CreatedBefore": { "type": "timestamp" }, "ClusterStates": { "type": "list", "member": {} }, "Marker": {} } }, "output": { "type": "structure", "members": { "Clusters": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Name": {}, "Status": { "shape": "S19" }, "NormalizedInstanceHours": { "type": "integer" } } } }, "Marker": {} } } }, "ListInstanceGroups": { "input": { "type": "structure", "required": [ "ClusterId" ], "members": { "ClusterId": {}, "Marker": {} } }, "output": { "type": "structure", "members": { "InstanceGroups": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Name": {}, "Market": {}, "InstanceGroupType": {}, "BidPrice": {}, "InstanceType": {}, "RequestedInstanceCount": { "type": "integer" }, "RunningInstanceCount": { "type": "integer" }, "Status": { "type": "structure", "members": { "State": {}, "StateChangeReason": { "type": "structure", "members": { "Code": {}, "Message": {} } }, "Timeline": { "type": "structure", "members": { "CreationDateTime": { "type": "timestamp" }, "ReadyDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" } } } } }, "Configurations": { "shape": "S9" }, "EbsBlockDevices": { "type": "list", "member": { "type": "structure", "members": { "VolumeSpecification": { "shape": "Sg" }, "Device": {} } } }, "EbsOptimized": { "type": "boolean" }, "ShrinkPolicy": { "shape": "S33" } } } }, "Marker": {} } } }, "ListInstances": { "input": { "type": "structure", "required": [ "ClusterId" ], "members": { "ClusterId": {}, "InstanceGroupId": {}, "InstanceGroupTypes": { "type": "list", "member": {} }, "InstanceStates": { "type": "list", "member": {} }, "Marker": {} } }, "output": { "type": "structure", "members": { "Instances": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Ec2InstanceId": {}, "PublicDnsName": {}, "PublicIpAddress": {}, "PrivateDnsName": {}, "PrivateIpAddress": {}, "Status": { "type": "structure", "members": { "State": {}, "StateChangeReason": { "type": "structure", "members": { "Code": {}, "Message": {} } }, "Timeline": { "type": "structure", "members": { "CreationDateTime": { "type": "timestamp" }, "ReadyDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" } } } } }, "InstanceGroupId": {}, "EbsVolumes": { "type": "list", "member": { "type": "structure", "members": { "Device": {}, "VolumeId": {} } } } } } }, "Marker": {} } } }, "ListSecurityConfigurations": { "input": { "type": "structure", "members": { "Marker": {} } }, "output": { "type": "structure", "members": { "SecurityConfigurations": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "CreationDateTime": { "type": "timestamp" } } } }, "Marker": {} } } }, "ListSteps": { "input": { "type": "structure", "required": [ "ClusterId" ], "members": { "ClusterId": {}, "StepStates": { "type": "list", "member": {} }, "StepIds": { "shape": "Ss" }, "Marker": {} } }, "output": { "type": "structure", "members": { "Steps": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Name": {}, "Config": { "shape": "S2a" }, "ActionOnFailure": {}, "Status": { "shape": "S2b" } } } }, "Marker": {} } } }, "ModifyInstanceGroups": { "input": { "type": "structure", "members": { "InstanceGroups": { "type": "list", "member": { "type": "structure", "required": [ "InstanceGroupId" ], "members": { "InstanceGroupId": {}, "InstanceCount": { "type": "integer" }, "EC2InstanceIdsToTerminate": { "type": "list", "member": {} }, "ShrinkPolicy": { "shape": "S33" } } } } } } }, "RemoveTags": { "input": { "type": "structure", "required": [ "ResourceId", "TagKeys" ], "members": { "ResourceId": {}, "TagKeys": { "shape": "S1f" } } }, "output": { "type": "structure", "members": {} } }, "RunJobFlow": { "input": { "type": "structure", "required": [ "Name", "Instances" ], "members": { "Name": {}, "LogUri": {}, "AdditionalInfo": {}, "AmiVersion": {}, "ReleaseLabel": {}, "Instances": { "type": "structure", "members": { "MasterInstanceType": {}, "SlaveInstanceType": {}, "InstanceCount": { "type": "integer" }, "InstanceGroups": { "shape": "S2" }, "Ec2KeyName": {}, "Placement": { "shape": "S1u" }, "KeepJobFlowAliveWhenNoSteps": { "type": "boolean" }, "TerminationProtected": { "type": "boolean" }, "HadoopVersion": {}, "Ec2SubnetId": {}, "EmrManagedMasterSecurityGroup": {}, "EmrManagedSlaveSecurityGroup": {}, "ServiceAccessSecurityGroup": {}, "AdditionalMasterSecurityGroups": { "shape": "S41" }, "AdditionalSlaveSecurityGroups": { "shape": "S41" } } }, "Steps": { "shape": "Sl" }, "BootstrapActions": { "type": "list", "member": { "shape": "S21" } }, "SupportedProducts": { "shape": "S23" }, "NewSupportedProducts": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Args": { "shape": "Ss" } } } }, "Applications": { "shape": "S1h" }, "Configurations": { "shape": "S9" }, "VisibleToAllUsers": { "type": "boolean" }, "JobFlowRole": {}, "ServiceRole": {}, "Tags": { "shape": "Sx" }, "SecurityConfiguration": {} } }, "output": { "type": "structure", "members": { "JobFlowId": {} } } }, "SetTerminationProtection": { "input": { "type": "structure", "required": [ "JobFlowIds", "TerminationProtected" ], "members": { "JobFlowIds": { "shape": "Ss" }, "TerminationProtected": { "type": "boolean" } } } }, "SetVisibleToAllUsers": { "input": { "type": "structure", "required": [ "JobFlowIds", "VisibleToAllUsers" ], "members": { "JobFlowIds": { "shape": "Ss" }, "VisibleToAllUsers": { "type": "boolean" } } } }, "TerminateJobFlows": { "input": { "type": "structure", "required": [ "JobFlowIds" ], "members": { "JobFlowIds": { "shape": "Ss" } } } } }, "shapes": { "S2": { "type": "list", "member": { "type": "structure", "required": [ "InstanceRole", "InstanceType", "InstanceCount" ], "members": { "Name": {}, "Market": {}, "InstanceRole": {}, "BidPrice": {}, "InstanceType": {}, "InstanceCount": { "type": "integer" }, "Configurations": { "shape": "S9" }, "EbsConfiguration": { "type": "structure", "members": { "EbsBlockDeviceConfigs": { "type": "list", "member": { "type": "structure", "required": [ "VolumeSpecification" ], "members": { "VolumeSpecification": { "shape": "Sg" }, "VolumesPerInstance": { "type": "integer" } } } }, "EbsOptimized": { "type": "boolean" } } } } } }, "S9": { "type": "list", "member": { "type": "structure", "members": { "Classification": {}, "Configurations": { "shape": "S9" }, "Properties": { "shape": "Sc" } } } }, "Sc": { "type": "map", "key": {}, "value": {} }, "Sg": { "type": "structure", "required": [ "VolumeType", "SizeInGB" ], "members": { "VolumeType": {}, "Iops": { "type": "integer" }, "SizeInGB": { "type": "integer" } } }, "Sl": { "type": "list", "member": { "shape": "Sm" } }, "Sm": { "type": "structure", "required": [ "Name", "HadoopJarStep" ], "members": { "Name": {}, "ActionOnFailure": {}, "HadoopJarStep": { "type": "structure", "required": [ "Jar" ], "members": { "Properties": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Jar": {}, "MainClass": {}, "Args": { "shape": "Ss" } } } } }, "Ss": { "type": "list", "member": {} }, "Sx": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S19": { "type": "structure", "members": { "State": {}, "StateChangeReason": { "type": "structure", "members": { "Code": {}, "Message": {} } }, "Timeline": { "type": "structure", "members": { "CreationDateTime": { "type": "timestamp" }, "ReadyDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" } } } } }, "S1f": { "type": "list", "member": {} }, "S1h": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Version": {}, "Args": { "shape": "S1f" }, "AdditionalInfo": { "shape": "Sc" } } } }, "S1u": { "type": "structure", "required": [ "AvailabilityZone" ], "members": { "AvailabilityZone": {} } }, "S21": { "type": "structure", "required": [ "Name", "ScriptBootstrapAction" ], "members": { "Name": {}, "ScriptBootstrapAction": { "type": "structure", "required": [ "Path" ], "members": { "Path": {}, "Args": { "shape": "Ss" } } } } }, "S23": { "type": "list", "member": {} }, "S2a": { "type": "structure", "members": { "Jar": {}, "Properties": { "shape": "Sc" }, "MainClass": {}, "Args": { "shape": "S1f" } } }, "S2b": { "type": "structure", "members": { "State": {}, "StateChangeReason": { "type": "structure", "members": { "Code": {}, "Message": {} } }, "FailureDetails": { "type": "structure", "members": { "Reason": {}, "Message": {}, "LogFile": {} } }, "Timeline": { "type": "structure", "members": { "CreationDateTime": { "type": "timestamp" }, "StartDateTime": { "type": "timestamp" }, "EndDateTime": { "type": "timestamp" } } } } }, "S33": { "type": "structure", "members": { "DecommissionTimeout": { "type": "integer" }, "InstanceResizePolicy": { "type": "structure", "members": { "InstancesToTerminate": { "shape": "S35" }, "InstancesToProtect": { "shape": "S35" }, "InstanceTerminationTimeout": { "type": "integer" } } } } }, "S35": { "type": "list", "member": {} }, "S41": { "type": "list", "member": {} } } } },{}],65:[function(require,module,exports){ module.exports={ "pagination": { "DescribeJobFlows": { "result_key": "JobFlows" }, "ListBootstrapActions": { "input_token": "Marker", "output_token": "Marker", "result_key": "BootstrapActions" }, "ListClusters": { "input_token": "Marker", "output_token": "Marker", "result_key": "Clusters" }, "ListInstanceGroups": { "input_token": "Marker", "output_token": "Marker", "result_key": "InstanceGroups" }, "ListInstances": { "input_token": "Marker", "output_token": "Marker", "result_key": "Instances" }, "ListSteps": { "input_token": "Marker", "output_token": "Marker", "result_key": "Steps" } } } },{}],66:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "ClusterRunning": { "delay": 30, "operation": "DescribeCluster", "maxAttempts": 60, "acceptors": [ { "state": "success", "matcher": "path", "argument": "Cluster.Status.State", "expected": "RUNNING" }, { "state": "success", "matcher": "path", "argument": "Cluster.Status.State", "expected": "WAITING" }, { "state": "failure", "matcher": "path", "argument": "Cluster.Status.State", "expected": "TERMINATING" }, { "state": "failure", "matcher": "path", "argument": "Cluster.Status.State", "expected": "TERMINATED" }, { "state": "failure", "matcher": "path", "argument": "Cluster.Status.State", "expected": "TERMINATED_WITH_ERRORS" } ] }, "StepComplete": { "delay": 30, "operation": "DescribeStep", "maxAttempts": 60, "acceptors": [ { "state": "success", "matcher": "path", "argument": "Step.Status.State", "expected": "COMPLETED" }, { "state": "failure", "matcher": "path", "argument": "Step.Status.State", "expected": "FAILED" }, { "state": "failure", "matcher": "path", "argument": "Step.Status.State", "expected": "CANCELLED" } ] } } } },{}],67:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-09-25", "endpointPrefix": "elastictranscoder", "protocol": "rest-json", "serviceFullName": "Amazon Elastic Transcoder", "signatureVersion": "v4" }, "operations": { "CancelJob": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/jobs/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "CreateJob": { "http": { "requestUri": "/2012-09-25/jobs", "responseCode": 201 }, "input": { "type": "structure", "required": [ "PipelineId", "Input" ], "members": { "PipelineId": {}, "Input": { "shape": "S5" }, "Output": { "shape": "Sk" }, "Outputs": { "type": "list", "member": { "shape": "Sk" } }, "OutputKeyPrefix": {}, "Playlists": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Format": {}, "OutputKeys": { "shape": "S1j" }, "HlsContentProtection": { "shape": "S1k" }, "PlayReadyDrm": { "shape": "S1o" } } } }, "UserMetadata": { "shape": "S1t" } } }, "output": { "type": "structure", "members": { "Job": { "shape": "S1w" } } } }, "CreatePipeline": { "http": { "requestUri": "/2012-09-25/pipelines", "responseCode": 201 }, "input": { "type": "structure", "required": [ "Name", "InputBucket", "Role" ], "members": { "Name": {}, "InputBucket": {}, "OutputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S28" }, "ContentConfig": { "shape": "S2a" }, "ThumbnailConfig": { "shape": "S2a" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2j" }, "Warnings": { "shape": "S2l" } } } }, "CreatePreset": { "http": { "requestUri": "/2012-09-25/presets", "responseCode": 201 }, "input": { "type": "structure", "required": [ "Name", "Container" ], "members": { "Name": {}, "Description": {}, "Container": {}, "Video": { "shape": "S2p" }, "Audio": { "shape": "S35" }, "Thumbnails": { "shape": "S3g" } } }, "output": { "type": "structure", "members": { "Preset": { "shape": "S3k" }, "Warning": {} } } }, "DeletePipeline": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/pipelines/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "DeletePreset": { "http": { "method": "DELETE", "requestUri": "/2012-09-25/presets/{Id}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "ListJobsByPipeline": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobsByPipeline/{PipelineId}" }, "input": { "type": "structure", "required": [ "PipelineId" ], "members": { "PipelineId": { "location": "uri", "locationName": "PipelineId" }, "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Jobs": { "shape": "S3t" }, "NextPageToken": {} } } }, "ListJobsByStatus": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobsByStatus/{Status}" }, "input": { "type": "structure", "required": [ "Status" ], "members": { "Status": { "location": "uri", "locationName": "Status" }, "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Jobs": { "shape": "S3t" }, "NextPageToken": {} } } }, "ListPipelines": { "http": { "method": "GET", "requestUri": "/2012-09-25/pipelines" }, "input": { "type": "structure", "members": { "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Pipelines": { "type": "list", "member": { "shape": "S2j" } }, "NextPageToken": {} } } }, "ListPresets": { "http": { "method": "GET", "requestUri": "/2012-09-25/presets" }, "input": { "type": "structure", "members": { "Ascending": { "location": "querystring", "locationName": "Ascending" }, "PageToken": { "location": "querystring", "locationName": "PageToken" } } }, "output": { "type": "structure", "members": { "Presets": { "type": "list", "member": { "shape": "S3k" } }, "NextPageToken": {} } } }, "ReadJob": { "http": { "method": "GET", "requestUri": "/2012-09-25/jobs/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Job": { "shape": "S1w" } } } }, "ReadPipeline": { "http": { "method": "GET", "requestUri": "/2012-09-25/pipelines/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2j" }, "Warnings": { "shape": "S2l" } } } }, "ReadPreset": { "http": { "method": "GET", "requestUri": "/2012-09-25/presets/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Preset": { "shape": "S3k" } } } }, "TestRole": { "http": { "requestUri": "/2012-09-25/roleTests", "responseCode": 200 }, "input": { "type": "structure", "required": [ "Role", "InputBucket", "OutputBucket", "Topics" ], "members": { "Role": {}, "InputBucket": {}, "OutputBucket": {}, "Topics": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "Success": {}, "Messages": { "type": "list", "member": {} } } } }, "UpdatePipeline": { "http": { "method": "PUT", "requestUri": "/2012-09-25/pipelines/{Id}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Name": {}, "InputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S28" }, "ContentConfig": { "shape": "S2a" }, "ThumbnailConfig": { "shape": "S2a" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2j" }, "Warnings": { "shape": "S2l" } } } }, "UpdatePipelineNotifications": { "http": { "requestUri": "/2012-09-25/pipelines/{Id}/notifications" }, "input": { "type": "structure", "required": [ "Id", "Notifications" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Notifications": { "shape": "S28" } } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2j" } } } }, "UpdatePipelineStatus": { "http": { "requestUri": "/2012-09-25/pipelines/{Id}/status" }, "input": { "type": "structure", "required": [ "Id", "Status" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Status": {} } }, "output": { "type": "structure", "members": { "Pipeline": { "shape": "S2j" } } } } }, "shapes": { "S5": { "type": "structure", "members": { "Key": {}, "FrameRate": {}, "Resolution": {}, "AspectRatio": {}, "Interlaced": {}, "Container": {}, "Encryption": { "shape": "Sc" }, "DetectedProperties": { "type": "structure", "members": { "Width": { "type": "integer" }, "Height": { "type": "integer" }, "FrameRate": {}, "FileSize": { "type": "long" }, "DurationMillis": { "type": "long" } } } } }, "Sc": { "type": "structure", "members": { "Mode": {}, "Key": {}, "KeyMd5": {}, "InitializationVector": {} } }, "Sk": { "type": "structure", "members": { "Key": {}, "ThumbnailPattern": {}, "ThumbnailEncryption": { "shape": "Sc" }, "Rotate": {}, "PresetId": {}, "SegmentDuration": {}, "Watermarks": { "shape": "So" }, "AlbumArt": { "shape": "Ss" }, "Composition": { "shape": "S10" }, "Captions": { "shape": "S14" }, "Encryption": { "shape": "Sc" } } }, "So": { "type": "list", "member": { "type": "structure", "members": { "PresetWatermarkId": {}, "InputKey": {}, "Encryption": { "shape": "Sc" } } } }, "Ss": { "type": "structure", "members": { "MergePolicy": {}, "Artwork": { "type": "list", "member": { "type": "structure", "members": { "InputKey": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "PaddingPolicy": {}, "AlbumArtFormat": {}, "Encryption": { "shape": "Sc" } } } } } }, "S10": { "type": "list", "member": { "type": "structure", "members": { "TimeSpan": { "type": "structure", "members": { "StartTime": {}, "Duration": {} } } } } }, "S14": { "type": "structure", "members": { "MergePolicy": {}, "CaptionSources": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Language": {}, "TimeOffset": {}, "Label": {}, "Encryption": { "shape": "Sc" } } } }, "CaptionFormats": { "type": "list", "member": { "type": "structure", "members": { "Format": {}, "Pattern": {}, "Encryption": { "shape": "Sc" } } } } } }, "S1j": { "type": "list", "member": {} }, "S1k": { "type": "structure", "members": { "Method": {}, "Key": {}, "KeyMd5": {}, "InitializationVector": {}, "LicenseAcquisitionUrl": {}, "KeyStoragePolicy": {} } }, "S1o": { "type": "structure", "members": { "Format": {}, "Key": {}, "KeyMd5": {}, "KeyId": {}, "InitializationVector": {}, "LicenseAcquisitionUrl": {} } }, "S1t": { "type": "map", "key": {}, "value": {} }, "S1w": { "type": "structure", "members": { "Id": {}, "Arn": {}, "PipelineId": {}, "Input": { "shape": "S5" }, "Output": { "shape": "S1x" }, "Outputs": { "type": "list", "member": { "shape": "S1x" } }, "OutputKeyPrefix": {}, "Playlists": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Format": {}, "OutputKeys": { "shape": "S1j" }, "HlsContentProtection": { "shape": "S1k" }, "PlayReadyDrm": { "shape": "S1o" }, "Status": {}, "StatusDetail": {} } } }, "Status": {}, "UserMetadata": { "shape": "S1t" }, "Timing": { "type": "structure", "members": { "SubmitTimeMillis": { "type": "long" }, "StartTimeMillis": { "type": "long" }, "FinishTimeMillis": { "type": "long" } } } } }, "S1x": { "type": "structure", "members": { "Id": {}, "Key": {}, "ThumbnailPattern": {}, "ThumbnailEncryption": { "shape": "Sc" }, "Rotate": {}, "PresetId": {}, "SegmentDuration": {}, "Status": {}, "StatusDetail": {}, "Duration": { "type": "long" }, "Width": { "type": "integer" }, "Height": { "type": "integer" }, "FrameRate": {}, "FileSize": { "type": "long" }, "DurationMillis": { "type": "long" }, "Watermarks": { "shape": "So" }, "AlbumArt": { "shape": "Ss" }, "Composition": { "shape": "S10" }, "Captions": { "shape": "S14" }, "Encryption": { "shape": "Sc" }, "AppliedColorSpaceConversion": {} } }, "S28": { "type": "structure", "members": { "Progressing": {}, "Completed": {}, "Warning": {}, "Error": {} } }, "S2a": { "type": "structure", "members": { "Bucket": {}, "StorageClass": {}, "Permissions": { "type": "list", "member": { "type": "structure", "members": { "GranteeType": {}, "Grantee": {}, "Access": { "type": "list", "member": {} } } } } } }, "S2j": { "type": "structure", "members": { "Id": {}, "Arn": {}, "Name": {}, "Status": {}, "InputBucket": {}, "OutputBucket": {}, "Role": {}, "AwsKmsKeyArn": {}, "Notifications": { "shape": "S28" }, "ContentConfig": { "shape": "S2a" }, "ThumbnailConfig": { "shape": "S2a" } } }, "S2l": { "type": "list", "member": { "type": "structure", "members": { "Code": {}, "Message": {} } } }, "S2p": { "type": "structure", "members": { "Codec": {}, "CodecOptions": { "type": "map", "key": {}, "value": {} }, "KeyframesMaxDist": {}, "FixedGOP": {}, "BitRate": {}, "FrameRate": {}, "MaxFrameRate": {}, "Resolution": {}, "AspectRatio": {}, "MaxWidth": {}, "MaxHeight": {}, "DisplayAspectRatio": {}, "SizingPolicy": {}, "PaddingPolicy": {}, "Watermarks": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "HorizontalAlign": {}, "HorizontalOffset": {}, "VerticalAlign": {}, "VerticalOffset": {}, "Opacity": {}, "Target": {} } } } } }, "S35": { "type": "structure", "members": { "Codec": {}, "SampleRate": {}, "BitRate": {}, "Channels": {}, "AudioPackingMode": {}, "CodecOptions": { "type": "structure", "members": { "Profile": {}, "BitDepth": {}, "BitOrder": {}, "Signed": {} } } } }, "S3g": { "type": "structure", "members": { "Format": {}, "Interval": {}, "Resolution": {}, "AspectRatio": {}, "MaxWidth": {}, "MaxHeight": {}, "SizingPolicy": {}, "PaddingPolicy": {} } }, "S3k": { "type": "structure", "members": { "Id": {}, "Arn": {}, "Name": {}, "Description": {}, "Container": {}, "Audio": { "shape": "S35" }, "Video": { "shape": "S2p" }, "Thumbnails": { "shape": "S3g" }, "Type": {} } }, "S3t": { "type": "list", "member": { "shape": "S1w" } } } } },{}],68:[function(require,module,exports){ module.exports={ "pagination": { "ListJobsByPipeline": { "input_token": "PageToken", "output_token": "NextPageToken", "result_key": "Jobs" }, "ListJobsByStatus": { "input_token": "PageToken", "output_token": "NextPageToken", "result_key": "Jobs" }, "ListPipelines": { "input_token": "PageToken", "output_token": "NextPageToken", "result_key": "Pipelines" }, "ListPresets": { "input_token": "PageToken", "output_token": "NextPageToken", "result_key": "Presets" } } } },{}],69:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "JobComplete": { "delay": 30, "operation": "ReadJob", "maxAttempts": 120, "acceptors": [ { "expected": "Complete", "matcher": "path", "state": "success", "argument": "Job.Status" }, { "expected": "Canceled", "matcher": "path", "state": "failure", "argument": "Job.Status" }, { "expected": "Error", "matcher": "path", "state": "failure", "argument": "Job.Status" } ] } } } },{}],70:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2010-12-01", "endpointPrefix": "email", "protocol": "query", "serviceAbbreviation": "Amazon SES", "serviceFullName": "Amazon Simple Email Service", "signatureVersion": "v4", "signingName": "ses", "xmlNamespace": "http://ses.amazonaws.com/doc/2010-12-01/" }, "operations": { "CloneReceiptRuleSet": { "input": { "type": "structure", "required": [ "RuleSetName", "OriginalRuleSetName" ], "members": { "RuleSetName": {}, "OriginalRuleSetName": {} } }, "output": { "resultWrapper": "CloneReceiptRuleSetResult", "type": "structure", "members": {} } }, "CreateReceiptFilter": { "input": { "type": "structure", "required": [ "Filter" ], "members": { "Filter": { "shape": "S5" } } }, "output": { "resultWrapper": "CreateReceiptFilterResult", "type": "structure", "members": {} } }, "CreateReceiptRule": { "input": { "type": "structure", "required": [ "RuleSetName", "Rule" ], "members": { "RuleSetName": {}, "After": {}, "Rule": { "shape": "Sd" } } }, "output": { "resultWrapper": "CreateReceiptRuleResult", "type": "structure", "members": {} } }, "CreateReceiptRuleSet": { "input": { "type": "structure", "required": [ "RuleSetName" ], "members": { "RuleSetName": {} } }, "output": { "resultWrapper": "CreateReceiptRuleSetResult", "type": "structure", "members": {} } }, "DeleteIdentity": { "input": { "type": "structure", "required": [ "Identity" ], "members": { "Identity": {} } }, "output": { "resultWrapper": "DeleteIdentityResult", "type": "structure", "members": {} } }, "DeleteIdentityPolicy": { "input": { "type": "structure", "required": [ "Identity", "PolicyName" ], "members": { "Identity": {}, "PolicyName": {} } }, "output": { "resultWrapper": "DeleteIdentityPolicyResult", "type": "structure", "members": {} } }, "DeleteReceiptFilter": { "input": { "type": "structure", "required": [ "FilterName" ], "members": { "FilterName": {} } }, "output": { "resultWrapper": "DeleteReceiptFilterResult", "type": "structure", "members": {} } }, "DeleteReceiptRule": { "input": { "type": "structure", "required": [ "RuleSetName", "RuleName" ], "members": { "RuleSetName": {}, "RuleName": {} } }, "output": { "resultWrapper": "DeleteReceiptRuleResult", "type": "structure", "members": {} } }, "DeleteReceiptRuleSet": { "input": { "type": "structure", "required": [ "RuleSetName" ], "members": { "RuleSetName": {} } }, "output": { "resultWrapper": "DeleteReceiptRuleSetResult", "type": "structure", "members": {} } }, "DeleteVerifiedEmailAddress": { "input": { "type": "structure", "required": [ "EmailAddress" ], "members": { "EmailAddress": {} } } }, "DescribeActiveReceiptRuleSet": { "input": { "type": "structure", "members": {} }, "output": { "resultWrapper": "DescribeActiveReceiptRuleSetResult", "type": "structure", "members": { "Metadata": { "shape": "S1l" }, "Rules": { "shape": "S1n" } } } }, "DescribeReceiptRule": { "input": { "type": "structure", "required": [ "RuleSetName", "RuleName" ], "members": { "RuleSetName": {}, "RuleName": {} } }, "output": { "resultWrapper": "DescribeReceiptRuleResult", "type": "structure", "members": { "Rule": { "shape": "Sd" } } } }, "DescribeReceiptRuleSet": { "input": { "type": "structure", "required": [ "RuleSetName" ], "members": { "RuleSetName": {} } }, "output": { "resultWrapper": "DescribeReceiptRuleSetResult", "type": "structure", "members": { "Metadata": { "shape": "S1l" }, "Rules": { "shape": "S1n" } } } }, "GetIdentityDkimAttributes": { "input": { "type": "structure", "required": [ "Identities" ], "members": { "Identities": { "shape": "S1t" } } }, "output": { "resultWrapper": "GetIdentityDkimAttributesResult", "type": "structure", "required": [ "DkimAttributes" ], "members": { "DkimAttributes": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "DkimEnabled", "DkimVerificationStatus" ], "members": { "DkimEnabled": { "type": "boolean" }, "DkimVerificationStatus": {}, "DkimTokens": { "shape": "S1y" } } } } } } }, "GetIdentityMailFromDomainAttributes": { "input": { "type": "structure", "required": [ "Identities" ], "members": { "Identities": { "shape": "S1t" } } }, "output": { "resultWrapper": "GetIdentityMailFromDomainAttributesResult", "type": "structure", "required": [ "MailFromDomainAttributes" ], "members": { "MailFromDomainAttributes": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "MailFromDomain", "MailFromDomainStatus", "BehaviorOnMXFailure" ], "members": { "MailFromDomain": {}, "MailFromDomainStatus": {}, "BehaviorOnMXFailure": {} } } } } } }, "GetIdentityNotificationAttributes": { "input": { "type": "structure", "required": [ "Identities" ], "members": { "Identities": { "shape": "S1t" } } }, "output": { "resultWrapper": "GetIdentityNotificationAttributesResult", "type": "structure", "required": [ "NotificationAttributes" ], "members": { "NotificationAttributes": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "BounceTopic", "ComplaintTopic", "DeliveryTopic", "ForwardingEnabled" ], "members": { "BounceTopic": {}, "ComplaintTopic": {}, "DeliveryTopic": {}, "ForwardingEnabled": { "type": "boolean" }, "HeadersInBounceNotificationsEnabled": { "type": "boolean" }, "HeadersInComplaintNotificationsEnabled": { "type": "boolean" }, "HeadersInDeliveryNotificationsEnabled": { "type": "boolean" } } } } } } }, "GetIdentityPolicies": { "input": { "type": "structure", "required": [ "Identity", "PolicyNames" ], "members": { "Identity": {}, "PolicyNames": { "shape": "S2d" } } }, "output": { "resultWrapper": "GetIdentityPoliciesResult", "type": "structure", "required": [ "Policies" ], "members": { "Policies": { "type": "map", "key": {}, "value": {} } } } }, "GetIdentityVerificationAttributes": { "input": { "type": "structure", "required": [ "Identities" ], "members": { "Identities": { "shape": "S1t" } } }, "output": { "resultWrapper": "GetIdentityVerificationAttributesResult", "type": "structure", "required": [ "VerificationAttributes" ], "members": { "VerificationAttributes": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "VerificationStatus" ], "members": { "VerificationStatus": {}, "VerificationToken": {} } } } } } }, "GetSendQuota": { "output": { "resultWrapper": "GetSendQuotaResult", "type": "structure", "members": { "Max24HourSend": { "type": "double" }, "MaxSendRate": { "type": "double" }, "SentLast24Hours": { "type": "double" } } } }, "GetSendStatistics": { "output": { "resultWrapper": "GetSendStatisticsResult", "type": "structure", "members": { "SendDataPoints": { "type": "list", "member": { "type": "structure", "members": { "Timestamp": { "type": "timestamp" }, "DeliveryAttempts": { "type": "long" }, "Bounces": { "type": "long" }, "Complaints": { "type": "long" }, "Rejects": { "type": "long" } } } } } } }, "ListIdentities": { "input": { "type": "structure", "members": { "IdentityType": {}, "NextToken": {}, "MaxItems": { "type": "integer" } } }, "output": { "resultWrapper": "ListIdentitiesResult", "type": "structure", "required": [ "Identities" ], "members": { "Identities": { "shape": "S1t" }, "NextToken": {} } } }, "ListIdentityPolicies": { "input": { "type": "structure", "required": [ "Identity" ], "members": { "Identity": {} } }, "output": { "resultWrapper": "ListIdentityPoliciesResult", "type": "structure", "required": [ "PolicyNames" ], "members": { "PolicyNames": { "shape": "S2d" } } } }, "ListReceiptFilters": { "input": { "type": "structure", "members": {} }, "output": { "resultWrapper": "ListReceiptFiltersResult", "type": "structure", "members": { "Filters": { "type": "list", "member": { "shape": "S5" } } } } }, "ListReceiptRuleSets": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "resultWrapper": "ListReceiptRuleSetsResult", "type": "structure", "members": { "RuleSets": { "type": "list", "member": { "shape": "S1l" } }, "NextToken": {} } } }, "ListVerifiedEmailAddresses": { "output": { "resultWrapper": "ListVerifiedEmailAddressesResult", "type": "structure", "members": { "VerifiedEmailAddresses": { "shape": "S37" } } } }, "PutIdentityPolicy": { "input": { "type": "structure", "required": [ "Identity", "PolicyName", "Policy" ], "members": { "Identity": {}, "PolicyName": {}, "Policy": {} } }, "output": { "resultWrapper": "PutIdentityPolicyResult", "type": "structure", "members": {} } }, "ReorderReceiptRuleSet": { "input": { "type": "structure", "required": [ "RuleSetName", "RuleNames" ], "members": { "RuleSetName": {}, "RuleNames": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "ReorderReceiptRuleSetResult", "type": "structure", "members": {} } }, "SendBounce": { "input": { "type": "structure", "required": [ "OriginalMessageId", "BounceSender", "BouncedRecipientInfoList" ], "members": { "OriginalMessageId": {}, "BounceSender": {}, "Explanation": {}, "MessageDsn": { "type": "structure", "required": [ "ReportingMta" ], "members": { "ReportingMta": {}, "ArrivalDate": { "type": "timestamp" }, "ExtensionFields": { "shape": "S3j" } } }, "BouncedRecipientInfoList": { "type": "list", "member": { "type": "structure", "required": [ "Recipient" ], "members": { "Recipient": {}, "RecipientArn": {}, "BounceType": {}, "RecipientDsnFields": { "type": "structure", "required": [ "Action", "Status" ], "members": { "FinalRecipient": {}, "Action": {}, "RemoteMta": {}, "Status": {}, "DiagnosticCode": {}, "LastAttemptDate": { "type": "timestamp" }, "ExtensionFields": { "shape": "S3j" } } } } } }, "BounceSenderArn": {} } }, "output": { "resultWrapper": "SendBounceResult", "type": "structure", "members": { "MessageId": {} } } }, "SendEmail": { "input": { "type": "structure", "required": [ "Source", "Destination", "Message" ], "members": { "Source": {}, "Destination": { "type": "structure", "members": { "ToAddresses": { "shape": "S37" }, "CcAddresses": { "shape": "S37" }, "BccAddresses": { "shape": "S37" } } }, "Message": { "type": "structure", "required": [ "Subject", "Body" ], "members": { "Subject": { "shape": "S40" }, "Body": { "type": "structure", "members": { "Text": { "shape": "S40" }, "Html": { "shape": "S40" } } } } }, "ReplyToAddresses": { "shape": "S37" }, "ReturnPath": {}, "SourceArn": {}, "ReturnPathArn": {} } }, "output": { "resultWrapper": "SendEmailResult", "type": "structure", "required": [ "MessageId" ], "members": { "MessageId": {} } } }, "SendRawEmail": { "input": { "type": "structure", "required": [ "RawMessage" ], "members": { "Source": {}, "Destinations": { "shape": "S37" }, "RawMessage": { "type": "structure", "required": [ "Data" ], "members": { "Data": { "type": "blob" } } }, "FromArn": {}, "SourceArn": {}, "ReturnPathArn": {} } }, "output": { "resultWrapper": "SendRawEmailResult", "type": "structure", "required": [ "MessageId" ], "members": { "MessageId": {} } } }, "SetActiveReceiptRuleSet": { "input": { "type": "structure", "members": { "RuleSetName": {} } }, "output": { "resultWrapper": "SetActiveReceiptRuleSetResult", "type": "structure", "members": {} } }, "SetIdentityDkimEnabled": { "input": { "type": "structure", "required": [ "Identity", "DkimEnabled" ], "members": { "Identity": {}, "DkimEnabled": { "type": "boolean" } } }, "output": { "resultWrapper": "SetIdentityDkimEnabledResult", "type": "structure", "members": {} } }, "SetIdentityFeedbackForwardingEnabled": { "input": { "type": "structure", "required": [ "Identity", "ForwardingEnabled" ], "members": { "Identity": {}, "ForwardingEnabled": { "type": "boolean" } } }, "output": { "resultWrapper": "SetIdentityFeedbackForwardingEnabledResult", "type": "structure", "members": {} } }, "SetIdentityHeadersInNotificationsEnabled": { "input": { "type": "structure", "required": [ "Identity", "NotificationType", "Enabled" ], "members": { "Identity": {}, "NotificationType": {}, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "SetIdentityHeadersInNotificationsEnabledResult", "type": "structure", "members": {} } }, "SetIdentityMailFromDomain": { "input": { "type": "structure", "required": [ "Identity" ], "members": { "Identity": {}, "MailFromDomain": {}, "BehaviorOnMXFailure": {} } }, "output": { "resultWrapper": "SetIdentityMailFromDomainResult", "type": "structure", "members": {} } }, "SetIdentityNotificationTopic": { "input": { "type": "structure", "required": [ "Identity", "NotificationType" ], "members": { "Identity": {}, "NotificationType": {}, "SnsTopic": {} } }, "output": { "resultWrapper": "SetIdentityNotificationTopicResult", "type": "structure", "members": {} } }, "SetReceiptRulePosition": { "input": { "type": "structure", "required": [ "RuleSetName", "RuleName" ], "members": { "RuleSetName": {}, "RuleName": {}, "After": {} } }, "output": { "resultWrapper": "SetReceiptRulePositionResult", "type": "structure", "members": {} } }, "UpdateReceiptRule": { "input": { "type": "structure", "required": [ "RuleSetName", "Rule" ], "members": { "RuleSetName": {}, "Rule": { "shape": "Sd" } } }, "output": { "resultWrapper": "UpdateReceiptRuleResult", "type": "structure", "members": {} } }, "VerifyDomainDkim": { "input": { "type": "structure", "required": [ "Domain" ], "members": { "Domain": {} } }, "output": { "resultWrapper": "VerifyDomainDkimResult", "type": "structure", "required": [ "DkimTokens" ], "members": { "DkimTokens": { "shape": "S1y" } } } }, "VerifyDomainIdentity": { "input": { "type": "structure", "required": [ "Domain" ], "members": { "Domain": {} } }, "output": { "resultWrapper": "VerifyDomainIdentityResult", "type": "structure", "required": [ "VerificationToken" ], "members": { "VerificationToken": {} } } }, "VerifyEmailAddress": { "input": { "type": "structure", "required": [ "EmailAddress" ], "members": { "EmailAddress": {} } } }, "VerifyEmailIdentity": { "input": { "type": "structure", "required": [ "EmailAddress" ], "members": { "EmailAddress": {} } }, "output": { "resultWrapper": "VerifyEmailIdentityResult", "type": "structure", "members": {} } } }, "shapes": { "S5": { "type": "structure", "required": [ "Name", "IpFilter" ], "members": { "Name": {}, "IpFilter": { "type": "structure", "required": [ "Policy", "Cidr" ], "members": { "Policy": {}, "Cidr": {} } } } }, "Sd": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "Enabled": { "type": "boolean" }, "TlsPolicy": {}, "Recipients": { "type": "list", "member": {} }, "Actions": { "type": "list", "member": { "type": "structure", "members": { "S3Action": { "type": "structure", "required": [ "BucketName" ], "members": { "TopicArn": {}, "BucketName": {}, "ObjectKeyPrefix": {}, "KmsKeyArn": {} } }, "BounceAction": { "type": "structure", "required": [ "SmtpReplyCode", "Message", "Sender" ], "members": { "TopicArn": {}, "SmtpReplyCode": {}, "StatusCode": {}, "Message": {}, "Sender": {} } }, "WorkmailAction": { "type": "structure", "required": [ "OrganizationArn" ], "members": { "TopicArn": {}, "OrganizationArn": {} } }, "LambdaAction": { "type": "structure", "required": [ "FunctionArn" ], "members": { "TopicArn": {}, "FunctionArn": {}, "InvocationType": {} } }, "StopAction": { "type": "structure", "required": [ "Scope" ], "members": { "Scope": {}, "TopicArn": {} } }, "AddHeaderAction": { "type": "structure", "required": [ "HeaderName", "HeaderValue" ], "members": { "HeaderName": {}, "HeaderValue": {} } }, "SNSAction": { "type": "structure", "required": [ "TopicArn" ], "members": { "TopicArn": {}, "Encoding": {} } } } } }, "ScanEnabled": { "type": "boolean" } } }, "S1l": { "type": "structure", "members": { "Name": {}, "CreatedTimestamp": { "type": "timestamp" } } }, "S1n": { "type": "list", "member": { "shape": "Sd" } }, "S1t": { "type": "list", "member": {} }, "S1y": { "type": "list", "member": {} }, "S2d": { "type": "list", "member": {} }, "S37": { "type": "list", "member": {} }, "S3j": { "type": "list", "member": { "type": "structure", "required": [ "Name", "Value" ], "members": { "Name": {}, "Value": {} } } }, "S40": { "type": "structure", "required": [ "Data" ], "members": { "Data": {}, "Charset": {} } } } } },{}],71:[function(require,module,exports){ module.exports={ "pagination": { "ListIdentities": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxItems", "result_key": "Identities" }, "ListVerifiedEmailAddresses": { "result_key": "VerifiedEmailAddresses" } } } },{}],72:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "IdentityExists": { "delay": 3, "operation": "GetIdentityVerificationAttributes", "maxAttempts": 20, "acceptors": [ { "expected": "Success", "matcher": "pathAll", "state": "success", "argument": "VerificationAttributes.*.VerificationStatus" } ] } } } },{}],73:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-10-07", "endpointPrefix": "events", "jsonVersion": "1.1", "serviceFullName": "Amazon CloudWatch Events", "signatureVersion": "v4", "targetPrefix": "AWSEvents", "protocol": "json" }, "operations": { "DeleteRule": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } } }, "DescribeRule": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": { "Name": {}, "Arn": {}, "EventPattern": {}, "ScheduleExpression": {}, "State": {}, "Description": {}, "RoleArn": {} } } }, "DisableRule": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } } }, "EnableRule": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } } }, "ListRuleNamesByTarget": { "input": { "type": "structure", "required": [ "TargetArn" ], "members": { "TargetArn": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "RuleNames": { "type": "list", "member": {} }, "NextToken": {} } } }, "ListRules": { "input": { "type": "structure", "members": { "NamePrefix": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Rules": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Arn": {}, "EventPattern": {}, "State": {}, "Description": {}, "ScheduleExpression": {}, "RoleArn": {} } } }, "NextToken": {} } } }, "ListTargetsByRule": { "input": { "type": "structure", "required": [ "Rule" ], "members": { "Rule": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Targets": { "shape": "Sp" }, "NextToken": {} } } }, "PutEvents": { "input": { "type": "structure", "required": [ "Entries" ], "members": { "Entries": { "type": "list", "member": { "type": "structure", "members": { "Time": { "type": "timestamp" }, "Source": {}, "Resources": { "type": "list", "member": {} }, "DetailType": {}, "Detail": {} } } } } }, "output": { "type": "structure", "members": { "FailedEntryCount": { "type": "integer" }, "Entries": { "type": "list", "member": { "type": "structure", "members": { "EventId": {}, "ErrorCode": {}, "ErrorMessage": {} } } } } } }, "PutRule": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "ScheduleExpression": {}, "EventPattern": {}, "State": {}, "Description": {}, "RoleArn": {} } }, "output": { "type": "structure", "members": { "RuleArn": {} } } }, "PutTargets": { "input": { "type": "structure", "required": [ "Rule", "Targets" ], "members": { "Rule": {}, "Targets": { "shape": "Sp" } } }, "output": { "type": "structure", "members": { "FailedEntryCount": { "type": "integer" }, "FailedEntries": { "type": "list", "member": { "type": "structure", "members": { "TargetId": {}, "ErrorCode": {}, "ErrorMessage": {} } } } } } }, "RemoveTargets": { "input": { "type": "structure", "required": [ "Rule", "Ids" ], "members": { "Rule": {}, "Ids": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "FailedEntryCount": { "type": "integer" }, "FailedEntries": { "type": "list", "member": { "type": "structure", "members": { "TargetId": {}, "ErrorCode": {}, "ErrorMessage": {} } } } } } }, "TestEventPattern": { "input": { "type": "structure", "required": [ "EventPattern", "Event" ], "members": { "EventPattern": {}, "Event": {} } }, "output": { "type": "structure", "members": { "Result": { "type": "boolean" } } } } }, "shapes": { "Sp": { "type": "list", "member": { "type": "structure", "required": [ "Id", "Arn" ], "members": { "Id": {}, "Arn": {}, "Input": {}, "InputPath": {} } } } }, "examples": {} } },{}],74:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-08-04", "endpointPrefix": "firehose", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Firehose", "serviceFullName": "Amazon Kinesis Firehose", "signatureVersion": "v4", "targetPrefix": "Firehose_20150804" }, "operations": { "CreateDeliveryStream": { "input": { "type": "structure", "required": [ "DeliveryStreamName" ], "members": { "DeliveryStreamName": {}, "S3DestinationConfiguration": { "shape": "S3" }, "RedshiftDestinationConfiguration": { "type": "structure", "required": [ "RoleARN", "ClusterJDBCURL", "CopyCommand", "Username", "Password", "S3Configuration" ], "members": { "RoleARN": {}, "ClusterJDBCURL": {}, "CopyCommand": { "shape": "Sl" }, "Username": { "shape": "Sp" }, "Password": { "shape": "Sq" }, "RetryOptions": { "shape": "Sr" }, "S3Configuration": { "shape": "S3" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } }, "ElasticsearchDestinationConfiguration": { "type": "structure", "required": [ "RoleARN", "DomainARN", "IndexName", "TypeName", "S3Configuration" ], "members": { "RoleARN": {}, "DomainARN": {}, "IndexName": {}, "TypeName": {}, "IndexRotationPeriod": {}, "BufferingHints": { "shape": "Sy" }, "RetryOptions": { "shape": "S11" }, "S3BackupMode": {}, "S3Configuration": { "shape": "S3" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } } } }, "output": { "type": "structure", "members": { "DeliveryStreamARN": {} } } }, "DeleteDeliveryStream": { "input": { "type": "structure", "required": [ "DeliveryStreamName" ], "members": { "DeliveryStreamName": {} } }, "output": { "type": "structure", "members": {} } }, "DescribeDeliveryStream": { "input": { "type": "structure", "required": [ "DeliveryStreamName" ], "members": { "DeliveryStreamName": {}, "Limit": { "type": "integer" }, "ExclusiveStartDestinationId": {} } }, "output": { "type": "structure", "required": [ "DeliveryStreamDescription" ], "members": { "DeliveryStreamDescription": { "type": "structure", "required": [ "DeliveryStreamName", "DeliveryStreamARN", "DeliveryStreamStatus", "VersionId", "Destinations", "HasMoreDestinations" ], "members": { "DeliveryStreamName": {}, "DeliveryStreamARN": {}, "DeliveryStreamStatus": {}, "VersionId": {}, "CreateTimestamp": { "type": "timestamp" }, "LastUpdateTimestamp": { "type": "timestamp" }, "Destinations": { "type": "list", "member": { "type": "structure", "required": [ "DestinationId" ], "members": { "DestinationId": {}, "S3DestinationDescription": { "shape": "S1i" }, "RedshiftDestinationDescription": { "type": "structure", "required": [ "RoleARN", "ClusterJDBCURL", "CopyCommand", "Username", "S3DestinationDescription" ], "members": { "RoleARN": {}, "ClusterJDBCURL": {}, "CopyCommand": { "shape": "Sl" }, "Username": { "shape": "Sp" }, "RetryOptions": { "shape": "Sr" }, "S3DestinationDescription": { "shape": "S1i" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } }, "ElasticsearchDestinationDescription": { "type": "structure", "members": { "RoleARN": {}, "DomainARN": {}, "IndexName": {}, "TypeName": {}, "IndexRotationPeriod": {}, "BufferingHints": { "shape": "Sy" }, "RetryOptions": { "shape": "S11" }, "S3BackupMode": {}, "S3DestinationDescription": { "shape": "S1i" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } } } } }, "HasMoreDestinations": { "type": "boolean" } } } } } }, "ListDeliveryStreams": { "input": { "type": "structure", "members": { "Limit": { "type": "integer" }, "ExclusiveStartDeliveryStreamName": {} } }, "output": { "type": "structure", "required": [ "DeliveryStreamNames", "HasMoreDeliveryStreams" ], "members": { "DeliveryStreamNames": { "type": "list", "member": {} }, "HasMoreDeliveryStreams": { "type": "boolean" } } } }, "PutRecord": { "input": { "type": "structure", "required": [ "DeliveryStreamName", "Record" ], "members": { "DeliveryStreamName": {}, "Record": { "shape": "S1q" } } }, "output": { "type": "structure", "required": [ "RecordId" ], "members": { "RecordId": {} } } }, "PutRecordBatch": { "input": { "type": "structure", "required": [ "DeliveryStreamName", "Records" ], "members": { "DeliveryStreamName": {}, "Records": { "type": "list", "member": { "shape": "S1q" } } } }, "output": { "type": "structure", "required": [ "FailedPutCount", "RequestResponses" ], "members": { "FailedPutCount": { "type": "integer" }, "RequestResponses": { "type": "list", "member": { "type": "structure", "members": { "RecordId": {}, "ErrorCode": {}, "ErrorMessage": {} } } } } } }, "UpdateDestination": { "input": { "type": "structure", "required": [ "DeliveryStreamName", "CurrentDeliveryStreamVersionId", "DestinationId" ], "members": { "DeliveryStreamName": {}, "CurrentDeliveryStreamVersionId": {}, "DestinationId": {}, "S3DestinationUpdate": { "shape": "S23" }, "RedshiftDestinationUpdate": { "type": "structure", "members": { "RoleARN": {}, "ClusterJDBCURL": {}, "CopyCommand": { "shape": "Sl" }, "Username": { "shape": "Sp" }, "Password": { "shape": "Sq" }, "RetryOptions": { "shape": "Sr" }, "S3Update": { "shape": "S23" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } }, "ElasticsearchDestinationUpdate": { "type": "structure", "members": { "RoleARN": {}, "DomainARN": {}, "IndexName": {}, "TypeName": {}, "IndexRotationPeriod": {}, "BufferingHints": { "shape": "Sy" }, "RetryOptions": { "shape": "S11" }, "S3Update": { "shape": "S23" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } } } }, "output": { "type": "structure", "members": {} } } }, "shapes": { "S3": { "type": "structure", "required": [ "RoleARN", "BucketARN" ], "members": { "RoleARN": {}, "BucketARN": {}, "Prefix": {}, "BufferingHints": { "shape": "S7" }, "CompressionFormat": {}, "EncryptionConfiguration": { "shape": "Sb" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } }, "S7": { "type": "structure", "members": { "SizeInMBs": { "type": "integer" }, "IntervalInSeconds": { "type": "integer" } } }, "Sb": { "type": "structure", "members": { "NoEncryptionConfig": {}, "KMSEncryptionConfig": { "type": "structure", "required": [ "AWSKMSKeyARN" ], "members": { "AWSKMSKeyARN": {} } } } }, "Sf": { "type": "structure", "members": { "Enabled": { "type": "boolean" }, "LogGroupName": {}, "LogStreamName": {} } }, "Sl": { "type": "structure", "required": [ "DataTableName" ], "members": { "DataTableName": {}, "DataTableColumns": {}, "CopyOptions": {} } }, "Sp": { "type": "string", "sensitive": true }, "Sq": { "type": "string", "sensitive": true }, "Sr": { "type": "structure", "members": { "DurationInSeconds": { "type": "integer" } } }, "Sy": { "type": "structure", "members": { "IntervalInSeconds": { "type": "integer" }, "SizeInMBs": { "type": "integer" } } }, "S11": { "type": "structure", "members": { "DurationInSeconds": { "type": "integer" } } }, "S1i": { "type": "structure", "required": [ "RoleARN", "BucketARN", "BufferingHints", "CompressionFormat", "EncryptionConfiguration" ], "members": { "RoleARN": {}, "BucketARN": {}, "Prefix": {}, "BufferingHints": { "shape": "S7" }, "CompressionFormat": {}, "EncryptionConfiguration": { "shape": "Sb" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } }, "S1q": { "type": "structure", "required": [ "Data" ], "members": { "Data": { "type": "blob" } } }, "S23": { "type": "structure", "members": { "RoleARN": {}, "BucketARN": {}, "Prefix": {}, "BufferingHints": { "shape": "S7" }, "CompressionFormat": {}, "EncryptionConfiguration": { "shape": "Sb" }, "CloudWatchLoggingOptions": { "shape": "Sf" } } } } } },{}],75:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-10-01", "endpointPrefix": "gamelift", "jsonVersion": "1.1", "serviceFullName": "Amazon GameLift", "signatureVersion": "v4", "targetPrefix": "GameLift", "protocol": "json" }, "operations": { "CreateAlias": { "input": { "type": "structure", "required": [ "Name", "RoutingStrategy" ], "members": { "Name": {}, "Description": {}, "RoutingStrategy": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Alias": { "shape": "S8" } } } }, "CreateBuild": { "input": { "type": "structure", "members": { "Name": {}, "Version": {}, "StorageLocation": { "shape": "Sc" }, "OperatingSystem": {} } }, "output": { "type": "structure", "members": { "Build": { "shape": "Sg" }, "UploadCredentials": { "shape": "Sk" }, "StorageLocation": { "shape": "Sc" } } } }, "CreateFleet": { "input": { "type": "structure", "required": [ "Name", "BuildId", "EC2InstanceType" ], "members": { "Name": {}, "Description": {}, "BuildId": {}, "ServerLaunchPath": {}, "ServerLaunchParameters": {}, "LogPaths": { "shape": "Sm" }, "EC2InstanceType": {}, "EC2InboundPermissions": { "shape": "So" }, "NewGameSessionProtectionPolicy": {}, "RuntimeConfiguration": { "shape": "Su" } } }, "output": { "type": "structure", "members": { "FleetAttributes": { "shape": "Sz" } } } }, "CreateGameSession": { "input": { "type": "structure", "required": [ "MaximumPlayerSessionCount" ], "members": { "FleetId": {}, "AliasId": {}, "MaximumPlayerSessionCount": { "type": "integer" }, "Name": {}, "GameProperties": { "shape": "S13" } } }, "output": { "type": "structure", "members": { "GameSession": { "shape": "S18" } } } }, "CreatePlayerSession": { "input": { "type": "structure", "required": [ "GameSessionId", "PlayerId" ], "members": { "GameSessionId": {}, "PlayerId": {} } }, "output": { "type": "structure", "members": { "PlayerSession": { "shape": "S1f" } } } }, "CreatePlayerSessions": { "input": { "type": "structure", "required": [ "GameSessionId", "PlayerIds" ], "members": { "GameSessionId": {}, "PlayerIds": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "PlayerSessions": { "shape": "S1l" } } } }, "DeleteAlias": { "input": { "type": "structure", "required": [ "AliasId" ], "members": { "AliasId": {} } } }, "DeleteBuild": { "input": { "type": "structure", "required": [ "BuildId" ], "members": { "BuildId": {} } } }, "DeleteFleet": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {} } } }, "DeleteScalingPolicy": { "input": { "type": "structure", "required": [ "Name", "FleetId" ], "members": { "Name": {}, "FleetId": {} } } }, "DescribeAlias": { "input": { "type": "structure", "required": [ "AliasId" ], "members": { "AliasId": {} } }, "output": { "type": "structure", "members": { "Alias": { "shape": "S8" } } } }, "DescribeBuild": { "input": { "type": "structure", "required": [ "BuildId" ], "members": { "BuildId": {} } }, "output": { "type": "structure", "members": { "Build": { "shape": "Sg" } } } }, "DescribeEC2InstanceLimits": { "input": { "type": "structure", "members": { "EC2InstanceType": {} } }, "output": { "type": "structure", "members": { "EC2InstanceLimits": { "type": "list", "member": { "type": "structure", "members": { "EC2InstanceType": {}, "CurrentInstances": { "type": "integer" }, "InstanceLimit": { "type": "integer" } } } } } } }, "DescribeFleetAttributes": { "input": { "type": "structure", "members": { "FleetIds": { "shape": "S1z" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "FleetAttributes": { "type": "list", "member": { "shape": "Sz" } }, "NextToken": {} } } }, "DescribeFleetCapacity": { "input": { "type": "structure", "members": { "FleetIds": { "shape": "S1z" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "FleetCapacity": { "type": "list", "member": { "type": "structure", "members": { "FleetId": {}, "InstanceType": {}, "InstanceCounts": { "type": "structure", "members": { "DESIRED": { "type": "integer" }, "MINIMUM": { "type": "integer" }, "MAXIMUM": { "type": "integer" }, "PENDING": { "type": "integer" }, "ACTIVE": { "type": "integer" }, "IDLE": { "type": "integer" }, "TERMINATING": { "type": "integer" } } } } } }, "NextToken": {} } } }, "DescribeFleetEvents": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "Events": { "type": "list", "member": { "type": "structure", "members": { "EventId": {}, "ResourceId": {}, "EventCode": {}, "Message": {}, "EventTime": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeFleetPortSettings": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {} } }, "output": { "type": "structure", "members": { "InboundPermissions": { "shape": "So" } } } }, "DescribeFleetUtilization": { "input": { "type": "structure", "members": { "FleetIds": { "shape": "S1z" }, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "FleetUtilization": { "type": "list", "member": { "type": "structure", "members": { "FleetId": {}, "ActiveServerProcessCount": { "type": "integer" }, "ActiveGameSessionCount": { "type": "integer" }, "CurrentPlayerSessionCount": { "type": "integer" }, "MaximumPlayerSessionCount": { "type": "integer" } } } }, "NextToken": {} } } }, "DescribeGameSessionDetails": { "input": { "type": "structure", "members": { "FleetId": {}, "GameSessionId": {}, "AliasId": {}, "StatusFilter": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "GameSessionDetails": { "type": "list", "member": { "type": "structure", "members": { "GameSession": { "shape": "S18" }, "ProtectionPolicy": {} } } }, "NextToken": {} } } }, "DescribeGameSessions": { "input": { "type": "structure", "members": { "FleetId": {}, "GameSessionId": {}, "AliasId": {}, "StatusFilter": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "GameSessions": { "shape": "S2o" }, "NextToken": {} } } }, "DescribePlayerSessions": { "input": { "type": "structure", "members": { "GameSessionId": {}, "PlayerId": {}, "PlayerSessionId": {}, "PlayerSessionStatusFilter": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "PlayerSessions": { "shape": "S1l" }, "NextToken": {} } } }, "DescribeRuntimeConfiguration": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {} } }, "output": { "type": "structure", "members": { "RuntimeConfiguration": { "shape": "Su" } } } }, "DescribeScalingPolicies": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {}, "StatusFilter": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ScalingPolicies": { "type": "list", "member": { "type": "structure", "members": { "FleetId": {}, "Name": {}, "Status": {}, "ScalingAdjustment": { "type": "integer" }, "ScalingAdjustmentType": {}, "ComparisonOperator": {}, "Threshold": { "type": "double" }, "EvaluationPeriods": { "type": "integer" }, "MetricName": {} } } }, "NextToken": {} } } }, "GetGameSessionLogUrl": { "input": { "type": "structure", "required": [ "GameSessionId" ], "members": { "GameSessionId": {} } }, "output": { "type": "structure", "members": { "PreSignedUrl": {} } } }, "ListAliases": { "input": { "type": "structure", "members": { "RoutingStrategyType": {}, "Name": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "Aliases": { "type": "list", "member": { "shape": "S8" } }, "NextToken": {} } } }, "ListBuilds": { "input": { "type": "structure", "members": { "Status": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "Builds": { "type": "list", "member": { "shape": "Sg" } }, "NextToken": {} } } }, "ListFleets": { "input": { "type": "structure", "members": { "BuildId": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "FleetIds": { "shape": "S1z" }, "NextToken": {} } } }, "PutScalingPolicy": { "input": { "type": "structure", "required": [ "Name", "FleetId", "ScalingAdjustment", "ScalingAdjustmentType", "Threshold", "ComparisonOperator", "EvaluationPeriods", "MetricName" ], "members": { "Name": {}, "FleetId": {}, "ScalingAdjustment": { "type": "integer" }, "ScalingAdjustmentType": {}, "Threshold": { "type": "double" }, "ComparisonOperator": {}, "EvaluationPeriods": { "type": "integer" }, "MetricName": {} } }, "output": { "type": "structure", "members": { "Name": {} } } }, "RequestUploadCredentials": { "input": { "type": "structure", "required": [ "BuildId" ], "members": { "BuildId": {} } }, "output": { "type": "structure", "members": { "UploadCredentials": { "shape": "Sk" }, "StorageLocation": { "shape": "Sc" } } } }, "ResolveAlias": { "input": { "type": "structure", "required": [ "AliasId" ], "members": { "AliasId": {} } }, "output": { "type": "structure", "members": { "FleetId": {} } } }, "SearchGameSessions": { "input": { "type": "structure", "members": { "FleetId": {}, "AliasId": {}, "FilterExpression": {}, "SortExpression": {}, "Limit": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "GameSessions": { "shape": "S2o" }, "NextToken": {} } } }, "UpdateAlias": { "input": { "type": "structure", "required": [ "AliasId" ], "members": { "AliasId": {}, "Name": {}, "Description": {}, "RoutingStrategy": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Alias": { "shape": "S8" } } } }, "UpdateBuild": { "input": { "type": "structure", "required": [ "BuildId" ], "members": { "BuildId": {}, "Name": {}, "Version": {} } }, "output": { "type": "structure", "members": { "Build": { "shape": "Sg" } } } }, "UpdateFleetAttributes": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {}, "Name": {}, "Description": {}, "NewGameSessionProtectionPolicy": {} } }, "output": { "type": "structure", "members": { "FleetId": {} } } }, "UpdateFleetCapacity": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {}, "DesiredInstances": { "type": "integer" }, "MinSize": { "type": "integer" }, "MaxSize": { "type": "integer" } } }, "output": { "type": "structure", "members": { "FleetId": {} } } }, "UpdateFleetPortSettings": { "input": { "type": "structure", "required": [ "FleetId" ], "members": { "FleetId": {}, "InboundPermissionAuthorizations": { "shape": "So" }, "InboundPermissionRevocations": { "shape": "So" } } }, "output": { "type": "structure", "members": { "FleetId": {} } } }, "UpdateGameSession": { "input": { "type": "structure", "required": [ "GameSessionId" ], "members": { "GameSessionId": {}, "MaximumPlayerSessionCount": { "type": "integer" }, "Name": {}, "PlayerSessionCreationPolicy": {}, "ProtectionPolicy": {} } }, "output": { "type": "structure", "members": { "GameSession": { "shape": "S18" } } } }, "UpdateRuntimeConfiguration": { "input": { "type": "structure", "required": [ "FleetId", "RuntimeConfiguration" ], "members": { "FleetId": {}, "RuntimeConfiguration": { "shape": "Su" } } }, "output": { "type": "structure", "members": { "RuntimeConfiguration": { "shape": "Su" } } } } }, "shapes": { "S3": { "type": "structure", "members": { "Type": {}, "FleetId": {}, "Message": {} } }, "S8": { "type": "structure", "members": { "AliasId": {}, "Name": {}, "Description": {}, "RoutingStrategy": { "shape": "S3" }, "CreationTime": { "type": "timestamp" }, "LastUpdatedTime": { "type": "timestamp" } } }, "Sc": { "type": "structure", "members": { "Bucket": {}, "Key": {}, "RoleArn": {} } }, "Sg": { "type": "structure", "members": { "BuildId": {}, "Name": {}, "Version": {}, "Status": {}, "SizeOnDisk": { "type": "long" }, "OperatingSystem": {}, "CreationTime": { "type": "timestamp" } } }, "Sk": { "type": "structure", "members": { "AccessKeyId": {}, "SecretAccessKey": {}, "SessionToken": {} }, "sensitive": true }, "Sm": { "type": "list", "member": {} }, "So": { "type": "list", "member": { "type": "structure", "required": [ "FromPort", "ToPort", "IpRange", "Protocol" ], "members": { "FromPort": { "type": "integer" }, "ToPort": { "type": "integer" }, "IpRange": {}, "Protocol": {} } } }, "Su": { "type": "structure", "members": { "ServerProcesses": { "type": "list", "member": { "type": "structure", "required": [ "LaunchPath", "ConcurrentExecutions" ], "members": { "LaunchPath": {}, "Parameters": {}, "ConcurrentExecutions": { "type": "integer" } } } } } }, "Sz": { "type": "structure", "members": { "FleetId": {}, "Description": {}, "Name": {}, "CreationTime": { "type": "timestamp" }, "TerminationTime": { "type": "timestamp" }, "Status": {}, "BuildId": {}, "ServerLaunchPath": {}, "ServerLaunchParameters": {}, "LogPaths": { "shape": "Sm" }, "NewGameSessionProtectionPolicy": {}, "OperatingSystem": {} } }, "S13": { "type": "list", "member": { "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {} } } }, "S18": { "type": "structure", "members": { "GameSessionId": {}, "Name": {}, "FleetId": {}, "CreationTime": { "type": "timestamp" }, "TerminationTime": { "type": "timestamp" }, "CurrentPlayerSessionCount": { "type": "integer" }, "MaximumPlayerSessionCount": { "type": "integer" }, "Status": {}, "GameProperties": { "shape": "S13" }, "IpAddress": {}, "Port": { "type": "integer" }, "PlayerSessionCreationPolicy": {} } }, "S1f": { "type": "structure", "members": { "PlayerSessionId": {}, "PlayerId": {}, "GameSessionId": {}, "FleetId": {}, "CreationTime": { "type": "timestamp" }, "TerminationTime": { "type": "timestamp" }, "Status": {}, "IpAddress": {}, "Port": { "type": "integer" } } }, "S1l": { "type": "list", "member": { "shape": "S1f" } }, "S1z": { "type": "list", "member": {} }, "S2o": { "type": "list", "member": { "shape": "S18" } } }, "examples": {} } },{}],76:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2016-02-16", "endpointPrefix": "inspector", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon Inspector", "signatureVersion": "v4", "targetPrefix": "InspectorService" }, "operations": { "AddAttributesToFindings": { "input": { "type": "structure", "required": [ "findingArns", "attributes" ], "members": { "findingArns": { "shape": "S2" }, "attributes": { "shape": "S4" } } }, "output": { "type": "structure", "required": [ "failedItems" ], "members": { "failedItems": { "shape": "S9" } } } }, "CreateAssessmentTarget": { "input": { "type": "structure", "required": [ "assessmentTargetName", "resourceGroupArn" ], "members": { "assessmentTargetName": {}, "resourceGroupArn": {} } }, "output": { "type": "structure", "required": [ "assessmentTargetArn" ], "members": { "assessmentTargetArn": {} } } }, "CreateAssessmentTemplate": { "input": { "type": "structure", "required": [ "assessmentTargetArn", "assessmentTemplateName", "durationInSeconds", "rulesPackageArns" ], "members": { "assessmentTargetArn": {}, "assessmentTemplateName": {}, "durationInSeconds": { "type": "integer" }, "rulesPackageArns": { "shape": "Sj" }, "userAttributesForFindings": { "shape": "S4" } } }, "output": { "type": "structure", "required": [ "assessmentTemplateArn" ], "members": { "assessmentTemplateArn": {} } } }, "CreateResourceGroup": { "input": { "type": "structure", "required": [ "resourceGroupTags" ], "members": { "resourceGroupTags": { "shape": "Sm" } } }, "output": { "type": "structure", "required": [ "resourceGroupArn" ], "members": { "resourceGroupArn": {} } } }, "DeleteAssessmentRun": { "input": { "type": "structure", "required": [ "assessmentRunArn" ], "members": { "assessmentRunArn": {} } } }, "DeleteAssessmentTarget": { "input": { "type": "structure", "required": [ "assessmentTargetArn" ], "members": { "assessmentTargetArn": {} } } }, "DeleteAssessmentTemplate": { "input": { "type": "structure", "required": [ "assessmentTemplateArn" ], "members": { "assessmentTemplateArn": {} } } }, "DescribeAssessmentRuns": { "input": { "type": "structure", "required": [ "assessmentRunArns" ], "members": { "assessmentRunArns": { "shape": "Sv" } } }, "output": { "type": "structure", "required": [ "assessmentRuns", "failedItems" ], "members": { "assessmentRuns": { "type": "list", "member": { "type": "structure", "required": [ "arn", "name", "assessmentTemplateArn", "state", "durationInSeconds", "rulesPackageArns", "userAttributesForFindings", "createdAt", "stateChangedAt", "dataCollected", "stateChanges", "notifications" ], "members": { "arn": {}, "name": {}, "assessmentTemplateArn": {}, "state": {}, "durationInSeconds": { "type": "integer" }, "rulesPackageArns": { "type": "list", "member": {} }, "userAttributesForFindings": { "shape": "S4" }, "createdAt": { "type": "timestamp" }, "startedAt": { "type": "timestamp" }, "completedAt": { "type": "timestamp" }, "stateChangedAt": { "type": "timestamp" }, "dataCollected": { "type": "boolean" }, "stateChanges": { "type": "list", "member": { "type": "structure", "required": [ "stateChangedAt", "state" ], "members": { "stateChangedAt": { "type": "timestamp" }, "state": {} } } }, "notifications": { "type": "list", "member": { "type": "structure", "required": [ "date", "event", "error" ], "members": { "date": { "type": "timestamp" }, "event": {}, "message": {}, "error": { "type": "boolean" }, "snsTopicArn": {}, "snsPublishStatusCode": {} } } } } } }, "failedItems": { "shape": "S9" } } } }, "DescribeAssessmentTargets": { "input": { "type": "structure", "required": [ "assessmentTargetArns" ], "members": { "assessmentTargetArns": { "shape": "Sv" } } }, "output": { "type": "structure", "required": [ "assessmentTargets", "failedItems" ], "members": { "assessmentTargets": { "type": "list", "member": { "type": "structure", "required": [ "arn", "name", "resourceGroupArn", "createdAt", "updatedAt" ], "members": { "arn": {}, "name": {}, "resourceGroupArn": {}, "createdAt": { "type": "timestamp" }, "updatedAt": { "type": "timestamp" } } } }, "failedItems": { "shape": "S9" } } } }, "DescribeAssessmentTemplates": { "input": { "type": "structure", "required": [ "assessmentTemplateArns" ], "members": { "assessmentTemplateArns": { "shape": "Sv" } } }, "output": { "type": "structure", "required": [ "assessmentTemplates", "failedItems" ], "members": { "assessmentTemplates": { "type": "list", "member": { "type": "structure", "required": [ "arn", "name", "assessmentTargetArn", "durationInSeconds", "rulesPackageArns", "userAttributesForFindings", "createdAt" ], "members": { "arn": {}, "name": {}, "assessmentTargetArn": {}, "durationInSeconds": { "type": "integer" }, "rulesPackageArns": { "shape": "Sj" }, "userAttributesForFindings": { "shape": "S4" }, "createdAt": { "type": "timestamp" } } } }, "failedItems": { "shape": "S9" } } } }, "DescribeCrossAccountAccessRole": { "output": { "type": "structure", "required": [ "roleArn", "valid", "registeredAt" ], "members": { "roleArn": {}, "valid": { "type": "boolean" }, "registeredAt": { "type": "timestamp" } } } }, "DescribeFindings": { "input": { "type": "structure", "required": [ "findingArns" ], "members": { "findingArns": { "shape": "Sv" }, "locale": {} } }, "output": { "type": "structure", "required": [ "findings", "failedItems" ], "members": { "findings": { "type": "list", "member": { "type": "structure", "required": [ "arn", "attributes", "userAttributes", "createdAt", "updatedAt" ], "members": { "arn": {}, "schemaVersion": { "type": "integer" }, "service": {}, "serviceAttributes": { "type": "structure", "required": [ "schemaVersion" ], "members": { "schemaVersion": { "type": "integer" }, "assessmentRunArn": {}, "rulesPackageArn": {} } }, "assetType": {}, "assetAttributes": { "type": "structure", "required": [ "schemaVersion" ], "members": { "schemaVersion": { "type": "integer" }, "agentId": {}, "autoScalingGroup": {}, "amiId": {}, "hostname": {}, "ipv4Addresses": { "type": "list", "member": {} } } }, "id": {}, "title": {}, "description": {}, "recommendation": {}, "severity": {}, "numericSeverity": { "type": "double" }, "confidence": { "type": "integer" }, "indicatorOfCompromise": { "type": "boolean" }, "attributes": { "shape": "S24" }, "userAttributes": { "shape": "S4" }, "createdAt": { "type": "timestamp" }, "updatedAt": { "type": "timestamp" } } } }, "failedItems": { "shape": "S9" } } } }, "DescribeResourceGroups": { "input": { "type": "structure", "required": [ "resourceGroupArns" ], "members": { "resourceGroupArns": { "shape": "Sv" } } }, "output": { "type": "structure", "required": [ "resourceGroups", "failedItems" ], "members": { "resourceGroups": { "type": "list", "member": { "type": "structure", "required": [ "arn", "tags", "createdAt" ], "members": { "arn": {}, "tags": { "shape": "Sm" }, "createdAt": { "type": "timestamp" } } } }, "failedItems": { "shape": "S9" } } } }, "DescribeRulesPackages": { "input": { "type": "structure", "required": [ "rulesPackageArns" ], "members": { "rulesPackageArns": { "shape": "Sv" }, "locale": {} } }, "output": { "type": "structure", "required": [ "rulesPackages", "failedItems" ], "members": { "rulesPackages": { "type": "list", "member": { "type": "structure", "required": [ "arn", "name", "version", "provider" ], "members": { "arn": {}, "name": {}, "version": {}, "provider": {}, "description": {} } } }, "failedItems": { "shape": "S9" } } } }, "GetTelemetryMetadata": { "input": { "type": "structure", "required": [ "assessmentRunArn" ], "members": { "assessmentRunArn": {} } }, "output": { "type": "structure", "required": [ "telemetryMetadata" ], "members": { "telemetryMetadata": { "shape": "S2i" } } } }, "ListAssessmentRunAgents": { "input": { "type": "structure", "required": [ "assessmentRunArn" ], "members": { "assessmentRunArn": {}, "filter": { "type": "structure", "required": [ "agentHealths", "agentHealthCodes" ], "members": { "agentHealths": { "type": "list", "member": {} }, "agentHealthCodes": { "type": "list", "member": {} } } }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "assessmentRunAgents" ], "members": { "assessmentRunAgents": { "type": "list", "member": { "type": "structure", "required": [ "agentId", "assessmentRunArn", "agentHealth", "agentHealthCode", "telemetryMetadata" ], "members": { "agentId": {}, "assessmentRunArn": {}, "agentHealth": {}, "agentHealthCode": {}, "agentHealthDetails": {}, "autoScalingGroup": {}, "telemetryMetadata": { "shape": "S2i" } } } }, "nextToken": {} } } }, "ListAssessmentRuns": { "input": { "type": "structure", "members": { "assessmentTemplateArns": { "shape": "S2y" }, "filter": { "type": "structure", "members": { "namePattern": {}, "states": { "type": "list", "member": {} }, "durationRange": { "shape": "S32" }, "rulesPackageArns": { "shape": "S33" }, "startTimeRange": { "shape": "S34" }, "completionTimeRange": { "shape": "S34" }, "stateChangeTimeRange": { "shape": "S34" } } }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "assessmentRunArns" ], "members": { "assessmentRunArns": { "shape": "S36" }, "nextToken": {} } } }, "ListAssessmentTargets": { "input": { "type": "structure", "members": { "filter": { "type": "structure", "members": { "assessmentTargetNamePattern": {} } }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "assessmentTargetArns" ], "members": { "assessmentTargetArns": { "shape": "S36" }, "nextToken": {} } } }, "ListAssessmentTemplates": { "input": { "type": "structure", "members": { "assessmentTargetArns": { "shape": "S2y" }, "filter": { "type": "structure", "members": { "namePattern": {}, "durationRange": { "shape": "S32" }, "rulesPackageArns": { "shape": "S33" } } }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "assessmentTemplateArns" ], "members": { "assessmentTemplateArns": { "shape": "S36" }, "nextToken": {} } } }, "ListEventSubscriptions": { "input": { "type": "structure", "members": { "resourceArn": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "subscriptions" ], "members": { "subscriptions": { "type": "list", "member": { "type": "structure", "required": [ "resourceArn", "topicArn", "eventSubscriptions" ], "members": { "resourceArn": {}, "topicArn": {}, "eventSubscriptions": { "type": "list", "member": { "type": "structure", "required": [ "event", "subscribedAt" ], "members": { "event": {}, "subscribedAt": { "type": "timestamp" } } } } } } }, "nextToken": {} } } }, "ListFindings": { "input": { "type": "structure", "members": { "assessmentRunArns": { "shape": "S2y" }, "filter": { "type": "structure", "members": { "agentIds": { "type": "list", "member": {} }, "autoScalingGroups": { "type": "list", "member": {} }, "ruleNames": { "type": "list", "member": {} }, "severities": { "type": "list", "member": {} }, "rulesPackageArns": { "shape": "S33" }, "attributes": { "shape": "S24" }, "userAttributes": { "shape": "S24" }, "creationTimeRange": { "shape": "S34" } } }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "findingArns" ], "members": { "findingArns": { "shape": "S36" }, "nextToken": {} } } }, "ListRulesPackages": { "input": { "type": "structure", "members": { "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "rulesPackageArns" ], "members": { "rulesPackageArns": { "shape": "S36" }, "nextToken": {} } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "resourceArn" ], "members": { "resourceArn": {} } }, "output": { "type": "structure", "required": [ "tags" ], "members": { "tags": { "shape": "S3w" } } } }, "PreviewAgents": { "input": { "type": "structure", "required": [ "previewAgentsArn" ], "members": { "previewAgentsArn": {}, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "agentPreviews" ], "members": { "agentPreviews": { "type": "list", "member": { "type": "structure", "required": [ "agentId" ], "members": { "agentId": {}, "autoScalingGroup": {} } } }, "nextToken": {} } } }, "RegisterCrossAccountAccessRole": { "input": { "type": "structure", "required": [ "roleArn" ], "members": { "roleArn": {} } } }, "RemoveAttributesFromFindings": { "input": { "type": "structure", "required": [ "findingArns", "attributeKeys" ], "members": { "findingArns": { "shape": "S2" }, "attributeKeys": { "type": "list", "member": {} } } }, "output": { "type": "structure", "required": [ "failedItems" ], "members": { "failedItems": { "shape": "S9" } } } }, "SetTagsForResource": { "input": { "type": "structure", "required": [ "resourceArn" ], "members": { "resourceArn": {}, "tags": { "shape": "S3w" } } } }, "StartAssessmentRun": { "input": { "type": "structure", "required": [ "assessmentTemplateArn" ], "members": { "assessmentTemplateArn": {}, "assessmentRunName": {} } }, "output": { "type": "structure", "required": [ "assessmentRunArn" ], "members": { "assessmentRunArn": {} } } }, "StopAssessmentRun": { "input": { "type": "structure", "required": [ "assessmentRunArn" ], "members": { "assessmentRunArn": {} } } }, "SubscribeToEvent": { "input": { "type": "structure", "required": [ "resourceArn", "event", "topicArn" ], "members": { "resourceArn": {}, "event": {}, "topicArn": {} } } }, "UnsubscribeFromEvent": { "input": { "type": "structure", "required": [ "resourceArn", "event", "topicArn" ], "members": { "resourceArn": {}, "event": {}, "topicArn": {} } } }, "UpdateAssessmentTarget": { "input": { "type": "structure", "required": [ "assessmentTargetArn", "assessmentTargetName", "resourceGroupArn" ], "members": { "assessmentTargetArn": {}, "assessmentTargetName": {}, "resourceGroupArn": {} } } } }, "shapes": { "S2": { "type": "list", "member": {} }, "S4": { "type": "list", "member": { "shape": "S5" } }, "S5": { "type": "structure", "required": [ "key" ], "members": { "key": {}, "value": {} } }, "S9": { "type": "map", "key": {}, "value": { "type": "structure", "required": [ "failureCode", "retryable" ], "members": { "failureCode": {}, "retryable": { "type": "boolean" } } } }, "Sj": { "type": "list", "member": {} }, "Sm": { "type": "list", "member": { "type": "structure", "required": [ "key" ], "members": { "key": {}, "value": {} } } }, "Sv": { "type": "list", "member": {} }, "S24": { "type": "list", "member": { "shape": "S5" } }, "S2i": { "type": "list", "member": { "type": "structure", "required": [ "messageType", "count" ], "members": { "messageType": {}, "count": { "type": "long" }, "dataSize": { "type": "long" } } } }, "S2y": { "type": "list", "member": {} }, "S32": { "type": "structure", "members": { "minSeconds": { "type": "integer" }, "maxSeconds": { "type": "integer" } } }, "S33": { "type": "list", "member": {} }, "S34": { "type": "structure", "members": { "beginDate": { "type": "timestamp" }, "endDate": { "type": "timestamp" } } }, "S36": { "type": "list", "member": {} }, "S3w": { "type": "list", "member": { "type": "structure", "required": [ "key" ], "members": { "key": {}, "value": {} } } } } } },{}],77:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-05-28", "endpointPrefix": "iot", "serviceFullName": "AWS IoT", "signatureVersion": "v4", "signingName": "execute-api", "protocol": "rest-json" }, "operations": { "AcceptCertificateTransfer": { "http": { "method": "PATCH", "requestUri": "/accept-certificate-transfer/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" }, "setAsActive": { "location": "querystring", "locationName": "setAsActive", "type": "boolean" } } } }, "AttachPrincipalPolicy": { "http": { "method": "PUT", "requestUri": "/principal-policies/{policyName}" }, "input": { "type": "structure", "required": [ "policyName", "principal" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "principal": { "location": "header", "locationName": "x-amzn-iot-principal" } } } }, "AttachThingPrincipal": { "http": { "method": "PUT", "requestUri": "/things/{thingName}/principals" }, "input": { "type": "structure", "required": [ "thingName", "principal" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "principal": { "location": "header", "locationName": "x-amzn-principal" } } }, "output": { "type": "structure", "members": {} } }, "CancelCertificateTransfer": { "http": { "method": "PATCH", "requestUri": "/cancel-certificate-transfer/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" } } } }, "CreateCertificateFromCsr": { "http": { "requestUri": "/certificates" }, "input": { "type": "structure", "required": [ "certificateSigningRequest" ], "members": { "certificateSigningRequest": {}, "setAsActive": { "location": "querystring", "locationName": "setAsActive", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "certificatePem": {} } } }, "CreateKeysAndCertificate": { "http": { "requestUri": "/keys-and-certificate" }, "input": { "type": "structure", "members": { "setAsActive": { "location": "querystring", "locationName": "setAsActive", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "certificatePem": {}, "keyPair": { "type": "structure", "members": { "PublicKey": {}, "PrivateKey": { "type": "string", "sensitive": true } } } } } }, "CreatePolicy": { "http": { "requestUri": "/policies/{policyName}" }, "input": { "type": "structure", "required": [ "policyName", "policyDocument" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "policyDocument": {} } }, "output": { "type": "structure", "members": { "policyName": {}, "policyArn": {}, "policyDocument": {}, "policyVersionId": {} } } }, "CreatePolicyVersion": { "http": { "requestUri": "/policies/{policyName}/version" }, "input": { "type": "structure", "required": [ "policyName", "policyDocument" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "policyDocument": {}, "setAsDefault": { "location": "querystring", "locationName": "setAsDefault", "type": "boolean" } } }, "output": { "type": "structure", "members": { "policyArn": {}, "policyDocument": {}, "policyVersionId": {}, "isDefaultVersion": { "type": "boolean" } } } }, "CreateThing": { "http": { "requestUri": "/things/{thingName}" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "thingTypeName": {}, "attributePayload": { "shape": "Sw" } } }, "output": { "type": "structure", "members": { "thingName": {}, "thingArn": {} } } }, "CreateThingType": { "http": { "requestUri": "/thing-types/{thingTypeName}" }, "input": { "type": "structure", "required": [ "thingTypeName" ], "members": { "thingTypeName": { "location": "uri", "locationName": "thingTypeName" }, "thingTypeProperties": { "shape": "S14" } } }, "output": { "type": "structure", "members": { "thingTypeName": {}, "thingTypeArn": {} } } }, "CreateTopicRule": { "http": { "requestUri": "/rules/{ruleName}" }, "input": { "type": "structure", "required": [ "ruleName", "topicRulePayload" ], "members": { "ruleName": { "location": "uri", "locationName": "ruleName" }, "topicRulePayload": { "shape": "S1b" } }, "payload": "topicRulePayload" } }, "DeleteCACertificate": { "http": { "method": "DELETE", "requestUri": "/cacertificate/{caCertificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "caCertificateId" } } }, "output": { "type": "structure", "members": {} } }, "DeleteCertificate": { "http": { "method": "DELETE", "requestUri": "/certificates/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" } } } }, "DeletePolicy": { "http": { "method": "DELETE", "requestUri": "/policies/{policyName}" }, "input": { "type": "structure", "required": [ "policyName" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" } } } }, "DeletePolicyVersion": { "http": { "method": "DELETE", "requestUri": "/policies/{policyName}/version/{policyVersionId}" }, "input": { "type": "structure", "required": [ "policyName", "policyVersionId" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "policyVersionId": { "location": "uri", "locationName": "policyVersionId" } } } }, "DeleteRegistrationCode": { "http": { "method": "DELETE", "requestUri": "/registrationcode" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": {} } }, "DeleteThing": { "http": { "method": "DELETE", "requestUri": "/things/{thingName}" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "expectedVersion": { "location": "querystring", "locationName": "expectedVersion", "type": "long" } } }, "output": { "type": "structure", "members": {} } }, "DeleteThingType": { "http": { "method": "DELETE", "requestUri": "/thing-types/{thingTypeName}" }, "input": { "type": "structure", "required": [ "thingTypeName" ], "members": { "thingTypeName": { "location": "uri", "locationName": "thingTypeName" } } }, "output": { "type": "structure", "members": {} } }, "DeleteTopicRule": { "http": { "method": "DELETE", "requestUri": "/rules/{ruleName}" }, "input": { "type": "structure", "members": { "ruleName": { "location": "uri", "locationName": "ruleName" } }, "required": [ "ruleName" ] } }, "DeprecateThingType": { "http": { "requestUri": "/thing-types/{thingTypeName}/deprecate" }, "input": { "type": "structure", "required": [ "thingTypeName" ], "members": { "thingTypeName": { "location": "uri", "locationName": "thingTypeName" }, "undoDeprecate": { "type": "boolean" } } }, "output": { "type": "structure", "members": {} } }, "DescribeCACertificate": { "http": { "method": "GET", "requestUri": "/cacertificate/{caCertificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "caCertificateId" } } }, "output": { "type": "structure", "members": { "certificateDescription": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "status": {}, "certificatePem": {}, "ownedBy": {}, "creationDate": { "type": "timestamp" }, "autoRegistrationStatus": {} } } } } }, "DescribeCertificate": { "http": { "method": "GET", "requestUri": "/certificates/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" } } }, "output": { "type": "structure", "members": { "certificateDescription": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "caCertificateId": {}, "status": {}, "certificatePem": {}, "ownedBy": {}, "previousOwnedBy": {}, "creationDate": { "type": "timestamp" }, "lastModifiedDate": { "type": "timestamp" }, "transferData": { "type": "structure", "members": { "transferMessage": {}, "rejectReason": {}, "transferDate": { "type": "timestamp" }, "acceptDate": { "type": "timestamp" }, "rejectDate": { "type": "timestamp" } } } } } } } }, "DescribeEndpoint": { "http": { "method": "GET", "requestUri": "/endpoint" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "endpointAddress": {} } } }, "DescribeThing": { "http": { "method": "GET", "requestUri": "/things/{thingName}" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" } } }, "output": { "type": "structure", "members": { "defaultClientId": {}, "thingName": {}, "thingTypeName": {}, "attributes": { "shape": "Sx" }, "version": { "type": "long" } } } }, "DescribeThingType": { "http": { "method": "GET", "requestUri": "/thing-types/{thingTypeName}" }, "input": { "type": "structure", "required": [ "thingTypeName" ], "members": { "thingTypeName": { "location": "uri", "locationName": "thingTypeName" } } }, "output": { "type": "structure", "members": { "thingTypeName": {}, "thingTypeProperties": { "shape": "S14" }, "thingTypeMetadata": { "shape": "S3s" } } } }, "DetachPrincipalPolicy": { "http": { "method": "DELETE", "requestUri": "/principal-policies/{policyName}" }, "input": { "type": "structure", "required": [ "policyName", "principal" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "principal": { "location": "header", "locationName": "x-amzn-iot-principal" } } } }, "DetachThingPrincipal": { "http": { "method": "DELETE", "requestUri": "/things/{thingName}/principals" }, "input": { "type": "structure", "required": [ "thingName", "principal" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "principal": { "location": "header", "locationName": "x-amzn-principal" } } }, "output": { "type": "structure", "members": {} } }, "DisableTopicRule": { "http": { "requestUri": "/rules/{ruleName}/disable" }, "input": { "type": "structure", "required": [ "ruleName" ], "members": { "ruleName": { "location": "uri", "locationName": "ruleName" } } } }, "EnableTopicRule": { "http": { "requestUri": "/rules/{ruleName}/enable" }, "input": { "type": "structure", "required": [ "ruleName" ], "members": { "ruleName": { "location": "uri", "locationName": "ruleName" } } } }, "GetLoggingOptions": { "http": { "method": "GET", "requestUri": "/loggingOptions" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "roleArn": {}, "logLevel": {} } } }, "GetPolicy": { "http": { "method": "GET", "requestUri": "/policies/{policyName}" }, "input": { "type": "structure", "required": [ "policyName" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" } } }, "output": { "type": "structure", "members": { "policyName": {}, "policyArn": {}, "policyDocument": {}, "defaultVersionId": {} } } }, "GetPolicyVersion": { "http": { "method": "GET", "requestUri": "/policies/{policyName}/version/{policyVersionId}" }, "input": { "type": "structure", "required": [ "policyName", "policyVersionId" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "policyVersionId": { "location": "uri", "locationName": "policyVersionId" } } }, "output": { "type": "structure", "members": { "policyArn": {}, "policyName": {}, "policyDocument": {}, "policyVersionId": {}, "isDefaultVersion": { "type": "boolean" } } } }, "GetRegistrationCode": { "http": { "method": "GET", "requestUri": "/registrationcode" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "registrationCode": {} } } }, "GetTopicRule": { "http": { "method": "GET", "requestUri": "/rules/{ruleName}" }, "input": { "type": "structure", "required": [ "ruleName" ], "members": { "ruleName": { "location": "uri", "locationName": "ruleName" } } }, "output": { "type": "structure", "members": { "ruleArn": {}, "rule": { "type": "structure", "members": { "ruleName": {}, "sql": {}, "description": {}, "createdAt": { "type": "timestamp" }, "actions": { "shape": "S1e" }, "ruleDisabled": { "type": "boolean" }, "awsIotSqlVersion": {} } } } } }, "ListCACertificates": { "http": { "method": "GET", "requestUri": "/cacertificates" }, "input": { "type": "structure", "members": { "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "marker": { "location": "querystring", "locationName": "marker" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificates": { "type": "list", "member": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "status": {}, "creationDate": { "type": "timestamp" } } } }, "nextMarker": {} } } }, "ListCertificates": { "http": { "method": "GET", "requestUri": "/certificates" }, "input": { "type": "structure", "members": { "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "marker": { "location": "querystring", "locationName": "marker" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificates": { "shape": "S4p" }, "nextMarker": {} } } }, "ListCertificatesByCA": { "http": { "method": "GET", "requestUri": "/certificates-by-ca/{caCertificateId}" }, "input": { "type": "structure", "required": [ "caCertificateId" ], "members": { "caCertificateId": { "location": "uri", "locationName": "caCertificateId" }, "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "marker": { "location": "querystring", "locationName": "marker" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificates": { "shape": "S4p" }, "nextMarker": {} } } }, "ListOutgoingCertificates": { "http": { "method": "GET", "requestUri": "/certificates-out-going" }, "input": { "type": "structure", "members": { "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "marker": { "location": "querystring", "locationName": "marker" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "outgoingCertificates": { "type": "list", "member": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "transferredTo": {}, "transferDate": { "type": "timestamp" }, "transferMessage": {}, "creationDate": { "type": "timestamp" } } } }, "nextMarker": {} } } }, "ListPolicies": { "http": { "method": "GET", "requestUri": "/policies" }, "input": { "type": "structure", "members": { "marker": { "location": "querystring", "locationName": "marker" }, "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "policies": { "shape": "S4z" }, "nextMarker": {} } } }, "ListPolicyPrincipals": { "http": { "method": "GET", "requestUri": "/policy-principals" }, "input": { "type": "structure", "required": [ "policyName" ], "members": { "policyName": { "location": "header", "locationName": "x-amzn-iot-policy" }, "marker": { "location": "querystring", "locationName": "marker" }, "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "principals": { "shape": "S53" }, "nextMarker": {} } } }, "ListPolicyVersions": { "http": { "method": "GET", "requestUri": "/policies/{policyName}/version" }, "input": { "type": "structure", "required": [ "policyName" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" } } }, "output": { "type": "structure", "members": { "policyVersions": { "type": "list", "member": { "type": "structure", "members": { "versionId": {}, "isDefaultVersion": { "type": "boolean" }, "createDate": { "type": "timestamp" } } } } } } }, "ListPrincipalPolicies": { "http": { "method": "GET", "requestUri": "/principal-policies" }, "input": { "type": "structure", "required": [ "principal" ], "members": { "principal": { "location": "header", "locationName": "x-amzn-iot-principal" }, "marker": { "location": "querystring", "locationName": "marker" }, "pageSize": { "location": "querystring", "locationName": "pageSize", "type": "integer" }, "ascendingOrder": { "location": "querystring", "locationName": "isAscendingOrder", "type": "boolean" } } }, "output": { "type": "structure", "members": { "policies": { "shape": "S4z" }, "nextMarker": {} } } }, "ListPrincipalThings": { "http": { "method": "GET", "requestUri": "/principals/things" }, "input": { "type": "structure", "required": [ "principal" ], "members": { "nextToken": { "location": "querystring", "locationName": "nextToken" }, "maxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" }, "principal": { "location": "header", "locationName": "x-amzn-principal" } } }, "output": { "type": "structure", "members": { "things": { "type": "list", "member": {} }, "nextToken": {} } } }, "ListThingPrincipals": { "http": { "method": "GET", "requestUri": "/things/{thingName}/principals" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" } } }, "output": { "type": "structure", "members": { "principals": { "shape": "S53" } } } }, "ListThingTypes": { "http": { "method": "GET", "requestUri": "/thing-types" }, "input": { "type": "structure", "members": { "nextToken": { "location": "querystring", "locationName": "nextToken" }, "maxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" }, "thingTypeName": { "location": "querystring", "locationName": "thingTypeName" } } }, "output": { "type": "structure", "members": { "thingTypes": { "type": "list", "member": { "type": "structure", "members": { "thingTypeName": {}, "thingTypeProperties": { "shape": "S14" }, "thingTypeMetadata": { "shape": "S3s" } } } }, "nextToken": {} } } }, "ListThings": { "http": { "method": "GET", "requestUri": "/things" }, "input": { "type": "structure", "members": { "nextToken": { "location": "querystring", "locationName": "nextToken" }, "maxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" }, "attributeName": { "location": "querystring", "locationName": "attributeName" }, "attributeValue": { "location": "querystring", "locationName": "attributeValue" }, "thingTypeName": { "location": "querystring", "locationName": "thingTypeName" } } }, "output": { "type": "structure", "members": { "things": { "type": "list", "member": { "type": "structure", "members": { "thingName": {}, "thingTypeName": {}, "attributes": { "shape": "Sx" }, "version": { "type": "long" } } } }, "nextToken": {} } } }, "ListTopicRules": { "http": { "method": "GET", "requestUri": "/rules" }, "input": { "type": "structure", "members": { "topic": { "location": "querystring", "locationName": "topic" }, "maxResults": { "location": "querystring", "locationName": "maxResults", "type": "integer" }, "nextToken": { "location": "querystring", "locationName": "nextToken" }, "ruleDisabled": { "location": "querystring", "locationName": "ruleDisabled", "type": "boolean" } } }, "output": { "type": "structure", "members": { "rules": { "type": "list", "member": { "type": "structure", "members": { "ruleArn": {}, "ruleName": {}, "topicPattern": {}, "createdAt": { "type": "timestamp" }, "ruleDisabled": { "type": "boolean" } } } }, "nextToken": {} } } }, "RegisterCACertificate": { "http": { "requestUri": "/cacertificate" }, "input": { "type": "structure", "required": [ "caCertificate", "verificationCertificate" ], "members": { "caCertificate": {}, "verificationCertificate": {}, "setAsActive": { "location": "querystring", "locationName": "setAsActive", "type": "boolean" }, "allowAutoRegistration": { "location": "querystring", "locationName": "allowAutoRegistration", "type": "boolean" } } }, "output": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {} } } }, "RegisterCertificate": { "http": { "requestUri": "/certificate/register" }, "input": { "type": "structure", "required": [ "certificatePem" ], "members": { "certificatePem": {}, "caCertificatePem": {}, "setAsActive": { "deprecated": true, "location": "querystring", "locationName": "setAsActive", "type": "boolean" }, "status": {} } }, "output": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {} } } }, "RejectCertificateTransfer": { "http": { "method": "PATCH", "requestUri": "/reject-certificate-transfer/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" }, "rejectReason": {} } } }, "ReplaceTopicRule": { "http": { "method": "PATCH", "requestUri": "/rules/{ruleName}" }, "input": { "type": "structure", "required": [ "ruleName", "topicRulePayload" ], "members": { "ruleName": { "location": "uri", "locationName": "ruleName" }, "topicRulePayload": { "shape": "S1b" } }, "payload": "topicRulePayload" } }, "SetDefaultPolicyVersion": { "http": { "method": "PATCH", "requestUri": "/policies/{policyName}/version/{policyVersionId}" }, "input": { "type": "structure", "required": [ "policyName", "policyVersionId" ], "members": { "policyName": { "location": "uri", "locationName": "policyName" }, "policyVersionId": { "location": "uri", "locationName": "policyVersionId" } } } }, "SetLoggingOptions": { "http": { "requestUri": "/loggingOptions" }, "input": { "type": "structure", "required": [ "loggingOptionsPayload" ], "members": { "loggingOptionsPayload": { "type": "structure", "required": [ "roleArn" ], "members": { "roleArn": {}, "logLevel": {} } } }, "payload": "loggingOptionsPayload" } }, "TransferCertificate": { "http": { "method": "PATCH", "requestUri": "/transfer-certificate/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId", "targetAwsAccount" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" }, "targetAwsAccount": { "location": "querystring", "locationName": "targetAwsAccount" }, "transferMessage": {} } }, "output": { "type": "structure", "members": { "transferredCertificateArn": {} } } }, "UpdateCACertificate": { "http": { "method": "PUT", "requestUri": "/cacertificate/{caCertificateId}" }, "input": { "type": "structure", "required": [ "certificateId" ], "members": { "certificateId": { "location": "uri", "locationName": "caCertificateId" }, "newStatus": { "location": "querystring", "locationName": "newStatus" }, "newAutoRegistrationStatus": { "location": "querystring", "locationName": "newAutoRegistrationStatus" } } } }, "UpdateCertificate": { "http": { "method": "PUT", "requestUri": "/certificates/{certificateId}" }, "input": { "type": "structure", "required": [ "certificateId", "newStatus" ], "members": { "certificateId": { "location": "uri", "locationName": "certificateId" }, "newStatus": { "location": "querystring", "locationName": "newStatus" } } } }, "UpdateThing": { "http": { "method": "PATCH", "requestUri": "/things/{thingName}" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "thingTypeName": {}, "attributePayload": { "shape": "Sw" }, "expectedVersion": { "type": "long" }, "removeThingType": { "type": "boolean" } } }, "output": { "type": "structure", "members": {} } } }, "shapes": { "Sw": { "type": "structure", "members": { "attributes": { "shape": "Sx" }, "merge": { "type": "boolean" } } }, "Sx": { "type": "map", "key": {}, "value": {} }, "S14": { "type": "structure", "members": { "thingTypeDescription": {}, "searchableAttributes": { "type": "list", "member": {} } } }, "S1b": { "type": "structure", "required": [ "sql", "actions" ], "members": { "sql": {}, "description": {}, "actions": { "shape": "S1e" }, "ruleDisabled": { "type": "boolean" }, "awsIotSqlVersion": {} } }, "S1e": { "type": "list", "member": { "type": "structure", "members": { "dynamoDB": { "type": "structure", "required": [ "tableName", "roleArn", "hashKeyField", "hashKeyValue" ], "members": { "tableName": {}, "roleArn": {}, "operation": {}, "hashKeyField": {}, "hashKeyValue": {}, "hashKeyType": {}, "rangeKeyField": {}, "rangeKeyValue": {}, "rangeKeyType": {}, "payloadField": {} } }, "lambda": { "type": "structure", "required": [ "functionArn" ], "members": { "functionArn": {} } }, "sns": { "type": "structure", "required": [ "targetArn", "roleArn" ], "members": { "targetArn": {}, "roleArn": {}, "messageFormat": {} } }, "sqs": { "type": "structure", "required": [ "roleArn", "queueUrl" ], "members": { "roleArn": {}, "queueUrl": {}, "useBase64": { "type": "boolean" } } }, "kinesis": { "type": "structure", "required": [ "roleArn", "streamName" ], "members": { "roleArn": {}, "streamName": {}, "partitionKey": {} } }, "republish": { "type": "structure", "required": [ "roleArn", "topic" ], "members": { "roleArn": {}, "topic": {} } }, "s3": { "type": "structure", "required": [ "roleArn", "bucketName", "key" ], "members": { "roleArn": {}, "bucketName": {}, "key": {}, "cannedAcl": {} } }, "firehose": { "type": "structure", "required": [ "roleArn", "deliveryStreamName" ], "members": { "roleArn": {}, "deliveryStreamName": {}, "separator": {} } }, "cloudwatchMetric": { "type": "structure", "required": [ "roleArn", "metricNamespace", "metricName", "metricValue", "metricUnit" ], "members": { "roleArn": {}, "metricNamespace": {}, "metricName": {}, "metricValue": {}, "metricUnit": {}, "metricTimestamp": {} } }, "cloudwatchAlarm": { "type": "structure", "required": [ "roleArn", "alarmName", "stateReason", "stateValue" ], "members": { "roleArn": {}, "alarmName": {}, "stateReason": {}, "stateValue": {} } }, "elasticsearch": { "type": "structure", "required": [ "roleArn", "endpoint", "index", "type", "id" ], "members": { "roleArn": {}, "endpoint": {}, "index": {}, "type": {}, "id": {} } } } } }, "S3s": { "type": "structure", "members": { "deprecated": { "type": "boolean" }, "deprecationDate": { "type": "timestamp" }, "creationDate": { "type": "timestamp" } } }, "S4p": { "type": "list", "member": { "type": "structure", "members": { "certificateArn": {}, "certificateId": {}, "status": {}, "creationDate": { "type": "timestamp" } } } }, "S4z": { "type": "list", "member": { "type": "structure", "members": { "policyName": {}, "policyArn": {} } } }, "S53": { "type": "list", "member": {} } }, "examples": {} } },{}],78:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-05-28", "endpointPrefix": "data.iot", "protocol": "rest-json", "serviceFullName": "AWS IoT Data Plane", "signatureVersion": "v4", "signingName": "iotdata" }, "operations": { "DeleteThingShadow": { "http": { "method": "DELETE", "requestUri": "/things/{thingName}/shadow" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" } } }, "output": { "type": "structure", "required": [ "payload" ], "members": { "payload": { "type": "blob" } }, "payload": "payload" } }, "GetThingShadow": { "http": { "method": "GET", "requestUri": "/things/{thingName}/shadow" }, "input": { "type": "structure", "required": [ "thingName" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" } } }, "output": { "type": "structure", "members": { "payload": { "type": "blob" } }, "payload": "payload" } }, "Publish": { "http": { "requestUri": "/topics/{topic}" }, "input": { "type": "structure", "required": [ "topic" ], "members": { "topic": { "location": "uri", "locationName": "topic" }, "qos": { "location": "querystring", "locationName": "qos", "type": "integer" }, "payload": { "type": "blob" } }, "payload": "payload" } }, "UpdateThingShadow": { "http": { "requestUri": "/things/{thingName}/shadow" }, "input": { "type": "structure", "required": [ "thingName", "payload" ], "members": { "thingName": { "location": "uri", "locationName": "thingName" }, "payload": { "type": "blob" } }, "payload": "payload" }, "output": { "type": "structure", "members": { "payload": { "type": "blob" } }, "payload": "payload" } } }, "shapes": {} } },{}],79:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-12-02", "endpointPrefix": "kinesis", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Kinesis", "serviceFullName": "Amazon Kinesis", "signatureVersion": "v4", "targetPrefix": "Kinesis_20131202" }, "operations": { "AddTagsToStream": { "input": { "type": "structure", "required": [ "StreamName", "Tags" ], "members": { "StreamName": {}, "Tags": { "type": "map", "key": {}, "value": {} } } } }, "CreateStream": { "input": { "type": "structure", "required": [ "StreamName", "ShardCount" ], "members": { "StreamName": {}, "ShardCount": { "type": "integer" } } } }, "DecreaseStreamRetentionPeriod": { "input": { "type": "structure", "required": [ "StreamName", "RetentionPeriodHours" ], "members": { "StreamName": {}, "RetentionPeriodHours": { "type": "integer" } } } }, "DeleteStream": { "input": { "type": "structure", "required": [ "StreamName" ], "members": { "StreamName": {} } } }, "DescribeStream": { "input": { "type": "structure", "required": [ "StreamName" ], "members": { "StreamName": {}, "Limit": { "type": "integer" }, "ExclusiveStartShardId": {} } }, "output": { "type": "structure", "required": [ "StreamDescription" ], "members": { "StreamDescription": { "type": "structure", "required": [ "StreamName", "StreamARN", "StreamStatus", "Shards", "HasMoreShards", "RetentionPeriodHours", "EnhancedMonitoring" ], "members": { "StreamName": {}, "StreamARN": {}, "StreamStatus": {}, "Shards": { "type": "list", "member": { "type": "structure", "required": [ "ShardId", "HashKeyRange", "SequenceNumberRange" ], "members": { "ShardId": {}, "ParentShardId": {}, "AdjacentParentShardId": {}, "HashKeyRange": { "type": "structure", "required": [ "StartingHashKey", "EndingHashKey" ], "members": { "StartingHashKey": {}, "EndingHashKey": {} } }, "SequenceNumberRange": { "type": "structure", "required": [ "StartingSequenceNumber" ], "members": { "StartingSequenceNumber": {}, "EndingSequenceNumber": {} } } } } }, "HasMoreShards": { "type": "boolean" }, "RetentionPeriodHours": { "type": "integer" }, "EnhancedMonitoring": { "type": "list", "member": { "type": "structure", "members": { "ShardLevelMetrics": { "shape": "Sr" } } } } } } } } }, "DisableEnhancedMonitoring": { "input": { "type": "structure", "required": [ "StreamName", "ShardLevelMetrics" ], "members": { "StreamName": {}, "ShardLevelMetrics": { "shape": "Sr" } } }, "output": { "shape": "Su" } }, "EnableEnhancedMonitoring": { "input": { "type": "structure", "required": [ "StreamName", "ShardLevelMetrics" ], "members": { "StreamName": {}, "ShardLevelMetrics": { "shape": "Sr" } } }, "output": { "shape": "Su" } }, "GetRecords": { "input": { "type": "structure", "required": [ "ShardIterator" ], "members": { "ShardIterator": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "Records" ], "members": { "Records": { "type": "list", "member": { "type": "structure", "required": [ "SequenceNumber", "Data", "PartitionKey" ], "members": { "SequenceNumber": {}, "ApproximateArrivalTimestamp": { "type": "timestamp" }, "Data": { "type": "blob" }, "PartitionKey": {} } } }, "NextShardIterator": {}, "MillisBehindLatest": { "type": "long" } } } }, "GetShardIterator": { "input": { "type": "structure", "required": [ "StreamName", "ShardId", "ShardIteratorType" ], "members": { "StreamName": {}, "ShardId": {}, "ShardIteratorType": {}, "StartingSequenceNumber": {}, "Timestamp": { "type": "timestamp" } } }, "output": { "type": "structure", "members": { "ShardIterator": {} } } }, "IncreaseStreamRetentionPeriod": { "input": { "type": "structure", "required": [ "StreamName", "RetentionPeriodHours" ], "members": { "StreamName": {}, "RetentionPeriodHours": { "type": "integer" } } } }, "ListStreams": { "input": { "type": "structure", "members": { "Limit": { "type": "integer" }, "ExclusiveStartStreamName": {} } }, "output": { "type": "structure", "required": [ "StreamNames", "HasMoreStreams" ], "members": { "StreamNames": { "type": "list", "member": {} }, "HasMoreStreams": { "type": "boolean" } } } }, "ListTagsForStream": { "input": { "type": "structure", "required": [ "StreamName" ], "members": { "StreamName": {}, "ExclusiveStartTagKey": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "Tags", "HasMoreTags" ], "members": { "Tags": { "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "Value": {} } } }, "HasMoreTags": { "type": "boolean" } } } }, "MergeShards": { "input": { "type": "structure", "required": [ "StreamName", "ShardToMerge", "AdjacentShardToMerge" ], "members": { "StreamName": {}, "ShardToMerge": {}, "AdjacentShardToMerge": {} } } }, "PutRecord": { "input": { "type": "structure", "required": [ "StreamName", "Data", "PartitionKey" ], "members": { "StreamName": {}, "Data": { "type": "blob" }, "PartitionKey": {}, "ExplicitHashKey": {}, "SequenceNumberForOrdering": {} } }, "output": { "type": "structure", "required": [ "ShardId", "SequenceNumber" ], "members": { "ShardId": {}, "SequenceNumber": {} } } }, "PutRecords": { "input": { "type": "structure", "required": [ "Records", "StreamName" ], "members": { "Records": { "type": "list", "member": { "type": "structure", "required": [ "Data", "PartitionKey" ], "members": { "Data": { "type": "blob" }, "ExplicitHashKey": {}, "PartitionKey": {} } } }, "StreamName": {} } }, "output": { "type": "structure", "required": [ "Records" ], "members": { "FailedRecordCount": { "type": "integer" }, "Records": { "type": "list", "member": { "type": "structure", "members": { "SequenceNumber": {}, "ShardId": {}, "ErrorCode": {}, "ErrorMessage": {} } } } } } }, "RemoveTagsFromStream": { "input": { "type": "structure", "required": [ "StreamName", "TagKeys" ], "members": { "StreamName": {}, "TagKeys": { "type": "list", "member": {} } } } }, "SplitShard": { "input": { "type": "structure", "required": [ "StreamName", "ShardToSplit", "NewStartingHashKey" ], "members": { "StreamName": {}, "ShardToSplit": {}, "NewStartingHashKey": {} } } } }, "shapes": { "Sr": { "type": "list", "member": {} }, "Su": { "type": "structure", "members": { "StreamName": {}, "CurrentShardLevelMetrics": { "shape": "Sr" }, "DesiredShardLevelMetrics": { "shape": "Sr" } } } } } },{}],80:[function(require,module,exports){ module.exports={ "pagination": { "DescribeStream": { "input_token": "ExclusiveStartShardId", "limit_key": "Limit", "more_results": "StreamDescription.HasMoreShards", "output_token": "StreamDescription.Shards[-1].ShardId", "result_key": "StreamDescription.Shards" }, "ListStreams": { "input_token": "ExclusiveStartStreamName", "limit_key": "Limit", "more_results": "HasMoreStreams", "output_token": "StreamNames[-1]", "result_key": "StreamNames" } } } },{}],81:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "StreamExists": { "delay": 10, "operation": "DescribeStream", "maxAttempts": 18, "acceptors": [ { "expected": "ACTIVE", "matcher": "path", "state": "success", "argument": "StreamDescription.StreamStatus" } ] } } } },{}],82:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-11-01", "endpointPrefix": "kms", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "KMS", "serviceFullName": "AWS Key Management Service", "signatureVersion": "v4", "targetPrefix": "TrentService" }, "operations": { "CancelKeyDeletion": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } }, "output": { "type": "structure", "members": { "KeyId": {} } } }, "CreateAlias": { "input": { "type": "structure", "required": [ "AliasName", "TargetKeyId" ], "members": { "AliasName": {}, "TargetKeyId": {} } } }, "CreateGrant": { "input": { "type": "structure", "required": [ "KeyId", "GranteePrincipal" ], "members": { "KeyId": {}, "GranteePrincipal": {}, "RetiringPrincipal": {}, "Operations": { "shape": "S8" }, "Constraints": { "shape": "Sa" }, "GrantTokens": { "shape": "Se" }, "Name": {} } }, "output": { "type": "structure", "members": { "GrantToken": {}, "GrantId": {} } } }, "CreateKey": { "input": { "type": "structure", "members": { "Policy": {}, "Description": {}, "KeyUsage": {}, "Origin": {}, "BypassPolicyLockoutSafetyCheck": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "KeyMetadata": { "shape": "Sq" } } } }, "Decrypt": { "input": { "type": "structure", "required": [ "CiphertextBlob" ], "members": { "CiphertextBlob": { "type": "blob" }, "EncryptionContext": { "shape": "Sb" }, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "KeyId": {}, "Plaintext": { "shape": "Sz" } } } }, "DeleteAlias": { "input": { "type": "structure", "required": [ "AliasName" ], "members": { "AliasName": {} } } }, "DeleteImportedKeyMaterial": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } } }, "DescribeKey": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {}, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "KeyMetadata": { "shape": "Sq" } } } }, "DisableKey": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } } }, "DisableKeyRotation": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } } }, "EnableKey": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } } }, "EnableKeyRotation": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } } }, "Encrypt": { "input": { "type": "structure", "required": [ "KeyId", "Plaintext" ], "members": { "KeyId": {}, "Plaintext": { "shape": "Sz" }, "EncryptionContext": { "shape": "Sb" }, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "CiphertextBlob": { "type": "blob" }, "KeyId": {} } } }, "GenerateDataKey": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {}, "EncryptionContext": { "shape": "Sb" }, "NumberOfBytes": { "type": "integer" }, "KeySpec": {}, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "CiphertextBlob": { "type": "blob" }, "Plaintext": { "shape": "Sz" }, "KeyId": {} } } }, "GenerateDataKeyWithoutPlaintext": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {}, "EncryptionContext": { "shape": "Sb" }, "KeySpec": {}, "NumberOfBytes": { "type": "integer" }, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "CiphertextBlob": { "type": "blob" }, "KeyId": {} } } }, "GenerateRandom": { "input": { "type": "structure", "members": { "NumberOfBytes": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Plaintext": { "shape": "Sz" } } } }, "GetKeyPolicy": { "input": { "type": "structure", "required": [ "KeyId", "PolicyName" ], "members": { "KeyId": {}, "PolicyName": {} } }, "output": { "type": "structure", "members": { "Policy": {} } } }, "GetKeyRotationStatus": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {} } }, "output": { "type": "structure", "members": { "KeyRotationEnabled": { "type": "boolean" } } } }, "GetParametersForImport": { "input": { "type": "structure", "required": [ "KeyId", "WrappingAlgorithm", "WrappingKeySpec" ], "members": { "KeyId": {}, "WrappingAlgorithm": {}, "WrappingKeySpec": {} } }, "output": { "type": "structure", "members": { "KeyId": {}, "ImportToken": { "type": "blob" }, "PublicKey": { "shape": "Sz" }, "ParametersValidTo": { "type": "timestamp" } } } }, "ImportKeyMaterial": { "input": { "type": "structure", "required": [ "KeyId", "ImportToken", "EncryptedKeyMaterial" ], "members": { "KeyId": {}, "ImportToken": { "type": "blob" }, "EncryptedKeyMaterial": { "type": "blob" }, "ValidTo": { "type": "timestamp" }, "ExpirationModel": {} } }, "output": { "type": "structure", "members": {} } }, "ListAliases": { "input": { "type": "structure", "members": { "Limit": { "type": "integer" }, "Marker": {} } }, "output": { "type": "structure", "members": { "Aliases": { "type": "list", "member": { "type": "structure", "members": { "AliasName": {}, "AliasArn": {}, "TargetKeyId": {} } } }, "NextMarker": {}, "Truncated": { "type": "boolean" } } } }, "ListGrants": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "Limit": { "type": "integer" }, "Marker": {}, "KeyId": {} } }, "output": { "shape": "S20" } }, "ListKeyPolicies": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {}, "Limit": { "type": "integer" }, "Marker": {} } }, "output": { "type": "structure", "members": { "PolicyNames": { "type": "list", "member": {} }, "NextMarker": {}, "Truncated": { "type": "boolean" } } } }, "ListKeys": { "input": { "type": "structure", "members": { "Limit": { "type": "integer" }, "Marker": {} } }, "output": { "type": "structure", "members": { "Keys": { "type": "list", "member": { "type": "structure", "members": { "KeyId": {}, "KeyArn": {} } } }, "NextMarker": {}, "Truncated": { "type": "boolean" } } } }, "ListRetirableGrants": { "input": { "type": "structure", "required": [ "RetiringPrincipal" ], "members": { "Limit": { "type": "integer" }, "Marker": {}, "RetiringPrincipal": {} } }, "output": { "shape": "S20" } }, "PutKeyPolicy": { "input": { "type": "structure", "required": [ "KeyId", "PolicyName", "Policy" ], "members": { "KeyId": {}, "PolicyName": {}, "Policy": {}, "BypassPolicyLockoutSafetyCheck": { "type": "boolean" } } } }, "ReEncrypt": { "input": { "type": "structure", "required": [ "CiphertextBlob", "DestinationKeyId" ], "members": { "CiphertextBlob": { "type": "blob" }, "SourceEncryptionContext": { "shape": "Sb" }, "DestinationKeyId": {}, "DestinationEncryptionContext": { "shape": "Sb" }, "GrantTokens": { "shape": "Se" } } }, "output": { "type": "structure", "members": { "CiphertextBlob": { "type": "blob" }, "SourceKeyId": {}, "KeyId": {} } } }, "RetireGrant": { "input": { "type": "structure", "members": { "GrantToken": {}, "KeyId": {}, "GrantId": {} } } }, "RevokeGrant": { "input": { "type": "structure", "required": [ "KeyId", "GrantId" ], "members": { "KeyId": {}, "GrantId": {} } } }, "ScheduleKeyDeletion": { "input": { "type": "structure", "required": [ "KeyId" ], "members": { "KeyId": {}, "PendingWindowInDays": { "type": "integer" } } }, "output": { "type": "structure", "members": { "KeyId": {}, "DeletionDate": { "type": "timestamp" } } } }, "UpdateAlias": { "input": { "type": "structure", "required": [ "AliasName", "TargetKeyId" ], "members": { "AliasName": {}, "TargetKeyId": {} } } }, "UpdateKeyDescription": { "input": { "type": "structure", "required": [ "KeyId", "Description" ], "members": { "KeyId": {}, "Description": {} } } } }, "shapes": { "S8": { "type": "list", "member": {} }, "Sa": { "type": "structure", "members": { "EncryptionContextSubset": { "shape": "Sb" }, "EncryptionContextEquals": { "shape": "Sb" } } }, "Sb": { "type": "map", "key": {}, "value": {} }, "Se": { "type": "list", "member": {} }, "Sq": { "type": "structure", "required": [ "KeyId" ], "members": { "AWSAccountId": {}, "KeyId": {}, "Arn": {}, "CreationDate": { "type": "timestamp" }, "Enabled": { "type": "boolean" }, "Description": {}, "KeyUsage": {}, "KeyState": {}, "DeletionDate": { "type": "timestamp" }, "ValidTo": { "type": "timestamp" }, "Origin": {}, "ExpirationModel": {} } }, "Sz": { "type": "blob", "sensitive": true }, "S20": { "type": "structure", "members": { "Grants": { "type": "list", "member": { "type": "structure", "members": { "KeyId": {}, "GrantId": {}, "Name": {}, "CreationDate": { "type": "timestamp" }, "GranteePrincipal": {}, "RetiringPrincipal": {}, "IssuingAccount": {}, "Operations": { "shape": "S8" }, "Constraints": { "shape": "Sa" } } } }, "NextMarker": {}, "Truncated": { "type": "boolean" } } } } } },{}],83:[function(require,module,exports){ module.exports={ "pagination": { "ListAliases": { "limit_key": "Limit", "input_token": "Marker", "output_token": "NextMarker", "more_results": "Truncated", "result_key": "Aliases" }, "ListGrants": { "limit_key": "Limit", "input_token": "Marker", "output_token": "NextMarker", "more_results": "Truncated", "result_key": "Grants" }, "ListKeyPolicies": { "limit_key": "Limit", "input_token": "Marker", "output_token": "NextMarker", "more_results": "Truncated", "result_key": "PolicyNames" }, "ListKeys": { "limit_key": "Limit", "input_token": "Marker", "output_token": "NextMarker", "more_results": "Truncated", "result_key": "Keys" } } } },{}],84:[function(require,module,exports){ module.exports={ "metadata": { "apiVersion": "2014-11-11", "endpointPrefix": "lambda", "serviceFullName": "AWS Lambda", "signatureVersion": "v4", "protocol": "rest-json" }, "operations": { "AddEventSource": { "http": { "requestUri": "/2014-11-13/event-source-mappings/" }, "input": { "type": "structure", "required": [ "EventSource", "FunctionName", "Role" ], "members": { "EventSource": {}, "FunctionName": {}, "Role": {}, "BatchSize": { "type": "integer" }, "Parameters": { "shape": "S6" } } }, "output": { "shape": "S7" } }, "DeleteFunction": { "http": { "method": "DELETE", "requestUri": "/2014-11-13/functions/{FunctionName}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" } } } }, "GetEventSource": { "http": { "method": "GET", "requestUri": "/2014-11-13/event-source-mappings/{UUID}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "UUID" ], "members": { "UUID": { "location": "uri", "locationName": "UUID" } } }, "output": { "shape": "S7" } }, "GetFunction": { "http": { "method": "GET", "requestUri": "/2014-11-13/functions/{FunctionName}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" } } }, "output": { "type": "structure", "members": { "Configuration": { "shape": "Se" }, "Code": { "type": "structure", "members": { "RepositoryType": {}, "Location": {} } } } } }, "GetFunctionConfiguration": { "http": { "method": "GET", "requestUri": "/2014-11-13/functions/{FunctionName}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" } } }, "output": { "shape": "Se" } }, "InvokeAsync": { "http": { "requestUri": "/2014-11-13/functions/{FunctionName}/invoke-async/", "responseCode": 202 }, "input": { "type": "structure", "required": [ "FunctionName", "InvokeArgs" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "InvokeArgs": { "shape": "Sq" } }, "payload": "InvokeArgs" }, "output": { "type": "structure", "members": { "Status": { "location": "statusCode", "type": "integer" } } } }, "ListEventSources": { "http": { "method": "GET", "requestUri": "/2014-11-13/event-source-mappings/", "responseCode": 200 }, "input": { "type": "structure", "members": { "EventSourceArn": { "location": "querystring", "locationName": "EventSource" }, "FunctionName": { "location": "querystring", "locationName": "FunctionName" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "EventSources": { "type": "list", "member": { "shape": "S7" } } } } }, "ListFunctions": { "http": { "method": "GET", "requestUri": "/2014-11-13/functions/", "responseCode": 200 }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "Functions": { "type": "list", "member": { "shape": "Se" } } } } }, "RemoveEventSource": { "http": { "method": "DELETE", "requestUri": "/2014-11-13/event-source-mappings/{UUID}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "UUID" ], "members": { "UUID": { "location": "uri", "locationName": "UUID" } } } }, "UpdateFunctionConfiguration": { "http": { "method": "PUT", "requestUri": "/2014-11-13/functions/{FunctionName}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Role": { "location": "querystring", "locationName": "Role" }, "Handler": { "location": "querystring", "locationName": "Handler" }, "Description": { "location": "querystring", "locationName": "Description" }, "Timeout": { "location": "querystring", "locationName": "Timeout", "type": "integer" }, "MemorySize": { "location": "querystring", "locationName": "MemorySize", "type": "integer" } } }, "output": { "shape": "Se" } }, "UploadFunction": { "http": { "method": "PUT", "requestUri": "/2014-11-13/functions/{FunctionName}", "responseCode": 201 }, "input": { "type": "structure", "required": [ "FunctionName", "FunctionZip", "Runtime", "Role", "Handler", "Mode" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "FunctionZip": { "shape": "Sq" }, "Runtime": { "location": "querystring", "locationName": "Runtime" }, "Role": { "location": "querystring", "locationName": "Role" }, "Handler": { "location": "querystring", "locationName": "Handler" }, "Mode": { "location": "querystring", "locationName": "Mode" }, "Description": { "location": "querystring", "locationName": "Description" }, "Timeout": { "location": "querystring", "locationName": "Timeout", "type": "integer" }, "MemorySize": { "location": "querystring", "locationName": "MemorySize", "type": "integer" } }, "payload": "FunctionZip" }, "output": { "shape": "Se" } } }, "shapes": { "S6": { "type": "map", "key": {}, "value": {} }, "S7": { "type": "structure", "members": { "UUID": {}, "BatchSize": { "type": "integer" }, "EventSource": {}, "FunctionName": {}, "Parameters": { "shape": "S6" }, "Role": {}, "LastModified": { "type": "timestamp" }, "IsActive": { "type": "boolean" }, "Status": {} } }, "Se": { "type": "structure", "members": { "FunctionName": {}, "FunctionARN": {}, "ConfigurationId": {}, "Runtime": {}, "Role": {}, "Handler": {}, "Mode": {}, "CodeSize": { "type": "long" }, "Description": {}, "Timeout": { "type": "integer" }, "MemorySize": { "type": "integer" }, "LastModified": { "type": "timestamp" } } }, "Sq": { "type": "blob", "streaming": true } } } },{}],85:[function(require,module,exports){ module.exports={ "pagination": { "ListEventSources": { "input_token": "Marker", "output_token": "NextMarker", "limit_key": "MaxItems", "result_key": "EventSources" }, "ListFunctions": { "input_token": "Marker", "output_token": "NextMarker", "limit_key": "MaxItems", "result_key": "Functions" } } } },{}],86:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-03-31", "endpointPrefix": "lambda", "protocol": "rest-json", "serviceFullName": "AWS Lambda", "signatureVersion": "v4" }, "operations": { "AddPermission": { "http": { "requestUri": "/2015-03-31/functions/{FunctionName}/policy", "responseCode": 201 }, "input": { "type": "structure", "required": [ "FunctionName", "StatementId", "Action", "Principal" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "StatementId": {}, "Action": {}, "Principal": {}, "SourceArn": {}, "SourceAccount": {}, "EventSourceToken": {}, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } }, "output": { "type": "structure", "members": { "Statement": {} } } }, "CreateAlias": { "http": { "requestUri": "/2015-03-31/functions/{FunctionName}/aliases", "responseCode": 201 }, "input": { "type": "structure", "required": [ "FunctionName", "Name", "FunctionVersion" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Name": {}, "FunctionVersion": {}, "Description": {} } }, "output": { "shape": "Sg" } }, "CreateEventSourceMapping": { "http": { "requestUri": "/2015-03-31/event-source-mappings/", "responseCode": 202 }, "input": { "type": "structure", "required": [ "EventSourceArn", "FunctionName", "StartingPosition" ], "members": { "EventSourceArn": {}, "FunctionName": {}, "Enabled": { "type": "boolean" }, "BatchSize": { "type": "integer" }, "StartingPosition": {} } }, "output": { "shape": "Sm" } }, "CreateFunction": { "http": { "requestUri": "/2015-03-31/functions", "responseCode": 201 }, "input": { "type": "structure", "required": [ "FunctionName", "Runtime", "Role", "Handler", "Code" ], "members": { "FunctionName": {}, "Runtime": {}, "Role": {}, "Handler": {}, "Code": { "type": "structure", "members": { "ZipFile": { "type": "blob" }, "S3Bucket": {}, "S3Key": {}, "S3ObjectVersion": {} } }, "Description": {}, "Timeout": { "type": "integer" }, "MemorySize": { "type": "integer" }, "Publish": { "type": "boolean" }, "VpcConfig": { "shape": "S10" } } }, "output": { "shape": "S15" } }, "DeleteAlias": { "http": { "method": "DELETE", "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "FunctionName", "Name" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Name": { "location": "uri", "locationName": "Name" } } } }, "DeleteEventSourceMapping": { "http": { "method": "DELETE", "requestUri": "/2015-03-31/event-source-mappings/{UUID}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "UUID" ], "members": { "UUID": { "location": "uri", "locationName": "UUID" } } }, "output": { "shape": "Sm" } }, "DeleteFunction": { "http": { "method": "DELETE", "requestUri": "/2015-03-31/functions/{FunctionName}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } } }, "GetAlias": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName", "Name" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Name": { "location": "uri", "locationName": "Name" } } }, "output": { "shape": "Sg" } }, "GetEventSourceMapping": { "http": { "method": "GET", "requestUri": "/2015-03-31/event-source-mappings/{UUID}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "UUID" ], "members": { "UUID": { "location": "uri", "locationName": "UUID" } } }, "output": { "shape": "Sm" } }, "GetFunction": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } }, "output": { "type": "structure", "members": { "Configuration": { "shape": "S15" }, "Code": { "type": "structure", "members": { "RepositoryType": {}, "Location": {} } } } } }, "GetFunctionConfiguration": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } }, "output": { "shape": "S15" } }, "GetPolicy": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}/policy", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } }, "output": { "type": "structure", "members": { "Policy": {} } } }, "Invoke": { "http": { "requestUri": "/2015-03-31/functions/{FunctionName}/invocations" }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "InvocationType": { "location": "header", "locationName": "X-Amz-Invocation-Type" }, "LogType": { "location": "header", "locationName": "X-Amz-Log-Type" }, "ClientContext": { "location": "header", "locationName": "X-Amz-Client-Context" }, "Payload": { "type": "blob" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } }, "payload": "Payload" }, "output": { "type": "structure", "members": { "StatusCode": { "location": "statusCode", "type": "integer" }, "FunctionError": { "location": "header", "locationName": "X-Amz-Function-Error" }, "LogResult": { "location": "header", "locationName": "X-Amz-Log-Result" }, "Payload": { "type": "blob" } }, "payload": "Payload" } }, "InvokeAsync": { "http": { "requestUri": "/2014-11-13/functions/{FunctionName}/invoke-async/", "responseCode": 202 }, "input": { "type": "structure", "required": [ "FunctionName", "InvokeArgs" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "InvokeArgs": { "type": "blob", "streaming": true } }, "deprecated": true, "payload": "InvokeArgs" }, "output": { "type": "structure", "members": { "Status": { "location": "statusCode", "type": "integer" } }, "deprecated": true }, "deprecated": true }, "ListAliases": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}/aliases", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "FunctionVersion": { "location": "querystring", "locationName": "FunctionVersion" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "Aliases": { "type": "list", "member": { "shape": "Sg" } } } } }, "ListEventSourceMappings": { "http": { "method": "GET", "requestUri": "/2015-03-31/event-source-mappings/", "responseCode": 200 }, "input": { "type": "structure", "members": { "EventSourceArn": { "location": "querystring", "locationName": "EventSourceArn" }, "FunctionName": { "location": "querystring", "locationName": "FunctionName" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "EventSourceMappings": { "type": "list", "member": { "shape": "Sm" } } } } }, "ListFunctions": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/", "responseCode": 200 }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "Functions": { "shape": "S23" } } } }, "ListVersionsByFunction": { "http": { "method": "GET", "requestUri": "/2015-03-31/functions/{FunctionName}/versions", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems", "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "Versions": { "shape": "S23" } } } }, "PublishVersion": { "http": { "requestUri": "/2015-03-31/functions/{FunctionName}/versions", "responseCode": 201 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "CodeSha256": {}, "Description": {} } }, "output": { "shape": "S15" } }, "RemovePermission": { "http": { "method": "DELETE", "requestUri": "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", "responseCode": 204 }, "input": { "type": "structure", "required": [ "FunctionName", "StatementId" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "StatementId": { "location": "uri", "locationName": "StatementId" }, "Qualifier": { "location": "querystring", "locationName": "Qualifier" } } } }, "UpdateAlias": { "http": { "method": "PUT", "requestUri": "/2015-03-31/functions/{FunctionName}/aliases/{Name}", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName", "Name" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Name": { "location": "uri", "locationName": "Name" }, "FunctionVersion": {}, "Description": {} } }, "output": { "shape": "Sg" } }, "UpdateEventSourceMapping": { "http": { "method": "PUT", "requestUri": "/2015-03-31/event-source-mappings/{UUID}", "responseCode": 202 }, "input": { "type": "structure", "required": [ "UUID" ], "members": { "UUID": { "location": "uri", "locationName": "UUID" }, "FunctionName": {}, "Enabled": { "type": "boolean" }, "BatchSize": { "type": "integer" } } }, "output": { "shape": "Sm" } }, "UpdateFunctionCode": { "http": { "method": "PUT", "requestUri": "/2015-03-31/functions/{FunctionName}/code", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "ZipFile": { "type": "blob" }, "S3Bucket": {}, "S3Key": {}, "S3ObjectVersion": {}, "Publish": { "type": "boolean" } } }, "output": { "shape": "S15" } }, "UpdateFunctionConfiguration": { "http": { "method": "PUT", "requestUri": "/2015-03-31/functions/{FunctionName}/configuration", "responseCode": 200 }, "input": { "type": "structure", "required": [ "FunctionName" ], "members": { "FunctionName": { "location": "uri", "locationName": "FunctionName" }, "Role": {}, "Handler": {}, "Description": {}, "Timeout": { "type": "integer" }, "MemorySize": { "type": "integer" }, "VpcConfig": { "shape": "S10" }, "Runtime": {} } }, "output": { "shape": "S15" } } }, "shapes": { "Sg": { "type": "structure", "members": { "AliasArn": {}, "Name": {}, "FunctionVersion": {}, "Description": {} } }, "Sm": { "type": "structure", "members": { "UUID": {}, "BatchSize": { "type": "integer" }, "EventSourceArn": {}, "FunctionArn": {}, "LastModified": { "type": "timestamp" }, "LastProcessingResult": {}, "State": {}, "StateTransitionReason": {} } }, "S10": { "type": "structure", "members": { "SubnetIds": { "shape": "S11" }, "SecurityGroupIds": { "shape": "S13" } } }, "S11": { "type": "list", "member": {} }, "S13": { "type": "list", "member": {} }, "S15": { "type": "structure", "members": { "FunctionName": {}, "FunctionArn": {}, "Runtime": {}, "Role": {}, "Handler": {}, "CodeSize": { "type": "long" }, "Description": {}, "Timeout": { "type": "integer" }, "MemorySize": { "type": "integer" }, "LastModified": {}, "CodeSha256": {}, "Version": {}, "VpcConfig": { "type": "structure", "members": { "SubnetIds": { "shape": "S11" }, "SecurityGroupIds": { "shape": "S13" }, "VpcId": {} } } } }, "S23": { "type": "list", "member": { "shape": "S15" } } } } },{}],87:[function(require,module,exports){ module.exports={ "pagination": { "ListEventSourceMappings": { "input_token": "Marker", "output_token": "NextMarker", "limit_key": "MaxItems", "result_key": "EventSourceMappings" }, "ListFunctions": { "input_token": "Marker", "output_token": "NextMarker", "limit_key": "MaxItems", "result_key": "Functions" } } } },{}],88:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-03-28", "endpointPrefix": "logs", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon CloudWatch Logs", "signatureVersion": "v4", "targetPrefix": "Logs_20140328" }, "operations": { "CancelExportTask": { "input": { "type": "structure", "required": [ "taskId" ], "members": { "taskId": {} } } }, "CreateExportTask": { "input": { "type": "structure", "required": [ "logGroupName", "from", "to", "destination" ], "members": { "taskName": {}, "logGroupName": {}, "logStreamNamePrefix": {}, "from": { "type": "long" }, "to": { "type": "long" }, "destination": {}, "destinationPrefix": {} } }, "output": { "type": "structure", "members": { "taskId": {} } } }, "CreateLogGroup": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {} } } }, "CreateLogStream": { "input": { "type": "structure", "required": [ "logGroupName", "logStreamName" ], "members": { "logGroupName": {}, "logStreamName": {} } } }, "DeleteDestination": { "input": { "type": "structure", "required": [ "destinationName" ], "members": { "destinationName": {} } } }, "DeleteLogGroup": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {} } } }, "DeleteLogStream": { "input": { "type": "structure", "required": [ "logGroupName", "logStreamName" ], "members": { "logGroupName": {}, "logStreamName": {} } } }, "DeleteMetricFilter": { "input": { "type": "structure", "required": [ "logGroupName", "filterName" ], "members": { "logGroupName": {}, "filterName": {} } } }, "DeleteRetentionPolicy": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {} } } }, "DeleteSubscriptionFilter": { "input": { "type": "structure", "required": [ "logGroupName", "filterName" ], "members": { "logGroupName": {}, "filterName": {} } } }, "DescribeDestinations": { "input": { "type": "structure", "members": { "DestinationNamePrefix": {}, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "destinations": { "type": "list", "member": { "shape": "Sq" } }, "nextToken": {} } } }, "DescribeExportTasks": { "input": { "type": "structure", "members": { "taskId": {}, "statusCode": {}, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "exportTasks": { "type": "list", "member": { "type": "structure", "members": { "taskId": {}, "taskName": {}, "logGroupName": {}, "from": { "type": "long" }, "to": { "type": "long" }, "destination": {}, "destinationPrefix": {}, "status": { "type": "structure", "members": { "code": {}, "message": {} } }, "executionInfo": { "type": "structure", "members": { "creationTime": { "type": "long" }, "completionTime": { "type": "long" } } } } } }, "nextToken": {} } } }, "DescribeLogGroups": { "input": { "type": "structure", "members": { "logGroupNamePrefix": {}, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "logGroups": { "type": "list", "member": { "type": "structure", "members": { "logGroupName": {}, "creationTime": { "type": "long" }, "retentionInDays": { "type": "integer" }, "metricFilterCount": { "type": "integer" }, "arn": {}, "storedBytes": { "type": "long" } } } }, "nextToken": {} } } }, "DescribeLogStreams": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {}, "logStreamNamePrefix": {}, "orderBy": {}, "descending": { "type": "boolean" }, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "logStreams": { "type": "list", "member": { "type": "structure", "members": { "logStreamName": {}, "creationTime": { "type": "long" }, "firstEventTimestamp": { "type": "long" }, "lastEventTimestamp": { "type": "long" }, "lastIngestionTime": { "type": "long" }, "uploadSequenceToken": {}, "arn": {}, "storedBytes": { "type": "long" } } } }, "nextToken": {} } } }, "DescribeMetricFilters": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {}, "filterNamePrefix": {}, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "metricFilters": { "type": "list", "member": { "type": "structure", "members": { "filterName": {}, "filterPattern": {}, "metricTransformations": { "shape": "S1m" }, "creationTime": { "type": "long" } } } }, "nextToken": {} } } }, "DescribeSubscriptionFilters": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {}, "filterNamePrefix": {}, "nextToken": {}, "limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "subscriptionFilters": { "type": "list", "member": { "type": "structure", "members": { "filterName": {}, "logGroupName": {}, "filterPattern": {}, "destinationArn": {}, "roleArn": {}, "creationTime": { "type": "long" } } } }, "nextToken": {} } } }, "FilterLogEvents": { "input": { "type": "structure", "required": [ "logGroupName" ], "members": { "logGroupName": {}, "logStreamNames": { "type": "list", "member": {} }, "startTime": { "type": "long" }, "endTime": { "type": "long" }, "filterPattern": {}, "nextToken": {}, "limit": { "type": "integer" }, "interleaved": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "events": { "type": "list", "member": { "type": "structure", "members": { "logStreamName": {}, "timestamp": { "type": "long" }, "message": {}, "ingestionTime": { "type": "long" }, "eventId": {} } } }, "searchedLogStreams": { "type": "list", "member": { "type": "structure", "members": { "logStreamName": {}, "searchedCompletely": { "type": "boolean" } } } }, "nextToken": {} } } }, "GetLogEvents": { "input": { "type": "structure", "required": [ "logGroupName", "logStreamName" ], "members": { "logGroupName": {}, "logStreamName": {}, "startTime": { "type": "long" }, "endTime": { "type": "long" }, "nextToken": {}, "limit": { "type": "integer" }, "startFromHead": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "events": { "type": "list", "member": { "type": "structure", "members": { "timestamp": { "type": "long" }, "message": {}, "ingestionTime": { "type": "long" } } } }, "nextForwardToken": {}, "nextBackwardToken": {} } } }, "PutDestination": { "input": { "type": "structure", "required": [ "destinationName", "targetArn", "roleArn" ], "members": { "destinationName": {}, "targetArn": {}, "roleArn": {} } }, "output": { "type": "structure", "members": { "destination": { "shape": "Sq" } } } }, "PutDestinationPolicy": { "input": { "type": "structure", "required": [ "destinationName", "accessPolicy" ], "members": { "destinationName": {}, "accessPolicy": {} } } }, "PutLogEvents": { "input": { "type": "structure", "required": [ "logGroupName", "logStreamName", "logEvents" ], "members": { "logGroupName": {}, "logStreamName": {}, "logEvents": { "type": "list", "member": { "type": "structure", "required": [ "timestamp", "message" ], "members": { "timestamp": { "type": "long" }, "message": {} } } }, "sequenceToken": {} } }, "output": { "type": "structure", "members": { "nextSequenceToken": {}, "rejectedLogEventsInfo": { "type": "structure", "members": { "tooNewLogEventStartIndex": { "type": "integer" }, "tooOldLogEventEndIndex": { "type": "integer" }, "expiredLogEventEndIndex": { "type": "integer" } } } } } }, "PutMetricFilter": { "input": { "type": "structure", "required": [ "logGroupName", "filterName", "filterPattern", "metricTransformations" ], "members": { "logGroupName": {}, "filterName": {}, "filterPattern": {}, "metricTransformations": { "shape": "S1m" } } } }, "PutRetentionPolicy": { "input": { "type": "structure", "required": [ "logGroupName", "retentionInDays" ], "members": { "logGroupName": {}, "retentionInDays": { "type": "integer" } } } }, "PutSubscriptionFilter": { "input": { "type": "structure", "required": [ "logGroupName", "filterName", "filterPattern", "destinationArn" ], "members": { "logGroupName": {}, "filterName": {}, "filterPattern": {}, "destinationArn": {}, "roleArn": {} } } }, "TestMetricFilter": { "input": { "type": "structure", "required": [ "filterPattern", "logEventMessages" ], "members": { "filterPattern": {}, "logEventMessages": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "matches": { "type": "list", "member": { "type": "structure", "members": { "eventNumber": { "type": "long" }, "eventMessage": {}, "extractedValues": { "type": "map", "key": {}, "value": {} } } } } } } } }, "shapes": { "Sq": { "type": "structure", "members": { "destinationName": {}, "targetArn": {}, "roleArn": {}, "accessPolicy": {}, "arn": {}, "creationTime": { "type": "long" } } }, "S1m": { "type": "list", "member": { "type": "structure", "required": [ "metricName", "metricNamespace", "metricValue" ], "members": { "metricName": {}, "metricNamespace": {}, "metricValue": {}, "defaultValue": { "type": "double" } } } } } } },{}],89:[function(require,module,exports){ module.exports={ "pagination": { "DescribeDestinations": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "destinations" }, "DescribeLogGroups": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "logGroups" }, "DescribeLogStreams": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "logStreams" }, "DescribeMetricFilters": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "metricFilters" }, "DescribeSubscriptionFilters": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": "subscriptionFilters" }, "FilterLogEvents": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "limit", "result_key": [ "events", "searchedLogStreams" ] }, "GetLogEvents": { "input_token": "nextToken", "output_token": "nextForwardToken", "limit_key": "limit", "result_key": "events" } } } },{}],90:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-12-12", "endpointPrefix": "machinelearning", "jsonVersion": "1.1", "serviceFullName": "Amazon Machine Learning", "signatureVersion": "v4", "targetPrefix": "AmazonML_20141212", "protocol": "json" }, "operations": { "AddTags": { "input": { "type": "structure", "required": [ "Tags", "ResourceId", "ResourceType" ], "members": { "Tags": { "shape": "S2" }, "ResourceId": {}, "ResourceType": {} } }, "output": { "type": "structure", "members": { "ResourceId": {}, "ResourceType": {} } } }, "CreateBatchPrediction": { "input": { "type": "structure", "required": [ "BatchPredictionId", "MLModelId", "BatchPredictionDataSourceId", "OutputUri" ], "members": { "BatchPredictionId": {}, "BatchPredictionName": {}, "MLModelId": {}, "BatchPredictionDataSourceId": {}, "OutputUri": {} } }, "output": { "type": "structure", "members": { "BatchPredictionId": {} } } }, "CreateDataSourceFromRDS": { "input": { "type": "structure", "required": [ "DataSourceId", "RDSData", "RoleARN" ], "members": { "DataSourceId": {}, "DataSourceName": {}, "RDSData": { "type": "structure", "required": [ "DatabaseInformation", "SelectSqlQuery", "DatabaseCredentials", "S3StagingLocation", "ResourceRole", "ServiceRole", "SubnetId", "SecurityGroupIds" ], "members": { "DatabaseInformation": { "shape": "Sf" }, "SelectSqlQuery": {}, "DatabaseCredentials": { "type": "structure", "required": [ "Username", "Password" ], "members": { "Username": {}, "Password": {} } }, "S3StagingLocation": {}, "DataRearrangement": {}, "DataSchema": {}, "DataSchemaUri": {}, "ResourceRole": {}, "ServiceRole": {}, "SubnetId": {}, "SecurityGroupIds": { "type": "list", "member": {} } } }, "RoleARN": {}, "ComputeStatistics": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "DataSourceId": {} } } }, "CreateDataSourceFromRedshift": { "input": { "type": "structure", "required": [ "DataSourceId", "DataSpec", "RoleARN" ], "members": { "DataSourceId": {}, "DataSourceName": {}, "DataSpec": { "type": "structure", "required": [ "DatabaseInformation", "SelectSqlQuery", "DatabaseCredentials", "S3StagingLocation" ], "members": { "DatabaseInformation": { "shape": "Sy" }, "SelectSqlQuery": {}, "DatabaseCredentials": { "type": "structure", "required": [ "Username", "Password" ], "members": { "Username": {}, "Password": {} } }, "S3StagingLocation": {}, "DataRearrangement": {}, "DataSchema": {}, "DataSchemaUri": {} } }, "RoleARN": {}, "ComputeStatistics": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "DataSourceId": {} } } }, "CreateDataSourceFromS3": { "input": { "type": "structure", "required": [ "DataSourceId", "DataSpec" ], "members": { "DataSourceId": {}, "DataSourceName": {}, "DataSpec": { "type": "structure", "required": [ "DataLocationS3" ], "members": { "DataLocationS3": {}, "DataRearrangement": {}, "DataSchema": {}, "DataSchemaLocationS3": {} } }, "ComputeStatistics": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "DataSourceId": {} } } }, "CreateEvaluation": { "input": { "type": "structure", "required": [ "EvaluationId", "MLModelId", "EvaluationDataSourceId" ], "members": { "EvaluationId": {}, "EvaluationName": {}, "MLModelId": {}, "EvaluationDataSourceId": {} } }, "output": { "type": "structure", "members": { "EvaluationId": {} } } }, "CreateMLModel": { "input": { "type": "structure", "required": [ "MLModelId", "MLModelType", "TrainingDataSourceId" ], "members": { "MLModelId": {}, "MLModelName": {}, "MLModelType": {}, "Parameters": { "shape": "S1d" }, "TrainingDataSourceId": {}, "Recipe": {}, "RecipeUri": {} } }, "output": { "type": "structure", "members": { "MLModelId": {} } } }, "CreateRealtimeEndpoint": { "input": { "type": "structure", "required": [ "MLModelId" ], "members": { "MLModelId": {} } }, "output": { "type": "structure", "members": { "MLModelId": {}, "RealtimeEndpointInfo": { "shape": "S1j" } } } }, "DeleteBatchPrediction": { "input": { "type": "structure", "required": [ "BatchPredictionId" ], "members": { "BatchPredictionId": {} } }, "output": { "type": "structure", "members": { "BatchPredictionId": {} } } }, "DeleteDataSource": { "input": { "type": "structure", "required": [ "DataSourceId" ], "members": { "DataSourceId": {} } }, "output": { "type": "structure", "members": { "DataSourceId": {} } } }, "DeleteEvaluation": { "input": { "type": "structure", "required": [ "EvaluationId" ], "members": { "EvaluationId": {} } }, "output": { "type": "structure", "members": { "EvaluationId": {} } } }, "DeleteMLModel": { "input": { "type": "structure", "required": [ "MLModelId" ], "members": { "MLModelId": {} } }, "output": { "type": "structure", "members": { "MLModelId": {} } } }, "DeleteRealtimeEndpoint": { "input": { "type": "structure", "required": [ "MLModelId" ], "members": { "MLModelId": {} } }, "output": { "type": "structure", "members": { "MLModelId": {}, "RealtimeEndpointInfo": { "shape": "S1j" } } } }, "DeleteTags": { "input": { "type": "structure", "required": [ "TagKeys", "ResourceId", "ResourceType" ], "members": { "TagKeys": { "type": "list", "member": {} }, "ResourceId": {}, "ResourceType": {} } }, "output": { "type": "structure", "members": { "ResourceId": {}, "ResourceType": {} } } }, "DescribeBatchPredictions": { "input": { "type": "structure", "members": { "FilterVariable": {}, "EQ": {}, "GT": {}, "LT": {}, "GE": {}, "LE": {}, "NE": {}, "Prefix": {}, "SortOrder": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Results": { "type": "list", "member": { "type": "structure", "members": { "BatchPredictionId": {}, "MLModelId": {}, "BatchPredictionDataSourceId": {}, "InputDataLocationS3": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "OutputUri": {}, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" }, "TotalRecordCount": { "type": "long" }, "InvalidRecordCount": { "type": "long" } } } }, "NextToken": {} } } }, "DescribeDataSources": { "input": { "type": "structure", "members": { "FilterVariable": {}, "EQ": {}, "GT": {}, "LT": {}, "GE": {}, "LE": {}, "NE": {}, "Prefix": {}, "SortOrder": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Results": { "type": "list", "member": { "type": "structure", "members": { "DataSourceId": {}, "DataLocationS3": {}, "DataRearrangement": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "DataSizeInBytes": { "type": "long" }, "NumberOfFiles": { "type": "long" }, "Name": {}, "Status": {}, "Message": {}, "RedshiftMetadata": { "shape": "S2i" }, "RDSMetadata": { "shape": "S2j" }, "RoleARN": {}, "ComputeStatistics": { "type": "boolean" }, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeEvaluations": { "input": { "type": "structure", "members": { "FilterVariable": {}, "EQ": {}, "GT": {}, "LT": {}, "GE": {}, "LE": {}, "NE": {}, "Prefix": {}, "SortOrder": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Results": { "type": "list", "member": { "type": "structure", "members": { "EvaluationId": {}, "MLModelId": {}, "EvaluationDataSourceId": {}, "InputDataLocationS3": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "PerformanceMetrics": { "shape": "S2q" }, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeMLModels": { "input": { "type": "structure", "members": { "FilterVariable": {}, "EQ": {}, "GT": {}, "LT": {}, "GE": {}, "LE": {}, "NE": {}, "Prefix": {}, "SortOrder": {}, "NextToken": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Results": { "type": "list", "member": { "type": "structure", "members": { "MLModelId": {}, "TrainingDataSourceId": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "SizeInBytes": { "type": "long" }, "EndpointInfo": { "shape": "S1j" }, "TrainingParameters": { "shape": "S1d" }, "InputDataLocationS3": {}, "Algorithm": {}, "MLModelType": {}, "ScoreThreshold": { "type": "float" }, "ScoreThresholdLastUpdatedAt": { "type": "timestamp" }, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeTags": { "input": { "type": "structure", "required": [ "ResourceId", "ResourceType" ], "members": { "ResourceId": {}, "ResourceType": {} } }, "output": { "type": "structure", "members": { "ResourceId": {}, "ResourceType": {}, "Tags": { "shape": "S2" } } } }, "GetBatchPrediction": { "input": { "type": "structure", "required": [ "BatchPredictionId" ], "members": { "BatchPredictionId": {} } }, "output": { "type": "structure", "members": { "BatchPredictionId": {}, "MLModelId": {}, "BatchPredictionDataSourceId": {}, "InputDataLocationS3": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "OutputUri": {}, "LogUri": {}, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" }, "TotalRecordCount": { "type": "long" }, "InvalidRecordCount": { "type": "long" } } } }, "GetDataSource": { "input": { "type": "structure", "required": [ "DataSourceId" ], "members": { "DataSourceId": {}, "Verbose": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "DataSourceId": {}, "DataLocationS3": {}, "DataRearrangement": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "DataSizeInBytes": { "type": "long" }, "NumberOfFiles": { "type": "long" }, "Name": {}, "Status": {}, "LogUri": {}, "Message": {}, "RedshiftMetadata": { "shape": "S2i" }, "RDSMetadata": { "shape": "S2j" }, "RoleARN": {}, "ComputeStatistics": { "type": "boolean" }, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" }, "DataSourceSchema": {} } } }, "GetEvaluation": { "input": { "type": "structure", "required": [ "EvaluationId" ], "members": { "EvaluationId": {} } }, "output": { "type": "structure", "members": { "EvaluationId": {}, "MLModelId": {}, "EvaluationDataSourceId": {}, "InputDataLocationS3": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "PerformanceMetrics": { "shape": "S2q" }, "LogUri": {}, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" } } } }, "GetMLModel": { "input": { "type": "structure", "required": [ "MLModelId" ], "members": { "MLModelId": {}, "Verbose": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "MLModelId": {}, "TrainingDataSourceId": {}, "CreatedByIamUser": {}, "CreatedAt": { "type": "timestamp" }, "LastUpdatedAt": { "type": "timestamp" }, "Name": {}, "Status": {}, "SizeInBytes": { "type": "long" }, "EndpointInfo": { "shape": "S1j" }, "TrainingParameters": { "shape": "S1d" }, "InputDataLocationS3": {}, "MLModelType": {}, "ScoreThreshold": { "type": "float" }, "ScoreThresholdLastUpdatedAt": { "type": "timestamp" }, "LogUri": {}, "Message": {}, "ComputeTime": { "type": "long" }, "FinishedAt": { "type": "timestamp" }, "StartedAt": { "type": "timestamp" }, "Recipe": {}, "Schema": {} } } }, "Predict": { "input": { "type": "structure", "required": [ "MLModelId", "Record", "PredictEndpoint" ], "members": { "MLModelId": {}, "Record": { "type": "map", "key": {}, "value": {} }, "PredictEndpoint": {} } }, "output": { "type": "structure", "members": { "Prediction": { "type": "structure", "members": { "predictedLabel": {}, "predictedValue": { "type": "float" }, "predictedScores": { "type": "map", "key": {}, "value": { "type": "float" } }, "details": { "type": "map", "key": {}, "value": {} } } } } } }, "UpdateBatchPrediction": { "input": { "type": "structure", "required": [ "BatchPredictionId", "BatchPredictionName" ], "members": { "BatchPredictionId": {}, "BatchPredictionName": {} } }, "output": { "type": "structure", "members": { "BatchPredictionId": {} } } }, "UpdateDataSource": { "input": { "type": "structure", "required": [ "DataSourceId", "DataSourceName" ], "members": { "DataSourceId": {}, "DataSourceName": {} } }, "output": { "type": "structure", "members": { "DataSourceId": {} } } }, "UpdateEvaluation": { "input": { "type": "structure", "required": [ "EvaluationId", "EvaluationName" ], "members": { "EvaluationId": {}, "EvaluationName": {} } }, "output": { "type": "structure", "members": { "EvaluationId": {} } } }, "UpdateMLModel": { "input": { "type": "structure", "required": [ "MLModelId" ], "members": { "MLModelId": {}, "MLModelName": {}, "ScoreThreshold": { "type": "float" } } }, "output": { "type": "structure", "members": { "MLModelId": {} } } } }, "shapes": { "S2": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Sf": { "type": "structure", "required": [ "InstanceIdentifier", "DatabaseName" ], "members": { "InstanceIdentifier": {}, "DatabaseName": {} } }, "Sy": { "type": "structure", "required": [ "DatabaseName", "ClusterIdentifier" ], "members": { "DatabaseName": {}, "ClusterIdentifier": {} } }, "S1d": { "type": "map", "key": {}, "value": {} }, "S1j": { "type": "structure", "members": { "PeakRequestsPerSecond": { "type": "integer" }, "CreatedAt": { "type": "timestamp" }, "EndpointUrl": {}, "EndpointStatus": {} } }, "S2i": { "type": "structure", "members": { "RedshiftDatabase": { "shape": "Sy" }, "DatabaseUserName": {}, "SelectSqlQuery": {} } }, "S2j": { "type": "structure", "members": { "Database": { "shape": "Sf" }, "DatabaseUserName": {}, "SelectSqlQuery": {}, "ResourceRole": {}, "ServiceRole": {}, "DataPipelineId": {} } }, "S2q": { "type": "structure", "members": { "Properties": { "type": "map", "key": {}, "value": {} } } } }, "examples": {} } },{}],91:[function(require,module,exports){ module.exports={ "pagination": { "DescribeBatchPredictions": { "limit_key": "Limit", "output_token": "NextToken", "input_token": "NextToken", "result_key": "Results" }, "DescribeDataSources": { "limit_key": "Limit", "output_token": "NextToken", "input_token": "NextToken", "result_key": "Results" }, "DescribeEvaluations": { "limit_key": "Limit", "output_token": "NextToken", "input_token": "NextToken", "result_key": "Results" }, "DescribeMLModels": { "limit_key": "Limit", "output_token": "NextToken", "input_token": "NextToken", "result_key": "Results" } } } },{}],92:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "DataSourceAvailable": { "delay": 30, "operation": "DescribeDataSources", "maxAttempts": 60, "acceptors": [ { "expected": "COMPLETED", "matcher": "pathAll", "state": "success", "argument": "Results[].Status" }, { "expected": "FAILED", "matcher": "pathAny", "state": "failure", "argument": "Results[].Status" } ] }, "MLModelAvailable": { "delay": 30, "operation": "DescribeMLModels", "maxAttempts": 60, "acceptors": [ { "expected": "COMPLETED", "matcher": "pathAll", "state": "success", "argument": "Results[].Status" }, { "expected": "FAILED", "matcher": "pathAny", "state": "failure", "argument": "Results[].Status" } ] }, "EvaluationAvailable": { "delay": 30, "operation": "DescribeEvaluations", "maxAttempts": 60, "acceptors": [ { "expected": "COMPLETED", "matcher": "pathAll", "state": "success", "argument": "Results[].Status" }, { "expected": "FAILED", "matcher": "pathAny", "state": "failure", "argument": "Results[].Status" } ] }, "BatchPredictionAvailable": { "delay": 30, "operation": "DescribeBatchPredictions", "maxAttempts": 60, "acceptors": [ { "expected": "COMPLETED", "matcher": "pathAll", "state": "success", "argument": "Results[].Status" }, { "expected": "FAILED", "matcher": "pathAny", "state": "failure", "argument": "Results[].Status" } ] } } } },{}],93:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-07-01", "endpointPrefix": "marketplacecommerceanalytics", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS Marketplace Commerce Analytics", "signatureVersion": "v4", "signingName": "marketplacecommerceanalytics", "targetPrefix": "MarketplaceCommerceAnalytics20150701" }, "operations": { "GenerateDataSet": { "input": { "type": "structure", "required": [ "dataSetType", "dataSetPublicationDate", "roleNameArn", "destinationS3BucketName", "snsTopicArn" ], "members": { "dataSetType": {}, "dataSetPublicationDate": { "type": "timestamp" }, "roleNameArn": {}, "destinationS3BucketName": {}, "destinationS3Prefix": {}, "snsTopicArn": {}, "customerDefinedValues": { "shape": "S8" } } }, "output": { "type": "structure", "members": { "dataSetRequestId": {} } } }, "StartSupportDataExport": { "input": { "type": "structure", "required": [ "dataSetType", "fromDate", "roleNameArn", "destinationS3BucketName", "snsTopicArn" ], "members": { "dataSetType": {}, "fromDate": { "type": "timestamp" }, "roleNameArn": {}, "destinationS3BucketName": {}, "destinationS3Prefix": {}, "snsTopicArn": {}, "customerDefinedValues": { "shape": "S8" } } }, "output": { "type": "structure", "members": { "dataSetRequestId": {} } } } }, "shapes": { "S8": { "type": "map", "key": {}, "value": {} } } } },{}],94:[function(require,module,exports){ module.exports={ "acm": { "name": "ACM", "cors": true }, "apigateway": { "name": "APIGateway", "cors": true }, "applicationautoscaling": { "prefix": "application-autoscaling", "name": "ApplicationAutoScaling", "cors": true }, "autoscaling": { "name": "AutoScaling", "cors": true }, "cloudformation": { "name": "CloudFormation", "cors": true }, "cloudfront": { "name": "CloudFront", "versions": ["2013-05-12*", "2013-11-11*", "2014-05-31*", "2014-10-21*", "2014-11-06*", "2015-04-17*", "2015-07-27*", "2015-09-17*", "2016-01-13*", "2016-01-28*", "2016-08-01*", "2016-08-20*"], "cors": true }, "cloudhsm": { "name": "CloudHSM", "cors": true }, "cloudsearch": { "name": "CloudSearch" }, "cloudsearchdomain": { "name": "CloudSearchDomain" }, "cloudtrail": { "name": "CloudTrail", "cors": true }, "cloudwatch": { "prefix": "monitoring", "name": "CloudWatch", "cors": true }, "cloudwatchevents": { "prefix": "events", "name": "CloudWatchEvents", "versions": ["2014-02-03*"], "cors": true }, "cloudwatchlogs": { "prefix": "logs", "name": "CloudWatchLogs", "cors": true }, "codecommit": { "name": "CodeCommit", "cors": true }, "codedeploy": { "name": "CodeDeploy", "cors": true }, "codepipeline": { "name": "CodePipeline", "cors": true }, "cognitoidentity": { "prefix": "cognito-identity", "name": "CognitoIdentity", "cors": true }, "cognitoidentityserviceprovider": { "prefix": "cognito-idp", "name": "CognitoIdentityServiceProvider", "cors": true }, "cognitosync": { "prefix": "cognito-sync", "name": "CognitoSync", "cors": true }, "configservice": { "prefix": "config", "name": "ConfigService", "cors": true }, "datapipeline": { "name": "DataPipeline" }, "devicefarm": { "name": "DeviceFarm", "cors": true }, "directconnect": { "name": "DirectConnect", "cors": true }, "directoryservice": { "prefix": "ds", "name": "DirectoryService" }, "discovery": { "name": "Discovery" }, "dms": { "name": "DMS" }, "dynamodb": { "name": "DynamoDB", "cors": true }, "dynamodbstreams": { "prefix": "streams.dynamodb", "name": "DynamoDBStreams", "cors": true }, "ec2": { "name": "EC2", "versions": ["2013-06-15*", "2013-10-15*", "2014-02-01*", "2014-05-01*", "2014-06-15*", "2014-09-01*", "2014-10-01*", "2015-03-01*", "2015-04-15*", "2015-10-01*", "2016-04-01*"], "cors": true }, "ecr": { "name": "ECR", "cors": true }, "ecs": { "name": "ECS", "cors": true }, "efs": { "prefix": "elasticfilesystem", "name": "EFS" }, "elasticache": { "name": "ElastiCache", "versions": ["2012-11-15*", "2014-03-24*", "2014-07-15*", "2014-09-30*"], "cors": true }, "elasticbeanstalk": { "name": "ElasticBeanstalk", "cors": true }, "elb": { "prefix": "elasticloadbalancing", "name": "ELB", "cors": true }, "elbv2": { "prefix": "elasticloadbalancingv2", "name": "ELBv2", "cors": true }, "emr": { "prefix": "elasticmapreduce", "name": "EMR", "cors": true }, "es": { "name": "ES" }, "elastictranscoder": { "name": "ElasticTranscoder", "cors": true }, "firehose": { "name": "Firehose", "cors": true }, "gamelift": { "name": "GameLift", "cors": true }, "glacier": { "name": "Glacier" }, "iam": { "name": "IAM" }, "importexport": { "name": "ImportExport" }, "inspector": { "name": "Inspector", "versions": ["2015-08-18*"], "cors": true }, "iot": { "name": "Iot", "cors": true }, "iotdata": { "prefix": "iot-data", "name": "IotData", "cors": true }, "kinesis": { "name": "Kinesis", "cors": true }, "kinesisanalytics": { "name": "KinesisAnalytics" }, "kms": { "name": "KMS", "cors": true }, "lambda": { "name": "Lambda", "cors": true }, "machinelearning": { "name": "MachineLearning", "cors": true }, "marketplacecommerceanalytics": { "name": "MarketplaceCommerceAnalytics", "cors": true }, "marketplacemetering": { "prefix": "meteringmarketplace", "name": "MarketplaceMetering" }, "mobileanalytics": { "name": "MobileAnalytics", "cors": true }, "opsworks": { "name": "OpsWorks", "cors": true }, "rds": { "name": "RDS", "versions": ["2014-09-01*"], "cors": true }, "redshift": { "name": "Redshift", "cors": true }, "route53": { "name": "Route53", "cors": true }, "route53domains": { "name": "Route53Domains", "cors": true }, "s3": { "name": "S3", "dualstackAvailable": true, "cors": true }, "servicecatalog": { "name": "ServiceCatalog", "cors": true }, "ses": { "prefix": "email", "name": "SES", "cors": true }, "simpledb": { "prefix": "sdb", "name": "SimpleDB" }, "snowball": { "name": "Snowball" }, "sns": { "name": "SNS", "cors": true }, "sqs": { "name": "SQS", "cors": true }, "ssm": { "name": "SSM", "cors": true }, "storagegateway": { "name": "StorageGateway", "cors": true }, "sts": { "name": "STS", "cors": true }, "support": { "name": "Support" }, "swf": { "name": "SWF" }, "waf": { "name": "WAF", "cors": true }, "workspaces": { "name": "WorkSpaces" } } },{}],95:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-06-05", "endpointPrefix": "mobileanalytics", "serviceFullName": "Amazon Mobile Analytics", "signatureVersion": "v4", "protocol": "rest-json" }, "operations": { "PutEvents": { "http": { "requestUri": "/2014-06-05/events", "responseCode": 202 }, "input": { "type": "structure", "required": [ "events", "clientContext" ], "members": { "events": { "type": "list", "member": { "type": "structure", "required": [ "eventType", "timestamp" ], "members": { "eventType": {}, "timestamp": {}, "session": { "type": "structure", "members": { "id": {}, "duration": { "type": "long" }, "startTimestamp": {}, "stopTimestamp": {} } }, "version": {}, "attributes": { "type": "map", "key": {}, "value": {} }, "metrics": { "type": "map", "key": {}, "value": { "type": "double" } } } } }, "clientContext": { "location": "header", "locationName": "x-amz-Client-Context" }, "clientContextEncoding": { "location": "header", "locationName": "x-amz-Client-Context-Encoding" } } } } }, "shapes": {} } },{}],96:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2010-08-01", "endpointPrefix": "monitoring", "protocol": "query", "serviceAbbreviation": "CloudWatch", "serviceFullName": "Amazon CloudWatch", "signatureVersion": "v4", "xmlNamespace": "http://monitoring.amazonaws.com/doc/2010-08-01/" }, "operations": { "DeleteAlarms": { "input": { "type": "structure", "required": [ "AlarmNames" ], "members": { "AlarmNames": { "shape": "S2" } } } }, "DescribeAlarmHistory": { "input": { "type": "structure", "members": { "AlarmName": {}, "HistoryItemType": {}, "StartDate": { "type": "timestamp" }, "EndDate": { "type": "timestamp" }, "MaxRecords": { "type": "integer" }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeAlarmHistoryResult", "type": "structure", "members": { "AlarmHistoryItems": { "type": "list", "member": { "type": "structure", "members": { "AlarmName": {}, "Timestamp": { "type": "timestamp" }, "HistoryItemType": {}, "HistorySummary": {}, "HistoryData": {} } } }, "NextToken": {} } } }, "DescribeAlarms": { "input": { "type": "structure", "members": { "AlarmNames": { "shape": "S2" }, "AlarmNamePrefix": {}, "StateValue": {}, "ActionPrefix": {}, "MaxRecords": { "type": "integer" }, "NextToken": {} } }, "output": { "resultWrapper": "DescribeAlarmsResult", "type": "structure", "members": { "MetricAlarms": { "shape": "Sj" }, "NextToken": {} } } }, "DescribeAlarmsForMetric": { "input": { "type": "structure", "required": [ "MetricName", "Namespace" ], "members": { "MetricName": {}, "Namespace": {}, "Statistic": {}, "Dimensions": { "shape": "Sv" }, "Period": { "type": "integer" }, "Unit": {} } }, "output": { "resultWrapper": "DescribeAlarmsForMetricResult", "type": "structure", "members": { "MetricAlarms": { "shape": "Sj" } } } }, "DisableAlarmActions": { "input": { "type": "structure", "required": [ "AlarmNames" ], "members": { "AlarmNames": { "shape": "S2" } } } }, "EnableAlarmActions": { "input": { "type": "structure", "required": [ "AlarmNames" ], "members": { "AlarmNames": { "shape": "S2" } } } }, "GetMetricStatistics": { "input": { "type": "structure", "required": [ "Namespace", "MetricName", "StartTime", "EndTime", "Period", "Statistics" ], "members": { "Namespace": {}, "MetricName": {}, "Dimensions": { "shape": "Sv" }, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Period": { "type": "integer" }, "Statistics": { "type": "list", "member": {} }, "Unit": {} } }, "output": { "resultWrapper": "GetMetricStatisticsResult", "type": "structure", "members": { "Label": {}, "Datapoints": { "type": "list", "member": { "type": "structure", "members": { "Timestamp": { "type": "timestamp" }, "SampleCount": { "type": "double" }, "Average": { "type": "double" }, "Sum": { "type": "double" }, "Minimum": { "type": "double" }, "Maximum": { "type": "double" }, "Unit": {} }, "xmlOrder": [ "Timestamp", "SampleCount", "Average", "Sum", "Minimum", "Maximum", "Unit" ] } } } } }, "ListMetrics": { "input": { "type": "structure", "members": { "Namespace": {}, "MetricName": {}, "Dimensions": { "type": "list", "member": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "Value": {} } } }, "NextToken": {} } }, "output": { "resultWrapper": "ListMetricsResult", "type": "structure", "members": { "Metrics": { "type": "list", "member": { "type": "structure", "members": { "Namespace": {}, "MetricName": {}, "Dimensions": { "shape": "Sv" } }, "xmlOrder": [ "Namespace", "MetricName", "Dimensions" ] } }, "NextToken": {} }, "xmlOrder": [ "Metrics", "NextToken" ] } }, "PutMetricAlarm": { "input": { "type": "structure", "required": [ "AlarmName", "MetricName", "Namespace", "Statistic", "Period", "EvaluationPeriods", "Threshold", "ComparisonOperator" ], "members": { "AlarmName": {}, "AlarmDescription": {}, "ActionsEnabled": { "type": "boolean" }, "OKActions": { "shape": "So" }, "AlarmActions": { "shape": "So" }, "InsufficientDataActions": { "shape": "So" }, "MetricName": {}, "Namespace": {}, "Statistic": {}, "Dimensions": { "shape": "Sv" }, "Period": { "type": "integer" }, "Unit": {}, "EvaluationPeriods": { "type": "integer" }, "Threshold": { "type": "double" }, "ComparisonOperator": {} } } }, "PutMetricData": { "input": { "type": "structure", "required": [ "Namespace", "MetricData" ], "members": { "Namespace": {}, "MetricData": { "type": "list", "member": { "type": "structure", "required": [ "MetricName" ], "members": { "MetricName": {}, "Dimensions": { "shape": "Sv" }, "Timestamp": { "type": "timestamp" }, "Value": { "type": "double" }, "StatisticValues": { "type": "structure", "required": [ "SampleCount", "Sum", "Minimum", "Maximum" ], "members": { "SampleCount": { "type": "double" }, "Sum": { "type": "double" }, "Minimum": { "type": "double" }, "Maximum": { "type": "double" } } }, "Unit": {} } } } } } }, "SetAlarmState": { "input": { "type": "structure", "required": [ "AlarmName", "StateValue", "StateReason" ], "members": { "AlarmName": {}, "StateValue": {}, "StateReason": {}, "StateReasonData": {} } } } }, "shapes": { "S2": { "type": "list", "member": {} }, "Sj": { "type": "list", "member": { "type": "structure", "members": { "AlarmName": {}, "AlarmArn": {}, "AlarmDescription": {}, "AlarmConfigurationUpdatedTimestamp": { "type": "timestamp" }, "ActionsEnabled": { "type": "boolean" }, "OKActions": { "shape": "So" }, "AlarmActions": { "shape": "So" }, "InsufficientDataActions": { "shape": "So" }, "StateValue": {}, "StateReason": {}, "StateReasonData": {}, "StateUpdatedTimestamp": { "type": "timestamp" }, "MetricName": {}, "Namespace": {}, "Statistic": {}, "Dimensions": { "shape": "Sv" }, "Period": { "type": "integer" }, "Unit": {}, "EvaluationPeriods": { "type": "integer" }, "Threshold": { "type": "double" }, "ComparisonOperator": {} }, "xmlOrder": [ "AlarmName", "AlarmArn", "AlarmDescription", "AlarmConfigurationUpdatedTimestamp", "ActionsEnabled", "OKActions", "AlarmActions", "InsufficientDataActions", "StateValue", "StateReason", "StateReasonData", "StateUpdatedTimestamp", "MetricName", "Namespace", "Statistic", "Dimensions", "Period", "Unit", "EvaluationPeriods", "Threshold", "ComparisonOperator" ] } }, "So": { "type": "list", "member": {} }, "Sv": { "type": "list", "member": { "type": "structure", "required": [ "Name", "Value" ], "members": { "Name": {}, "Value": {} }, "xmlOrder": [ "Name", "Value" ] } } } } },{}],97:[function(require,module,exports){ module.exports={ "pagination": { "DescribeAlarmHistory": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "AlarmHistoryItems" }, "DescribeAlarms": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxRecords", "result_key": "MetricAlarms" }, "DescribeAlarmsForMetric": { "result_key": "MetricAlarms" }, "ListMetrics": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Metrics" } } } },{}],98:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "AlarmExists": { "delay": 5, "maxAttempts": 40, "operation": "DescribeAlarms", "acceptors": [ { "matcher": "path", "expected": true, "argument": "length(MetricAlarms[]) > `0`", "state": "success" } ] } } } },{}],99:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-02-18", "endpointPrefix": "opsworks", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS OpsWorks", "signatureVersion": "v4", "targetPrefix": "OpsWorks_20130218" }, "operations": { "AssignInstance": { "input": { "type": "structure", "required": [ "InstanceId", "LayerIds" ], "members": { "InstanceId": {}, "LayerIds": { "shape": "S3" } } } }, "AssignVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "VolumeId": {}, "InstanceId": {} } } }, "AssociateElasticIp": { "input": { "type": "structure", "required": [ "ElasticIp" ], "members": { "ElasticIp": {}, "InstanceId": {} } } }, "AttachElasticLoadBalancer": { "input": { "type": "structure", "required": [ "ElasticLoadBalancerName", "LayerId" ], "members": { "ElasticLoadBalancerName": {}, "LayerId": {} } } }, "CloneStack": { "input": { "type": "structure", "required": [ "SourceStackId", "ServiceRoleArn" ], "members": { "SourceStackId": {}, "Name": {}, "Region": {}, "VpcId": {}, "Attributes": { "shape": "S8" }, "ServiceRoleArn": {}, "DefaultInstanceProfileArn": {}, "DefaultOs": {}, "HostnameTheme": {}, "DefaultAvailabilityZone": {}, "DefaultSubnetId": {}, "CustomJson": {}, "ConfigurationManager": { "shape": "Sa" }, "ChefConfiguration": { "shape": "Sb" }, "UseCustomCookbooks": { "type": "boolean" }, "UseOpsworksSecurityGroups": { "type": "boolean" }, "CustomCookbooksSource": { "shape": "Sd" }, "DefaultSshKeyName": {}, "ClonePermissions": { "type": "boolean" }, "CloneAppIds": { "shape": "S3" }, "DefaultRootDeviceType": {}, "AgentVersion": {} } }, "output": { "type": "structure", "members": { "StackId": {} } } }, "CreateApp": { "input": { "type": "structure", "required": [ "StackId", "Name", "Type" ], "members": { "StackId": {}, "Shortname": {}, "Name": {}, "Description": {}, "DataSources": { "shape": "Si" }, "Type": {}, "AppSource": { "shape": "Sd" }, "Domains": { "shape": "S3" }, "EnableSsl": { "type": "boolean" }, "SslConfiguration": { "shape": "Sl" }, "Attributes": { "shape": "Sm" }, "Environment": { "shape": "So" } } }, "output": { "type": "structure", "members": { "AppId": {} } } }, "CreateDeployment": { "input": { "type": "structure", "required": [ "StackId", "Command" ], "members": { "StackId": {}, "AppId": {}, "InstanceIds": { "shape": "S3" }, "LayerIds": { "shape": "S3" }, "Command": { "shape": "Ss" }, "Comment": {}, "CustomJson": {} } }, "output": { "type": "structure", "members": { "DeploymentId": {} } } }, "CreateInstance": { "input": { "type": "structure", "required": [ "StackId", "LayerIds", "InstanceType" ], "members": { "StackId": {}, "LayerIds": { "shape": "S3" }, "InstanceType": {}, "AutoScalingType": {}, "Hostname": {}, "Os": {}, "AmiId": {}, "SshKeyName": {}, "AvailabilityZone": {}, "VirtualizationType": {}, "SubnetId": {}, "Architecture": {}, "RootDeviceType": {}, "BlockDeviceMappings": { "shape": "Sz" }, "InstallUpdatesOnBoot": { "type": "boolean" }, "EbsOptimized": { "type": "boolean" }, "AgentVersion": {}, "Tenancy": {} } }, "output": { "type": "structure", "members": { "InstanceId": {} } } }, "CreateLayer": { "input": { "type": "structure", "required": [ "StackId", "Type", "Name", "Shortname" ], "members": { "StackId": {}, "Type": {}, "Name": {}, "Shortname": {}, "Attributes": { "shape": "S17" }, "CustomInstanceProfileArn": {}, "CustomJson": {}, "CustomSecurityGroupIds": { "shape": "S3" }, "Packages": { "shape": "S3" }, "VolumeConfigurations": { "shape": "S19" }, "EnableAutoHealing": { "type": "boolean" }, "AutoAssignElasticIps": { "type": "boolean" }, "AutoAssignPublicIps": { "type": "boolean" }, "CustomRecipes": { "shape": "S1b" }, "InstallUpdatesOnBoot": { "type": "boolean" }, "UseEbsOptimizedInstances": { "type": "boolean" }, "LifecycleEventConfiguration": { "shape": "S1c" } } }, "output": { "type": "structure", "members": { "LayerId": {} } } }, "CreateStack": { "input": { "type": "structure", "required": [ "Name", "Region", "ServiceRoleArn", "DefaultInstanceProfileArn" ], "members": { "Name": {}, "Region": {}, "VpcId": {}, "Attributes": { "shape": "S8" }, "ServiceRoleArn": {}, "DefaultInstanceProfileArn": {}, "DefaultOs": {}, "HostnameTheme": {}, "DefaultAvailabilityZone": {}, "DefaultSubnetId": {}, "CustomJson": {}, "ConfigurationManager": { "shape": "Sa" }, "ChefConfiguration": { "shape": "Sb" }, "UseCustomCookbooks": { "type": "boolean" }, "UseOpsworksSecurityGroups": { "type": "boolean" }, "CustomCookbooksSource": { "shape": "Sd" }, "DefaultSshKeyName": {}, "DefaultRootDeviceType": {}, "AgentVersion": {} } }, "output": { "type": "structure", "members": { "StackId": {} } } }, "CreateUserProfile": { "input": { "type": "structure", "required": [ "IamUserArn" ], "members": { "IamUserArn": {}, "SshUsername": {}, "SshPublicKey": {}, "AllowSelfManagement": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "IamUserArn": {} } } }, "DeleteApp": { "input": { "type": "structure", "required": [ "AppId" ], "members": { "AppId": {} } } }, "DeleteInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {}, "DeleteElasticIp": { "type": "boolean" }, "DeleteVolumes": { "type": "boolean" } } } }, "DeleteLayer": { "input": { "type": "structure", "required": [ "LayerId" ], "members": { "LayerId": {} } } }, "DeleteStack": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {} } } }, "DeleteUserProfile": { "input": { "type": "structure", "required": [ "IamUserArn" ], "members": { "IamUserArn": {} } } }, "DeregisterEcsCluster": { "input": { "type": "structure", "required": [ "EcsClusterArn" ], "members": { "EcsClusterArn": {} } } }, "DeregisterElasticIp": { "input": { "type": "structure", "required": [ "ElasticIp" ], "members": { "ElasticIp": {} } } }, "DeregisterInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } } }, "DeregisterRdsDbInstance": { "input": { "type": "structure", "required": [ "RdsDbInstanceArn" ], "members": { "RdsDbInstanceArn": {} } } }, "DeregisterVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "VolumeId": {} } } }, "DescribeAgentVersions": { "input": { "type": "structure", "members": { "StackId": {}, "ConfigurationManager": { "shape": "Sa" } } }, "output": { "type": "structure", "members": { "AgentVersions": { "type": "list", "member": { "type": "structure", "members": { "Version": {}, "ConfigurationManager": { "shape": "Sa" } } } } } } }, "DescribeApps": { "input": { "type": "structure", "members": { "StackId": {}, "AppIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Apps": { "type": "list", "member": { "type": "structure", "members": { "AppId": {}, "StackId": {}, "Shortname": {}, "Name": {}, "Description": {}, "DataSources": { "shape": "Si" }, "Type": {}, "AppSource": { "shape": "Sd" }, "Domains": { "shape": "S3" }, "EnableSsl": { "type": "boolean" }, "SslConfiguration": { "shape": "Sl" }, "Attributes": { "shape": "Sm" }, "CreatedAt": {}, "Environment": { "shape": "So" } } } } } } }, "DescribeCommands": { "input": { "type": "structure", "members": { "DeploymentId": {}, "InstanceId": {}, "CommandIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Commands": { "type": "list", "member": { "type": "structure", "members": { "CommandId": {}, "InstanceId": {}, "DeploymentId": {}, "CreatedAt": {}, "AcknowledgedAt": {}, "CompletedAt": {}, "Status": {}, "ExitCode": { "type": "integer" }, "LogUrl": {}, "Type": {} } } } } } }, "DescribeDeployments": { "input": { "type": "structure", "members": { "StackId": {}, "AppId": {}, "DeploymentIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Deployments": { "type": "list", "member": { "type": "structure", "members": { "DeploymentId": {}, "StackId": {}, "AppId": {}, "CreatedAt": {}, "CompletedAt": {}, "Duration": { "type": "integer" }, "IamUserArn": {}, "Comment": {}, "Command": { "shape": "Ss" }, "Status": {}, "CustomJson": {}, "InstanceIds": { "shape": "S3" } } } } } } }, "DescribeEcsClusters": { "input": { "type": "structure", "members": { "EcsClusterArns": { "shape": "S3" }, "StackId": {}, "NextToken": {}, "MaxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "EcsClusters": { "type": "list", "member": { "type": "structure", "members": { "EcsClusterArn": {}, "EcsClusterName": {}, "StackId": {}, "RegisteredAt": {} } } }, "NextToken": {} } } }, "DescribeElasticIps": { "input": { "type": "structure", "members": { "InstanceId": {}, "StackId": {}, "Ips": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "ElasticIps": { "type": "list", "member": { "type": "structure", "members": { "Ip": {}, "Name": {}, "Domain": {}, "Region": {}, "InstanceId": {} } } } } } }, "DescribeElasticLoadBalancers": { "input": { "type": "structure", "members": { "StackId": {}, "LayerIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "ElasticLoadBalancers": { "type": "list", "member": { "type": "structure", "members": { "ElasticLoadBalancerName": {}, "Region": {}, "DnsName": {}, "StackId": {}, "LayerId": {}, "VpcId": {}, "AvailabilityZones": { "shape": "S3" }, "SubnetIds": { "shape": "S3" }, "Ec2InstanceIds": { "shape": "S3" } } } } } } }, "DescribeInstances": { "input": { "type": "structure", "members": { "StackId": {}, "LayerId": {}, "InstanceIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Instances": { "type": "list", "member": { "type": "structure", "members": { "AgentVersion": {}, "AmiId": {}, "Architecture": {}, "AutoScalingType": {}, "AvailabilityZone": {}, "BlockDeviceMappings": { "shape": "Sz" }, "CreatedAt": {}, "EbsOptimized": { "type": "boolean" }, "Ec2InstanceId": {}, "EcsClusterArn": {}, "EcsContainerInstanceArn": {}, "ElasticIp": {}, "Hostname": {}, "InfrastructureClass": {}, "InstallUpdatesOnBoot": { "type": "boolean" }, "InstanceId": {}, "InstanceProfileArn": {}, "InstanceType": {}, "LastServiceErrorId": {}, "LayerIds": { "shape": "S3" }, "Os": {}, "Platform": {}, "PrivateDns": {}, "PrivateIp": {}, "PublicDns": {}, "PublicIp": {}, "RegisteredBy": {}, "ReportedAgentVersion": {}, "ReportedOs": { "type": "structure", "members": { "Family": {}, "Name": {}, "Version": {} } }, "RootDeviceType": {}, "RootDeviceVolumeId": {}, "SecurityGroupIds": { "shape": "S3" }, "SshHostDsaKeyFingerprint": {}, "SshHostRsaKeyFingerprint": {}, "SshKeyName": {}, "StackId": {}, "Status": {}, "SubnetId": {}, "Tenancy": {}, "VirtualizationType": {} } } } } } }, "DescribeLayers": { "input": { "type": "structure", "members": { "StackId": {}, "LayerIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Layers": { "type": "list", "member": { "type": "structure", "members": { "StackId": {}, "LayerId": {}, "Type": {}, "Name": {}, "Shortname": {}, "Attributes": { "shape": "S17" }, "CustomInstanceProfileArn": {}, "CustomJson": {}, "CustomSecurityGroupIds": { "shape": "S3" }, "DefaultSecurityGroupNames": { "shape": "S3" }, "Packages": { "shape": "S3" }, "VolumeConfigurations": { "shape": "S19" }, "EnableAutoHealing": { "type": "boolean" }, "AutoAssignElasticIps": { "type": "boolean" }, "AutoAssignPublicIps": { "type": "boolean" }, "DefaultRecipes": { "shape": "S1b" }, "CustomRecipes": { "shape": "S1b" }, "CreatedAt": {}, "InstallUpdatesOnBoot": { "type": "boolean" }, "UseEbsOptimizedInstances": { "type": "boolean" }, "LifecycleEventConfiguration": { "shape": "S1c" } } } } } } }, "DescribeLoadBasedAutoScaling": { "input": { "type": "structure", "required": [ "LayerIds" ], "members": { "LayerIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "LoadBasedAutoScalingConfigurations": { "type": "list", "member": { "type": "structure", "members": { "LayerId": {}, "Enable": { "type": "boolean" }, "UpScaling": { "shape": "S30" }, "DownScaling": { "shape": "S30" } } } } } } }, "DescribeMyUserProfile": { "output": { "type": "structure", "members": { "UserProfile": { "type": "structure", "members": { "IamUserArn": {}, "Name": {}, "SshUsername": {}, "SshPublicKey": {} } } } } }, "DescribePermissions": { "input": { "type": "structure", "members": { "IamUserArn": {}, "StackId": {} } }, "output": { "type": "structure", "members": { "Permissions": { "type": "list", "member": { "type": "structure", "members": { "StackId": {}, "IamUserArn": {}, "AllowSsh": { "type": "boolean" }, "AllowSudo": { "type": "boolean" }, "Level": {} } } } } } }, "DescribeRaidArrays": { "input": { "type": "structure", "members": { "InstanceId": {}, "StackId": {}, "RaidArrayIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "RaidArrays": { "type": "list", "member": { "type": "structure", "members": { "RaidArrayId": {}, "InstanceId": {}, "Name": {}, "RaidLevel": { "type": "integer" }, "NumberOfDisks": { "type": "integer" }, "Size": { "type": "integer" }, "Device": {}, "MountPoint": {}, "AvailabilityZone": {}, "CreatedAt": {}, "StackId": {}, "VolumeType": {}, "Iops": { "type": "integer" } } } } } } }, "DescribeRdsDbInstances": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {}, "RdsDbInstanceArns": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "RdsDbInstances": { "type": "list", "member": { "type": "structure", "members": { "RdsDbInstanceArn": {}, "DbInstanceIdentifier": {}, "DbUser": {}, "DbPassword": {}, "Region": {}, "Address": {}, "Engine": {}, "StackId": {}, "MissingOnRds": { "type": "boolean" } } } } } } }, "DescribeServiceErrors": { "input": { "type": "structure", "members": { "StackId": {}, "InstanceId": {}, "ServiceErrorIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "ServiceErrors": { "type": "list", "member": { "type": "structure", "members": { "ServiceErrorId": {}, "StackId": {}, "InstanceId": {}, "Type": {}, "Message": {}, "CreatedAt": {} } } } } } }, "DescribeStackProvisioningParameters": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {} } }, "output": { "type": "structure", "members": { "AgentInstallerUrl": {}, "Parameters": { "type": "map", "key": {}, "value": {} } } } }, "DescribeStackSummary": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {} } }, "output": { "type": "structure", "members": { "StackSummary": { "type": "structure", "members": { "StackId": {}, "Name": {}, "Arn": {}, "LayersCount": { "type": "integer" }, "AppsCount": { "type": "integer" }, "InstancesCount": { "type": "structure", "members": { "Assigning": { "type": "integer" }, "Booting": { "type": "integer" }, "ConnectionLost": { "type": "integer" }, "Deregistering": { "type": "integer" }, "Online": { "type": "integer" }, "Pending": { "type": "integer" }, "Rebooting": { "type": "integer" }, "Registered": { "type": "integer" }, "Registering": { "type": "integer" }, "Requested": { "type": "integer" }, "RunningSetup": { "type": "integer" }, "SetupFailed": { "type": "integer" }, "ShuttingDown": { "type": "integer" }, "StartFailed": { "type": "integer" }, "Stopped": { "type": "integer" }, "Stopping": { "type": "integer" }, "Terminated": { "type": "integer" }, "Terminating": { "type": "integer" }, "Unassigning": { "type": "integer" } } } } } } } }, "DescribeStacks": { "input": { "type": "structure", "members": { "StackIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Stacks": { "type": "list", "member": { "type": "structure", "members": { "StackId": {}, "Name": {}, "Arn": {}, "Region": {}, "VpcId": {}, "Attributes": { "shape": "S8" }, "ServiceRoleArn": {}, "DefaultInstanceProfileArn": {}, "DefaultOs": {}, "HostnameTheme": {}, "DefaultAvailabilityZone": {}, "DefaultSubnetId": {}, "CustomJson": {}, "ConfigurationManager": { "shape": "Sa" }, "ChefConfiguration": { "shape": "Sb" }, "UseCustomCookbooks": { "type": "boolean" }, "UseOpsworksSecurityGroups": { "type": "boolean" }, "CustomCookbooksSource": { "shape": "Sd" }, "DefaultSshKeyName": {}, "CreatedAt": {}, "DefaultRootDeviceType": {}, "AgentVersion": {} } } } } } }, "DescribeTimeBasedAutoScaling": { "input": { "type": "structure", "required": [ "InstanceIds" ], "members": { "InstanceIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "TimeBasedAutoScalingConfigurations": { "type": "list", "member": { "type": "structure", "members": { "InstanceId": {}, "AutoScalingSchedule": { "shape": "S40" } } } } } } }, "DescribeUserProfiles": { "input": { "type": "structure", "members": { "IamUserArns": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "UserProfiles": { "type": "list", "member": { "type": "structure", "members": { "IamUserArn": {}, "Name": {}, "SshUsername": {}, "SshPublicKey": {}, "AllowSelfManagement": { "type": "boolean" } } } } } } }, "DescribeVolumes": { "input": { "type": "structure", "members": { "InstanceId": {}, "StackId": {}, "RaidArrayId": {}, "VolumeIds": { "shape": "S3" } } }, "output": { "type": "structure", "members": { "Volumes": { "type": "list", "member": { "type": "structure", "members": { "VolumeId": {}, "Ec2VolumeId": {}, "Name": {}, "RaidArrayId": {}, "InstanceId": {}, "Status": {}, "Size": { "type": "integer" }, "Device": {}, "MountPoint": {}, "Region": {}, "AvailabilityZone": {}, "VolumeType": {}, "Iops": { "type": "integer" } } } } } } }, "DetachElasticLoadBalancer": { "input": { "type": "structure", "required": [ "ElasticLoadBalancerName", "LayerId" ], "members": { "ElasticLoadBalancerName": {}, "LayerId": {} } } }, "DisassociateElasticIp": { "input": { "type": "structure", "required": [ "ElasticIp" ], "members": { "ElasticIp": {} } } }, "GetHostnameSuggestion": { "input": { "type": "structure", "required": [ "LayerId" ], "members": { "LayerId": {} } }, "output": { "type": "structure", "members": { "LayerId": {}, "Hostname": {} } } }, "GrantAccess": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {}, "ValidForInMinutes": { "type": "integer" } } }, "output": { "type": "structure", "members": { "TemporaryCredential": { "type": "structure", "members": { "Username": {}, "Password": {}, "ValidForInMinutes": { "type": "integer" }, "InstanceId": {} } } } } }, "RebootInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } } }, "RegisterEcsCluster": { "input": { "type": "structure", "required": [ "EcsClusterArn", "StackId" ], "members": { "EcsClusterArn": {}, "StackId": {} } }, "output": { "type": "structure", "members": { "EcsClusterArn": {} } } }, "RegisterElasticIp": { "input": { "type": "structure", "required": [ "ElasticIp", "StackId" ], "members": { "ElasticIp": {}, "StackId": {} } }, "output": { "type": "structure", "members": { "ElasticIp": {} } } }, "RegisterInstance": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {}, "Hostname": {}, "PublicIp": {}, "PrivateIp": {}, "RsaPublicKey": {}, "RsaPublicKeyFingerprint": {}, "InstanceIdentity": { "type": "structure", "members": { "Document": {}, "Signature": {} } } } }, "output": { "type": "structure", "members": { "InstanceId": {} } } }, "RegisterRdsDbInstance": { "input": { "type": "structure", "required": [ "StackId", "RdsDbInstanceArn", "DbUser", "DbPassword" ], "members": { "StackId": {}, "RdsDbInstanceArn": {}, "DbUser": {}, "DbPassword": {} } } }, "RegisterVolume": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "Ec2VolumeId": {}, "StackId": {} } }, "output": { "type": "structure", "members": { "VolumeId": {} } } }, "SetLoadBasedAutoScaling": { "input": { "type": "structure", "required": [ "LayerId" ], "members": { "LayerId": {}, "Enable": { "type": "boolean" }, "UpScaling": { "shape": "S30" }, "DownScaling": { "shape": "S30" } } } }, "SetPermission": { "input": { "type": "structure", "required": [ "StackId", "IamUserArn" ], "members": { "StackId": {}, "IamUserArn": {}, "AllowSsh": { "type": "boolean" }, "AllowSudo": { "type": "boolean" }, "Level": {} } } }, "SetTimeBasedAutoScaling": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {}, "AutoScalingSchedule": { "shape": "S40" } } } }, "StartInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } } }, "StartStack": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {} } } }, "StopInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } } }, "StopStack": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {} } } }, "UnassignInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } } }, "UnassignVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "VolumeId": {} } } }, "UpdateApp": { "input": { "type": "structure", "required": [ "AppId" ], "members": { "AppId": {}, "Name": {}, "Description": {}, "DataSources": { "shape": "Si" }, "Type": {}, "AppSource": { "shape": "Sd" }, "Domains": { "shape": "S3" }, "EnableSsl": { "type": "boolean" }, "SslConfiguration": { "shape": "Sl" }, "Attributes": { "shape": "Sm" }, "Environment": { "shape": "So" } } } }, "UpdateElasticIp": { "input": { "type": "structure", "required": [ "ElasticIp" ], "members": { "ElasticIp": {}, "Name": {} } } }, "UpdateInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {}, "LayerIds": { "shape": "S3" }, "InstanceType": {}, "AutoScalingType": {}, "Hostname": {}, "Os": {}, "AmiId": {}, "SshKeyName": {}, "Architecture": {}, "InstallUpdatesOnBoot": { "type": "boolean" }, "EbsOptimized": { "type": "boolean" }, "AgentVersion": {} } } }, "UpdateLayer": { "input": { "type": "structure", "required": [ "LayerId" ], "members": { "LayerId": {}, "Name": {}, "Shortname": {}, "Attributes": { "shape": "S17" }, "CustomInstanceProfileArn": {}, "CustomJson": {}, "CustomSecurityGroupIds": { "shape": "S3" }, "Packages": { "shape": "S3" }, "VolumeConfigurations": { "shape": "S19" }, "EnableAutoHealing": { "type": "boolean" }, "AutoAssignElasticIps": { "type": "boolean" }, "AutoAssignPublicIps": { "type": "boolean" }, "CustomRecipes": { "shape": "S1b" }, "InstallUpdatesOnBoot": { "type": "boolean" }, "UseEbsOptimizedInstances": { "type": "boolean" }, "LifecycleEventConfiguration": { "shape": "S1c" } } } }, "UpdateMyUserProfile": { "input": { "type": "structure", "members": { "SshPublicKey": {} } } }, "UpdateRdsDbInstance": { "input": { "type": "structure", "required": [ "RdsDbInstanceArn" ], "members": { "RdsDbInstanceArn": {}, "DbUser": {}, "DbPassword": {} } } }, "UpdateStack": { "input": { "type": "structure", "required": [ "StackId" ], "members": { "StackId": {}, "Name": {}, "Attributes": { "shape": "S8" }, "ServiceRoleArn": {}, "DefaultInstanceProfileArn": {}, "DefaultOs": {}, "HostnameTheme": {}, "DefaultAvailabilityZone": {}, "DefaultSubnetId": {}, "CustomJson": {}, "ConfigurationManager": { "shape": "Sa" }, "ChefConfiguration": { "shape": "Sb" }, "UseCustomCookbooks": { "type": "boolean" }, "CustomCookbooksSource": { "shape": "Sd" }, "DefaultSshKeyName": {}, "DefaultRootDeviceType": {}, "UseOpsworksSecurityGroups": { "type": "boolean" }, "AgentVersion": {} } } }, "UpdateUserProfile": { "input": { "type": "structure", "required": [ "IamUserArn" ], "members": { "IamUserArn": {}, "SshUsername": {}, "SshPublicKey": {}, "AllowSelfManagement": { "type": "boolean" } } } }, "UpdateVolume": { "input": { "type": "structure", "required": [ "VolumeId" ], "members": { "VolumeId": {}, "Name": {}, "MountPoint": {} } } } }, "shapes": { "S3": { "type": "list", "member": {} }, "S8": { "type": "map", "key": {}, "value": {} }, "Sa": { "type": "structure", "members": { "Name": {}, "Version": {} } }, "Sb": { "type": "structure", "members": { "ManageBerkshelf": { "type": "boolean" }, "BerkshelfVersion": {} } }, "Sd": { "type": "structure", "members": { "Type": {}, "Url": {}, "Username": {}, "Password": {}, "SshKey": {}, "Revision": {} } }, "Si": { "type": "list", "member": { "type": "structure", "members": { "Type": {}, "Arn": {}, "DatabaseName": {} } } }, "Sl": { "type": "structure", "required": [ "Certificate", "PrivateKey" ], "members": { "Certificate": {}, "PrivateKey": {}, "Chain": {} } }, "Sm": { "type": "map", "key": {}, "value": {} }, "So": { "type": "list", "member": { "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {}, "Secure": { "type": "boolean" } } } }, "Ss": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "Args": { "type": "map", "key": {}, "value": { "shape": "S3" } } } }, "Sz": { "type": "list", "member": { "type": "structure", "members": { "DeviceName": {}, "NoDevice": {}, "VirtualName": {}, "Ebs": { "type": "structure", "members": { "SnapshotId": {}, "Iops": { "type": "integer" }, "VolumeSize": { "type": "integer" }, "VolumeType": {}, "DeleteOnTermination": { "type": "boolean" } } } } } }, "S17": { "type": "map", "key": {}, "value": {} }, "S19": { "type": "list", "member": { "type": "structure", "required": [ "MountPoint", "NumberOfDisks", "Size" ], "members": { "MountPoint": {}, "RaidLevel": { "type": "integer" }, "NumberOfDisks": { "type": "integer" }, "Size": { "type": "integer" }, "VolumeType": {}, "Iops": { "type": "integer" } } } }, "S1b": { "type": "structure", "members": { "Setup": { "shape": "S3" }, "Configure": { "shape": "S3" }, "Deploy": { "shape": "S3" }, "Undeploy": { "shape": "S3" }, "Shutdown": { "shape": "S3" } } }, "S1c": { "type": "structure", "members": { "Shutdown": { "type": "structure", "members": { "ExecutionTimeout": { "type": "integer" }, "DelayUntilElbConnectionsDrained": { "type": "boolean" } } } } }, "S30": { "type": "structure", "members": { "InstanceCount": { "type": "integer" }, "ThresholdsWaitTime": { "type": "integer" }, "IgnoreMetricsTime": { "type": "integer" }, "CpuThreshold": { "type": "double" }, "MemoryThreshold": { "type": "double" }, "LoadThreshold": { "type": "double" }, "Alarms": { "shape": "S3" } } }, "S40": { "type": "structure", "members": { "Monday": { "shape": "S41" }, "Tuesday": { "shape": "S41" }, "Wednesday": { "shape": "S41" }, "Thursday": { "shape": "S41" }, "Friday": { "shape": "S41" }, "Saturday": { "shape": "S41" }, "Sunday": { "shape": "S41" } } }, "S41": { "type": "map", "key": {}, "value": {} } } } },{}],100:[function(require,module,exports){ module.exports={ "pagination": { "DescribeApps": { "result_key": "Apps" }, "DescribeCommands": { "result_key": "Commands" }, "DescribeDeployments": { "result_key": "Deployments" }, "DescribeEcsClusters": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "EcsClusters" }, "DescribeElasticIps": { "result_key": "ElasticIps" }, "DescribeElasticLoadBalancers": { "result_key": "ElasticLoadBalancers" }, "DescribeInstances": { "result_key": "Instances" }, "DescribeLayers": { "result_key": "Layers" }, "DescribeLoadBasedAutoScaling": { "result_key": "LoadBasedAutoScalingConfigurations" }, "DescribePermissions": { "result_key": "Permissions" }, "DescribeRaidArrays": { "result_key": "RaidArrays" }, "DescribeServiceErrors": { "result_key": "ServiceErrors" }, "DescribeStacks": { "result_key": "Stacks" }, "DescribeTimeBasedAutoScaling": { "result_key": "TimeBasedAutoScalingConfigurations" }, "DescribeUserProfiles": { "result_key": "UserProfiles" }, "DescribeVolumes": { "result_key": "Volumes" } } } },{}],101:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "AppExists": { "delay": 1, "operation": "DescribeApps", "maxAttempts": 40, "acceptors": [ { "expected": 200, "matcher": "status", "state": "success" }, { "matcher": "status", "expected": 400, "state": "failure" } ] }, "DeploymentSuccessful": { "delay": 15, "operation": "DescribeDeployments", "maxAttempts": 40, "description": "Wait until a deployment has completed successfully", "acceptors": [ { "expected": "successful", "matcher": "pathAll", "state": "success", "argument": "Deployments[].Status" }, { "expected": "failed", "matcher": "pathAny", "state": "failure", "argument": "Deployments[].Status" } ] }, "InstanceOnline": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "description": "Wait until OpsWorks instance is online.", "acceptors": [ { "expected": "online", "matcher": "pathAll", "state": "success", "argument": "Instances[].Status" }, { "expected": "setup_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "shutting_down", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "start_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stopped", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stopping", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "terminating", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "terminated", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stop_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" } ] }, "InstanceRegistered": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "description": "Wait until OpsWorks instance is registered.", "acceptors": [ { "expected": "registered", "matcher": "pathAll", "state": "success", "argument": "Instances[].Status" }, { "expected": "setup_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "shutting_down", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stopped", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stopping", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "terminating", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "terminated", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stop_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" } ] }, "InstanceStopped": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "description": "Wait until OpsWorks instance is stopped.", "acceptors": [ { "expected": "stopped", "matcher": "pathAll", "state": "success", "argument": "Instances[].Status" }, { "expected": "booting", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "online", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "pending", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "rebooting", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "requested", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "running_setup", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "setup_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "start_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "stop_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" } ] }, "InstanceTerminated": { "delay": 15, "operation": "DescribeInstances", "maxAttempts": 40, "description": "Wait until OpsWorks instance is terminated.", "acceptors": [ { "expected": "terminated", "matcher": "pathAll", "state": "success", "argument": "Instances[].Status" }, { "expected": "ResourceNotFoundException", "matcher": "error", "state": "success" }, { "expected": "booting", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "online", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "pending", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "rebooting", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "requested", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "running_setup", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "setup_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" }, { "expected": "start_failed", "matcher": "pathAny", "state": "failure", "argument": "Instances[].Status" } ] } } } },{}],102:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-01-10", "endpointPrefix": "rds", "protocol": "query", "serviceAbbreviation": "Amazon RDS", "serviceFullName": "Amazon Relational Database Service", "signatureVersion": "v4", "xmlNamespace": "http://rds.amazonaws.com/doc/2013-01-10/" }, "operations": { "AddSourceIdentifierToSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "AddSourceIdentifierToSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S9" } } } }, "AuthorizeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CopyDBSnapshot": { "input": { "type": "structure", "required": [ "SourceDBSnapshotIdentifier", "TargetDBSnapshotIdentifier" ], "members": { "SourceDBSnapshotIdentifier": {}, "TargetDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "CopyDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "AllocatedStorage", "DBInstanceClass", "Engine", "MasterUsername", "MasterUserPassword" ], "members": { "DBName": {}, "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "Engine": {}, "MasterUsername": {}, "MasterUserPassword": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "PreferredMaintenanceWindow": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "Port": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "CharacterSetName": {}, "PubliclyAccessible": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBInstanceReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "SourceDBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SourceDBInstanceIdentifier": {}, "DBInstanceClass": {}, "AvailabilityZone": {}, "Port": { "type": "integer" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PubliclyAccessible": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateDBInstanceReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "DBParameterGroupFamily", "Description" ], "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {} } }, "output": { "resultWrapper": "CreateDBParameterGroupResult", "type": "structure", "members": { "DBParameterGroup": { "shape": "S1c" } } } }, "CreateDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName", "DBSecurityGroupDescription" ], "members": { "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {} } }, "output": { "resultWrapper": "CreateDBSecurityGroupResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CreateDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier", "DBInstanceIdentifier" ], "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {} } }, "output": { "resultWrapper": "CreateDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "DBSubnetGroupDescription", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1i" } } }, "output": { "resultWrapper": "CreateDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "CreateEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SnsTopicArn" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "SourceIds": { "shape": "S5" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "CreateOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName", "EngineName", "MajorEngineVersion", "OptionGroupDescription" ], "members": { "OptionGroupName": {}, "EngineName": {}, "MajorEngineVersion": {}, "OptionGroupDescription": {} } }, "output": { "resultWrapper": "CreateOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1o" } } } }, "DeleteDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SkipFinalSnapshot": { "type": "boolean" }, "FinalDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "DeleteDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {} } } }, "DeleteDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {} } } }, "DeleteDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier" ], "members": { "DBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "DeleteDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName" ], "members": { "DBSubnetGroupName": {} } } }, "DeleteEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {} } }, "output": { "resultWrapper": "DeleteEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "DeleteOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {} } } }, "DescribeDBEngineVersions": { "input": { "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "DefaultOnly": { "type": "boolean" }, "ListSupportedCharacterSets": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBEngineVersionsResult", "type": "structure", "members": { "Marker": {}, "DBEngineVersions": { "type": "list", "member": { "locationName": "DBEngineVersion", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "DBEngineDescription": {}, "DBEngineVersionDescription": {}, "DefaultCharacterSet": { "shape": "S25" }, "SupportedCharacterSets": { "type": "list", "member": { "shape": "S25", "locationName": "CharacterSet" } } } } } } } }, "DescribeDBInstances": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBInstancesResult", "type": "structure", "members": { "Marker": {}, "DBInstances": { "type": "list", "member": { "shape": "St", "locationName": "DBInstance" } } } } }, "DescribeDBParameterGroups": { "input": { "type": "structure", "members": { "DBParameterGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "DBParameterGroups": { "type": "list", "member": { "shape": "S1c", "locationName": "DBParameterGroup" } } } } }, "DescribeDBParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "Source": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S2f" }, "Marker": {} } } }, "DescribeDBSecurityGroups": { "input": { "type": "structure", "members": { "DBSecurityGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSecurityGroups": { "type": "list", "member": { "shape": "Sd", "locationName": "DBSecurityGroup" } } } } }, "DescribeDBSnapshots": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "SnapshotType": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSnapshotsResult", "type": "structure", "members": { "Marker": {}, "DBSnapshots": { "type": "list", "member": { "shape": "Sk", "locationName": "DBSnapshot" } } } } }, "DescribeDBSubnetGroups": { "input": { "type": "structure", "members": { "DBSubnetGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSubnetGroups": { "type": "list", "member": { "shape": "S11", "locationName": "DBSubnetGroup" } } } } }, "DescribeEngineDefaultParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupFamily" ], "members": { "DBParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultParametersResult", "type": "structure", "members": { "EngineDefaults": { "type": "structure", "members": { "DBParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S2f" } }, "wrapper": true } } } }, "DescribeEventCategories": { "input": { "type": "structure", "members": { "SourceType": {} } }, "output": { "resultWrapper": "DescribeEventCategoriesResult", "type": "structure", "members": { "EventCategoriesMapList": { "type": "list", "member": { "locationName": "EventCategoriesMap", "type": "structure", "members": { "SourceType": {}, "EventCategories": { "shape": "S6" } }, "wrapper": true } } } } }, "DescribeEventSubscriptions": { "input": { "type": "structure", "members": { "SubscriptionName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventSubscriptionsResult", "type": "structure", "members": { "Marker": {}, "EventSubscriptionsList": { "type": "list", "member": { "shape": "S4", "locationName": "EventSubscription" } } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "EventCategories": { "shape": "S6" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "EventCategories": { "shape": "S6" }, "Date": { "type": "timestamp" } } } } } } }, "DescribeOptionGroupOptions": { "input": { "type": "structure", "required": [ "EngineName" ], "members": { "EngineName": {}, "MajorEngineVersion": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOptionGroupOptionsResult", "type": "structure", "members": { "OptionGroupOptions": { "type": "list", "member": { "locationName": "OptionGroupOption", "type": "structure", "members": { "Name": {}, "Description": {}, "EngineName": {}, "MajorEngineVersion": {}, "MinimumRequiredMinorEngineVersion": {}, "PortRequired": { "type": "boolean" }, "DefaultPort": { "type": "integer" }, "OptionsDependedOn": { "type": "list", "member": { "locationName": "OptionName" } } } } }, "Marker": {} } } }, "DescribeOptionGroups": { "input": { "type": "structure", "members": { "OptionGroupName": {}, "Marker": {}, "MaxRecords": { "type": "integer" }, "EngineName": {}, "MajorEngineVersion": {} } }, "output": { "resultWrapper": "DescribeOptionGroupsResult", "type": "structure", "members": { "OptionGroupsList": { "type": "list", "member": { "shape": "S1o", "locationName": "OptionGroup" } }, "Marker": {} } } }, "DescribeOrderableDBInstanceOptions": { "input": { "type": "structure", "required": [ "Engine" ], "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "Vpc": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOrderableDBInstanceOptionsResult", "type": "structure", "members": { "OrderableDBInstanceOptions": { "type": "list", "member": { "locationName": "OrderableDBInstanceOption", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "AvailabilityZones": { "type": "list", "member": { "shape": "S14", "locationName": "AvailabilityZone" } }, "MultiAZCapable": { "type": "boolean" }, "ReadReplicaCapable": { "type": "boolean" }, "Vpc": { "type": "boolean" } }, "wrapper": true } }, "Marker": {} } } }, "DescribeReservedDBInstances": { "input": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstances": { "type": "list", "member": { "shape": "S3m", "locationName": "ReservedDBInstance" } } } } }, "DescribeReservedDBInstancesOfferings": { "input": { "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstancesOfferings": { "type": "list", "member": { "locationName": "ReservedDBInstancesOffering", "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "RecurringCharges": { "shape": "S3o" } }, "wrapper": true } } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceName" ], "members": { "ResourceName": {} } }, "output": { "resultWrapper": "ListTagsForResourceResult", "type": "structure", "members": { "TagList": { "shape": "S9" } } } }, "ModifyDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "ApplyImmediately": { "type": "boolean" }, "MasterUserPassword": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AllowMajorVersionUpgrade": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "NewDBInstanceIdentifier": {} } }, "output": { "resultWrapper": "ModifyDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "ModifyDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "Parameters" ], "members": { "DBParameterGroupName": {}, "Parameters": { "shape": "S2f" } } }, "output": { "shape": "S3z", "resultWrapper": "ModifyDBParameterGroupResult" } }, "ModifyDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1i" } } }, "output": { "resultWrapper": "ModifyDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "ModifyEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "ModifyOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {}, "OptionsToInclude": { "type": "list", "member": { "locationName": "OptionConfiguration", "type": "structure", "required": [ "OptionName" ], "members": { "OptionName": {}, "Port": { "type": "integer" }, "DBSecurityGroupMemberships": { "shape": "Sp" }, "VpcSecurityGroupMemberships": { "shape": "Sq" } } } }, "OptionsToRemove": { "type": "list", "member": {} }, "ApplyImmediately": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1o" } } } }, "PromoteReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {} } }, "output": { "resultWrapper": "PromoteReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "PurchaseReservedDBInstancesOffering": { "input": { "type": "structure", "required": [ "ReservedDBInstancesOfferingId" ], "members": { "ReservedDBInstancesOfferingId": {}, "ReservedDBInstanceId": {}, "DBInstanceCount": { "type": "integer" } } }, "output": { "resultWrapper": "PurchaseReservedDBInstancesOfferingResult", "type": "structure", "members": { "ReservedDBInstance": { "shape": "S3m" } } } }, "RebootDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "ForceFailover": { "type": "boolean" } } }, "output": { "resultWrapper": "RebootDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RemoveSourceIdentifierFromSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "RemoveSourceIdentifierFromSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "type": "list", "member": {} } } } }, "ResetDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S2f" } } }, "output": { "shape": "S3z", "resultWrapper": "ResetDBParameterGroupResult" } }, "RestoreDBInstanceFromDBSnapshot": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "DBSnapshotIdentifier" ], "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceFromDBSnapshotResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RestoreDBInstanceToPointInTime": { "input": { "type": "structure", "required": [ "SourceDBInstanceIdentifier", "TargetDBInstanceIdentifier" ], "members": { "SourceDBInstanceIdentifier": {}, "TargetDBInstanceIdentifier": {}, "RestoreTime": { "type": "timestamp" }, "UseLatestRestorableTime": { "type": "boolean" }, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceToPointInTimeResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RevokeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "Id": {}, "CustomerAwsId": {}, "CustSubscriptionId": {}, "SnsTopicArn": {}, "Status": {}, "SubscriptionCreationTime": {}, "SourceType": {}, "SourceIdsList": { "shape": "S5" }, "EventCategoriesList": { "shape": "S6" }, "Enabled": { "type": "boolean" } }, "wrapper": true }, "S5": { "type": "list", "member": { "locationName": "SourceId" } }, "S6": { "type": "list", "member": { "locationName": "EventCategory" } }, "S9": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Sd": { "type": "structure", "members": { "OwnerId": {}, "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "VpcId": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } } }, "IPRanges": { "type": "list", "member": { "locationName": "IPRange", "type": "structure", "members": { "Status": {}, "CIDRIP": {} } } } }, "wrapper": true }, "Sk": { "type": "structure", "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Engine": {}, "AllocatedStorage": { "type": "integer" }, "Status": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "VpcId": {}, "InstanceCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "EngineVersion": {}, "LicenseModel": {}, "SnapshotType": {}, "Iops": { "type": "integer" } }, "wrapper": true }, "Sp": { "type": "list", "member": { "locationName": "DBSecurityGroupName" } }, "Sq": { "type": "list", "member": { "locationName": "VpcSecurityGroupId" } }, "St": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBInstanceClass": {}, "Engine": {}, "DBInstanceStatus": {}, "MasterUsername": {}, "DBName": {}, "Endpoint": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" } } }, "AllocatedStorage": { "type": "integer" }, "InstanceCreateTime": { "type": "timestamp" }, "PreferredBackupWindow": {}, "BackupRetentionPeriod": { "type": "integer" }, "DBSecurityGroups": { "shape": "Sv" }, "VpcSecurityGroups": { "shape": "Sx" }, "DBParameterGroups": { "type": "list", "member": { "locationName": "DBParameterGroup", "type": "structure", "members": { "DBParameterGroupName": {}, "ParameterApplyStatus": {} } } }, "AvailabilityZone": {}, "DBSubnetGroup": { "shape": "S11" }, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "DBInstanceClass": {}, "AllocatedStorage": { "type": "integer" }, "MasterUserPassword": {}, "Port": { "type": "integer" }, "BackupRetentionPeriod": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "Iops": { "type": "integer" }, "DBInstanceIdentifier": {} } }, "LatestRestorableTime": { "type": "timestamp" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "ReadReplicaSourceDBInstanceIdentifier": {}, "ReadReplicaDBInstanceIdentifiers": { "type": "list", "member": { "locationName": "ReadReplicaDBInstanceIdentifier" } }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupMembership": { "type": "structure", "members": { "OptionGroupName": {}, "Status": {} } }, "CharacterSetName": {}, "SecondaryAvailabilityZone": {}, "PubliclyAccessible": { "type": "boolean" } }, "wrapper": true }, "Sv": { "type": "list", "member": { "locationName": "DBSecurityGroup", "type": "structure", "members": { "DBSecurityGroupName": {}, "Status": {} } } }, "Sx": { "type": "list", "member": { "locationName": "VpcSecurityGroupMembership", "type": "structure", "members": { "VpcSecurityGroupId": {}, "Status": {} } } }, "S11": { "type": "structure", "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "VpcId": {}, "SubnetGroupStatus": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "shape": "S14" }, "SubnetStatus": {} } } } }, "wrapper": true }, "S14": { "type": "structure", "members": { "Name": {}, "ProvisionedIopsCapable": { "type": "boolean" } }, "wrapper": true }, "S1c": { "type": "structure", "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {} }, "wrapper": true }, "S1i": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S1o": { "type": "structure", "members": { "OptionGroupName": {}, "OptionGroupDescription": {}, "EngineName": {}, "MajorEngineVersion": {}, "Options": { "type": "list", "member": { "locationName": "Option", "type": "structure", "members": { "OptionName": {}, "OptionDescription": {}, "Port": { "type": "integer" }, "DBSecurityGroupMemberships": { "shape": "Sv" }, "VpcSecurityGroupMemberships": { "shape": "Sx" } } } }, "AllowsVpcAndNonVpcInstanceMemberships": { "type": "boolean" }, "VpcId": {} }, "wrapper": true }, "S25": { "type": "structure", "members": { "CharacterSetName": {}, "CharacterSetDescription": {} } }, "S2f": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "ApplyMethod": {} } } }, "S3m": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "DBInstanceCount": { "type": "integer" }, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "State": {}, "RecurringCharges": { "shape": "S3o" } }, "wrapper": true }, "S3o": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S3z": { "type": "structure", "members": { "DBParameterGroupName": {} } } } } },{}],103:[function(require,module,exports){ module.exports={ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBInstances" }, "DescribeDBParameterGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedDBInstancesOfferings" }, "ListTagsForResource": { "result_key": "TagList" } } } },{}],104:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-02-12", "endpointPrefix": "rds", "protocol": "query", "serviceAbbreviation": "Amazon RDS", "serviceFullName": "Amazon Relational Database Service", "signatureVersion": "v4", "xmlNamespace": "http://rds.amazonaws.com/doc/2013-02-12/" }, "operations": { "AddSourceIdentifierToSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "AddSourceIdentifierToSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S9" } } } }, "AuthorizeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CopyDBSnapshot": { "input": { "type": "structure", "required": [ "SourceDBSnapshotIdentifier", "TargetDBSnapshotIdentifier" ], "members": { "SourceDBSnapshotIdentifier": {}, "TargetDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "CopyDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "AllocatedStorage", "DBInstanceClass", "Engine", "MasterUsername", "MasterUserPassword" ], "members": { "DBName": {}, "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "Engine": {}, "MasterUsername": {}, "MasterUserPassword": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "PreferredMaintenanceWindow": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "Port": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "CharacterSetName": {}, "PubliclyAccessible": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBInstanceReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "SourceDBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SourceDBInstanceIdentifier": {}, "DBInstanceClass": {}, "AvailabilityZone": {}, "Port": { "type": "integer" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PubliclyAccessible": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateDBInstanceReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "DBParameterGroupFamily", "Description" ], "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {} } }, "output": { "resultWrapper": "CreateDBParameterGroupResult", "type": "structure", "members": { "DBParameterGroup": { "shape": "S1d" } } } }, "CreateDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName", "DBSecurityGroupDescription" ], "members": { "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {} } }, "output": { "resultWrapper": "CreateDBSecurityGroupResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CreateDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier", "DBInstanceIdentifier" ], "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {} } }, "output": { "resultWrapper": "CreateDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "DBSubnetGroupDescription", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1j" } } }, "output": { "resultWrapper": "CreateDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "CreateEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SnsTopicArn" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "SourceIds": { "shape": "S5" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "CreateEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "CreateOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName", "EngineName", "MajorEngineVersion", "OptionGroupDescription" ], "members": { "OptionGroupName": {}, "EngineName": {}, "MajorEngineVersion": {}, "OptionGroupDescription": {} } }, "output": { "resultWrapper": "CreateOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1p" } } } }, "DeleteDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SkipFinalSnapshot": { "type": "boolean" }, "FinalDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "DeleteDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {} } } }, "DeleteDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {} } } }, "DeleteDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier" ], "members": { "DBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "DeleteDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName" ], "members": { "DBSubnetGroupName": {} } } }, "DeleteEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {} } }, "output": { "resultWrapper": "DeleteEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "DeleteOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {} } } }, "DescribeDBEngineVersions": { "input": { "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "DefaultOnly": { "type": "boolean" }, "ListSupportedCharacterSets": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBEngineVersionsResult", "type": "structure", "members": { "Marker": {}, "DBEngineVersions": { "type": "list", "member": { "locationName": "DBEngineVersion", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "DBEngineDescription": {}, "DBEngineVersionDescription": {}, "DefaultCharacterSet": { "shape": "S28" }, "SupportedCharacterSets": { "type": "list", "member": { "shape": "S28", "locationName": "CharacterSet" } } } } } } } }, "DescribeDBInstances": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBInstancesResult", "type": "structure", "members": { "Marker": {}, "DBInstances": { "type": "list", "member": { "shape": "St", "locationName": "DBInstance" } } } } }, "DescribeDBLogFiles": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "FilenameContains": {}, "FileLastWritten": { "type": "long" }, "FileSize": { "type": "long" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBLogFilesResult", "type": "structure", "members": { "DescribeDBLogFiles": { "type": "list", "member": { "locationName": "DescribeDBLogFilesDetails", "type": "structure", "members": { "LogFileName": {}, "LastWritten": { "type": "long" }, "Size": { "type": "long" } } } }, "Marker": {} } } }, "DescribeDBParameterGroups": { "input": { "type": "structure", "members": { "DBParameterGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "DBParameterGroups": { "type": "list", "member": { "shape": "S1d", "locationName": "DBParameterGroup" } } } } }, "DescribeDBParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "Source": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S2n" }, "Marker": {} } } }, "DescribeDBSecurityGroups": { "input": { "type": "structure", "members": { "DBSecurityGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSecurityGroups": { "type": "list", "member": { "shape": "Sd", "locationName": "DBSecurityGroup" } } } } }, "DescribeDBSnapshots": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "SnapshotType": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSnapshotsResult", "type": "structure", "members": { "Marker": {}, "DBSnapshots": { "type": "list", "member": { "shape": "Sk", "locationName": "DBSnapshot" } } } } }, "DescribeDBSubnetGroups": { "input": { "type": "structure", "members": { "DBSubnetGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSubnetGroups": { "type": "list", "member": { "shape": "S11", "locationName": "DBSubnetGroup" } } } } }, "DescribeEngineDefaultParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupFamily" ], "members": { "DBParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultParametersResult", "type": "structure", "members": { "EngineDefaults": { "type": "structure", "members": { "DBParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S2n" } }, "wrapper": true } } } }, "DescribeEventCategories": { "input": { "type": "structure", "members": { "SourceType": {} } }, "output": { "resultWrapper": "DescribeEventCategoriesResult", "type": "structure", "members": { "EventCategoriesMapList": { "type": "list", "member": { "locationName": "EventCategoriesMap", "type": "structure", "members": { "SourceType": {}, "EventCategories": { "shape": "S6" } }, "wrapper": true } } } } }, "DescribeEventSubscriptions": { "input": { "type": "structure", "members": { "SubscriptionName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventSubscriptionsResult", "type": "structure", "members": { "Marker": {}, "EventSubscriptionsList": { "type": "list", "member": { "shape": "S4", "locationName": "EventSubscription" } } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "EventCategories": { "shape": "S6" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "EventCategories": { "shape": "S6" }, "Date": { "type": "timestamp" } } } } } } }, "DescribeOptionGroupOptions": { "input": { "type": "structure", "required": [ "EngineName" ], "members": { "EngineName": {}, "MajorEngineVersion": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOptionGroupOptionsResult", "type": "structure", "members": { "OptionGroupOptions": { "type": "list", "member": { "locationName": "OptionGroupOption", "type": "structure", "members": { "Name": {}, "Description": {}, "EngineName": {}, "MajorEngineVersion": {}, "MinimumRequiredMinorEngineVersion": {}, "PortRequired": { "type": "boolean" }, "DefaultPort": { "type": "integer" }, "OptionsDependedOn": { "type": "list", "member": { "locationName": "OptionName" } }, "Persistent": { "type": "boolean" }, "OptionGroupOptionSettings": { "type": "list", "member": { "locationName": "OptionGroupOptionSetting", "type": "structure", "members": { "SettingName": {}, "SettingDescription": {}, "DefaultValue": {}, "ApplyType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" } } } } } } }, "Marker": {} } } }, "DescribeOptionGroups": { "input": { "type": "structure", "members": { "OptionGroupName": {}, "Marker": {}, "MaxRecords": { "type": "integer" }, "EngineName": {}, "MajorEngineVersion": {} } }, "output": { "resultWrapper": "DescribeOptionGroupsResult", "type": "structure", "members": { "OptionGroupsList": { "type": "list", "member": { "shape": "S1p", "locationName": "OptionGroup" } }, "Marker": {} } } }, "DescribeOrderableDBInstanceOptions": { "input": { "type": "structure", "required": [ "Engine" ], "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "Vpc": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOrderableDBInstanceOptionsResult", "type": "structure", "members": { "OrderableDBInstanceOptions": { "type": "list", "member": { "locationName": "OrderableDBInstanceOption", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "AvailabilityZones": { "type": "list", "member": { "shape": "S14", "locationName": "AvailabilityZone" } }, "MultiAZCapable": { "type": "boolean" }, "ReadReplicaCapable": { "type": "boolean" }, "Vpc": { "type": "boolean" } }, "wrapper": true } }, "Marker": {} } } }, "DescribeReservedDBInstances": { "input": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstances": { "type": "list", "member": { "shape": "S3w", "locationName": "ReservedDBInstance" } } } } }, "DescribeReservedDBInstancesOfferings": { "input": { "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstancesOfferings": { "type": "list", "member": { "locationName": "ReservedDBInstancesOffering", "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "RecurringCharges": { "shape": "S3y" } }, "wrapper": true } } } } }, "DownloadDBLogFilePortion": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "LogFileName" ], "members": { "DBInstanceIdentifier": {}, "LogFileName": {}, "Marker": {}, "NumberOfLines": { "type": "integer" } } }, "output": { "resultWrapper": "DownloadDBLogFilePortionResult", "type": "structure", "members": { "LogFileData": {}, "Marker": {}, "AdditionalDataPending": { "type": "boolean" } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceName" ], "members": { "ResourceName": {} } }, "output": { "resultWrapper": "ListTagsForResourceResult", "type": "structure", "members": { "TagList": { "shape": "S9" } } } }, "ModifyDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "ApplyImmediately": { "type": "boolean" }, "MasterUserPassword": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AllowMajorVersionUpgrade": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "NewDBInstanceIdentifier": {} } }, "output": { "resultWrapper": "ModifyDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "ModifyDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "Parameters" ], "members": { "DBParameterGroupName": {}, "Parameters": { "shape": "S2n" } } }, "output": { "shape": "S4b", "resultWrapper": "ModifyDBParameterGroupResult" } }, "ModifyDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1j" } } }, "output": { "resultWrapper": "ModifyDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "ModifyEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "ModifyOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {}, "OptionsToInclude": { "type": "list", "member": { "locationName": "OptionConfiguration", "type": "structure", "required": [ "OptionName" ], "members": { "OptionName": {}, "Port": { "type": "integer" }, "DBSecurityGroupMemberships": { "shape": "Sp" }, "VpcSecurityGroupMemberships": { "shape": "Sq" }, "OptionSettings": { "type": "list", "member": { "shape": "S1t", "locationName": "OptionSetting" } } } } }, "OptionsToRemove": { "type": "list", "member": {} }, "ApplyImmediately": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1p" } } } }, "PromoteReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {} } }, "output": { "resultWrapper": "PromoteReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "PurchaseReservedDBInstancesOffering": { "input": { "type": "structure", "required": [ "ReservedDBInstancesOfferingId" ], "members": { "ReservedDBInstancesOfferingId": {}, "ReservedDBInstanceId": {}, "DBInstanceCount": { "type": "integer" } } }, "output": { "resultWrapper": "PurchaseReservedDBInstancesOfferingResult", "type": "structure", "members": { "ReservedDBInstance": { "shape": "S3w" } } } }, "RebootDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "ForceFailover": { "type": "boolean" } } }, "output": { "resultWrapper": "RebootDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RemoveSourceIdentifierFromSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "RemoveSourceIdentifierFromSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "type": "list", "member": {} } } } }, "ResetDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S2n" } } }, "output": { "shape": "S4b", "resultWrapper": "ResetDBParameterGroupResult" } }, "RestoreDBInstanceFromDBSnapshot": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "DBSnapshotIdentifier" ], "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceFromDBSnapshotResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RestoreDBInstanceToPointInTime": { "input": { "type": "structure", "required": [ "SourceDBInstanceIdentifier", "TargetDBInstanceIdentifier" ], "members": { "SourceDBInstanceIdentifier": {}, "TargetDBInstanceIdentifier": {}, "RestoreTime": { "type": "timestamp" }, "UseLatestRestorableTime": { "type": "boolean" }, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceToPointInTimeResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RevokeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "CustomerAwsId": {}, "CustSubscriptionId": {}, "SnsTopicArn": {}, "Status": {}, "SubscriptionCreationTime": {}, "SourceType": {}, "SourceIdsList": { "shape": "S5" }, "EventCategoriesList": { "shape": "S6" }, "Enabled": { "type": "boolean" } }, "wrapper": true }, "S5": { "type": "list", "member": { "locationName": "SourceId" } }, "S6": { "type": "list", "member": { "locationName": "EventCategory" } }, "S9": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Sd": { "type": "structure", "members": { "OwnerId": {}, "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "VpcId": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } } }, "IPRanges": { "type": "list", "member": { "locationName": "IPRange", "type": "structure", "members": { "Status": {}, "CIDRIP": {} } } } }, "wrapper": true }, "Sk": { "type": "structure", "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Engine": {}, "AllocatedStorage": { "type": "integer" }, "Status": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "VpcId": {}, "InstanceCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "EngineVersion": {}, "LicenseModel": {}, "SnapshotType": {}, "Iops": { "type": "integer" }, "OptionGroupName": {} }, "wrapper": true }, "Sp": { "type": "list", "member": { "locationName": "DBSecurityGroupName" } }, "Sq": { "type": "list", "member": { "locationName": "VpcSecurityGroupId" } }, "St": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBInstanceClass": {}, "Engine": {}, "DBInstanceStatus": {}, "MasterUsername": {}, "DBName": {}, "Endpoint": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" } } }, "AllocatedStorage": { "type": "integer" }, "InstanceCreateTime": { "type": "timestamp" }, "PreferredBackupWindow": {}, "BackupRetentionPeriod": { "type": "integer" }, "DBSecurityGroups": { "shape": "Sv" }, "VpcSecurityGroups": { "shape": "Sx" }, "DBParameterGroups": { "type": "list", "member": { "locationName": "DBParameterGroup", "type": "structure", "members": { "DBParameterGroupName": {}, "ParameterApplyStatus": {} } } }, "AvailabilityZone": {}, "DBSubnetGroup": { "shape": "S11" }, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "DBInstanceClass": {}, "AllocatedStorage": { "type": "integer" }, "MasterUserPassword": {}, "Port": { "type": "integer" }, "BackupRetentionPeriod": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "Iops": { "type": "integer" }, "DBInstanceIdentifier": {} } }, "LatestRestorableTime": { "type": "timestamp" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "ReadReplicaSourceDBInstanceIdentifier": {}, "ReadReplicaDBInstanceIdentifiers": { "type": "list", "member": { "locationName": "ReadReplicaDBInstanceIdentifier" } }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupMemberships": { "type": "list", "member": { "locationName": "OptionGroupMembership", "type": "structure", "members": { "OptionGroupName": {}, "Status": {} } } }, "CharacterSetName": {}, "SecondaryAvailabilityZone": {}, "PubliclyAccessible": { "type": "boolean" } }, "wrapper": true }, "Sv": { "type": "list", "member": { "locationName": "DBSecurityGroup", "type": "structure", "members": { "DBSecurityGroupName": {}, "Status": {} } } }, "Sx": { "type": "list", "member": { "locationName": "VpcSecurityGroupMembership", "type": "structure", "members": { "VpcSecurityGroupId": {}, "Status": {} } } }, "S11": { "type": "structure", "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "VpcId": {}, "SubnetGroupStatus": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "shape": "S14" }, "SubnetStatus": {} } } } }, "wrapper": true }, "S14": { "type": "structure", "members": { "Name": {}, "ProvisionedIopsCapable": { "type": "boolean" } }, "wrapper": true }, "S1d": { "type": "structure", "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {} }, "wrapper": true }, "S1j": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S1p": { "type": "structure", "members": { "OptionGroupName": {}, "OptionGroupDescription": {}, "EngineName": {}, "MajorEngineVersion": {}, "Options": { "type": "list", "member": { "locationName": "Option", "type": "structure", "members": { "OptionName": {}, "OptionDescription": {}, "Persistent": { "type": "boolean" }, "Port": { "type": "integer" }, "OptionSettings": { "type": "list", "member": { "shape": "S1t", "locationName": "OptionSetting" } }, "DBSecurityGroupMemberships": { "shape": "Sv" }, "VpcSecurityGroupMemberships": { "shape": "Sx" } } } }, "AllowsVpcAndNonVpcInstanceMemberships": { "type": "boolean" }, "VpcId": {} }, "wrapper": true }, "S1t": { "type": "structure", "members": { "Name": {}, "Value": {}, "DefaultValue": {}, "Description": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "IsCollection": { "type": "boolean" } } }, "S28": { "type": "structure", "members": { "CharacterSetName": {}, "CharacterSetDescription": {} } }, "S2n": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "ApplyMethod": {} } } }, "S3w": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "DBInstanceCount": { "type": "integer" }, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "State": {}, "RecurringCharges": { "shape": "S3y" } }, "wrapper": true }, "S3y": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S4b": { "type": "structure", "members": { "DBParameterGroupName": {} } } } } },{}],105:[function(require,module,exports){ module.exports={ "pagination": { "DescribeDBEngineVersions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBEngineVersions" }, "DescribeDBInstances": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBInstances" }, "DescribeDBLogFiles": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DescribeDBLogFiles" }, "DescribeDBParameterGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBParameterGroups" }, "DescribeDBParameters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Parameters" }, "DescribeDBSecurityGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSecurityGroups" }, "DescribeDBSnapshots": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSnapshots" }, "DescribeDBSubnetGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "DBSubnetGroups" }, "DescribeEngineDefaultParameters": { "input_token": "Marker", "output_token": "EngineDefaults.Marker", "limit_key": "MaxRecords", "result_key": "EngineDefaults.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Events" }, "DescribeOptionGroupOptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OptionGroupOptions" }, "DescribeOptionGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OptionGroupsList" }, "DescribeOrderableDBInstanceOptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OrderableDBInstanceOptions" }, "DescribeReservedDBInstances": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedDBInstances" }, "DescribeReservedDBInstancesOfferings": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedDBInstancesOfferings" }, "DownloadDBLogFilePortion": { "input_token": "Marker", "output_token": "Marker", "limit_key": "NumberOfLines", "more_results": "AdditionalDataPending", "result_key": "LogFileData" }, "ListTagsForResource": { "result_key": "TagList" } } } },{}],106:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-09-09", "endpointPrefix": "rds", "protocol": "query", "serviceAbbreviation": "Amazon RDS", "serviceFullName": "Amazon Relational Database Service", "signatureVersion": "v4", "xmlNamespace": "http://rds.amazonaws.com/doc/2013-09-09/" }, "operations": { "AddSourceIdentifierToSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "AddSourceIdentifierToSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S9" } } } }, "AuthorizeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CopyDBSnapshot": { "input": { "type": "structure", "required": [ "SourceDBSnapshotIdentifier", "TargetDBSnapshotIdentifier" ], "members": { "SourceDBSnapshotIdentifier": {}, "TargetDBSnapshotIdentifier": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CopyDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "AllocatedStorage", "DBInstanceClass", "Engine", "MasterUsername", "MasterUserPassword" ], "members": { "DBName": {}, "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "Engine": {}, "MasterUsername": {}, "MasterUserPassword": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "PreferredMaintenanceWindow": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "Port": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "CharacterSetName": {}, "PubliclyAccessible": { "type": "boolean" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBInstanceReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "SourceDBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SourceDBInstanceIdentifier": {}, "DBInstanceClass": {}, "AvailabilityZone": {}, "Port": { "type": "integer" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PubliclyAccessible": { "type": "boolean" }, "Tags": { "shape": "S9" }, "DBSubnetGroupName": {} } }, "output": { "resultWrapper": "CreateDBInstanceReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "CreateDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "DBParameterGroupFamily", "Description" ], "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBParameterGroupResult", "type": "structure", "members": { "DBParameterGroup": { "shape": "S1f" } } } }, "CreateDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName", "DBSecurityGroupDescription" ], "members": { "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSecurityGroupResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } }, "CreateDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier", "DBInstanceIdentifier" ], "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "CreateDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "DBSubnetGroupDescription", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1l" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "CreateEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SnsTopicArn" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "SourceIds": { "shape": "S5" }, "Enabled": { "type": "boolean" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "CreateOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName", "EngineName", "MajorEngineVersion", "OptionGroupDescription" ], "members": { "OptionGroupName": {}, "EngineName": {}, "MajorEngineVersion": {}, "OptionGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1r" } } } }, "DeleteDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SkipFinalSnapshot": { "type": "boolean" }, "FinalDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "DeleteDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {} } } }, "DeleteDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {} } } }, "DeleteDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier" ], "members": { "DBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "Sk" } } } }, "DeleteDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName" ], "members": { "DBSubnetGroupName": {} } } }, "DeleteEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {} } }, "output": { "resultWrapper": "DeleteEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "DeleteOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {} } } }, "DescribeDBEngineVersions": { "input": { "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {}, "DefaultOnly": { "type": "boolean" }, "ListSupportedCharacterSets": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBEngineVersionsResult", "type": "structure", "members": { "Marker": {}, "DBEngineVersions": { "type": "list", "member": { "locationName": "DBEngineVersion", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "DBEngineDescription": {}, "DBEngineVersionDescription": {}, "DefaultCharacterSet": { "shape": "S2d" }, "SupportedCharacterSets": { "type": "list", "member": { "shape": "S2d", "locationName": "CharacterSet" } } } } } } } }, "DescribeDBInstances": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBInstancesResult", "type": "structure", "members": { "Marker": {}, "DBInstances": { "type": "list", "member": { "shape": "St", "locationName": "DBInstance" } } } } }, "DescribeDBLogFiles": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "FilenameContains": {}, "FileLastWritten": { "type": "long" }, "FileSize": { "type": "long" }, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBLogFilesResult", "type": "structure", "members": { "DescribeDBLogFiles": { "type": "list", "member": { "locationName": "DescribeDBLogFilesDetails", "type": "structure", "members": { "LogFileName": {}, "LastWritten": { "type": "long" }, "Size": { "type": "long" } } } }, "Marker": {} } } }, "DescribeDBParameterGroups": { "input": { "type": "structure", "members": { "DBParameterGroupName": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "DBParameterGroups": { "type": "list", "member": { "shape": "S1f", "locationName": "DBParameterGroup" } } } } }, "DescribeDBParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "Source": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S2s" }, "Marker": {} } } }, "DescribeDBSecurityGroups": { "input": { "type": "structure", "members": { "DBSecurityGroupName": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSecurityGroups": { "type": "list", "member": { "shape": "Sd", "locationName": "DBSecurityGroup" } } } } }, "DescribeDBSnapshots": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "SnapshotType": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSnapshotsResult", "type": "structure", "members": { "Marker": {}, "DBSnapshots": { "type": "list", "member": { "shape": "Sk", "locationName": "DBSnapshot" } } } } }, "DescribeDBSubnetGroups": { "input": { "type": "structure", "members": { "DBSubnetGroupName": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSubnetGroups": { "type": "list", "member": { "shape": "S11", "locationName": "DBSubnetGroup" } } } } }, "DescribeEngineDefaultParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupFamily" ], "members": { "DBParameterGroupFamily": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultParametersResult", "type": "structure", "members": { "EngineDefaults": { "type": "structure", "members": { "DBParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S2s" } }, "wrapper": true } } } }, "DescribeEventCategories": { "input": { "type": "structure", "members": { "SourceType": {}, "Filters": { "shape": "S27" } } }, "output": { "resultWrapper": "DescribeEventCategoriesResult", "type": "structure", "members": { "EventCategoriesMapList": { "type": "list", "member": { "locationName": "EventCategoriesMap", "type": "structure", "members": { "SourceType": {}, "EventCategories": { "shape": "S6" } }, "wrapper": true } } } } }, "DescribeEventSubscriptions": { "input": { "type": "structure", "members": { "SubscriptionName": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventSubscriptionsResult", "type": "structure", "members": { "Marker": {}, "EventSubscriptionsList": { "type": "list", "member": { "shape": "S4", "locationName": "EventSubscription" } } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "EventCategories": { "shape": "S6" }, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "EventCategories": { "shape": "S6" }, "Date": { "type": "timestamp" } } } } } } }, "DescribeOptionGroupOptions": { "input": { "type": "structure", "required": [ "EngineName" ], "members": { "EngineName": {}, "MajorEngineVersion": {}, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOptionGroupOptionsResult", "type": "structure", "members": { "OptionGroupOptions": { "type": "list", "member": { "locationName": "OptionGroupOption", "type": "structure", "members": { "Name": {}, "Description": {}, "EngineName": {}, "MajorEngineVersion": {}, "MinimumRequiredMinorEngineVersion": {}, "PortRequired": { "type": "boolean" }, "DefaultPort": { "type": "integer" }, "OptionsDependedOn": { "type": "list", "member": { "locationName": "OptionName" } }, "Persistent": { "type": "boolean" }, "Permanent": { "type": "boolean" }, "OptionGroupOptionSettings": { "type": "list", "member": { "locationName": "OptionGroupOptionSetting", "type": "structure", "members": { "SettingName": {}, "SettingDescription": {}, "DefaultValue": {}, "ApplyType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" } } } } } } }, "Marker": {} } } }, "DescribeOptionGroups": { "input": { "type": "structure", "members": { "OptionGroupName": {}, "Filters": { "shape": "S27" }, "Marker": {}, "MaxRecords": { "type": "integer" }, "EngineName": {}, "MajorEngineVersion": {} } }, "output": { "resultWrapper": "DescribeOptionGroupsResult", "type": "structure", "members": { "OptionGroupsList": { "type": "list", "member": { "shape": "S1r", "locationName": "OptionGroup" } }, "Marker": {} } } }, "DescribeOrderableDBInstanceOptions": { "input": { "type": "structure", "required": [ "Engine" ], "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "Vpc": { "type": "boolean" }, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOrderableDBInstanceOptionsResult", "type": "structure", "members": { "OrderableDBInstanceOptions": { "type": "list", "member": { "locationName": "OrderableDBInstanceOption", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "AvailabilityZones": { "type": "list", "member": { "shape": "S14", "locationName": "AvailabilityZone" } }, "MultiAZCapable": { "type": "boolean" }, "ReadReplicaCapable": { "type": "boolean" }, "Vpc": { "type": "boolean" } }, "wrapper": true } }, "Marker": {} } } }, "DescribeReservedDBInstances": { "input": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstances": { "type": "list", "member": { "shape": "S41", "locationName": "ReservedDBInstance" } } } } }, "DescribeReservedDBInstancesOfferings": { "input": { "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "Filters": { "shape": "S27" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstancesOfferings": { "type": "list", "member": { "locationName": "ReservedDBInstancesOffering", "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "RecurringCharges": { "shape": "S43" } }, "wrapper": true } } } } }, "DownloadDBLogFilePortion": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "LogFileName" ], "members": { "DBInstanceIdentifier": {}, "LogFileName": {}, "Marker": {}, "NumberOfLines": { "type": "integer" } } }, "output": { "resultWrapper": "DownloadDBLogFilePortionResult", "type": "structure", "members": { "LogFileData": {}, "Marker": {}, "AdditionalDataPending": { "type": "boolean" } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceName" ], "members": { "ResourceName": {}, "Filters": { "shape": "S27" } } }, "output": { "resultWrapper": "ListTagsForResourceResult", "type": "structure", "members": { "TagList": { "shape": "S9" } } } }, "ModifyDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "DBSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "ApplyImmediately": { "type": "boolean" }, "MasterUserPassword": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AllowMajorVersionUpgrade": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "NewDBInstanceIdentifier": {} } }, "output": { "resultWrapper": "ModifyDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "ModifyDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "Parameters" ], "members": { "DBParameterGroupName": {}, "Parameters": { "shape": "S2s" } } }, "output": { "shape": "S4g", "resultWrapper": "ModifyDBParameterGroupResult" } }, "ModifyDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S1l" } } }, "output": { "resultWrapper": "ModifyDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S11" } } } }, "ModifyEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "ModifyOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {}, "OptionsToInclude": { "type": "list", "member": { "locationName": "OptionConfiguration", "type": "structure", "required": [ "OptionName" ], "members": { "OptionName": {}, "Port": { "type": "integer" }, "DBSecurityGroupMemberships": { "shape": "Sp" }, "VpcSecurityGroupMemberships": { "shape": "Sq" }, "OptionSettings": { "type": "list", "member": { "shape": "S1v", "locationName": "OptionSetting" } } } } }, "OptionsToRemove": { "type": "list", "member": {} }, "ApplyImmediately": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S1r" } } } }, "PromoteReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {} } }, "output": { "resultWrapper": "PromoteReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "PurchaseReservedDBInstancesOffering": { "input": { "type": "structure", "required": [ "ReservedDBInstancesOfferingId" ], "members": { "ReservedDBInstancesOfferingId": {}, "ReservedDBInstanceId": {}, "DBInstanceCount": { "type": "integer" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "PurchaseReservedDBInstancesOfferingResult", "type": "structure", "members": { "ReservedDBInstance": { "shape": "S41" } } } }, "RebootDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "ForceFailover": { "type": "boolean" } } }, "output": { "resultWrapper": "RebootDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RemoveSourceIdentifierFromSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "RemoveSourceIdentifierFromSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "type": "list", "member": {} } } } }, "ResetDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S2s" } } }, "output": { "shape": "S4g", "resultWrapper": "ResetDBParameterGroupResult" } }, "RestoreDBInstanceFromDBSnapshot": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "DBSnapshotIdentifier" ], "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "RestoreDBInstanceFromDBSnapshotResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RestoreDBInstanceToPointInTime": { "input": { "type": "structure", "required": [ "SourceDBInstanceIdentifier", "TargetDBInstanceIdentifier" ], "members": { "SourceDBInstanceIdentifier": {}, "TargetDBInstanceIdentifier": {}, "RestoreTime": { "type": "timestamp" }, "UseLatestRestorableTime": { "type": "boolean" }, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "RestoreDBInstanceToPointInTimeResult", "type": "structure", "members": { "DBInstance": { "shape": "St" } } } }, "RevokeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sd" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "CustomerAwsId": {}, "CustSubscriptionId": {}, "SnsTopicArn": {}, "Status": {}, "SubscriptionCreationTime": {}, "SourceType": {}, "SourceIdsList": { "shape": "S5" }, "EventCategoriesList": { "shape": "S6" }, "Enabled": { "type": "boolean" } }, "wrapper": true }, "S5": { "type": "list", "member": { "locationName": "SourceId" } }, "S6": { "type": "list", "member": { "locationName": "EventCategory" } }, "S9": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Sd": { "type": "structure", "members": { "OwnerId": {}, "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "VpcId": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } } }, "IPRanges": { "type": "list", "member": { "locationName": "IPRange", "type": "structure", "members": { "Status": {}, "CIDRIP": {} } } } }, "wrapper": true }, "Sk": { "type": "structure", "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Engine": {}, "AllocatedStorage": { "type": "integer" }, "Status": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "VpcId": {}, "InstanceCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "EngineVersion": {}, "LicenseModel": {}, "SnapshotType": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PercentProgress": { "type": "integer" }, "SourceRegion": {} }, "wrapper": true }, "Sp": { "type": "list", "member": { "locationName": "DBSecurityGroupName" } }, "Sq": { "type": "list", "member": { "locationName": "VpcSecurityGroupId" } }, "St": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBInstanceClass": {}, "Engine": {}, "DBInstanceStatus": {}, "MasterUsername": {}, "DBName": {}, "Endpoint": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" } } }, "AllocatedStorage": { "type": "integer" }, "InstanceCreateTime": { "type": "timestamp" }, "PreferredBackupWindow": {}, "BackupRetentionPeriod": { "type": "integer" }, "DBSecurityGroups": { "shape": "Sv" }, "VpcSecurityGroups": { "shape": "Sx" }, "DBParameterGroups": { "type": "list", "member": { "locationName": "DBParameterGroup", "type": "structure", "members": { "DBParameterGroupName": {}, "ParameterApplyStatus": {} } } }, "AvailabilityZone": {}, "DBSubnetGroup": { "shape": "S11" }, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "DBInstanceClass": {}, "AllocatedStorage": { "type": "integer" }, "MasterUserPassword": {}, "Port": { "type": "integer" }, "BackupRetentionPeriod": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "Iops": { "type": "integer" }, "DBInstanceIdentifier": {} } }, "LatestRestorableTime": { "type": "timestamp" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "ReadReplicaSourceDBInstanceIdentifier": {}, "ReadReplicaDBInstanceIdentifiers": { "type": "list", "member": { "locationName": "ReadReplicaDBInstanceIdentifier" } }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupMemberships": { "type": "list", "member": { "locationName": "OptionGroupMembership", "type": "structure", "members": { "OptionGroupName": {}, "Status": {} } } }, "CharacterSetName": {}, "SecondaryAvailabilityZone": {}, "PubliclyAccessible": { "type": "boolean" }, "StatusInfos": { "type": "list", "member": { "locationName": "DBInstanceStatusInfo", "type": "structure", "members": { "StatusType": {}, "Normal": { "type": "boolean" }, "Status": {}, "Message": {} } } } }, "wrapper": true }, "Sv": { "type": "list", "member": { "locationName": "DBSecurityGroup", "type": "structure", "members": { "DBSecurityGroupName": {}, "Status": {} } } }, "Sx": { "type": "list", "member": { "locationName": "VpcSecurityGroupMembership", "type": "structure", "members": { "VpcSecurityGroupId": {}, "Status": {} } } }, "S11": { "type": "structure", "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "VpcId": {}, "SubnetGroupStatus": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "shape": "S14" }, "SubnetStatus": {} } } } }, "wrapper": true }, "S14": { "type": "structure", "members": { "Name": {}, "ProvisionedIopsCapable": { "type": "boolean" } }, "wrapper": true }, "S1f": { "type": "structure", "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {} }, "wrapper": true }, "S1l": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S1r": { "type": "structure", "members": { "OptionGroupName": {}, "OptionGroupDescription": {}, "EngineName": {}, "MajorEngineVersion": {}, "Options": { "type": "list", "member": { "locationName": "Option", "type": "structure", "members": { "OptionName": {}, "OptionDescription": {}, "Persistent": { "type": "boolean" }, "Permanent": { "type": "boolean" }, "Port": { "type": "integer" }, "OptionSettings": { "type": "list", "member": { "shape": "S1v", "locationName": "OptionSetting" } }, "DBSecurityGroupMemberships": { "shape": "Sv" }, "VpcSecurityGroupMemberships": { "shape": "Sx" } } } }, "AllowsVpcAndNonVpcInstanceMemberships": { "type": "boolean" }, "VpcId": {} }, "wrapper": true }, "S1v": { "type": "structure", "members": { "Name": {}, "Value": {}, "DefaultValue": {}, "Description": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "IsCollection": { "type": "boolean" } } }, "S27": { "type": "list", "member": { "locationName": "Filter", "type": "structure", "required": [ "Name", "Values" ], "members": { "Name": {}, "Values": { "type": "list", "member": { "locationName": "Value" } } } } }, "S2d": { "type": "structure", "members": { "CharacterSetName": {}, "CharacterSetDescription": {} } }, "S2s": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "ApplyMethod": {} } } }, "S41": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "DBInstanceCount": { "type": "integer" }, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "State": {}, "RecurringCharges": { "shape": "S43" } }, "wrapper": true }, "S43": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S4g": { "type": "structure", "members": { "DBParameterGroupName": {} } } } } },{}],107:[function(require,module,exports){ arguments[4][105][0].apply(exports,arguments) },{"dup":105}],108:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "DBInstanceAvailable": { "delay": 30, "operation": "DescribeDBInstances", "maxAttempts": 60, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "deleting", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "failed", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-restore", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-parameters", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-parameters", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-restore", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" } ] }, "DBInstanceDeleted": { "delay": 30, "operation": "DescribeDBInstances", "maxAttempts": 60, "acceptors": [ { "expected": "deleted", "matcher": "pathAll", "state": "success", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "creating", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "modifying", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "rebooting", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "resetting-master-credentials", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" } ] } } } },{}],109:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-10-31", "endpointPrefix": "rds", "protocol": "query", "serviceAbbreviation": "Amazon RDS", "serviceFullName": "Amazon Relational Database Service", "signatureVersion": "v4", "xmlNamespace": "http://rds.amazonaws.com/doc/2014-10-31/" }, "operations": { "AddSourceIdentifierToSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "AddSourceIdentifierToSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S9" } } } }, "ApplyPendingMaintenanceAction": { "input": { "type": "structure", "required": [ "ResourceIdentifier", "ApplyAction", "OptInType" ], "members": { "ResourceIdentifier": {}, "ApplyAction": {}, "OptInType": {} } }, "output": { "resultWrapper": "ApplyPendingMaintenanceActionResult", "type": "structure", "members": { "ResourcePendingMaintenanceActions": { "shape": "Sd" } } } }, "AuthorizeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sj" } } } }, "CopyDBClusterParameterGroup": { "input": { "type": "structure", "required": [ "SourceDBClusterParameterGroupIdentifier", "TargetDBClusterParameterGroupIdentifier", "TargetDBClusterParameterGroupDescription" ], "members": { "SourceDBClusterParameterGroupIdentifier": {}, "TargetDBClusterParameterGroupIdentifier": {}, "TargetDBClusterParameterGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CopyDBClusterParameterGroupResult", "type": "structure", "members": { "DBClusterParameterGroup": { "shape": "Sq" } } } }, "CopyDBClusterSnapshot": { "input": { "type": "structure", "required": [ "SourceDBClusterSnapshotIdentifier", "TargetDBClusterSnapshotIdentifier" ], "members": { "SourceDBClusterSnapshotIdentifier": {}, "TargetDBClusterSnapshotIdentifier": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CopyDBClusterSnapshotResult", "type": "structure", "members": { "DBClusterSnapshot": { "shape": "St" } } } }, "CopyDBParameterGroup": { "input": { "type": "structure", "required": [ "SourceDBParameterGroupIdentifier", "TargetDBParameterGroupIdentifier", "TargetDBParameterGroupDescription" ], "members": { "SourceDBParameterGroupIdentifier": {}, "TargetDBParameterGroupIdentifier": {}, "TargetDBParameterGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CopyDBParameterGroupResult", "type": "structure", "members": { "DBParameterGroup": { "shape": "Sy" } } } }, "CopyDBSnapshot": { "input": { "type": "structure", "required": [ "SourceDBSnapshotIdentifier", "TargetDBSnapshotIdentifier" ], "members": { "SourceDBSnapshotIdentifier": {}, "TargetDBSnapshotIdentifier": {}, "KmsKeyId": {}, "Tags": { "shape": "S9" }, "CopyTags": { "type": "boolean" } } }, "output": { "resultWrapper": "CopyDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "S12" } } } }, "CopyOptionGroup": { "input": { "type": "structure", "required": [ "SourceOptionGroupIdentifier", "TargetOptionGroupIdentifier", "TargetOptionGroupDescription" ], "members": { "SourceOptionGroupIdentifier": {}, "TargetOptionGroupIdentifier": {}, "TargetOptionGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CopyOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S16" } } } }, "CreateDBCluster": { "input": { "type": "structure", "required": [ "DBClusterIdentifier", "Engine" ], "members": { "AvailabilityZones": { "shape": "Su" }, "BackupRetentionPeriod": { "type": "integer" }, "CharacterSetName": {}, "DatabaseName": {}, "DBClusterIdentifier": {}, "DBClusterParameterGroupName": {}, "VpcSecurityGroupIds": { "shape": "S1g" }, "DBSubnetGroupName": {}, "Engine": {}, "EngineVersion": {}, "Port": { "type": "integer" }, "MasterUsername": {}, "MasterUserPassword": {}, "OptionGroupName": {}, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "ReplicationSourceIdentifier": {}, "Tags": { "shape": "S9" }, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {} } }, "output": { "resultWrapper": "CreateDBClusterResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "CreateDBClusterParameterGroup": { "input": { "type": "structure", "required": [ "DBClusterParameterGroupName", "DBParameterGroupFamily", "Description" ], "members": { "DBClusterParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBClusterParameterGroupResult", "type": "structure", "members": { "DBClusterParameterGroup": { "shape": "Sq" } } } }, "CreateDBClusterSnapshot": { "input": { "type": "structure", "required": [ "DBClusterSnapshotIdentifier", "DBClusterIdentifier" ], "members": { "DBClusterSnapshotIdentifier": {}, "DBClusterIdentifier": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBClusterSnapshotResult", "type": "structure", "members": { "DBClusterSnapshot": { "shape": "St" } } } }, "CreateDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "DBInstanceClass", "Engine" ], "members": { "DBName": {}, "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "Engine": {}, "MasterUsername": {}, "MasterUserPassword": {}, "DBSecurityGroups": { "shape": "S1t" }, "VpcSecurityGroupIds": { "shape": "S1g" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "PreferredMaintenanceWindow": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "Port": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "CharacterSetName": {}, "PubliclyAccessible": { "type": "boolean" }, "Tags": { "shape": "S9" }, "DBClusterIdentifier": {}, "StorageType": {}, "TdeCredentialArn": {}, "TdeCredentialPassword": {}, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {}, "Domain": {}, "CopyTagsToSnapshot": { "type": "boolean" }, "MonitoringInterval": { "type": "integer" }, "MonitoringRoleArn": {}, "DomainIAMRoleName": {}, "PromotionTier": { "type": "integer" }, "Timezone": {} } }, "output": { "resultWrapper": "CreateDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "CreateDBInstanceReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "SourceDBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SourceDBInstanceIdentifier": {}, "DBInstanceClass": {}, "AvailabilityZone": {}, "Port": { "type": "integer" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PubliclyAccessible": { "type": "boolean" }, "Tags": { "shape": "S9" }, "DBSubnetGroupName": {}, "StorageType": {}, "CopyTagsToSnapshot": { "type": "boolean" }, "MonitoringInterval": { "type": "integer" }, "MonitoringRoleArn": {} } }, "output": { "resultWrapper": "CreateDBInstanceReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "CreateDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "DBParameterGroupFamily", "Description" ], "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBParameterGroupResult", "type": "structure", "members": { "DBParameterGroup": { "shape": "Sy" } } } }, "CreateDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName", "DBSecurityGroupDescription" ], "members": { "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSecurityGroupResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sj" } } } }, "CreateDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier", "DBInstanceIdentifier" ], "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "S12" } } } }, "CreateDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "DBSubnetGroupDescription", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S2k" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S1z" } } } }, "CreateEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SnsTopicArn" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "SourceIds": { "shape": "S5" }, "Enabled": { "type": "boolean" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "CreateOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName", "EngineName", "MajorEngineVersion", "OptionGroupDescription" ], "members": { "OptionGroupName": {}, "EngineName": {}, "MajorEngineVersion": {}, "OptionGroupDescription": {}, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "CreateOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S16" } } } }, "DeleteDBCluster": { "input": { "type": "structure", "required": [ "DBClusterIdentifier" ], "members": { "DBClusterIdentifier": {}, "SkipFinalSnapshot": { "type": "boolean" }, "FinalDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBClusterResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "DeleteDBClusterParameterGroup": { "input": { "type": "structure", "required": [ "DBClusterParameterGroupName" ], "members": { "DBClusterParameterGroupName": {} } } }, "DeleteDBClusterSnapshot": { "input": { "type": "structure", "required": [ "DBClusterSnapshotIdentifier" ], "members": { "DBClusterSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBClusterSnapshotResult", "type": "structure", "members": { "DBClusterSnapshot": { "shape": "St" } } } }, "DeleteDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "SkipFinalSnapshot": { "type": "boolean" }, "FinalDBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "DeleteDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {} } } }, "DeleteDBSecurityGroup": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {} } } }, "DeleteDBSnapshot": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier" ], "members": { "DBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteDBSnapshotResult", "type": "structure", "members": { "DBSnapshot": { "shape": "S12" } } } }, "DeleteDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName" ], "members": { "DBSubnetGroupName": {} } } }, "DeleteEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {} } }, "output": { "resultWrapper": "DeleteEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "DeleteOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {} } } }, "DescribeAccountAttributes": { "input": { "type": "structure", "members": {} }, "output": { "resultWrapper": "DescribeAccountAttributesResult", "type": "structure", "members": { "AccountQuotas": { "type": "list", "member": { "locationName": "AccountQuota", "type": "structure", "members": { "AccountQuotaName": {}, "Used": { "type": "long" }, "Max": { "type": "long" } }, "wrapper": true } } } } }, "DescribeCertificates": { "input": { "type": "structure", "members": { "CertificateIdentifier": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeCertificatesResult", "type": "structure", "members": { "Certificates": { "type": "list", "member": { "locationName": "Certificate", "type": "structure", "members": { "CertificateIdentifier": {}, "CertificateType": {}, "Thumbprint": {}, "ValidFrom": { "type": "timestamp" }, "ValidTill": { "type": "timestamp" }, "CertificateArn": {} }, "wrapper": true } }, "Marker": {} } } }, "DescribeDBClusterParameterGroups": { "input": { "type": "structure", "members": { "DBClusterParameterGroupName": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBClusterParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "DBClusterParameterGroups": { "type": "list", "member": { "shape": "Sq", "locationName": "DBClusterParameterGroup" } } } } }, "DescribeDBClusterParameters": { "input": { "type": "structure", "required": [ "DBClusterParameterGroupName" ], "members": { "DBClusterParameterGroupName": {}, "Source": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBClusterParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S3m" }, "Marker": {} } } }, "DescribeDBClusterSnapshotAttributes": { "input": { "type": "structure", "required": [ "DBClusterSnapshotIdentifier" ], "members": { "DBClusterSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DescribeDBClusterSnapshotAttributesResult", "type": "structure", "members": { "DBClusterSnapshotAttributesResult": { "shape": "S3r" } } } }, "DescribeDBClusterSnapshots": { "input": { "type": "structure", "members": { "DBClusterIdentifier": {}, "DBClusterSnapshotIdentifier": {}, "SnapshotType": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {}, "IncludeShared": { "type": "boolean" }, "IncludePublic": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBClusterSnapshotsResult", "type": "structure", "members": { "Marker": {}, "DBClusterSnapshots": { "type": "list", "member": { "shape": "St", "locationName": "DBClusterSnapshot" } } } } }, "DescribeDBClusters": { "input": { "type": "structure", "members": { "DBClusterIdentifier": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBClustersResult", "type": "structure", "members": { "Marker": {}, "DBClusters": { "type": "list", "member": { "shape": "S1i", "locationName": "DBCluster" } } } } }, "DescribeDBEngineVersions": { "input": { "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {}, "DefaultOnly": { "type": "boolean" }, "ListSupportedCharacterSets": { "type": "boolean" }, "ListSupportedTimezones": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBEngineVersionsResult", "type": "structure", "members": { "Marker": {}, "DBEngineVersions": { "type": "list", "member": { "locationName": "DBEngineVersion", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBParameterGroupFamily": {}, "DBEngineDescription": {}, "DBEngineVersionDescription": {}, "DefaultCharacterSet": { "shape": "S45" }, "SupportedCharacterSets": { "type": "list", "member": { "shape": "S45", "locationName": "CharacterSet" } }, "ValidUpgradeTarget": { "type": "list", "member": { "locationName": "UpgradeTarget", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "Description": {}, "AutoUpgrade": { "type": "boolean" }, "IsMajorVersionUpgrade": { "type": "boolean" } } } }, "SupportedTimezones": { "type": "list", "member": { "locationName": "Timezone", "type": "structure", "members": { "TimezoneName": {} } } } } } } } } }, "DescribeDBInstances": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBInstancesResult", "type": "structure", "members": { "Marker": {}, "DBInstances": { "type": "list", "member": { "shape": "S1v", "locationName": "DBInstance" } } } } }, "DescribeDBLogFiles": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "FilenameContains": {}, "FileLastWritten": { "type": "long" }, "FileSize": { "type": "long" }, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBLogFilesResult", "type": "structure", "members": { "DescribeDBLogFiles": { "type": "list", "member": { "locationName": "DescribeDBLogFilesDetails", "type": "structure", "members": { "LogFileName": {}, "LastWritten": { "type": "long" }, "Size": { "type": "long" } } } }, "Marker": {} } } }, "DescribeDBParameterGroups": { "input": { "type": "structure", "members": { "DBParameterGroupName": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "DBParameterGroups": { "type": "list", "member": { "shape": "Sy", "locationName": "DBParameterGroup" } } } } }, "DescribeDBParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "Source": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S3m" }, "Marker": {} } } }, "DescribeDBSecurityGroups": { "input": { "type": "structure", "members": { "DBSecurityGroupName": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSecurityGroups": { "type": "list", "member": { "shape": "Sj", "locationName": "DBSecurityGroup" } } } } }, "DescribeDBSnapshotAttributes": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier" ], "members": { "DBSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DescribeDBSnapshotAttributesResult", "type": "structure", "members": { "DBSnapshotAttributesResult": { "shape": "S4s" } } } }, "DescribeDBSnapshots": { "input": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "SnapshotType": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {}, "IncludeShared": { "type": "boolean" }, "IncludePublic": { "type": "boolean" } } }, "output": { "resultWrapper": "DescribeDBSnapshotsResult", "type": "structure", "members": { "Marker": {}, "DBSnapshots": { "type": "list", "member": { "shape": "S12", "locationName": "DBSnapshot" } } } } }, "DescribeDBSubnetGroups": { "input": { "type": "structure", "members": { "DBSubnetGroupName": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDBSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "DBSubnetGroups": { "type": "list", "member": { "shape": "S1z", "locationName": "DBSubnetGroup" } } } } }, "DescribeEngineDefaultClusterParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupFamily" ], "members": { "DBParameterGroupFamily": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultClusterParametersResult", "type": "structure", "members": { "EngineDefaults": { "shape": "S53" } } } }, "DescribeEngineDefaultParameters": { "input": { "type": "structure", "required": [ "DBParameterGroupFamily" ], "members": { "DBParameterGroupFamily": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEngineDefaultParametersResult", "type": "structure", "members": { "EngineDefaults": { "shape": "S53" } } } }, "DescribeEventCategories": { "input": { "type": "structure", "members": { "SourceType": {}, "Filters": { "shape": "S3b" } } }, "output": { "resultWrapper": "DescribeEventCategoriesResult", "type": "structure", "members": { "EventCategoriesMapList": { "type": "list", "member": { "locationName": "EventCategoriesMap", "type": "structure", "members": { "SourceType": {}, "EventCategories": { "shape": "S6" } }, "wrapper": true } } } } }, "DescribeEventSubscriptions": { "input": { "type": "structure", "members": { "SubscriptionName": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventSubscriptionsResult", "type": "structure", "members": { "Marker": {}, "EventSubscriptionsList": { "type": "list", "member": { "shape": "S4", "locationName": "EventSubscription" } } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "EventCategories": { "shape": "S6" }, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "EventCategories": { "shape": "S6" }, "Date": { "type": "timestamp" }, "SourceArn": {} } } } } } }, "DescribeOptionGroupOptions": { "input": { "type": "structure", "required": [ "EngineName" ], "members": { "EngineName": {}, "MajorEngineVersion": {}, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOptionGroupOptionsResult", "type": "structure", "members": { "OptionGroupOptions": { "type": "list", "member": { "locationName": "OptionGroupOption", "type": "structure", "members": { "Name": {}, "Description": {}, "EngineName": {}, "MajorEngineVersion": {}, "MinimumRequiredMinorEngineVersion": {}, "PortRequired": { "type": "boolean" }, "DefaultPort": { "type": "integer" }, "OptionsDependedOn": { "type": "list", "member": { "locationName": "OptionName" } }, "OptionsConflictsWith": { "type": "list", "member": { "locationName": "OptionConflictName" } }, "Persistent": { "type": "boolean" }, "Permanent": { "type": "boolean" }, "OptionGroupOptionSettings": { "type": "list", "member": { "locationName": "OptionGroupOptionSetting", "type": "structure", "members": { "SettingName": {}, "SettingDescription": {}, "DefaultValue": {}, "ApplyType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" } } } }, "OptionGroupOptionVersions": { "type": "list", "member": { "locationName": "OptionVersion", "type": "structure", "members": { "Version": {}, "IsDefault": { "type": "boolean" } } } } } } }, "Marker": {} } } }, "DescribeOptionGroups": { "input": { "type": "structure", "members": { "OptionGroupName": {}, "Filters": { "shape": "S3b" }, "Marker": {}, "MaxRecords": { "type": "integer" }, "EngineName": {}, "MajorEngineVersion": {} } }, "output": { "resultWrapper": "DescribeOptionGroupsResult", "type": "structure", "members": { "OptionGroupsList": { "type": "list", "member": { "shape": "S16", "locationName": "OptionGroup" } }, "Marker": {} } } }, "DescribeOrderableDBInstanceOptions": { "input": { "type": "structure", "required": [ "Engine" ], "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "Vpc": { "type": "boolean" }, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOrderableDBInstanceOptionsResult", "type": "structure", "members": { "OrderableDBInstanceOptions": { "type": "list", "member": { "locationName": "OrderableDBInstanceOption", "type": "structure", "members": { "Engine": {}, "EngineVersion": {}, "DBInstanceClass": {}, "LicenseModel": {}, "AvailabilityZones": { "type": "list", "member": { "shape": "S22", "locationName": "AvailabilityZone" } }, "MultiAZCapable": { "type": "boolean" }, "ReadReplicaCapable": { "type": "boolean" }, "Vpc": { "type": "boolean" }, "SupportsStorageEncryption": { "type": "boolean" }, "StorageType": {}, "SupportsIops": { "type": "boolean" }, "SupportsEnhancedMonitoring": { "type": "boolean" } }, "wrapper": true } }, "Marker": {} } } }, "DescribePendingMaintenanceActions": { "input": { "type": "structure", "members": { "ResourceIdentifier": {}, "Filters": { "shape": "S3b" }, "Marker": {}, "MaxRecords": { "type": "integer" } } }, "output": { "resultWrapper": "DescribePendingMaintenanceActionsResult", "type": "structure", "members": { "PendingMaintenanceActions": { "type": "list", "member": { "shape": "Sd", "locationName": "ResourcePendingMaintenanceActions" } }, "Marker": {} } } }, "DescribeReservedDBInstances": { "input": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstances": { "type": "list", "member": { "shape": "S66", "locationName": "ReservedDBInstance" } } } } }, "DescribeReservedDBInstancesOfferings": { "input": { "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "Filters": { "shape": "S3b" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedDBInstancesOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedDBInstancesOfferings": { "type": "list", "member": { "locationName": "ReservedDBInstancesOffering", "type": "structure", "members": { "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "RecurringCharges": { "shape": "S68" } }, "wrapper": true } } } } }, "DescribeSourceRegions": { "input": { "type": "structure", "members": { "RegionName": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "Filters": { "shape": "S3b" } } }, "output": { "resultWrapper": "DescribeSourceRegionsResult", "type": "structure", "members": { "Marker": {}, "SourceRegions": { "type": "list", "member": { "locationName": "SourceRegion", "type": "structure", "members": { "RegionName": {}, "Endpoint": {}, "Status": {} } } } } } }, "DownloadDBLogFilePortion": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "LogFileName" ], "members": { "DBInstanceIdentifier": {}, "LogFileName": {}, "Marker": {}, "NumberOfLines": { "type": "integer" } } }, "output": { "resultWrapper": "DownloadDBLogFilePortionResult", "type": "structure", "members": { "LogFileData": {}, "Marker": {}, "AdditionalDataPending": { "type": "boolean" } } } }, "FailoverDBCluster": { "input": { "type": "structure", "members": { "DBClusterIdentifier": {}, "TargetDBInstanceIdentifier": {} } }, "output": { "resultWrapper": "FailoverDBClusterResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceName" ], "members": { "ResourceName": {}, "Filters": { "shape": "S3b" } } }, "output": { "resultWrapper": "ListTagsForResourceResult", "type": "structure", "members": { "TagList": { "shape": "S9" } } } }, "ModifyDBCluster": { "input": { "type": "structure", "required": [ "DBClusterIdentifier" ], "members": { "DBClusterIdentifier": {}, "NewDBClusterIdentifier": {}, "ApplyImmediately": { "type": "boolean" }, "BackupRetentionPeriod": { "type": "integer" }, "DBClusterParameterGroupName": {}, "VpcSecurityGroupIds": { "shape": "S1g" }, "Port": { "type": "integer" }, "MasterUserPassword": {}, "OptionGroupName": {}, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {} } }, "output": { "resultWrapper": "ModifyDBClusterResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "ModifyDBClusterParameterGroup": { "input": { "type": "structure", "required": [ "DBClusterParameterGroupName", "Parameters" ], "members": { "DBClusterParameterGroupName": {}, "Parameters": { "shape": "S3m" } } }, "output": { "shape": "S6r", "resultWrapper": "ModifyDBClusterParameterGroupResult" } }, "ModifyDBClusterSnapshotAttribute": { "input": { "type": "structure", "required": [ "DBClusterSnapshotIdentifier", "AttributeName" ], "members": { "DBClusterSnapshotIdentifier": {}, "AttributeName": {}, "ValuesToAdd": { "shape": "S3u" }, "ValuesToRemove": { "shape": "S3u" } } }, "output": { "resultWrapper": "ModifyDBClusterSnapshotAttributeResult", "type": "structure", "members": { "DBClusterSnapshotAttributesResult": { "shape": "S3r" } } } }, "ModifyDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "AllocatedStorage": { "type": "integer" }, "DBInstanceClass": {}, "DBSubnetGroupName": {}, "DBSecurityGroups": { "shape": "S1t" }, "VpcSecurityGroupIds": { "shape": "S1g" }, "ApplyImmediately": { "type": "boolean" }, "MasterUserPassword": {}, "DBParameterGroupName": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AllowMajorVersionUpgrade": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "NewDBInstanceIdentifier": {}, "StorageType": {}, "TdeCredentialArn": {}, "TdeCredentialPassword": {}, "CACertificateIdentifier": {}, "Domain": {}, "CopyTagsToSnapshot": { "type": "boolean" }, "MonitoringInterval": { "type": "integer" }, "DBPortNumber": { "type": "integer" }, "PubliclyAccessible": { "type": "boolean" }, "MonitoringRoleArn": {}, "DomainIAMRoleName": {}, "PromotionTier": { "type": "integer" } } }, "output": { "resultWrapper": "ModifyDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "ModifyDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName", "Parameters" ], "members": { "DBParameterGroupName": {}, "Parameters": { "shape": "S3m" } } }, "output": { "shape": "S6x", "resultWrapper": "ModifyDBParameterGroupResult" } }, "ModifyDBSnapshotAttribute": { "input": { "type": "structure", "required": [ "DBSnapshotIdentifier", "AttributeName" ], "members": { "DBSnapshotIdentifier": {}, "AttributeName": {}, "ValuesToAdd": { "shape": "S3u" }, "ValuesToRemove": { "shape": "S3u" } } }, "output": { "resultWrapper": "ModifyDBSnapshotAttributeResult", "type": "structure", "members": { "DBSnapshotAttributesResult": { "shape": "S4s" } } } }, "ModifyDBSubnetGroup": { "input": { "type": "structure", "required": [ "DBSubnetGroupName", "SubnetIds" ], "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "SubnetIds": { "shape": "S2k" } } }, "output": { "resultWrapper": "ModifyDBSubnetGroupResult", "type": "structure", "members": { "DBSubnetGroup": { "shape": "S1z" } } } }, "ModifyEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "EventCategories": { "shape": "S6" }, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "ModifyOptionGroup": { "input": { "type": "structure", "required": [ "OptionGroupName" ], "members": { "OptionGroupName": {}, "OptionsToInclude": { "type": "list", "member": { "locationName": "OptionConfiguration", "type": "structure", "required": [ "OptionName" ], "members": { "OptionName": {}, "Port": { "type": "integer" }, "OptionVersion": {}, "DBSecurityGroupMemberships": { "shape": "S1t" }, "VpcSecurityGroupMemberships": { "shape": "S1g" }, "OptionSettings": { "type": "list", "member": { "shape": "S1a", "locationName": "OptionSetting" } } } } }, "OptionsToRemove": { "type": "list", "member": {} }, "ApplyImmediately": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyOptionGroupResult", "type": "structure", "members": { "OptionGroup": { "shape": "S16" } } } }, "PromoteReadReplica": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "BackupRetentionPeriod": { "type": "integer" }, "PreferredBackupWindow": {} } }, "output": { "resultWrapper": "PromoteReadReplicaResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "PromoteReadReplicaDBCluster": { "input": { "type": "structure", "required": [ "DBClusterIdentifier" ], "members": { "DBClusterIdentifier": {} } }, "output": { "resultWrapper": "PromoteReadReplicaDBClusterResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "PurchaseReservedDBInstancesOffering": { "input": { "type": "structure", "required": [ "ReservedDBInstancesOfferingId" ], "members": { "ReservedDBInstancesOfferingId": {}, "ReservedDBInstanceId": {}, "DBInstanceCount": { "type": "integer" }, "Tags": { "shape": "S9" } } }, "output": { "resultWrapper": "PurchaseReservedDBInstancesOfferingResult", "type": "structure", "members": { "ReservedDBInstance": { "shape": "S66" } } } }, "RebootDBInstance": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier" ], "members": { "DBInstanceIdentifier": {}, "ForceFailover": { "type": "boolean" } } }, "output": { "resultWrapper": "RebootDBInstanceResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "RemoveSourceIdentifierFromSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SourceIdentifier" ], "members": { "SubscriptionName": {}, "SourceIdentifier": {} } }, "output": { "resultWrapper": "RemoveSourceIdentifierFromSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S4" } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "type": "list", "member": {} } } } }, "ResetDBClusterParameterGroup": { "input": { "type": "structure", "required": [ "DBClusterParameterGroupName" ], "members": { "DBClusterParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S3m" } } }, "output": { "shape": "S6r", "resultWrapper": "ResetDBClusterParameterGroupResult" } }, "ResetDBParameterGroup": { "input": { "type": "structure", "required": [ "DBParameterGroupName" ], "members": { "DBParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S3m" } } }, "output": { "shape": "S6x", "resultWrapper": "ResetDBParameterGroupResult" } }, "RestoreDBClusterFromS3": { "input": { "type": "structure", "required": [ "DBClusterIdentifier", "Engine", "MasterUsername", "MasterUserPassword", "SourceEngine", "SourceEngineVersion", "S3BucketName", "S3IngestionRoleArn" ], "members": { "AvailabilityZones": { "shape": "Su" }, "BackupRetentionPeriod": { "type": "integer" }, "CharacterSetName": {}, "DatabaseName": {}, "DBClusterIdentifier": {}, "DBClusterParameterGroupName": {}, "VpcSecurityGroupIds": { "shape": "S1g" }, "DBSubnetGroupName": {}, "Engine": {}, "EngineVersion": {}, "Port": { "type": "integer" }, "MasterUsername": {}, "MasterUserPassword": {}, "OptionGroupName": {}, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "Tags": { "shape": "S9" }, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {}, "SourceEngine": {}, "SourceEngineVersion": {}, "S3BucketName": {}, "S3Prefix": {}, "S3IngestionRoleArn": {} } }, "output": { "resultWrapper": "RestoreDBClusterFromS3Result", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "RestoreDBClusterFromSnapshot": { "input": { "type": "structure", "required": [ "DBClusterIdentifier", "SnapshotIdentifier", "Engine" ], "members": { "AvailabilityZones": { "shape": "Su" }, "DBClusterIdentifier": {}, "SnapshotIdentifier": {}, "Engine": {}, "EngineVersion": {}, "Port": { "type": "integer" }, "DBSubnetGroupName": {}, "DatabaseName": {}, "OptionGroupName": {}, "VpcSecurityGroupIds": { "shape": "S1g" }, "Tags": { "shape": "S9" }, "KmsKeyId": {} } }, "output": { "resultWrapper": "RestoreDBClusterFromSnapshotResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "RestoreDBClusterToPointInTime": { "input": { "type": "structure", "required": [ "DBClusterIdentifier", "SourceDBClusterIdentifier" ], "members": { "DBClusterIdentifier": {}, "SourceDBClusterIdentifier": {}, "RestoreToTime": { "type": "timestamp" }, "UseLatestRestorableTime": { "type": "boolean" }, "Port": { "type": "integer" }, "DBSubnetGroupName": {}, "OptionGroupName": {}, "VpcSecurityGroupIds": { "shape": "S1g" }, "Tags": { "shape": "S9" }, "KmsKeyId": {} } }, "output": { "resultWrapper": "RestoreDBClusterToPointInTimeResult", "type": "structure", "members": { "DBCluster": { "shape": "S1i" } } } }, "RestoreDBInstanceFromDBSnapshot": { "input": { "type": "structure", "required": [ "DBInstanceIdentifier", "DBSnapshotIdentifier" ], "members": { "DBInstanceIdentifier": {}, "DBSnapshotIdentifier": {}, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "Tags": { "shape": "S9" }, "StorageType": {}, "TdeCredentialArn": {}, "TdeCredentialPassword": {}, "Domain": {}, "CopyTagsToSnapshot": { "type": "boolean" }, "DomainIAMRoleName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceFromDBSnapshotResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "RestoreDBInstanceToPointInTime": { "input": { "type": "structure", "required": [ "SourceDBInstanceIdentifier", "TargetDBInstanceIdentifier" ], "members": { "SourceDBInstanceIdentifier": {}, "TargetDBInstanceIdentifier": {}, "RestoreTime": { "type": "timestamp" }, "UseLatestRestorableTime": { "type": "boolean" }, "DBInstanceClass": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "DBSubnetGroupName": {}, "MultiAZ": { "type": "boolean" }, "PubliclyAccessible": { "type": "boolean" }, "AutoMinorVersionUpgrade": { "type": "boolean" }, "LicenseModel": {}, "DBName": {}, "Engine": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "CopyTagsToSnapshot": { "type": "boolean" }, "Tags": { "shape": "S9" }, "StorageType": {}, "TdeCredentialArn": {}, "TdeCredentialPassword": {}, "Domain": {}, "DomainIAMRoleName": {} } }, "output": { "resultWrapper": "RestoreDBInstanceToPointInTimeResult", "type": "structure", "members": { "DBInstance": { "shape": "S1v" } } } }, "RevokeDBSecurityGroupIngress": { "input": { "type": "structure", "required": [ "DBSecurityGroupName" ], "members": { "DBSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeDBSecurityGroupIngressResult", "type": "structure", "members": { "DBSecurityGroup": { "shape": "Sj" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "CustomerAwsId": {}, "CustSubscriptionId": {}, "SnsTopicArn": {}, "Status": {}, "SubscriptionCreationTime": {}, "SourceType": {}, "SourceIdsList": { "shape": "S5" }, "EventCategoriesList": { "shape": "S6" }, "Enabled": { "type": "boolean" }, "EventSubscriptionArn": {} }, "wrapper": true }, "S5": { "type": "list", "member": { "locationName": "SourceId" } }, "S6": { "type": "list", "member": { "locationName": "EventCategory" } }, "S9": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Sd": { "type": "structure", "members": { "ResourceIdentifier": {}, "PendingMaintenanceActionDetails": { "type": "list", "member": { "locationName": "PendingMaintenanceAction", "type": "structure", "members": { "Action": {}, "AutoAppliedAfterDate": { "type": "timestamp" }, "ForcedApplyDate": { "type": "timestamp" }, "OptInStatus": {}, "CurrentApplyDate": { "type": "timestamp" }, "Description": {} } } } }, "wrapper": true }, "Sj": { "type": "structure", "members": { "OwnerId": {}, "DBSecurityGroupName": {}, "DBSecurityGroupDescription": {}, "VpcId": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupId": {}, "EC2SecurityGroupOwnerId": {} } } }, "IPRanges": { "type": "list", "member": { "locationName": "IPRange", "type": "structure", "members": { "Status": {}, "CIDRIP": {} } } }, "DBSecurityGroupArn": {} }, "wrapper": true }, "Sq": { "type": "structure", "members": { "DBClusterParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {}, "DBClusterParameterGroupArn": {} }, "wrapper": true }, "St": { "type": "structure", "members": { "AvailabilityZones": { "shape": "Su" }, "DBClusterSnapshotIdentifier": {}, "DBClusterIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Engine": {}, "AllocatedStorage": { "type": "integer" }, "Status": {}, "Port": { "type": "integer" }, "VpcId": {}, "ClusterCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "EngineVersion": {}, "LicenseModel": {}, "SnapshotType": {}, "PercentProgress": { "type": "integer" }, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {}, "DBClusterSnapshotArn": {} }, "wrapper": true }, "Su": { "type": "list", "member": { "locationName": "AvailabilityZone" } }, "Sy": { "type": "structure", "members": { "DBParameterGroupName": {}, "DBParameterGroupFamily": {}, "Description": {}, "DBParameterGroupArn": {} }, "wrapper": true }, "S12": { "type": "structure", "members": { "DBSnapshotIdentifier": {}, "DBInstanceIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Engine": {}, "AllocatedStorage": { "type": "integer" }, "Status": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "VpcId": {}, "InstanceCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "EngineVersion": {}, "LicenseModel": {}, "SnapshotType": {}, "Iops": { "type": "integer" }, "OptionGroupName": {}, "PercentProgress": { "type": "integer" }, "SourceRegion": {}, "SourceDBSnapshotIdentifier": {}, "StorageType": {}, "TdeCredentialArn": {}, "Encrypted": { "type": "boolean" }, "KmsKeyId": {}, "DBSnapshotArn": {}, "Timezone": {} }, "wrapper": true }, "S16": { "type": "structure", "members": { "OptionGroupName": {}, "OptionGroupDescription": {}, "EngineName": {}, "MajorEngineVersion": {}, "Options": { "type": "list", "member": { "locationName": "Option", "type": "structure", "members": { "OptionName": {}, "OptionDescription": {}, "Persistent": { "type": "boolean" }, "Permanent": { "type": "boolean" }, "Port": { "type": "integer" }, "OptionVersion": {}, "OptionSettings": { "type": "list", "member": { "shape": "S1a", "locationName": "OptionSetting" } }, "DBSecurityGroupMemberships": { "shape": "S1b" }, "VpcSecurityGroupMemberships": { "shape": "S1d" } } } }, "AllowsVpcAndNonVpcInstanceMemberships": { "type": "boolean" }, "VpcId": {}, "OptionGroupArn": {} }, "wrapper": true }, "S1a": { "type": "structure", "members": { "Name": {}, "Value": {}, "DefaultValue": {}, "Description": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "IsCollection": { "type": "boolean" } } }, "S1b": { "type": "list", "member": { "locationName": "DBSecurityGroup", "type": "structure", "members": { "DBSecurityGroupName": {}, "Status": {} } } }, "S1d": { "type": "list", "member": { "locationName": "VpcSecurityGroupMembership", "type": "structure", "members": { "VpcSecurityGroupId": {}, "Status": {} } } }, "S1g": { "type": "list", "member": { "locationName": "VpcSecurityGroupId" } }, "S1i": { "type": "structure", "members": { "AllocatedStorage": { "type": "integer" }, "AvailabilityZones": { "shape": "Su" }, "BackupRetentionPeriod": { "type": "integer" }, "CharacterSetName": {}, "DatabaseName": {}, "DBClusterIdentifier": {}, "DBClusterParameterGroup": {}, "DBSubnetGroup": {}, "Status": {}, "PercentProgress": {}, "EarliestRestorableTime": { "type": "timestamp" }, "Endpoint": {}, "ReaderEndpoint": {}, "Engine": {}, "EngineVersion": {}, "LatestRestorableTime": { "type": "timestamp" }, "Port": { "type": "integer" }, "MasterUsername": {}, "DBClusterOptionGroupMemberships": { "type": "list", "member": { "locationName": "DBClusterOptionGroup", "type": "structure", "members": { "DBClusterOptionGroupName": {}, "Status": {} } } }, "PreferredBackupWindow": {}, "PreferredMaintenanceWindow": {}, "ReplicationSourceIdentifier": {}, "ReadReplicaIdentifiers": { "type": "list", "member": { "locationName": "ReadReplicaIdentifier" } }, "DBClusterMembers": { "type": "list", "member": { "locationName": "DBClusterMember", "type": "structure", "members": { "DBInstanceIdentifier": {}, "IsClusterWriter": { "type": "boolean" }, "DBClusterParameterGroupStatus": {}, "PromotionTier": { "type": "integer" } }, "wrapper": true } }, "VpcSecurityGroups": { "shape": "S1d" }, "HostedZoneId": {}, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {}, "DbClusterResourceId": {}, "DBClusterArn": {} }, "wrapper": true }, "S1t": { "type": "list", "member": { "locationName": "DBSecurityGroupName" } }, "S1v": { "type": "structure", "members": { "DBInstanceIdentifier": {}, "DBInstanceClass": {}, "Engine": {}, "DBInstanceStatus": {}, "MasterUsername": {}, "DBName": {}, "Endpoint": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" }, "HostedZoneId": {} } }, "AllocatedStorage": { "type": "integer" }, "InstanceCreateTime": { "type": "timestamp" }, "PreferredBackupWindow": {}, "BackupRetentionPeriod": { "type": "integer" }, "DBSecurityGroups": { "shape": "S1b" }, "VpcSecurityGroups": { "shape": "S1d" }, "DBParameterGroups": { "type": "list", "member": { "locationName": "DBParameterGroup", "type": "structure", "members": { "DBParameterGroupName": {}, "ParameterApplyStatus": {} } } }, "AvailabilityZone": {}, "DBSubnetGroup": { "shape": "S1z" }, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "DBInstanceClass": {}, "AllocatedStorage": { "type": "integer" }, "MasterUserPassword": {}, "Port": { "type": "integer" }, "BackupRetentionPeriod": { "type": "integer" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "LicenseModel": {}, "Iops": { "type": "integer" }, "DBInstanceIdentifier": {}, "StorageType": {}, "CACertificateIdentifier": {}, "DBSubnetGroupName": {} } }, "LatestRestorableTime": { "type": "timestamp" }, "MultiAZ": { "type": "boolean" }, "EngineVersion": {}, "AutoMinorVersionUpgrade": { "type": "boolean" }, "ReadReplicaSourceDBInstanceIdentifier": {}, "ReadReplicaDBInstanceIdentifiers": { "type": "list", "member": { "locationName": "ReadReplicaDBInstanceIdentifier" } }, "LicenseModel": {}, "Iops": { "type": "integer" }, "OptionGroupMemberships": { "type": "list", "member": { "locationName": "OptionGroupMembership", "type": "structure", "members": { "OptionGroupName": {}, "Status": {} } } }, "CharacterSetName": {}, "SecondaryAvailabilityZone": {}, "PubliclyAccessible": { "type": "boolean" }, "StatusInfos": { "type": "list", "member": { "locationName": "DBInstanceStatusInfo", "type": "structure", "members": { "StatusType": {}, "Normal": { "type": "boolean" }, "Status": {}, "Message": {} } } }, "StorageType": {}, "TdeCredentialArn": {}, "DbInstancePort": { "type": "integer" }, "DBClusterIdentifier": {}, "StorageEncrypted": { "type": "boolean" }, "KmsKeyId": {}, "DbiResourceId": {}, "CACertificateIdentifier": {}, "DomainMemberships": { "type": "list", "member": { "locationName": "DomainMembership", "type": "structure", "members": { "Domain": {}, "Status": {}, "FQDN": {}, "IAMRoleName": {} } } }, "CopyTagsToSnapshot": { "type": "boolean" }, "MonitoringInterval": { "type": "integer" }, "EnhancedMonitoringResourceArn": {}, "MonitoringRoleArn": {}, "PromotionTier": { "type": "integer" }, "DBInstanceArn": {}, "Timezone": {} }, "wrapper": true }, "S1z": { "type": "structure", "members": { "DBSubnetGroupName": {}, "DBSubnetGroupDescription": {}, "VpcId": {}, "SubnetGroupStatus": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "shape": "S22" }, "SubnetStatus": {} } } }, "DBSubnetGroupArn": {} }, "wrapper": true }, "S22": { "type": "structure", "members": { "Name": {} }, "wrapper": true }, "S2k": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S3b": { "type": "list", "member": { "locationName": "Filter", "type": "structure", "required": [ "Name", "Values" ], "members": { "Name": {}, "Values": { "type": "list", "member": { "locationName": "Value" } } } } }, "S3m": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "ApplyType": {}, "DataType": {}, "AllowedValues": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {}, "ApplyMethod": {} } } }, "S3r": { "type": "structure", "members": { "DBClusterSnapshotIdentifier": {}, "DBClusterSnapshotAttributes": { "type": "list", "member": { "locationName": "DBClusterSnapshotAttribute", "type": "structure", "members": { "AttributeName": {}, "AttributeValues": { "shape": "S3u" } } } } }, "wrapper": true }, "S3u": { "type": "list", "member": { "locationName": "AttributeValue" } }, "S45": { "type": "structure", "members": { "CharacterSetName": {}, "CharacterSetDescription": {} } }, "S4s": { "type": "structure", "members": { "DBSnapshotIdentifier": {}, "DBSnapshotAttributes": { "type": "list", "member": { "locationName": "DBSnapshotAttribute", "type": "structure", "members": { "AttributeName": {}, "AttributeValues": { "shape": "S3u" } }, "wrapper": true } } }, "wrapper": true }, "S53": { "type": "structure", "members": { "DBParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S3m" } }, "wrapper": true }, "S66": { "type": "structure", "members": { "ReservedDBInstanceId": {}, "ReservedDBInstancesOfferingId": {}, "DBInstanceClass": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "DBInstanceCount": { "type": "integer" }, "ProductDescription": {}, "OfferingType": {}, "MultiAZ": { "type": "boolean" }, "State": {}, "RecurringCharges": { "shape": "S68" }, "ReservedDBInstanceArn": {} }, "wrapper": true }, "S68": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S6r": { "type": "structure", "members": { "DBClusterParameterGroupName": {} } }, "S6x": { "type": "structure", "members": { "DBParameterGroupName": {} } } } } },{}],110:[function(require,module,exports){ arguments[4][105][0].apply(exports,arguments) },{"dup":105}],111:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "DBInstanceAvailable": { "delay": 30, "operation": "DescribeDBInstances", "maxAttempts": 60, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "deleting", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "failed", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-restore", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "incompatible-parameters", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" } ] }, "DBInstanceDeleted": { "delay": 30, "operation": "DescribeDBInstances", "maxAttempts": 60, "acceptors": [ { "expected": "deleted", "matcher": "pathAll", "state": "success", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "DBInstanceNotFound", "matcher": "error", "state": "success" }, { "expected": "creating", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "modifying", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "rebooting", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" }, { "expected": "resetting-master-credentials", "matcher": "pathAny", "state": "failure", "argument": "DBInstances[].DBInstanceStatus" } ] } } } },{}],112:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-12-01", "endpointPrefix": "redshift", "protocol": "query", "serviceFullName": "Amazon Redshift", "signatureVersion": "v4", "xmlNamespace": "http://redshift.amazonaws.com/doc/2012-12-01/" }, "operations": { "AuthorizeClusterSecurityGroupIngress": { "input": { "type": "structure", "required": [ "ClusterSecurityGroupName" ], "members": { "ClusterSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "AuthorizeClusterSecurityGroupIngressResult", "type": "structure", "members": { "ClusterSecurityGroup": { "shape": "S4" } } } }, "AuthorizeSnapshotAccess": { "input": { "type": "structure", "required": [ "SnapshotIdentifier", "AccountWithRestoreAccess" ], "members": { "SnapshotIdentifier": {}, "SnapshotClusterIdentifier": {}, "AccountWithRestoreAccess": {} } }, "output": { "resultWrapper": "AuthorizeSnapshotAccessResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "CopyClusterSnapshot": { "input": { "type": "structure", "required": [ "SourceSnapshotIdentifier", "TargetSnapshotIdentifier" ], "members": { "SourceSnapshotIdentifier": {}, "SourceSnapshotClusterIdentifier": {}, "TargetSnapshotIdentifier": {} } }, "output": { "resultWrapper": "CopyClusterSnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "CreateCluster": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "NodeType", "MasterUsername", "MasterUserPassword" ], "members": { "DBName": {}, "ClusterIdentifier": {}, "ClusterType": {}, "NodeType": {}, "MasterUsername": {}, "MasterUserPassword": {}, "ClusterSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "ClusterSubnetGroupName": {}, "AvailabilityZone": {}, "PreferredMaintenanceWindow": {}, "ClusterParameterGroupName": {}, "AutomatedSnapshotRetentionPeriod": { "type": "integer" }, "Port": { "type": "integer" }, "ClusterVersion": {}, "AllowVersionUpgrade": { "type": "boolean" }, "NumberOfNodes": { "type": "integer" }, "PubliclyAccessible": { "type": "boolean" }, "Encrypted": { "type": "boolean" }, "HsmClientCertificateIdentifier": {}, "HsmConfigurationIdentifier": {}, "ElasticIp": {}, "Tags": { "shape": "S7" }, "KmsKeyId": {}, "EnhancedVpcRouting": { "type": "boolean" }, "AdditionalInfo": {}, "IamRoles": { "shape": "St" } } }, "output": { "resultWrapper": "CreateClusterResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "CreateClusterParameterGroup": { "input": { "type": "structure", "required": [ "ParameterGroupName", "ParameterGroupFamily", "Description" ], "members": { "ParameterGroupName": {}, "ParameterGroupFamily": {}, "Description": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateClusterParameterGroupResult", "type": "structure", "members": { "ClusterParameterGroup": { "shape": "S1g" } } } }, "CreateClusterSecurityGroup": { "input": { "type": "structure", "required": [ "ClusterSecurityGroupName", "Description" ], "members": { "ClusterSecurityGroupName": {}, "Description": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateClusterSecurityGroupResult", "type": "structure", "members": { "ClusterSecurityGroup": { "shape": "S4" } } } }, "CreateClusterSnapshot": { "input": { "type": "structure", "required": [ "SnapshotIdentifier", "ClusterIdentifier" ], "members": { "SnapshotIdentifier": {}, "ClusterIdentifier": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateClusterSnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "CreateClusterSubnetGroup": { "input": { "type": "structure", "required": [ "ClusterSubnetGroupName", "Description", "SubnetIds" ], "members": { "ClusterSubnetGroupName": {}, "Description": {}, "SubnetIds": { "shape": "S1m" }, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateClusterSubnetGroupResult", "type": "structure", "members": { "ClusterSubnetGroup": { "shape": "S1o" } } } }, "CreateEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName", "SnsTopicArn" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "SourceIds": { "shape": "S1t" }, "EventCategories": { "shape": "S1u" }, "Severity": {}, "Enabled": { "type": "boolean" }, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S1w" } } } }, "CreateHsmClientCertificate": { "input": { "type": "structure", "required": [ "HsmClientCertificateIdentifier" ], "members": { "HsmClientCertificateIdentifier": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateHsmClientCertificateResult", "type": "structure", "members": { "HsmClientCertificate": { "shape": "S1z" } } } }, "CreateHsmConfiguration": { "input": { "type": "structure", "required": [ "HsmConfigurationIdentifier", "Description", "HsmIpAddress", "HsmPartitionName", "HsmPartitionPassword", "HsmServerPublicCertificate" ], "members": { "HsmConfigurationIdentifier": {}, "Description": {}, "HsmIpAddress": {}, "HsmPartitionName": {}, "HsmPartitionPassword": {}, "HsmServerPublicCertificate": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateHsmConfigurationResult", "type": "structure", "members": { "HsmConfiguration": { "shape": "S22" } } } }, "CreateSnapshotCopyGrant": { "input": { "type": "structure", "required": [ "SnapshotCopyGrantName" ], "members": { "SnapshotCopyGrantName": {}, "KmsKeyId": {}, "Tags": { "shape": "S7" } } }, "output": { "resultWrapper": "CreateSnapshotCopyGrantResult", "type": "structure", "members": { "SnapshotCopyGrant": { "shape": "S25" } } } }, "CreateTags": { "input": { "type": "structure", "required": [ "ResourceName", "Tags" ], "members": { "ResourceName": {}, "Tags": { "shape": "S7" } } } }, "DeleteCluster": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {}, "SkipFinalClusterSnapshot": { "type": "boolean" }, "FinalClusterSnapshotIdentifier": {} } }, "output": { "resultWrapper": "DeleteClusterResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "DeleteClusterParameterGroup": { "input": { "type": "structure", "required": [ "ParameterGroupName" ], "members": { "ParameterGroupName": {} } } }, "DeleteClusterSecurityGroup": { "input": { "type": "structure", "required": [ "ClusterSecurityGroupName" ], "members": { "ClusterSecurityGroupName": {} } } }, "DeleteClusterSnapshot": { "input": { "type": "structure", "required": [ "SnapshotIdentifier" ], "members": { "SnapshotIdentifier": {}, "SnapshotClusterIdentifier": {} } }, "output": { "resultWrapper": "DeleteClusterSnapshotResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "DeleteClusterSubnetGroup": { "input": { "type": "structure", "required": [ "ClusterSubnetGroupName" ], "members": { "ClusterSubnetGroupName": {} } } }, "DeleteEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {} } } }, "DeleteHsmClientCertificate": { "input": { "type": "structure", "required": [ "HsmClientCertificateIdentifier" ], "members": { "HsmClientCertificateIdentifier": {} } } }, "DeleteHsmConfiguration": { "input": { "type": "structure", "required": [ "HsmConfigurationIdentifier" ], "members": { "HsmConfigurationIdentifier": {} } } }, "DeleteSnapshotCopyGrant": { "input": { "type": "structure", "required": [ "SnapshotCopyGrantName" ], "members": { "SnapshotCopyGrantName": {} } } }, "DeleteTags": { "input": { "type": "structure", "required": [ "ResourceName", "TagKeys" ], "members": { "ResourceName": {}, "TagKeys": { "shape": "S2j" } } } }, "DescribeClusterParameterGroups": { "input": { "type": "structure", "members": { "ParameterGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeClusterParameterGroupsResult", "type": "structure", "members": { "Marker": {}, "ParameterGroups": { "type": "list", "member": { "shape": "S1g", "locationName": "ClusterParameterGroup" } } } } }, "DescribeClusterParameters": { "input": { "type": "structure", "required": [ "ParameterGroupName" ], "members": { "ParameterGroupName": {}, "Source": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeClusterParametersResult", "type": "structure", "members": { "Parameters": { "shape": "S2q" }, "Marker": {} } } }, "DescribeClusterSecurityGroups": { "input": { "type": "structure", "members": { "ClusterSecurityGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeClusterSecurityGroupsResult", "type": "structure", "members": { "Marker": {}, "ClusterSecurityGroups": { "type": "list", "member": { "shape": "S4", "locationName": "ClusterSecurityGroup" } } } } }, "DescribeClusterSnapshots": { "input": { "type": "structure", "members": { "ClusterIdentifier": {}, "SnapshotIdentifier": {}, "SnapshotType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "MaxRecords": { "type": "integer" }, "Marker": {}, "OwnerAccount": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeClusterSnapshotsResult", "type": "structure", "members": { "Marker": {}, "Snapshots": { "type": "list", "member": { "shape": "Sd", "locationName": "Snapshot" } } } } }, "DescribeClusterSubnetGroups": { "input": { "type": "structure", "members": { "ClusterSubnetGroupName": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeClusterSubnetGroupsResult", "type": "structure", "members": { "Marker": {}, "ClusterSubnetGroups": { "type": "list", "member": { "shape": "S1o", "locationName": "ClusterSubnetGroup" } } } } }, "DescribeClusterVersions": { "input": { "type": "structure", "members": { "ClusterVersion": {}, "ClusterParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeClusterVersionsResult", "type": "structure", "members": { "Marker": {}, "ClusterVersions": { "type": "list", "member": { "locationName": "ClusterVersion", "type": "structure", "members": { "ClusterVersion": {}, "ClusterParameterGroupFamily": {}, "Description": {} } } } } } }, "DescribeClusters": { "input": { "type": "structure", "members": { "ClusterIdentifier": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeClustersResult", "type": "structure", "members": { "Marker": {}, "Clusters": { "type": "list", "member": { "shape": "Sv", "locationName": "Cluster" } } } } }, "DescribeDefaultClusterParameters": { "input": { "type": "structure", "required": [ "ParameterGroupFamily" ], "members": { "ParameterGroupFamily": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeDefaultClusterParametersResult", "type": "structure", "members": { "DefaultClusterParameters": { "type": "structure", "members": { "ParameterGroupFamily": {}, "Marker": {}, "Parameters": { "shape": "S2q" } }, "wrapper": true } } } }, "DescribeEventCategories": { "input": { "type": "structure", "members": { "SourceType": {} } }, "output": { "resultWrapper": "DescribeEventCategoriesResult", "type": "structure", "members": { "EventCategoriesMapList": { "type": "list", "member": { "locationName": "EventCategoriesMap", "type": "structure", "members": { "SourceType": {}, "Events": { "type": "list", "member": { "locationName": "EventInfoMap", "type": "structure", "members": { "EventId": {}, "EventCategories": { "shape": "S1u" }, "EventDescription": {}, "Severity": {} }, "wrapper": true } } }, "wrapper": true } } } } }, "DescribeEventSubscriptions": { "input": { "type": "structure", "members": { "SubscriptionName": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventSubscriptionsResult", "type": "structure", "members": { "Marker": {}, "EventSubscriptionsList": { "type": "list", "member": { "shape": "S1w", "locationName": "EventSubscription" } } } } }, "DescribeEvents": { "input": { "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeEventsResult", "type": "structure", "members": { "Marker": {}, "Events": { "type": "list", "member": { "locationName": "Event", "type": "structure", "members": { "SourceIdentifier": {}, "SourceType": {}, "Message": {}, "EventCategories": { "shape": "S1u" }, "Severity": {}, "Date": { "type": "timestamp" }, "EventId": {} } } } } } }, "DescribeHsmClientCertificates": { "input": { "type": "structure", "members": { "HsmClientCertificateIdentifier": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeHsmClientCertificatesResult", "type": "structure", "members": { "Marker": {}, "HsmClientCertificates": { "type": "list", "member": { "shape": "S1z", "locationName": "HsmClientCertificate" } } } } }, "DescribeHsmConfigurations": { "input": { "type": "structure", "members": { "HsmConfigurationIdentifier": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeHsmConfigurationsResult", "type": "structure", "members": { "Marker": {}, "HsmConfigurations": { "type": "list", "member": { "shape": "S22", "locationName": "HsmConfiguration" } } } } }, "DescribeLoggingStatus": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "shape": "S3x", "resultWrapper": "DescribeLoggingStatusResult" } }, "DescribeOrderableClusterOptions": { "input": { "type": "structure", "members": { "ClusterVersion": {}, "NodeType": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeOrderableClusterOptionsResult", "type": "structure", "members": { "OrderableClusterOptions": { "type": "list", "member": { "locationName": "OrderableClusterOption", "type": "structure", "members": { "ClusterVersion": {}, "ClusterType": {}, "NodeType": {}, "AvailabilityZones": { "type": "list", "member": { "shape": "S1r", "locationName": "AvailabilityZone" } } }, "wrapper": true } }, "Marker": {} } } }, "DescribeReservedNodeOfferings": { "input": { "type": "structure", "members": { "ReservedNodeOfferingId": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedNodeOfferingsResult", "type": "structure", "members": { "Marker": {}, "ReservedNodeOfferings": { "type": "list", "member": { "locationName": "ReservedNodeOffering", "type": "structure", "members": { "ReservedNodeOfferingId": {}, "NodeType": {}, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "OfferingType": {}, "RecurringCharges": { "shape": "S47" } }, "wrapper": true } } } } }, "DescribeReservedNodes": { "input": { "type": "structure", "members": { "ReservedNodeId": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeReservedNodesResult", "type": "structure", "members": { "Marker": {}, "ReservedNodes": { "type": "list", "member": { "shape": "S4c", "locationName": "ReservedNode" } } } } }, "DescribeResize": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "resultWrapper": "DescribeResizeResult", "type": "structure", "members": { "TargetNodeType": {}, "TargetNumberOfNodes": { "type": "integer" }, "TargetClusterType": {}, "Status": {}, "ImportTablesCompleted": { "type": "list", "member": {} }, "ImportTablesInProgress": { "type": "list", "member": {} }, "ImportTablesNotStarted": { "type": "list", "member": {} }, "AvgResizeRateInMegaBytesPerSecond": { "type": "double" }, "TotalResizeDataInMegaBytes": { "type": "long" }, "ProgressInMegaBytes": { "type": "long" }, "ElapsedTimeInSeconds": { "type": "long" }, "EstimatedTimeToCompletionInSeconds": { "type": "long" } } } }, "DescribeSnapshotCopyGrants": { "input": { "type": "structure", "members": { "SnapshotCopyGrantName": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeSnapshotCopyGrantsResult", "type": "structure", "members": { "Marker": {}, "SnapshotCopyGrants": { "type": "list", "member": { "shape": "S25", "locationName": "SnapshotCopyGrant" } } } } }, "DescribeTableRestoreStatus": { "input": { "type": "structure", "members": { "ClusterIdentifier": {}, "TableRestoreRequestId": {}, "MaxRecords": { "type": "integer" }, "Marker": {} } }, "output": { "resultWrapper": "DescribeTableRestoreStatusResult", "type": "structure", "members": { "TableRestoreStatusDetails": { "type": "list", "member": { "shape": "S4q", "locationName": "TableRestoreStatus" } }, "Marker": {} } } }, "DescribeTags": { "input": { "type": "structure", "members": { "ResourceName": {}, "ResourceType": {}, "MaxRecords": { "type": "integer" }, "Marker": {}, "TagKeys": { "shape": "S2j" }, "TagValues": { "shape": "S2l" } } }, "output": { "resultWrapper": "DescribeTagsResult", "type": "structure", "members": { "TaggedResources": { "type": "list", "member": { "locationName": "TaggedResource", "type": "structure", "members": { "Tag": { "shape": "S8" }, "ResourceName": {}, "ResourceType": {} } } }, "Marker": {} } } }, "DisableLogging": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "shape": "S3x", "resultWrapper": "DisableLoggingResult" } }, "DisableSnapshotCopy": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "resultWrapper": "DisableSnapshotCopyResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "EnableLogging": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "BucketName" ], "members": { "ClusterIdentifier": {}, "BucketName": {}, "S3KeyPrefix": {} } }, "output": { "shape": "S3x", "resultWrapper": "EnableLoggingResult" } }, "EnableSnapshotCopy": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "DestinationRegion" ], "members": { "ClusterIdentifier": {}, "DestinationRegion": {}, "RetentionPeriod": { "type": "integer" }, "SnapshotCopyGrantName": {} } }, "output": { "resultWrapper": "EnableSnapshotCopyResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "ModifyCluster": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {}, "ClusterType": {}, "NodeType": {}, "NumberOfNodes": { "type": "integer" }, "ClusterSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "MasterUserPassword": {}, "ClusterParameterGroupName": {}, "AutomatedSnapshotRetentionPeriod": { "type": "integer" }, "PreferredMaintenanceWindow": {}, "ClusterVersion": {}, "AllowVersionUpgrade": { "type": "boolean" }, "HsmClientCertificateIdentifier": {}, "HsmConfigurationIdentifier": {}, "NewClusterIdentifier": {}, "PubliclyAccessible": { "type": "boolean" }, "ElasticIp": {}, "EnhancedVpcRouting": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyClusterResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "ModifyClusterIamRoles": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {}, "AddIamRoles": { "shape": "St" }, "RemoveIamRoles": { "shape": "St" } } }, "output": { "resultWrapper": "ModifyClusterIamRolesResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "ModifyClusterParameterGroup": { "input": { "type": "structure", "required": [ "ParameterGroupName", "Parameters" ], "members": { "ParameterGroupName": {}, "Parameters": { "shape": "S2q" } } }, "output": { "shape": "S57", "resultWrapper": "ModifyClusterParameterGroupResult" } }, "ModifyClusterSubnetGroup": { "input": { "type": "structure", "required": [ "ClusterSubnetGroupName", "SubnetIds" ], "members": { "ClusterSubnetGroupName": {}, "Description": {}, "SubnetIds": { "shape": "S1m" } } }, "output": { "resultWrapper": "ModifyClusterSubnetGroupResult", "type": "structure", "members": { "ClusterSubnetGroup": { "shape": "S1o" } } } }, "ModifyEventSubscription": { "input": { "type": "structure", "required": [ "SubscriptionName" ], "members": { "SubscriptionName": {}, "SnsTopicArn": {}, "SourceType": {}, "SourceIds": { "shape": "S1t" }, "EventCategories": { "shape": "S1u" }, "Severity": {}, "Enabled": { "type": "boolean" } } }, "output": { "resultWrapper": "ModifyEventSubscriptionResult", "type": "structure", "members": { "EventSubscription": { "shape": "S1w" } } } }, "ModifySnapshotCopyRetentionPeriod": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "RetentionPeriod" ], "members": { "ClusterIdentifier": {}, "RetentionPeriod": { "type": "integer" } } }, "output": { "resultWrapper": "ModifySnapshotCopyRetentionPeriodResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "PurchaseReservedNodeOffering": { "input": { "type": "structure", "required": [ "ReservedNodeOfferingId" ], "members": { "ReservedNodeOfferingId": {}, "NodeCount": { "type": "integer" } } }, "output": { "resultWrapper": "PurchaseReservedNodeOfferingResult", "type": "structure", "members": { "ReservedNode": { "shape": "S4c" } } } }, "RebootCluster": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "resultWrapper": "RebootClusterResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "ResetClusterParameterGroup": { "input": { "type": "structure", "required": [ "ParameterGroupName" ], "members": { "ParameterGroupName": {}, "ResetAllParameters": { "type": "boolean" }, "Parameters": { "shape": "S2q" } } }, "output": { "shape": "S57", "resultWrapper": "ResetClusterParameterGroupResult" } }, "RestoreFromClusterSnapshot": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "SnapshotIdentifier" ], "members": { "ClusterIdentifier": {}, "SnapshotIdentifier": {}, "SnapshotClusterIdentifier": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "AllowVersionUpgrade": { "type": "boolean" }, "ClusterSubnetGroupName": {}, "PubliclyAccessible": { "type": "boolean" }, "OwnerAccount": {}, "HsmClientCertificateIdentifier": {}, "HsmConfigurationIdentifier": {}, "ElasticIp": {}, "ClusterParameterGroupName": {}, "ClusterSecurityGroups": { "shape": "Sp" }, "VpcSecurityGroupIds": { "shape": "Sq" }, "PreferredMaintenanceWindow": {}, "AutomatedSnapshotRetentionPeriod": { "type": "integer" }, "KmsKeyId": {}, "NodeType": {}, "EnhancedVpcRouting": { "type": "boolean" }, "AdditionalInfo": {}, "IamRoles": { "shape": "St" } } }, "output": { "resultWrapper": "RestoreFromClusterSnapshotResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } }, "RestoreTableFromClusterSnapshot": { "input": { "type": "structure", "required": [ "ClusterIdentifier", "SnapshotIdentifier", "SourceDatabaseName", "SourceTableName", "NewTableName" ], "members": { "ClusterIdentifier": {}, "SnapshotIdentifier": {}, "SourceDatabaseName": {}, "SourceSchemaName": {}, "SourceTableName": {}, "TargetDatabaseName": {}, "TargetSchemaName": {}, "NewTableName": {} } }, "output": { "resultWrapper": "RestoreTableFromClusterSnapshotResult", "type": "structure", "members": { "TableRestoreStatus": { "shape": "S4q" } } } }, "RevokeClusterSecurityGroupIngress": { "input": { "type": "structure", "required": [ "ClusterSecurityGroupName" ], "members": { "ClusterSecurityGroupName": {}, "CIDRIP": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {} } }, "output": { "resultWrapper": "RevokeClusterSecurityGroupIngressResult", "type": "structure", "members": { "ClusterSecurityGroup": { "shape": "S4" } } } }, "RevokeSnapshotAccess": { "input": { "type": "structure", "required": [ "SnapshotIdentifier", "AccountWithRestoreAccess" ], "members": { "SnapshotIdentifier": {}, "SnapshotClusterIdentifier": {}, "AccountWithRestoreAccess": {} } }, "output": { "resultWrapper": "RevokeSnapshotAccessResult", "type": "structure", "members": { "Snapshot": { "shape": "Sd" } } } }, "RotateEncryptionKey": { "input": { "type": "structure", "required": [ "ClusterIdentifier" ], "members": { "ClusterIdentifier": {} } }, "output": { "resultWrapper": "RotateEncryptionKeyResult", "type": "structure", "members": { "Cluster": { "shape": "Sv" } } } } }, "shapes": { "S4": { "type": "structure", "members": { "ClusterSecurityGroupName": {}, "Description": {}, "EC2SecurityGroups": { "type": "list", "member": { "locationName": "EC2SecurityGroup", "type": "structure", "members": { "Status": {}, "EC2SecurityGroupName": {}, "EC2SecurityGroupOwnerId": {}, "Tags": { "shape": "S7" } } } }, "IPRanges": { "type": "list", "member": { "locationName": "IPRange", "type": "structure", "members": { "Status": {}, "CIDRIP": {}, "Tags": { "shape": "S7" } } } }, "Tags": { "shape": "S7" } }, "wrapper": true }, "S7": { "type": "list", "member": { "shape": "S8", "locationName": "Tag" } }, "S8": { "type": "structure", "members": { "Key": {}, "Value": {} } }, "Sd": { "type": "structure", "members": { "SnapshotIdentifier": {}, "ClusterIdentifier": {}, "SnapshotCreateTime": { "type": "timestamp" }, "Status": {}, "Port": { "type": "integer" }, "AvailabilityZone": {}, "ClusterCreateTime": { "type": "timestamp" }, "MasterUsername": {}, "ClusterVersion": {}, "SnapshotType": {}, "NodeType": {}, "NumberOfNodes": { "type": "integer" }, "DBName": {}, "VpcId": {}, "Encrypted": { "type": "boolean" }, "KmsKeyId": {}, "EncryptedWithHSM": { "type": "boolean" }, "AccountsWithRestoreAccess": { "type": "list", "member": { "locationName": "AccountWithRestoreAccess", "type": "structure", "members": { "AccountId": {} } } }, "OwnerAccount": {}, "TotalBackupSizeInMegaBytes": { "type": "double" }, "ActualIncrementalBackupSizeInMegaBytes": { "type": "double" }, "BackupProgressInMegaBytes": { "type": "double" }, "CurrentBackupRateInMegaBytesPerSecond": { "type": "double" }, "EstimatedSecondsToCompletion": { "type": "long" }, "ElapsedTimeInSeconds": { "type": "long" }, "SourceRegion": {}, "Tags": { "shape": "S7" }, "RestorableNodeTypes": { "type": "list", "member": { "locationName": "NodeType" } }, "EnhancedVpcRouting": { "type": "boolean" } }, "wrapper": true }, "Sp": { "type": "list", "member": { "locationName": "ClusterSecurityGroupName" } }, "Sq": { "type": "list", "member": { "locationName": "VpcSecurityGroupId" } }, "St": { "type": "list", "member": { "locationName": "IamRoleArn" } }, "Sv": { "type": "structure", "members": { "ClusterIdentifier": {}, "NodeType": {}, "ClusterStatus": {}, "ModifyStatus": {}, "MasterUsername": {}, "DBName": {}, "Endpoint": { "type": "structure", "members": { "Address": {}, "Port": { "type": "integer" } } }, "ClusterCreateTime": { "type": "timestamp" }, "AutomatedSnapshotRetentionPeriod": { "type": "integer" }, "ClusterSecurityGroups": { "type": "list", "member": { "locationName": "ClusterSecurityGroup", "type": "structure", "members": { "ClusterSecurityGroupName": {}, "Status": {} } } }, "VpcSecurityGroups": { "type": "list", "member": { "locationName": "VpcSecurityGroup", "type": "structure", "members": { "VpcSecurityGroupId": {}, "Status": {} } } }, "ClusterParameterGroups": { "type": "list", "member": { "locationName": "ClusterParameterGroup", "type": "structure", "members": { "ParameterGroupName": {}, "ParameterApplyStatus": {}, "ClusterParameterStatusList": { "type": "list", "member": { "type": "structure", "members": { "ParameterName": {}, "ParameterApplyStatus": {}, "ParameterApplyErrorDescription": {} } } } } } }, "ClusterSubnetGroupName": {}, "VpcId": {}, "AvailabilityZone": {}, "PreferredMaintenanceWindow": {}, "PendingModifiedValues": { "type": "structure", "members": { "MasterUserPassword": {}, "NodeType": {}, "NumberOfNodes": { "type": "integer" }, "ClusterType": {}, "ClusterVersion": {}, "AutomatedSnapshotRetentionPeriod": { "type": "integer" }, "ClusterIdentifier": {}, "PubliclyAccessible": { "type": "boolean" }, "EnhancedVpcRouting": { "type": "boolean" } } }, "ClusterVersion": {}, "AllowVersionUpgrade": { "type": "boolean" }, "NumberOfNodes": { "type": "integer" }, "PubliclyAccessible": { "type": "boolean" }, "Encrypted": { "type": "boolean" }, "RestoreStatus": { "type": "structure", "members": { "Status": {}, "CurrentRestoreRateInMegaBytesPerSecond": { "type": "double" }, "SnapshotSizeInMegaBytes": { "type": "long" }, "ProgressInMegaBytes": { "type": "long" }, "ElapsedTimeInSeconds": { "type": "long" }, "EstimatedTimeToCompletionInSeconds": { "type": "long" } } }, "HsmStatus": { "type": "structure", "members": { "HsmClientCertificateIdentifier": {}, "HsmConfigurationIdentifier": {}, "Status": {} } }, "ClusterSnapshotCopyStatus": { "type": "structure", "members": { "DestinationRegion": {}, "RetentionPeriod": { "type": "long" }, "SnapshotCopyGrantName": {} } }, "ClusterPublicKey": {}, "ClusterNodes": { "type": "list", "member": { "type": "structure", "members": { "NodeRole": {}, "PrivateIPAddress": {}, "PublicIPAddress": {} } } }, "ElasticIpStatus": { "type": "structure", "members": { "ElasticIp": {}, "Status": {} } }, "ClusterRevisionNumber": {}, "Tags": { "shape": "S7" }, "KmsKeyId": {}, "EnhancedVpcRouting": { "type": "boolean" }, "IamRoles": { "type": "list", "member": { "locationName": "ClusterIamRole", "type": "structure", "members": { "IamRoleArn": {}, "ApplyStatus": {} } } } }, "wrapper": true }, "S1g": { "type": "structure", "members": { "ParameterGroupName": {}, "ParameterGroupFamily": {}, "Description": {}, "Tags": { "shape": "S7" } }, "wrapper": true }, "S1m": { "type": "list", "member": { "locationName": "SubnetIdentifier" } }, "S1o": { "type": "structure", "members": { "ClusterSubnetGroupName": {}, "Description": {}, "VpcId": {}, "SubnetGroupStatus": {}, "Subnets": { "type": "list", "member": { "locationName": "Subnet", "type": "structure", "members": { "SubnetIdentifier": {}, "SubnetAvailabilityZone": { "shape": "S1r" }, "SubnetStatus": {} } } }, "Tags": { "shape": "S7" } }, "wrapper": true }, "S1r": { "type": "structure", "members": { "Name": {} }, "wrapper": true }, "S1t": { "type": "list", "member": { "locationName": "SourceId" } }, "S1u": { "type": "list", "member": { "locationName": "EventCategory" } }, "S1w": { "type": "structure", "members": { "CustomerAwsId": {}, "CustSubscriptionId": {}, "SnsTopicArn": {}, "Status": {}, "SubscriptionCreationTime": { "type": "timestamp" }, "SourceType": {}, "SourceIdsList": { "shape": "S1t" }, "EventCategoriesList": { "shape": "S1u" }, "Severity": {}, "Enabled": { "type": "boolean" }, "Tags": { "shape": "S7" } }, "wrapper": true }, "S1z": { "type": "structure", "members": { "HsmClientCertificateIdentifier": {}, "HsmClientCertificatePublicKey": {}, "Tags": { "shape": "S7" } }, "wrapper": true }, "S22": { "type": "structure", "members": { "HsmConfigurationIdentifier": {}, "Description": {}, "HsmIpAddress": {}, "HsmPartitionName": {}, "Tags": { "shape": "S7" } }, "wrapper": true }, "S25": { "type": "structure", "members": { "SnapshotCopyGrantName": {}, "KmsKeyId": {}, "Tags": { "shape": "S7" } }, "wrapper": true }, "S2j": { "type": "list", "member": { "locationName": "TagKey" } }, "S2l": { "type": "list", "member": { "locationName": "TagValue" } }, "S2q": { "type": "list", "member": { "locationName": "Parameter", "type": "structure", "members": { "ParameterName": {}, "ParameterValue": {}, "Description": {}, "Source": {}, "DataType": {}, "AllowedValues": {}, "ApplyType": {}, "IsModifiable": { "type": "boolean" }, "MinimumEngineVersion": {} } } }, "S3x": { "type": "structure", "members": { "LoggingEnabled": { "type": "boolean" }, "BucketName": {}, "S3KeyPrefix": {}, "LastSuccessfulDeliveryTime": { "type": "timestamp" }, "LastFailureTime": { "type": "timestamp" }, "LastFailureMessage": {} } }, "S47": { "type": "list", "member": { "locationName": "RecurringCharge", "type": "structure", "members": { "RecurringChargeAmount": { "type": "double" }, "RecurringChargeFrequency": {} }, "wrapper": true } }, "S4c": { "type": "structure", "members": { "ReservedNodeId": {}, "ReservedNodeOfferingId": {}, "NodeType": {}, "StartTime": { "type": "timestamp" }, "Duration": { "type": "integer" }, "FixedPrice": { "type": "double" }, "UsagePrice": { "type": "double" }, "CurrencyCode": {}, "NodeCount": { "type": "integer" }, "State": {}, "OfferingType": {}, "RecurringCharges": { "shape": "S47" } }, "wrapper": true }, "S4q": { "type": "structure", "members": { "TableRestoreRequestId": {}, "Status": {}, "Message": {}, "RequestTime": { "type": "timestamp" }, "ProgressInMegaBytes": { "type": "long" }, "TotalDataInMegaBytes": { "type": "long" }, "ClusterIdentifier": {}, "SnapshotIdentifier": {}, "SourceDatabaseName": {}, "SourceSchemaName": {}, "SourceTableName": {}, "TargetDatabaseName": {}, "TargetSchemaName": {}, "NewTableName": {} }, "wrapper": true }, "S57": { "type": "structure", "members": { "ParameterGroupName": {}, "ParameterGroupStatus": {} } } } } },{}],113:[function(require,module,exports){ module.exports={ "pagination": { "DescribeClusterParameterGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ParameterGroups" }, "DescribeClusterParameters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Parameters" }, "DescribeClusterSecurityGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ClusterSecurityGroups" }, "DescribeClusterSnapshots": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Snapshots" }, "DescribeClusterSubnetGroups": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ClusterSubnetGroups" }, "DescribeClusterVersions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ClusterVersions" }, "DescribeClusters": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Clusters" }, "DescribeDefaultClusterParameters": { "input_token": "Marker", "output_token": "DefaultClusterParameters.Marker", "limit_key": "MaxRecords", "result_key": "DefaultClusterParameters.Parameters" }, "DescribeEventSubscriptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "EventSubscriptionsList" }, "DescribeEvents": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "Events" }, "DescribeHsmClientCertificates": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "HsmClientCertificates" }, "DescribeHsmConfigurations": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "HsmConfigurations" }, "DescribeOrderableClusterOptions": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "OrderableClusterOptions" }, "DescribeReservedNodeOfferings": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedNodeOfferings" }, "DescribeReservedNodes": { "input_token": "Marker", "output_token": "Marker", "limit_key": "MaxRecords", "result_key": "ReservedNodes" } } } },{}],114:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "ClusterAvailable": { "delay": 60, "operation": "DescribeClusters", "maxAttempts": 30, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "Clusters[].ClusterStatus" }, { "expected": "deleting", "matcher": "pathAny", "state": "failure", "argument": "Clusters[].ClusterStatus" }, { "expected": "ClusterNotFound", "matcher": "error", "state": "retry" } ] }, "ClusterDeleted": { "delay": 60, "operation": "DescribeClusters", "maxAttempts": 30, "acceptors": [ { "expected": "ClusterNotFound", "matcher": "error", "state": "success" }, { "expected": "creating", "matcher": "pathAny", "state": "failure", "argument": "Clusters[].ClusterStatus" }, { "expected": "modifying", "matcher": "pathAny", "state": "failure", "argument": "Clusters[].ClusterStatus" } ] }, "ClusterRestored": { "operation": "DescribeClusters", "maxAttempts": 30, "delay": 60, "acceptors": [ { "state": "success", "matcher": "pathAll", "argument": "Clusters[].RestoreStatus.Status", "expected": "completed" }, { "state": "failure", "matcher": "pathAny", "argument": "Clusters[].ClusterStatus", "expected": "deleting" } ] }, "SnapshotAvailable": { "delay": 15, "operation": "DescribeClusterSnapshots", "maxAttempts": 20, "acceptors": [ { "expected": "available", "matcher": "pathAll", "state": "success", "argument": "Snapshots[].Status" }, { "expected": "failed", "matcher": "pathAny", "state": "failure", "argument": "Snapshots[].Status" }, { "expected": "deleted", "matcher": "pathAny", "state": "failure", "argument": "Snapshots[].Status" } ] } } } },{}],115:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-04-01", "endpointPrefix": "route53", "globalEndpoint": "route53.amazonaws.com", "protocol": "rest-xml", "serviceAbbreviation": "Route 53", "serviceFullName": "Amazon Route 53", "signatureVersion": "v4" }, "operations": { "AssociateVPCWithHostedZone": { "http": { "requestUri": "/2013-04-01/hostedzone/{Id}/associatevpc" }, "input": { "locationName": "AssociateVPCWithHostedZoneRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "HostedZoneId", "VPC" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "VPC": { "shape": "S3" }, "Comment": {} } }, "output": { "type": "structure", "required": [ "ChangeInfo" ], "members": { "ChangeInfo": { "shape": "S8" } } } }, "ChangeResourceRecordSets": { "http": { "requestUri": "/2013-04-01/hostedzone/{Id}/rrset/" }, "input": { "locationName": "ChangeResourceRecordSetsRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "HostedZoneId", "ChangeBatch" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "ChangeBatch": { "type": "structure", "required": [ "Changes" ], "members": { "Comment": {}, "Changes": { "shape": "Se" } } } } }, "output": { "type": "structure", "required": [ "ChangeInfo" ], "members": { "ChangeInfo": { "shape": "S8" } } } }, "ChangeTagsForResource": { "http": { "requestUri": "/2013-04-01/tags/{ResourceType}/{ResourceId}" }, "input": { "locationName": "ChangeTagsForResourceRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "ResourceType", "ResourceId" ], "members": { "ResourceType": { "location": "uri", "locationName": "ResourceType" }, "ResourceId": { "location": "uri", "locationName": "ResourceId" }, "AddTags": { "shape": "S14" }, "RemoveTagKeys": { "type": "list", "member": { "locationName": "Key" } } } }, "output": { "type": "structure", "members": {} } }, "CreateHealthCheck": { "http": { "requestUri": "/2013-04-01/healthcheck", "responseCode": 201 }, "input": { "locationName": "CreateHealthCheckRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "CallerReference", "HealthCheckConfig" ], "members": { "CallerReference": {}, "HealthCheckConfig": { "shape": "S1c" } } }, "output": { "type": "structure", "required": [ "HealthCheck", "Location" ], "members": { "HealthCheck": { "shape": "S1x" }, "Location": { "location": "header", "locationName": "Location" } } } }, "CreateHostedZone": { "http": { "requestUri": "/2013-04-01/hostedzone", "responseCode": 201 }, "input": { "locationName": "CreateHostedZoneRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Name", "CallerReference" ], "members": { "Name": {}, "VPC": { "shape": "S3" }, "CallerReference": {}, "HostedZoneConfig": { "shape": "S2d" }, "DelegationSetId": {} } }, "output": { "type": "structure", "required": [ "HostedZone", "ChangeInfo", "DelegationSet", "Location" ], "members": { "HostedZone": { "shape": "S2g" }, "ChangeInfo": { "shape": "S8" }, "DelegationSet": { "shape": "S2i" }, "VPC": { "shape": "S3" }, "Location": { "location": "header", "locationName": "Location" } } } }, "CreateReusableDelegationSet": { "http": { "requestUri": "/2013-04-01/delegationset", "responseCode": 201 }, "input": { "locationName": "CreateReusableDelegationSetRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "CallerReference" ], "members": { "CallerReference": {}, "HostedZoneId": {} } }, "output": { "type": "structure", "required": [ "DelegationSet", "Location" ], "members": { "DelegationSet": { "shape": "S2i" }, "Location": { "location": "header", "locationName": "Location" } } } }, "CreateTrafficPolicy": { "http": { "requestUri": "/2013-04-01/trafficpolicy", "responseCode": 201 }, "input": { "locationName": "CreateTrafficPolicyRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Name", "Document" ], "members": { "Name": {}, "Document": {}, "Comment": {} } }, "output": { "type": "structure", "required": [ "TrafficPolicy", "Location" ], "members": { "TrafficPolicy": { "shape": "S2r" }, "Location": { "location": "header", "locationName": "Location" } } } }, "CreateTrafficPolicyInstance": { "http": { "requestUri": "/2013-04-01/trafficpolicyinstance", "responseCode": 201 }, "input": { "locationName": "CreateTrafficPolicyInstanceRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "HostedZoneId", "Name", "TTL", "TrafficPolicyId", "TrafficPolicyVersion" ], "members": { "HostedZoneId": {}, "Name": {}, "TTL": { "type": "long" }, "TrafficPolicyId": {}, "TrafficPolicyVersion": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstance", "Location" ], "members": { "TrafficPolicyInstance": { "shape": "S2w" }, "Location": { "location": "header", "locationName": "Location" } } } }, "CreateTrafficPolicyVersion": { "http": { "requestUri": "/2013-04-01/trafficpolicy/{Id}", "responseCode": 201 }, "input": { "locationName": "CreateTrafficPolicyVersionRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Id", "Document" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Document": {}, "Comment": {} } }, "output": { "type": "structure", "required": [ "TrafficPolicy", "Location" ], "members": { "TrafficPolicy": { "shape": "S2r" }, "Location": { "location": "header", "locationName": "Location" } } } }, "DeleteHealthCheck": { "http": { "method": "DELETE", "requestUri": "/2013-04-01/healthcheck/{HealthCheckId}" }, "input": { "type": "structure", "required": [ "HealthCheckId" ], "members": { "HealthCheckId": { "location": "uri", "locationName": "HealthCheckId" } } }, "output": { "type": "structure", "members": {} } }, "DeleteHostedZone": { "http": { "method": "DELETE", "requestUri": "/2013-04-01/hostedzone/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "required": [ "ChangeInfo" ], "members": { "ChangeInfo": { "shape": "S8" } } } }, "DeleteReusableDelegationSet": { "http": { "method": "DELETE", "requestUri": "/2013-04-01/delegationset/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "DeleteTrafficPolicy": { "http": { "method": "DELETE", "requestUri": "/2013-04-01/trafficpolicy/{Id}/{Version}" }, "input": { "type": "structure", "required": [ "Id", "Version" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Version": { "location": "uri", "locationName": "Version", "type": "integer" } } }, "output": { "type": "structure", "members": {} } }, "DeleteTrafficPolicyInstance": { "http": { "method": "DELETE", "requestUri": "/2013-04-01/trafficpolicyinstance/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": {} } }, "DisassociateVPCFromHostedZone": { "http": { "requestUri": "/2013-04-01/hostedzone/{Id}/disassociatevpc" }, "input": { "locationName": "DisassociateVPCFromHostedZoneRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "HostedZoneId", "VPC" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "VPC": { "shape": "S3" }, "Comment": {} } }, "output": { "type": "structure", "required": [ "ChangeInfo" ], "members": { "ChangeInfo": { "shape": "S8" } } } }, "GetChange": { "http": { "method": "GET", "requestUri": "/2013-04-01/change/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "required": [ "ChangeInfo" ], "members": { "ChangeInfo": { "shape": "S8" } } } }, "GetChangeDetails": { "http": { "method": "GET", "requestUri": "/2013-04-01/changedetails/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } }, "deprecated": true }, "output": { "type": "structure", "required": [ "ChangeBatchRecord" ], "members": { "ChangeBatchRecord": { "shape": "S3i" } }, "deprecated": true }, "deprecated": true }, "GetCheckerIpRanges": { "http": { "method": "GET", "requestUri": "/2013-04-01/checkeripranges" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "required": [ "CheckerIpRanges" ], "members": { "CheckerIpRanges": { "type": "list", "member": {} } } } }, "GetGeoLocation": { "http": { "method": "GET", "requestUri": "/2013-04-01/geolocation" }, "input": { "type": "structure", "members": { "ContinentCode": { "location": "querystring", "locationName": "continentcode" }, "CountryCode": { "location": "querystring", "locationName": "countrycode" }, "SubdivisionCode": { "location": "querystring", "locationName": "subdivisioncode" } } }, "output": { "type": "structure", "required": [ "GeoLocationDetails" ], "members": { "GeoLocationDetails": { "shape": "S3q" } } } }, "GetHealthCheck": { "http": { "method": "GET", "requestUri": "/2013-04-01/healthcheck/{HealthCheckId}" }, "input": { "type": "structure", "required": [ "HealthCheckId" ], "members": { "HealthCheckId": { "location": "uri", "locationName": "HealthCheckId" } } }, "output": { "type": "structure", "required": [ "HealthCheck" ], "members": { "HealthCheck": { "shape": "S1x" } } } }, "GetHealthCheckCount": { "http": { "method": "GET", "requestUri": "/2013-04-01/healthcheckcount" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "required": [ "HealthCheckCount" ], "members": { "HealthCheckCount": { "type": "long" } } } }, "GetHealthCheckLastFailureReason": { "http": { "method": "GET", "requestUri": "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason" }, "input": { "type": "structure", "required": [ "HealthCheckId" ], "members": { "HealthCheckId": { "location": "uri", "locationName": "HealthCheckId" } } }, "output": { "type": "structure", "required": [ "HealthCheckObservations" ], "members": { "HealthCheckObservations": { "shape": "S41" } } } }, "GetHealthCheckStatus": { "http": { "method": "GET", "requestUri": "/2013-04-01/healthcheck/{HealthCheckId}/status" }, "input": { "type": "structure", "required": [ "HealthCheckId" ], "members": { "HealthCheckId": { "location": "uri", "locationName": "HealthCheckId" } } }, "output": { "type": "structure", "required": [ "HealthCheckObservations" ], "members": { "HealthCheckObservations": { "shape": "S41" } } } }, "GetHostedZone": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzone/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "required": [ "HostedZone" ], "members": { "HostedZone": { "shape": "S2g" }, "DelegationSet": { "shape": "S2i" }, "VPCs": { "type": "list", "member": { "shape": "S3", "locationName": "VPC" } } } } }, "GetHostedZoneCount": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzonecount" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "required": [ "HostedZoneCount" ], "members": { "HostedZoneCount": { "type": "long" } } } }, "GetReusableDelegationSet": { "http": { "method": "GET", "requestUri": "/2013-04-01/delegationset/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "required": [ "DelegationSet" ], "members": { "DelegationSet": { "shape": "S2i" } } } }, "GetTrafficPolicy": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicy/{Id}/{Version}" }, "input": { "type": "structure", "required": [ "Id", "Version" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Version": { "location": "uri", "locationName": "Version", "type": "integer" } } }, "output": { "type": "structure", "required": [ "TrafficPolicy" ], "members": { "TrafficPolicy": { "shape": "S2r" } } } }, "GetTrafficPolicyInstance": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicyinstance/{Id}" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstance" ], "members": { "TrafficPolicyInstance": { "shape": "S2w" } } } }, "GetTrafficPolicyInstanceCount": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicyinstancecount" }, "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "required": [ "TrafficPolicyInstanceCount" ], "members": { "TrafficPolicyInstanceCount": { "type": "integer" } } } }, "ListChangeBatchesByHostedZone": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzone/{Id}/changes" }, "input": { "type": "structure", "required": [ "HostedZoneId", "StartDate", "EndDate" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "StartDate": { "shape": "S4n", "location": "querystring", "locationName": "startDate" }, "EndDate": { "shape": "S4n", "location": "querystring", "locationName": "endDate" }, "MaxItems": { "location": "querystring", "locationName": "maxItems" }, "Marker": { "location": "querystring", "locationName": "marker" } }, "deprecated": true }, "output": { "type": "structure", "required": [ "MaxItems", "Marker", "ChangeBatchRecords" ], "members": { "MaxItems": {}, "Marker": {}, "IsTruncated": { "type": "boolean" }, "ChangeBatchRecords": { "shape": "S4s" }, "NextMarker": {} }, "deprecated": true }, "deprecated": true }, "ListChangeBatchesByRRSet": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzone/{Id}/rrsChanges" }, "input": { "type": "structure", "required": [ "HostedZoneId", "Name", "Type", "StartDate", "EndDate" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "Name": { "location": "querystring", "locationName": "rrSet_name" }, "Type": { "location": "querystring", "locationName": "type" }, "SetIdentifier": { "location": "querystring", "locationName": "identifier" }, "StartDate": { "shape": "S4n", "location": "querystring", "locationName": "startDate" }, "EndDate": { "shape": "S4n", "location": "querystring", "locationName": "endDate" }, "MaxItems": { "location": "querystring", "locationName": "maxItems" }, "Marker": { "location": "querystring", "locationName": "marker" } }, "deprecated": true }, "output": { "type": "structure", "required": [ "MaxItems", "Marker", "ChangeBatchRecords" ], "members": { "MaxItems": {}, "Marker": {}, "IsTruncated": { "type": "boolean" }, "ChangeBatchRecords": { "shape": "S4s" }, "NextMarker": {} }, "deprecated": true }, "deprecated": true }, "ListGeoLocations": { "http": { "method": "GET", "requestUri": "/2013-04-01/geolocations" }, "input": { "type": "structure", "members": { "StartContinentCode": { "location": "querystring", "locationName": "startcontinentcode" }, "StartCountryCode": { "location": "querystring", "locationName": "startcountrycode" }, "StartSubdivisionCode": { "location": "querystring", "locationName": "startsubdivisioncode" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "GeoLocationDetailsList", "IsTruncated", "MaxItems" ], "members": { "GeoLocationDetailsList": { "type": "list", "member": { "shape": "S3q", "locationName": "GeoLocationDetails" } }, "IsTruncated": { "type": "boolean" }, "NextContinentCode": {}, "NextCountryCode": {}, "NextSubdivisionCode": {}, "MaxItems": {} } } }, "ListHealthChecks": { "http": { "method": "GET", "requestUri": "/2013-04-01/healthcheck" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "marker" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "HealthChecks", "Marker", "IsTruncated", "MaxItems" ], "members": { "HealthChecks": { "type": "list", "member": { "shape": "S1x", "locationName": "HealthCheck" } }, "Marker": {}, "IsTruncated": { "type": "boolean" }, "NextMarker": {}, "MaxItems": {} } } }, "ListHostedZones": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzone" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "marker" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" }, "DelegationSetId": { "location": "querystring", "locationName": "delegationsetid" } } }, "output": { "type": "structure", "required": [ "HostedZones", "Marker", "IsTruncated", "MaxItems" ], "members": { "HostedZones": { "shape": "S53" }, "Marker": {}, "IsTruncated": { "type": "boolean" }, "NextMarker": {}, "MaxItems": {} } } }, "ListHostedZonesByName": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzonesbyname" }, "input": { "type": "structure", "members": { "DNSName": { "location": "querystring", "locationName": "dnsname" }, "HostedZoneId": { "location": "querystring", "locationName": "hostedzoneid" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "HostedZones", "IsTruncated", "MaxItems" ], "members": { "HostedZones": { "shape": "S53" }, "DNSName": {}, "HostedZoneId": {}, "IsTruncated": { "type": "boolean" }, "NextDNSName": {}, "NextHostedZoneId": {}, "MaxItems": {} } } }, "ListResourceRecordSets": { "http": { "method": "GET", "requestUri": "/2013-04-01/hostedzone/{Id}/rrset" }, "input": { "type": "structure", "required": [ "HostedZoneId" ], "members": { "HostedZoneId": { "location": "uri", "locationName": "Id" }, "StartRecordName": { "location": "querystring", "locationName": "name" }, "StartRecordType": { "location": "querystring", "locationName": "type" }, "StartRecordIdentifier": { "location": "querystring", "locationName": "identifier" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "ResourceRecordSets", "IsTruncated", "MaxItems" ], "members": { "ResourceRecordSets": { "type": "list", "member": { "shape": "Sh", "locationName": "ResourceRecordSet" } }, "IsTruncated": { "type": "boolean" }, "NextRecordName": {}, "NextRecordType": {}, "NextRecordIdentifier": {}, "MaxItems": {} } } }, "ListReusableDelegationSets": { "http": { "method": "GET", "requestUri": "/2013-04-01/delegationset" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "marker" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "DelegationSets", "Marker", "IsTruncated", "MaxItems" ], "members": { "DelegationSets": { "type": "list", "member": { "shape": "S2i", "locationName": "DelegationSet" } }, "Marker": {}, "IsTruncated": { "type": "boolean" }, "NextMarker": {}, "MaxItems": {} } } }, "ListTagsForResource": { "http": { "method": "GET", "requestUri": "/2013-04-01/tags/{ResourceType}/{ResourceId}" }, "input": { "type": "structure", "required": [ "ResourceType", "ResourceId" ], "members": { "ResourceType": { "location": "uri", "locationName": "ResourceType" }, "ResourceId": { "location": "uri", "locationName": "ResourceId" } } }, "output": { "type": "structure", "required": [ "ResourceTagSet" ], "members": { "ResourceTagSet": { "shape": "S5e" } } } }, "ListTagsForResources": { "http": { "requestUri": "/2013-04-01/tags/{ResourceType}" }, "input": { "locationName": "ListTagsForResourcesRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "ResourceType", "ResourceIds" ], "members": { "ResourceType": { "location": "uri", "locationName": "ResourceType" }, "ResourceIds": { "type": "list", "member": { "locationName": "ResourceId" } } } }, "output": { "type": "structure", "required": [ "ResourceTagSets" ], "members": { "ResourceTagSets": { "type": "list", "member": { "shape": "S5e", "locationName": "ResourceTagSet" } } } } }, "ListTrafficPolicies": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicies" }, "input": { "type": "structure", "members": { "TrafficPolicyIdMarker": { "location": "querystring", "locationName": "trafficpolicyid" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "TrafficPolicySummaries", "IsTruncated", "TrafficPolicyIdMarker", "MaxItems" ], "members": { "TrafficPolicySummaries": { "type": "list", "member": { "locationName": "TrafficPolicySummary", "type": "structure", "required": [ "Id", "Name", "Type", "LatestVersion", "TrafficPolicyCount" ], "members": { "Id": {}, "Name": {}, "Type": {}, "LatestVersion": { "type": "integer" }, "TrafficPolicyCount": { "type": "integer" } } } }, "IsTruncated": { "type": "boolean" }, "TrafficPolicyIdMarker": {}, "MaxItems": {} } } }, "ListTrafficPolicyInstances": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicyinstances" }, "input": { "type": "structure", "members": { "HostedZoneIdMarker": { "location": "querystring", "locationName": "hostedzoneid" }, "TrafficPolicyInstanceNameMarker": { "location": "querystring", "locationName": "trafficpolicyinstancename" }, "TrafficPolicyInstanceTypeMarker": { "location": "querystring", "locationName": "trafficpolicyinstancetype" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstances", "IsTruncated", "MaxItems" ], "members": { "TrafficPolicyInstances": { "shape": "S5p" }, "HostedZoneIdMarker": {}, "TrafficPolicyInstanceNameMarker": {}, "TrafficPolicyInstanceTypeMarker": {}, "IsTruncated": { "type": "boolean" }, "MaxItems": {} } } }, "ListTrafficPolicyInstancesByHostedZone": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicyinstances/hostedzone" }, "input": { "type": "structure", "required": [ "HostedZoneId" ], "members": { "HostedZoneId": { "location": "querystring", "locationName": "id" }, "TrafficPolicyInstanceNameMarker": { "location": "querystring", "locationName": "trafficpolicyinstancename" }, "TrafficPolicyInstanceTypeMarker": { "location": "querystring", "locationName": "trafficpolicyinstancetype" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstances", "IsTruncated", "MaxItems" ], "members": { "TrafficPolicyInstances": { "shape": "S5p" }, "TrafficPolicyInstanceNameMarker": {}, "TrafficPolicyInstanceTypeMarker": {}, "IsTruncated": { "type": "boolean" }, "MaxItems": {} } } }, "ListTrafficPolicyInstancesByPolicy": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicyinstances/trafficpolicy" }, "input": { "type": "structure", "required": [ "TrafficPolicyId", "TrafficPolicyVersion" ], "members": { "TrafficPolicyId": { "location": "querystring", "locationName": "id" }, "TrafficPolicyVersion": { "location": "querystring", "locationName": "version", "type": "integer" }, "HostedZoneIdMarker": { "location": "querystring", "locationName": "hostedzoneid" }, "TrafficPolicyInstanceNameMarker": { "location": "querystring", "locationName": "trafficpolicyinstancename" }, "TrafficPolicyInstanceTypeMarker": { "location": "querystring", "locationName": "trafficpolicyinstancetype" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstances", "IsTruncated", "MaxItems" ], "members": { "TrafficPolicyInstances": { "shape": "S5p" }, "HostedZoneIdMarker": {}, "TrafficPolicyInstanceNameMarker": {}, "TrafficPolicyInstanceTypeMarker": {}, "IsTruncated": { "type": "boolean" }, "MaxItems": {} } } }, "ListTrafficPolicyVersions": { "http": { "method": "GET", "requestUri": "/2013-04-01/trafficpolicies/{Id}/versions" }, "input": { "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "TrafficPolicyVersionMarker": { "location": "querystring", "locationName": "trafficpolicyversion" }, "MaxItems": { "location": "querystring", "locationName": "maxitems" } } }, "output": { "type": "structure", "required": [ "TrafficPolicies", "IsTruncated", "TrafficPolicyVersionMarker", "MaxItems" ], "members": { "TrafficPolicies": { "type": "list", "member": { "shape": "S2r", "locationName": "TrafficPolicy" } }, "IsTruncated": { "type": "boolean" }, "TrafficPolicyVersionMarker": {}, "MaxItems": {} } } }, "TestDNSAnswer": { "http": { "method": "GET", "requestUri": "/2013-04-01/testdnsanswer" }, "input": { "type": "structure", "required": [ "HostedZoneId", "RecordName", "RecordType" ], "members": { "HostedZoneId": { "location": "querystring", "locationName": "hostedzoneid" }, "RecordName": { "location": "querystring", "locationName": "recordname" }, "RecordType": { "location": "querystring", "locationName": "recordtype" }, "ResolverIP": { "location": "querystring", "locationName": "resolverip" }, "EDNS0ClientSubnetIP": { "location": "querystring", "locationName": "edns0clientsubnetip" }, "EDNS0ClientSubnetMask": { "location": "querystring", "locationName": "edns0clientsubnetmask" } } }, "output": { "type": "structure", "required": [ "Nameserver", "RecordName", "RecordType", "RecordData", "ResponseCode", "Protocol" ], "members": { "Nameserver": {}, "RecordName": {}, "RecordType": {}, "RecordData": { "type": "list", "member": { "locationName": "RecordDataEntry" } }, "ResponseCode": {}, "Protocol": {} } } }, "UpdateHealthCheck": { "http": { "requestUri": "/2013-04-01/healthcheck/{HealthCheckId}" }, "input": { "locationName": "UpdateHealthCheckRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "HealthCheckId" ], "members": { "HealthCheckId": { "location": "uri", "locationName": "HealthCheckId" }, "HealthCheckVersion": { "type": "long" }, "IPAddress": {}, "Port": { "type": "integer" }, "ResourcePath": {}, "FullyQualifiedDomainName": {}, "SearchString": {}, "FailureThreshold": { "type": "integer" }, "Inverted": { "type": "boolean" }, "HealthThreshold": { "type": "integer" }, "ChildHealthChecks": { "shape": "S1o" }, "EnableSNI": { "type": "boolean" }, "Regions": { "shape": "S1q" }, "AlarmIdentifier": { "shape": "S1s" }, "InsufficientDataHealthStatus": {} } }, "output": { "type": "structure", "required": [ "HealthCheck" ], "members": { "HealthCheck": { "shape": "S1x" } } } }, "UpdateHostedZoneComment": { "http": { "requestUri": "/2013-04-01/hostedzone/{Id}" }, "input": { "locationName": "UpdateHostedZoneCommentRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Id" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Comment": {} } }, "output": { "type": "structure", "required": [ "HostedZone" ], "members": { "HostedZone": { "shape": "S2g" } } } }, "UpdateTrafficPolicyComment": { "http": { "requestUri": "/2013-04-01/trafficpolicy/{Id}/{Version}" }, "input": { "locationName": "UpdateTrafficPolicyCommentRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Id", "Version", "Comment" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "Version": { "location": "uri", "locationName": "Version", "type": "integer" }, "Comment": {} } }, "output": { "type": "structure", "required": [ "TrafficPolicy" ], "members": { "TrafficPolicy": { "shape": "S2r" } } } }, "UpdateTrafficPolicyInstance": { "http": { "requestUri": "/2013-04-01/trafficpolicyinstance/{Id}" }, "input": { "locationName": "UpdateTrafficPolicyInstanceRequest", "xmlNamespace": { "uri": "https://route53.amazonaws.com/doc/2013-04-01/" }, "type": "structure", "required": [ "Id", "TTL", "TrafficPolicyId", "TrafficPolicyVersion" ], "members": { "Id": { "location": "uri", "locationName": "Id" }, "TTL": { "type": "long" }, "TrafficPolicyId": {}, "TrafficPolicyVersion": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "TrafficPolicyInstance" ], "members": { "TrafficPolicyInstance": { "shape": "S2w" } } } } }, "shapes": { "S3": { "type": "structure", "members": { "VPCRegion": {}, "VPCId": {} } }, "S8": { "type": "structure", "required": [ "Id", "Status", "SubmittedAt" ], "members": { "Id": {}, "Status": {}, "SubmittedAt": { "type": "timestamp" }, "Comment": {} } }, "Se": { "type": "list", "member": { "locationName": "Change", "type": "structure", "required": [ "Action", "ResourceRecordSet" ], "members": { "Action": {}, "ResourceRecordSet": { "shape": "Sh" } } } }, "Sh": { "type": "structure", "required": [ "Name", "Type" ], "members": { "Name": {}, "Type": {}, "SetIdentifier": {}, "Weight": { "type": "long" }, "Region": {}, "GeoLocation": { "type": "structure", "members": { "ContinentCode": {}, "CountryCode": {}, "SubdivisionCode": {} } }, "Failover": {}, "TTL": { "type": "long" }, "ResourceRecords": { "type": "list", "member": { "locationName": "ResourceRecord", "type": "structure", "required": [ "Value" ], "members": { "Value": {} } } }, "AliasTarget": { "type": "structure", "required": [ "HostedZoneId", "DNSName", "EvaluateTargetHealth" ], "members": { "HostedZoneId": {}, "DNSName": {}, "EvaluateTargetHealth": { "type": "boolean" } } }, "HealthCheckId": {}, "TrafficPolicyInstanceId": {} } }, "S14": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S1c": { "type": "structure", "required": [ "Type" ], "members": { "IPAddress": {}, "Port": { "type": "integer" }, "Type": {}, "ResourcePath": {}, "FullyQualifiedDomainName": {}, "SearchString": {}, "RequestInterval": { "type": "integer" }, "FailureThreshold": { "type": "integer" }, "MeasureLatency": { "type": "boolean" }, "Inverted": { "type": "boolean" }, "HealthThreshold": { "type": "integer" }, "ChildHealthChecks": { "shape": "S1o" }, "EnableSNI": { "type": "boolean" }, "Regions": { "shape": "S1q" }, "AlarmIdentifier": { "shape": "S1s" }, "InsufficientDataHealthStatus": {} } }, "S1o": { "type": "list", "member": { "locationName": "ChildHealthCheck" } }, "S1q": { "type": "list", "member": { "locationName": "Region" } }, "S1s": { "type": "structure", "required": [ "Region", "Name" ], "members": { "Region": {}, "Name": {} } }, "S1x": { "type": "structure", "required": [ "Id", "CallerReference", "HealthCheckConfig", "HealthCheckVersion" ], "members": { "Id": {}, "CallerReference": {}, "HealthCheckConfig": { "shape": "S1c" }, "HealthCheckVersion": { "type": "long" }, "CloudWatchAlarmConfiguration": { "type": "structure", "required": [ "EvaluationPeriods", "Threshold", "ComparisonOperator", "Period", "MetricName", "Namespace", "Statistic" ], "members": { "EvaluationPeriods": { "type": "integer" }, "Threshold": { "type": "double" }, "ComparisonOperator": {}, "Period": { "type": "integer" }, "MetricName": {}, "Namespace": {}, "Statistic": {}, "Dimensions": { "type": "list", "member": { "locationName": "Dimension", "type": "structure", "required": [ "Name", "Value" ], "members": { "Name": {}, "Value": {} } } } } } } }, "S2d": { "type": "structure", "members": { "Comment": {}, "PrivateZone": { "type": "boolean" } } }, "S2g": { "type": "structure", "required": [ "Id", "Name", "CallerReference" ], "members": { "Id": {}, "Name": {}, "CallerReference": {}, "Config": { "shape": "S2d" }, "ResourceRecordSetCount": { "type": "long" } } }, "S2i": { "type": "structure", "required": [ "NameServers" ], "members": { "Id": {}, "CallerReference": {}, "NameServers": { "type": "list", "member": { "locationName": "NameServer" } } } }, "S2r": { "type": "structure", "required": [ "Id", "Version", "Name", "Type", "Document" ], "members": { "Id": {}, "Version": { "type": "integer" }, "Name": {}, "Type": {}, "Document": {}, "Comment": {} } }, "S2w": { "type": "structure", "required": [ "Id", "HostedZoneId", "Name", "TTL", "State", "Message", "TrafficPolicyId", "TrafficPolicyVersion", "TrafficPolicyType" ], "members": { "Id": {}, "HostedZoneId": {}, "Name": {}, "TTL": { "type": "long" }, "State": {}, "Message": {}, "TrafficPolicyId": {}, "TrafficPolicyVersion": { "type": "integer" }, "TrafficPolicyType": {} } }, "S3i": { "type": "structure", "required": [ "Id", "Status" ], "members": { "Id": {}, "SubmittedAt": { "type": "timestamp" }, "Status": {}, "Comment": {}, "Submitter": {}, "Changes": { "shape": "Se" } }, "deprecated": true }, "S3q": { "type": "structure", "members": { "ContinentCode": {}, "ContinentName": {}, "CountryCode": {}, "CountryName": {}, "SubdivisionCode": {}, "SubdivisionName": {} } }, "S41": { "type": "list", "member": { "locationName": "HealthCheckObservation", "type": "structure", "members": { "Region": {}, "IPAddress": {}, "StatusReport": { "type": "structure", "members": { "Status": {}, "CheckedTime": { "type": "timestamp" } } } } } }, "S4n": { "type": "string", "deprecated": true }, "S4s": { "type": "list", "member": { "shape": "S3i", "locationName": "ChangeBatchRecord" }, "deprecated": true }, "S53": { "type": "list", "member": { "shape": "S2g", "locationName": "HostedZone" } }, "S5e": { "type": "structure", "members": { "ResourceType": {}, "ResourceId": {}, "Tags": { "shape": "S14" } } }, "S5p": { "type": "list", "member": { "shape": "S2w", "locationName": "TrafficPolicyInstance" } } } } },{}],116:[function(require,module,exports){ module.exports={ "pagination": { "ListHealthChecks": { "input_token": "Marker", "output_token": "NextMarker", "more_results": "IsTruncated", "limit_key": "MaxItems", "result_key": "HealthChecks" }, "ListHostedZones": { "input_token": "Marker", "output_token": "NextMarker", "more_results": "IsTruncated", "limit_key": "MaxItems", "result_key": "HostedZones" }, "ListResourceRecordSets": { "more_results": "IsTruncated", "limit_key": "MaxItems", "result_key": "ResourceRecordSets", "input_token": [ "StartRecordName", "StartRecordType", "StartRecordIdentifier" ], "output_token": [ "NextRecordName", "NextRecordType", "NextRecordIdentifier" ] } } } },{}],117:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "ResourceRecordSetsChanged": { "delay": 30, "maxAttempts": 60, "operation": "GetChange", "acceptors": [ { "matcher": "path", "expected": "INSYNC", "argument": "ChangeInfo.Status", "state": "success" } ] } } } },{}],118:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-05-15", "endpointPrefix": "route53domains", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "Amazon Route 53 Domains", "signatureVersion": "v4", "targetPrefix": "Route53Domains_v20140515" }, "operations": { "CheckDomainAvailability": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "IdnLangCode": {} } }, "output": { "type": "structure", "required": [ "Availability" ], "members": { "Availability": {} } } }, "DeleteTagsForDomain": { "input": { "type": "structure", "required": [ "DomainName", "TagsToDelete" ], "members": { "DomainName": {}, "TagsToDelete": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": {} } }, "DisableDomainAutoRenew": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "members": {} } }, "DisableDomainTransferLock": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "EnableDomainAutoRenew": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "members": {} } }, "EnableDomainTransferLock": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "GetContactReachabilityStatus": { "input": { "type": "structure", "members": { "domainName": {} } }, "output": { "type": "structure", "members": { "domainName": {}, "status": {} } } }, "GetDomainDetail": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "required": [ "DomainName", "Nameservers", "AdminContact", "RegistrantContact", "TechContact" ], "members": { "DomainName": {}, "Nameservers": { "shape": "So" }, "AutoRenew": { "type": "boolean" }, "AdminContact": { "shape": "Su" }, "RegistrantContact": { "shape": "Su" }, "TechContact": { "shape": "Su" }, "AdminPrivacy": { "type": "boolean" }, "RegistrantPrivacy": { "type": "boolean" }, "TechPrivacy": { "type": "boolean" }, "RegistrarName": {}, "WhoIsServer": {}, "RegistrarUrl": {}, "AbuseContactEmail": {}, "AbuseContactPhone": {}, "RegistryDomainId": {}, "CreationDate": { "type": "timestamp" }, "UpdatedDate": { "type": "timestamp" }, "ExpirationDate": { "type": "timestamp" }, "Reseller": {}, "DnsSec": {}, "StatusList": { "type": "list", "member": {} } } } }, "GetDomainSuggestions": { "input": { "type": "structure", "required": [ "DomainName", "SuggestionCount", "OnlyAvailable" ], "members": { "DomainName": {}, "SuggestionCount": { "type": "integer" }, "OnlyAvailable": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "SuggestionsList": { "type": "list", "member": { "type": "structure", "members": { "DomainName": {}, "Availability": {} } } } } } }, "GetOperationDetail": { "input": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } }, "output": { "type": "structure", "members": { "OperationId": {}, "Status": {}, "Message": {}, "DomainName": {}, "Type": {}, "SubmittedDate": { "type": "timestamp" } } } }, "ListDomains": { "input": { "type": "structure", "members": { "Marker": {}, "MaxItems": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "Domains" ], "members": { "Domains": { "type": "list", "member": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "AutoRenew": { "type": "boolean" }, "TransferLock": { "type": "boolean" }, "Expiry": { "type": "timestamp" } } } }, "NextPageMarker": {} } } }, "ListOperations": { "input": { "type": "structure", "members": { "Marker": {}, "MaxItems": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "Operations" ], "members": { "Operations": { "type": "list", "member": { "type": "structure", "required": [ "OperationId", "Status", "Type", "SubmittedDate" ], "members": { "OperationId": {}, "Status": {}, "Type": {}, "SubmittedDate": { "type": "timestamp" } } } }, "NextPageMarker": {} } } }, "ListTagsForDomain": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "required": [ "TagList" ], "members": { "TagList": { "shape": "S24" } } } }, "RegisterDomain": { "input": { "type": "structure", "required": [ "DomainName", "DurationInYears", "AdminContact", "RegistrantContact", "TechContact" ], "members": { "DomainName": {}, "IdnLangCode": {}, "DurationInYears": { "type": "integer" }, "AutoRenew": { "type": "boolean" }, "AdminContact": { "shape": "Su" }, "RegistrantContact": { "shape": "Su" }, "TechContact": { "shape": "Su" }, "PrivacyProtectAdminContact": { "type": "boolean" }, "PrivacyProtectRegistrantContact": { "type": "boolean" }, "PrivacyProtectTechContact": { "type": "boolean" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "RenewDomain": { "input": { "type": "structure", "required": [ "DomainName", "CurrentExpiryYear" ], "members": { "DomainName": {}, "DurationInYears": { "type": "integer" }, "CurrentExpiryYear": { "type": "integer" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "ResendContactReachabilityEmail": { "input": { "type": "structure", "members": { "domainName": {} } }, "output": { "type": "structure", "members": { "domainName": {}, "emailAddress": {}, "isAlreadyVerified": { "type": "boolean" } } } }, "RetrieveDomainAuthCode": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {} } }, "output": { "type": "structure", "required": [ "AuthCode" ], "members": { "AuthCode": { "shape": "S2h" } } } }, "TransferDomain": { "input": { "type": "structure", "required": [ "DomainName", "DurationInYears", "AdminContact", "RegistrantContact", "TechContact" ], "members": { "DomainName": {}, "IdnLangCode": {}, "DurationInYears": { "type": "integer" }, "Nameservers": { "shape": "So" }, "AuthCode": { "shape": "S2h" }, "AutoRenew": { "type": "boolean" }, "AdminContact": { "shape": "Su" }, "RegistrantContact": { "shape": "Su" }, "TechContact": { "shape": "Su" }, "PrivacyProtectAdminContact": { "type": "boolean" }, "PrivacyProtectRegistrantContact": { "type": "boolean" }, "PrivacyProtectTechContact": { "type": "boolean" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "UpdateDomainContact": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "AdminContact": { "shape": "Su" }, "RegistrantContact": { "shape": "Su" }, "TechContact": { "shape": "Su" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "UpdateDomainContactPrivacy": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "AdminPrivacy": { "type": "boolean" }, "RegistrantPrivacy": { "type": "boolean" }, "TechPrivacy": { "type": "boolean" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "UpdateDomainNameservers": { "input": { "type": "structure", "required": [ "DomainName", "Nameservers" ], "members": { "DomainName": {}, "FIAuthKey": {}, "Nameservers": { "shape": "So" } } }, "output": { "type": "structure", "required": [ "OperationId" ], "members": { "OperationId": {} } } }, "UpdateTagsForDomain": { "input": { "type": "structure", "required": [ "DomainName" ], "members": { "DomainName": {}, "TagsToUpdate": { "shape": "S24" } } }, "output": { "type": "structure", "members": {} } }, "ViewBilling": { "input": { "type": "structure", "members": { "Start": { "type": "timestamp" }, "End": { "type": "timestamp" }, "Marker": {}, "MaxItems": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextPageMarker": {}, "BillingRecords": { "type": "list", "member": { "type": "structure", "members": { "DomainName": {}, "Operation": {}, "InvoiceId": {}, "BillDate": { "type": "timestamp" }, "Price": { "type": "double" } } } } } } } }, "shapes": { "So": { "type": "list", "member": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "GlueIps": { "type": "list", "member": {} } } } }, "Su": { "type": "structure", "members": { "FirstName": {}, "LastName": {}, "ContactType": {}, "OrganizationName": {}, "AddressLine1": {}, "AddressLine2": {}, "City": {}, "State": {}, "CountryCode": {}, "ZipCode": {}, "PhoneNumber": {}, "Email": {}, "Fax": {}, "ExtraParams": { "type": "list", "member": { "type": "structure", "required": [ "Name", "Value" ], "members": { "Name": {}, "Value": {} } } } }, "sensitive": true }, "S24": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S2h": { "type": "string", "sensitive": true } } } },{}],119:[function(require,module,exports){ module.exports={ "version": "1.0", "pagination": { "ListDomains": { "limit_key": "MaxItems", "input_token": "Marker", "output_token": "NextPageMarker", "result_key": "Domains" }, "ListOperations": { "limit_key": "MaxItems", "input_token": "Marker", "output_token": "NextPageMarker", "result_key": "Operations" } } } },{}],120:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2006-03-01", "checksumFormat": "md5", "endpointPrefix": "s3", "globalEndpoint": "s3.amazonaws.com", "protocol": "rest-xml", "serviceAbbreviation": "Amazon S3", "serviceFullName": "Amazon Simple Storage Service", "signatureVersion": "s3", "timestampFormat": "rfc822" }, "operations": { "AbortMultipartUpload": { "http": { "method": "DELETE", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key", "UploadId" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "UploadId": { "location": "querystring", "locationName": "uploadId" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "CompleteMultipartUpload": { "http": { "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key", "UploadId" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "MultipartUpload": { "locationName": "CompleteMultipartUpload", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "Parts": { "locationName": "Part", "type": "list", "member": { "type": "structure", "members": { "ETag": {}, "PartNumber": { "type": "integer" } } }, "flattened": true } } }, "UploadId": { "location": "querystring", "locationName": "uploadId" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } }, "payload": "MultipartUpload" }, "output": { "type": "structure", "members": { "Location": {}, "Bucket": {}, "Key": {}, "Expiration": { "location": "header", "locationName": "x-amz-expiration" }, "ETag": {}, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "CopyObject": { "http": { "method": "PUT", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "CopySource", "Key" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "CacheControl": { "location": "header", "locationName": "Cache-Control" }, "ContentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "ContentEncoding": { "location": "header", "locationName": "Content-Encoding" }, "ContentLanguage": { "location": "header", "locationName": "Content-Language" }, "ContentType": { "location": "header", "locationName": "Content-Type" }, "CopySource": { "location": "header", "locationName": "x-amz-copy-source" }, "CopySourceIfMatch": { "location": "header", "locationName": "x-amz-copy-source-if-match" }, "CopySourceIfModifiedSince": { "location": "header", "locationName": "x-amz-copy-source-if-modified-since", "type": "timestamp" }, "CopySourceIfNoneMatch": { "location": "header", "locationName": "x-amz-copy-source-if-none-match" }, "CopySourceIfUnmodifiedSince": { "location": "header", "locationName": "x-amz-copy-source-if-unmodified-since", "type": "timestamp" }, "Expires": { "location": "header", "locationName": "Expires", "type": "timestamp" }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" }, "Key": { "location": "uri", "locationName": "Key" }, "Metadata": { "shape": "S11", "location": "headers", "locationName": "x-amz-meta-" }, "MetadataDirective": { "location": "header", "locationName": "x-amz-metadata-directive" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "StorageClass": { "location": "header", "locationName": "x-amz-storage-class" }, "WebsiteRedirectLocation": { "location": "header", "locationName": "x-amz-website-redirect-location" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "CopySourceSSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-algorithm" }, "CopySourceSSECustomerKey": { "shape": "S1b", "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-key" }, "CopySourceSSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-key-MD5" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "CopyObjectResult": { "type": "structure", "members": { "ETag": {}, "LastModified": { "type": "timestamp" } } }, "Expiration": { "location": "header", "locationName": "x-amz-expiration" }, "CopySourceVersionId": { "location": "header", "locationName": "x-amz-copy-source-version-id" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } }, "payload": "CopyObjectResult" }, "alias": "PutObjectCopy" }, "CreateBucket": { "http": { "method": "PUT", "requestUri": "/{Bucket}" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "CreateBucketConfiguration": { "locationName": "CreateBucketConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "LocationConstraint": {} } }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWrite": { "location": "header", "locationName": "x-amz-grant-write" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" } }, "payload": "CreateBucketConfiguration" }, "output": { "type": "structure", "members": { "Location": { "location": "header", "locationName": "Location" } } }, "alias": "PutBucket" }, "CreateMultipartUpload": { "http": { "requestUri": "/{Bucket}/{Key+}?uploads" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "CacheControl": { "location": "header", "locationName": "Cache-Control" }, "ContentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "ContentEncoding": { "location": "header", "locationName": "Content-Encoding" }, "ContentLanguage": { "location": "header", "locationName": "Content-Language" }, "ContentType": { "location": "header", "locationName": "Content-Type" }, "Expires": { "location": "header", "locationName": "Expires", "type": "timestamp" }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" }, "Key": { "location": "uri", "locationName": "Key" }, "Metadata": { "shape": "S11", "location": "headers", "locationName": "x-amz-meta-" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "StorageClass": { "location": "header", "locationName": "x-amz-storage-class" }, "WebsiteRedirectLocation": { "location": "header", "locationName": "x-amz-website-redirect-location" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "AbortDate": { "location": "header", "locationName": "x-amz-abort-date", "type": "timestamp" }, "AbortRuleId": { "location": "header", "locationName": "x-amz-abort-rule-id" }, "Bucket": { "locationName": "Bucket" }, "Key": {}, "UploadId": {}, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } }, "alias": "InitiateMultipartUpload" }, "DeleteBucket": { "http": { "method": "DELETE", "requestUri": "/{Bucket}" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketCors": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?cors" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketLifecycle": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?lifecycle" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketPolicy": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?policy" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketReplication": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?replication" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketTagging": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?tagging" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteBucketWebsite": { "http": { "method": "DELETE", "requestUri": "/{Bucket}?website" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "DeleteObject": { "http": { "method": "DELETE", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "MFA": { "location": "header", "locationName": "x-amz-mfa" }, "VersionId": { "location": "querystring", "locationName": "versionId" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "DeleteMarker": { "location": "header", "locationName": "x-amz-delete-marker", "type": "boolean" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "DeleteObjects": { "http": { "requestUri": "/{Bucket}?delete" }, "input": { "type": "structure", "required": [ "Bucket", "Delete" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Delete": { "locationName": "Delete", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "Objects" ], "members": { "Objects": { "locationName": "Object", "type": "list", "member": { "type": "structure", "required": [ "Key" ], "members": { "Key": {}, "VersionId": {} } }, "flattened": true }, "Quiet": { "type": "boolean" } } }, "MFA": { "location": "header", "locationName": "x-amz-mfa" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } }, "payload": "Delete" }, "output": { "type": "structure", "members": { "Deleted": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "VersionId": {}, "DeleteMarker": { "type": "boolean" }, "DeleteMarkerVersionId": {} } }, "flattened": true }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" }, "Errors": { "locationName": "Error", "type": "list", "member": { "type": "structure", "members": { "Key": {}, "VersionId": {}, "Code": {}, "Message": {} } }, "flattened": true } } }, "alias": "DeleteMultipleObjects" }, "GetBucketAccelerateConfiguration": { "http": { "method": "GET", "requestUri": "/{Bucket}?accelerate" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Status": {} } } }, "GetBucketAcl": { "http": { "method": "GET", "requestUri": "/{Bucket}?acl" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Owner": { "shape": "S2k" }, "Grants": { "shape": "S2n", "locationName": "AccessControlList" } } } }, "GetBucketCors": { "http": { "method": "GET", "requestUri": "/{Bucket}?cors" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "CORSRules": { "shape": "S2w", "locationName": "CORSRule" } } } }, "GetBucketLifecycle": { "http": { "method": "GET", "requestUri": "/{Bucket}?lifecycle" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Rules": { "shape": "S39", "locationName": "Rule" } } }, "deprecated": true }, "GetBucketLifecycleConfiguration": { "http": { "method": "GET", "requestUri": "/{Bucket}?lifecycle" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Rules": { "shape": "S3p", "locationName": "Rule" } } } }, "GetBucketLocation": { "http": { "method": "GET", "requestUri": "/{Bucket}?location" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "LocationConstraint": {} } } }, "GetBucketLogging": { "http": { "method": "GET", "requestUri": "/{Bucket}?logging" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "LoggingEnabled": { "shape": "S3x" } } } }, "GetBucketNotification": { "http": { "method": "GET", "requestUri": "/{Bucket}?notification" }, "input": { "shape": "S43" }, "output": { "shape": "S44" }, "deprecated": true }, "GetBucketNotificationConfiguration": { "http": { "method": "GET", "requestUri": "/{Bucket}?notification" }, "input": { "shape": "S43" }, "output": { "shape": "S4f" } }, "GetBucketPolicy": { "http": { "method": "GET", "requestUri": "/{Bucket}?policy" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Policy": {} }, "payload": "Policy" } }, "GetBucketReplication": { "http": { "method": "GET", "requestUri": "/{Bucket}?replication" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "ReplicationConfiguration": { "shape": "S4y" } }, "payload": "ReplicationConfiguration" } }, "GetBucketRequestPayment": { "http": { "method": "GET", "requestUri": "/{Bucket}?requestPayment" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Payer": {} } } }, "GetBucketTagging": { "http": { "method": "GET", "requestUri": "/{Bucket}?tagging" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "required": [ "TagSet" ], "members": { "TagSet": { "shape": "S59" } } } }, "GetBucketVersioning": { "http": { "method": "GET", "requestUri": "/{Bucket}?versioning" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "Status": {}, "MFADelete": { "locationName": "MfaDelete" } } } }, "GetBucketWebsite": { "http": { "method": "GET", "requestUri": "/{Bucket}?website" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "output": { "type": "structure", "members": { "RedirectAllRequestsTo": { "shape": "S5i" }, "IndexDocument": { "shape": "S5l" }, "ErrorDocument": { "shape": "S5n" }, "RoutingRules": { "shape": "S5o" } } } }, "GetObject": { "http": { "method": "GET", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "IfMatch": { "location": "header", "locationName": "If-Match" }, "IfModifiedSince": { "location": "header", "locationName": "If-Modified-Since", "type": "timestamp" }, "IfNoneMatch": { "location": "header", "locationName": "If-None-Match" }, "IfUnmodifiedSince": { "location": "header", "locationName": "If-Unmodified-Since", "type": "timestamp" }, "Key": { "location": "uri", "locationName": "Key" }, "Range": { "location": "header", "locationName": "Range" }, "ResponseCacheControl": { "location": "querystring", "locationName": "response-cache-control" }, "ResponseContentDisposition": { "location": "querystring", "locationName": "response-content-disposition" }, "ResponseContentEncoding": { "location": "querystring", "locationName": "response-content-encoding" }, "ResponseContentLanguage": { "location": "querystring", "locationName": "response-content-language" }, "ResponseContentType": { "location": "querystring", "locationName": "response-content-type" }, "ResponseExpires": { "location": "querystring", "locationName": "response-expires", "type": "timestamp" }, "VersionId": { "location": "querystring", "locationName": "versionId" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" }, "PartNumber": { "location": "querystring", "locationName": "partNumber", "type": "integer" } } }, "output": { "type": "structure", "members": { "Body": { "streaming": true, "type": "blob" }, "DeleteMarker": { "location": "header", "locationName": "x-amz-delete-marker", "type": "boolean" }, "AcceptRanges": { "location": "header", "locationName": "accept-ranges" }, "Expiration": { "location": "header", "locationName": "x-amz-expiration" }, "Restore": { "location": "header", "locationName": "x-amz-restore" }, "LastModified": { "location": "header", "locationName": "Last-Modified", "type": "timestamp" }, "ContentLength": { "location": "header", "locationName": "Content-Length", "type": "long" }, "ETag": { "location": "header", "locationName": "ETag" }, "MissingMeta": { "location": "header", "locationName": "x-amz-missing-meta", "type": "integer" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "CacheControl": { "location": "header", "locationName": "Cache-Control" }, "ContentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "ContentEncoding": { "location": "header", "locationName": "Content-Encoding" }, "ContentLanguage": { "location": "header", "locationName": "Content-Language" }, "ContentRange": { "location": "header", "locationName": "Content-Range" }, "ContentType": { "location": "header", "locationName": "Content-Type" }, "Expires": { "location": "header", "locationName": "Expires", "type": "timestamp" }, "WebsiteRedirectLocation": { "location": "header", "locationName": "x-amz-website-redirect-location" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "Metadata": { "shape": "S11", "location": "headers", "locationName": "x-amz-meta-" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "StorageClass": { "location": "header", "locationName": "x-amz-storage-class" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" }, "ReplicationStatus": { "location": "header", "locationName": "x-amz-replication-status" }, "PartsCount": { "location": "header", "locationName": "x-amz-mp-parts-count", "type": "integer" } }, "payload": "Body" } }, "GetObjectAcl": { "http": { "method": "GET", "requestUri": "/{Bucket}/{Key+}?acl" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "VersionId": { "location": "querystring", "locationName": "versionId" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "Owner": { "shape": "S2k" }, "Grants": { "shape": "S2n", "locationName": "AccessControlList" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "GetObjectTorrent": { "http": { "method": "GET", "requestUri": "/{Bucket}/{Key+}?torrent" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "Body": { "streaming": true, "type": "blob" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } }, "payload": "Body" } }, "HeadBucket": { "http": { "method": "HEAD", "requestUri": "/{Bucket}" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } } }, "HeadObject": { "http": { "method": "HEAD", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "IfMatch": { "location": "header", "locationName": "If-Match" }, "IfModifiedSince": { "location": "header", "locationName": "If-Modified-Since", "type": "timestamp" }, "IfNoneMatch": { "location": "header", "locationName": "If-None-Match" }, "IfUnmodifiedSince": { "location": "header", "locationName": "If-Unmodified-Since", "type": "timestamp" }, "Key": { "location": "uri", "locationName": "Key" }, "Range": { "location": "header", "locationName": "Range" }, "VersionId": { "location": "querystring", "locationName": "versionId" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" }, "PartNumber": { "location": "querystring", "locationName": "partNumber", "type": "integer" } } }, "output": { "type": "structure", "members": { "DeleteMarker": { "location": "header", "locationName": "x-amz-delete-marker", "type": "boolean" }, "AcceptRanges": { "location": "header", "locationName": "accept-ranges" }, "Expiration": { "location": "header", "locationName": "x-amz-expiration" }, "Restore": { "location": "header", "locationName": "x-amz-restore" }, "LastModified": { "location": "header", "locationName": "Last-Modified", "type": "timestamp" }, "ContentLength": { "location": "header", "locationName": "Content-Length", "type": "long" }, "ETag": { "location": "header", "locationName": "ETag" }, "MissingMeta": { "location": "header", "locationName": "x-amz-missing-meta", "type": "integer" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "CacheControl": { "location": "header", "locationName": "Cache-Control" }, "ContentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "ContentEncoding": { "location": "header", "locationName": "Content-Encoding" }, "ContentLanguage": { "location": "header", "locationName": "Content-Language" }, "ContentType": { "location": "header", "locationName": "Content-Type" }, "Expires": { "location": "header", "locationName": "Expires", "type": "timestamp" }, "WebsiteRedirectLocation": { "location": "header", "locationName": "x-amz-website-redirect-location" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "Metadata": { "shape": "S11", "location": "headers", "locationName": "x-amz-meta-" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "StorageClass": { "location": "header", "locationName": "x-amz-storage-class" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" }, "ReplicationStatus": { "location": "header", "locationName": "x-amz-replication-status" }, "PartsCount": { "location": "header", "locationName": "x-amz-mp-parts-count", "type": "integer" } } } }, "ListBuckets": { "http": { "method": "GET" }, "output": { "type": "structure", "members": { "Buckets": { "type": "list", "member": { "locationName": "Bucket", "type": "structure", "members": { "Name": {}, "CreationDate": { "type": "timestamp" } } } }, "Owner": { "shape": "S2k" } } }, "alias": "GetService" }, "ListMultipartUploads": { "http": { "method": "GET", "requestUri": "/{Bucket}?uploads" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Delimiter": { "location": "querystring", "locationName": "delimiter" }, "EncodingType": { "location": "querystring", "locationName": "encoding-type" }, "KeyMarker": { "location": "querystring", "locationName": "key-marker" }, "MaxUploads": { "location": "querystring", "locationName": "max-uploads", "type": "integer" }, "Prefix": { "location": "querystring", "locationName": "prefix" }, "UploadIdMarker": { "location": "querystring", "locationName": "upload-id-marker" } } }, "output": { "type": "structure", "members": { "Bucket": {}, "KeyMarker": {}, "UploadIdMarker": {}, "NextKeyMarker": {}, "Prefix": {}, "Delimiter": {}, "NextUploadIdMarker": {}, "MaxUploads": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Uploads": { "locationName": "Upload", "type": "list", "member": { "type": "structure", "members": { "UploadId": {}, "Key": {}, "Initiated": { "type": "timestamp" }, "StorageClass": {}, "Owner": { "shape": "S2k" }, "Initiator": { "shape": "S76" } } }, "flattened": true }, "CommonPrefixes": { "shape": "S77" }, "EncodingType": {} } } }, "ListObjectVersions": { "http": { "method": "GET", "requestUri": "/{Bucket}?versions" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Delimiter": { "location": "querystring", "locationName": "delimiter" }, "EncodingType": { "location": "querystring", "locationName": "encoding-type" }, "KeyMarker": { "location": "querystring", "locationName": "key-marker" }, "MaxKeys": { "location": "querystring", "locationName": "max-keys", "type": "integer" }, "Prefix": { "location": "querystring", "locationName": "prefix" }, "VersionIdMarker": { "location": "querystring", "locationName": "version-id-marker" } } }, "output": { "type": "structure", "members": { "IsTruncated": { "type": "boolean" }, "KeyMarker": {}, "VersionIdMarker": {}, "NextKeyMarker": {}, "NextVersionIdMarker": {}, "Versions": { "locationName": "Version", "type": "list", "member": { "type": "structure", "members": { "ETag": {}, "Size": { "type": "integer" }, "StorageClass": {}, "Key": {}, "VersionId": {}, "IsLatest": { "type": "boolean" }, "LastModified": { "type": "timestamp" }, "Owner": { "shape": "S2k" } } }, "flattened": true }, "DeleteMarkers": { "locationName": "DeleteMarker", "type": "list", "member": { "type": "structure", "members": { "Owner": { "shape": "S2k" }, "Key": {}, "VersionId": {}, "IsLatest": { "type": "boolean" }, "LastModified": { "type": "timestamp" } } }, "flattened": true }, "Name": {}, "Prefix": {}, "Delimiter": {}, "MaxKeys": { "type": "integer" }, "CommonPrefixes": { "shape": "S77" }, "EncodingType": {} } }, "alias": "GetBucketObjectVersions" }, "ListObjects": { "http": { "method": "GET", "requestUri": "/{Bucket}" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Delimiter": { "location": "querystring", "locationName": "delimiter" }, "EncodingType": { "location": "querystring", "locationName": "encoding-type" }, "Marker": { "location": "querystring", "locationName": "marker" }, "MaxKeys": { "location": "querystring", "locationName": "max-keys", "type": "integer" }, "Prefix": { "location": "querystring", "locationName": "prefix" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "IsTruncated": { "type": "boolean" }, "Marker": {}, "NextMarker": {}, "Contents": { "shape": "S7p" }, "Name": {}, "Prefix": {}, "Delimiter": {}, "MaxKeys": { "type": "integer" }, "CommonPrefixes": { "shape": "S77" }, "EncodingType": {} } }, "alias": "GetBucket" }, "ListObjectsV2": { "http": { "method": "GET", "requestUri": "/{Bucket}?list-type=2" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Delimiter": { "location": "querystring", "locationName": "delimiter" }, "EncodingType": { "location": "querystring", "locationName": "encoding-type" }, "MaxKeys": { "location": "querystring", "locationName": "max-keys", "type": "integer" }, "Prefix": { "location": "querystring", "locationName": "prefix" }, "ContinuationToken": { "location": "querystring", "locationName": "continuation-token" }, "FetchOwner": { "location": "querystring", "locationName": "fetch-owner", "type": "boolean" }, "StartAfter": { "location": "querystring", "locationName": "start-after" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "IsTruncated": { "type": "boolean" }, "Contents": { "shape": "S7p" }, "Name": {}, "Prefix": {}, "Delimiter": {}, "MaxKeys": { "type": "integer" }, "CommonPrefixes": { "shape": "S77" }, "EncodingType": {}, "KeyCount": { "type": "integer" }, "ContinuationToken": {}, "NextContinuationToken": {}, "StartAfter": {} } } }, "ListParts": { "http": { "method": "GET", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key", "UploadId" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "MaxParts": { "location": "querystring", "locationName": "max-parts", "type": "integer" }, "PartNumberMarker": { "location": "querystring", "locationName": "part-number-marker", "type": "integer" }, "UploadId": { "location": "querystring", "locationName": "uploadId" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "AbortDate": { "location": "header", "locationName": "x-amz-abort-date", "type": "timestamp" }, "AbortRuleId": { "location": "header", "locationName": "x-amz-abort-rule-id" }, "Bucket": {}, "Key": {}, "UploadId": {}, "PartNumberMarker": { "type": "integer" }, "NextPartNumberMarker": { "type": "integer" }, "MaxParts": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Parts": { "locationName": "Part", "type": "list", "member": { "type": "structure", "members": { "PartNumber": { "type": "integer" }, "LastModified": { "type": "timestamp" }, "ETag": {}, "Size": { "type": "integer" } } }, "flattened": true }, "Initiator": { "shape": "S76" }, "Owner": { "shape": "S2k" }, "StorageClass": {}, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "PutBucketAccelerateConfiguration": { "http": { "method": "PUT", "requestUri": "/{Bucket}?accelerate" }, "input": { "type": "structure", "required": [ "Bucket", "AccelerateConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "AccelerateConfiguration": { "locationName": "AccelerateConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "Status": {} } } }, "payload": "AccelerateConfiguration" } }, "PutBucketAcl": { "http": { "method": "PUT", "requestUri": "/{Bucket}?acl" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "AccessControlPolicy": { "shape": "S89", "locationName": "AccessControlPolicy", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" } }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWrite": { "location": "header", "locationName": "x-amz-grant-write" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" } }, "payload": "AccessControlPolicy" } }, "PutBucketCors": { "http": { "method": "PUT", "requestUri": "/{Bucket}?cors" }, "input": { "type": "structure", "required": [ "Bucket", "CORSConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "CORSConfiguration": { "locationName": "CORSConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "CORSRules" ], "members": { "CORSRules": { "shape": "S2w", "locationName": "CORSRule" } } }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" } }, "payload": "CORSConfiguration" } }, "PutBucketLifecycle": { "http": { "method": "PUT", "requestUri": "/{Bucket}?lifecycle" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "LifecycleConfiguration": { "locationName": "LifecycleConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "Rules" ], "members": { "Rules": { "shape": "S39", "locationName": "Rule" } } } }, "payload": "LifecycleConfiguration" }, "deprecated": true }, "PutBucketLifecycleConfiguration": { "http": { "method": "PUT", "requestUri": "/{Bucket}?lifecycle" }, "input": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "LifecycleConfiguration": { "locationName": "LifecycleConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "Rules" ], "members": { "Rules": { "shape": "S3p", "locationName": "Rule" } } } }, "payload": "LifecycleConfiguration" } }, "PutBucketLogging": { "http": { "method": "PUT", "requestUri": "/{Bucket}?logging" }, "input": { "type": "structure", "required": [ "Bucket", "BucketLoggingStatus" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "BucketLoggingStatus": { "locationName": "BucketLoggingStatus", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "LoggingEnabled": { "shape": "S3x" } } }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" } }, "payload": "BucketLoggingStatus" } }, "PutBucketNotification": { "http": { "method": "PUT", "requestUri": "/{Bucket}?notification" }, "input": { "type": "structure", "required": [ "Bucket", "NotificationConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "NotificationConfiguration": { "shape": "S44", "locationName": "NotificationConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" } } }, "payload": "NotificationConfiguration" }, "deprecated": true }, "PutBucketNotificationConfiguration": { "http": { "method": "PUT", "requestUri": "/{Bucket}?notification" }, "input": { "type": "structure", "required": [ "Bucket", "NotificationConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "NotificationConfiguration": { "shape": "S4f", "locationName": "NotificationConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" } } }, "payload": "NotificationConfiguration" } }, "PutBucketPolicy": { "http": { "method": "PUT", "requestUri": "/{Bucket}?policy" }, "input": { "type": "structure", "required": [ "Bucket", "Policy" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "Policy": {} }, "payload": "Policy" } }, "PutBucketReplication": { "http": { "method": "PUT", "requestUri": "/{Bucket}?replication" }, "input": { "type": "structure", "required": [ "Bucket", "ReplicationConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "ReplicationConfiguration": { "shape": "S4y", "locationName": "ReplicationConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" } } }, "payload": "ReplicationConfiguration" } }, "PutBucketRequestPayment": { "http": { "method": "PUT", "requestUri": "/{Bucket}?requestPayment" }, "input": { "type": "structure", "required": [ "Bucket", "RequestPaymentConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "RequestPaymentConfiguration": { "locationName": "RequestPaymentConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "Payer" ], "members": { "Payer": {} } } }, "payload": "RequestPaymentConfiguration" } }, "PutBucketTagging": { "http": { "method": "PUT", "requestUri": "/{Bucket}?tagging" }, "input": { "type": "structure", "required": [ "Bucket", "Tagging" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "Tagging": { "locationName": "Tagging", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "TagSet" ], "members": { "TagSet": { "shape": "S59" } } } }, "payload": "Tagging" } }, "PutBucketVersioning": { "http": { "method": "PUT", "requestUri": "/{Bucket}?versioning" }, "input": { "type": "structure", "required": [ "Bucket", "VersioningConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "MFA": { "location": "header", "locationName": "x-amz-mfa" }, "VersioningConfiguration": { "locationName": "VersioningConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "MFADelete": { "locationName": "MfaDelete" }, "Status": {} } } }, "payload": "VersioningConfiguration" } }, "PutBucketWebsite": { "http": { "method": "PUT", "requestUri": "/{Bucket}?website" }, "input": { "type": "structure", "required": [ "Bucket", "WebsiteConfiguration" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "WebsiteConfiguration": { "locationName": "WebsiteConfiguration", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "members": { "ErrorDocument": { "shape": "S5n" }, "IndexDocument": { "shape": "S5l" }, "RedirectAllRequestsTo": { "shape": "S5i" }, "RoutingRules": { "shape": "S5o" } } } }, "payload": "WebsiteConfiguration" } }, "PutObject": { "http": { "method": "PUT", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "Body": { "streaming": true, "type": "blob" }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "CacheControl": { "location": "header", "locationName": "Cache-Control" }, "ContentDisposition": { "location": "header", "locationName": "Content-Disposition" }, "ContentEncoding": { "location": "header", "locationName": "Content-Encoding" }, "ContentLanguage": { "location": "header", "locationName": "Content-Language" }, "ContentLength": { "location": "header", "locationName": "Content-Length", "type": "long" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "ContentType": { "location": "header", "locationName": "Content-Type" }, "Expires": { "location": "header", "locationName": "Expires", "type": "timestamp" }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" }, "Key": { "location": "uri", "locationName": "Key" }, "Metadata": { "shape": "S11", "location": "headers", "locationName": "x-amz-meta-" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "StorageClass": { "location": "header", "locationName": "x-amz-storage-class" }, "WebsiteRedirectLocation": { "location": "header", "locationName": "x-amz-website-redirect-location" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } }, "payload": "Body" }, "output": { "type": "structure", "members": { "Expiration": { "location": "header", "locationName": "x-amz-expiration" }, "ETag": { "location": "header", "locationName": "ETag" }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "VersionId": { "location": "header", "locationName": "x-amz-version-id" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "PutObjectAcl": { "http": { "method": "PUT", "requestUri": "/{Bucket}/{Key+}?acl" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "ACL": { "location": "header", "locationName": "x-amz-acl" }, "AccessControlPolicy": { "shape": "S89", "locationName": "AccessControlPolicy", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" } }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "GrantFullControl": { "location": "header", "locationName": "x-amz-grant-full-control" }, "GrantRead": { "location": "header", "locationName": "x-amz-grant-read" }, "GrantReadACP": { "location": "header", "locationName": "x-amz-grant-read-acp" }, "GrantWrite": { "location": "header", "locationName": "x-amz-grant-write" }, "GrantWriteACP": { "location": "header", "locationName": "x-amz-grant-write-acp" }, "Key": { "location": "uri", "locationName": "Key" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" }, "VersionId": { "location": "querystring", "locationName": "versionId" } }, "payload": "AccessControlPolicy" }, "output": { "type": "structure", "members": { "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "RestoreObject": { "http": { "requestUri": "/{Bucket}/{Key+}?restore" }, "input": { "type": "structure", "required": [ "Bucket", "Key" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "Key": { "location": "uri", "locationName": "Key" }, "VersionId": { "location": "querystring", "locationName": "versionId" }, "RestoreRequest": { "locationName": "RestoreRequest", "xmlNamespace": { "uri": "http://s3.amazonaws.com/doc/2006-03-01/" }, "type": "structure", "required": [ "Days" ], "members": { "Days": { "type": "integer" } } }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } }, "payload": "RestoreRequest" }, "output": { "type": "structure", "members": { "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } }, "alias": "PostObjectRestore" }, "UploadPart": { "http": { "method": "PUT", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "Key", "PartNumber", "UploadId" ], "members": { "Body": { "streaming": true, "type": "blob" }, "Bucket": { "location": "uri", "locationName": "Bucket" }, "ContentLength": { "location": "header", "locationName": "Content-Length", "type": "long" }, "ContentMD5": { "location": "header", "locationName": "Content-MD5" }, "Key": { "location": "uri", "locationName": "Key" }, "PartNumber": { "location": "querystring", "locationName": "partNumber", "type": "integer" }, "UploadId": { "location": "querystring", "locationName": "uploadId" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } }, "payload": "Body" }, "output": { "type": "structure", "members": { "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "ETag": { "location": "header", "locationName": "ETag" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } } } }, "UploadPartCopy": { "http": { "method": "PUT", "requestUri": "/{Bucket}/{Key+}" }, "input": { "type": "structure", "required": [ "Bucket", "CopySource", "Key", "PartNumber", "UploadId" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" }, "CopySource": { "location": "header", "locationName": "x-amz-copy-source" }, "CopySourceIfMatch": { "location": "header", "locationName": "x-amz-copy-source-if-match" }, "CopySourceIfModifiedSince": { "location": "header", "locationName": "x-amz-copy-source-if-modified-since", "type": "timestamp" }, "CopySourceIfNoneMatch": { "location": "header", "locationName": "x-amz-copy-source-if-none-match" }, "CopySourceIfUnmodifiedSince": { "location": "header", "locationName": "x-amz-copy-source-if-unmodified-since", "type": "timestamp" }, "CopySourceRange": { "location": "header", "locationName": "x-amz-copy-source-range" }, "Key": { "location": "uri", "locationName": "Key" }, "PartNumber": { "location": "querystring", "locationName": "partNumber", "type": "integer" }, "UploadId": { "location": "querystring", "locationName": "uploadId" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKey": { "shape": "S18", "location": "header", "locationName": "x-amz-server-side-encryption-customer-key" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "CopySourceSSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-algorithm" }, "CopySourceSSECustomerKey": { "shape": "S1b", "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-key" }, "CopySourceSSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-copy-source-server-side-encryption-customer-key-MD5" }, "RequestPayer": { "location": "header", "locationName": "x-amz-request-payer" } } }, "output": { "type": "structure", "members": { "CopySourceVersionId": { "location": "header", "locationName": "x-amz-copy-source-version-id" }, "CopyPartResult": { "type": "structure", "members": { "ETag": {}, "LastModified": { "type": "timestamp" } } }, "ServerSideEncryption": { "location": "header", "locationName": "x-amz-server-side-encryption" }, "SSECustomerAlgorithm": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-algorithm" }, "SSECustomerKeyMD5": { "location": "header", "locationName": "x-amz-server-side-encryption-customer-key-MD5" }, "SSEKMSKeyId": { "shape": "Sj", "location": "header", "locationName": "x-amz-server-side-encryption-aws-kms-key-id" }, "RequestCharged": { "location": "header", "locationName": "x-amz-request-charged" } }, "payload": "CopyPartResult" } } }, "shapes": { "Sj": { "type": "string", "sensitive": true }, "S11": { "type": "map", "key": {}, "value": {} }, "S18": { "type": "blob", "sensitive": true }, "S1b": { "type": "blob", "sensitive": true }, "S2k": { "type": "structure", "members": { "DisplayName": {}, "ID": {} } }, "S2n": { "type": "list", "member": { "locationName": "Grant", "type": "structure", "members": { "Grantee": { "shape": "S2p" }, "Permission": {} } } }, "S2p": { "type": "structure", "required": [ "Type" ], "members": { "DisplayName": {}, "EmailAddress": {}, "ID": {}, "Type": { "locationName": "xsi:type", "xmlAttribute": true }, "URI": {} }, "xmlNamespace": { "prefix": "xsi", "uri": "http://www.w3.org/2001/XMLSchema-instance" } }, "S2w": { "type": "list", "member": { "type": "structure", "required": [ "AllowedMethods", "AllowedOrigins" ], "members": { "AllowedHeaders": { "locationName": "AllowedHeader", "type": "list", "member": {}, "flattened": true }, "AllowedMethods": { "locationName": "AllowedMethod", "type": "list", "member": {}, "flattened": true }, "AllowedOrigins": { "locationName": "AllowedOrigin", "type": "list", "member": {}, "flattened": true }, "ExposeHeaders": { "locationName": "ExposeHeader", "type": "list", "member": {}, "flattened": true }, "MaxAgeSeconds": { "type": "integer" } } }, "flattened": true }, "S39": { "type": "list", "member": { "type": "structure", "required": [ "Prefix", "Status" ], "members": { "Expiration": { "shape": "S3b" }, "ID": {}, "Prefix": {}, "Status": {}, "Transition": { "shape": "S3h" }, "NoncurrentVersionTransition": { "shape": "S3j" }, "NoncurrentVersionExpiration": { "shape": "S3k" }, "AbortIncompleteMultipartUpload": { "shape": "S3l" } } }, "flattened": true }, "S3b": { "type": "structure", "members": { "Date": { "shape": "S3c" }, "Days": { "type": "integer" }, "ExpiredObjectDeleteMarker": { "type": "boolean" } } }, "S3c": { "type": "timestamp", "timestampFormat": "iso8601" }, "S3h": { "type": "structure", "members": { "Date": { "shape": "S3c" }, "Days": { "type": "integer" }, "StorageClass": {} } }, "S3j": { "type": "structure", "members": { "NoncurrentDays": { "type": "integer" }, "StorageClass": {} } }, "S3k": { "type": "structure", "members": { "NoncurrentDays": { "type": "integer" } } }, "S3l": { "type": "structure", "members": { "DaysAfterInitiation": { "type": "integer" } } }, "S3p": { "type": "list", "member": { "type": "structure", "required": [ "Prefix", "Status" ], "members": { "Expiration": { "shape": "S3b" }, "ID": {}, "Prefix": {}, "Status": {}, "Transitions": { "locationName": "Transition", "type": "list", "member": { "shape": "S3h" }, "flattened": true }, "NoncurrentVersionTransitions": { "locationName": "NoncurrentVersionTransition", "type": "list", "member": { "shape": "S3j" }, "flattened": true }, "NoncurrentVersionExpiration": { "shape": "S3k" }, "AbortIncompleteMultipartUpload": { "shape": "S3l" } } }, "flattened": true }, "S3x": { "type": "structure", "members": { "TargetBucket": {}, "TargetGrants": { "type": "list", "member": { "locationName": "Grant", "type": "structure", "members": { "Grantee": { "shape": "S2p" }, "Permission": {} } } }, "TargetPrefix": {} } }, "S43": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": { "location": "uri", "locationName": "Bucket" } } }, "S44": { "type": "structure", "members": { "TopicConfiguration": { "type": "structure", "members": { "Id": {}, "Events": { "shape": "S47", "locationName": "Event" }, "Event": { "deprecated": true }, "Topic": {} } }, "QueueConfiguration": { "type": "structure", "members": { "Id": {}, "Event": { "deprecated": true }, "Events": { "shape": "S47", "locationName": "Event" }, "Queue": {} } }, "CloudFunctionConfiguration": { "type": "structure", "members": { "Id": {}, "Event": { "deprecated": true }, "Events": { "shape": "S47", "locationName": "Event" }, "CloudFunction": {}, "InvocationRole": {} } } } }, "S47": { "type": "list", "member": {}, "flattened": true }, "S4f": { "type": "structure", "members": { "TopicConfigurations": { "locationName": "TopicConfiguration", "type": "list", "member": { "type": "structure", "required": [ "TopicArn", "Events" ], "members": { "Id": {}, "TopicArn": { "locationName": "Topic" }, "Events": { "shape": "S47", "locationName": "Event" }, "Filter": { "shape": "S4i" } } }, "flattened": true }, "QueueConfigurations": { "locationName": "QueueConfiguration", "type": "list", "member": { "type": "structure", "required": [ "QueueArn", "Events" ], "members": { "Id": {}, "QueueArn": { "locationName": "Queue" }, "Events": { "shape": "S47", "locationName": "Event" }, "Filter": { "shape": "S4i" } } }, "flattened": true }, "LambdaFunctionConfigurations": { "locationName": "CloudFunctionConfiguration", "type": "list", "member": { "type": "structure", "required": [ "LambdaFunctionArn", "Events" ], "members": { "Id": {}, "LambdaFunctionArn": { "locationName": "CloudFunction" }, "Events": { "shape": "S47", "locationName": "Event" }, "Filter": { "shape": "S4i" } } }, "flattened": true } } }, "S4i": { "type": "structure", "members": { "Key": { "locationName": "S3Key", "type": "structure", "members": { "FilterRules": { "locationName": "FilterRule", "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Value": {} } }, "flattened": true } } } } }, "S4y": { "type": "structure", "required": [ "Role", "Rules" ], "members": { "Role": {}, "Rules": { "locationName": "Rule", "type": "list", "member": { "type": "structure", "required": [ "Prefix", "Status", "Destination" ], "members": { "ID": {}, "Prefix": {}, "Status": {}, "Destination": { "type": "structure", "required": [ "Bucket" ], "members": { "Bucket": {}, "StorageClass": {} } } } }, "flattened": true } } }, "S59": { "type": "list", "member": { "locationName": "Tag", "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {} } } }, "S5i": { "type": "structure", "required": [ "HostName" ], "members": { "HostName": {}, "Protocol": {} } }, "S5l": { "type": "structure", "required": [ "Suffix" ], "members": { "Suffix": {} } }, "S5n": { "type": "structure", "required": [ "Key" ], "members": { "Key": {} } }, "S5o": { "type": "list", "member": { "locationName": "RoutingRule", "type": "structure", "required": [ "Redirect" ], "members": { "Condition": { "type": "structure", "members": { "HttpErrorCodeReturnedEquals": {}, "KeyPrefixEquals": {} } }, "Redirect": { "type": "structure", "members": { "HostName": {}, "HttpRedirectCode": {}, "Protocol": {}, "ReplaceKeyPrefixWith": {}, "ReplaceKeyWith": {} } } } } }, "S76": { "type": "structure", "members": { "ID": {}, "DisplayName": {} } }, "S77": { "type": "list", "member": { "type": "structure", "members": { "Prefix": {} } }, "flattened": true }, "S7p": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "LastModified": { "type": "timestamp" }, "ETag": {}, "Size": { "type": "integer" }, "StorageClass": {}, "Owner": { "shape": "S2k" } } }, "flattened": true }, "S89": { "type": "structure", "members": { "Grants": { "shape": "S2n", "locationName": "AccessControlList" }, "Owner": { "shape": "S2k" } } } } } },{}],121:[function(require,module,exports){ module.exports={ "pagination": { "ListBuckets": { "result_key": "Buckets" }, "ListMultipartUploads": { "limit_key": "MaxUploads", "more_results": "IsTruncated", "output_token": [ "NextKeyMarker", "NextUploadIdMarker" ], "input_token": [ "KeyMarker", "UploadIdMarker" ], "result_key": [ "Uploads", "CommonPrefixes" ] }, "ListObjectVersions": { "more_results": "IsTruncated", "limit_key": "MaxKeys", "output_token": [ "NextKeyMarker", "NextVersionIdMarker" ], "input_token": [ "KeyMarker", "VersionIdMarker" ], "result_key": [ "Versions", "DeleteMarkers", "CommonPrefixes" ] }, "ListObjects": { "more_results": "IsTruncated", "limit_key": "MaxKeys", "output_token": "NextMarker || Contents[-1].Key", "input_token": "Marker", "result_key": [ "Contents", "CommonPrefixes" ] }, "ListObjectsV2": { "limit_key": "MaxKeys", "output_token": "NextContinuationToken", "input_token": "ContinuationToken", "result_key": [ "Contents", "CommonPrefixes" ] }, "ListParts": { "more_results": "IsTruncated", "limit_key": "MaxParts", "output_token": "NextPartNumberMarker", "input_token": "PartNumberMarker", "result_key": "Parts" } } } },{}],122:[function(require,module,exports){ module.exports={ "version": 2, "waiters": { "BucketExists": { "delay": 5, "operation": "HeadBucket", "maxAttempts": 20, "acceptors": [ { "expected": 200, "matcher": "status", "state": "success" }, { "expected": 301, "matcher": "status", "state": "success" }, { "expected": 403, "matcher": "status", "state": "success" }, { "expected": 404, "matcher": "status", "state": "retry" } ] }, "BucketNotExists": { "delay": 5, "operation": "HeadBucket", "maxAttempts": 20, "acceptors": [ { "expected": 404, "matcher": "status", "state": "success" } ] }, "ObjectExists": { "delay": 5, "operation": "HeadObject", "maxAttempts": 20, "acceptors": [ { "expected": 200, "matcher": "status", "state": "success" }, { "expected": 404, "matcher": "status", "state": "retry" } ] }, "ObjectNotExists": { "delay": 5, "operation": "HeadObject", "maxAttempts": 20, "acceptors": [ { "expected": 404, "matcher": "status", "state": "success" } ] } } } },{}],123:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-12-10", "endpointPrefix": "servicecatalog", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS Service Catalog", "signatureVersion": "v4", "targetPrefix": "AWS242ServiceCatalogService" }, "operations": { "DescribeProduct": { "input": { "type": "structure", "required": [ "Id" ], "members": { "AcceptLanguage": {}, "Id": {} } }, "output": { "type": "structure", "members": { "ProductViewSummary": { "shape": "S5" }, "ProvisioningArtifacts": { "shape": "Sf" } } } }, "DescribeProductView": { "input": { "type": "structure", "required": [ "Id" ], "members": { "AcceptLanguage": {}, "Id": {} } }, "output": { "type": "structure", "members": { "ProductViewSummary": { "shape": "S5" }, "ProvisioningArtifacts": { "shape": "Sf" } } } }, "DescribeProvisioningParameters": { "input": { "type": "structure", "required": [ "ProductId", "ProvisioningArtifactId" ], "members": { "AcceptLanguage": {}, "ProductId": {}, "ProvisioningArtifactId": {}, "PathId": {} } }, "output": { "type": "structure", "members": { "ProvisioningArtifactParameters": { "type": "list", "member": { "type": "structure", "members": { "ParameterKey": {}, "DefaultValue": {}, "ParameterType": {}, "IsNoEcho": { "type": "boolean" }, "Description": {}, "ParameterConstraints": { "type": "structure", "members": { "AllowedValues": { "type": "list", "member": {} } } } } } }, "ConstraintSummaries": { "shape": "Sy" }, "UsageInstructions": { "type": "list", "member": { "type": "structure", "members": { "Type": {}, "Value": {} } } } } } }, "DescribeRecord": { "input": { "type": "structure", "required": [ "Id" ], "members": { "AcceptLanguage": {}, "Id": {}, "PageToken": {}, "PageSize": { "type": "integer" } } }, "output": { "type": "structure", "members": { "RecordDetail": { "shape": "S1a" }, "RecordOutputs": { "type": "list", "member": { "type": "structure", "members": { "OutputKey": {}, "OutputValue": {}, "Description": {} } } }, "NextPageToken": {} } } }, "ListLaunchPaths": { "input": { "type": "structure", "required": [ "ProductId" ], "members": { "AcceptLanguage": {}, "ProductId": {}, "PageSize": { "type": "integer" }, "PageToken": {} } }, "output": { "type": "structure", "members": { "LaunchPathSummaries": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "ConstraintSummaries": { "shape": "Sy" }, "Tags": { "shape": "S1x" }, "Name": {} } } }, "NextPageToken": {} } } }, "ListRecordHistory": { "input": { "type": "structure", "members": { "AcceptLanguage": {}, "AccessLevelFilter": { "shape": "S23" }, "SearchFilter": { "type": "structure", "members": { "Key": {}, "Value": {} } }, "PageSize": { "type": "integer" }, "PageToken": {} } }, "output": { "type": "structure", "members": { "RecordDetails": { "type": "list", "member": { "shape": "S1a" } }, "NextPageToken": {} } } }, "ProvisionProduct": { "input": { "type": "structure", "required": [ "ProductId", "ProvisioningArtifactId", "ProvisionedProductName", "ProvisionToken" ], "members": { "AcceptLanguage": {}, "ProductId": {}, "ProvisioningArtifactId": {}, "PathId": {}, "ProvisionedProductName": {}, "ProvisioningParameters": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "Tags": { "shape": "S1x" }, "NotificationArns": { "type": "list", "member": {} }, "ProvisionToken": { "idempotencyToken": true } } }, "output": { "type": "structure", "members": { "RecordDetail": { "shape": "S1a" } } } }, "ScanProvisionedProducts": { "input": { "type": "structure", "members": { "AcceptLanguage": {}, "AccessLevelFilter": { "shape": "S23" }, "PageSize": { "type": "integer" }, "PageToken": {} } }, "output": { "type": "structure", "members": { "ProvisionedProducts": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Arn": {}, "Type": {}, "Id": {}, "Status": {}, "StatusMessage": {}, "CreatedTime": { "type": "timestamp" }, "IdempotencyToken": {}, "LastRecordId": {} } } }, "NextPageToken": {} } } }, "SearchProducts": { "input": { "type": "structure", "members": { "AcceptLanguage": {}, "Filters": { "type": "map", "key": {}, "value": { "type": "list", "member": {} } }, "PageSize": { "type": "integer" }, "SortBy": {}, "SortOrder": {}, "PageToken": {} } }, "output": { "type": "structure", "members": { "ProductViewSummaries": { "type": "list", "member": { "shape": "S5" } }, "ProductViewAggregations": { "type": "map", "key": {}, "value": { "type": "list", "member": { "type": "structure", "members": { "Value": {}, "ApproximateCount": { "type": "integer" } } } } }, "NextPageToken": {} } } }, "TerminateProvisionedProduct": { "input": { "type": "structure", "required": [ "TerminateToken" ], "members": { "ProvisionedProductName": {}, "ProvisionedProductId": {}, "TerminateToken": { "idempotencyToken": true }, "IgnoreErrors": { "type": "boolean" }, "AcceptLanguage": {} } }, "output": { "type": "structure", "members": { "RecordDetail": { "shape": "S1a" } } } }, "UpdateProvisionedProduct": { "input": { "type": "structure", "required": [ "UpdateToken" ], "members": { "AcceptLanguage": {}, "ProvisionedProductName": {}, "ProvisionedProductId": {}, "ProductId": {}, "ProvisioningArtifactId": {}, "PathId": {}, "ProvisioningParameters": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {}, "UsePreviousValue": { "type": "boolean" } } } }, "UpdateToken": { "idempotencyToken": true } } }, "output": { "type": "structure", "members": { "RecordDetail": { "shape": "S1a" } } } } }, "shapes": { "S5": { "type": "structure", "members": { "Id": {}, "ProductId": {}, "Name": {}, "Owner": {}, "ShortDescription": {}, "Type": {}, "Distributor": {}, "HasDefaultPath": { "type": "boolean" }, "SupportEmail": {}, "SupportDescription": {}, "SupportUrl": {} } }, "Sf": { "type": "list", "member": { "type": "structure", "members": { "Id": {}, "Name": {}, "Description": {}, "CreatedTime": { "type": "timestamp" } } } }, "Sy": { "type": "list", "member": { "type": "structure", "members": { "Type": {}, "Description": {} } } }, "S1a": { "type": "structure", "members": { "RecordId": {}, "ProvisionedProductName": {}, "Status": {}, "CreatedTime": { "type": "timestamp" }, "UpdatedTime": { "type": "timestamp" }, "ProvisionedProductType": {}, "RecordType": {}, "ProvisionedProductId": {}, "ProductId": {}, "ProvisioningArtifactId": {}, "PathId": {}, "RecordErrors": { "type": "list", "member": { "type": "structure", "members": { "Code": {}, "Description": {} } } }, "RecordTags": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } } } }, "S1x": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S23": { "type": "structure", "members": { "Key": {}, "Value": {} } } } } },{}],124:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2010-03-31", "endpointPrefix": "sns", "protocol": "query", "serviceAbbreviation": "Amazon SNS", "serviceFullName": "Amazon Simple Notification Service", "signatureVersion": "v4", "xmlNamespace": "http://sns.amazonaws.com/doc/2010-03-31/" }, "operations": { "AddPermission": { "input": { "type": "structure", "required": [ "TopicArn", "Label", "AWSAccountId", "ActionName" ], "members": { "TopicArn": {}, "Label": {}, "AWSAccountId": { "type": "list", "member": {} }, "ActionName": { "type": "list", "member": {} } } } }, "CheckIfPhoneNumberIsOptedOut": { "input": { "type": "structure", "required": [ "phoneNumber" ], "members": { "phoneNumber": {} } }, "output": { "resultWrapper": "CheckIfPhoneNumberIsOptedOutResult", "type": "structure", "members": { "isOptedOut": { "type": "boolean" } } } }, "ConfirmSubscription": { "input": { "type": "structure", "required": [ "TopicArn", "Token" ], "members": { "TopicArn": {}, "Token": {}, "AuthenticateOnUnsubscribe": {} } }, "output": { "resultWrapper": "ConfirmSubscriptionResult", "type": "structure", "members": { "SubscriptionArn": {} } } }, "CreatePlatformApplication": { "input": { "type": "structure", "required": [ "Name", "Platform", "Attributes" ], "members": { "Name": {}, "Platform": {}, "Attributes": { "shape": "Sj" } } }, "output": { "resultWrapper": "CreatePlatformApplicationResult", "type": "structure", "members": { "PlatformApplicationArn": {} } } }, "CreatePlatformEndpoint": { "input": { "type": "structure", "required": [ "PlatformApplicationArn", "Token" ], "members": { "PlatformApplicationArn": {}, "Token": {}, "CustomUserData": {}, "Attributes": { "shape": "Sj" } } }, "output": { "resultWrapper": "CreatePlatformEndpointResult", "type": "structure", "members": { "EndpointArn": {} } } }, "CreateTopic": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "resultWrapper": "CreateTopicResult", "type": "structure", "members": { "TopicArn": {} } } }, "DeleteEndpoint": { "input": { "type": "structure", "required": [ "EndpointArn" ], "members": { "EndpointArn": {} } } }, "DeletePlatformApplication": { "input": { "type": "structure", "required": [ "PlatformApplicationArn" ], "members": { "PlatformApplicationArn": {} } } }, "DeleteTopic": { "input": { "type": "structure", "required": [ "TopicArn" ], "members": { "TopicArn": {} } } }, "GetEndpointAttributes": { "input": { "type": "structure", "required": [ "EndpointArn" ], "members": { "EndpointArn": {} } }, "output": { "resultWrapper": "GetEndpointAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "Sj" } } } }, "GetPlatformApplicationAttributes": { "input": { "type": "structure", "required": [ "PlatformApplicationArn" ], "members": { "PlatformApplicationArn": {} } }, "output": { "resultWrapper": "GetPlatformApplicationAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "Sj" } } } }, "GetSMSAttributes": { "input": { "type": "structure", "members": { "attributes": { "type": "list", "member": {} } } }, "output": { "resultWrapper": "GetSMSAttributesResult", "type": "structure", "members": { "attributes": { "shape": "Sj" } } } }, "GetSubscriptionAttributes": { "input": { "type": "structure", "required": [ "SubscriptionArn" ], "members": { "SubscriptionArn": {} } }, "output": { "resultWrapper": "GetSubscriptionAttributesResult", "type": "structure", "members": { "Attributes": { "type": "map", "key": {}, "value": {} } } } }, "GetTopicAttributes": { "input": { "type": "structure", "required": [ "TopicArn" ], "members": { "TopicArn": {} } }, "output": { "resultWrapper": "GetTopicAttributesResult", "type": "structure", "members": { "Attributes": { "type": "map", "key": {}, "value": {} } } } }, "ListEndpointsByPlatformApplication": { "input": { "type": "structure", "required": [ "PlatformApplicationArn" ], "members": { "PlatformApplicationArn": {}, "NextToken": {} } }, "output": { "resultWrapper": "ListEndpointsByPlatformApplicationResult", "type": "structure", "members": { "Endpoints": { "type": "list", "member": { "type": "structure", "members": { "EndpointArn": {}, "Attributes": { "shape": "Sj" } } } }, "NextToken": {} } } }, "ListPhoneNumbersOptedOut": { "input": { "type": "structure", "members": { "nextToken": {} } }, "output": { "resultWrapper": "ListPhoneNumbersOptedOutResult", "type": "structure", "members": { "phoneNumbers": { "type": "list", "member": {} }, "nextToken": {} } } }, "ListPlatformApplications": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "resultWrapper": "ListPlatformApplicationsResult", "type": "structure", "members": { "PlatformApplications": { "type": "list", "member": { "type": "structure", "members": { "PlatformApplicationArn": {}, "Attributes": { "shape": "Sj" } } } }, "NextToken": {} } } }, "ListSubscriptions": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "resultWrapper": "ListSubscriptionsResult", "type": "structure", "members": { "Subscriptions": { "shape": "S1n" }, "NextToken": {} } } }, "ListSubscriptionsByTopic": { "input": { "type": "structure", "required": [ "TopicArn" ], "members": { "TopicArn": {}, "NextToken": {} } }, "output": { "resultWrapper": "ListSubscriptionsByTopicResult", "type": "structure", "members": { "Subscriptions": { "shape": "S1n" }, "NextToken": {} } } }, "ListTopics": { "input": { "type": "structure", "members": { "NextToken": {} } }, "output": { "resultWrapper": "ListTopicsResult", "type": "structure", "members": { "Topics": { "type": "list", "member": { "type": "structure", "members": { "TopicArn": {} } } }, "NextToken": {} } } }, "OptInPhoneNumber": { "input": { "type": "structure", "required": [ "phoneNumber" ], "members": { "phoneNumber": {} } }, "output": { "resultWrapper": "OptInPhoneNumberResult", "type": "structure", "members": {} } }, "Publish": { "input": { "type": "structure", "required": [ "Message" ], "members": { "TopicArn": {}, "TargetArn": {}, "PhoneNumber": {}, "Message": {}, "Subject": {}, "MessageStructure": {}, "MessageAttributes": { "type": "map", "key": { "locationName": "Name" }, "value": { "locationName": "Value", "type": "structure", "required": [ "DataType" ], "members": { "DataType": {}, "StringValue": {}, "BinaryValue": { "type": "blob" } } } } } }, "output": { "resultWrapper": "PublishResult", "type": "structure", "members": { "MessageId": {} } } }, "RemovePermission": { "input": { "type": "structure", "required": [ "TopicArn", "Label" ], "members": { "TopicArn": {}, "Label": {} } } }, "SetEndpointAttributes": { "input": { "type": "structure", "required": [ "EndpointArn", "Attributes" ], "members": { "EndpointArn": {}, "Attributes": { "shape": "Sj" } } } }, "SetPlatformApplicationAttributes": { "input": { "type": "structure", "required": [ "PlatformApplicationArn", "Attributes" ], "members": { "PlatformApplicationArn": {}, "Attributes": { "shape": "Sj" } } } }, "SetSMSAttributes": { "input": { "type": "structure", "required": [ "attributes" ], "members": { "attributes": { "shape": "Sj" } } }, "output": { "resultWrapper": "SetSMSAttributesResult", "type": "structure", "members": {} } }, "SetSubscriptionAttributes": { "input": { "type": "structure", "required": [ "SubscriptionArn", "AttributeName" ], "members": { "SubscriptionArn": {}, "AttributeName": {}, "AttributeValue": {} } } }, "SetTopicAttributes": { "input": { "type": "structure", "required": [ "TopicArn", "AttributeName" ], "members": { "TopicArn": {}, "AttributeName": {}, "AttributeValue": {} } } }, "Subscribe": { "input": { "type": "structure", "required": [ "TopicArn", "Protocol" ], "members": { "TopicArn": {}, "Protocol": {}, "Endpoint": {} } }, "output": { "resultWrapper": "SubscribeResult", "type": "structure", "members": { "SubscriptionArn": {} } } }, "Unsubscribe": { "input": { "type": "structure", "required": [ "SubscriptionArn" ], "members": { "SubscriptionArn": {} } } } }, "shapes": { "Sj": { "type": "map", "key": {}, "value": {} }, "S1n": { "type": "list", "member": { "type": "structure", "members": { "SubscriptionArn": {}, "Owner": {}, "Protocol": {}, "Endpoint": {}, "TopicArn": {} } } } } } },{}],125:[function(require,module,exports){ module.exports={ "pagination": { "ListEndpointsByPlatformApplication": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Endpoints" }, "ListPlatformApplications": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "PlatformApplications" }, "ListSubscriptions": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Subscriptions" }, "ListSubscriptionsByTopic": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Subscriptions" }, "ListTopics": { "input_token": "NextToken", "output_token": "NextToken", "result_key": "Topics" } } } },{}],126:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-11-05", "endpointPrefix": "sqs", "protocol": "query", "serviceAbbreviation": "Amazon SQS", "serviceFullName": "Amazon Simple Queue Service", "signatureVersion": "v4", "xmlNamespace": "http://queue.amazonaws.com/doc/2012-11-05/" }, "operations": { "AddPermission": { "input": { "type": "structure", "required": [ "QueueUrl", "Label", "AWSAccountIds", "Actions" ], "members": { "QueueUrl": {}, "Label": {}, "AWSAccountIds": { "type": "list", "member": { "locationName": "AWSAccountId" }, "flattened": true }, "Actions": { "type": "list", "member": { "locationName": "ActionName" }, "flattened": true } } } }, "ChangeMessageVisibility": { "input": { "type": "structure", "required": [ "QueueUrl", "ReceiptHandle", "VisibilityTimeout" ], "members": { "QueueUrl": {}, "ReceiptHandle": {}, "VisibilityTimeout": { "type": "integer" } } } }, "ChangeMessageVisibilityBatch": { "input": { "type": "structure", "required": [ "QueueUrl", "Entries" ], "members": { "QueueUrl": {}, "Entries": { "type": "list", "member": { "locationName": "ChangeMessageVisibilityBatchRequestEntry", "type": "structure", "required": [ "Id", "ReceiptHandle" ], "members": { "Id": {}, "ReceiptHandle": {}, "VisibilityTimeout": { "type": "integer" } } }, "flattened": true } } }, "output": { "resultWrapper": "ChangeMessageVisibilityBatchResult", "type": "structure", "required": [ "Successful", "Failed" ], "members": { "Successful": { "type": "list", "member": { "locationName": "ChangeMessageVisibilityBatchResultEntry", "type": "structure", "required": [ "Id" ], "members": { "Id": {} } }, "flattened": true }, "Failed": { "shape": "Sd" } } } }, "CreateQueue": { "input": { "type": "structure", "required": [ "QueueName" ], "members": { "QueueName": {}, "Attributes": { "shape": "Sh", "locationName": "Attribute" } } }, "output": { "resultWrapper": "CreateQueueResult", "type": "structure", "members": { "QueueUrl": {} } } }, "DeleteMessage": { "input": { "type": "structure", "required": [ "QueueUrl", "ReceiptHandle" ], "members": { "QueueUrl": {}, "ReceiptHandle": {} } } }, "DeleteMessageBatch": { "input": { "type": "structure", "required": [ "QueueUrl", "Entries" ], "members": { "QueueUrl": {}, "Entries": { "type": "list", "member": { "locationName": "DeleteMessageBatchRequestEntry", "type": "structure", "required": [ "Id", "ReceiptHandle" ], "members": { "Id": {}, "ReceiptHandle": {} } }, "flattened": true } } }, "output": { "resultWrapper": "DeleteMessageBatchResult", "type": "structure", "required": [ "Successful", "Failed" ], "members": { "Successful": { "type": "list", "member": { "locationName": "DeleteMessageBatchResultEntry", "type": "structure", "required": [ "Id" ], "members": { "Id": {} } }, "flattened": true }, "Failed": { "shape": "Sd" } } } }, "DeleteQueue": { "input": { "type": "structure", "required": [ "QueueUrl" ], "members": { "QueueUrl": {} } } }, "GetQueueAttributes": { "input": { "type": "structure", "required": [ "QueueUrl" ], "members": { "QueueUrl": {}, "AttributeNames": { "shape": "St" } } }, "output": { "resultWrapper": "GetQueueAttributesResult", "type": "structure", "members": { "Attributes": { "shape": "Sh", "locationName": "Attribute" } } } }, "GetQueueUrl": { "input": { "type": "structure", "required": [ "QueueName" ], "members": { "QueueName": {}, "QueueOwnerAWSAccountId": {} } }, "output": { "resultWrapper": "GetQueueUrlResult", "type": "structure", "members": { "QueueUrl": {} } } }, "ListDeadLetterSourceQueues": { "input": { "type": "structure", "required": [ "QueueUrl" ], "members": { "QueueUrl": {} } }, "output": { "resultWrapper": "ListDeadLetterSourceQueuesResult", "type": "structure", "required": [ "queueUrls" ], "members": { "queueUrls": { "shape": "Sz" } } } }, "ListQueues": { "input": { "type": "structure", "members": { "QueueNamePrefix": {} } }, "output": { "resultWrapper": "ListQueuesResult", "type": "structure", "members": { "QueueUrls": { "shape": "Sz" } } } }, "PurgeQueue": { "input": { "type": "structure", "required": [ "QueueUrl" ], "members": { "QueueUrl": {} } } }, "ReceiveMessage": { "input": { "type": "structure", "required": [ "QueueUrl" ], "members": { "QueueUrl": {}, "AttributeNames": { "shape": "St" }, "MessageAttributeNames": { "type": "list", "member": { "locationName": "MessageAttributeName" }, "flattened": true }, "MaxNumberOfMessages": { "type": "integer" }, "VisibilityTimeout": { "type": "integer" }, "WaitTimeSeconds": { "type": "integer" } } }, "output": { "resultWrapper": "ReceiveMessageResult", "type": "structure", "members": { "Messages": { "type": "list", "member": { "locationName": "Message", "type": "structure", "members": { "MessageId": {}, "ReceiptHandle": {}, "MD5OfBody": {}, "Body": {}, "Attributes": { "shape": "Sh", "locationName": "Attribute" }, "MD5OfMessageAttributes": {}, "MessageAttributes": { "shape": "S19", "locationName": "MessageAttribute" } } }, "flattened": true } } } }, "RemovePermission": { "input": { "type": "structure", "required": [ "QueueUrl", "Label" ], "members": { "QueueUrl": {}, "Label": {} } } }, "SendMessage": { "input": { "type": "structure", "required": [ "QueueUrl", "MessageBody" ], "members": { "QueueUrl": {}, "MessageBody": {}, "DelaySeconds": { "type": "integer" }, "MessageAttributes": { "shape": "S19", "locationName": "MessageAttribute" } } }, "output": { "resultWrapper": "SendMessageResult", "type": "structure", "members": { "MD5OfMessageBody": {}, "MD5OfMessageAttributes": {}, "MessageId": {} } } }, "SendMessageBatch": { "input": { "type": "structure", "required": [ "QueueUrl", "Entries" ], "members": { "QueueUrl": {}, "Entries": { "type": "list", "member": { "locationName": "SendMessageBatchRequestEntry", "type": "structure", "required": [ "Id", "MessageBody" ], "members": { "Id": {}, "MessageBody": {}, "DelaySeconds": { "type": "integer" }, "MessageAttributes": { "shape": "S19", "locationName": "MessageAttribute" } } }, "flattened": true } } }, "output": { "resultWrapper": "SendMessageBatchResult", "type": "structure", "required": [ "Successful", "Failed" ], "members": { "Successful": { "type": "list", "member": { "locationName": "SendMessageBatchResultEntry", "type": "structure", "required": [ "Id", "MessageId", "MD5OfMessageBody" ], "members": { "Id": {}, "MessageId": {}, "MD5OfMessageBody": {}, "MD5OfMessageAttributes": {} } }, "flattened": true }, "Failed": { "shape": "Sd" } } } }, "SetQueueAttributes": { "input": { "type": "structure", "required": [ "QueueUrl", "Attributes" ], "members": { "QueueUrl": {}, "Attributes": { "shape": "Sh", "locationName": "Attribute" } } } } }, "shapes": { "Sd": { "type": "list", "member": { "locationName": "BatchResultErrorEntry", "type": "structure", "required": [ "Id", "SenderFault", "Code" ], "members": { "Id": {}, "SenderFault": { "type": "boolean" }, "Code": {}, "Message": {} } }, "flattened": true }, "Sh": { "type": "map", "key": { "locationName": "Name" }, "value": { "locationName": "Value" }, "flattened": true, "locationName": "Attribute" }, "St": { "type": "list", "member": { "locationName": "AttributeName" }, "flattened": true }, "Sz": { "type": "list", "member": { "locationName": "QueueUrl" }, "flattened": true }, "S19": { "type": "map", "key": { "locationName": "Name" }, "value": { "locationName": "Value", "type": "structure", "required": [ "DataType" ], "members": { "StringValue": {}, "BinaryValue": { "type": "blob" }, "StringListValues": { "flattened": true, "locationName": "StringListValue", "type": "list", "member": { "locationName": "StringListValue" } }, "BinaryListValues": { "flattened": true, "locationName": "BinaryListValue", "type": "list", "member": { "locationName": "BinaryListValue", "type": "blob" } }, "DataType": {} } }, "flattened": true } } } },{}],127:[function(require,module,exports){ module.exports={ "pagination": { "ListQueues": { "result_key": "QueueUrls" } } } },{}],128:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2014-11-06", "endpointPrefix": "ssm", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Amazon SSM", "serviceFullName": "Amazon Simple Systems Management Service", "signatureVersion": "v4", "targetPrefix": "AmazonSSM" }, "operations": { "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceType", "ResourceId", "Tags" ], "members": { "ResourceType": {}, "ResourceId": {}, "Tags": { "shape": "S4" } } }, "output": { "type": "structure", "members": {} } }, "CancelCommand": { "input": { "type": "structure", "required": [ "CommandId" ], "members": { "CommandId": {}, "InstanceIds": { "shape": "Sb" } } }, "output": { "type": "structure", "members": {} } }, "CreateActivation": { "input": { "type": "structure", "required": [ "IamRole" ], "members": { "Description": {}, "DefaultInstanceName": {}, "IamRole": {}, "RegistrationLimit": { "type": "integer" }, "ExpirationDate": { "type": "timestamp" } } }, "output": { "type": "structure", "members": { "ActivationId": {}, "ActivationCode": {} } } }, "CreateAssociation": { "input": { "type": "structure", "required": [ "Name", "InstanceId" ], "members": { "Name": {}, "InstanceId": {}, "Parameters": { "shape": "Sp" } } }, "output": { "type": "structure", "members": { "AssociationDescription": { "shape": "Su" } } } }, "CreateAssociationBatch": { "input": { "type": "structure", "required": [ "Entries" ], "members": { "Entries": { "type": "list", "member": { "shape": "S12", "locationName": "entries" } } } }, "output": { "type": "structure", "members": { "Successful": { "type": "list", "member": { "shape": "Su", "locationName": "AssociationDescription" } }, "Failed": { "type": "list", "member": { "locationName": "FailedCreateAssociationEntry", "type": "structure", "members": { "Entry": { "shape": "S12" }, "Message": {}, "Fault": {} } } } } } }, "CreateDocument": { "input": { "type": "structure", "required": [ "Content", "Name" ], "members": { "Content": {}, "Name": {} } }, "output": { "type": "structure", "members": { "DocumentDescription": { "shape": "S1c" } } } }, "DeleteActivation": { "input": { "type": "structure", "required": [ "ActivationId" ], "members": { "ActivationId": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteAssociation": { "input": { "type": "structure", "required": [ "Name", "InstanceId" ], "members": { "Name": {}, "InstanceId": {} } }, "output": { "type": "structure", "members": {} } }, "DeleteDocument": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": {} } }, "DeregisterManagedInstance": { "input": { "type": "structure", "required": [ "InstanceId" ], "members": { "InstanceId": {} } }, "output": { "type": "structure", "members": {} } }, "DescribeActivations": { "input": { "type": "structure", "members": { "Filters": { "type": "list", "member": { "type": "structure", "members": { "FilterKey": {}, "FilterValues": { "type": "list", "member": {} } } } }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "ActivationList": { "type": "list", "member": { "type": "structure", "members": { "ActivationId": {}, "Description": {}, "DefaultInstanceName": {}, "IamRole": {}, "RegistrationLimit": { "type": "integer" }, "RegistrationsCount": { "type": "integer" }, "ExpirationDate": { "type": "timestamp" }, "Expired": { "type": "boolean" }, "CreatedDate": { "type": "timestamp" } } } }, "NextToken": {} } } }, "DescribeAssociation": { "input": { "type": "structure", "required": [ "Name", "InstanceId" ], "members": { "Name": {}, "InstanceId": {} } }, "output": { "type": "structure", "members": { "AssociationDescription": { "shape": "Su" } } } }, "DescribeDocument": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": { "Document": { "shape": "S1c" } } } }, "DescribeDocumentPermission": { "input": { "type": "structure", "required": [ "Name", "PermissionType" ], "members": { "Name": {}, "PermissionType": {} } }, "output": { "type": "structure", "members": { "AccountIds": { "shape": "S2m" } } } }, "DescribeInstanceInformation": { "input": { "type": "structure", "members": { "InstanceInformationFilterList": { "type": "list", "member": { "locationName": "InstanceInformationFilter", "type": "structure", "required": [ "key", "valueSet" ], "members": { "key": {}, "valueSet": { "type": "list", "member": { "locationName": "InstanceInformationFilterValue" } } } } }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "InstanceInformationList": { "type": "list", "member": { "locationName": "InstanceInformation", "type": "structure", "members": { "InstanceId": {}, "PingStatus": {}, "LastPingDateTime": { "type": "timestamp" }, "AgentVersion": {}, "IsLatestVersion": { "type": "boolean" }, "PlatformType": {}, "PlatformName": {}, "PlatformVersion": {}, "ActivationId": {}, "IamRole": {}, "RegistrationDate": { "type": "timestamp" }, "ResourceType": {}, "Name": {}, "IPAddress": {}, "ComputerName": {} } } }, "NextToken": {} } } }, "GetDocument": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "output": { "type": "structure", "members": { "Name": {}, "Content": {} } } }, "ListAssociations": { "input": { "type": "structure", "required": [ "AssociationFilterList" ], "members": { "AssociationFilterList": { "type": "list", "member": { "locationName": "AssociationFilter", "type": "structure", "required": [ "key", "value" ], "members": { "key": {}, "value": {} } } }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "Associations": { "type": "list", "member": { "locationName": "Association", "type": "structure", "members": { "Name": {}, "InstanceId": {} } } }, "NextToken": {} } } }, "ListCommandInvocations": { "input": { "type": "structure", "members": { "CommandId": {}, "InstanceId": {}, "MaxResults": { "type": "integer" }, "NextToken": {}, "Filters": { "shape": "S3f" }, "Details": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "CommandInvocations": { "type": "list", "member": { "type": "structure", "members": { "CommandId": {}, "InstanceId": {}, "Comment": {}, "DocumentName": {}, "RequestedDateTime": { "type": "timestamp" }, "Status": {}, "TraceOutput": {}, "CommandPlugins": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Status": {}, "ResponseCode": { "type": "integer" }, "ResponseStartDateTime": { "type": "timestamp" }, "ResponseFinishDateTime": { "type": "timestamp" }, "Output": {}, "OutputS3BucketName": {}, "OutputS3KeyPrefix": {} } } }, "ServiceRole": {}, "NotificationConfig": { "shape": "S3y" } } } }, "NextToken": {} } } }, "ListCommands": { "input": { "type": "structure", "members": { "CommandId": {}, "InstanceId": {}, "MaxResults": { "type": "integer" }, "NextToken": {}, "Filters": { "shape": "S3f" } } }, "output": { "type": "structure", "members": { "Commands": { "type": "list", "member": { "shape": "S46" } }, "NextToken": {} } } }, "ListDocuments": { "input": { "type": "structure", "members": { "DocumentFilterList": { "type": "list", "member": { "locationName": "DocumentFilter", "type": "structure", "required": [ "key", "value" ], "members": { "key": {}, "value": {} } } }, "MaxResults": { "type": "integer" }, "NextToken": {} } }, "output": { "type": "structure", "members": { "DocumentIdentifiers": { "type": "list", "member": { "locationName": "DocumentIdentifier", "type": "structure", "members": { "Name": {}, "Owner": {}, "PlatformTypes": { "shape": "S1q" } } } }, "NextToken": {} } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceType", "ResourceId" ], "members": { "ResourceType": {}, "ResourceId": {} } }, "output": { "type": "structure", "members": { "TagList": { "shape": "S4" } } } }, "ModifyDocumentPermission": { "input": { "type": "structure", "required": [ "Name", "PermissionType" ], "members": { "Name": {}, "PermissionType": {}, "AccountIdsToAdd": { "shape": "S2m" }, "AccountIdsToRemove": { "shape": "S2m" } } }, "output": { "type": "structure", "members": {} } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceType", "ResourceId", "TagKeys" ], "members": { "ResourceType": {}, "ResourceId": {}, "TagKeys": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": {} } }, "SendCommand": { "input": { "type": "structure", "required": [ "InstanceIds", "DocumentName" ], "members": { "InstanceIds": { "shape": "Sb" }, "DocumentName": {}, "DocumentHash": {}, "DocumentHashType": {}, "TimeoutSeconds": { "type": "integer" }, "Comment": {}, "Parameters": { "shape": "Sp" }, "OutputS3BucketName": {}, "OutputS3KeyPrefix": {}, "ServiceRoleArn": {}, "NotificationConfig": { "shape": "S3y" } } }, "output": { "type": "structure", "members": { "Command": { "shape": "S46" } } } }, "UpdateAssociationStatus": { "input": { "type": "structure", "required": [ "Name", "InstanceId", "AssociationStatus" ], "members": { "Name": {}, "InstanceId": {}, "AssociationStatus": { "shape": "Sw" } } }, "output": { "type": "structure", "members": { "AssociationDescription": { "shape": "Su" } } } }, "UpdateManagedInstanceRole": { "input": { "type": "structure", "required": [ "InstanceId", "IamRole" ], "members": { "InstanceId": {}, "IamRole": {} } }, "output": { "type": "structure", "members": {} } } }, "shapes": { "S4": { "type": "list", "member": { "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {} } } }, "Sb": { "type": "list", "member": {} }, "Sp": { "type": "map", "key": {}, "value": { "type": "list", "member": {} } }, "Su": { "type": "structure", "members": { "Name": {}, "InstanceId": {}, "Date": { "type": "timestamp" }, "Status": { "shape": "Sw" }, "Parameters": { "shape": "Sp" } } }, "Sw": { "type": "structure", "required": [ "Date", "Name", "Message" ], "members": { "Date": { "type": "timestamp" }, "Name": {}, "Message": {}, "AdditionalInfo": {} } }, "S12": { "type": "structure", "members": { "Name": {}, "InstanceId": {}, "Parameters": { "shape": "Sp" } } }, "S1c": { "type": "structure", "members": { "Sha1": {}, "Hash": {}, "HashType": {}, "Name": {}, "Owner": {}, "CreatedDate": { "type": "timestamp" }, "Status": {}, "Description": {}, "Parameters": { "type": "list", "member": { "locationName": "DocumentParameter", "type": "structure", "members": { "Name": {}, "Type": {}, "Description": {}, "DefaultValue": {} } } }, "PlatformTypes": { "shape": "S1q" } } }, "S1q": { "type": "list", "member": { "locationName": "PlatformType" } }, "S2m": { "type": "list", "member": { "locationName": "AccountId" } }, "S3f": { "type": "list", "member": { "type": "structure", "required": [ "key", "value" ], "members": { "key": {}, "value": {} } } }, "S3y": { "type": "structure", "members": { "NotificationArn": {}, "NotificationEvents": { "type": "list", "member": {} }, "NotificationType": {} } }, "S46": { "type": "structure", "members": { "CommandId": {}, "DocumentName": {}, "Comment": {}, "ExpiresAfter": { "type": "timestamp" }, "Parameters": { "shape": "Sp" }, "InstanceIds": { "shape": "Sb" }, "RequestedDateTime": { "type": "timestamp" }, "Status": {}, "OutputS3BucketName": {}, "OutputS3KeyPrefix": {}, "ServiceRole": {}, "NotificationConfig": { "shape": "S3y" } } } } } },{}],129:[function(require,module,exports){ module.exports={ "pagination": { "DescribeInstanceInformation": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "InstanceInformationList" }, "ListAssociations": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Associations" }, "ListCommandInvocations": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "CommandInvocations" }, "ListCommands": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "Commands" }, "ListDocuments": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "DocumentIdentifiers" }, "DescribeActivations": { "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults", "result_key": "ActivationList" } } } },{}],130:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2013-06-30", "endpointPrefix": "storagegateway", "jsonVersion": "1.1", "protocol": "json", "serviceFullName": "AWS Storage Gateway", "signatureVersion": "v4", "targetPrefix": "StorageGateway_20130630" }, "operations": { "ActivateGateway": { "input": { "type": "structure", "required": [ "ActivationKey", "GatewayName", "GatewayTimezone", "GatewayRegion" ], "members": { "ActivationKey": {}, "GatewayName": {}, "GatewayTimezone": {}, "GatewayRegion": {}, "GatewayType": {}, "TapeDriveType": {}, "MediumChangerType": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "AddCache": { "input": { "type": "structure", "required": [ "GatewayARN", "DiskIds" ], "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "AddTagsToResource": { "input": { "type": "structure", "required": [ "ResourceARN", "Tags" ], "members": { "ResourceARN": {}, "Tags": { "shape": "Sh" } } }, "output": { "type": "structure", "members": { "ResourceARN": {} } } }, "AddUploadBuffer": { "input": { "type": "structure", "required": [ "GatewayARN", "DiskIds" ], "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "AddWorkingStorage": { "input": { "type": "structure", "required": [ "GatewayARN", "DiskIds" ], "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "CancelArchival": { "input": { "type": "structure", "required": [ "GatewayARN", "TapeARN" ], "members": { "GatewayARN": {}, "TapeARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "CancelRetrieval": { "input": { "type": "structure", "required": [ "GatewayARN", "TapeARN" ], "members": { "GatewayARN": {}, "TapeARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "CreateCachediSCSIVolume": { "input": { "type": "structure", "required": [ "GatewayARN", "VolumeSizeInBytes", "TargetName", "NetworkInterfaceId", "ClientToken" ], "members": { "GatewayARN": {}, "VolumeSizeInBytes": { "type": "long" }, "SnapshotId": {}, "TargetName": {}, "NetworkInterfaceId": {}, "ClientToken": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {}, "TargetARN": {} } } }, "CreateSnapshot": { "input": { "type": "structure", "required": [ "VolumeARN", "SnapshotDescription" ], "members": { "VolumeARN": {}, "SnapshotDescription": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {}, "SnapshotId": {} } } }, "CreateSnapshotFromVolumeRecoveryPoint": { "input": { "type": "structure", "required": [ "VolumeARN", "SnapshotDescription" ], "members": { "VolumeARN": {}, "SnapshotDescription": {} } }, "output": { "type": "structure", "members": { "SnapshotId": {}, "VolumeARN": {}, "VolumeRecoveryPointTime": {} } } }, "CreateStorediSCSIVolume": { "input": { "type": "structure", "required": [ "GatewayARN", "DiskId", "PreserveExistingData", "TargetName", "NetworkInterfaceId" ], "members": { "GatewayARN": {}, "DiskId": {}, "SnapshotId": {}, "PreserveExistingData": { "type": "boolean" }, "TargetName": {}, "NetworkInterfaceId": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {}, "VolumeSizeInBytes": { "type": "long" }, "TargetARN": {} } } }, "CreateTapeWithBarcode": { "input": { "type": "structure", "required": [ "GatewayARN", "TapeSizeInBytes", "TapeBarcode" ], "members": { "GatewayARN": {}, "TapeSizeInBytes": { "type": "long" }, "TapeBarcode": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "CreateTapes": { "input": { "type": "structure", "required": [ "GatewayARN", "TapeSizeInBytes", "ClientToken", "NumTapesToCreate", "TapeBarcodePrefix" ], "members": { "GatewayARN": {}, "TapeSizeInBytes": { "type": "long" }, "ClientToken": {}, "NumTapesToCreate": { "type": "integer" }, "TapeBarcodePrefix": {} } }, "output": { "type": "structure", "members": { "TapeARNs": { "shape": "S1l" } } } }, "DeleteBandwidthRateLimit": { "input": { "type": "structure", "required": [ "GatewayARN", "BandwidthType" ], "members": { "GatewayARN": {}, "BandwidthType": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "DeleteChapCredentials": { "input": { "type": "structure", "required": [ "TargetARN", "InitiatorName" ], "members": { "TargetARN": {}, "InitiatorName": {} } }, "output": { "type": "structure", "members": { "TargetARN": {}, "InitiatorName": {} } } }, "DeleteGateway": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "DeleteSnapshotSchedule": { "input": { "type": "structure", "required": [ "VolumeARN" ], "members": { "VolumeARN": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {} } } }, "DeleteTape": { "input": { "type": "structure", "required": [ "GatewayARN", "TapeARN" ], "members": { "GatewayARN": {}, "TapeARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "DeleteTapeArchive": { "input": { "type": "structure", "required": [ "TapeARN" ], "members": { "TapeARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "DeleteVolume": { "input": { "type": "structure", "required": [ "VolumeARN" ], "members": { "VolumeARN": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {} } } }, "DescribeBandwidthRateLimit": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "AverageUploadRateLimitInBitsPerSec": { "type": "long" }, "AverageDownloadRateLimitInBitsPerSec": { "type": "long" } } } }, "DescribeCache": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" }, "CacheAllocatedInBytes": { "type": "long" }, "CacheUsedPercentage": { "type": "double" }, "CacheDirtyPercentage": { "type": "double" }, "CacheHitPercentage": { "type": "double" }, "CacheMissPercentage": { "type": "double" } } } }, "DescribeCachediSCSIVolumes": { "input": { "type": "structure", "required": [ "VolumeARNs" ], "members": { "VolumeARNs": { "shape": "S2a" } } }, "output": { "type": "structure", "members": { "CachediSCSIVolumes": { "type": "list", "member": { "type": "structure", "members": { "VolumeARN": {}, "VolumeId": {}, "VolumeType": {}, "VolumeStatus": {}, "VolumeSizeInBytes": { "type": "long" }, "VolumeProgress": { "type": "double" }, "SourceSnapshotId": {}, "VolumeiSCSIAttributes": { "shape": "S2i" } } } } } } }, "DescribeChapCredentials": { "input": { "type": "structure", "required": [ "TargetARN" ], "members": { "TargetARN": {} } }, "output": { "type": "structure", "members": { "ChapCredentials": { "type": "list", "member": { "type": "structure", "members": { "TargetARN": {}, "SecretToAuthenticateInitiator": {}, "InitiatorName": {}, "SecretToAuthenticateTarget": {} } } } } } }, "DescribeGatewayInformation": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "GatewayId": {}, "GatewayName": {}, "GatewayTimezone": {}, "GatewayState": {}, "GatewayNetworkInterfaces": { "type": "list", "member": { "type": "structure", "members": { "Ipv4Address": {}, "MacAddress": {}, "Ipv6Address": {} } } }, "GatewayType": {}, "NextUpdateAvailabilityDate": {}, "LastSoftwareUpdate": {} } } }, "DescribeMaintenanceStartTime": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "HourOfDay": { "type": "integer" }, "MinuteOfHour": { "type": "integer" }, "DayOfWeek": { "type": "integer" }, "Timezone": {} } } }, "DescribeSnapshotSchedule": { "input": { "type": "structure", "required": [ "VolumeARN" ], "members": { "VolumeARN": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {}, "StartAt": { "type": "integer" }, "RecurrenceInHours": { "type": "integer" }, "Description": {}, "Timezone": {} } } }, "DescribeStorediSCSIVolumes": { "input": { "type": "structure", "required": [ "VolumeARNs" ], "members": { "VolumeARNs": { "shape": "S2a" } } }, "output": { "type": "structure", "members": { "StorediSCSIVolumes": { "type": "list", "member": { "type": "structure", "members": { "VolumeARN": {}, "VolumeId": {}, "VolumeType": {}, "VolumeStatus": {}, "VolumeSizeInBytes": { "type": "long" }, "VolumeProgress": { "type": "double" }, "VolumeDiskId": {}, "SourceSnapshotId": {}, "PreservedExistingData": { "type": "boolean" }, "VolumeiSCSIAttributes": { "shape": "S2i" } } } } } } }, "DescribeTapeArchives": { "input": { "type": "structure", "members": { "TapeARNs": { "shape": "S1l" }, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "TapeArchives": { "type": "list", "member": { "type": "structure", "members": { "TapeARN": {}, "TapeBarcode": {}, "TapeSizeInBytes": { "type": "long" }, "CompletionTime": { "type": "timestamp" }, "RetrievedTo": {}, "TapeStatus": {} } } }, "Marker": {} } } }, "DescribeTapeRecoveryPoints": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {}, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "TapeRecoveryPointInfos": { "type": "list", "member": { "type": "structure", "members": { "TapeARN": {}, "TapeRecoveryPointTime": { "type": "timestamp" }, "TapeSizeInBytes": { "type": "long" }, "TapeStatus": {} } } }, "Marker": {} } } }, "DescribeTapes": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {}, "TapeARNs": { "shape": "S1l" }, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Tapes": { "type": "list", "member": { "type": "structure", "members": { "TapeARN": {}, "TapeBarcode": {}, "TapeSizeInBytes": { "type": "long" }, "TapeStatus": {}, "VTLDevice": {}, "Progress": { "type": "double" } } } }, "Marker": {} } } }, "DescribeUploadBuffer": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" }, "UploadBufferUsedInBytes": { "type": "long" }, "UploadBufferAllocatedInBytes": { "type": "long" } } } }, "DescribeVTLDevices": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {}, "VTLDeviceARNs": { "type": "list", "member": {} }, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "VTLDevices": { "type": "list", "member": { "type": "structure", "members": { "VTLDeviceARN": {}, "VTLDeviceType": {}, "VTLDeviceVendor": {}, "VTLDeviceProductIdentifier": {}, "DeviceiSCSIAttributes": { "type": "structure", "members": { "TargetARN": {}, "NetworkInterfaceId": {}, "NetworkInterfacePort": { "type": "integer" }, "ChapEnabled": { "type": "boolean" } } } } } }, "Marker": {} } } }, "DescribeWorkingStorage": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "DiskIds": { "shape": "Sc" }, "WorkingStorageUsedInBytes": { "type": "long" }, "WorkingStorageAllocatedInBytes": { "type": "long" } } } }, "DisableGateway": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "ListGateways": { "input": { "type": "structure", "members": { "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Gateways": { "type": "list", "member": { "type": "structure", "members": { "GatewayId": {}, "GatewayARN": {}, "GatewayType": {}, "GatewayOperationalState": {}, "GatewayName": {} } } }, "Marker": {} } } }, "ListLocalDisks": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "Disks": { "type": "list", "member": { "type": "structure", "members": { "DiskId": {}, "DiskPath": {}, "DiskNode": {}, "DiskStatus": {}, "DiskSizeInBytes": { "type": "long" }, "DiskAllocationType": {}, "DiskAllocationResource": {} } } } } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "ResourceARN" ], "members": { "ResourceARN": {}, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "ResourceARN": {}, "Marker": {}, "Tags": { "shape": "Sh" } } } }, "ListTapes": { "input": { "type": "structure", "members": { "TapeARNs": { "shape": "S1l" }, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "TapeInfos": { "type": "list", "member": { "type": "structure", "members": { "TapeARN": {}, "TapeBarcode": {}, "TapeSizeInBytes": { "type": "long" }, "TapeStatus": {}, "GatewayARN": {} } } }, "Marker": {} } } }, "ListVolumeInitiators": { "input": { "type": "structure", "required": [ "VolumeARN" ], "members": { "VolumeARN": {} } }, "output": { "type": "structure", "members": { "Initiators": { "type": "list", "member": {} } } } }, "ListVolumeRecoveryPoints": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "VolumeRecoveryPointInfos": { "type": "list", "member": { "type": "structure", "members": { "VolumeARN": {}, "VolumeSizeInBytes": { "type": "long" }, "VolumeUsageInBytes": { "type": "long" }, "VolumeRecoveryPointTime": {} } } } } } }, "ListVolumes": { "input": { "type": "structure", "members": { "GatewayARN": {}, "Marker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "Marker": {}, "VolumeInfos": { "type": "list", "member": { "type": "structure", "members": { "VolumeARN": {}, "VolumeId": {}, "GatewayARN": {}, "GatewayId": {}, "VolumeType": {}, "VolumeSizeInBytes": { "type": "long" } } } } } } }, "RemoveTagsFromResource": { "input": { "type": "structure", "required": [ "ResourceARN", "TagKeys" ], "members": { "ResourceARN": {}, "TagKeys": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "ResourceARN": {} } } }, "ResetCache": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "RetrieveTapeArchive": { "input": { "type": "structure", "required": [ "TapeARN", "GatewayARN" ], "members": { "TapeARN": {}, "GatewayARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "RetrieveTapeRecoveryPoint": { "input": { "type": "structure", "required": [ "TapeARN", "GatewayARN" ], "members": { "TapeARN": {}, "GatewayARN": {} } }, "output": { "type": "structure", "members": { "TapeARN": {} } } }, "SetLocalConsolePassword": { "input": { "type": "structure", "required": [ "GatewayARN", "LocalConsolePassword" ], "members": { "GatewayARN": {}, "LocalConsolePassword": { "type": "string", "sensitive": true } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "ShutdownGateway": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "StartGateway": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "UpdateBandwidthRateLimit": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {}, "AverageUploadRateLimitInBitsPerSec": { "type": "long" }, "AverageDownloadRateLimitInBitsPerSec": { "type": "long" } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "UpdateChapCredentials": { "input": { "type": "structure", "required": [ "TargetARN", "SecretToAuthenticateInitiator", "InitiatorName" ], "members": { "TargetARN": {}, "SecretToAuthenticateInitiator": {}, "InitiatorName": {}, "SecretToAuthenticateTarget": {} } }, "output": { "type": "structure", "members": { "TargetARN": {}, "InitiatorName": {} } } }, "UpdateGatewayInformation": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {}, "GatewayName": {}, "GatewayTimezone": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {}, "GatewayName": {} } } }, "UpdateGatewaySoftwareNow": { "input": { "type": "structure", "required": [ "GatewayARN" ], "members": { "GatewayARN": {} } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "UpdateMaintenanceStartTime": { "input": { "type": "structure", "required": [ "GatewayARN", "HourOfDay", "MinuteOfHour", "DayOfWeek" ], "members": { "GatewayARN": {}, "HourOfDay": { "type": "integer" }, "MinuteOfHour": { "type": "integer" }, "DayOfWeek": { "type": "integer" } } }, "output": { "type": "structure", "members": { "GatewayARN": {} } } }, "UpdateSnapshotSchedule": { "input": { "type": "structure", "required": [ "VolumeARN", "StartAt", "RecurrenceInHours" ], "members": { "VolumeARN": {}, "StartAt": { "type": "integer" }, "RecurrenceInHours": { "type": "integer" }, "Description": {} } }, "output": { "type": "structure", "members": { "VolumeARN": {} } } }, "UpdateVTLDeviceType": { "input": { "type": "structure", "required": [ "VTLDeviceARN", "DeviceType" ], "members": { "VTLDeviceARN": {}, "DeviceType": {} } }, "output": { "type": "structure", "members": { "VTLDeviceARN": {} } } } }, "shapes": { "Sc": { "type": "list", "member": {} }, "Sh": { "type": "list", "member": { "type": "structure", "required": [ "Key", "Value" ], "members": { "Key": {}, "Value": {} } } }, "S1l": { "type": "list", "member": {} }, "S2a": { "type": "list", "member": {} }, "S2i": { "type": "structure", "members": { "TargetARN": {}, "NetworkInterfaceId": {}, "NetworkInterfacePort": { "type": "integer" }, "LunNumber": { "type": "integer" }, "ChapEnabled": { "type": "boolean" } } } } } },{}],131:[function(require,module,exports){ module.exports={ "pagination": { "DescribeCachediSCSIVolumes": { "result_key": "CachediSCSIVolumes" }, "DescribeStorediSCSIVolumes": { "result_key": "StorediSCSIVolumes" }, "DescribeTapeArchives": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "TapeArchives" }, "DescribeTapeRecoveryPoints": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "TapeRecoveryPointInfos" }, "DescribeTapes": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "Tapes" }, "DescribeVTLDevices": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "VTLDevices" }, "ListGateways": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "Gateways" }, "ListLocalDisks": { "result_key": "Disks" }, "ListVolumeRecoveryPoints": { "result_key": "VolumeRecoveryPointInfos" }, "ListVolumes": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "VolumeInfos" } } } },{}],132:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2012-08-10", "endpointPrefix": "streams.dynamodb", "jsonVersion": "1.0", "protocol": "json", "serviceFullName": "Amazon DynamoDB Streams", "signatureVersion": "v4", "signingName": "dynamodb", "targetPrefix": "DynamoDBStreams_20120810" }, "operations": { "DescribeStream": { "input": { "type": "structure", "required": [ "StreamArn" ], "members": { "StreamArn": {}, "Limit": { "type": "integer" }, "ExclusiveStartShardId": {} } }, "output": { "type": "structure", "members": { "StreamDescription": { "type": "structure", "members": { "StreamArn": {}, "StreamLabel": {}, "StreamStatus": {}, "StreamViewType": {}, "CreationRequestDateTime": { "type": "timestamp" }, "TableName": {}, "KeySchema": { "type": "list", "member": { "type": "structure", "required": [ "AttributeName", "KeyType" ], "members": { "AttributeName": {}, "KeyType": {} } } }, "Shards": { "type": "list", "member": { "type": "structure", "members": { "ShardId": {}, "SequenceNumberRange": { "type": "structure", "members": { "StartingSequenceNumber": {}, "EndingSequenceNumber": {} } }, "ParentShardId": {} } } }, "LastEvaluatedShardId": {} } } } } }, "GetRecords": { "input": { "type": "structure", "required": [ "ShardIterator" ], "members": { "ShardIterator": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "Records": { "type": "list", "member": { "type": "structure", "members": { "eventID": {}, "eventName": {}, "eventVersion": {}, "eventSource": {}, "awsRegion": {}, "dynamodb": { "type": "structure", "members": { "ApproximateCreationDateTime": { "type": "timestamp" }, "Keys": { "shape": "Sr" }, "NewImage": { "shape": "Sr" }, "OldImage": { "shape": "Sr" }, "SequenceNumber": {}, "SizeBytes": { "type": "long" }, "StreamViewType": {} } } } } }, "NextShardIterator": {} } } }, "GetShardIterator": { "input": { "type": "structure", "required": [ "StreamArn", "ShardId", "ShardIteratorType" ], "members": { "StreamArn": {}, "ShardId": {}, "ShardIteratorType": {}, "SequenceNumber": {} } }, "output": { "type": "structure", "members": { "ShardIterator": {} } } }, "ListStreams": { "input": { "type": "structure", "members": { "TableName": {}, "Limit": { "type": "integer" }, "ExclusiveStartStreamArn": {} } }, "output": { "type": "structure", "members": { "Streams": { "type": "list", "member": { "type": "structure", "members": { "StreamArn": {}, "TableName": {}, "StreamLabel": {} } } }, "LastEvaluatedStreamArn": {} } } } }, "shapes": { "Sr": { "type": "map", "key": {}, "value": { "shape": "St" } }, "St": { "type": "structure", "members": { "S": {}, "N": {}, "B": { "type": "blob" }, "SS": { "type": "list", "member": {} }, "NS": { "type": "list", "member": {} }, "BS": { "type": "list", "member": { "type": "blob" } }, "M": { "type": "map", "key": {}, "value": { "shape": "St" } }, "L": { "type": "list", "member": { "shape": "St" } }, "NULL": { "type": "boolean" }, "BOOL": { "type": "boolean" } } } } } },{}],133:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2011-06-15", "endpointPrefix": "sts", "globalEndpoint": "sts.amazonaws.com", "protocol": "query", "serviceAbbreviation": "AWS STS", "serviceFullName": "AWS Security Token Service", "signatureVersion": "v4", "xmlNamespace": "https://sts.amazonaws.com/doc/2011-06-15/" }, "operations": { "AssumeRole": { "input": { "type": "structure", "required": [ "RoleArn", "RoleSessionName" ], "members": { "RoleArn": {}, "RoleSessionName": {}, "Policy": {}, "DurationSeconds": { "type": "integer" }, "ExternalId": {}, "SerialNumber": {}, "TokenCode": {} } }, "output": { "resultWrapper": "AssumeRoleResult", "type": "structure", "members": { "Credentials": { "shape": "Sa" }, "AssumedRoleUser": { "shape": "Sf" }, "PackedPolicySize": { "type": "integer" } } } }, "AssumeRoleWithSAML": { "input": { "type": "structure", "required": [ "RoleArn", "PrincipalArn", "SAMLAssertion" ], "members": { "RoleArn": {}, "PrincipalArn": {}, "SAMLAssertion": {}, "Policy": {}, "DurationSeconds": { "type": "integer" } } }, "output": { "resultWrapper": "AssumeRoleWithSAMLResult", "type": "structure", "members": { "Credentials": { "shape": "Sa" }, "AssumedRoleUser": { "shape": "Sf" }, "PackedPolicySize": { "type": "integer" }, "Subject": {}, "SubjectType": {}, "Issuer": {}, "Audience": {}, "NameQualifier": {} } } }, "AssumeRoleWithWebIdentity": { "input": { "type": "structure", "required": [ "RoleArn", "RoleSessionName", "WebIdentityToken" ], "members": { "RoleArn": {}, "RoleSessionName": {}, "WebIdentityToken": {}, "ProviderId": {}, "Policy": {}, "DurationSeconds": { "type": "integer" } } }, "output": { "resultWrapper": "AssumeRoleWithWebIdentityResult", "type": "structure", "members": { "Credentials": { "shape": "Sa" }, "SubjectFromWebIdentityToken": {}, "AssumedRoleUser": { "shape": "Sf" }, "PackedPolicySize": { "type": "integer" }, "Provider": {}, "Audience": {} } } }, "DecodeAuthorizationMessage": { "input": { "type": "structure", "required": [ "EncodedMessage" ], "members": { "EncodedMessage": {} } }, "output": { "resultWrapper": "DecodeAuthorizationMessageResult", "type": "structure", "members": { "DecodedMessage": {} } } }, "GetCallerIdentity": { "input": { "type": "structure", "members": {} }, "output": { "resultWrapper": "GetCallerIdentityResult", "type": "structure", "members": { "UserId": {}, "Account": {}, "Arn": {} } } }, "GetFederationToken": { "input": { "type": "structure", "required": [ "Name" ], "members": { "Name": {}, "Policy": {}, "DurationSeconds": { "type": "integer" } } }, "output": { "resultWrapper": "GetFederationTokenResult", "type": "structure", "members": { "Credentials": { "shape": "Sa" }, "FederatedUser": { "type": "structure", "required": [ "FederatedUserId", "Arn" ], "members": { "FederatedUserId": {}, "Arn": {} } }, "PackedPolicySize": { "type": "integer" } } } }, "GetSessionToken": { "input": { "type": "structure", "members": { "DurationSeconds": { "type": "integer" }, "SerialNumber": {}, "TokenCode": {} } }, "output": { "resultWrapper": "GetSessionTokenResult", "type": "structure", "members": { "Credentials": { "shape": "Sa" } } } } }, "shapes": { "Sa": { "type": "structure", "required": [ "AccessKeyId", "SecretAccessKey", "SessionToken", "Expiration" ], "members": { "AccessKeyId": {}, "SecretAccessKey": {}, "SessionToken": {}, "Expiration": { "type": "timestamp" } } }, "Sf": { "type": "structure", "required": [ "AssumedRoleId", "Arn" ], "members": { "AssumedRoleId": {}, "Arn": {} } } } } },{}],134:[function(require,module,exports){ module.exports={ "version": "2.0", "metadata": { "apiVersion": "2015-08-24", "endpointPrefix": "waf", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "WAF", "serviceFullName": "AWS WAF", "signatureVersion": "v4", "targetPrefix": "AWSWAF_20150824" }, "operations": { "CreateByteMatchSet": { "input": { "type": "structure", "required": [ "Name", "ChangeToken" ], "members": { "Name": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ByteMatchSet": { "shape": "S5" }, "ChangeToken": {} } } }, "CreateIPSet": { "input": { "type": "structure", "required": [ "Name", "ChangeToken" ], "members": { "Name": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "IPSet": { "shape": "Sh" }, "ChangeToken": {} } } }, "CreateRule": { "input": { "type": "structure", "required": [ "Name", "MetricName", "ChangeToken" ], "members": { "Name": {}, "MetricName": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "Rule": { "shape": "Sp" }, "ChangeToken": {} } } }, "CreateSizeConstraintSet": { "input": { "type": "structure", "required": [ "Name", "ChangeToken" ], "members": { "Name": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "SizeConstraintSet": { "shape": "Sw" }, "ChangeToken": {} } } }, "CreateSqlInjectionMatchSet": { "input": { "type": "structure", "required": [ "Name", "ChangeToken" ], "members": { "Name": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "SqlInjectionMatchSet": { "shape": "S13" }, "ChangeToken": {} } } }, "CreateWebACL": { "input": { "type": "structure", "required": [ "Name", "MetricName", "DefaultAction", "ChangeToken" ], "members": { "Name": {}, "MetricName": {}, "DefaultAction": { "shape": "S17" }, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "WebACL": { "shape": "S1a" }, "ChangeToken": {} } } }, "CreateXssMatchSet": { "input": { "type": "structure", "required": [ "Name", "ChangeToken" ], "members": { "Name": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "XssMatchSet": { "shape": "S1g" }, "ChangeToken": {} } } }, "DeleteByteMatchSet": { "input": { "type": "structure", "required": [ "ByteMatchSetId", "ChangeToken" ], "members": { "ByteMatchSetId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteIPSet": { "input": { "type": "structure", "required": [ "IPSetId", "ChangeToken" ], "members": { "IPSetId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteRule": { "input": { "type": "structure", "required": [ "RuleId", "ChangeToken" ], "members": { "RuleId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteSizeConstraintSet": { "input": { "type": "structure", "required": [ "SizeConstraintSetId", "ChangeToken" ], "members": { "SizeConstraintSetId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteSqlInjectionMatchSet": { "input": { "type": "structure", "required": [ "SqlInjectionMatchSetId", "ChangeToken" ], "members": { "SqlInjectionMatchSetId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteWebACL": { "input": { "type": "structure", "required": [ "WebACLId", "ChangeToken" ], "members": { "WebACLId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "DeleteXssMatchSet": { "input": { "type": "structure", "required": [ "XssMatchSetId", "ChangeToken" ], "members": { "XssMatchSetId": {}, "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "GetByteMatchSet": { "input": { "type": "structure", "required": [ "ByteMatchSetId" ], "members": { "ByteMatchSetId": {} } }, "output": { "type": "structure", "members": { "ByteMatchSet": { "shape": "S5" } } } }, "GetChangeToken": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "GetChangeTokenStatus": { "input": { "type": "structure", "required": [ "ChangeToken" ], "members": { "ChangeToken": {} } }, "output": { "type": "structure", "members": { "ChangeTokenStatus": {} } } }, "GetIPSet": { "input": { "type": "structure", "required": [ "IPSetId" ], "members": { "IPSetId": {} } }, "output": { "type": "structure", "members": { "IPSet": { "shape": "Sh" } } } }, "GetRule": { "input": { "type": "structure", "required": [ "RuleId" ], "members": { "RuleId": {} } }, "output": { "type": "structure", "members": { "Rule": { "shape": "Sp" } } } }, "GetSampledRequests": { "input": { "type": "structure", "required": [ "WebAclId", "RuleId", "TimeWindow", "MaxItems" ], "members": { "WebAclId": {}, "RuleId": {}, "TimeWindow": { "shape": "S29" }, "MaxItems": { "type": "long" } } }, "output": { "type": "structure", "members": { "SampledRequests": { "type": "list", "member": { "type": "structure", "required": [ "Request", "Weight" ], "members": { "Request": { "type": "structure", "members": { "ClientIP": {}, "Country": {}, "URI": {}, "Method": {}, "HTTPVersion": {}, "Headers": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "Value": {} } } } } }, "Weight": { "type": "long" }, "Timestamp": { "type": "timestamp" }, "Action": {} } } }, "PopulationSize": { "type": "long" }, "TimeWindow": { "shape": "S29" } } } }, "GetSizeConstraintSet": { "input": { "type": "structure", "required": [ "SizeConstraintSetId" ], "members": { "SizeConstraintSetId": {} } }, "output": { "type": "structure", "members": { "SizeConstraintSet": { "shape": "Sw" } } } }, "GetSqlInjectionMatchSet": { "input": { "type": "structure", "required": [ "SqlInjectionMatchSetId" ], "members": { "SqlInjectionMatchSetId": {} } }, "output": { "type": "structure", "members": { "SqlInjectionMatchSet": { "shape": "S13" } } } }, "GetWebACL": { "input": { "type": "structure", "required": [ "WebACLId" ], "members": { "WebACLId": {} } }, "output": { "type": "structure", "members": { "WebACL": { "shape": "S1a" } } } }, "GetXssMatchSet": { "input": { "type": "structure", "required": [ "XssMatchSetId" ], "members": { "XssMatchSetId": {} } }, "output": { "type": "structure", "members": { "XssMatchSet": { "shape": "S1g" } } } }, "ListByteMatchSets": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "ByteMatchSets": { "type": "list", "member": { "type": "structure", "required": [ "ByteMatchSetId", "Name" ], "members": { "ByteMatchSetId": {}, "Name": {} } } } } } }, "ListIPSets": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "IPSets": { "type": "list", "member": { "type": "structure", "required": [ "IPSetId", "Name" ], "members": { "IPSetId": {}, "Name": {} } } } } } }, "ListRules": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "Rules": { "type": "list", "member": { "type": "structure", "required": [ "RuleId", "Name" ], "members": { "RuleId": {}, "Name": {} } } } } } }, "ListSizeConstraintSets": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "SizeConstraintSets": { "type": "list", "member": { "type": "structure", "required": [ "SizeConstraintSetId", "Name" ], "members": { "SizeConstraintSetId": {}, "Name": {} } } } } } }, "ListSqlInjectionMatchSets": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "SqlInjectionMatchSets": { "type": "list", "member": { "type": "structure", "required": [ "SqlInjectionMatchSetId", "Name" ], "members": { "SqlInjectionMatchSetId": {}, "Name": {} } } } } } }, "ListWebACLs": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "WebACLs": { "type": "list", "member": { "type": "structure", "required": [ "WebACLId", "Name" ], "members": { "WebACLId": {}, "Name": {} } } } } } }, "ListXssMatchSets": { "input": { "type": "structure", "members": { "NextMarker": {}, "Limit": { "type": "integer" } } }, "output": { "type": "structure", "members": { "NextMarker": {}, "XssMatchSets": { "type": "list", "member": { "type": "structure", "required": [ "XssMatchSetId", "Name" ], "members": { "XssMatchSetId": {}, "Name": {} } } } } } }, "UpdateByteMatchSet": { "input": { "type": "structure", "required": [ "ByteMatchSetId", "ChangeToken", "Updates" ], "members": { "ByteMatchSetId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "ByteMatchTuple" ], "members": { "Action": {}, "ByteMatchTuple": { "shape": "S8" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateIPSet": { "input": { "type": "structure", "required": [ "IPSetId", "ChangeToken", "Updates" ], "members": { "IPSetId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "IPSetDescriptor" ], "members": { "Action": {}, "IPSetDescriptor": { "shape": "Sj" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateRule": { "input": { "type": "structure", "required": [ "RuleId", "ChangeToken", "Updates" ], "members": { "RuleId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "Predicate" ], "members": { "Action": {}, "Predicate": { "shape": "Sr" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateSizeConstraintSet": { "input": { "type": "structure", "required": [ "SizeConstraintSetId", "ChangeToken", "Updates" ], "members": { "SizeConstraintSetId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "SizeConstraint" ], "members": { "Action": {}, "SizeConstraint": { "shape": "Sy" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateSqlInjectionMatchSet": { "input": { "type": "structure", "required": [ "SqlInjectionMatchSetId", "ChangeToken", "Updates" ], "members": { "SqlInjectionMatchSetId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "SqlInjectionMatchTuple" ], "members": { "Action": {}, "SqlInjectionMatchTuple": { "shape": "S15" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateWebACL": { "input": { "type": "structure", "required": [ "WebACLId", "ChangeToken" ], "members": { "WebACLId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "ActivatedRule" ], "members": { "Action": {}, "ActivatedRule": { "shape": "S1c" } } } }, "DefaultAction": { "shape": "S17" } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } }, "UpdateXssMatchSet": { "input": { "type": "structure", "required": [ "XssMatchSetId", "ChangeToken", "Updates" ], "members": { "XssMatchSetId": {}, "ChangeToken": {}, "Updates": { "type": "list", "member": { "type": "structure", "required": [ "Action", "XssMatchTuple" ], "members": { "Action": {}, "XssMatchTuple": { "shape": "S1i" } } } } } }, "output": { "type": "structure", "members": { "ChangeToken": {} } } } }, "shapes": { "S5": { "type": "structure", "required": [ "ByteMatchSetId", "ByteMatchTuples" ], "members": { "ByteMatchSetId": {}, "Name": {}, "ByteMatchTuples": { "type": "list", "member": { "shape": "S8" } } } }, "S8": { "type": "structure", "required": [ "FieldToMatch", "TargetString", "TextTransformation", "PositionalConstraint" ], "members": { "FieldToMatch": { "shape": "S9" }, "TargetString": { "type": "blob" }, "TextTransformation": {}, "PositionalConstraint": {} } }, "S9": { "type": "structure", "required": [ "Type" ], "members": { "Type": {}, "Data": {} } }, "Sh": { "type": "structure", "required": [ "IPSetId", "IPSetDescriptors" ], "members": { "IPSetId": {}, "Name": {}, "IPSetDescriptors": { "type": "list", "member": { "shape": "Sj" } } } }, "Sj": { "type": "structure", "required": [ "Type", "Value" ], "members": { "Type": {}, "Value": {} } }, "Sp": { "type": "structure", "required": [ "RuleId", "Predicates" ], "members": { "RuleId": {}, "Name": {}, "MetricName": {}, "Predicates": { "type": "list", "member": { "shape": "Sr" } } } }, "Sr": { "type": "structure", "required": [ "Negated", "Type", "DataId" ], "members": { "Negated": { "type": "boolean" }, "Type": {}, "DataId": {} } }, "Sw": { "type": "structure", "required": [ "SizeConstraintSetId", "SizeConstraints" ], "members": { "SizeConstraintSetId": {}, "Name": {}, "SizeConstraints": { "type": "list", "member": { "shape": "Sy" } } } }, "Sy": { "type": "structure", "required": [ "FieldToMatch", "TextTransformation", "ComparisonOperator", "Size" ], "members": { "FieldToMatch": { "shape": "S9" }, "TextTransformation": {}, "ComparisonOperator": {}, "Size": { "type": "long" } } }, "S13": { "type": "structure", "required": [ "SqlInjectionMatchSetId", "SqlInjectionMatchTuples" ], "members": { "SqlInjectionMatchSetId": {}, "Name": {}, "SqlInjectionMatchTuples": { "type": "list", "member": { "shape": "S15" } } } }, "S15": { "type": "structure", "required": [ "FieldToMatch", "TextTransformation" ], "members": { "FieldToMatch": { "shape": "S9" }, "TextTransformation": {} } }, "S17": { "type": "structure", "required": [ "Type" ], "members": { "Type": {} } }, "S1a": { "type": "structure", "required": [ "WebACLId", "DefaultAction", "Rules" ], "members": { "WebACLId": {}, "Name": {}, "MetricName": {}, "DefaultAction": { "shape": "S17" }, "Rules": { "type": "list", "member": { "shape": "S1c" } } } }, "S1c": { "type": "structure", "required": [ "Priority", "RuleId", "Action" ], "members": { "Priority": { "type": "integer" }, "RuleId": {}, "Action": { "shape": "S17" } } }, "S1g": { "type": "structure", "required": [ "XssMatchSetId", "XssMatchTuples" ], "members": { "XssMatchSetId": {}, "Name": {}, "XssMatchTuples": { "type": "list", "member": { "shape": "S1i" } } } }, "S1i": { "type": "structure", "required": [ "FieldToMatch", "TextTransformation" ], "members": { "FieldToMatch": { "shape": "S9" }, "TextTransformation": {} } }, "S29": { "type": "structure", "required": [ "StartTime", "EndTime" ], "members": { "StartTime": { "type": "timestamp" }, "EndTime": { "type": "timestamp" } } } } } },{}],135:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['acm'] = {}; AWS.ACM = Service.defineService('acm', ['2015-12-08']); Object.defineProperty(apiLoader.services['acm'], '2015-12-08', { get: function get() { var model = require('../apis/acm-2015-12-08.min.json'); model.paginators = require('../apis/acm-2015-12-08.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ACM; },{"../apis/acm-2015-12-08.min.json":9,"../apis/acm-2015-12-08.paginators.json":10,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],136:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['apigateway'] = {}; AWS.APIGateway = Service.defineService('apigateway', ['2015-07-09']); require('../lib/services/apigateway'); Object.defineProperty(apiLoader.services['apigateway'], '2015-07-09', { get: function get() { var model = require('../apis/apigateway-2015-07-09.min.json'); model.paginators = require('../apis/apigateway-2015-07-09.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.APIGateway; },{"../apis/apigateway-2015-07-09.min.json":11,"../apis/apigateway-2015-07-09.paginators.json":12,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/apigateway":234}],137:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['applicationautoscaling'] = {}; AWS.ApplicationAutoScaling = Service.defineService('applicationautoscaling', ['2016-02-06']); Object.defineProperty(apiLoader.services['applicationautoscaling'], '2016-02-06', { get: function get() { var model = require('../apis/application-autoscaling-2016-02-06.min.json'); model.paginators = require('../apis/application-autoscaling-2016-02-06.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ApplicationAutoScaling; },{"../apis/application-autoscaling-2016-02-06.min.json":13,"../apis/application-autoscaling-2016-02-06.paginators.json":14,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],138:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['autoscaling'] = {}; AWS.AutoScaling = Service.defineService('autoscaling', ['2011-01-01']); Object.defineProperty(apiLoader.services['autoscaling'], '2011-01-01', { get: function get() { var model = require('../apis/autoscaling-2011-01-01.min.json'); model.paginators = require('../apis/autoscaling-2011-01-01.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.AutoScaling; },{"../apis/autoscaling-2011-01-01.min.json":15,"../apis/autoscaling-2011-01-01.paginators.json":16,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],139:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); module.exports = { ACM: require('./acm'), APIGateway: require('./apigateway'), ApplicationAutoScaling: require('./applicationautoscaling'), AutoScaling: require('./autoscaling'), CloudFormation: require('./cloudformation'), CloudFront: require('./cloudfront'), CloudHSM: require('./cloudhsm'), CloudTrail: require('./cloudtrail'), CloudWatch: require('./cloudwatch'), CloudWatchEvents: require('./cloudwatchevents'), CloudWatchLogs: require('./cloudwatchlogs'), CodeCommit: require('./codecommit'), CodeDeploy: require('./codedeploy'), CodePipeline: require('./codepipeline'), CognitoIdentity: require('./cognitoidentity'), CognitoIdentityServiceProvider: require('./cognitoidentityserviceprovider'), CognitoSync: require('./cognitosync'), ConfigService: require('./configservice'), DeviceFarm: require('./devicefarm'), DirectConnect: require('./directconnect'), DynamoDB: require('./dynamodb'), DynamoDBStreams: require('./dynamodbstreams'), EC2: require('./ec2'), ECR: require('./ecr'), ECS: require('./ecs'), ElastiCache: require('./elasticache'), ElasticBeanstalk: require('./elasticbeanstalk'), ELB: require('./elb'), ELBv2: require('./elbv2'), EMR: require('./emr'), ElasticTranscoder: require('./elastictranscoder'), Firehose: require('./firehose'), GameLift: require('./gamelift'), Inspector: require('./inspector'), Iot: require('./iot'), IotData: require('./iotdata'), Kinesis: require('./kinesis'), KMS: require('./kms'), Lambda: require('./lambda'), MachineLearning: require('./machinelearning'), MarketplaceCommerceAnalytics: require('./marketplacecommerceanalytics'), MobileAnalytics: require('./mobileanalytics'), OpsWorks: require('./opsworks'), RDS: require('./rds'), Redshift: require('./redshift'), Route53: require('./route53'), Route53Domains: require('./route53domains'), S3: require('./s3'), ServiceCatalog: require('./servicecatalog'), SES: require('./ses'), SNS: require('./sns'), SQS: require('./sqs'), SSM: require('./ssm'), StorageGateway: require('./storagegateway'), STS: require('./sts'), WAF: require('./waf') }; },{"../lib/core":196,"../lib/node_loader":193,"./acm":135,"./apigateway":136,"./applicationautoscaling":137,"./autoscaling":138,"./cloudformation":140,"./cloudfront":141,"./cloudhsm":142,"./cloudtrail":143,"./cloudwatch":144,"./cloudwatchevents":145,"./cloudwatchlogs":146,"./codecommit":147,"./codedeploy":148,"./codepipeline":149,"./cognitoidentity":150,"./cognitoidentityserviceprovider":151,"./cognitosync":152,"./configservice":153,"./devicefarm":154,"./directconnect":155,"./dynamodb":156,"./dynamodbstreams":157,"./ec2":158,"./ecr":159,"./ecs":160,"./elasticache":161,"./elasticbeanstalk":162,"./elastictranscoder":163,"./elb":164,"./elbv2":165,"./emr":166,"./firehose":167,"./gamelift":168,"./inspector":169,"./iot":170,"./iotdata":171,"./kinesis":172,"./kms":173,"./lambda":174,"./machinelearning":175,"./marketplacecommerceanalytics":176,"./mobileanalytics":177,"./opsworks":178,"./rds":179,"./redshift":180,"./route53":181,"./route53domains":182,"./s3":183,"./servicecatalog":184,"./ses":185,"./sns":186,"./sqs":187,"./ssm":188,"./storagegateway":189,"./sts":190,"./waf":191}],140:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudformation'] = {}; AWS.CloudFormation = Service.defineService('cloudformation', ['2010-05-15']); Object.defineProperty(apiLoader.services['cloudformation'], '2010-05-15', { get: function get() { var model = require('../apis/cloudformation-2010-05-15.min.json'); model.paginators = require('../apis/cloudformation-2010-05-15.paginators.json').pagination; model.waiters = require('../apis/cloudformation-2010-05-15.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudFormation; },{"../apis/cloudformation-2010-05-15.min.json":17,"../apis/cloudformation-2010-05-15.paginators.json":18,"../apis/cloudformation-2010-05-15.waiters2.json":19,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],141:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudfront'] = {}; AWS.CloudFront = Service.defineService('cloudfront', ['2013-05-12*', '2013-11-11*', '2014-05-31*', '2014-10-21*', '2014-11-06*', '2015-04-17*', '2015-07-27*', '2015-09-17*', '2016-01-13*', '2016-01-28*', '2016-08-01*', '2016-08-20*', '2016-09-07']); require('../lib/services/cloudfront'); Object.defineProperty(apiLoader.services['cloudfront'], '2016-09-07', { get: function get() { var model = require('../apis/cloudfront-2016-09-07.min.json'); model.paginators = require('../apis/cloudfront-2016-09-07.paginators.json').pagination; model.waiters = require('../apis/cloudfront-2016-09-07.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudFront; },{"../apis/cloudfront-2016-09-07.min.json":20,"../apis/cloudfront-2016-09-07.paginators.json":21,"../apis/cloudfront-2016-09-07.waiters2.json":22,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/cloudfront":235}],142:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudhsm'] = {}; AWS.CloudHSM = Service.defineService('cloudhsm', ['2014-05-30']); Object.defineProperty(apiLoader.services['cloudhsm'], '2014-05-30', { get: function get() { var model = require('../apis/cloudhsm-2014-05-30.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudHSM; },{"../apis/cloudhsm-2014-05-30.min.json":23,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],143:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudtrail'] = {}; AWS.CloudTrail = Service.defineService('cloudtrail', ['2013-11-01']); Object.defineProperty(apiLoader.services['cloudtrail'], '2013-11-01', { get: function get() { var model = require('../apis/cloudtrail-2013-11-01.min.json'); model.paginators = require('../apis/cloudtrail-2013-11-01.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudTrail; },{"../apis/cloudtrail-2013-11-01.min.json":24,"../apis/cloudtrail-2013-11-01.paginators.json":25,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],144:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudwatch'] = {}; AWS.CloudWatch = Service.defineService('cloudwatch', ['2010-08-01']); Object.defineProperty(apiLoader.services['cloudwatch'], '2010-08-01', { get: function get() { var model = require('../apis/monitoring-2010-08-01.min.json'); model.paginators = require('../apis/monitoring-2010-08-01.paginators.json').pagination; model.waiters = require('../apis/monitoring-2010-08-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudWatch; },{"../apis/monitoring-2010-08-01.min.json":96,"../apis/monitoring-2010-08-01.paginators.json":97,"../apis/monitoring-2010-08-01.waiters2.json":98,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],145:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudwatchevents'] = {}; AWS.CloudWatchEvents = Service.defineService('cloudwatchevents', ['2014-02-03*', '2015-10-07']); Object.defineProperty(apiLoader.services['cloudwatchevents'], '2015-10-07', { get: function get() { var model = require('../apis/events-2015-10-07.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudWatchEvents; },{"../apis/events-2015-10-07.min.json":73,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],146:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cloudwatchlogs'] = {}; AWS.CloudWatchLogs = Service.defineService('cloudwatchlogs', ['2014-03-28']); Object.defineProperty(apiLoader.services['cloudwatchlogs'], '2014-03-28', { get: function get() { var model = require('../apis/logs-2014-03-28.min.json'); model.paginators = require('../apis/logs-2014-03-28.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CloudWatchLogs; },{"../apis/logs-2014-03-28.min.json":88,"../apis/logs-2014-03-28.paginators.json":89,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],147:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['codecommit'] = {}; AWS.CodeCommit = Service.defineService('codecommit', ['2015-04-13']); Object.defineProperty(apiLoader.services['codecommit'], '2015-04-13', { get: function get() { var model = require('../apis/codecommit-2015-04-13.min.json'); model.paginators = require('../apis/codecommit-2015-04-13.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CodeCommit; },{"../apis/codecommit-2015-04-13.min.json":26,"../apis/codecommit-2015-04-13.paginators.json":27,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],148:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['codedeploy'] = {}; AWS.CodeDeploy = Service.defineService('codedeploy', ['2014-10-06']); Object.defineProperty(apiLoader.services['codedeploy'], '2014-10-06', { get: function get() { var model = require('../apis/codedeploy-2014-10-06.min.json'); model.paginators = require('../apis/codedeploy-2014-10-06.paginators.json').pagination; model.waiters = require('../apis/codedeploy-2014-10-06.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.CodeDeploy; },{"../apis/codedeploy-2014-10-06.min.json":28,"../apis/codedeploy-2014-10-06.paginators.json":29,"../apis/codedeploy-2014-10-06.waiters2.json":30,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],149:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['codepipeline'] = {}; AWS.CodePipeline = Service.defineService('codepipeline', ['2015-07-09']); Object.defineProperty(apiLoader.services['codepipeline'], '2015-07-09', { get: function get() { var model = require('../apis/codepipeline-2015-07-09.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CodePipeline; },{"../apis/codepipeline-2015-07-09.min.json":31,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],150:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cognitoidentity'] = {}; AWS.CognitoIdentity = Service.defineService('cognitoidentity', ['2014-06-30']); require('../lib/services/cognitoidentity'); Object.defineProperty(apiLoader.services['cognitoidentity'], '2014-06-30', { get: function get() { var model = require('../apis/cognito-identity-2014-06-30.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CognitoIdentity; },{"../apis/cognito-identity-2014-06-30.min.json":32,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/cognitoidentity":236}],151:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cognitoidentityserviceprovider'] = {}; AWS.CognitoIdentityServiceProvider = Service.defineService('cognitoidentityserviceprovider', ['2016-04-18']); Object.defineProperty(apiLoader.services['cognitoidentityserviceprovider'], '2016-04-18', { get: function get() { var model = require('../apis/cognito-idp-2016-04-18.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CognitoIdentityServiceProvider; },{"../apis/cognito-idp-2016-04-18.min.json":33,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],152:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['cognitosync'] = {}; AWS.CognitoSync = Service.defineService('cognitosync', ['2014-06-30']); Object.defineProperty(apiLoader.services['cognitosync'], '2014-06-30', { get: function get() { var model = require('../apis/cognito-sync-2014-06-30.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.CognitoSync; },{"../apis/cognito-sync-2014-06-30.min.json":34,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],153:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['configservice'] = {}; AWS.ConfigService = Service.defineService('configservice', ['2014-11-12']); Object.defineProperty(apiLoader.services['configservice'], '2014-11-12', { get: function get() { var model = require('../apis/config-2014-11-12.min.json'); model.paginators = require('../apis/config-2014-11-12.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ConfigService; },{"../apis/config-2014-11-12.min.json":35,"../apis/config-2014-11-12.paginators.json":36,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],154:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['devicefarm'] = {}; AWS.DeviceFarm = Service.defineService('devicefarm', ['2015-06-23']); Object.defineProperty(apiLoader.services['devicefarm'], '2015-06-23', { get: function get() { var model = require('../apis/devicefarm-2015-06-23.min.json'); model.paginators = require('../apis/devicefarm-2015-06-23.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.DeviceFarm; },{"../apis/devicefarm-2015-06-23.min.json":37,"../apis/devicefarm-2015-06-23.paginators.json":38,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],155:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['directconnect'] = {}; AWS.DirectConnect = Service.defineService('directconnect', ['2012-10-25']); Object.defineProperty(apiLoader.services['directconnect'], '2012-10-25', { get: function get() { var model = require('../apis/directconnect-2012-10-25.min.json'); model.paginators = require('../apis/directconnect-2012-10-25.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.DirectConnect; },{"../apis/directconnect-2012-10-25.min.json":39,"../apis/directconnect-2012-10-25.paginators.json":40,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],156:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['dynamodb'] = {}; AWS.DynamoDB = Service.defineService('dynamodb', ['2011-12-05', '2012-08-10']); require('../lib/services/dynamodb'); Object.defineProperty(apiLoader.services['dynamodb'], '2011-12-05', { get: function get() { var model = require('../apis/dynamodb-2011-12-05.min.json'); model.paginators = require('../apis/dynamodb-2011-12-05.paginators.json').pagination; model.waiters = require('../apis/dynamodb-2011-12-05.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); Object.defineProperty(apiLoader.services['dynamodb'], '2012-08-10', { get: function get() { var model = require('../apis/dynamodb-2012-08-10.min.json'); model.paginators = require('../apis/dynamodb-2012-08-10.paginators.json').pagination; model.waiters = require('../apis/dynamodb-2012-08-10.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.DynamoDB; },{"../apis/dynamodb-2011-12-05.min.json":41,"../apis/dynamodb-2011-12-05.paginators.json":42,"../apis/dynamodb-2011-12-05.waiters2.json":43,"../apis/dynamodb-2012-08-10.min.json":44,"../apis/dynamodb-2012-08-10.paginators.json":45,"../apis/dynamodb-2012-08-10.waiters2.json":46,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/dynamodb":237}],157:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['dynamodbstreams'] = {}; AWS.DynamoDBStreams = Service.defineService('dynamodbstreams', ['2012-08-10']); Object.defineProperty(apiLoader.services['dynamodbstreams'], '2012-08-10', { get: function get() { var model = require('../apis/streams.dynamodb-2012-08-10.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.DynamoDBStreams; },{"../apis/streams.dynamodb-2012-08-10.min.json":132,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],158:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['ec2'] = {}; AWS.EC2 = Service.defineService('ec2', ['2013-06-15*', '2013-10-15*', '2014-02-01*', '2014-05-01*', '2014-06-15*', '2014-09-01*', '2014-10-01*', '2015-03-01*', '2015-04-15*', '2015-10-01*', '2016-04-01*', '2016-09-15']); require('../lib/services/ec2'); Object.defineProperty(apiLoader.services['ec2'], '2016-09-15', { get: function get() { var model = require('../apis/ec2-2016-09-15.min.json'); model.paginators = require('../apis/ec2-2016-09-15.paginators.json').pagination; model.waiters = require('../apis/ec2-2016-09-15.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.EC2; },{"../apis/ec2-2016-09-15.min.json":47,"../apis/ec2-2016-09-15.paginators.json":48,"../apis/ec2-2016-09-15.waiters2.json":49,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/ec2":238}],159:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['ecr'] = {}; AWS.ECR = Service.defineService('ecr', ['2015-09-21']); Object.defineProperty(apiLoader.services['ecr'], '2015-09-21', { get: function get() { var model = require('../apis/ecr-2015-09-21.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.ECR; },{"../apis/ecr-2015-09-21.min.json":50,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],160:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['ecs'] = {}; AWS.ECS = Service.defineService('ecs', ['2014-11-13']); Object.defineProperty(apiLoader.services['ecs'], '2014-11-13', { get: function get() { var model = require('../apis/ecs-2014-11-13.min.json'); model.paginators = require('../apis/ecs-2014-11-13.paginators.json').pagination; model.waiters = require('../apis/ecs-2014-11-13.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ECS; },{"../apis/ecs-2014-11-13.min.json":51,"../apis/ecs-2014-11-13.paginators.json":52,"../apis/ecs-2014-11-13.waiters2.json":53,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],161:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['elasticache'] = {}; AWS.ElastiCache = Service.defineService('elasticache', ['2012-11-15*', '2014-03-24*', '2014-07-15*', '2014-09-30*', '2015-02-02']); Object.defineProperty(apiLoader.services['elasticache'], '2015-02-02', { get: function get() { var model = require('../apis/elasticache-2015-02-02.min.json'); model.paginators = require('../apis/elasticache-2015-02-02.paginators.json').pagination; model.waiters = require('../apis/elasticache-2015-02-02.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ElastiCache; },{"../apis/elasticache-2015-02-02.min.json":54,"../apis/elasticache-2015-02-02.paginators.json":55,"../apis/elasticache-2015-02-02.waiters2.json":56,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],162:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['elasticbeanstalk'] = {}; AWS.ElasticBeanstalk = Service.defineService('elasticbeanstalk', ['2010-12-01']); Object.defineProperty(apiLoader.services['elasticbeanstalk'], '2010-12-01', { get: function get() { var model = require('../apis/elasticbeanstalk-2010-12-01.min.json'); model.paginators = require('../apis/elasticbeanstalk-2010-12-01.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ElasticBeanstalk; },{"../apis/elasticbeanstalk-2010-12-01.min.json":57,"../apis/elasticbeanstalk-2010-12-01.paginators.json":58,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],163:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['elastictranscoder'] = {}; AWS.ElasticTranscoder = Service.defineService('elastictranscoder', ['2012-09-25']); Object.defineProperty(apiLoader.services['elastictranscoder'], '2012-09-25', { get: function get() { var model = require('../apis/elastictranscoder-2012-09-25.min.json'); model.paginators = require('../apis/elastictranscoder-2012-09-25.paginators.json').pagination; model.waiters = require('../apis/elastictranscoder-2012-09-25.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ElasticTranscoder; },{"../apis/elastictranscoder-2012-09-25.min.json":67,"../apis/elastictranscoder-2012-09-25.paginators.json":68,"../apis/elastictranscoder-2012-09-25.waiters2.json":69,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],164:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['elb'] = {}; AWS.ELB = Service.defineService('elb', ['2012-06-01']); Object.defineProperty(apiLoader.services['elb'], '2012-06-01', { get: function get() { var model = require('../apis/elasticloadbalancing-2012-06-01.min.json'); model.paginators = require('../apis/elasticloadbalancing-2012-06-01.paginators.json').pagination; model.waiters = require('../apis/elasticloadbalancing-2012-06-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ELB; },{"../apis/elasticloadbalancing-2012-06-01.min.json":59,"../apis/elasticloadbalancing-2012-06-01.paginators.json":60,"../apis/elasticloadbalancing-2012-06-01.waiters2.json":61,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],165:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['elbv2'] = {}; AWS.ELBv2 = Service.defineService('elbv2', ['2015-12-01']); Object.defineProperty(apiLoader.services['elbv2'], '2015-12-01', { get: function get() { var model = require('../apis/elasticloadbalancingv2-2015-12-01.min.json'); model.paginators = require('../apis/elasticloadbalancingv2-2015-12-01.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.ELBv2; },{"../apis/elasticloadbalancingv2-2015-12-01.min.json":62,"../apis/elasticloadbalancingv2-2015-12-01.paginators.json":63,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],166:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['emr'] = {}; AWS.EMR = Service.defineService('emr', ['2009-03-31']); Object.defineProperty(apiLoader.services['emr'], '2009-03-31', { get: function get() { var model = require('../apis/elasticmapreduce-2009-03-31.min.json'); model.paginators = require('../apis/elasticmapreduce-2009-03-31.paginators.json').pagination; model.waiters = require('../apis/elasticmapreduce-2009-03-31.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.EMR; },{"../apis/elasticmapreduce-2009-03-31.min.json":64,"../apis/elasticmapreduce-2009-03-31.paginators.json":65,"../apis/elasticmapreduce-2009-03-31.waiters2.json":66,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],167:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['firehose'] = {}; AWS.Firehose = Service.defineService('firehose', ['2015-08-04']); Object.defineProperty(apiLoader.services['firehose'], '2015-08-04', { get: function get() { var model = require('../apis/firehose-2015-08-04.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.Firehose; },{"../apis/firehose-2015-08-04.min.json":74,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],168:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['gamelift'] = {}; AWS.GameLift = Service.defineService('gamelift', ['2015-10-01']); Object.defineProperty(apiLoader.services['gamelift'], '2015-10-01', { get: function get() { var model = require('../apis/gamelift-2015-10-01.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.GameLift; },{"../apis/gamelift-2015-10-01.min.json":75,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],169:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['inspector'] = {}; AWS.Inspector = Service.defineService('inspector', ['2015-08-18*', '2016-02-16']); Object.defineProperty(apiLoader.services['inspector'], '2016-02-16', { get: function get() { var model = require('../apis/inspector-2016-02-16.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.Inspector; },{"../apis/inspector-2016-02-16.min.json":76,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],170:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['iot'] = {}; AWS.Iot = Service.defineService('iot', ['2015-05-28']); Object.defineProperty(apiLoader.services['iot'], '2015-05-28', { get: function get() { var model = require('../apis/iot-2015-05-28.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.Iot; },{"../apis/iot-2015-05-28.min.json":77,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],171:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['iotdata'] = {}; AWS.IotData = Service.defineService('iotdata', ['2015-05-28']); require('../lib/services/iotdata'); Object.defineProperty(apiLoader.services['iotdata'], '2015-05-28', { get: function get() { var model = require('../apis/iot-data-2015-05-28.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.IotData; },{"../apis/iot-data-2015-05-28.min.json":78,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/iotdata":239}],172:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['kinesis'] = {}; AWS.Kinesis = Service.defineService('kinesis', ['2013-12-02']); Object.defineProperty(apiLoader.services['kinesis'], '2013-12-02', { get: function get() { var model = require('../apis/kinesis-2013-12-02.min.json'); model.paginators = require('../apis/kinesis-2013-12-02.paginators.json').pagination; model.waiters = require('../apis/kinesis-2013-12-02.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.Kinesis; },{"../apis/kinesis-2013-12-02.min.json":79,"../apis/kinesis-2013-12-02.paginators.json":80,"../apis/kinesis-2013-12-02.waiters2.json":81,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],173:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['kms'] = {}; AWS.KMS = Service.defineService('kms', ['2014-11-01']); Object.defineProperty(apiLoader.services['kms'], '2014-11-01', { get: function get() { var model = require('../apis/kms-2014-11-01.min.json'); model.paginators = require('../apis/kms-2014-11-01.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.KMS; },{"../apis/kms-2014-11-01.min.json":82,"../apis/kms-2014-11-01.paginators.json":83,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],174:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['lambda'] = {}; AWS.Lambda = Service.defineService('lambda', ['2014-11-11', '2015-03-31']); Object.defineProperty(apiLoader.services['lambda'], '2014-11-11', { get: function get() { var model = require('../apis/lambda-2014-11-11.min.json'); model.paginators = require('../apis/lambda-2014-11-11.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); Object.defineProperty(apiLoader.services['lambda'], '2015-03-31', { get: function get() { var model = require('../apis/lambda-2015-03-31.min.json'); model.paginators = require('../apis/lambda-2015-03-31.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.Lambda; },{"../apis/lambda-2014-11-11.min.json":84,"../apis/lambda-2014-11-11.paginators.json":85,"../apis/lambda-2015-03-31.min.json":86,"../apis/lambda-2015-03-31.paginators.json":87,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],175:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['machinelearning'] = {}; AWS.MachineLearning = Service.defineService('machinelearning', ['2014-12-12']); require('../lib/services/machinelearning'); Object.defineProperty(apiLoader.services['machinelearning'], '2014-12-12', { get: function get() { var model = require('../apis/machinelearning-2014-12-12.min.json'); model.paginators = require('../apis/machinelearning-2014-12-12.paginators.json').pagination; model.waiters = require('../apis/machinelearning-2014-12-12.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.MachineLearning; },{"../apis/machinelearning-2014-12-12.min.json":90,"../apis/machinelearning-2014-12-12.paginators.json":91,"../apis/machinelearning-2014-12-12.waiters2.json":92,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/machinelearning":240}],176:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['marketplacecommerceanalytics'] = {}; AWS.MarketplaceCommerceAnalytics = Service.defineService('marketplacecommerceanalytics', ['2015-07-01']); Object.defineProperty(apiLoader.services['marketplacecommerceanalytics'], '2015-07-01', { get: function get() { var model = require('../apis/marketplacecommerceanalytics-2015-07-01.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.MarketplaceCommerceAnalytics; },{"../apis/marketplacecommerceanalytics-2015-07-01.min.json":93,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],177:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['mobileanalytics'] = {}; AWS.MobileAnalytics = Service.defineService('mobileanalytics', ['2014-06-05']); Object.defineProperty(apiLoader.services['mobileanalytics'], '2014-06-05', { get: function get() { var model = require('../apis/mobileanalytics-2014-06-05.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.MobileAnalytics; },{"../apis/mobileanalytics-2014-06-05.min.json":95,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],178:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['opsworks'] = {}; AWS.OpsWorks = Service.defineService('opsworks', ['2013-02-18']); Object.defineProperty(apiLoader.services['opsworks'], '2013-02-18', { get: function get() { var model = require('../apis/opsworks-2013-02-18.min.json'); model.paginators = require('../apis/opsworks-2013-02-18.paginators.json').pagination; model.waiters = require('../apis/opsworks-2013-02-18.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.OpsWorks; },{"../apis/opsworks-2013-02-18.min.json":99,"../apis/opsworks-2013-02-18.paginators.json":100,"../apis/opsworks-2013-02-18.waiters2.json":101,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],179:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['rds'] = {}; AWS.RDS = Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-09-09', '2014-09-01*', '2014-10-31']); Object.defineProperty(apiLoader.services['rds'], '2013-01-10', { get: function get() { var model = require('../apis/rds-2013-01-10.min.json'); model.paginators = require('../apis/rds-2013-01-10.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); Object.defineProperty(apiLoader.services['rds'], '2013-02-12', { get: function get() { var model = require('../apis/rds-2013-02-12.min.json'); model.paginators = require('../apis/rds-2013-02-12.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); Object.defineProperty(apiLoader.services['rds'], '2013-09-09', { get: function get() { var model = require('../apis/rds-2013-09-09.min.json'); model.paginators = require('../apis/rds-2013-09-09.paginators.json').pagination; model.waiters = require('../apis/rds-2013-09-09.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); Object.defineProperty(apiLoader.services['rds'], '2014-10-31', { get: function get() { var model = require('../apis/rds-2014-10-31.min.json'); model.paginators = require('../apis/rds-2014-10-31.paginators.json').pagination; model.waiters = require('../apis/rds-2014-10-31.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.RDS; },{"../apis/rds-2013-01-10.min.json":102,"../apis/rds-2013-01-10.paginators.json":103,"../apis/rds-2013-02-12.min.json":104,"../apis/rds-2013-02-12.paginators.json":105,"../apis/rds-2013-09-09.min.json":106,"../apis/rds-2013-09-09.paginators.json":107,"../apis/rds-2013-09-09.waiters2.json":108,"../apis/rds-2014-10-31.min.json":109,"../apis/rds-2014-10-31.paginators.json":110,"../apis/rds-2014-10-31.waiters2.json":111,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],180:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['redshift'] = {}; AWS.Redshift = Service.defineService('redshift', ['2012-12-01']); Object.defineProperty(apiLoader.services['redshift'], '2012-12-01', { get: function get() { var model = require('../apis/redshift-2012-12-01.min.json'); model.paginators = require('../apis/redshift-2012-12-01.paginators.json').pagination; model.waiters = require('../apis/redshift-2012-12-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.Redshift; },{"../apis/redshift-2012-12-01.min.json":112,"../apis/redshift-2012-12-01.paginators.json":113,"../apis/redshift-2012-12-01.waiters2.json":114,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],181:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['route53'] = {}; AWS.Route53 = Service.defineService('route53', ['2013-04-01']); require('../lib/services/route53'); Object.defineProperty(apiLoader.services['route53'], '2013-04-01', { get: function get() { var model = require('../apis/route53-2013-04-01.min.json'); model.paginators = require('../apis/route53-2013-04-01.paginators.json').pagination; model.waiters = require('../apis/route53-2013-04-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.Route53; },{"../apis/route53-2013-04-01.min.json":115,"../apis/route53-2013-04-01.paginators.json":116,"../apis/route53-2013-04-01.waiters2.json":117,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/route53":241}],182:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['route53domains'] = {}; AWS.Route53Domains = Service.defineService('route53domains', ['2014-05-15']); Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', { get: function get() { var model = require('../apis/route53domains-2014-05-15.min.json'); model.paginators = require('../apis/route53domains-2014-05-15.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.Route53Domains; },{"../apis/route53domains-2014-05-15.min.json":118,"../apis/route53domains-2014-05-15.paginators.json":119,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],183:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['s3'] = {}; AWS.S3 = Service.defineService('s3', ['2006-03-01']); require('../lib/services/s3'); Object.defineProperty(apiLoader.services['s3'], '2006-03-01', { get: function get() { var model = require('../apis/s3-2006-03-01.min.json'); model.paginators = require('../apis/s3-2006-03-01.paginators.json').pagination; model.waiters = require('../apis/s3-2006-03-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.S3; },{"../apis/s3-2006-03-01.min.json":120,"../apis/s3-2006-03-01.paginators.json":121,"../apis/s3-2006-03-01.waiters2.json":122,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/s3":242}],184:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['servicecatalog'] = {}; AWS.ServiceCatalog = Service.defineService('servicecatalog', ['2015-12-10']); Object.defineProperty(apiLoader.services['servicecatalog'], '2015-12-10', { get: function get() { var model = require('../apis/servicecatalog-2015-12-10.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.ServiceCatalog; },{"../apis/servicecatalog-2015-12-10.min.json":123,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],185:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['ses'] = {}; AWS.SES = Service.defineService('ses', ['2010-12-01']); Object.defineProperty(apiLoader.services['ses'], '2010-12-01', { get: function get() { var model = require('../apis/email-2010-12-01.min.json'); model.paginators = require('../apis/email-2010-12-01.paginators.json').pagination; model.waiters = require('../apis/email-2010-12-01.waiters2.json').waiters; return model; }, enumerable: true, configurable: true }); module.exports = AWS.SES; },{"../apis/email-2010-12-01.min.json":70,"../apis/email-2010-12-01.paginators.json":71,"../apis/email-2010-12-01.waiters2.json":72,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],186:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['sns'] = {}; AWS.SNS = Service.defineService('sns', ['2010-03-31']); Object.defineProperty(apiLoader.services['sns'], '2010-03-31', { get: function get() { var model = require('../apis/sns-2010-03-31.min.json'); model.paginators = require('../apis/sns-2010-03-31.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.SNS; },{"../apis/sns-2010-03-31.min.json":124,"../apis/sns-2010-03-31.paginators.json":125,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],187:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['sqs'] = {}; AWS.SQS = Service.defineService('sqs', ['2012-11-05']); require('../lib/services/sqs'); Object.defineProperty(apiLoader.services['sqs'], '2012-11-05', { get: function get() { var model = require('../apis/sqs-2012-11-05.min.json'); model.paginators = require('../apis/sqs-2012-11-05.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.SQS; },{"../apis/sqs-2012-11-05.min.json":126,"../apis/sqs-2012-11-05.paginators.json":127,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/sqs":243}],188:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['ssm'] = {}; AWS.SSM = Service.defineService('ssm', ['2014-11-06']); Object.defineProperty(apiLoader.services['ssm'], '2014-11-06', { get: function get() { var model = require('../apis/ssm-2014-11-06.min.json'); model.paginators = require('../apis/ssm-2014-11-06.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.SSM; },{"../apis/ssm-2014-11-06.min.json":128,"../apis/ssm-2014-11-06.paginators.json":129,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],189:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['storagegateway'] = {}; AWS.StorageGateway = Service.defineService('storagegateway', ['2013-06-30']); Object.defineProperty(apiLoader.services['storagegateway'], '2013-06-30', { get: function get() { var model = require('../apis/storagegateway-2013-06-30.min.json'); model.paginators = require('../apis/storagegateway-2013-06-30.paginators.json').pagination; return model; }, enumerable: true, configurable: true }); module.exports = AWS.StorageGateway; },{"../apis/storagegateway-2013-06-30.min.json":130,"../apis/storagegateway-2013-06-30.paginators.json":131,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],190:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['sts'] = {}; AWS.STS = Service.defineService('sts', ['2011-06-15']); require('../lib/services/sts'); Object.defineProperty(apiLoader.services['sts'], '2011-06-15', { get: function get() { var model = require('../apis/sts-2011-06-15.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.STS; },{"../apis/sts-2011-06-15.min.json":133,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233,"../lib/services/sts":244}],191:[function(require,module,exports){ require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['waf'] = {}; AWS.WAF = Service.defineService('waf', ['2015-08-24']); Object.defineProperty(apiLoader.services['waf'], '2015-08-24', { get: function get() { var model = require('../apis/waf-2015-08-24.min.json'); return model; }, enumerable: true, configurable: true }); module.exports = AWS.WAF; },{"../apis/waf-2015-08-24.min.json":134,"../lib/api_loader":192,"../lib/core":196,"../lib/node_loader":193,"../lib/service":233}],192:[function(require,module,exports){ var AWS = require('./core'); AWS.apiLoader = function(svc, version) { if (!AWS.apiLoader.services.hasOwnProperty(svc)) { throw new Error('InvalidService: Failed to load api for ' + svc); } return AWS.apiLoader.services[svc][version]; }; AWS.apiLoader.services = {}; module.exports = AWS.apiLoader; },{"./core":196}],193:[function(require,module,exports){ (function (process){ var util = require('./util'); // browser specific modules util.crypto.lib = require('crypto-browserify'); util.Buffer = require('buffer/').Buffer; util.url = require('url/'); util.querystring = require('querystring/'); var AWS = require('./core'); // Use default API loader function require('./api_loader'); // Load the DOMParser XML parser AWS.XML.Parser = require('./xml/browser_parser'); // Load the XHR HttpClient require('./http/xhr'); if (typeof process === 'undefined') { process = { browser: true }; } }).call(this,require('_process')) },{"./api_loader":192,"./core":196,"./http/xhr":210,"./util":253,"./xml/browser_parser":254,"_process":432,"buffer/":259,"crypto-browserify":262,"querystring/":379,"url/":397}],194:[function(require,module,exports){ var AWS = require('../core'), url = AWS.util.url, crypto = AWS.util.crypto.lib, base64Encode = AWS.util.base64.encode, inherit = AWS.util.inherit; var queryEncode = function (string) { var replacements = { '+': '-', '=': '_', '/': '~' }; return string.replace(/[\+=\/]/g, function (match) { return replacements[match]; }); }; var signPolicy = function (policy, privateKey) { var sign = crypto.createSign('RSA-SHA1'); sign.write(policy); return queryEncode(sign.sign(privateKey, 'base64')) }; var signWithCannedPolicy = function (url, expires, keyPairId, privateKey) { var policy = JSON.stringify({ Statement: [ { Resource: url, Condition: { DateLessThan: { 'AWS:EpochTime': expires } } } ] }); return { Expires: expires, 'Key-Pair-Id': keyPairId, Signature: signPolicy(policy.toString(), privateKey) }; }; var signWithCustomPolicy = function (policy, keyPairId, privateKey) { policy = policy.replace(/\s/mg, policy); return { Policy: queryEncode(base64Encode(policy)), 'Key-Pair-Id': keyPairId, Signature: signPolicy(policy, privateKey) } }; var determineScheme = function (url) { var parts = url.split('://'); if (parts.length < 2) { throw new Error('Invalid URL.'); } return parts[0].replace('*', ''); }; var getRtmpUrl = function (rtmpUrl) { var parsed = url.parse(rtmpUrl); return parsed.path.replace(/^\//, '') + (parsed.hash || ''); }; var getResource = function (url) { switch (determineScheme(url)) { case 'http': case 'https': return url; case 'rtmp': return getRtmpUrl(url); default: throw new Error('Invalid URI scheme. Scheme must be one of' + ' http, https, or rtmp'); } }; var handleError = function (err, callback) { if (!callback || typeof callback !== 'function') { throw err; } callback(err); }; var handleSuccess = function (result, callback) { if (!callback || typeof callback !== 'function') { return result; } callback(null, result); }; AWS.CloudFront.Signer = inherit({ /** * A signer object can be used to generate signed URLs and cookies for granting * access to content on restricted CloudFront distributions. * * @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html * * @param keyPairId [String] (Required) The ID of the CloudFront key pair * being used. * @param privateKey [String] (Required) A private key in RSA format. */ constructor: function Signer(keyPairId, privateKey) { if (keyPairId === void 0 || privateKey === void 0) { throw new Error('A key pair ID and private key are required'); } this.keyPairId = keyPairId; this.privateKey = privateKey; }, /** * Create a signed Amazon CloudFront Cookie. * * @param options [Object] The options to create a signed cookie. * @option options url [String] The URL to which the signature will grant * access. Required unless you pass in a full * policy. * @option options expires [Number] A Unix UTC timestamp indicating when the * signature should expire. Required unless you * pass in a full policy. * @option options policy [String] A CloudFront JSON policy. Required unless * you pass in a url and an expiry time. * * @param cb [Function] if a callback is provided, this function will * pass the hash as the second parameter (after the error parameter) to * the callback function. * * @return [Object] if called synchronously (with no callback), returns the * signed cookie parameters. * @return [null] nothing is returned if a callback is provided. */ getSignedCookie: function (options, cb) { var signatureHash = 'policy' in options ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) : signWithCannedPolicy(options.url, options.expires, this.keyPairId, this.privateKey); var cookieHash = {}; for (var key in signatureHash) { if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { cookieHash['CloudFront-' + key] = signatureHash[key]; } } return handleSuccess(cookieHash, cb); }, /** * Create a signed Amazon CloudFront URL. * * Keep in mind that URLs meant for use in media/flash players may have * different requirements for URL formats (e.g. some require that the * extension be removed, some require the file name to be prefixed * - mp4:, some require you to add "/cfx/st" into your URL). * * @param options [Object] The options to create a signed URL. * @option options url [String] The URL to which the signature will grant * access. Required. * @option options expires [Number] A Unix UTC timestamp indicating when the * signature should expire. Required unless you * pass in a full policy. * @option options policy [String] A CloudFront JSON policy. Required unless * you pass in a url and an expiry time. * * @param cb [Function] if a callback is provided, this function will * pass the URL as the second parameter (after the error parameter) to * the callback function. * * @return [String] if called synchronously (with no callback), returns the * signed URL. * @return [null] nothing is returned if a callback is provided. */ getSignedUrl: function (options, cb) { try { var resource = getResource(options.url); } catch (err) { return handleError(err, cb); } var parsedUrl = url.parse(options.url, true), signatureHash = Object.prototype.hasOwnProperty.call(options, 'policy') ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) : signWithCannedPolicy(resource, options.expires, this.keyPairId, this.privateKey); parsedUrl.search = null; for (var key in signatureHash) { if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { parsedUrl.query[key] = signatureHash[key]; } } try { var signedUrl = determineScheme(options.url) === 'rtmp' ? getRtmpUrl(url.format(parsedUrl)) : url.format(parsedUrl); } catch (err) { return handleError(err, cb); } return handleSuccess(signedUrl, cb); } }); module.exports = AWS.CloudFront.Signer; },{"../core":196}],195:[function(require,module,exports){ var AWS = require('./core'); require('./credentials'); require('./credentials/credential_provider_chain'); /** * The main configuration class used by all service objects to set * the region, credentials, and other options for requests. * * By default, credentials and region settings are left unconfigured. * This should be configured by the application before using any * AWS service APIs. * * In order to set global configuration options, properties should * be assigned to the global {AWS.config} object. * * @see AWS.config * * @!group General Configuration Options * * @!attribute credentials * @return [AWS.Credentials] the AWS credentials to sign requests with. * * @!attribute region * @example Set the global region setting to us-west-2 * AWS.config.update({region: 'us-west-2'}); * @return [AWS.Credentials] The region to send service requests to. * @see http://docs.amazonwebservices.com/general/latest/gr/rande.html * A list of available endpoints for each AWS service * * @!attribute maxRetries * @return [Integer] the maximum amount of retries to perform for a * service request. By default this value is calculated by the specific * service object that the request is being made to. * * @!attribute maxRedirects * @return [Integer] the maximum amount of redirects to follow for a * service request. Defaults to 10. * * @!attribute paramValidation * @return [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. * * @!attribute computeChecksums * @return [Boolean] whether to compute checksums for payload bodies when * the service accepts it (currently supported in S3 only). * * @!attribute convertResponseTypes * @return [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`. * * @!attribute correctClockSkew * @return [Boolean] whether to apply a clock skew correction and retry * requests that fail because of an skewed client clock. Defaults to * `false`. * * @!attribute sslEnabled * @return [Boolean] whether SSL is enabled for requests * * @!attribute s3ForcePathStyle * @return [Boolean] whether to force path style URLs for S3 objects * * @!attribute s3BucketEndpoint * @note Setting this configuration option requires an `endpoint` to be * provided explicitly to the service constructor. * @return [Boolean] whether the provided endpoint addresses an individual * bucket (false if it addresses the root API endpoint). * * @!attribute s3DisableBodySigning * @return [Boolean] whether to disable S3 body signing when using signature version `v4`. * Body signing can only be disabled when using https. Defaults to `true`. * * @!attribute useAccelerateEndpoint * @note This configuration option is only compatible with S3 while accessing * dns-compatible buckets. * @return [Boolean] Whether to use the Accelerate endpoint with the S3 service. * Defaults to `false`. * * @!attribute retryDelayOptions * @example Set the base retry delay for all services to 300 ms * AWS.config.update({retryDelayOptions: {base: 300}}); * // Delays with maxRetries = 3: 300, 600, 1200 * @example Set a custom backoff function to provide delay values on retries * AWS.config.update({retryDelayOptions: {customBackoff: function(retryCount) { * // returns delay in ms * }}}); * @note This works with all services except DynamoDB. * @return [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. * * **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. * * @!attribute httpOptions * @return [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 supported in the * Node.js environment. * * **timeout** [Integer] — The number of milliseconds to wait before * giving up on a connection attempt. 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. * @!attribute logger * @return [#write,#log] an object that responds to .write() (like a stream) * or .log() (like the console object) in order to log information about * requests * * @!attribute systemClockOffset * @return [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. * * @!attribute signatureVersion * @return [String] the signature version to sign requests with (overriding * the API configuration). Possible values are: 'v2', 'v3', 'v4'. * * @!attribute signatureCache * @return [Boolean] whether the signature to sign requests with (overriding * the API configuration) is cached. Only applies to the signature version 'v4'. * Defaults to `true`. */ AWS.Config = AWS.util.inherit({ /** * @!endgroup */ /** * Creates a new configuration object. This is the object that passes * option data along to service requests, including credentials, security, * region information, and some service specific settings. * * @example Creating a new configuration object with credentials and region * var config = new AWS.Config({ * accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2' * }); * @option options accessKeyId [String] your AWS access key ID. * @option options secretAccessKey [String] your AWS secret access key. * @option options sessionToken [AWS.Credentials] the optional AWS * session token to sign requests with. * @option options credentials [AWS.Credentials] the AWS credentials * to sign requests with. You can either specify this object, or * specify the accessKeyId and secretAccessKey options directly. * @option options credentialProvider [AWS.CredentialProviderChain] the * provider chain used to resolve credentials if no static `credentials` * property is set. * @option options region [String] the region to send service requests to. * See {region} for more information. * @option options maxRetries [Integer] the maximum amount of retries to * attempt with a request. See {maxRetries} for more information. * @option options maxRedirects [Integer] the maximum amount of redirects to * follow with a request. See {maxRedirects} for more information. * @option options sslEnabled [Boolean] whether to enable SSL for * requests. * @option options 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. * @option options computeChecksums [Boolean] whether to compute checksums * for payload bodies when the service accepts it (currently supported * in S3 only) * @option options 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`. * @option options correctClockSkew [Boolean] whether to apply a clock skew * correction and retry requests that fail because of an skewed client * clock. Defaults to `false`. * @option options s3ForcePathStyle [Boolean] whether to force path * style URLs for S3 objects. * @option options 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. * @option options 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`. * * @option options 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. * * **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. * @option options 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. * * **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. * @option options 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. * @option options apiVersions [map] 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. * @option options 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 * @option options 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. * @option options signatureVersion [String] the signature version to sign * requests with (overriding the API configuration). Possible values are: * 'v2', 'v3', 'v4'. * @option options 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`. */ constructor: function Config(options) { if (options === undefined) options = {}; options = this.extractCredentials(options); AWS.util.each.call(this, this.keys, function (key, value) { this.set(key, options[key], value); }); }, /** * @!group Managing Credentials */ /** * Loads credentials from the configuration object. This is used internally * by the SDK to ensure that refreshable {Credentials} objects are properly * refreshed and loaded when sending a request. If you want to ensure that * your credentials are loaded prior to a request, you can use this method * directly to provide accurate credential data stored in the object. * * @note If you configure the SDK with static or environment credentials, * the credential data should already be present in {credentials} attribute. * This method is primarily necessary to load credentials from asynchronous * sources, or sources that can refresh credentials periodically. * @example Getting your access key * AWS.config.getCredentials(function(err) { * if (err) console.log(err.stack); // credentials not loaded * else console.log("Access Key:", AWS.config.credentials.accessKeyId); * }) * @callback callback function(err) * Called when the {credentials} have been properly set on the configuration * object. * * @param err [Error] if this is set, credentials were not successfuly * loaded and this error provides information why. * @see credentials * @see Credentials */ getCredentials: function getCredentials(callback) { var self = this; function finish(err) { callback(err, err ? null : self.credentials); } function credError(msg, err) { return new AWS.util.error(err || new Error(), { code: 'CredentialsError', message: msg }); } function getAsyncCredentials() { self.credentials.get(function(err) { if (err) { var msg = 'Could not load credentials from ' + self.credentials.constructor.name; err = credError(msg, err); } finish(err); }); } function getStaticCredentials() { var err = null; if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { err = credError('Missing credentials'); } finish(err); } if (self.credentials) { if (typeof self.credentials.get === 'function') { getAsyncCredentials(); } else { // static credentials getStaticCredentials(); } } else if (self.credentialProvider) { self.credentialProvider.resolve(function(err, creds) { if (err) { err = credError('Could not load credentials from any providers', err); } self.credentials = creds; finish(err); }); } else { finish(credError('No credentials to load')); } }, /** * @!group Loading and Setting Configuration Options */ /** * @overload update(options, allowUnknownKeys = false) * Updates the current configuration object with new options. * * @example Update maxRetries property of a configuration object * config.update({maxRetries: 10}); * @param [Object] options a map of option keys and values. * @param [Boolean] allowUnknownKeys whether unknown keys can be set on * the configuration object. Defaults to `false`. * @see constructor */ update: function update(options, allowUnknownKeys) { allowUnknownKeys = allowUnknownKeys || false; options = this.extractCredentials(options); AWS.util.each.call(this, options, function (key, value) { if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || AWS.Service.hasService(key)) { this.set(key, value); } }); }, /** * Loads configuration data from a JSON file into this config object. * @note Loading configuration will reset all existing configuration * on the object. * @!macro nobrowser * @param path [String] the path relative to your process's current * working directory to load configuration from. * @return [AWS.Config] the same configuration object */ loadFromPath: function loadFromPath(path) { this.clear(); var options = JSON.parse(AWS.util.readFileSync(path)); var fileSystemCreds = new AWS.FileSystemCredentials(path); var chain = new AWS.CredentialProviderChain(); chain.providers.unshift(fileSystemCreds); chain.resolve(function (err, creds) { if (err) throw err; else options.credentials = creds; }); this.constructor(options); return this; }, /** * Clears configuration data on this object * * @api private */ clear: function clear() { /*jshint forin:false */ AWS.util.each.call(this, this.keys, function (key) { delete this[key]; }); // reset credential provider this.set('credentials', undefined); this.set('credentialProvider', undefined); }, /** * Sets a property on the configuration object, allowing for a * default value * @api private */ set: function set(property, value, defaultValue) { if (value === undefined) { if (defaultValue === undefined) { defaultValue = this.keys[property]; } if (typeof defaultValue === 'function') { this[property] = defaultValue.call(this); } else { this[property] = defaultValue; } } else if (property === 'httpOptions' && this[property]) { // deep merge httpOptions this[property] = AWS.util.merge(this[property], value); } else { this[property] = value; } }, /** * All of the keys with their default values. * * @constant * @api private */ keys: { credentials: null, credentialProvider: null, region: null, logger: null, apiVersions: {}, apiVersion: null, endpoint: undefined, httpOptions: { timeout: 120000 }, maxRetries: undefined, maxRedirects: 10, paramValidation: true, sslEnabled: true, s3ForcePathStyle: false, s3BucketEndpoint: false, s3DisableBodySigning: true, computeChecksums: true, convertResponseTypes: true, correctClockSkew: false, customUserAgent: null, dynamoDbCrc32: true, systemClockOffset: 0, signatureVersion: null, signatureCache: true, retryDelayOptions: { base: 100 }, useAccelerateEndpoint: false }, /** * Extracts accessKeyId, secretAccessKey and sessionToken * from a configuration hash. * * @api private */ extractCredentials: function extractCredentials(options) { if (options.accessKeyId && options.secretAccessKey) { options = AWS.util.copy(options); options.credentials = new AWS.Credentials(options); } return options; }, /** * Sets the promise dependency the SDK will use wherever Promises are returned. * @param [Constructor] dep A reference to a Promise constructor */ setPromisesDependency: function setPromisesDependency(dep) { AWS.util.addPromisesToRequests(AWS.Request, dep); } }); /** * @return [AWS.Config] The global configuration object singleton instance * @readonly * @see AWS.Config */ AWS.config = new AWS.Config(); },{"./core":196,"./credentials":197,"./credentials/credential_provider_chain":199}],196:[function(require,module,exports){ /** * The main AWS namespace */ var AWS = { util: require('./util') }; /** * @api private * @!macro [new] nobrowser * @note This feature is not supported in the browser environment of the SDK. */ var _hidden = {}; _hidden.toString(); // hack to parse macro module.exports = AWS; AWS.util.update(AWS, { /** * @constant */ VERSION: '2.6.7', /** * @api private */ Signers: {}, /** * @api private */ Protocol: { Json: require('./protocol/json'), Query: require('./protocol/query'), Rest: require('./protocol/rest'), RestJson: require('./protocol/rest_json'), RestXml: require('./protocol/rest_xml') }, /** * @api private */ XML: { Builder: require('./xml/builder'), Parser: null // conditionally set based on environment }, /** * @api private */ JSON: { Builder: require('./json/builder'), Parser: require('./json/parser') }, /** * @api private */ Model: { Api: require('./model/api'), Operation: require('./model/operation'), Shape: require('./model/shape'), Paginator: require('./model/paginator'), ResourceWaiter: require('./model/resource_waiter') }, util: require('./util'), /** * @api private */ apiLoader: function() { throw new Error('No API loader set'); } }); require('./service'); require('./credentials'); require('./credentials/credential_provider_chain'); require('./credentials/temporary_credentials'); require('./credentials/web_identity_credentials'); require('./credentials/cognito_identity_credentials'); require('./credentials/saml_credentials'); require('./config'); require('./http'); require('./sequential_executor'); require('./event_listeners'); require('./request'); require('./response'); require('./resource_waiter'); require('./signers/request_signer'); require('./param_validator'); /** * @readonly * @return [AWS.SequentialExecutor] a collection of global event listeners that * are attached to every sent request. * @see AWS.Request AWS.Request for a list of events to listen for * @example Logging the time taken to send a request * AWS.events.on('send', function startSend(resp) { * resp.startTime = new Date().getTime(); * }).on('complete', function calculateTime(resp) { * var time = (new Date().getTime() - resp.startTime) / 1000; * console.log('Request took ' + time + ' seconds'); * }); * * new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds' */ AWS.events = new AWS.SequentialExecutor(); },{"./config":195,"./credentials":197,"./credentials/cognito_identity_credentials":198,"./credentials/credential_provider_chain":199,"./credentials/saml_credentials":200,"./credentials/temporary_credentials":201,"./credentials/web_identity_credentials":202,"./event_listeners":208,"./http":209,"./json/builder":211,"./json/parser":212,"./model/api":213,"./model/operation":215,"./model/paginator":216,"./model/resource_waiter":217,"./model/shape":218,"./param_validator":219,"./protocol/json":220,"./protocol/query":221,"./protocol/rest":222,"./protocol/rest_json":223,"./protocol/rest_xml":224,"./request":228,"./resource_waiter":229,"./response":230,"./sequential_executor":232,"./service":233,"./signers/request_signer":246,"./util":253,"./xml/builder":255}],197:[function(require,module,exports){ var AWS = require('./core'); /** * Represents your AWS security credentials, specifically the * {accessKeyId}, {secretAccessKey}, and optional {sessionToken}. * Creating a `Credentials` object allows you to pass around your * security information to configuration and service objects. * * Note that this class typically does not need to be constructed manually, * as the {AWS.Config} and {AWS.Service} classes both accept simple * options hashes with the three keys. These structures will be converted * into Credentials objects automatically. * * ## Expiring and Refreshing Credentials * * Occasionally credentials can expire in the middle of a long-running * application. In this case, the SDK will automatically attempt to * refresh the credentials from the storage location if the Credentials * class implements the {refresh} method. * * If you are implementing a credential storage location, you * will want to create a subclass of the `Credentials` class and * override the {refresh} method. This method allows credentials to be * retrieved from the backing store, be it a file system, database, or * some network storage. The method should reset the credential attributes * on the object. * * @!attribute expired * @return [Boolean] whether the credentials have been expired and * require a refresh. Used in conjunction with {expireTime}. * @!attribute expireTime * @return [Date] a time when credentials should be considered expired. Used * in conjunction with {expired}. * @!attribute accessKeyId * @return [String] the AWS access key ID * @!attribute secretAccessKey * @return [String] the AWS secret access key * @!attribute sessionToken * @return [String] an optional AWS session token */ AWS.Credentials = AWS.util.inherit({ /** * A credentials object can be created using positional arguments or an options * hash. * * @overload AWS.Credentials(accessKeyId, secretAccessKey, sessionToken=null) * Creates a Credentials object with a given set of credential information * as positional arguments. * @param accessKeyId [String] the AWS access key ID * @param secretAccessKey [String] the AWS secret access key * @param sessionToken [String] the optional AWS session token * @example Create a credentials object with AWS credentials * var creds = new AWS.Credentials('akid', 'secret', 'session'); * @overload AWS.Credentials(options) * Creates a Credentials object with a given set of credential information * as an options hash. * @option options accessKeyId [String] the AWS access key ID * @option options secretAccessKey [String] the AWS secret access key * @option options sessionToken [String] the optional AWS session token * @example Create a credentials object with AWS credentials * var creds = new AWS.Credentials({ * accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'session' * }); */ constructor: function Credentials() { // hide secretAccessKey from being displayed with util.inspect AWS.util.hideProperties(this, ['secretAccessKey']); this.expired = false; this.expireTime = null; if (arguments.length === 1 && typeof arguments[0] === 'object') { var creds = arguments[0].credentials || arguments[0]; this.accessKeyId = creds.accessKeyId; this.secretAccessKey = creds.secretAccessKey; this.sessionToken = creds.sessionToken; } else { this.accessKeyId = arguments[0]; this.secretAccessKey = arguments[1]; this.sessionToken = arguments[2]; } }, /** * @return [Integer] the window size in seconds to attempt refreshing of * credentials before the expireTime occurs. */ expiryWindow: 15, /** * @return [Boolean] whether the credentials object should call {refresh} * @note Subclasses should override this method to provide custom refresh * logic. */ needsRefresh: function needsRefresh() { var currentTime = AWS.util.date.getDate().getTime(); var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); if (this.expireTime && adjustedTime > this.expireTime) { return true; } else { return this.expired || !this.accessKeyId || !this.secretAccessKey; } }, /** * Gets the existing credentials, refreshing them if they are not yet loaded * or have expired. Users should call this method before using {refresh}, * as this will not attempt to reload credentials when they are already * loaded into the object. * * @callback callback function(err) * Called when the instance metadata service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled */ get: function get(callback) { var self = this; if (this.needsRefresh()) { this.refresh(function(err) { if (!err) self.expired = false; // reset expired flag if (callback) callback(err); }); } else if (callback) { callback(); } }, /** * Refreshes the credentials. Users should call {get} before attempting * to forcibly refresh credentials. * * @callback callback function(err) * Called when the instance metadata service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled * @note Subclasses should override this class to reset the * {accessKeyId}, {secretAccessKey} and optional {sessionToken} * on the credentials object and then call the callback with * any error information. * @see get */ refresh: function refresh(callback) { this.expired = false; callback(); } }); },{"./core":196}],198:[function(require,module,exports){ var AWS = require('../core'); var CognitoIdentity = require('../../clients/cognitoidentity'); var STS = require('../../clients/sts'); /** * Represents credentials retrieved from STS Web Identity Federation using * the Amazon Cognito Identity service. * * By default this provider gets credentials using the * {AWS.CognitoIdentity.getCredentialsForIdentity} service operation, which * requires either an `IdentityId` or an `IdentityPoolId` (Amazon Cognito * Identity Pool ID), which is used to call {AWS.CognitoIdentity.getId} to * obtain an `IdentityId`. If the identity or identity pool is not configured in * the Amazon Cognito Console to use IAM roles with the appropriate permissions, * then additionally a `RoleArn` is required containing the ARN of the IAM trust * policy for the Amazon Cognito role that the user will log into. If a `RoleArn` * is provided, then this provider gets credentials using the * {AWS.STS.assumeRoleWithWebIdentity} service operation, after first getting an * Open ID token from {AWS.CognitoIdentity.getOpenIdToken}. * * In addition, if this credential provider is used to provide authenticated * login, the `Logins` map may be set to the tokens provided by the respective * identity providers. See {constructor} for an example on creating a credentials * object with proper property values. * * ## Refreshing Credentials from Identity Service * * In addition to AWS credentials expiring after a given amount of time, the * login token from the identity provider will also expire. Once this token * expires, it will not be usable to refresh AWS credentials, and another * token will be needed. The SDK does not manage refreshing of the token value, * but this can be done through a "refresh token" supported by most identity * providers. Consult the documentation for the identity provider for refreshing * tokens. Once the refreshed token is acquired, you should make sure to update * this new token in the credentials object's {params} property. The following * code will update the WebIdentityToken, assuming you have retrieved an updated * token from the identity provider: * * ```javascript * AWS.config.credentials.params.Logins['graph.facebook.com'] = updatedToken; * ``` * * Future calls to `credentials.refresh()` will now use the new token. * * @!attribute params * @return [map] the map of params passed to * {AWS.CognitoIdentity.getId}, * {AWS.CognitoIdentity.getOpenIdToken}, and * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the * `params.WebIdentityToken` property. * @!attribute data * @return [map] the raw data response from the call to * {AWS.CognitoIdentity.getCredentialsForIdentity}, or * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get * access to other properties from the response. * @!attribute identityId * @return [String] the Cognito ID returned by the last call to * {AWS.CognitoIdentity.getOpenIdToken}. This ID represents the actual * final resolved identity ID from Amazon Cognito. */ AWS.CognitoIdentityCredentials = AWS.util.inherit(AWS.Credentials, { /** * @api private */ localStorageKey: { id: 'aws.cognito.identity-id.', providers: 'aws.cognito.identity-providers.' }, /** * Creates a new credentials object. * @example Creating a new credentials object * AWS.config.credentials = new AWS.CognitoIdentityCredentials({ * * // either IdentityPoolId or IdentityId is required * // See the IdentityPoolId param for AWS.CognitoIdentity.getID (linked below) * // See the IdentityId param for AWS.CognitoIdentity.getCredentialsForIdentity * // or AWS.CognitoIdentity.getOpenIdToken (linked below) * IdentityPoolId: 'us-east-1:1699ebc0-7900-4099-b910-2df94f52a030', * IdentityId: 'us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f' * * // optional, only necessary when the identity pool is not configured * // to use IAM roles in the Amazon Cognito Console * // See the RoleArn param for AWS.STS.assumeRoleWithWebIdentity (linked below) * RoleArn: 'arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity', * * // optional tokens, used for authenticated login * // See the Logins param for AWS.CognitoIdentity.getID (linked below) * Logins: { * 'graph.facebook.com': 'FBTOKEN', * 'www.amazon.com': 'AMAZONTOKEN', * 'accounts.google.com': 'GOOGLETOKEN', * 'api.twitter.com': 'TWITTERTOKEN', * 'www.digits.com': 'DIGITSTOKEN' * }, * * // optional name, defaults to web-identity * // See the RoleSessionName param for AWS.STS.assumeRoleWithWebIdentity (linked below) * RoleSessionName: 'web', * * // optional, only necessary when application runs in a browser * // and multiple users are signed in at once, used for caching * LoginId: 'example@gmail.com' * * }); * @see AWS.CognitoIdentity.getId * @see AWS.CognitoIdentity.getCredentialsForIdentity * @see AWS.STS.assumeRoleWithWebIdentity * @see AWS.CognitoIdentity.getOpenIdToken */ constructor: function CognitoIdentityCredentials(params) { AWS.Credentials.call(this); this.expired = true; this.params = params; this.data = null; this.identityId = null; this.loadCachedId(); }, /** * Refreshes credentials using {AWS.CognitoIdentity.getCredentialsForIdentity}, * or {AWS.STS.assumeRoleWithWebIdentity}. * * @callback callback function(err) * Called when the STS service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled * @see get */ refresh: function refresh(callback) { var self = this; self.createClients(); self.data = null; self.identityId = null; self.getId(function(err) { if (!err) { if (!self.params.RoleArn) { self.getCredentialsForIdentity(callback); } else { self.getCredentialsFromSTS(callback); } } else { self.clearIdOnNotAuthorized(err); callback(err); } }); }, /** * Clears the cached Cognito ID associated with the currently configured * identity pool ID. Use this to manually invalidate your cache if * the identity pool ID was deleted. */ clearCachedId: function clearCache() { this.identityId = null; delete this.params.IdentityId; var poolId = this.params.IdentityPoolId; var loginId = this.params.LoginId || ''; delete this.storage[this.localStorageKey.id + poolId + loginId]; delete this.storage[this.localStorageKey.providers + poolId + loginId]; }, /** * @api private */ clearIdOnNotAuthorized: function clearIdOnNotAuthorized(err) { var self = this; if (err.code == 'NotAuthorizedException') { self.clearCachedId(); } }, /** * Retrieves a Cognito ID, loading from cache if it was already retrieved * on this device. * * @callback callback function(err, identityId) * @param err [Error, null] an error object if the call failed or null if * it succeeded. * @param identityId [String, null] if successful, the callback will return * the Cognito ID. * @note If not loaded explicitly, the Cognito ID is loaded and stored in * localStorage in the browser environment of a device. * @api private */ getId: function getId(callback) { var self = this; if (typeof self.params.IdentityId === 'string') { return callback(null, self.params.IdentityId); } self.cognito.getId(function(err, data) { if (!err && data.IdentityId) { self.params.IdentityId = data.IdentityId; callback(null, data.IdentityId); } else { callback(err); } }); }, /** * @api private */ loadCredentials: function loadCredentials(data, credentials) { if (!data || !credentials) return; credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; }, /** * @api private */ getCredentialsForIdentity: function getCredentialsForIdentity(callback) { var self = this; self.cognito.getCredentialsForIdentity(function(err, data) { if (!err) { self.cacheId(data); self.data = data; self.loadCredentials(self.data, self); } else { self.clearIdOnNotAuthorized(err); } callback(err); }); }, /** * @api private */ getCredentialsFromSTS: function getCredentialsFromSTS(callback) { var self = this; self.cognito.getOpenIdToken(function(err, data) { if (!err) { self.cacheId(data); self.params.WebIdentityToken = data.Token; self.webIdentityCredentials.refresh(function(webErr) { if (!webErr) { self.data = self.webIdentityCredentials.data; self.sts.credentialsFrom(self.data, self); } callback(webErr); }); } else { self.clearIdOnNotAuthorized(err); callback(err); } }); }, /** * @api private */ loadCachedId: function loadCachedId() { var self = this; // in the browser we source default IdentityId from localStorage if (AWS.util.isBrowser() && !self.params.IdentityId) { var id = self.getStorage('id'); if (id && self.params.Logins) { var actualProviders = Object.keys(self.params.Logins); var cachedProviders = (self.getStorage('providers') || '').split(','); // only load ID if at least one provider used this ID before var intersect = cachedProviders.filter(function(n) { return actualProviders.indexOf(n) !== -1; }); if (intersect.length !== 0) { self.params.IdentityId = id; } } else if (id) { self.params.IdentityId = id; } } }, /** * @api private */ createClients: function() { this.webIdentityCredentials = this.webIdentityCredentials || new AWS.WebIdentityCredentials(this.params); this.cognito = this.cognito || new CognitoIdentity({params: this.params}); this.sts = this.sts || new STS(); }, /** * @api private */ cacheId: function cacheId(data) { this.identityId = data.IdentityId; this.params.IdentityId = this.identityId; // cache this IdentityId in browser localStorage if possible if (AWS.util.isBrowser()) { this.setStorage('id', data.IdentityId); if (this.params.Logins) { this.setStorage('providers', Object.keys(this.params.Logins).join(',')); } } }, /** * @api private */ getStorage: function getStorage(key) { return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')]; }, /** * @api private */ setStorage: function setStorage(key, val) { try { this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val; } catch (_) {} }, /** * @api private */ storage: (function() { try { return AWS.util.isBrowser() && window.localStorage !== null && typeof window.localStorage === 'object' ? window.localStorage : {}; } catch (_) { return {}; } })() }); },{"../../clients/cognitoidentity":150,"../../clients/sts":190,"../core":196}],199:[function(require,module,exports){ var AWS = require('../core'); /** * Creates a credential provider chain that searches for AWS credentials * in a list of credential providers specified by the {providers} property. * * By default, the chain will use the {defaultProviders} to resolve credentials. * These providers will look in the environment using the * {AWS.EnvironmentCredentials} class with the 'AWS' and 'AMAZON' prefixes. * * ## Setting Providers * * Each provider in the {providers} list should be a function that returns * a {AWS.Credentials} object, or a hardcoded credentials object. The function * form allows for delayed execution of the credential construction. * * ## Resolving Credentials from a Chain * * Call {resolve} to return the first valid credential object that can be * loaded by the provider chain. * * For example, to resolve a chain with a custom provider that checks a file * on disk after the set of {defaultProviders}: * * ```javascript * var diskProvider = new AWS.FileSystemCredentials('./creds.json'); * var chain = new AWS.CredentialProviderChain(); * chain.providers.push(diskProvider); * chain.resolve(); * ``` * * The above code will return the `diskProvider` object if the * file contains credentials and the `defaultProviders` do not contain * any credential settings. * * @!attribute providers * @return [Array] * a list of credentials objects or functions that return credentials * objects. If the provider is a function, the function will be * executed lazily when the provider needs to be checked for valid * credentials. By default, this object will be set to the * {defaultProviders}. * @see defaultProviders */ AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, { /** * Creates a new CredentialProviderChain with a default set of providers * specified by {defaultProviders}. */ constructor: function CredentialProviderChain(providers) { if (providers) { this.providers = providers; } else { this.providers = AWS.CredentialProviderChain.defaultProviders.slice(0); } }, /** * Resolves the provider chain by searching for the first set of * credentials in {providers}. * * @callback callback function(err, credentials) * Called when the provider resolves the chain to a credentials object * or null if no credentials can be found. * * @param err [Error] the error object returned if no credentials are * found. * @param credentials [AWS.Credentials] the credentials object resolved * by the provider chain. * @return [AWS.CredentialProviderChain] the provider, for chaining. */ resolve: function resolve(callback) { if (this.providers.length === 0) { callback(new Error('No providers')); return this; } var index = 0; var providers = this.providers.slice(0); function resolveNext(err, creds) { if ((!err && creds) || index === providers.length) { callback(err, creds); return; } var provider = providers[index++]; if (typeof provider === 'function') { creds = provider.call(); } else { creds = provider; } if (creds.get) { creds.get(function(getErr) { resolveNext(getErr, getErr ? null : creds); }); } else { resolveNext(null, creds); } } resolveNext(); return this; } }); /** * The default set of providers used by a vanilla CredentialProviderChain. * * In the browser: * * ```javascript * AWS.CredentialProviderChain.defaultProviders = [] * ``` * * In Node.js: * * ```javascript * AWS.CredentialProviderChain.defaultProviders = [ * function () { return new AWS.EnvironmentCredentials('AWS'); }, * function () { return new AWS.EnvironmentCredentials('AMAZON'); }, * function () { return new AWS.SharedIniFileCredentials(); }, * function () { * // if AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is set * return new AWS.ECSCredentials(); * // else * return new AWS.EC2MetadataCredentials(); * } * ] * ``` */ AWS.CredentialProviderChain.defaultProviders = []; },{"../core":196}],200:[function(require,module,exports){ var AWS = require('../core'); var STS = require('../../clients/sts'); /** * Represents credentials retrieved from STS SAML support. * * By default this provider gets credentials using the * {AWS.STS.assumeRoleWithSAML} service operation. This operation * requires a `RoleArn` containing the ARN of the IAM trust policy for the * application for which credentials will be given, as well as a `PrincipalArn` * representing the ARN for the SAML identity provider. In addition, the * `SAMLAssertion` must be set to the token provided by the identity * provider. See {constructor} for an example on creating a credentials * object with proper `RoleArn`, `PrincipalArn`, and `SAMLAssertion` values. * * ## Refreshing Credentials from Identity Service * * In addition to AWS credentials expiring after a given amount of time, the * login token from the identity provider will also expire. Once this token * expires, it will not be usable to refresh AWS credentials, and another * token will be needed. The SDK does not manage refreshing of the token value, * but this can be done through a "refresh token" supported by most identity * providers. Consult the documentation for the identity provider for refreshing * tokens. Once the refreshed token is acquired, you should make sure to update * this new token in the credentials object's {params} property. The following * code will update the SAMLAssertion, assuming you have retrieved an updated * token from the identity provider: * * ```javascript * AWS.config.credentials.params.SAMLAssertion = updatedToken; * ``` * * Future calls to `credentials.refresh()` will now use the new token. * * @!attribute params * @return [map] the map of params passed to * {AWS.STS.assumeRoleWithSAML}. To update the token, set the * `params.SAMLAssertion` property. */ AWS.SAMLCredentials = AWS.util.inherit(AWS.Credentials, { /** * Creates a new credentials object. * @param (see AWS.STS.assumeRoleWithSAML) * @example Creating a new credentials object * AWS.config.credentials = new AWS.SAMLCredentials({ * RoleArn: 'arn:aws:iam::1234567890:role/SAMLRole', * PrincipalArn: 'arn:aws:iam::1234567890:role/SAMLPrincipal', * SAMLAssertion: 'base64-token', // base64-encoded token from IdP * }); * @see AWS.STS.assumeRoleWithSAML */ constructor: function SAMLCredentials(params) { AWS.Credentials.call(this); this.expired = true; this.params = params; }, /** * Refreshes credentials using {AWS.STS.assumeRoleWithSAML} * * @callback callback function(err) * Called when the STS service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled * @see get */ refresh: function refresh(callback) { var self = this; self.createClients(); if (!callback) callback = function(err) { if (err) throw err; }; self.service.assumeRoleWithSAML(function (err, data) { if (!err) { self.service.credentialsFrom(data, self); } callback(err); }); }, /** * @api private */ createClients: function() { this.service = this.service || new STS({params: this.params}); } }); },{"../../clients/sts":190,"../core":196}],201:[function(require,module,exports){ var AWS = require('../core'); var STS = require('../../clients/sts'); /** * Represents temporary credentials retrieved from {AWS.STS}. Without any * extra parameters, credentials will be fetched from the * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the * {AWS.STS.assumeRole} operation will be used to fetch credentials for the * role instead. * * To setup temporary credentials, configure a set of master credentials * using the standard credentials providers (environment, EC2 instance metadata, * or from the filesystem), then set the global credentials to a new * temporary credentials object: * * ```javascript * // Note that environment credentials are loaded by default, * // the following line is shown for clarity: * AWS.config.credentials = new AWS.EnvironmentCredentials('AWS'); * * // Now set temporary credentials seeded from the master credentials * AWS.config.credentials = new AWS.TemporaryCredentials(); * * // subsequent requests will now use temporary credentials from AWS STS. * new AWS.S3().listBucket(function(err, data) { ... }); * ``` * * @!attribute masterCredentials * @return [AWS.Credentials] the master (non-temporary) credentials used to * get and refresh temporary credentials from AWS STS. * @note (see constructor) */ AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, { /** * Creates a new temporary credentials object. * * @note In order to create temporary credentials, you first need to have * "master" credentials configured in {AWS.Config.credentials}. These * master credentials are necessary to retrieve the temporary credentials, * as well as refresh the credentials when they expire. * @param params [map] a map of options that are passed to the * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. * If a `RoleArn` parameter is passed in, credentials will be based on the * IAM role. * @example Creating a new credentials object for generic temporary credentials * AWS.config.credentials = new AWS.TemporaryCredentials(); * @example Creating a new credentials object for an IAM role * AWS.config.credentials = new AWS.TemporaryCredentials({ * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials', * }); * @see AWS.STS.assumeRole * @see AWS.STS.getSessionToken */ constructor: function TemporaryCredentials(params) { AWS.Credentials.call(this); this.loadMasterCredentials(); this.expired = true; this.params = params || {}; if (this.params.RoleArn) { this.params.RoleSessionName = this.params.RoleSessionName || 'temporary-credentials'; } }, /** * Refreshes credentials using {AWS.STS.assumeRole} or * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed * to the credentials {constructor}. * * @callback callback function(err) * Called when the STS service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled * @see get */ refresh: function refresh(callback) { var self = this; self.createClients(); if (!callback) callback = function(err) { if (err) throw err; }; self.service.config.credentials = self.masterCredentials; var operation = self.params.RoleArn ? self.service.assumeRole : self.service.getSessionToken; operation.call(self.service, function (err, data) { if (!err) { self.service.credentialsFrom(data, self); } callback(err); }); }, /** * @api private */ loadMasterCredentials: function loadMasterCredentials() { this.masterCredentials = AWS.config.credentials; while (this.masterCredentials.masterCredentials) { this.masterCredentials = this.masterCredentials.masterCredentials; } }, /** * @api private */ createClients: function() { this.service = this.service || new STS({params: this.params}); } }); },{"../../clients/sts":190,"../core":196}],202:[function(require,module,exports){ var AWS = require('../core'); var STS = require('../../clients/sts'); /** * Represents credentials retrieved from STS Web Identity Federation support. * * By default this provider gets credentials using the * {AWS.STS.assumeRoleWithWebIdentity} service operation. This operation * requires a `RoleArn` containing the ARN of the IAM trust policy for the * application for which credentials will be given. In addition, the * `WebIdentityToken` must be set to the token provided by the identity * provider. See {constructor} for an example on creating a credentials * object with proper `RoleArn` and `WebIdentityToken` values. * * ## Refreshing Credentials from Identity Service * * In addition to AWS credentials expiring after a given amount of time, the * login token from the identity provider will also expire. Once this token * expires, it will not be usable to refresh AWS credentials, and another * token will be needed. The SDK does not manage refreshing of the token value, * but this can be done through a "refresh token" supported by most identity * providers. Consult the documentation for the identity provider for refreshing * tokens. Once the refreshed token is acquired, you should make sure to update * this new token in the credentials object's {params} property. The following * code will update the WebIdentityToken, assuming you have retrieved an updated * token from the identity provider: * * ```javascript * AWS.config.credentials.params.WebIdentityToken = updatedToken; * ``` * * Future calls to `credentials.refresh()` will now use the new token. * * @!attribute params * @return [map] the map of params passed to * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the * `params.WebIdentityToken` property. * @!attribute data * @return [map] the raw data response from the call to * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get * access to other properties from the response. */ AWS.WebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { /** * Creates a new credentials object. * @param (see AWS.STS.assumeRoleWithWebIdentity) * @example Creating a new credentials object * AWS.config.credentials = new AWS.WebIdentityCredentials({ * RoleArn: 'arn:aws:iam::1234567890:role/WebIdentity', * WebIdentityToken: 'ABCDEFGHIJKLMNOP', // token from identity service * RoleSessionName: 'web' // optional name, defaults to web-identity * }); * @see AWS.STS.assumeRoleWithWebIdentity */ constructor: function WebIdentityCredentials(params) { AWS.Credentials.call(this); this.expired = true; this.params = params; this.params.RoleSessionName = this.params.RoleSessionName || 'web-identity'; this.data = null; }, /** * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} * * @callback callback function(err) * Called when the STS service responds (or fails). When * this callback is called with no error, it means that the credentials * information has been loaded into the object (as the `accessKeyId`, * `secretAccessKey`, and `sessionToken` properties). * @param err [Error] if an error occurred, this value will be filled * @see get */ refresh: function refresh(callback) { var self = this; self.createClients(); if (!callback) callback = function(err) { if (err) throw err; }; self.service.assumeRoleWithWebIdentity(function (err, data) { self.data = null; if (!err) { self.data = data; self.service.credentialsFrom(data, self); } callback(err); }); }, /** * @api private */ createClients: function() { this.service = this.service || new STS({params: this.params}); } }); },{"../../clients/sts":190,"../core":196}],203:[function(require,module,exports){ var util = require('../core').util; var typeOf = require('./types').typeOf; var DynamoDBSet = require('./set'); function convertInput(data) { if (typeOf(data) === 'Object') { var map = {M: {}}; for (var key in data) { map['M'][key] = convertInput(data[key]); } return map; } else if (typeOf(data) === 'Array') { var list = {L: []}; for (var i = 0; i < data.length; i++) { list['L'].push(convertInput(data[i])); } return list; } else if (typeOf(data) === 'Set') { return formatSet(data); } else if (typeOf(data) === 'String') { return { 'S': data }; } else if (typeOf(data) === 'Number') { return { 'N': data.toString() }; } else if (typeOf(data) === 'Binary') { return { 'B': data }; } else if (typeOf(data) === 'Boolean') { return {'BOOL': data}; } else if (typeOf(data) === 'null') { return {'NULL': true}; } } function formatSet(data) { var map = {}; switch (data.type) { case 'String': map['SS'] = data.values; break; case 'Binary': map['BS'] = data.values; break; case 'Number': map['NS'] = data.values.map(function (value) { return value.toString(); }); } return map; } function convertOutput(data) { var list, map, i; for (var type in data) { var values = data[type]; if (type === 'M') { map = {}; for (var key in values) { map[key] = convertOutput(values[key]); } return map; } else if (type === 'L') { list = []; for (i = 0; i < values.length; i++) { list.push(convertOutput(values[i])); } return list; } else if (type === 'SS') { list = []; for (i = 0; i < values.length; i++) { list.push(values[i] + ''); } return new DynamoDBSet(list); } else if (type === 'NS') { list = []; for (i = 0; i < values.length; i++) { list.push(Number(values[i])); } return new DynamoDBSet(list); } else if (type === 'BS') { list = []; for (i = 0; i < values.length; i++) { list.push(new util.Buffer(values[i])); } return new DynamoDBSet(list); } else if (type === 'S') { return values + ''; } else if (type === 'N') { return Number(values); } else if (type === 'B') { return new util.Buffer(values); } else if (type === 'BOOL') { return (values === 'true' || values === 'TRUE' || values === true); } else if (type === 'NULL') { return null; } } } module.exports = { input: convertInput, output: convertOutput }; },{"../core":196,"./set":205,"./types":207}],204:[function(require,module,exports){ var AWS = require('../core'); var Translator = require('./translator'); var DynamoDBSet = require('./set'); /** * The document client simplifies working with items in Amazon DynamoDB * by abstracting away the notion of attribute values. This abstraction * annotates native JavaScript types supplied as input parameters, as well * as converts annotated response data to native JavaScript types. * * ## Marshalling Input and Unmarshalling Response Data * * The document client affords developers the use of native JavaScript types * instead of `AttributeValue`s to simplify the JavaScript development * experience with Amazon DynamoDB. JavaScript objects passed in as parameters * are marshalled into `AttributeValue` shapes required by Amazon DynamoDB. * Responses from DynamoDB are unmarshalled into plain JavaScript objects * by the `DocumentClient`. The `DocumentClient`, does not accept * `AttributeValue`s in favor of native JavaScript types. * * | JavaScript Type | DynamoDB AttributeValue | * |:----------------------------------------------------------------------:|-------------------------| * | String | S | * | Number | N | * | Boolean | BOOL | * | null | NULL | * | Array | L | * | Object | M | * | Buffer, File, Blob, ArrayBuffer, DataView, and JavaScript typed arrays | B | * * ## Support for Sets * * The `DocumentClient` offers a convenient way to create sets from * JavaScript Arrays. The type of set is inferred from the first element * in the array. DynamoDB supports string, number, and binary sets. To * learn more about supported types see the * [Amazon DynamoDB Data Model Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html) * For more information see {AWS.DynamoDB.DocumentClient.createSet} * */ AWS.DynamoDB.DocumentClient = AWS.util.inherit({ /** * @api private */ operations: { batchGetItem: 'batchGet', batchWriteItem: 'batchWrite', putItem: 'put', getItem: 'get', deleteItem: 'delete', updateItem: 'update', scan: 'scan', query: 'query' }, /** * Creates a DynamoDB document client with a set of configuration options. * * @option options params [map] An optional map of parameters to bind to every * request sent by this service object. * @option options service [AWS.DynamoDB] An optional pre-configured instance * of the AWS.DynamoDB service object to use for requests. The object may * bound parameters used by the document client. * @see AWS.DynamoDB.constructor * */ constructor: function DocumentClient(options) { var self = this; self.options = options || {}; self.configure(self.options); }, /** * @api private */ configure: function configure(options) { var self = this; self.service = options.service; self.bindServiceObject(options); self.attrValue = self.service.api.operations.putItem.input.members.Item.value.shape; }, /** * @api private */ bindServiceObject: function bindServiceObject(options) { var self = this; options = options || {}; if (!self.service) { self.service = new AWS.DynamoDB(options); } else { var config = AWS.util.copy(self.service.config); self.service = new self.service.constructor.__super__(config); self.service.config.params = AWS.util.merge(self.service.config.params || {}, options.params); } }, /** * Returns the attributes of one or more items from one or more tables * by delegating to `AWS.DynamoDB.batchGetItem()`. * * Supply the same parameters as {AWS.DynamoDB.batchGetItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.batchGetItem * @example Get items from multiple tables * var params = { * RequestItems: { * 'Table-1': { * Keys: [ * { * HashKey: 'haskey', * NumberRangeKey: 1 * } * ] * }, * 'Table-2': { * Keys: [ * { foo: 'bar' }, * ] * } * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.batchGet(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ batchGet: function(params, callback) { var self = this; var request = self.service.batchGetItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Puts or deletes multiple items in one or more tables by delegating * to `AWS.DynamoDB.batchWriteItem()`. * * Supply the same parameters as {AWS.DynamoDB.batchWriteItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.batchWriteItem * @example Write to and delete from a table * var params = { * RequestItems: { * 'Table-1': [ * { * DeleteRequest: { * Key: { HashKey: 'someKey' } * } * }, * { * PutRequest: { * Item: { * HashKey: 'anotherKey', * NumAttribute: 1, * BoolAttribute: true, * ListAttribute: [1, 'two', false], * MapAttribute: { foo: 'bar' } * } * } * } * ] * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.batchWrite(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ batchWrite: function(params, callback) { var self = this; var request = self.service.batchWriteItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Deletes a single item in a table by primary key by delegating to * `AWS.DynamoDB.deleteItem()` * * Supply the same parameters as {AWS.DynamoDB.deleteItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.deleteItem * @example Delete an item from a table * var params = { * TableName : 'Table', * Key: { * HashKey: 'hashkey', * NumberRangeKey: 1 * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.delete(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ delete: function(params, callback) { var self = this; var request = self.service.deleteItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Returns a set of attributes for the item with the given primary key * by delegating to `AWS.DynamoDB.getItem()`. * * Supply the same parameters as {AWS.DynamoDB.getItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.getItem * @example Get an item from a table * var params = { * TableName : 'Table', * Key: { * HashKey: 'hashkey' * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.get(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ get: function(params, callback) { var self = this; var request = self.service.getItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Creates a new item, or replaces an old item with a new item by * delegating to `AWS.DynamoDB.putItem()`. * * Supply the same parameters as {AWS.DynamoDB.putItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.putItem * @example Create a new item in a table * var params = { * TableName : 'Table', * Item: { * HashKey: 'haskey', * NumAttribute: 1, * BoolAttribute: true, * ListAttribute: [1, 'two', false], * MapAttribute: { foo: 'bar'}, * NullAttribute: null * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.put(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ put: function put(params, callback) { var self = this; var request = self.service.putItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Edits an existing item's attributes, or adds a new item to the table if * it does not already exist by delegating to `AWS.DynamoDB.updateItem()`. * * Supply the same parameters as {AWS.DynamoDB.updateItem} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.updateItem * @example Update an item with expressions * var params = { * TableName: 'Table', * Key: { HashKey : 'hashkey' }, * UpdateExpression: 'set #a = :x + :y', * ConditionExpression: '#a < :MAX', * ExpressionAttributeNames: {'#a' : 'Sum'}, * ExpressionAttributeValues: { * ':x' : 20, * ':y' : 45, * ':MAX' : 100, * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.update(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ update: function(params, callback) { var self = this; var request = self.service.updateItem(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Returns one or more items and item attributes by accessing every item * in a table or a secondary index. * * Supply the same parameters as {AWS.DynamoDB.scan} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.scan * @example Scan the table with a filter expression * var params = { * TableName : 'Table', * FilterExpression : 'Year = :this_year', * ExpressionAttributeValues : {':this_year' : 2015} * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.scan(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ scan: function(params, callback) { var self = this; var request = self.service.scan(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Directly access items from a table by primary key or a secondary index. * * Supply the same parameters as {AWS.DynamoDB.query} with * `AttributeValue`s substituted by native JavaScript types. * * @see AWS.DynamoDB.query * @example Query an index * var params = { * TableName: 'Table', * IndexName: 'Index', * KeyConditionExpression: 'HashKey = :hkey and RangeKey > :rkey', * ExpressionAttributeValues: { * ':hkey': 'key', * ':rkey': 2015 * } * }; * * var docClient = new AWS.DynamoDB.DocumentClient(); * * docClient.query(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ query: function(params, callback) { var self = this; var request = self.service.query(params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === 'function') { request.send(callback); } return request; }, /** * Creates a set of elements inferring the type of set from * the type of the first element. Amazon DynamoDB currently supports * the number sets, string sets, and binary sets. For more information * about DynamoDB data types see the documentation on the * [Amazon DynamoDB Data Model](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModel.DataTypes). * * @param list [Array] Collection to represent your DynamoDB Set * @param options [map] * * **validate** [Boolean] set to true if you want to validate the type * of each element in the set. Defaults to `false`. * @example Creating a number set * var docClient = new AWS.DynamoDB.DocumentClient(); * * var params = { * Item: { * hashkey: 'hashkey' * numbers: docClient.createSet([1, 2, 3]); * } * }; * * docClient.put(params, function(err, data) { * if (err) console.log(err); * else console.log(data); * }); * */ createSet: function(list, options) { options = options || {}; return new DynamoDBSet(list, options); }, /** * @api private */ getTranslator: function() { return new Translator({attrValue: this.attrValue}); }, /** * @api private */ setupRequest: function setupRequest(request) { var self = this; var translator = self.getTranslator(); var operation = request.operation; var inputShape = request.service.api.operations[operation].input; request._events.validate.unshift(function(req) { req.rawParams = AWS.util.copy(req.params); req.params = translator.translateInput(req.rawParams, inputShape); }); }, /** * @api private */ setupResponse: function setupResponse(request) { var self = this; var translator = self.getTranslator(); var outputShape = self.service.api.operations[request.operation].output; request.on('extractData', function(response) { response.data = translator.translateOutput(response.data, outputShape); }); var response = request.response; response.nextPage = function(cb) { var resp = this; var req = resp.request; var config; var service = req.service; var operation = req.operation; try { config = service.paginationConfig(operation, true); } catch (e) { resp.error = e; } if (!resp.hasNextPage()) { if (cb) cb(resp.error, null); else if (resp.error) throw resp.error; return null; } var params = AWS.util.copy(req.rawParams); if (!resp.nextPageTokens) { return cb ? cb(null, null) : null; } else { var inputTokens = config.inputToken; if (typeof inputTokens === 'string') inputTokens = [inputTokens]; for (var i = 0; i < inputTokens.length; i++) { params[inputTokens[i]] = resp.nextPageTokens[i]; } return self[operation](params, cb); } }; } }); module.exports = AWS.DynamoDB.DocumentClient; },{"../core":196,"./set":205,"./translator":206}],205:[function(require,module,exports){ var util = require('../core').util; var typeOf = require('./types').typeOf; var DynamoDBSet = util.inherit({ constructor: function Set(list, options) { options = options || {}; this.initialize(list, options.validate); }, initialize: function(list, validate) { var self = this; self.values = [].concat(list); self.detectType(); if (validate) { self.validate(); } }, detectType: function() { var self = this; var value = self.values[0]; if (typeOf(value) === 'String') { self.type = 'String'; } else if (typeOf(value) === 'Number') { self.type = 'Number'; } else if (typeOf(value) === 'Binary') { self.type = 'Binary'; } else { throw util.error(new Error(), { code: 'InvalidSetType', message: 'Sets can contain string, number, or binary values' }); } }, validate: function() { var self = this; var length = self.values.length; var values = self.values; for (var i = 0; i < length; i++) { if (typeOf(values[i]) !== self.type) { throw util.error(new Error(), { code: 'InvalidType', message: self.type + ' Set contains ' + typeOf(values[i]) + ' value' }); } } } }); module.exports = DynamoDBSet; },{"../core":196,"./types":207}],206:[function(require,module,exports){ var util = require('../core').util; var convert = require('./converter'); var Translator = function(options) { options = options || {}; this.attrValue = options.attrValue; }; Translator.prototype.translateInput = function(value, shape) { this.mode = 'input'; return this.translate(value, shape); }; Translator.prototype.translateOutput = function(value, shape) { this.mode = 'output'; return this.translate(value, shape); }; Translator.prototype.translate = function(value, shape) { var self = this; if (!shape || value === undefined) return undefined; if (shape.shape === self.attrValue) { return convert[self.mode](value); } switch (shape.type) { case 'structure': return self.translateStructure(value, shape); case 'map': return self.translateMap(value, shape); case 'list': return self.translateList(value, shape); default: return self.translateScalar(value, shape); } }; Translator.prototype.translateStructure = function(structure, shape) { var self = this; if (structure == null) return undefined; var struct = {}; util.each(structure, function(name, value) { var memberShape = shape.members[name]; if (memberShape) { var result = self.translate(value, memberShape); if (result !== undefined) struct[name] = result; } }); return struct; }; Translator.prototype.translateList = function(list, shape) { var self = this; if (list == null) return undefined; var out = []; util.arrayEach(list, function(value) { var result = self.translate(value, shape.member); if (result === undefined) out.push(null); else out.push(result); }); return out; }; Translator.prototype.translateMap = function(map, shape) { var self = this; if (map == null) return undefined; var out = {}; util.each(map, function(key, value) { var result = self.translate(value, shape.value); if (result === undefined) out[key] = null; else out[key] = result; }); return out; }; Translator.prototype.translateScalar = function(value, shape) { return shape.toType(value); }; module.exports = Translator; },{"../core":196,"./converter":203}],207:[function(require,module,exports){ var util = require('../core').util; function typeOf(data) { if (data === null && typeof data === 'object') { return 'null'; } else if (data !== undefined && isBinary(data)) { return 'Binary'; } else if (data !== undefined && data.constructor) { return util.typeName(data.constructor); } else { return 'undefined'; } } function isBinary(data) { var types = [ 'Buffer', 'File', 'Blob', 'ArrayBuffer', 'DataView', 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', 'Float32Array', 'Float64Array' ]; if (util.isNode()) { var Stream = util.stream.Stream; if (util.Buffer.isBuffer(data) || data instanceof Stream) return true; } else { for (var i = 0; i < types.length; i++) { if (data !== undefined && data.constructor) { if (util.isType(data, types[i])) return true; if (util.typeName(data.constructor) === types[i]) return true; } } } return false; } module.exports = { typeOf: typeOf, isBinary: isBinary }; },{"../core":196}],208:[function(require,module,exports){ var AWS = require('./core'); var SequentialExecutor = require('./sequential_executor'); /** * The namespace used to register global event listeners for request building * and sending. */ AWS.EventListeners = { /** * @!attribute VALIDATE_CREDENTIALS * A request listener that validates whether the request is being * sent with credentials. * Handles the {AWS.Request~validate 'validate' Request event} * @example Sending a request without validating credentials * var listener = AWS.EventListeners.Core.VALIDATE_CREDENTIALS; * request.removeListener('validate', listener); * @readonly * @return [Function] * @!attribute VALIDATE_REGION * A request listener that validates whether the region is set * for a request. * Handles the {AWS.Request~validate 'validate' Request event} * @example Sending a request without validating region configuration * var listener = AWS.EventListeners.Core.VALIDATE_REGION; * request.removeListener('validate', listener); * @readonly * @return [Function] * @!attribute VALIDATE_PARAMETERS * A request listener that validates input parameters in a request. * Handles the {AWS.Request~validate 'validate' Request event} * @example Sending a request without validating parameters * var listener = AWS.EventListeners.Core.VALIDATE_PARAMETERS; * request.removeListener('validate', listener); * @example Disable parameter validation globally * AWS.EventListeners.Core.removeListener('validate', * AWS.EventListeners.Core.VALIDATE_REGION); * @readonly * @return [Function] * @!attribute SEND * A request listener that initiates the HTTP connection for a * request being sent. Handles the {AWS.Request~send 'send' Request event} * @example Replacing the HTTP handler * var listener = AWS.EventListeners.Core.SEND; * request.removeListener('send', listener); * request.on('send', function(response) { * customHandler.send(response); * }); * @return [Function] * @readonly * @!attribute HTTP_DATA * A request listener that reads data from the HTTP connection in order * to build the response data. * Handles the {AWS.Request~httpData 'httpData' Request event}. * Remove this handler if you are overriding the 'httpData' event and * do not want extra data processing and buffering overhead. * @example Disabling default data processing * var listener = AWS.EventListeners.Core.HTTP_DATA; * request.removeListener('httpData', listener); * @return [Function] * @readonly */ Core: {} /* doc hack */ }; AWS.EventListeners = { Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) { addAsync('VALIDATE_CREDENTIALS', 'validate', function VALIDATE_CREDENTIALS(req, done) { if (!req.service.api.signatureVersion) return done(); // none req.service.config.getCredentials(function(err) { if (err) { req.response.error = AWS.util.error(err, {code: 'CredentialsError', message: 'Missing credentials in config'}); } done(); }); }); add('VALIDATE_REGION', 'validate', function VALIDATE_REGION(req) { if (!req.service.config.region && !req.service.isGlobalEndpoint) { req.response.error = AWS.util.error(new Error(), {code: 'ConfigError', message: 'Missing region in config'}); } }); add('VALIDATE_PARAMETERS', 'validate', function VALIDATE_PARAMETERS(req) { var rules = req.service.api.operations[req.operation].input; var validation = req.service.config.paramValidation; new AWS.ParamValidator(validation).validate(rules, req.params); }); addAsync('COMPUTE_SHA256', 'afterBuild', function COMPUTE_SHA256(req, done) { req.haltHandlersOnError(); if (!req.service.api.signatureVersion) return done(); // none if (req.service.getSignerClass(req) === AWS.Signers.V4) { var body = req.httpRequest.body || ''; AWS.util.computeSha256(body, function(err, sha) { if (err) { done(err); } else { req.httpRequest.headers['X-Amz-Content-Sha256'] = sha; done(); } }); } else { done(); } }); add('SET_CONTENT_LENGTH', 'afterBuild', function SET_CONTENT_LENGTH(req) { if (req.httpRequest.headers['Content-Length'] === undefined) { var length = AWS.util.string.byteLength(req.httpRequest.body); req.httpRequest.headers['Content-Length'] = length; } }); add('SET_HTTP_HOST', 'afterBuild', function SET_HTTP_HOST(req) { req.httpRequest.headers['Host'] = req.httpRequest.endpoint.host; }); add('RESTART', 'restart', function RESTART() { var err = this.response.error; if (!err || !err.retryable) return; this.httpRequest = new AWS.HttpRequest( this.service.endpoint, this.service.region ); if (this.response.retryCount < this.service.config.maxRetries) { this.response.retryCount++; } else { this.response.error = null; } }); addAsync('SIGN', 'sign', function SIGN(req, done) { var service = req.service; if (!service.api.signatureVersion) return done(); // none service.config.getCredentials(function (err, credentials) { if (err) { req.response.error = err; return done(); } try { var date = AWS.util.date.getDate(); var SignerClass = service.getSignerClass(req); var signer = new SignerClass(req.httpRequest, service.api.signingName || service.api.endpointPrefix, service.config.signatureCache); signer.setServiceClientId(service._clientId); // clear old authorization headers delete req.httpRequest.headers['Authorization']; delete req.httpRequest.headers['Date']; delete req.httpRequest.headers['X-Amz-Date']; // add new authorization signer.addAuthorization(credentials, date); req.signedAt = date; } catch (e) { req.response.error = e; } done(); }); }); add('VALIDATE_RESPONSE', 'validateResponse', function VALIDATE_RESPONSE(resp) { if (this.service.successfulResponse(resp, this)) { resp.data = {}; resp.error = null; } else { resp.data = null; resp.error = AWS.util.error(new Error(), {code: 'UnknownError', message: 'An unknown error occurred.'}); } }); addAsync('SEND', 'send', function SEND(resp, done) { resp.httpResponse._abortCallback = done; resp.error = null; resp.data = null; function callback(httpResp) { resp.httpResponse.stream = httpResp; httpResp.on('headers', function onHeaders(statusCode, headers) { resp.request.emit('httpHeaders', [statusCode, headers, resp]); if (!resp.httpResponse.streaming) { if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check httpResp.on('readable', function onReadable() { var data = httpResp.read(); if (data !== null) { resp.request.emit('httpData', [data, resp]); } }); } else { // legacy streams API httpResp.on('data', function onData(data) { resp.request.emit('httpData', [data, resp]); }); } } }); httpResp.on('end', function onEnd() { resp.request.emit('httpDone'); done(); }); } function progress(httpResp) { httpResp.on('sendProgress', function onSendProgress(value) { resp.request.emit('httpUploadProgress', [value, resp]); }); httpResp.on('receiveProgress', function onReceiveProgress(value) { resp.request.emit('httpDownloadProgress', [value, resp]); }); } function error(err) { resp.error = AWS.util.error(err, { code: 'NetworkingError', region: resp.request.httpRequest.region, hostname: resp.request.httpRequest.endpoint.hostname, retryable: true }); resp.request.emit('httpError', [resp.error, resp], function() { done(); }); } function executeSend() { var http = AWS.HttpClient.getInstance(); var httpOptions = resp.request.service.config.httpOptions || {}; try { var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); progress(stream); } catch (err) { error(err); } } var timeDiff = (AWS.util.date.getDate() - this.signedAt) / 1000; if (timeDiff >= 60 * 10) { // if we signed 10min ago, re-sign this.emit('sign', [this], function(err) { if (err) done(err); else executeSend(); }); } else { executeSend(); } }); add('HTTP_HEADERS', 'httpHeaders', function HTTP_HEADERS(statusCode, headers, resp) { resp.httpResponse.statusCode = statusCode; resp.httpResponse.headers = headers; resp.httpResponse.body = new AWS.util.Buffer(''); resp.httpResponse.buffers = []; resp.httpResponse.numBytes = 0; var dateHeader = headers.date || headers.Date; if (dateHeader) { var serverTime = Date.parse(dateHeader); if (resp.request.service.config.correctClockSkew && AWS.util.isClockSkewed(serverTime)) { AWS.util.applyClockOffset(serverTime); } } }); add('HTTP_DATA', 'httpData', function HTTP_DATA(chunk, resp) { if (chunk) { if (AWS.util.isNode()) { resp.httpResponse.numBytes += chunk.length; var total = resp.httpResponse.headers['content-length']; var progress = { loaded: resp.httpResponse.numBytes, total: total }; resp.request.emit('httpDownloadProgress', [progress, resp]); } resp.httpResponse.buffers.push(new AWS.util.Buffer(chunk)); } }); add('HTTP_DONE', 'httpDone', function HTTP_DONE(resp) { // convert buffers array into single buffer if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { var body = AWS.util.buffer.concat(resp.httpResponse.buffers); resp.httpResponse.body = body; } delete resp.httpResponse.numBytes; delete resp.httpResponse.buffers; }); add('FINALIZE_ERROR', 'retry', function FINALIZE_ERROR(resp) { if (resp.httpResponse.statusCode) { resp.error.statusCode = resp.httpResponse.statusCode; if (resp.error.retryable === undefined) { resp.error.retryable = this.service.retryableError(resp.error, this); } } }); add('INVALIDATE_CREDENTIALS', 'retry', function INVALIDATE_CREDENTIALS(resp) { if (!resp.error) return; switch (resp.error.code) { case 'RequestExpired': // EC2 only case 'ExpiredTokenException': case 'ExpiredToken': resp.error.retryable = true; resp.request.service.config.credentials.expired = true; } }); add('EXPIRED_SIGNATURE', 'retry', function EXPIRED_SIGNATURE(resp) { var err = resp.error; if (!err) return; if (typeof err.code === 'string' && typeof err.message === 'string') { if (err.code.match(/Signature/) && err.message.match(/expired/)) { resp.error.retryable = true; } } }); add('CLOCK_SKEWED', 'retry', function CLOCK_SKEWED(resp) { if (!resp.error) return; if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew && AWS.config.isClockSkewed) { resp.error.retryable = true; } }); add('REDIRECT', 'retry', function REDIRECT(resp) { if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers['location']) { this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers['location']); this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host; resp.error.redirect = true; resp.error.retryable = true; } }); add('RETRY_CHECK', 'retry', function RETRY_CHECK(resp) { if (resp.error) { if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { resp.error.retryDelay = 0; } else if (resp.retryCount < resp.maxRetries) { resp.error.retryDelay = this.service.retryDelays(resp.retryCount) || 0; } } }); addAsync('RESET_RETRY_STATE', 'afterRetry', function RESET_RETRY_STATE(resp, done) { var delay, willRetry = false; if (resp.error) { delay = resp.error.retryDelay || 0; if (resp.error.retryable && resp.retryCount < resp.maxRetries) { resp.retryCount++; willRetry = true; } else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { resp.redirectCount++; willRetry = true; } } if (willRetry) { resp.error = null; setTimeout(done, delay); } else { done(); } }); }), CorePost: new SequentialExecutor().addNamedListeners(function(add) { add('EXTRACT_REQUEST_ID', 'extractData', AWS.util.extractRequestId); add('EXTRACT_REQUEST_ID', 'extractError', AWS.util.extractRequestId); add('ENOTFOUND_ERROR', 'httpError', function ENOTFOUND_ERROR(err) { if (err.code === 'NetworkingError' && err.errno === 'ENOTFOUND') { var message = 'Inaccessible host: `' + err.hostname + '\'. This service may not be available in the `' + err.region + '\' region.'; this.response.error = AWS.util.error(new Error(message), { code: 'UnknownEndpoint', region: err.region, hostname: err.hostname, retryable: true, originalError: err }); } }); }), Logger: new SequentialExecutor().addNamedListeners(function(add) { add('LOG_REQUEST', 'complete', function LOG_REQUEST(resp) { var req = resp.request; var logger = req.service.config.logger; if (!logger) return; function buildMessage() { var time = AWS.util.date.getDate().getTime(); var delta = (time - req.startTime.getTime()) / 1000; var ansi = logger.isTTY ? true : false; var status = resp.httpResponse.statusCode; var params = require('util').inspect(req.params, true, null); var message = ''; if (ansi) message += '\x1B[33m'; message += '[AWS ' + req.service.serviceIdentifier + ' ' + status; message += ' ' + delta.toString() + 's ' + resp.retryCount + ' retries]'; if (ansi) message += '\x1B[0;1m'; message += ' ' + AWS.util.string.lowerFirst(req.operation); message += '(' + params + ')'; if (ansi) message += '\x1B[0m'; return message; } var line = buildMessage(); if (typeof logger.log === 'function') { logger.log(line); } else if (typeof logger.write === 'function') { logger.write(line + '\n'); } }); }), Json: new SequentialExecutor().addNamedListeners(function(add) { var svc = require('./protocol/json'); add('BUILD', 'build', svc.buildRequest); add('EXTRACT_DATA', 'extractData', svc.extractData); add('EXTRACT_ERROR', 'extractError', svc.extractError); }), Rest: new SequentialExecutor().addNamedListeners(function(add) { var svc = require('./protocol/rest'); add('BUILD', 'build', svc.buildRequest); add('EXTRACT_DATA', 'extractData', svc.extractData); add('EXTRACT_ERROR', 'extractError', svc.extractError); }), RestJson: new SequentialExecutor().addNamedListeners(function(add) { var svc = require('./protocol/rest_json'); add('BUILD', 'build', svc.buildRequest); add('EXTRACT_DATA', 'extractData', svc.extractData); add('EXTRACT_ERROR', 'extractError', svc.extractError); }), RestXml: new SequentialExecutor().addNamedListeners(function(add) { var svc = require('./protocol/rest_xml'); add('BUILD', 'build', svc.buildRequest); add('EXTRACT_DATA', 'extractData', svc.extractData); add('EXTRACT_ERROR', 'extractError', svc.extractError); }), Query: new SequentialExecutor().addNamedListeners(function(add) { var svc = require('./protocol/query'); add('BUILD', 'build', svc.buildRequest); add('EXTRACT_DATA', 'extractData', svc.extractData); add('EXTRACT_ERROR', 'extractError', svc.extractError); }) }; },{"./core":196,"./protocol/json":220,"./protocol/query":221,"./protocol/rest":222,"./protocol/rest_json":223,"./protocol/rest_xml":224,"./sequential_executor":232,"util":455}],209:[function(require,module,exports){ var AWS = require('./core'); var inherit = AWS.util.inherit; /** * The endpoint that a service will talk to, for example, * `'https://ec2.ap-southeast-1.amazonaws.com'`. If * you need to override an endpoint for a service, you can * set the endpoint on a service by passing the endpoint * object with the `endpoint` option key: * * ```javascript * var ep = new AWS.Endpoint('awsproxy.example.com'); * var s3 = new AWS.S3({endpoint: ep}); * s3.service.endpoint.hostname == 'awsproxy.example.com' * ``` * * Note that if you do not specify a protocol, the protocol will * be selected based on your current {AWS.config} configuration. * * @!attribute protocol * @return [String] the protocol (http or https) of the endpoint * URL * @!attribute hostname * @return [String] the host portion of the endpoint, e.g., * example.com * @!attribute host * @return [String] the host portion of the endpoint including * the port, e.g., example.com:80 * @!attribute port * @return [Integer] the port of the endpoint * @!attribute href * @return [String] the full URL of the endpoint */ AWS.Endpoint = inherit({ /** * @overload Endpoint(endpoint) * Constructs a new endpoint given an endpoint URL. If the * URL omits a protocol (http or https), the default protocol * set in the global {AWS.config} will be used. * @param endpoint [String] the URL to construct an endpoint from */ constructor: function Endpoint(endpoint, config) { AWS.util.hideProperties(this, ['slashes', 'auth', 'hash', 'search', 'query']); if (typeof endpoint === 'undefined' || endpoint === null) { throw new Error('Invalid endpoint: ' + endpoint); } else if (typeof endpoint !== 'string') { return AWS.util.copy(endpoint); } if (!endpoint.match(/^http/)) { var useSSL = config && config.sslEnabled !== undefined ? config.sslEnabled : AWS.config.sslEnabled; endpoint = (useSSL ? 'https' : 'http') + '://' + endpoint; } AWS.util.update(this, AWS.util.urlParse(endpoint)); // Ensure the port property is set as an integer if (this.port) { this.port = parseInt(this.port, 10); } else { this.port = this.protocol === 'https:' ? 443 : 80; } } }); /** * The low level HTTP request object, encapsulating all HTTP header * and body data sent by a service request. * * @!attribute method * @return [String] the HTTP method of the request * @!attribute path * @return [String] the path portion of the URI, e.g., * "/list/?start=5&num=10" * @!attribute headers * @return [map] * a map of header keys and their respective values * @!attribute body * @return [String] the request body payload * @!attribute endpoint * @return [AWS.Endpoint] the endpoint for the request * @!attribute region * @api private * @return [String] the region, for signing purposes only. */ AWS.HttpRequest = inherit({ /** * @api private */ constructor: function HttpRequest(endpoint, region, customUserAgent) { endpoint = new AWS.Endpoint(endpoint); this.method = 'POST'; this.path = endpoint.path || '/'; this.headers = {}; this.body = ''; this.endpoint = endpoint; this.region = region; this.setUserAgent(customUserAgent); }, /** * @api private */ setUserAgent: function setUserAgent(customUserAgent) { var prefix = AWS.util.isBrowser() ? 'X-Amz-' : ''; var customSuffix = ''; if (typeof customUserAgent === 'string' && customUserAgent) { customSuffix += ' ' + customUserAgent; } this.headers[prefix + 'User-Agent'] = AWS.util.userAgent() + customSuffix; }, /** * @return [String] the part of the {path} excluding the * query string */ pathname: function pathname() { return this.path.split('?', 1)[0]; }, /** * @return [String] the query string portion of the {path} */ search: function search() { var query = this.path.split('?', 2)[1]; if (query) { query = AWS.util.queryStringParse(query); return AWS.util.queryParamsToString(query); } return ''; } }); /** * The low level HTTP response object, encapsulating all HTTP header * and body data returned from the request. * * @!attribute statusCode * @return [Integer] the HTTP status code of the response (e.g., 200, 404) * @!attribute headers * @return [map] * a map of response header keys and their respective values * @!attribute body * @return [String] the response body payload * @!attribute [r] streaming * @return [Boolean] whether this response is being streamed at a low-level. * Defaults to `false` (buffered reads). Do not modify this manually, use * {createUnbufferedStream} to convert the stream to unbuffered mode * instead. */ AWS.HttpResponse = inherit({ /** * @api private */ constructor: function HttpResponse() { this.statusCode = undefined; this.headers = {}; this.body = undefined; this.streaming = false; this.stream = null; }, /** * Disables buffering on the HTTP response and returns the stream for reading. * @return [Stream, XMLHttpRequest, null] the underlying stream object. * Use this object to directly read data off of the stream. * @note This object is only available after the {AWS.Request~httpHeaders} * event has fired. This method must be called prior to * {AWS.Request~httpData}. * @example Taking control of a stream * request.on('httpHeaders', function(statusCode, headers) { * if (statusCode < 300) { * if (headers.etag === 'xyz') { * // pipe the stream, disabling buffering * var stream = this.response.httpResponse.createUnbufferedStream(); * stream.pipe(process.stdout); * } else { // abort this request and set a better error message * this.abort(); * this.response.error = new Error('Invalid ETag'); * } * } * }).send(console.log); */ createUnbufferedStream: function createUnbufferedStream() { this.streaming = true; return this.stream; } }); AWS.HttpClient = inherit({}); /** * @api private */ AWS.HttpClient.getInstance = function getInstance() { if (this.singleton === undefined) { this.singleton = new this(); } return this.singleton; }; },{"./core":196}],210:[function(require,module,exports){ var AWS = require('../core'); var EventEmitter = require('events').EventEmitter; require('../http'); /** * @api private */ AWS.XHRClient = AWS.util.inherit({ handleRequest: function handleRequest(httpRequest, httpOptions, callback, errCallback) { var self = this; var endpoint = httpRequest.endpoint; var emitter = new EventEmitter(); var href = endpoint.protocol + '//' + endpoint.hostname; if (endpoint.port !== 80 && endpoint.port !== 443) { href += ':' + endpoint.port; } href += httpRequest.path; var xhr = new XMLHttpRequest(), headersEmitted = false; httpRequest.stream = xhr; xhr.addEventListener('readystatechange', function() { try { if (xhr.status === 0) return; // 0 code is invalid } catch (e) { return; } if (this.readyState >= this.HEADERS_RECEIVED && !headersEmitted) { try { xhr.responseType = 'arraybuffer'; } catch (e) {} emitter.statusCode = xhr.status; emitter.headers = self.parseHeaders(xhr.getAllResponseHeaders()); emitter.emit('headers', emitter.statusCode, emitter.headers); headersEmitted = true; } if (this.readyState === this.DONE) { self.finishRequest(xhr, emitter); } }, false); xhr.upload.addEventListener('progress', function (evt) { emitter.emit('sendProgress', evt); }); xhr.addEventListener('progress', function (evt) { emitter.emit('receiveProgress', evt); }, false); xhr.addEventListener('timeout', function () { errCallback(AWS.util.error(new Error('Timeout'), {code: 'TimeoutError'})); }, false); xhr.addEventListener('error', function () { errCallback(AWS.util.error(new Error('Network Failure'), { code: 'NetworkingError' })); }, false); callback(emitter); xhr.open(httpRequest.method, href, httpOptions.xhrAsync !== false); AWS.util.each(httpRequest.headers, function (key, value) { if (key !== 'Content-Length' && key !== 'User-Agent' && key !== 'Host') { xhr.setRequestHeader(key, value); } }); if (httpOptions.timeout && httpOptions.xhrAsync !== false) { xhr.timeout = httpOptions.timeout; } if (httpOptions.xhrWithCredentials) { xhr.withCredentials = true; } try { xhr.send(httpRequest.body); } catch (err) { if (httpRequest.body && typeof httpRequest.body.buffer === 'object') { xhr.send(httpRequest.body.buffer); // send ArrayBuffer directly } else { throw err; } } return emitter; }, parseHeaders: function parseHeaders(rawHeaders) { var headers = {}; AWS.util.arrayEach(rawHeaders.split(/\r?\n/), function (line) { var key = line.split(':', 1)[0]; var value = line.substring(key.length + 2); if (key.length > 0) headers[key.toLowerCase()] = value; }); return headers; }, finishRequest: function finishRequest(xhr, emitter) { var buffer; if (xhr.responseType === 'arraybuffer' && xhr.response) { var ab = xhr.response; buffer = new AWS.util.Buffer(ab.byteLength); var view = new Uint8Array(ab); for (var i = 0; i < buffer.length; ++i) { buffer[i] = view[i]; } } try { if (!buffer && typeof xhr.responseText === 'string') { buffer = new AWS.util.Buffer(xhr.responseText); } } catch (e) {} if (buffer) emitter.emit('data', buffer); emitter.emit('end'); } }); /** * @api private */ AWS.HttpClient.prototype = AWS.XHRClient.prototype; /** * @api private */ AWS.HttpClient.streamsApiVersion = 1; },{"../core":196,"../http":209,"events":426}],211:[function(require,module,exports){ var util = require('../util'); function JsonBuilder() { } JsonBuilder.prototype.build = function(value, shape) { return JSON.stringify(translate(value, shape)); }; function translate(value, shape) { if (!shape || value === undefined || value === null) return undefined; switch (shape.type) { case 'structure': return translateStructure(value, shape); case 'map': return translateMap(value, shape); case 'list': return translateList(value, shape); default: return translateScalar(value, shape); } } function translateStructure(structure, shape) { var struct = {}; util.each(structure, function(name, value) { var memberShape = shape.members[name]; if (memberShape) { if (memberShape.location !== 'body') return; var locationName = memberShape.isLocationName ? memberShape.name : name; var result = translate(value, memberShape); if (result !== undefined) struct[locationName] = result; } }); return struct; } function translateList(list, shape) { var out = []; util.arrayEach(list, function(value) { var result = translate(value, shape.member); if (result !== undefined) out.push(result); }); return out; } function translateMap(map, shape) { var out = {}; util.each(map, function(key, value) { var result = translate(value, shape.value); if (result !== undefined) out[key] = result; }); return out; } function translateScalar(value, shape) { return shape.toWireFormat(value); } module.exports = JsonBuilder; },{"../util":253}],212:[function(require,module,exports){ var util = require('../util'); function JsonParser() { } JsonParser.prototype.parse = function(value, shape) { return translate(JSON.parse(value), shape); }; function translate(value, shape) { if (!shape || value === undefined) return undefined; switch (shape.type) { case 'structure': return translateStructure(value, shape); case 'map': return translateMap(value, shape); case 'list': return translateList(value, shape); default: return translateScalar(value, shape); } } function translateStructure(structure, shape) { if (structure == null) return undefined; var struct = {}; var shapeMembers = shape.members; util.each(shapeMembers, function(name, memberShape) { var locationName = memberShape.isLocationName ? memberShape.name : name; if (Object.prototype.hasOwnProperty.call(structure, locationName)) { var value = structure[locationName]; var result = translate(value, memberShape); if (result !== undefined) struct[name] = result; } }); return struct; } function translateList(list, shape) { if (list == null) return undefined; var out = []; util.arrayEach(list, function(value) { var result = translate(value, shape.member); if (result === undefined) out.push(null); else out.push(result); }); return out; } function translateMap(map, shape) { if (map == null) return undefined; var out = {}; util.each(map, function(key, value) { var result = translate(value, shape.value); if (result === undefined) out[key] = null; else out[key] = result; }); return out; } function translateScalar(value, shape) { return shape.toType(value); } module.exports = JsonParser; },{"../util":253}],213:[function(require,module,exports){ var Collection = require('./collection'); var Operation = require('./operation'); var Shape = require('./shape'); var Paginator = require('./paginator'); var ResourceWaiter = require('./resource_waiter'); var util = require('../util'); var property = util.property; var memoizedProperty = util.memoizedProperty; function Api(api, options) { api = api || {}; options = options || {}; options.api = this; api.metadata = api.metadata || {}; property(this, 'isApi', true, false); property(this, 'apiVersion', api.metadata.apiVersion); property(this, 'endpointPrefix', api.metadata.endpointPrefix); property(this, 'signingName', api.metadata.signingName); property(this, 'globalEndpoint', api.metadata.globalEndpoint); property(this, 'signatureVersion', api.metadata.signatureVersion); property(this, 'jsonVersion', api.metadata.jsonVersion); property(this, 'targetPrefix', api.metadata.targetPrefix); property(this, 'protocol', api.metadata.protocol); property(this, 'timestampFormat', api.metadata.timestampFormat); property(this, 'xmlNamespaceUri', api.metadata.xmlNamespace); property(this, 'abbreviation', api.metadata.serviceAbbreviation); property(this, 'fullName', api.metadata.serviceFullName); memoizedProperty(this, 'className', function() { var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; if (!name) return null; name = name.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, ''); if (name === 'ElasticLoadBalancing') name = 'ELB'; return name; }); property(this, 'operations', new Collection(api.operations, options, function(name, operation) { return new Operation(name, operation, options); }, util.string.lowerFirst)); property(this, 'shapes', new Collection(api.shapes, options, function(name, shape) { return Shape.create(shape, options); })); property(this, 'paginators', new Collection(api.paginators, options, function(name, paginator) { return new Paginator(name, paginator, options); })); property(this, 'waiters', new Collection(api.waiters, options, function(name, waiter) { return new ResourceWaiter(name, waiter, options); }, util.string.lowerFirst)); if (options.documentation) { property(this, 'documentation', api.documentation); property(this, 'documentationUrl', api.documentationUrl); } } module.exports = Api; },{"../util":253,"./collection":214,"./operation":215,"./paginator":216,"./resource_waiter":217,"./shape":218}],214:[function(require,module,exports){ var memoizedProperty = require('../util').memoizedProperty; function memoize(name, value, fn, nameTr) { memoizedProperty(this, nameTr(name), function() { return fn(name, value); }); } function Collection(iterable, options, fn, nameTr) { nameTr = nameTr || String; var self = this; for (var id in iterable) { if (Object.prototype.hasOwnProperty.call(iterable, id)) { memoize.call(self, id, iterable[id], fn, nameTr); } } } module.exports = Collection; },{"../util":253}],215:[function(require,module,exports){ var Shape = require('./shape'); var util = require('../util'); var property = util.property; var memoizedProperty = util.memoizedProperty; function Operation(name, operation, options) { options = options || {}; property(this, 'name', operation.name || name); property(this, 'api', options.api, false); operation.http = operation.http || {}; property(this, 'httpMethod', operation.http.method || 'POST'); property(this, 'httpPath', operation.http.requestUri || '/'); property(this, 'authtype', operation.authtype || ''); memoizedProperty(this, 'input', function() { if (!operation.input) { return new Shape.create({type: 'structure'}, options); } return Shape.create(operation.input, options); }); memoizedProperty(this, 'output', function() { if (!operation.output) { return new Shape.create({type: 'structure'}, options); } return Shape.create(operation.output, options); }); memoizedProperty(this, 'errors', function() { var list = []; if (!operation.errors) return null; for (var i = 0; i < operation.errors.length; i++) { list.push(Shape.create(operation.errors[i], options)); } return list; }); memoizedProperty(this, 'paginator', function() { return options.api.paginators[name]; }); if (options.documentation) { property(this, 'documentation', operation.documentation); property(this, 'documentationUrl', operation.documentationUrl); } } module.exports = Operation; },{"../util":253,"./shape":218}],216:[function(require,module,exports){ var property = require('../util').property; function Paginator(name, paginator) { property(this, 'inputToken', paginator.input_token); property(this, 'limitKey', paginator.limit_key); property(this, 'moreResults', paginator.more_results); property(this, 'outputToken', paginator.output_token); property(this, 'resultKey', paginator.result_key); } module.exports = Paginator; },{"../util":253}],217:[function(require,module,exports){ 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; },{"../util":253}],218:[function(require,module,exports){ var Collection = require('./collection'); var util = require('../util'); function property(obj, name, value) { if (value !== null && value !== undefined) { util.property.apply(this, arguments); } } function memoizedProperty(obj, name) { if (!obj.constructor.prototype[name]) { util.memoizedProperty.apply(this, arguments); } } function Shape(shape, options, memberName) { options = options || {}; property(this, 'shape', shape.shape); property(this, 'api', options.api, false); property(this, 'type', shape.type); property(this, 'enum', shape.enum); property(this, 'min', shape.min); property(this, 'max', shape.max); property(this, 'pattern', shape.pattern); property(this, 'location', shape.location || this.location || 'body'); property(this, 'name', this.name || shape.xmlName || shape.queryName || shape.locationName || memberName); property(this, 'isStreaming', shape.streaming || this.isStreaming || false); property(this, 'isComposite', shape.isComposite || false); property(this, 'isShape', true, false); property(this, 'isQueryName', shape.queryName ? true : false, false); property(this, 'isLocationName', shape.locationName ? true : false, false); if (options.documentation) { property(this, 'documentation', shape.documentation); property(this, 'documentationUrl', shape.documentationUrl); } if (shape.xmlAttribute) { property(this, 'isXmlAttribute', shape.xmlAttribute || false); } // type conversion and parsing property(this, 'defaultValue', null); this.toWireFormat = function(value) { if (value === null || value === undefined) return ''; return value; }; this.toType = function(value) { return value; }; } /** * @api private */ Shape.normalizedTypes = { character: 'string', double: 'float', long: 'integer', short: 'integer', biginteger: 'integer', bigdecimal: 'float', blob: 'binary' }; /** * @api private */ Shape.types = { 'structure': StructureShape, 'list': ListShape, 'map': MapShape, 'boolean': BooleanShape, 'timestamp': TimestampShape, 'float': FloatShape, 'integer': IntegerShape, 'string': StringShape, 'base64': Base64Shape, 'binary': BinaryShape }; Shape.resolve = function resolve(shape, options) { if (shape.shape) { var refShape = options.api.shapes[shape.shape]; if (!refShape) { throw new Error('Cannot find shape reference: ' + shape.shape); } return refShape; } else { return null; } }; Shape.create = function create(shape, options, memberName) { if (shape.isShape) return shape; var refShape = Shape.resolve(shape, options); if (refShape) { var filteredKeys = Object.keys(shape); if (!options.documentation) { filteredKeys = filteredKeys.filter(function(name) { return !name.match(/documentation/); }); } if (filteredKeys === ['shape']) { // no inline customizations return refShape; } // create an inline shape with extra members var InlineShape = function() { refShape.constructor.call(this, shape, options, memberName); }; InlineShape.prototype = refShape; return new InlineShape(); } else { // set type if not set if (!shape.type) { if (shape.members) shape.type = 'structure'; else if (shape.member) shape.type = 'list'; else if (shape.key) shape.type = 'map'; else shape.type = 'string'; } // normalize types var origType = shape.type; if (Shape.normalizedTypes[shape.type]) { shape.type = Shape.normalizedTypes[shape.type]; } if (Shape.types[shape.type]) { return new Shape.types[shape.type](shape, options, memberName); } else { throw new Error('Unrecognized shape type: ' + origType); } } }; function CompositeShape(shape) { Shape.apply(this, arguments); property(this, 'isComposite', true); if (shape.flattened) { property(this, 'flattened', shape.flattened || false); } } function StructureShape(shape, options) { var requiredMap = null, firstInit = !this.isShape; CompositeShape.apply(this, arguments); if (firstInit) { property(this, 'defaultValue', function() { return {}; }); property(this, 'members', {}); property(this, 'memberNames', []); property(this, 'required', []); property(this, 'isRequired', function() { return false; }); } if (shape.members) { property(this, 'members', new Collection(shape.members, options, function(name, member) { return Shape.create(member, options, name); })); memoizedProperty(this, 'memberNames', function() { return shape.xmlOrder || Object.keys(shape.members); }); } if (shape.required) { property(this, 'required', shape.required); property(this, 'isRequired', function(name) { if (!requiredMap) { requiredMap = {}; for (var i = 0; i < shape.required.length; i++) { requiredMap[shape.required[i]] = true; } } return requiredMap[name]; }, false, true); } property(this, 'resultWrapper', shape.resultWrapper || null); if (shape.payload) { property(this, 'payload', shape.payload); } if (typeof shape.xmlNamespace === 'string') { property(this, 'xmlNamespaceUri', shape.xmlNamespace); } else if (typeof shape.xmlNamespace === 'object') { property(this, 'xmlNamespacePrefix', shape.xmlNamespace.prefix); property(this, 'xmlNamespaceUri', shape.xmlNamespace.uri); } } function ListShape(shape, options) { var self = this, firstInit = !this.isShape; CompositeShape.apply(this, arguments); if (firstInit) { property(this, 'defaultValue', function() { return []; }); } if (shape.member) { memoizedProperty(this, 'member', function() { return Shape.create(shape.member, options); }); } if (this.flattened) { var oldName = this.name; memoizedProperty(this, 'name', function() { return self.member.name || oldName; }); } } function MapShape(shape, options) { var firstInit = !this.isShape; CompositeShape.apply(this, arguments); if (firstInit) { property(this, 'defaultValue', function() { return {}; }); property(this, 'key', Shape.create({type: 'string'}, options)); property(this, 'value', Shape.create({type: 'string'}, options)); } if (shape.key) { memoizedProperty(this, 'key', function() { return Shape.create(shape.key, options); }); } if (shape.value) { memoizedProperty(this, 'value', function() { return Shape.create(shape.value, options); }); } } function TimestampShape(shape) { var self = this; Shape.apply(this, arguments); if (this.location === 'header') { property(this, 'timestampFormat', 'rfc822'); } else if (shape.timestampFormat) { property(this, 'timestampFormat', shape.timestampFormat); } else if (this.api) { if (this.api.timestampFormat) { property(this, 'timestampFormat', this.api.timestampFormat); } else { switch (this.api.protocol) { case 'json': case 'rest-json': property(this, 'timestampFormat', 'unixTimestamp'); break; case 'rest-xml': case 'query': case 'ec2': property(this, 'timestampFormat', 'iso8601'); break; } } } this.toType = function(value) { if (value === null || value === undefined) return null; if (typeof value.toUTCString === 'function') return value; return typeof value === 'string' || typeof value === 'number' ? util.date.parseTimestamp(value) : null; }; this.toWireFormat = function(value) { return util.date.format(value, self.timestampFormat); }; } function StringShape() { Shape.apply(this, arguments); if (this.api) { switch (this.api.protocol) { case 'rest-xml': case 'query': case 'ec2': this.toType = function(value) { return value || ''; }; } } } function FloatShape() { Shape.apply(this, arguments); this.toType = function(value) { if (value === null || value === undefined) return null; return parseFloat(value); }; this.toWireFormat = this.toType; } function IntegerShape() { Shape.apply(this, arguments); this.toType = function(value) { if (value === null || value === undefined) return null; return parseInt(value, 10); }; this.toWireFormat = this.toType; } function BinaryShape() { Shape.apply(this, arguments); this.toType = util.base64.decode; this.toWireFormat = util.base64.encode; } function Base64Shape() { BinaryShape.apply(this, arguments); } function BooleanShape() { Shape.apply(this, arguments); this.toType = function(value) { if (typeof value === 'boolean') return value; if (value === null || value === undefined) return null; return value === 'true'; }; } /** * @api private */ Shape.shapes = { StructureShape: StructureShape, ListShape: ListShape, MapShape: MapShape, StringShape: StringShape, BooleanShape: BooleanShape, Base64Shape: Base64Shape }; module.exports = Shape; },{"../util":253,"./collection":214}],219:[function(require,module,exports){ var AWS = require('./core'); /** * @api private */ AWS.ParamValidator = AWS.util.inherit({ /** * Create a new validator object. * * @param validation [Boolean|map] whether input parameters should be * validated against the operation description before sending the * request. 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. */ constructor: function ParamValidator(validation) { if (validation === true || validation === undefined) { validation = {'min': true}; } this.validation = validation; }, validate: function validate(shape, params, context) { this.errors = []; this.validateMember(shape, params || {}, context || 'params'); if (this.errors.length > 1) { var msg = this.errors.join('\n* '); msg = 'There were ' + this.errors.length + ' validation errors:\n* ' + msg; throw AWS.util.error(new Error(msg), {code: 'MultipleValidationErrors', errors: this.errors}); } else if (this.errors.length === 1) { throw this.errors[0]; } else { return true; } }, fail: function fail(code, message) { this.errors.push(AWS.util.error(new Error(message), {code: code})); }, validateStructure: function validateStructure(shape, params, context) { this.validateType(params, context, ['object'], 'structure'); var paramName; for (var i = 0; shape.required && i < shape.required.length; i++) { paramName = shape.required[i]; var value = params[paramName]; if (value === undefined || value === null) { this.fail('MissingRequiredParameter', 'Missing required key \'' + paramName + '\' in ' + context); } } // validate hash members for (paramName in params) { if (!Object.prototype.hasOwnProperty.call(params, paramName)) continue; var paramValue = params[paramName], memberShape = shape.members[paramName]; if (memberShape !== undefined) { var memberContext = [context, paramName].join('.'); this.validateMember(memberShape, paramValue, memberContext); } else { this.fail('UnexpectedParameter', 'Unexpected key \'' + paramName + '\' found in ' + context); } } return true; }, validateMember: function validateMember(shape, param, context) { switch (shape.type) { case 'structure': return this.validateStructure(shape, param, context); case 'list': return this.validateList(shape, param, context); case 'map': return this.validateMap(shape, param, context); default: return this.validateScalar(shape, param, context); } }, validateList: function validateList(shape, params, context) { if (this.validateType(params, context, [Array])) { this.validateRange(shape, params.length, context, 'list member count'); // validate array members for (var i = 0; i < params.length; i++) { this.validateMember(shape.member, params[i], context + '[' + i + ']'); } } }, validateMap: function validateMap(shape, params, context) { if (this.validateType(params, context, ['object'], 'map')) { // Build up a count of map members to validate range traits. var mapCount = 0; for (var param in params) { if (!Object.prototype.hasOwnProperty.call(params, param)) continue; // Validate any map key trait constraints this.validateMember(shape.key, param, context + '[key=\'' + param + '\']') this.validateMember(shape.value, params[param], context + '[\'' + param + '\']'); mapCount++; } this.validateRange(shape, mapCount, context, 'map member count'); } }, validateScalar: function validateScalar(shape, value, context) { switch (shape.type) { case null: case undefined: case 'string': return this.validateString(shape, value, context); case 'base64': case 'binary': return this.validatePayload(value, context); case 'integer': case 'float': return this.validateNumber(shape, value, context); case 'boolean': return this.validateType(value, context, ['boolean']); case 'timestamp': return this.validateType(value, context, [Date, /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, 'number'], 'Date object, ISO-8601 string, or a UNIX timestamp'); default: return this.fail('UnkownType', 'Unhandled type ' + shape.type + ' for ' + context); } }, validateString: function validateString(shape, value, context) { if (this.validateType(value, context, ['string'])) { this.validateEnum(shape, value, context); this.validateRange(shape, value.length, context, 'string length'); this.validatePattern(shape, value, context); } }, validatePattern: function validatePattern(shape, value, context) { if (this.validation['pattern'] && shape['pattern'] !== undefined) { if (!(new RegExp(shape['pattern'])).test(value)) { this.fail('PatternMatchError', 'Provided value "' + value + '" ' + 'does not match regex pattern /' + shape['pattern'] + '/ for ' + context); } } }, validateRange: function validateRange(shape, value, context, descriptor) { if (this.validation['min']) { if (shape['min'] !== undefined && value < shape['min']) { this.fail('MinRangeError', 'Expected ' + descriptor + ' >= ' + shape['min'] + ', but found ' + value + ' for ' + context); } } if (this.validation['max']) { if (shape['max'] !== undefined && value > shape['max']) { this.fail('MaxRangeError', 'Expected ' + descriptor + ' <= ' + shape['max'] + ', but found ' + value + ' for ' + context); } } }, validateEnum: function validateRange(shape, value, context) { if (this.validation['enum'] && shape['enum'] !== undefined) { // Fail if the string value is not present in the enum list if (shape['enum'].indexOf(value) === -1) { this.fail('EnumError', 'Found string value of ' + value + ', but ' + 'expected ' + shape['enum'].join('|') + ' for ' + context); } } }, validateType: function validateType(value, context, acceptedTypes, type) { // We will not log an error for null or undefined, but we will return // false so that callers know that the expected type was not strictly met. if (value === null || value === undefined) return false; var foundInvalidType = false; for (var i = 0; i < acceptedTypes.length; i++) { if (typeof acceptedTypes[i] === 'string') { if (typeof value === acceptedTypes[i]) return true; } else if (acceptedTypes[i] instanceof RegExp) { if ((value || '').toString().match(acceptedTypes[i])) return true; } else { if (value instanceof acceptedTypes[i]) return true; if (AWS.util.isType(value, acceptedTypes[i])) return true; if (!type && !foundInvalidType) acceptedTypes = acceptedTypes.slice(); acceptedTypes[i] = AWS.util.typeName(acceptedTypes[i]); } foundInvalidType = true; } var acceptedType = type; if (!acceptedType) { acceptedType = acceptedTypes.join(', ').replace(/,([^,]+)$/, ', or$1'); } var vowel = acceptedType.match(/^[aeiou]/i) ? 'n' : ''; this.fail('InvalidParameterType', 'Expected ' + context + ' to be a' + vowel + ' ' + acceptedType); return false; }, validateNumber: function validateNumber(shape, value, context) { if (value === null || value === undefined) return; if (typeof value === 'string') { var castedValue = parseFloat(value); if (castedValue.toString() === value) value = castedValue; } if (this.validateType(value, context, ['number'])) { this.validateRange(shape, value, context, 'numeric value'); } }, validatePayload: function validatePayload(value, context) { if (value === null || value === undefined) return; if (typeof value === 'string') return; if (value && typeof value.byteLength === 'number') return; // typed arrays if (AWS.util.isNode()) { // special check for buffer/stream in Node.js var Stream = AWS.util.stream.Stream; if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return; } var types = ['Buffer', 'Stream', 'File', 'Blob', 'ArrayBuffer', 'DataView']; if (value) { for (var i = 0; i < types.length; i++) { if (AWS.util.isType(value, types[i])) return; if (AWS.util.typeName(value.constructor) === types[i]) return; } } this.fail('InvalidParameterType', 'Expected ' + context + ' to be a ' + 'string, Buffer, Stream, Blob, or typed array object'); } }); },{"./core":196}],220:[function(require,module,exports){ var util = require('../util'); var JsonBuilder = require('../json/builder'); var JsonParser = require('../json/parser'); function buildRequest(req) { var httpRequest = req.httpRequest; var api = req.service.api; var target = api.targetPrefix + '.' + api.operations[req.operation].name; var version = api.jsonVersion || '1.0'; var input = api.operations[req.operation].input; var builder = new JsonBuilder(); if (version === 1) version = '1.0'; httpRequest.body = builder.build(req.params || {}, input); httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version; httpRequest.headers['X-Amz-Target'] = target; } function extractError(resp) { var error = {}; var httpResponse = resp.httpResponse; error.code = httpResponse.headers['x-amzn-errortype'] || 'UnknownError'; if (typeof error.code === 'string') { error.code = error.code.split(':')[0]; } if (httpResponse.body.length > 0) { var e = JSON.parse(httpResponse.body.toString()); if (e.__type || e.code) { error.code = (e.__type || e.code).split('#').pop(); } if (error.code === 'RequestEntityTooLarge') { error.message = 'Request body must be less than 1 MB'; } else { error.message = (e.message || e.Message || null); } } else { error.statusCode = httpResponse.statusCode; error.message = httpResponse.statusCode.toString(); } resp.error = util.error(new Error(), error); } function extractData(resp) { var body = resp.httpResponse.body.toString() || '{}'; if (resp.request.service.config.convertResponseTypes === false) { resp.data = JSON.parse(body); } else { var operation = resp.request.service.api.operations[resp.request.operation]; var shape = operation.output || {}; var parser = new JsonParser(); resp.data = parser.parse(body, shape); } } module.exports = { buildRequest: buildRequest, extractError: extractError, extractData: extractData }; },{"../json/builder":211,"../json/parser":212,"../util":253}],221:[function(require,module,exports){ var AWS = require('../core'); var util = require('../util'); var QueryParamSerializer = require('../query/query_param_serializer'); var Shape = require('../model/shape'); function buildRequest(req) { var operation = req.service.api.operations[req.operation]; var httpRequest = req.httpRequest; httpRequest.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8'; httpRequest.params = { Version: req.service.api.apiVersion, Action: operation.name }; // convert the request parameters into a list of query params, // e.g. Deeply.NestedParam.0.Name=value var builder = new QueryParamSerializer(); builder.serialize(req.params, operation.input, function(name, value) { httpRequest.params[name] = value; }); httpRequest.body = util.queryParamsToString(httpRequest.params); } function extractError(resp) { var data, body = resp.httpResponse.body.toString(); if (body.match('= 0 ? '&' : '?'); var parts = []; util.arrayEach(Object.keys(queryString).sort(), function(key) { if (!Array.isArray(queryString[key])) { queryString[key] = [queryString[key]]; } for (var i = 0; i < queryString[key].length; i++) { parts.push(util.uriEscape(String(key)) + '=' + queryString[key][i]); } }); uri += parts.join('&'); } req.httpRequest.path = uri; } function populateHeaders(req) { var operation = req.service.api.operations[req.operation]; util.each(operation.input.members, function (name, member) { var value = req.params[name]; if (value === null || value === undefined) return; if (member.location === 'headers' && member.type === 'map') { util.each(value, function(key, memberValue) { req.httpRequest.headers[member.name + key] = memberValue; }); } else if (member.location === 'header') { value = member.toWireFormat(value).toString(); req.httpRequest.headers[member.name] = value; } }); } function buildRequest(req) { populateMethod(req); populateURI(req); populateHeaders(req); } function extractError() { } function extractData(resp) { var req = resp.request; var data = {}; var r = resp.httpResponse; var operation = req.service.api.operations[req.operation]; var output = operation.output; // normalize headers names to lower-cased keys for matching var headers = {}; util.each(r.headers, function (k, v) { headers[k.toLowerCase()] = v; }); util.each(output.members, function(name, member) { var header = (member.name || name).toLowerCase(); if (member.location === 'headers' && member.type === 'map') { data[name] = {}; var location = member.isLocationName ? member.name : ''; var pattern = new RegExp('^' + location + '(.+)', 'i'); util.each(r.headers, function (k, v) { var result = k.match(pattern); if (result !== null) { data[name][result[1]] = v; } }); } else if (member.location === 'header') { if (headers[header] !== undefined) { data[name] = headers[header]; } } else if (member.location === 'statusCode') { data[name] = parseInt(r.statusCode, 10); } }); resp.data = data; } module.exports = { buildRequest: buildRequest, extractError: extractError, extractData: extractData }; },{"../util":253}],223:[function(require,module,exports){ var util = require('../util'); var Rest = require('./rest'); var Json = require('./json'); var JsonBuilder = require('../json/builder'); var JsonParser = require('../json/parser'); function populateBody(req) { var builder = new JsonBuilder(); var input = req.service.api.operations[req.operation].input; if (input.payload) { var params = {}; var payloadShape = input.members[input.payload]; params = req.params[input.payload]; if (params === undefined) return; if (payloadShape.type === 'structure') { req.httpRequest.body = builder.build(params, payloadShape); } else { // non-JSON payload req.httpRequest.body = params; } } else { req.httpRequest.body = builder.build(req.params, input); } } function buildRequest(req) { Rest.buildRequest(req); // never send body payload on GET/HEAD/DELETE if (['GET', 'HEAD', 'DELETE'].indexOf(req.httpRequest.method) < 0) { populateBody(req); } } function extractError(resp) { Json.extractError(resp); } function extractData(resp) { Rest.extractData(resp); var req = resp.request; var rules = req.service.api.operations[req.operation].output || {}; if (rules.payload) { var payloadMember = rules.members[rules.payload]; var body = resp.httpResponse.body; if (payloadMember.isStreaming) { resp.data[rules.payload] = body; } else if (payloadMember.type === 'structure' || payloadMember.type === 'list') { var parser = new JsonParser(); resp.data[rules.payload] = parser.parse(body, payloadMember); } else { resp.data[rules.payload] = body.toString(); } } else { var data = resp.data; Json.extractData(resp); resp.data = util.merge(data, resp.data); } } module.exports = { buildRequest: buildRequest, extractError: extractError, extractData: extractData }; },{"../json/builder":211,"../json/parser":212,"../util":253,"./json":220,"./rest":222}],224:[function(require,module,exports){ var AWS = require('../core'); var util = require('../util'); var Rest = require('./rest'); function populateBody(req) { var input = req.service.api.operations[req.operation].input; var builder = new AWS.XML.Builder(); var params = req.params; var payload = input.payload; if (payload) { var payloadMember = input.members[payload]; params = params[payload]; if (params === undefined) return; if (payloadMember.type === 'structure') { var rootElement = payloadMember.name; req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); } else { // non-xml payload req.httpRequest.body = params; } } else { req.httpRequest.body = builder.toXML(params, input, input.name || input.shape || util.string.upperFirst(req.operation) + 'Request'); } } function buildRequest(req) { Rest.buildRequest(req); // never send body payload on GET/HEAD if (['GET', 'HEAD'].indexOf(req.httpRequest.method) < 0) { populateBody(req); } } function extractError(resp) { Rest.extractError(resp); var data = new AWS.XML.Parser().parse(resp.httpResponse.body.toString()); if (data.Errors) data = data.Errors; if (data.Error) data = data.Error; if (data.Code) { resp.error = util.error(new Error(), { code: data.Code, message: data.Message }); } else { resp.error = util.error(new Error(), { code: resp.httpResponse.statusCode, message: null }); } } function extractData(resp) { Rest.extractData(resp); var parser; var req = resp.request; var body = resp.httpResponse.body; var operation = req.service.api.operations[req.operation]; var output = operation.output; var payload = output.payload; if (payload) { var payloadMember = output.members[payload]; if (payloadMember.isStreaming) { resp.data[payload] = body; } else if (payloadMember.type === 'structure') { parser = new AWS.XML.Parser(); resp.data[payload] = parser.parse(body.toString(), payloadMember); } else { resp.data[payload] = body.toString(); } } else if (body.length > 0) { parser = new AWS.XML.Parser(); var data = parser.parse(body.toString(), output); util.update(resp.data, data); } } module.exports = { buildRequest: buildRequest, extractError: extractError, extractData: extractData }; },{"../core":196,"../util":253,"./rest":222}],225:[function(require,module,exports){ var util = require('../util'); function QueryParamSerializer() { } QueryParamSerializer.prototype.serialize = function(params, shape, fn) { serializeStructure('', params, shape, fn); }; function ucfirst(shape) { if (shape.isQueryName || shape.api.protocol !== 'ec2') { return shape.name; } else { return shape.name[0].toUpperCase() + shape.name.substr(1); } } function serializeStructure(prefix, struct, rules, fn) { util.each(rules.members, function(name, member) { var value = struct[name]; if (value === null || value === undefined) return; var memberName = ucfirst(member); memberName = prefix ? prefix + '.' + memberName : memberName; serializeMember(memberName, value, member, fn); }); } function serializeMap(name, map, rules, fn) { var i = 1; util.each(map, function (key, value) { var prefix = rules.flattened ? '.' : '.entry.'; var position = prefix + (i++) + '.'; var keyName = position + (rules.key.name || 'key'); var valueName = position + (rules.value.name || 'value'); serializeMember(name + keyName, key, rules.key, fn); serializeMember(name + valueName, value, rules.value, fn); }); } function serializeList(name, list, rules, fn) { var memberRules = rules.member || {}; if (list.length === 0) { fn.call(this, name, null); return; } util.arrayEach(list, function (v, n) { var suffix = '.' + (n + 1); if (rules.api.protocol === 'ec2') { // Do nothing for EC2 suffix = suffix + ''; // make linter happy } else if (rules.flattened) { if (memberRules.name) { var parts = name.split('.'); parts.pop(); parts.push(ucfirst(memberRules)); name = parts.join('.'); } } else { suffix = '.member' + suffix; } serializeMember(name + suffix, v, memberRules, fn); }); } function serializeMember(name, value, rules, fn) { if (value === null || value === undefined) return; if (rules.type === 'structure') { serializeStructure(name, value, rules, fn); } else if (rules.type === 'list') { serializeList(name, value, rules, fn); } else if (rules.type === 'map') { serializeMap(name, value, rules, fn); } else { fn(name, rules.toWireFormat(value).toString()); } } module.exports = QueryParamSerializer; },{"../util":253}],226:[function(require,module,exports){ module.exports={ "rules": { "*/*": { "endpoint": "{service}.{region}.amazonaws.com" }, "cn-*/*": { "endpoint": "{service}.{region}.amazonaws.com.cn" }, "*/cloudfront": "globalSSL", "*/iam": "globalSSL", "*/sts": "globalSSL", "*/importexport": { "endpoint": "{service}.amazonaws.com", "signatureVersion": "v2", "globalEndpoint": true }, "*/route53": { "endpoint": "https://{service}.amazonaws.com", "signatureVersion": "v3https", "globalEndpoint": true }, "*/waf": "globalSSL", "us-gov-*/iam": "globalGovCloud", "us-gov-*/sts": { "endpoint": "{service}.{region}.amazonaws.com" }, "us-gov-west-1/s3": "s3dash", "us-west-1/s3": "s3dash", "us-west-2/s3": "s3dash", "eu-west-1/s3": "s3dash", "ap-southeast-1/s3": "s3dash", "ap-southeast-2/s3": "s3dash", "ap-northeast-1/s3": "s3dash", "sa-east-1/s3": "s3dash", "us-east-1/s3": { "endpoint": "{service}.amazonaws.com", "signatureVersion": "s3" }, "us-east-1/sdb": { "endpoint": "{service}.amazonaws.com", "signatureVersion": "v2" }, "*/sdb": { "endpoint": "{service}.{region}.amazonaws.com", "signatureVersion": "v2" } }, "patterns": { "globalSSL": { "endpoint": "https://{service}.amazonaws.com", "globalEndpoint": true }, "globalGovCloud": { "endpoint": "{service}.us-gov.amazonaws.com" }, "s3dash": { "endpoint": "{service}-{region}.amazonaws.com", "signatureVersion": "s3" } } } },{}],227:[function(require,module,exports){ var util = require('./util'); var regionConfig = require('./region_config.json'); function generateRegionPrefix(region) { if (!region) return null; var parts = region.split('-'); if (parts.length < 3) return null; return parts.slice(0, parts.length - 2).join('-') + '-*'; } function derivedKeys(service) { var region = service.config.region; var regionPrefix = generateRegionPrefix(region); var endpointPrefix = service.api.endpointPrefix; return [ [region, endpointPrefix], [regionPrefix, endpointPrefix], [region, '*'], [regionPrefix, '*'], ['*', endpointPrefix], ['*', '*'] ].map(function(item) { return item[0] && item[1] ? item.join('/') : null; }); } function applyConfig(service, config) { util.each(config, function(key, value) { if (key === 'globalEndpoint') return; if (service.config[key] === undefined || service.config[key] === null) { service.config[key] = value; } }); } function configureEndpoint(service) { var keys = derivedKeys(service); for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!key) continue; if (Object.prototype.hasOwnProperty.call(regionConfig.rules, key)) { var config = regionConfig.rules[key]; if (typeof config === 'string') { config = regionConfig.patterns[config]; } // set dualstack endpoint if (service.config.useDualstack && util.isDualstackAvailable(service)) { config = util.copy(config); config.endpoint = '{service}.dualstack.{region}.amazonaws.com'; } // set global endpoint service.isGlobalEndpoint = !!config.globalEndpoint; // signature version if (!config.signatureVersion) config.signatureVersion = 'v4'; // merge config applyConfig(service, config); return; } } } module.exports = configureEndpoint; },{"./region_config.json":226,"./util":253}],228:[function(require,module,exports){ (function (process){ var AWS = require('./core'); var AcceptorStateMachine = require('./state_machine'); var inherit = AWS.util.inherit; var domain = AWS.util.domain; var jmespath = require('jmespath'); /** * @api private */ var hardErrorStates = {success: 1, error: 1, complete: 1}; function isTerminalState(machine) { return Object.prototype.hasOwnProperty.call(hardErrorStates, machine._asm.currentState); } var fsm = new AcceptorStateMachine(); fsm.setupStates = function() { var transition = function(_, done) { var self = this; self._haltHandlersOnError = false; self.emit(self._asm.currentState, function(err) { if (err) { if (isTerminalState(self)) { if (domain && self.domain instanceof domain.Domain) { err.domainEmitter = self; err.domain = self.domain; err.domainThrown = false; self.domain.emit('error', err); } else { throw err; } } else { self.response.error = err; done(err); } } else { done(self.response.error); } }); }; this.addState('validate', 'build', 'error', transition); this.addState('build', 'afterBuild', 'restart', transition); this.addState('afterBuild', 'sign', 'restart', transition); this.addState('sign', 'send', 'retry', transition); this.addState('retry', 'afterRetry', 'afterRetry', transition); this.addState('afterRetry', 'sign', 'error', transition); this.addState('send', 'validateResponse', 'retry', transition); this.addState('validateResponse', 'extractData', 'extractError', transition); this.addState('extractError', 'extractData', 'retry', transition); this.addState('extractData', 'success', 'retry', transition); this.addState('restart', 'build', 'error', transition); this.addState('success', 'complete', 'complete', transition); this.addState('error', 'complete', 'complete', transition); this.addState('complete', null, null, transition); }; fsm.setupStates(); /** * ## Asynchronous Requests * * All requests made through the SDK are asynchronous and use a * callback interface. Each service method that kicks off a request * returns an `AWS.Request` object that you can use to register * callbacks. * * For example, the following service method returns the request * object as "request", which can be used to register callbacks: * * ```javascript * // request is an AWS.Request object * var request = ec2.describeInstances(); * * // register callbacks on request to retrieve response data * request.on('success', function(response) { * console.log(response.data); * }); * ``` * * When a request is ready to be sent, the {send} method should * be called: * * ```javascript * request.send(); * ``` * * ## Removing Default Listeners for Events * * Request objects are built with default listeners for the various events, * depending on the service type. In some cases, you may want to remove * some built-in listeners to customize behaviour. Doing this requires * access to the built-in listener functions, which are exposed through * the {AWS.EventListeners.Core} namespace. For instance, you may * want to customize the HTTP handler used when sending a request. In this * case, you can remove the built-in listener associated with the 'send' * event, the {AWS.EventListeners.Core.SEND} listener and add your own. * * ## Multiple Callbacks and Chaining * * You can register multiple callbacks on any request object. The * callbacks can be registered for different events, or all for the * same event. In addition, you can chain callback registration, for * example: * * ```javascript * request. * on('success', function(response) { * console.log("Success!"); * }). * on('error', function(response) { * console.log("Error!"); * }). * on('complete', function(response) { * console.log("Always!"); * }). * send(); * ``` * * The above example will print either "Success! Always!", or "Error! Always!", * depending on whether the request succeeded or not. * * @!attribute httpRequest * @readonly * @!group HTTP Properties * @return [AWS.HttpRequest] the raw HTTP request object * containing request headers and body information * sent by the service. * * @!attribute startTime * @readonly * @!group Operation Properties * @return [Date] the time that the request started * * @!group Request Building Events * * @!event validate(request) * Triggered when a request is being validated. Listeners * should throw an error if the request should not be sent. * @param request [Request] the request object being sent * @see AWS.EventListeners.Core.VALIDATE_CREDENTIALS * @see AWS.EventListeners.Core.VALIDATE_REGION * @example Ensuring that a certain parameter is set before sending a request * var req = s3.putObject(params); * req.on('validate', function() { * if (!req.params.Body.match(/^Hello\s/)) { * throw new Error('Body must start with "Hello "'); * } * }); * req.send(function(err, data) { ... }); * * @!event build(request) * Triggered when the request payload is being built. Listeners * should fill the necessary information to send the request * over HTTP. * @param (see AWS.Request~validate) * @example Add a custom HTTP header to a request * var req = s3.putObject(params); * req.on('build', function() { * req.httpRequest.headers['Custom-Header'] = 'value'; * }); * req.send(function(err, data) { ... }); * * @!event sign(request) * Triggered when the request is being signed. Listeners should * add the correct authentication headers and/or adjust the body, * depending on the authentication mechanism being used. * @param (see AWS.Request~validate) * * @!group Request Sending Events * * @!event send(response) * Triggered when the request is ready to be sent. Listeners * should call the underlying transport layer to initiate * the sending of the request. * @param response [Response] the response object * @context [Request] the request object that was sent * @see AWS.EventListeners.Core.SEND * * @!event retry(response) * Triggered when a request failed and might need to be retried or redirected. * If the response is retryable, the listener should set the * `response.error.retryable` property to `true`, and optionally set * `response.error.retryCount` to the millisecond delay for the next attempt. * In the case of a redirect, `response.error.redirect` should be set to * `true` with `retryCount` set to an optional delay on the next request. * * If a listener decides that a request should not be retried, * it should set both `retryable` and `redirect` to false. * * Note that a retryable error will be retried at most * {AWS.Config.maxRetries} times (based on the service object's config). * Similarly, a request that is redirected will only redirect at most * {AWS.Config.maxRedirects} times. * * @param (see AWS.Request~send) * @context (see AWS.Request~send) * @example Adding a custom retry for a 404 response * request.on('retry', function(response) { * // this resource is not yet available, wait 10 seconds to get it again * if (response.httpResponse.statusCode === 404 && response.error) { * response.error.retryable = true; // retry this error * response.error.retryCount = 10000; // wait 10 seconds * } * }); * * @!group Data Parsing Events * * @!event extractError(response) * Triggered on all non-2xx requests so that listeners can extract * error details from the response body. Listeners to this event * should set the `response.error` property. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!event extractData(response) * Triggered in successful requests to allow listeners to * de-serialize the response body into `response.data`. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!group Completion Events * * @!event success(response) * Triggered when the request completed successfully. * `response.data` will contain the response data and * `response.error` will be null. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!event error(error, response) * Triggered when an error occurs at any point during the * request. `response.error` will contain details about the error * that occurred. `response.data` will be null. * @param error [Error] the error object containing details about * the error that occurred. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!event complete(response) * Triggered whenever a request cycle completes. `response.error` * should be checked, since the request may have failed. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!group HTTP Events * * @!event httpHeaders(statusCode, headers, response) * Triggered when headers are sent by the remote server * @param statusCode [Integer] the HTTP response code * @param headers [map] the response headers * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!event httpData(chunk, response) * Triggered when data is sent by the remote server * @param chunk [Buffer] the buffer data containing the next data chunk * from the server * @param (see AWS.Request~send) * @context (see AWS.Request~send) * @see AWS.EventListeners.Core.HTTP_DATA * * @!event httpUploadProgress(progress, response) * Triggered when the HTTP request has uploaded more data * @param progress [map] An object containing the `loaded` and `total` bytes * of the request. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * @note This event will not be emitted in Node.js 0.8.x. * * @!event httpDownloadProgress(progress, response) * Triggered when the HTTP request has downloaded more data * @param progress [map] An object containing the `loaded` and `total` bytes * of the request. * @param (see AWS.Request~send) * @context (see AWS.Request~send) * @note This event will not be emitted in Node.js 0.8.x. * * @!event httpError(error, response) * Triggered when the HTTP request failed * @param error [Error] the error object that was thrown * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @!event httpDone(response) * Triggered when the server is finished sending data * @param (see AWS.Request~send) * @context (see AWS.Request~send) * * @see AWS.Response */ AWS.Request = inherit({ /** * Creates a request for an operation on a given service with * a set of input parameters. * * @param service [AWS.Service] the service to perform the operation on * @param operation [String] the operation to perform on the service * @param params [Object] parameters to send to the operation. * See the operation's documentation for the format of the * parameters. */ constructor: function Request(service, operation, params) { var endpoint = service.endpoint; var region = service.config.region; var customUserAgent = service.config.customUserAgent; // global endpoints sign as us-east-1 if (service.isGlobalEndpoint) region = 'us-east-1'; this.domain = domain && domain.active; this.service = service; this.operation = operation; this.params = params || {}; this.httpRequest = new AWS.HttpRequest(endpoint, region, customUserAgent); this.startTime = AWS.util.date.getDate(); this.response = new AWS.Response(this); this._asm = new AcceptorStateMachine(fsm.states, 'validate'); this._haltHandlersOnError = false; AWS.SequentialExecutor.call(this); this.emit = this.emitEvent; }, /** * @!group Sending a Request */ /** * @overload send(callback = null) * Sends the request object. * * @callback callback function(err, data) * If a callback is supplied, it is called when a response is returned * from the service. * @context [AWS.Request] the request object being sent. * @param err [Error] the error object returned from the request. * Set to `null` if the request is successful. * @param data [Object] the de-serialized data returned from * the request. Set to `null` if a request error occurs. * @example Sending a request with a callback * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); * request.send(function(err, data) { console.log(err, data); }); * @example Sending a request with no callback (using event handlers) * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); * request.on('complete', function(response) { ... }); // register a callback * request.send(); */ send: function send(callback) { if (callback) { this.on('complete', function (resp) { callback.call(resp, resp.error, resp.data); }); } this.runTo(); return this.response; }, /** * @!method promise() * Returns a 'thenable' promise. * * Two callbacks can be provided to the `then` method on the returned promise. * The first callback will be called if the promise is fulfilled, and the second * callback will be called if the promise is rejected. * @callback fulfilledCallback function(data) * Called if the promise is fulfilled. * @param data [Object] the de-serialized data returned from the request. * @callback rejectedCallback function(error) * Called if the promise is rejected. * @param error [Error] the error object returned from the request. * @return [Promise] A promise that represents the state of the request. * @example Sending a request using promises. * var request = s3.putObject({Bucket: 'bucket', Key: 'key'}); * var result = request.promise(); * result.then(function(data) { ... }, function(error) { ... }); */ /** * @api private */ build: function build(callback) { return this.runTo('send', callback); }, /** * @api private */ runTo: function runTo(state, done) { this._asm.runTo(state, done, this); return this; }, /** * Aborts a request, emitting the error and complete events. * * @!macro nobrowser * @example Aborting a request after sending * var params = { * Bucket: 'bucket', Key: 'key', * Body: new Buffer(1024 * 1024 * 5) // 5MB payload * }; * var request = s3.putObject(params); * request.send(function (err, data) { * if (err) console.log("Error:", err.code, err.message); * else console.log(data); * }); * * // abort request in 1 second * setTimeout(request.abort.bind(request), 1000); * * // prints "Error: RequestAbortedError Request aborted by user" * @return [AWS.Request] the same request object, for chaining. * @since v1.4.0 */ abort: function abort() { this.removeAllListeners('validateResponse'); this.removeAllListeners('extractError'); this.on('validateResponse', function addAbortedError(resp) { resp.error = AWS.util.error(new Error('Request aborted by user'), { code: 'RequestAbortedError', retryable: false }); }); if (this.httpRequest.stream) { // abort HTTP stream this.httpRequest.stream.abort(); if (this.httpRequest._abortCallback) { this.httpRequest._abortCallback(); } else { this.removeAllListeners('send'); // haven't sent yet, so let's not } } return this; }, /** * Iterates over each page of results given a pageable request, calling * the provided callback with each page of data. After all pages have been * retrieved, the callback is called with `null` data. * * @note This operation can generate multiple requests to a service. * @example Iterating over multiple pages of objects in an S3 bucket * var pages = 1; * s3.listObjects().eachPage(function(err, data) { * if (err) return; * console.log("Page", pages++); * console.log(data); * }); * @example Iterating over multiple pages with an asynchronous callback * s3.listObjects(params).eachPage(function(err, data, done) { * doSomethingAsyncAndOrExpensive(function() { * // The next page of results isn't fetched until done is called * done(); * }); * }); * @callback callback function(err, data, [doneCallback]) * Called with each page of resulting data from the request. If the * optional `doneCallback` is provided in the function, it must be called * when the callback is complete. * * @param err [Error] an error object, if an error occurred. * @param data [Object] a single page of response data. If there is no * more data, this object will be `null`. * @param doneCallback [Function] an optional done callback. If this * argument is defined in the function declaration, it should be called * when the next page is ready to be retrieved. This is useful for * controlling serial pagination across asynchronous operations. * @return [Boolean] if the callback returns `false`, pagination will * stop. * * @see AWS.Request.eachItem * @see AWS.Response.nextPage * @since v1.4.0 */ eachPage: function eachPage(callback) { // Make all callbacks async-ish callback = AWS.util.fn.makeAsync(callback, 3); function wrappedCallback(response) { callback.call(response, response.error, response.data, function (result) { if (result === false) return; if (response.hasNextPage()) { response.nextPage().on('complete', wrappedCallback).send(); } else { callback.call(response, null, null, AWS.util.fn.noop); } }); } this.on('complete', wrappedCallback).send(); }, /** * Enumerates over individual items of a request, paging the responses if * necessary. * * @api experimental * @since v1.4.0 */ eachItem: function eachItem(callback) { var self = this; function wrappedCallback(err, data) { if (err) return callback(err, null); if (data === null) return callback(null, null); var config = self.service.paginationConfig(self.operation); var resultKey = config.resultKey; if (Array.isArray(resultKey)) resultKey = resultKey[0]; var items = jmespath.search(data, resultKey); var continueIteration = true; AWS.util.arrayEach(items, function(item) { continueIteration = callback(null, item); if (continueIteration === false) { return AWS.util.abort; } }); return continueIteration; } this.eachPage(wrappedCallback); }, /** * @return [Boolean] whether the operation can return multiple pages of * response data. * @see AWS.Response.eachPage * @since v1.4.0 */ isPageable: function isPageable() { return this.service.paginationConfig(this.operation) ? true : false; }, /** * Converts the request object into a readable stream that * can be read from or piped into a writable stream. * * @note The data read from a readable stream contains only * the raw HTTP body contents. * @example Manually reading from a stream * request.createReadStream().on('data', function(data) { * console.log("Got data:", data.toString()); * }); * @example Piping a request body into a file * var out = fs.createWriteStream('/path/to/outfile.jpg'); * s3.service.getObject(params).createReadStream().pipe(out); * @return [Stream] the readable stream object that can be piped * or read from (by registering 'data' event listeners). * @!macro nobrowser */ createReadStream: function createReadStream() { var streams = AWS.util.stream; var req = this; var stream = null; if (AWS.HttpClient.streamsApiVersion === 2) { stream = new streams.PassThrough(); req.send(); } else { stream = new streams.Stream(); stream.readable = true; stream.sent = false; stream.on('newListener', function(event) { if (!stream.sent && event === 'data') { stream.sent = true; process.nextTick(function() { req.send(); }); } }); } this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) { if (statusCode < 300) { req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA); req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR); req.on('httpError', function streamHttpError(error) { resp.error = error; resp.error.retryable = false; }); var shouldCheckContentLength = false; var expectedLen; if (req.httpRequest.method !== 'HEAD') { expectedLen = parseInt(headers['content-length'], 10); } if (expectedLen !== undefined && !isNaN(expectedLen) && expectedLen >= 0) { shouldCheckContentLength = true; var receivedLen = 0; } var checkContentLengthAndEmit = function checkContentLengthAndEmit() { if (shouldCheckContentLength && receivedLen !== expectedLen) { stream.emit('error', AWS.util.error( new Error('Stream content length mismatch. Received ' + receivedLen + ' of ' + expectedLen + ' bytes.'), { code: 'StreamContentLengthMismatch' } )); } else if (AWS.HttpClient.streamsApiVersion === 2) { stream.end(); } else { stream.emit('end') } } var httpStream = resp.httpResponse.createUnbufferedStream(); if (AWS.HttpClient.streamsApiVersion === 2) { if (shouldCheckContentLength) { var lengthAccumulator = new streams.PassThrough(); lengthAccumulator._write = function(chunk) { if (chunk && chunk.length) { receivedLen += chunk.length; } return streams.PassThrough.prototype._write.apply(this, arguments); }; lengthAccumulator.on('end', checkContentLengthAndEmit); httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); } else { httpStream.pipe(stream); } } else { if (shouldCheckContentLength) { httpStream.on('data', function(arg) { if (arg && arg.length) { receivedLen += arg.length; } }); } httpStream.on('data', function(arg) { stream.emit('data', arg); }); httpStream.on('end', checkContentLengthAndEmit); } httpStream.on('error', function(err) { shouldCheckContentLength = false; stream.emit('error', err); }); } }); this.on('error', function(err) { stream.emit('error', err); }); return stream; }, /** * @param [Array,Response] args This should be the response object, * or an array of args to send to the event. * @api private */ emitEvent: function emit(eventName, args, done) { if (typeof args === 'function') { done = args; args = null; } if (!done) done = function() { }; if (!args) args = this.eventParameters(eventName, this.response); var origEmit = AWS.SequentialExecutor.prototype.emit; origEmit.call(this, eventName, args, function (err) { if (err) this.response.error = err; done.call(this, err); }); }, /** * @api private */ eventParameters: function eventParameters(eventName) { switch (eventName) { case 'restart': case 'validate': case 'sign': case 'build': case 'afterValidate': case 'afterBuild': return [this]; case 'error': return [this.response.error, this.response]; default: return [this.response]; } }, /** * @api private */ presign: function presign(expires, callback) { if (!callback && typeof expires === 'function') { callback = expires; expires = null; } return new AWS.Signers.Presign().sign(this.toGet(), expires, callback); }, /** * @api private */ isPresigned: function isPresigned() { return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, 'presigned-expires'); }, /** * @api private */ toUnauthenticated: function toUnauthenticated() { this.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS); this.removeListener('sign', AWS.EventListeners.Core.SIGN); return this; }, /** * @api private */ toGet: function toGet() { if (this.service.api.protocol === 'query' || this.service.api.protocol === 'ec2') { this.removeListener('build', this.buildAsGet); this.addListener('build', this.buildAsGet); } return this; }, /** * @api private */ buildAsGet: function buildAsGet(request) { request.httpRequest.method = 'GET'; request.httpRequest.path = request.service.endpoint.path + '?' + request.httpRequest.body; request.httpRequest.body = ''; // don't need these headers on a GET request delete request.httpRequest.headers['Content-Length']; delete request.httpRequest.headers['Content-Type']; }, /** * @api private */ haltHandlersOnError: function haltHandlersOnError() { this._haltHandlersOnError = true; } }); AWS.util.addPromisesToRequests(AWS.Request); AWS.util.mixin(AWS.Request, AWS.SequentialExecutor); }).call(this,require('_process')) },{"./core":196,"./state_machine":252,"_process":432,"jmespath":314}],229:[function(require,module,exports){ /** * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You * may not use this file except in compliance with the License. A copy of * the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF * ANY KIND, either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ var AWS = require('./core'); var inherit = AWS.util.inherit; var jmespath = require('jmespath'); /** * @api private */ function CHECK_ACCEPTORS(resp) { var waiter = resp.request._waiter; var acceptors = waiter.config.acceptors; var acceptorMatched = false; var state = 'retry'; acceptors.forEach(function(acceptor) { if (!acceptorMatched) { var matcher = waiter.matchers[acceptor.matcher]; if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { acceptorMatched = true; state = acceptor.state; } } }); if (!acceptorMatched && resp.error) state = 'failure'; if (state === 'success') { waiter.setSuccess(resp); } else { waiter.setError(resp, state === 'retry'); } } /** * @api private */ AWS.ResourceWaiter = inherit({ /** * Waits for a given state on a service object * @param service [Service] the service object to wait on * @param state [String] the state (defined in waiter configuration) to wait * for. * @example Create a waiter for running EC2 instances * var ec2 = new AWS.EC2; * var waiter = new AWS.ResourceWaiter(ec2, 'instanceRunning'); */ constructor: function constructor(service, state) { this.service = service; this.state = state; this.loadWaiterConfig(this.state); }, service: null, state: null, config: null, matchers: { path: function(resp, expected, argument) { var result = jmespath.search(resp.data, argument); return jmespath.strictDeepEqual(result,expected); }, pathAll: function(resp, expected, argument) { var results = jmespath.search(resp.data, argument); if (!Array.isArray(results)) results = [results]; var numResults = results.length; if (!numResults) return false; for (var ind = 0 ; ind < numResults; ind++) { if (!jmespath.strictDeepEqual(results[ind], expected)) { return false; } } return true; }, pathAny: function(resp, expected, argument) { var results = jmespath.search(resp.data, argument); if (!Array.isArray(results)) results = [results]; var numResults = results.length; for (var ind = 0 ; ind < numResults; ind++) { if (jmespath.strictDeepEqual(results[ind], expected)) { return true; } } return false; }, status: function(resp, expected) { var statusCode = resp.httpResponse.statusCode; return (typeof statusCode === 'number') && (statusCode === expected); }, error: function(resp, expected) { if (typeof expected === 'string' && resp.error) { return expected === resp.error.code; } // if expected is not string, can be boolean indicating presence of error return expected === !!resp.error; } }, listeners: new AWS.SequentialExecutor().addNamedListeners(function(add) { add('RETRY_CHECK', 'retry', function(resp) { var waiter = resp.request._waiter; if (resp.error && resp.error.code === 'ResourceNotReady') { resp.error.retryDelay = (waiter.config.delay || 0) * 1000; } }); add('CHECK_OUTPUT', 'extractData', CHECK_ACCEPTORS); add('CHECK_ERROR', 'extractError', CHECK_ACCEPTORS); }), /** * @return [AWS.Request] */ wait: function wait(params, callback) { if (typeof params === 'function') { callback = params; params = undefined; } var request = this.service.makeRequest(this.config.operation, params); request._waiter = this; request.response.maxRetries = this.config.maxAttempts; request.addListeners(this.listeners); if (callback) request.send(callback); return request; }, setSuccess: function setSuccess(resp) { resp.error = null; resp.data = resp.data || {}; resp.request.removeAllListeners('extractData'); }, setError: function setError(resp, retryable) { resp.data = null; resp.error = AWS.util.error(resp.error || new Error(), { code: 'ResourceNotReady', message: 'Resource is not in the state ' + this.state, retryable: retryable }); }, /** * Loads waiter configuration from API configuration * * @api private */ loadWaiterConfig: function loadWaiterConfig(state) { if (!this.service.api.waiters[state]) { throw new AWS.util.error(new Error(), { code: 'StateNotFoundError', message: 'State ' + state + ' not found.' }); } this.config = this.service.api.waiters[state]; } }); },{"./core":196,"jmespath":314}],230:[function(require,module,exports){ var AWS = require('./core'); var inherit = AWS.util.inherit; var jmespath = require('jmespath'); /** * This class encapsulates the response information * from a service request operation sent through {AWS.Request}. * The response object has two main properties for getting information * back from a request: * * ## The `data` property * * The `response.data` property contains the serialized object data * retrieved from the service request. For instance, for an * Amazon DynamoDB `listTables` method call, the response data might * look like: * * ``` * > resp.data * { TableNames: * [ 'table1', 'table2', ... ] } * ``` * * The `data` property can be null if an error occurs (see below). * * ## The `error` property * * In the event of a service error (or transfer error), the * `response.error` property will be filled with the given * error data in the form: * * ``` * { code: 'SHORT_UNIQUE_ERROR_CODE', * message: 'Some human readable error message' } * ``` * * In the case of an error, the `data` property will be `null`. * Note that if you handle events that can be in a failure state, * you should always check whether `response.error` is set * before attempting to access the `response.data` property. * * @!attribute data * @readonly * @!group Data Properties * @note Inside of a {AWS.Request~httpData} event, this * property contains a single raw packet instead of the * full de-serialized service response. * @return [Object] the de-serialized response data * from the service. * * @!attribute error * An structure containing information about a service * or networking error. * @readonly * @!group Data Properties * @note This attribute is only filled if a service or * networking error occurs. * @return [Error] * * code [String] a unique short code representing the * error that was emitted. * * message [String] a longer human readable error message * * retryable [Boolean] whether the error message is * retryable. * * statusCode [Numeric] in the case of a request that reached the service, * this value contains the response status code. * * time [Date] the date time object when the error occurred. * * hostname [String] set when a networking error occurs to easily * identify the endpoint of the request. * * region [String] set when a networking error occurs to easily * identify the region of the request. * * @!attribute requestId * @readonly * @!group Data Properties * @return [String] the unique request ID associated with the response. * Log this value when debugging requests for AWS support. * * @!attribute retryCount * @readonly * @!group Operation Properties * @return [Integer] the number of retries that were * attempted before the request was completed. * * @!attribute redirectCount * @readonly * @!group Operation Properties * @return [Integer] the number of redirects that were * followed before the request was completed. * * @!attribute httpResponse * @readonly * @!group HTTP Properties * @return [AWS.HttpResponse] the raw HTTP response object * containing the response headers and body information * from the server. * * @see AWS.Request */ AWS.Response = inherit({ /** * @api private */ constructor: function Response(request) { this.request = request; this.data = null; this.error = null; this.retryCount = 0; this.redirectCount = 0; this.httpResponse = new AWS.HttpResponse(); if (request) { this.maxRetries = request.service.numRetries(); this.maxRedirects = request.service.config.maxRedirects; } }, /** * Creates a new request for the next page of response data, calling the * callback with the page data if a callback is provided. * * @callback callback function(err, data) * Called when a page of data is returned from the next request. * * @param err [Error] an error object, if an error occurred in the request * @param data [Object] the next page of data, or null, if there are no * more pages left. * @return [AWS.Request] the request object for the next page of data * @return [null] if no callback is provided and there are no pages left * to retrieve. * @since v1.4.0 */ nextPage: function nextPage(callback) { var config; var service = this.request.service; var operation = this.request.operation; try { config = service.paginationConfig(operation, true); } catch (e) { this.error = e; } if (!this.hasNextPage()) { if (callback) callback(this.error, null); else if (this.error) throw this.error; return null; } var params = AWS.util.copy(this.request.params); if (!this.nextPageTokens) { return callback ? callback(null, null) : null; } else { var inputTokens = config.inputToken; if (typeof inputTokens === 'string') inputTokens = [inputTokens]; for (var i = 0; i < inputTokens.length; i++) { params[inputTokens[i]] = this.nextPageTokens[i]; } return service.makeRequest(this.request.operation, params, callback); } }, /** * @return [Boolean] whether more pages of data can be returned by further * requests * @since v1.4.0 */ hasNextPage: function hasNextPage() { this.cacheNextPageTokens(); if (this.nextPageTokens) return true; if (this.nextPageTokens === undefined) return undefined; else return false; }, /** * @api private */ cacheNextPageTokens: function cacheNextPageTokens() { if (Object.prototype.hasOwnProperty.call(this, 'nextPageTokens')) return this.nextPageTokens; this.nextPageTokens = undefined; var config = this.request.service.paginationConfig(this.request.operation); if (!config) return this.nextPageTokens; this.nextPageTokens = null; if (config.moreResults) { if (!jmespath.search(this.data, config.moreResults)) { return this.nextPageTokens; } } var exprs = config.outputToken; if (typeof exprs === 'string') exprs = [exprs]; AWS.util.arrayEach.call(this, exprs, function (expr) { var output = jmespath.search(this.data, expr); if (output) { this.nextPageTokens = this.nextPageTokens || []; this.nextPageTokens.push(output); } }); return this.nextPageTokens; } }); },{"./core":196,"jmespath":314}],231:[function(require,module,exports){ var AWS = require('../core'); var byteLength = AWS.util.string.byteLength; var Buffer = AWS.util.Buffer; /** * The managed uploader allows for easy and efficient uploading of buffers, * blobs, or streams, using a configurable amount of concurrency to perform * multipart uploads where possible. This abstraction also enables uploading * streams of unknown size due to the use of multipart uploads. * * To construct a managed upload object, see the {constructor} function. * * ## Tracking upload progress * * The managed upload object can also track progress by attaching an * 'httpUploadProgress' listener to the upload manager. This event is similar * to {AWS.Request~httpUploadProgress} but groups all concurrent upload progress * into a single event. See {AWS.S3.ManagedUpload~httpUploadProgress} for more * information. * * ## Handling Multipart Cleanup * * By default, this class will automatically clean up any multipart uploads * when an individual part upload fails. This behavior can be disabled in order * to manually handle failures by setting the `leavePartsOnError` configuration * option to `true` when initializing the upload object. * * @!event httpUploadProgress(progress) * Triggered when the uploader has uploaded more data. * @note The `total` property may not be set if the stream being uploaded has * not yet finished chunking. In this case the `total` will be undefined * until the total stream size is known. * @note This event will not be emitted in Node.js 0.8.x. * @param progress [map] An object containing the `loaded` and `total` bytes * of the request and the `key` of the S3 object. Note that `total` may be undefined until the payload * size is known. * @context (see AWS.Request~send) */ AWS.S3.ManagedUpload = AWS.util.inherit({ /** * Creates a managed upload object with a set of configuration options. * * @note A "Body" parameter is required to be set prior to calling {send}. * @option options params [map] a map of parameters to pass to the upload * requests. The "Body" parameter is required to be specified either on * the service or in the params option. * @note ContentMD5 should not be provided when using the managed upload object. * Instead, setting "computeChecksums" to true will enable automatic ContentMD5 generation * by the managed upload object. * @option options queueSize [Number] (4) the size of the concurrent queue * manager to upload parts in parallel. Set to 1 for synchronous uploading * of parts. Note that the uploader will buffer at most queueSize * partSize * bytes into memory at any given time. * @option options partSize [Number] (5mb) the size in bytes for each * individual part to be uploaded. Adjust the part size to ensure the number * of parts does not exceed {maxTotalParts}. See {minPartSize} for the * minimum allowed part size. * @option options leavePartsOnError [Boolean] (false) whether to abort the * multipart upload if an error occurs. Set to true if you want to handle * failures manually. * @option options service [AWS.S3] an optional S3 service object to use for * requests. This object might have bound parameters used by the uploader. * @example Creating a default uploader for a stream object * var upload = new AWS.S3.ManagedUpload({ * params: {Bucket: 'bucket', Key: 'key', Body: stream} * }); * @example Creating an uploader with concurrency of 1 and partSize of 10mb * var upload = new AWS.S3.ManagedUpload({ * partSize: 10 * 1024 * 1024, queueSize: 1, * params: {Bucket: 'bucket', Key: 'key', Body: stream} * }); * @see send */ constructor: function ManagedUpload(options) { var self = this; AWS.SequentialExecutor.call(self); self.body = null; self.sliceFn = null; self.callback = null; self.parts = {}; self.completeInfo = []; self.fillQueue = function() { self.callback(new Error('Unsupported body payload ' + typeof self.body)); }; self.configure(options); }, /** * @api private */ configure: function configure(options) { options = options || {}; this.partSize = this.minPartSize; if (options.queueSize) this.queueSize = options.queueSize; if (options.partSize) this.partSize = options.partSize; if (options.leavePartsOnError) this.leavePartsOnError = true; if (this.partSize < this.minPartSize) { throw new Error('partSize must be greater than ' + this.minPartSize); } this.service = options.service; this.bindServiceObject(options.params); this.validateBody(); this.adjustTotalBytes(); }, /** * @api private */ leavePartsOnError: false, /** * @api private */ queueSize: 4, /** * @api private */ partSize: null, /** * @readonly * @return [Number] the minimum number of bytes for an individual part * upload. */ minPartSize: 1024 * 1024 * 5, /** * @readonly * @return [Number] the maximum allowed number of parts in a multipart upload. */ maxTotalParts: 10000, /** * Initiates the managed upload for the payload. * * @callback callback function(err, data) * @param err [Error] an error or null if no error occurred. * @param data [map] The response data from the successful upload: * * `Location` (String) the URL of the uploaded object * * `ETag` (String) the ETag of the uploaded object * * `Bucket` (String) the bucket to which the object was uploaded * * `Key` (String) the key to which the object was uploaded * @example Sending a managed upload object * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; * var upload = new AWS.S3.ManagedUpload({params: params}); * upload.send(function(err, data) { * console.log(err, data); * }); */ send: function(callback) { var self = this; self.failed = false; self.callback = callback || function(err) { if (err) throw err; }; var runFill = true; if (self.sliceFn) { self.fillQueue = self.fillBuffer; } else if (AWS.util.isNode()) { var Stream = AWS.util.stream.Stream; if (self.body instanceof Stream) { runFill = false; self.fillQueue = self.fillStream; self.partBuffers = []; self.body. on('readable', function() { self.fillQueue(); }). on('end', function() { self.isDoneChunking = true; self.numParts = self.totalPartNumbers; self.fillQueue.call(self); }); } } if (runFill) self.fillQueue.call(self); }, /** * Aborts a managed upload, including all concurrent upload requests. * @note By default, calling this function will cleanup a multipart upload * if one was created. To leave the multipart upload around after aborting * a request, configure `leavePartsOnError` to `true` in the {constructor}. * @note Calling {abort} in the browser environment will not abort any requests * that are already in flight. If a multipart upload was created, any parts * not yet uploaded will not be sent, and the multipart upload will be cleaned up. * @example Aborting an upload * var params = { * Bucket: 'bucket', Key: 'key', * Body: new Buffer(1024 * 1024 * 25) // 25MB payload * }; * var upload = s3.upload(params); * upload.send(function (err, data) { * if (err) console.log("Error:", err.code, err.message); * else console.log(data); * }); * * // abort request in 1 second * setTimeout(upload.abort.bind(upload), 1000); */ abort: function() { this.cleanup(AWS.util.error(new Error('Request aborted by user'), { code: 'RequestAbortedError', retryable: false })); }, /** * @api private */ validateBody: function validateBody() { var self = this; self.body = self.service.config.params.Body; if (!self.body) throw new Error('params.Body is required'); if (typeof self.body === 'string') { self.body = new AWS.util.Buffer(self.body); } self.sliceFn = AWS.util.arraySliceFn(self.body); }, /** * @api private */ bindServiceObject: function bindServiceObject(params) { params = params || {}; var self = this; // bind parameters to new service object if (!self.service) { self.service = new AWS.S3({params: params}); } else { var config = AWS.util.copy(self.service.config); self.service = new self.service.constructor.__super__(config); self.service.config.params = AWS.util.merge(self.service.config.params || {}, params); } }, /** * @api private */ adjustTotalBytes: function adjustTotalBytes() { var self = this; try { // try to get totalBytes self.totalBytes = byteLength(self.body); } catch (e) { } // try to adjust partSize if we know payload length if (self.totalBytes) { var newPartSize = Math.ceil(self.totalBytes / self.maxTotalParts); if (newPartSize > self.partSize) self.partSize = newPartSize; } else { self.totalBytes = undefined; } }, /** * @api private */ isDoneChunking: false, /** * @api private */ partPos: 0, /** * @api private */ totalChunkedBytes: 0, /** * @api private */ totalUploadedBytes: 0, /** * @api private */ totalBytes: undefined, /** * @api private */ numParts: 0, /** * @api private */ totalPartNumbers: 0, /** * @api private */ activeParts: 0, /** * @api private */ doneParts: 0, /** * @api private */ parts: null, /** * @api private */ completeInfo: null, /** * @api private */ failed: false, /** * @api private */ multipartReq: null, /** * @api private */ partBuffers: null, /** * @api private */ partBufferLength: 0, /** * @api private */ fillBuffer: function fillBuffer() { var self = this; var bodyLen = byteLength(self.body); if (bodyLen === 0) { self.isDoneChunking = true; self.numParts = 1; self.nextChunk(self.body); return; } while (self.activeParts < self.queueSize && self.partPos < bodyLen) { var endPos = Math.min(self.partPos + self.partSize, bodyLen); var buf = self.sliceFn.call(self.body, self.partPos, endPos); self.partPos += self.partSize; if (byteLength(buf) < self.partSize || self.partPos === bodyLen) { self.isDoneChunking = true; self.numParts = self.totalPartNumbers + 1; } self.nextChunk(buf); } }, /** * @api private */ fillStream: function fillStream() { var self = this; if (self.activeParts >= self.queueSize) return; var buf = self.body.read(self.partSize - self.partBufferLength) || self.body.read(); if (buf) { self.partBuffers.push(buf); self.partBufferLength += buf.length; self.totalChunkedBytes += buf.length; } if (self.partBufferLength >= self.partSize) { // if we have single buffer we avoid copyfull concat var pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : Buffer.concat(self.partBuffers); self.partBuffers = []; self.partBufferLength = 0; // if we have more than partSize, push the rest back on the queue if (pbuf.length > self.partSize) { var rest = pbuf.slice(self.partSize); self.partBuffers.push(rest); self.partBufferLength += rest.length; pbuf = pbuf.slice(0, self.partSize); } self.nextChunk(pbuf); } if (self.isDoneChunking && !self.isDoneSending) { // if we have single buffer we avoid copyfull concat pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : Buffer.concat(self.partBuffers); self.partBuffers = []; self.partBufferLength = 0; self.totalBytes = self.totalChunkedBytes; self.isDoneSending = true; if (self.numParts === 0 || pbuf.length > 0) { self.numParts++; self.nextChunk(pbuf); } } self.body.read(0); }, /** * @api private */ nextChunk: function nextChunk(chunk) { var self = this; if (self.failed) return null; var partNumber = ++self.totalPartNumbers; if (self.isDoneChunking && partNumber === 1) { var req = self.service.putObject({Body: chunk}); req._managedUpload = self; req.on('httpUploadProgress', self.progress).send(self.finishSinglePart); return null; } else if (self.service.config.params.ContentMD5) { var err = AWS.util.error(new Error('The Content-MD5 you specified is invalid for multi-part uploads.'), { code: 'InvalidDigest', retryable: false }); self.cleanup(err); return null; } if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { return null; // Already uploaded this part. } self.activeParts++; if (!self.service.config.params.UploadId) { if (!self.multipartReq) { // create multipart self.multipartReq = self.service.createMultipartUpload(); self.multipartReq.on('success', function(resp) { self.service.config.params.UploadId = resp.data.UploadId; self.multipartReq = null; }); self.queueChunks(chunk, partNumber); self.multipartReq.on('error', function(err) { self.cleanup(err); }); self.multipartReq.send(); } else { self.queueChunks(chunk, partNumber); } } else { // multipart is created, just send self.uploadPart(chunk, partNumber); } }, /** * @api private */ uploadPart: function uploadPart(chunk, partNumber) { var self = this; var partParams = { Body: chunk, ContentLength: AWS.util.string.byteLength(chunk), PartNumber: partNumber }; var partInfo = {ETag: null, PartNumber: partNumber}; self.completeInfo[partNumber] = partInfo; var req = self.service.uploadPart(partParams); self.parts[partNumber] = req; req._lastUploadedBytes = 0; req._managedUpload = self; req.on('httpUploadProgress', self.progress); req.send(function(err, data) { delete self.parts[partParams.PartNumber]; self.activeParts--; if (!err && (!data || !data.ETag)) { var message = 'No access to ETag property on response.'; if (AWS.util.isBrowser()) { message += ' Check CORS configuration to expose ETag header.'; } err = AWS.util.error(new Error(message), { code: 'ETagMissing', retryable: false }); } if (err) return self.cleanup(err); partInfo.ETag = data.ETag; self.doneParts++; if (self.isDoneChunking && self.doneParts === self.numParts) { self.finishMultiPart(); } else { self.fillQueue.call(self); } }); }, /** * @api private */ queueChunks: function queueChunks(chunk, partNumber) { var self = this; self.multipartReq.on('success', function() { self.uploadPart(chunk, partNumber); }); }, /** * @api private */ cleanup: function cleanup(err) { var self = this; if (self.failed) return; // clean up stream if (typeof self.body.removeAllListeners === 'function' && typeof self.body.resume === 'function') { self.body.removeAllListeners('readable'); self.body.removeAllListeners('end'); self.body.resume(); } if (self.service.config.params.UploadId && !self.leavePartsOnError) { self.service.abortMultipartUpload().send(); } AWS.util.each(self.parts, function(partNumber, part) { part.removeAllListeners('complete'); part.abort(); }); self.activeParts = 0; self.partPos = 0; self.numParts = 0; self.totalPartNumbers = 0; self.parts = {}; self.failed = true; self.callback(err); }, /** * @api private */ finishMultiPart: function finishMultiPart() { var self = this; var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; self.service.completeMultipartUpload(completeParams, function(err, data) { if (err) return self.cleanup(err); else self.callback(err, data); }); }, /** * @api private */ finishSinglePart: function finishSinglePart(err, data) { var upload = this.request._managedUpload; var httpReq = this.request.httpRequest; var endpoint = httpReq.endpoint; if (err) return upload.callback(err); data.Location = [endpoint.protocol, '//', endpoint.host, httpReq.path].join(''); data.key = this.request.params.Key; // will stay undocumented data.Key = this.request.params.Key; data.Bucket = this.request.params.Bucket; upload.callback(err, data); }, /** * @api private */ progress: function progress(info) { var upload = this._managedUpload; if (this.operation === 'putObject') { info.part = 1; info.key = this.params.Key; } else { upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; this._lastUploadedBytes = info.loaded; info = { loaded: upload.totalUploadedBytes, total: upload.totalBytes, part: this.params.PartNumber, key: this.params.Key }; } upload.emit('httpUploadProgress', [info]); } }); AWS.util.mixin(AWS.S3.ManagedUpload, AWS.SequentialExecutor); module.exports = AWS.S3.ManagedUpload; },{"../core":196}],232:[function(require,module,exports){ var AWS = require('./core'); /** * @api private * @!method on(eventName, callback) * Registers an event listener callback for the event given by `eventName`. * Parameters passed to the callback function depend on the individual event * being triggered. See the event documentation for those parameters. * * @param eventName [String] the event name to register the listener for * @param callback [Function] the listener callback function * @return [AWS.SequentialExecutor] the same object for chaining */ AWS.SequentialExecutor = AWS.util.inherit({ constructor: function SequentialExecutor() { this._events = {}; }, /** * @api private */ listeners: function listeners(eventName) { return this._events[eventName] ? this._events[eventName].slice(0) : []; }, on: function on(eventName, listener) { if (this._events[eventName]) { this._events[eventName].push(listener); } else { this._events[eventName] = [listener]; } return this; }, /** * @api private */ onAsync: function onAsync(eventName, listener) { listener._isAsync = true; return this.on(eventName, listener); }, removeListener: function removeListener(eventName, listener) { var listeners = this._events[eventName]; if (listeners) { var length = listeners.length; var position = -1; for (var i = 0; i < length; ++i) { if (listeners[i] === listener) { position = i; } } if (position > -1) { listeners.splice(position, 1); } } return this; }, removeAllListeners: function removeAllListeners(eventName) { if (eventName) { delete this._events[eventName]; } else { this._events = {}; } return this; }, /** * @api private */ emit: function emit(eventName, eventArgs, doneCallback) { if (!doneCallback) doneCallback = function() { }; var listeners = this.listeners(eventName); var count = listeners.length; this.callListeners(listeners, eventArgs, doneCallback); return count > 0; }, /** * @api private */ callListeners: function callListeners(listeners, args, doneCallback, prevError) { var self = this; var error = prevError || null; function callNextListener(err) { if (err) { error = AWS.util.error(error || new Error(), err); if (self._haltHandlersOnError) { return doneCallback.call(self, error); } } self.callListeners(listeners, args, doneCallback, error); } while (listeners.length > 0) { var listener = listeners.shift(); if (listener._isAsync) { // asynchronous listener listener.apply(self, args.concat([callNextListener])); return; // stop here, callNextListener will continue } else { // synchronous listener try { listener.apply(self, args); } catch (err) { error = AWS.util.error(error || new Error(), err); } if (error && self._haltHandlersOnError) { doneCallback.call(self, error); return; } } } doneCallback.call(self, error); }, /** * Adds or copies a set of listeners from another list of * listeners or SequentialExecutor object. * * @param listeners [map>, AWS.SequentialExecutor] * a list of events and callbacks, or an event emitter object * containing listeners to add to this emitter object. * @return [AWS.SequentialExecutor] the emitter object, for chaining. * @example Adding listeners from a map of listeners * emitter.addListeners({ * event1: [function() { ... }, function() { ... }], * event2: [function() { ... }] * }); * emitter.emit('event1'); // emitter has event1 * emitter.emit('event2'); // emitter has event2 * @example Adding listeners from another emitter object * var emitter1 = new AWS.SequentialExecutor(); * emitter1.on('event1', function() { ... }); * emitter1.on('event2', function() { ... }); * var emitter2 = new AWS.SequentialExecutor(); * emitter2.addListeners(emitter1); * emitter2.emit('event1'); // emitter2 has event1 * emitter2.emit('event2'); // emitter2 has event2 */ addListeners: function addListeners(listeners) { var self = this; // extract listeners if parameter is an SequentialExecutor object if (listeners._events) listeners = listeners._events; AWS.util.each(listeners, function(event, callbacks) { if (typeof callbacks === 'function') callbacks = [callbacks]; AWS.util.arrayEach(callbacks, function(callback) { self.on(event, callback); }); }); return self; }, /** * Registers an event with {on} and saves the callback handle function * as a property on the emitter object using a given `name`. * * @param name [String] the property name to set on this object containing * the callback function handle so that the listener can be removed in * the future. * @param (see on) * @return (see on) * @example Adding a named listener DATA_CALLBACK * var listener = function() { doSomething(); }; * emitter.addNamedListener('DATA_CALLBACK', 'data', listener); * * // the following prints: true * console.log(emitter.DATA_CALLBACK == listener); */ addNamedListener: function addNamedListener(name, eventName, callback) { this[name] = callback; this.addListener(eventName, callback); return this; }, /** * @api private */ addNamedAsyncListener: function addNamedAsyncListener(name, eventName, callback) { callback._isAsync = true; return this.addNamedListener(name, eventName, callback); }, /** * Helper method to add a set of named listeners using * {addNamedListener}. The callback contains a parameter * with a handle to the `addNamedListener` method. * * @callback callback function(add) * The callback function is called immediately in order to provide * the `add` function to the block. This simplifies the addition of * a large group of named listeners. * @param add [Function] the {addNamedListener} function to call * when registering listeners. * @example Adding a set of named listeners * emitter.addNamedListeners(function(add) { * add('DATA_CALLBACK', 'data', function() { ... }); * add('OTHER', 'otherEvent', function() { ... }); * add('LAST', 'lastEvent', function() { ... }); * }); * * // these properties are now set: * emitter.DATA_CALLBACK; * emitter.OTHER; * emitter.LAST; */ addNamedListeners: function addNamedListeners(callback) { var self = this; callback( function() { self.addNamedListener.apply(self, arguments); }, function() { self.addNamedAsyncListener.apply(self, arguments); } ); return this; } }); /** * {on} is the prefered method. * @api private */ AWS.SequentialExecutor.prototype.addListener = AWS.SequentialExecutor.prototype.on; module.exports = AWS.SequentialExecutor; },{"./core":196}],233:[function(require,module,exports){ var AWS = require('./core'); var Api = require('./model/api'); var regionConfig = require('./region_config'); var inherit = AWS.util.inherit; var clientCount = 0; /** * The service class representing an AWS service. * * @abstract * * @!attribute apiVersions * @return [Array] the list of API versions supported by this service. * @readonly */ AWS.Service = inherit({ /** * Create a new service object with a configuration object * * @param config [map] a map of configuration options */ constructor: function Service(config) { if (!this.loadServiceClass) { throw AWS.util.error(new Error(), 'Service must be constructed with `new\' operator'); } var ServiceClass = this.loadServiceClass(config || {}); if (ServiceClass) { var originalConfig = AWS.util.copy(config); var svc = new ServiceClass(config); Object.defineProperty(svc, '_originalConfig', { get: function() { return originalConfig; }, enumerable: false, configurable: true }); svc._clientId = ++clientCount; return svc; } this.initialize(config); }, /** * @api private */ initialize: function initialize(config) { var svcConfig = AWS.config[this.serviceIdentifier]; this.config = new AWS.Config(AWS.config); if (svcConfig) this.config.update(svcConfig, true); if (config) this.config.update(config, true); this.validateService(); if (!this.config.endpoint) regionConfig(this); this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); this.setEndpoint(this.config.endpoint); }, /** * @api private */ validateService: function validateService() { }, /** * @api private */ loadServiceClass: function loadServiceClass(serviceConfig) { var config = serviceConfig; if (!AWS.util.isEmpty(this.api)) { return null; } else if (config.apiConfig) { return AWS.Service.defineServiceApi(this.constructor, config.apiConfig); } else if (!this.constructor.services) { return null; } else { config = new AWS.Config(AWS.config); config.update(serviceConfig, true); var version = config.apiVersions[this.constructor.serviceIdentifier]; version = version || config.apiVersion; return this.getLatestServiceClass(version); } }, /** * @api private */ getLatestServiceClass: function getLatestServiceClass(version) { version = this.getLatestServiceVersion(version); if (this.constructor.services[version] === null) { AWS.Service.defineServiceApi(this.constructor, version); } return this.constructor.services[version]; }, /** * @api private */ getLatestServiceVersion: function getLatestServiceVersion(version) { if (!this.constructor.services || this.constructor.services.length === 0) { throw new Error('No services defined on ' + this.constructor.serviceIdentifier); } if (!version) { version = 'latest'; } else if (AWS.util.isType(version, Date)) { version = AWS.util.date.iso8601(version).split('T')[0]; } if (Object.hasOwnProperty(this.constructor.services, version)) { return version; } var keys = Object.keys(this.constructor.services).sort(); var selectedVersion = null; for (var i = keys.length - 1; i >= 0; i--) { // versions that end in "*" are not available on disk and can be // skipped, so do not choose these as selectedVersions if (keys[i][keys[i].length - 1] !== '*') { selectedVersion = keys[i]; } if (keys[i].substr(0, 10) <= version) { return selectedVersion; } } throw new Error('Could not find ' + this.constructor.serviceIdentifier + ' API to satisfy version constraint `' + version + '\''); }, /** * @api private */ api: {}, /** * @api private */ defaultRetryCount: 3, /** * Calls an operation on a service with the given input parameters. * * @param operation [String] the name of the operation to call on the service. * @param params [map] a map of input options for the operation * @callback callback function(err, data) * If a callback is supplied, it is called when a response is returned * from the service. * @param err [Error] the error object returned from the request. * Set to `null` if the request is successful. * @param data [Object] the de-serialized data returned from * the request. Set to `null` if a request error occurs. */ makeRequest: function makeRequest(operation, params, callback) { if (typeof params === 'function') { callback = params; params = null; } params = params || {}; if (this.config.params) { // copy only toplevel bound params var rules = this.api.operations[operation]; if (rules) { params = AWS.util.copy(params); AWS.util.each(this.config.params, function(key, value) { if (rules.input.members[key]) { if (params[key] === undefined || params[key] === null) { params[key] = value; } } }); } } var request = new AWS.Request(this, operation, params); this.addAllRequestListeners(request); if (callback) request.send(callback); return request; }, /** * Calls an operation on a service with the given input parameters, without * any authentication data. This method is useful for "public" API operations. * * @param operation [String] the name of the operation to call on the service. * @param params [map] a map of input options for the operation * @callback callback function(err, data) * If a callback is supplied, it is called when a response is returned * from the service. * @param err [Error] the error object returned from the request. * Set to `null` if the request is successful. * @param data [Object] the de-serialized data returned from * the request. Set to `null` if a request error occurs. */ makeUnauthenticatedRequest: function makeUnauthenticatedRequest(operation, params, callback) { if (typeof params === 'function') { callback = params; params = {}; } var request = this.makeRequest(operation, params).toUnauthenticated(); return callback ? request.send(callback) : request; }, /** * Waits for a given state * * @param state [String] the state on the service to wait for * @param params [map] a map of parameters to pass with each request * @callback callback function(err, data) * If a callback is supplied, it is called when a response is returned * from the service. * @param err [Error] the error object returned from the request. * Set to `null` if the request is successful. * @param data [Object] the de-serialized data returned from * the request. Set to `null` if a request error occurs. */ waitFor: function waitFor(state, params, callback) { var waiter = new AWS.ResourceWaiter(this, state); return waiter.wait(params, callback); }, /** * @api private */ addAllRequestListeners: function addAllRequestListeners(request) { var list = [AWS.events, AWS.EventListeners.Core, this.serviceInterface(), AWS.EventListeners.CorePost]; for (var i = 0; i < list.length; i++) { if (list[i]) request.addListeners(list[i]); } // disable parameter validation if (!this.config.paramValidation) { request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); } if (this.config.logger) { // add logging events request.addListeners(AWS.EventListeners.Logger); } this.setupRequestListeners(request); }, /** * Override this method to setup any custom request listeners for each * new request to the service. * * @abstract */ setupRequestListeners: function setupRequestListeners() { }, /** * Gets the signer class for a given request * @api private */ getSignerClass: function getSignerClass() { var version; if (this.config.signatureVersion) { version = this.config.signatureVersion; } else { version = this.api.signatureVersion; } return AWS.Signers.RequestSigner.getVersion(version); }, /** * @api private */ serviceInterface: function serviceInterface() { switch (this.api.protocol) { case 'ec2': return AWS.EventListeners.Query; case 'query': return AWS.EventListeners.Query; case 'json': return AWS.EventListeners.Json; case 'rest-json': return AWS.EventListeners.RestJson; case 'rest-xml': return AWS.EventListeners.RestXml; } if (this.api.protocol) { throw new Error('Invalid service `protocol\' ' + this.api.protocol + ' in API config'); } }, /** * @api private */ successfulResponse: function successfulResponse(resp) { return resp.httpResponse.statusCode < 300; }, /** * How many times a failed request should be retried before giving up. * the defaultRetryCount can be overriden by service classes. * * @api private */ numRetries: function numRetries() { if (this.config.maxRetries !== undefined) { return this.config.maxRetries; } else { return this.defaultRetryCount; } }, /** * @api private */ retryDelays: function retryDelays(retryCount) { return AWS.util.calculateRetryDelay(retryCount, this.config.retryDelayOptions); }, /** * @api private */ retryableError: function retryableError(error) { if (this.networkingError(error)) return true; if (this.expiredCredentialsError(error)) return true; if (this.throttledError(error)) return true; if (error.statusCode >= 500) return true; return false; }, /** * @api private */ networkingError: function networkingError(error) { return error.code === 'NetworkingError'; }, /** * @api private */ expiredCredentialsError: function expiredCredentialsError(error) { // TODO : this only handles *one* of the expired credential codes return (error.code === 'ExpiredTokenException'); }, /** * @api private */ clockSkewError: function clockSkewError(error) { switch (error.code) { case 'RequestTimeTooSkewed': case 'RequestExpired': case 'InvalidSignatureException': case 'SignatureDoesNotMatch': case 'AuthFailure': case 'RequestInTheFuture': return true; default: return false; } }, /** * @api private */ throttledError: function throttledError(error) { // this logic varies between services switch (error.code) { case 'ProvisionedThroughputExceededException': case 'Throttling': case 'ThrottlingException': case 'RequestLimitExceeded': case 'RequestThrottled': return true; default: return false; } }, /** * @api private */ endpointFromTemplate: function endpointFromTemplate(endpoint) { if (typeof endpoint !== 'string') return endpoint; var e = endpoint; e = e.replace(/\{service\}/g, this.api.endpointPrefix); e = e.replace(/\{region\}/g, this.config.region); e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http'); return e; }, /** * @api private */ setEndpoint: function setEndpoint(endpoint) { this.endpoint = new AWS.Endpoint(endpoint, this.config); }, /** * @api private */ paginationConfig: function paginationConfig(operation, throwException) { var paginator = this.api.operations[operation].paginator; if (!paginator) { if (throwException) { var e = new Error(); throw AWS.util.error(e, 'No pagination configuration for ' + operation); } return null; } return paginator; } }); AWS.util.update(AWS.Service, { /** * Adds one method for each operation described in the api configuration * * @api private */ defineMethods: function defineMethods(svc) { AWS.util.each(svc.prototype.api.operations, function iterator(method) { if (svc.prototype[method]) return; var operation = svc.prototype.api.operations[method]; if (operation.authtype === 'none') { svc.prototype[method] = function (params, callback) { return this.makeUnauthenticatedRequest(method, params, callback); }; } else { svc.prototype[method] = function (params, callback) { return this.makeRequest(method, params, callback); }; } }); }, /** * Defines a new Service class using a service identifier and list of versions * including an optional set of features (functions) to apply to the class * prototype. * * @param serviceIdentifier [String] the identifier for the service * @param versions [Array] a list of versions that work with this * service * @param features [Object] an object to attach to the prototype * @return [Class] the service class defined by this function. */ defineService: function defineService(serviceIdentifier, versions, features) { AWS.Service._serviceMap[serviceIdentifier] = true; if (!Array.isArray(versions)) { features = versions; versions = []; } var svc = inherit(AWS.Service, features || {}); if (typeof serviceIdentifier === 'string') { AWS.Service.addVersions(svc, versions); var identifier = svc.serviceIdentifier || serviceIdentifier; svc.serviceIdentifier = identifier; } else { // defineService called with an API svc.prototype.api = serviceIdentifier; AWS.Service.defineMethods(svc); } return svc; }, /** * @api private */ addVersions: function addVersions(svc, versions) { if (!Array.isArray(versions)) versions = [versions]; svc.services = svc.services || {}; for (var i = 0; i < versions.length; i++) { if (svc.services[versions[i]] === undefined) { svc.services[versions[i]] = null; } } svc.apiVersions = Object.keys(svc.services).sort(); }, /** * @api private */ defineServiceApi: function defineServiceApi(superclass, version, apiConfig) { var svc = inherit(superclass, { serviceIdentifier: superclass.serviceIdentifier }); function setApi(api) { if (api.isApi) { svc.prototype.api = api; } else { svc.prototype.api = new Api(api); } } if (typeof version === 'string') { if (apiConfig) { setApi(apiConfig); } else { try { setApi(AWS.apiLoader(superclass.serviceIdentifier, version)); } catch (err) { throw AWS.util.error(err, { message: 'Could not find API configuration ' + superclass.serviceIdentifier + '-' + version }); } } if (!Object.prototype.hasOwnProperty.call(superclass.services, version)) { superclass.apiVersions = superclass.apiVersions.concat(version).sort(); } superclass.services[version] = svc; } else { setApi(version); } AWS.Service.defineMethods(svc); return svc; }, /** * @api private */ hasService: function(identifier) { return Object.prototype.hasOwnProperty.call(AWS.Service._serviceMap, identifier); }, /** * @api private */ _serviceMap: {} }); module.exports = AWS.Service; },{"./core":196,"./model/api":213,"./region_config":227}],234:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.APIGateway.prototype, { /** * Sets the Accept header to application/json. * * @api private */ setAcceptHeader: function setAcceptHeader(req) { var httpRequest = req.httpRequest; httpRequest.headers['Accept'] = 'application/json'; }, /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.addListener('build', this.setAcceptHeader); if (request.operation === 'getSdk') { request.addListener('extractData', this.useRawPayload); } }, useRawPayload: function useRawPayload(resp) { var req = resp.request; var operation = req.operation; var rules = req.service.api.operations[operation].output || {}; if (rules.payload) { var body = resp.httpResponse.body; resp.data[rules.payload] = body; } } }); },{"../core":196}],235:[function(require,module,exports){ var AWS = require('../core'); // pull in CloudFront signer require('../cloudfront/signer'); AWS.util.update(AWS.CloudFront.prototype, { setupRequestListeners: function setupRequestListeners(request) { request.addListener('extractData', AWS.util.hoistPayloadMember); } }); },{"../cloudfront/signer":194,"../core":196}],236:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.CognitoIdentity.prototype, { getOpenIdToken: function getOpenIdToken(params, callback) { return this.makeUnauthenticatedRequest('getOpenIdToken', params, callback); }, getId: function getId(params, callback) { return this.makeUnauthenticatedRequest('getId', params, callback); }, getCredentialsForIdentity: function getCredentialsForIdentity(params, callback) { return this.makeUnauthenticatedRequest('getCredentialsForIdentity', params, callback); } }); },{"../core":196}],237:[function(require,module,exports){ var AWS = require('../core'); require('../dynamodb/document_client'); AWS.util.update(AWS.DynamoDB.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { if (request.service.config.dynamoDbCrc32) { request.removeListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); request.addListener('extractData', this.checkCrc32); request.addListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); } }, /** * @api private */ checkCrc32: function checkCrc32(resp) { if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { resp.data = null; resp.error = AWS.util.error(new Error(), { code: 'CRC32CheckFailed', message: 'CRC32 integrity check failed', retryable: true }); resp.request.haltHandlersOnError(); throw (resp.error); } }, /** * @api private */ crc32IsValid: function crc32IsValid(resp) { var crc = resp.httpResponse.headers['x-amz-crc32']; if (!crc) return true; // no (valid) CRC32 header return parseInt(crc, 10) === AWS.util.crypto.crc32(resp.httpResponse.body); }, /** * @api private */ defaultRetryCount: 10, /** * @api private */ retryDelays: function retryDelays(retryCount) { var delay = retryCount > 0 ? (50 * Math.pow(2, retryCount - 1)) : 0; return delay; } }); },{"../core":196,"../dynamodb/document_client":204}],238:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.EC2.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR); request.addListener('extractError', this.extractError); if (request.operation === 'copySnapshot') { request.onAsync('validate', this.buildCopySnapshotPresignedUrl); } }, /** * @api private */ buildCopySnapshotPresignedUrl: function buildCopySnapshotPresignedUrl(req, done) { if (req.params.PresignedUrl || req._subRequest) { return done(); } req.params = AWS.util.copy(req.params); req.params.DestinationRegion = req.service.config.region; var config = AWS.util.copy(req.service.config); delete config.endpoint; config.region = req.params.SourceRegion; var svc = new req.service.constructor(config); var newReq = svc[req.operation](req.params); newReq._subRequest = true; newReq.presign(function(err, url) { if (err) done(err); else { req.params.PresignedUrl = url; done(); } }); }, /** * @api private */ extractError: function extractError(resp) { // EC2 nests the error code and message deeper than other AWS Query services. var httpResponse = resp.httpResponse; var data = new AWS.XML.Parser().parse(httpResponse.body.toString() || ''); if (data.Errors) { resp.error = AWS.util.error(new Error(), { code: data.Errors.Error.Code, message: data.Errors.Error.Message }); } else { resp.error = AWS.util.error(new Error(), { code: httpResponse.statusCode, message: null }); } resp.error.requestId = data.RequestID || null; } }); },{"../core":196}],239:[function(require,module,exports){ var AWS = require('../core'); /** * Constructs a service interface object. Each API operation is exposed as a * function on service. * * ### Sending a Request Using IotData * * ```javascript * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); * iotdata.getThingShadow(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 IotData object uses this specific API, * you can construct the object by passing the `apiVersion` option to the * constructor: * * ```javascript * var iotdata = new AWS.IotData({ * endpoint: 'my.host.tld', * apiVersion: '2015-05-28' * }); * ``` * * You can also set the API version globally in `AWS.config.apiVersions` using * the **iotdata** service identifier: * * ```javascript * AWS.config.apiVersions = { * iotdata: '2015-05-28', * // other service API versions * }; * * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); * ``` * * @note You *must* provide an `endpoint` configuration parameter when * constructing this service. See {constructor} for more information. * * @!method constructor(options = {}) * Constructs a service object. This object has one method for each * API operation. * * @example Constructing a IotData object * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); * @note You *must* provide an `endpoint` when constructing this service. * @option (see AWS.Config.constructor) * * @service iotdata * @version 2015-05-28 */ AWS.util.update(AWS.IotData.prototype, { /** * @api private */ validateService: function validateService() { if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { var msg = 'AWS.IotData requires an explicit ' + '`endpoint\' configuration option.'; throw AWS.util.error(new Error(), {name: 'InvalidEndpoint', message: msg}); } }, /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.addListener('validateResponse', this.validateResponseBody) }, /** * @api private */ validateResponseBody: function validateResponseBody(resp) { var body = resp.httpResponse.body.toString() || '{}'; var bodyCheck = body.trim(); if (!bodyCheck || bodyCheck.charAt(0) !== '{') { resp.httpResponse.body = ''; } } }); },{"../core":196}],240:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.MachineLearning.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { if (request.operation === 'predict') { request.addListener('build', this.buildEndpoint); } }, /** * Updates request endpoint from PredictEndpoint * @api private */ buildEndpoint: function buildEndpoint(request) { var url = request.params.PredictEndpoint; if (url) { request.httpRequest.endpoint = new AWS.Endpoint(url); } } }); },{"../core":196}],241:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.Route53.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.on('build', this.sanitizeUrl); }, /** * @api private */ sanitizeUrl: function sanitizeUrl(request) { var path = request.httpRequest.path; request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/'); }, /** * @return [Boolean] whether the error can be retried * @api private */ retryableError: function retryableError(error) { if (error.code === 'PriorRequestNotComplete' && error.statusCode === 400) { return true; } else { var _super = AWS.Service.prototype.retryableError; return _super.call(this, error); } } }); },{"../core":196}],242:[function(require,module,exports){ var AWS = require('../core'); // Pull in managed upload extension require('../s3/managed_upload'); /** * @api private */ var operationsWith200StatusCodeError = { 'completeMultipartUpload': true, 'copyObject': true, 'uploadPartCopy': true }; /** * @api private */ var regionRedirectErrorCodes = [ 'AuthorizationHeaderMalformed', // non-head operations on virtual-hosted global bucket endpoints 'BadRequest', // head operations on virtual-hosted global bucket endpoints 'PermanentRedirect', // non-head operations on path-style or regional endpoints 301 // head operations on path-style or regional endpoints ]; AWS.util.update(AWS.S3.prototype, { /** * @api private */ getSignerClass: function getSignerClass(request) { var defaultApiVersion = this.api.signatureVersion; var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; var regionDefinedVersion = this.config.signatureVersion; var isPresigned = request ? request.isPresigned() : false; /* 1) User defined version specified: a) always return user defined version 2) No user defined version specified: a) default to lowest version the region supports */ if (userDefinedVersion) { userDefinedVersion = userDefinedVersion === 'v2' ? 's3' : userDefinedVersion; return AWS.Signers.RequestSigner.getVersion(userDefinedVersion); } if (regionDefinedVersion) { defaultApiVersion = regionDefinedVersion; } return AWS.Signers.RequestSigner.getVersion(defaultApiVersion); }, /** * @api private */ validateService: function validateService() { var msg; var messages = []; // default to us-east-1 when no region is provided if (!this.config.region) this.config.region = 'us-east-1'; if (!this.config.endpoint && this.config.s3BucketEndpoint) { messages.push('An endpoint must be provided when configuring ' + '`s3BucketEndpoint` to true.'); } if (this.config.useAccelerateEndpoint && this.config.useDualstack) { messages.push('`useAccelerateEndpoint` and `useDualstack` ' + 'cannot both be configured to true.'); } if (messages.length === 1) { msg = messages[0]; } else if (messages.length > 1) { msg = 'Multiple configuration errors:\n' + messages.join('\n'); } if (msg) { throw AWS.util.error(new Error(), {name: 'InvalidEndpoint', message: msg}); } }, /** * @api private */ shouldDisableBodySigning: function shouldDisableBodySigning(request) { var signerClass = this.getSignerClass(); if (this.config.s3DisableBodySigning === true && signerClass === AWS.Signers.V4 && request.httpRequest.endpoint.protocol === 'https:') { return true; } return false; }, /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.addListener('validate', this.validateScheme); request.addListener('validate', this.validateBucketEndpoint); request.addListener('validate', this.correctBucketRegionFromCache); request.addListener('build', this.addContentType); request.addListener('build', this.populateURI); request.addListener('build', this.computeContentMd5); request.addListener('build', this.computeSseCustomerKeyMd5); request.addListener('afterBuild', this.addExpect100Continue); request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_REGION); request.addListener('extractError', this.extractError); request.onAsync('extractError', this.requestBucketRegion); request.addListener('extractData', this.extractData); request.addListener('extractData', AWS.util.hoistPayloadMember); request.addListener('beforePresign', this.prepareSignedUrl); if (AWS.util.isBrowser()) { request.onAsync('retry', this.reqRegionForNetworkingError); } if (this.shouldDisableBodySigning(request)) { request.removeListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); request.addListener('afterBuild', this.disableBodySigning); } }, /** * @api private */ validateScheme: function(req) { var params = req.params, scheme = req.httpRequest.endpoint.protocol, sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; if (sensitive && scheme !== 'https:') { var msg = 'Cannot send SSE keys over HTTP. Set \'sslEnabled\'' + 'to \'true\' in your configuration'; throw AWS.util.error(new Error(), { code: 'ConfigError', message: msg }); } }, /** * @api private */ validateBucketEndpoint: function(req) { if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { var msg = 'Cannot send requests to root API with `s3BucketEndpoint` set.'; throw AWS.util.error(new Error(), { code: 'ConfigError', message: msg }); } }, /** * @api private */ isValidAccelerateOperation: function isValidAccelerateOperation(operation) { var invalidOperations = [ 'createBucket', 'deleteBucket', 'listBuckets' ]; return invalidOperations.indexOf(operation) === -1; }, /** * S3 prefers dns-compatible bucket names to be moved from the uri path * to the hostname as a sub-domain. This is not possible, even for dns-compat * buckets when using SSL and the bucket name contains a dot ('.'). The * ssl wildcard certificate is only 1-level deep. * * @api private */ populateURI: function populateURI(req) { var httpRequest = req.httpRequest; var b = req.params.Bucket; var service = req.service; var endpoint = httpRequest.endpoint; if (b) { if (!service.pathStyleBucketName(b)) { if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { endpoint.hostname = b + '.s3-accelerate.amazonaws.com'; } else if (!service.config.s3BucketEndpoint) { endpoint.hostname = b + '.' + endpoint.hostname; } var port = endpoint.port; if (port !== 80 && port !== 443) { endpoint.host = endpoint.hostname + ':' + endpoint.port; } else { endpoint.host = endpoint.hostname; } httpRequest.virtualHostedBucket = b; // needed for signing the request service.removeVirtualHostedBucketFromPath(req); } } }, /** * Takes the bucket name out of the path if bucket is virtual-hosted * * @api private */ removeVirtualHostedBucketFromPath: function removeVirtualHostedBucketFromPath(req) { var httpRequest = req.httpRequest; var bucket = httpRequest.virtualHostedBucket; if (bucket && httpRequest.path) { httpRequest.path = httpRequest.path.replace(new RegExp('/' + bucket), ''); if (httpRequest.path[0] !== '/') { httpRequest.path = '/' + httpRequest.path; } } }, /** * Adds Expect: 100-continue header if payload is greater-or-equal 1MB * @api private */ addExpect100Continue: function addExpect100Continue(req) { var len = req.httpRequest.headers['Content-Length']; if (AWS.util.isNode() && len >= 1024 * 1024) { req.httpRequest.headers['Expect'] = '100-continue'; } }, /** * Adds a default content type if none is supplied. * * @api private */ addContentType: function addContentType(req) { var httpRequest = req.httpRequest; if (httpRequest.method === 'GET' || httpRequest.method === 'HEAD') { // Content-Type is not set in GET/HEAD requests delete httpRequest.headers['Content-Type']; return; } if (!httpRequest.headers['Content-Type']) { // always have a Content-Type httpRequest.headers['Content-Type'] = 'application/octet-stream'; } var contentType = httpRequest.headers['Content-Type']; if (AWS.util.isBrowser()) { if (typeof httpRequest.body === 'string' && !contentType.match(/;\s*charset=/)) { var charset = '; charset=UTF-8'; httpRequest.headers['Content-Type'] += charset; } else { var replaceFn = function(_, prefix, charsetName) { return prefix + charsetName.toUpperCase(); }; httpRequest.headers['Content-Type'] = contentType.replace(/(;\s*charset=)(.+)$/, replaceFn); } } }, /** * @api private */ computableChecksumOperations: { putBucketCors: true, putBucketLifecycle: true, putBucketLifecycleConfiguration: true, putBucketTagging: true, deleteObjects: true, putBucketReplication: true }, /** * Checks whether checksums should be computed for the request. * If the request requires checksums to be computed, this will always * return true, otherwise it depends on whether {AWS.Config.computeChecksums} * is set. * * @param req [AWS.Request] the request to check against * @return [Boolean] whether to compute checksums for a request. * @api private */ willComputeChecksums: function willComputeChecksums(req) { if (this.computableChecksumOperations[req.operation]) return true; if (!this.config.computeChecksums) return false; // TODO: compute checksums for Stream objects if (!AWS.util.Buffer.isBuffer(req.httpRequest.body) && typeof req.httpRequest.body !== 'string') { return false; } var rules = req.service.api.operations[req.operation].input.members; // Sha256 signing disabled, and not a presigned url if (req.service.shouldDisableBodySigning(req) && !Object.prototype.hasOwnProperty.call(req.httpRequest.headers, 'presigned-expires')) { if (rules.ContentMD5 && !req.params.ContentMD5) { return true; } } // V4 signer uses SHA256 signatures so only compute MD5 if it is required if (req.service.getSignerClass(req) === AWS.Signers.V4) { if (rules.ContentMD5 && !rules.ContentMD5.required) return false; } if (rules.ContentMD5 && !req.params.ContentMD5) return true; }, /** * A listener that computes the Content-MD5 and sets it in the header. * @see AWS.S3.willComputeChecksums * @api private */ computeContentMd5: function computeContentMd5(req) { if (req.service.willComputeChecksums(req)) { var md5 = AWS.util.crypto.md5(req.httpRequest.body, 'base64'); req.httpRequest.headers['Content-MD5'] = md5; } }, /** * @api private */ computeSseCustomerKeyMd5: function computeSseCustomerKeyMd5(req) { var keys = { SSECustomerKey: 'x-amz-server-side-encryption-customer-key-MD5', CopySourceSSECustomerKey: 'x-amz-copy-source-server-side-encryption-customer-key-MD5' }; AWS.util.each(keys, function(key, header) { if (req.params[key]) { var value = AWS.util.crypto.md5(req.params[key], 'base64'); req.httpRequest.headers[header] = value; } }); }, /** * Returns true if the bucket name should be left in the URI path for * a request to S3. This function takes into account the current * endpoint protocol (e.g. http or https). * * @api private */ pathStyleBucketName: function pathStyleBucketName(bucketName) { // user can force path style requests via the configuration if (this.config.s3ForcePathStyle) return true; if (this.config.s3BucketEndpoint) return false; if (this.dnsCompatibleBucketName(bucketName)) { return (this.config.sslEnabled && bucketName.match(/\./)) ? true : false; } else { return true; // not dns compatible names must always use path style } }, /** * Returns true if the bucket name is DNS compatible. Buckets created * outside of the classic region MUST be DNS compatible. * * @api private */ dnsCompatibleBucketName: function dnsCompatibleBucketName(bucketName) { var b = bucketName; var domain = new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/); var ipAddress = new RegExp(/(\d+\.){3}\d+/); var dots = new RegExp(/\.\./); return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; }, /** * @return [Boolean] whether response contains an error * @api private */ successfulResponse: function successfulResponse(resp) { var req = resp.request; var httpResponse = resp.httpResponse; if (operationsWith200StatusCodeError[req.operation] && httpResponse.body.toString().match('')) { return false; } else { return httpResponse.statusCode < 300; } }, /** * @return [Boolean] whether the error can be retried * @api private */ retryableError: function retryableError(error, request) { if (operationsWith200StatusCodeError[request.operation] && error.statusCode === 200) { return true; } else if (request._requestRegionForBucket && request.service.bucketRegionCache[request._requestRegionForBucket]) { return false; } else if (error && error.code === 'RequestTimeout') { return true; } else if (error && regionRedirectErrorCodes.indexOf(error.code) != -1 && error.region && error.region != request.httpRequest.region) { request.httpRequest.region = error.region; if (error.statusCode === 301) { request.service.updateReqBucketRegion(request); } return true; } else { var _super = AWS.Service.prototype.retryableError; return _super.call(this, error, request); } }, /** * Updates httpRequest with region. If region is not provided, then * the httpRequest will be updated based on httpRequest.region * * @api private */ updateReqBucketRegion: function updateReqBucketRegion(request, region) { var httpRequest = request.httpRequest; if (typeof region === 'string' && region.length) { httpRequest.region = region; } if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)) { return; } var service = request.service; var s3Config = service.config; var s3BucketEndpoint = s3Config.s3BucketEndpoint; if (s3BucketEndpoint) { delete s3Config.s3BucketEndpoint; } var newConfig = AWS.util.copy(s3Config); delete newConfig.endpoint; newConfig.region = httpRequest.region; httpRequest.endpoint = (new AWS.S3(newConfig)).endpoint; service.populateURI(request); s3Config.s3BucketEndpoint = s3BucketEndpoint; httpRequest.headers.Host = httpRequest.endpoint.host; if (request._asm.currentState === 'validate') { request.removeListener('build', service.populateURI); request.addListener('build', service.removeVirtualHostedBucketFromPath); } }, /** * Provides a specialized parser for getBucketLocation -- all other * operations are parsed by the super class. * * @api private */ extractData: function extractData(resp) { var req = resp.request; if (req.operation === 'getBucketLocation') { var match = resp.httpResponse.body.toString().match(/>(.+)<\/Location/); delete resp.data['_']; if (match) { resp.data.LocationConstraint = match[1]; } else { resp.data.LocationConstraint = ''; } } var bucket = req.params.Bucket || null; if (req.operation === 'deleteBucket' && typeof bucket === 'string' && !resp.error) { req.service.clearBucketRegionCache(bucket); } else { var headers = resp.httpResponse.headers || {}; var region = headers['x-amz-bucket-region'] || null; if (!region && req.operation === 'createBucket' && !resp.error) { var createBucketConfiguration = req.params.CreateBucketConfiguration; if (!createBucketConfiguration) { region = 'us-east-1'; } else if (createBucketConfiguration.LocationConstraint === 'EU') { region = 'eu-west-1'; } else { region = createBucketConfiguration.LocationConstraint; } } if (region) { if (bucket && region !== req.service.bucketRegionCache[bucket]) { req.service.bucketRegionCache[bucket] = region; } } } req.service.extractRequestIds(resp); }, /** * Extracts an error object from the http response. * * @api private */ extractError: function extractError(resp) { var codes = { 304: 'NotModified', 403: 'Forbidden', 400: 'BadRequest', 404: 'NotFound' }; var req = resp.request; var code = resp.httpResponse.statusCode; var body = resp.httpResponse.body || ''; var headers = resp.httpResponse.headers || {}; var region = headers['x-amz-bucket-region'] || null; var bucket = req.params.Bucket || null; var bucketRegionCache = req.service.bucketRegionCache; if (region && bucket && region !== bucketRegionCache[bucket]) { bucketRegionCache[bucket] = region; } var cachedRegion; if (codes[code] && body.length === 0) { if (bucket && !region) { cachedRegion = bucketRegionCache[bucket] || null; if (cachedRegion !== req.httpRequest.region) { region = cachedRegion; } } resp.error = AWS.util.error(new Error(), { code: codes[code], message: null, region: region }); } else { var data = new AWS.XML.Parser().parse(body.toString()); if (data.Region && !region) { region = data.Region; if (bucket && region !== bucketRegionCache[bucket]) { bucketRegionCache[bucket] = region; } } else if (bucket && !region && !data.Region) { cachedRegion = bucketRegionCache[bucket] || null; if (cachedRegion !== req.httpRequest.region) { region = cachedRegion; } } resp.error = AWS.util.error(new Error(), { code: data.Code || code, message: data.Message || null, region: region }); } req.service.extractRequestIds(resp); }, /** * If region was not obtained synchronously, then send async request * to get bucket region for errors resulting from wrong region. * * @api private */ requestBucketRegion: function requestBucketRegion(resp, done) { var error = resp.error; var req = resp.request; var bucket = req.params.Bucket || null; if (!error || !bucket || error.region || req.operation === 'listObjects' || (AWS.util.isNode() && req.operation === 'headBucket') || (error.statusCode === 400 && req.operation !== 'headObject') || regionRedirectErrorCodes.indexOf(error.code) === -1) { return done(); } var reqOperation = AWS.util.isNode() ? 'headBucket' : 'listObjects'; var reqParams = {Bucket: bucket}; if (reqOperation === 'listObjects') reqParams.MaxKeys = 0; var regionReq = req.service[reqOperation](reqParams); regionReq._requestRegionForBucket = bucket; regionReq.send(function() { var region = req.service.bucketRegionCache[bucket] || null; error.region = region; done(); }); }, /** * For browser only. If NetworkingError received, will attempt to obtain * the bucket region. * * @api private */ reqRegionForNetworkingError: function reqRegionForNetworkingError(resp, done) { if (!AWS.util.isBrowser()) { return done(); } var error = resp.error; var request = resp.request; var bucket = request.params.Bucket; if (!error || error.code !== 'NetworkingError' || !bucket || request.httpRequest.region === 'us-east-1') { return done(); } var service = request.service; var bucketRegionCache = service.bucketRegionCache; var cachedRegion = bucketRegionCache[bucket] || null; if (cachedRegion && cachedRegion !== request.httpRequest.region) { service.updateReqBucketRegion(request, cachedRegion); done(); } else if (!service.dnsCompatibleBucketName(bucket)) { service.updateReqBucketRegion(request, 'us-east-1'); if (bucketRegionCache[bucket] !== 'us-east-1') { bucketRegionCache[bucket] = 'us-east-1'; } done(); } else if (request.httpRequest.virtualHostedBucket) { var getRegionReq = service.listObjects({Bucket: bucket, MaxKeys: 0}); service.updateReqBucketRegion(getRegionReq, 'us-east-1'); getRegionReq._requestRegionForBucket = bucket; getRegionReq.send(function() { var region = service.bucketRegionCache[bucket] || null; if (region && region !== request.httpRequest.region) { service.updateReqBucketRegion(request, region); } done(); }); } else { // DNS-compatible path-style // (s3ForcePathStyle or bucket name with dot over https) // Cannot obtain region information for this case done(); } }, /** * Cache for bucket region. * * @api private */ bucketRegionCache: {}, /** * Clears bucket region cache. * * @api private */ clearBucketRegionCache: function(buckets) { var bucketRegionCache = this.bucketRegionCache; if (!buckets) { buckets = Object.keys(bucketRegionCache); } else if (typeof buckets === 'string') { buckets = [buckets]; } for (var i = 0; i < buckets.length; i++) { delete bucketRegionCache[buckets[i]]; } return bucketRegionCache; }, /** * Corrects request region if bucket's cached region is different * * @api private */ correctBucketRegionFromCache: function correctBucketRegionFromCache(req) { var bucket = req.params.Bucket || null; if (bucket) { var service = req.service; var requestRegion = req.httpRequest.region; var cachedRegion = service.bucketRegionCache[bucket]; if (cachedRegion && cachedRegion !== requestRegion) { service.updateReqBucketRegion(req, cachedRegion); } } }, /** * Extracts S3 specific request ids from the http response. * * @api private */ extractRequestIds: function extractRequestIds(resp) { var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-id-2'] : null; var cfId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-cf-id'] : null; resp.extendedRequestId = extendedRequestId; resp.cfId = cfId; if (resp.error) { resp.error.requestId = resp.requestId || null; resp.error.extendedRequestId = extendedRequestId; resp.error.cfId = cfId; } }, /** * Get a pre-signed URL for a given operation name. * * @note You must ensure that you have static or previously resolved * credentials if you call this method synchronously (with no callback), * otherwise it may not properly sign the request. If you cannot guarantee * this (you are using an asynchronous credential provider, i.e., EC2 * IAM roles), you should always call this method with an asynchronous * callback. * @param operation [String] the name of the operation to call * @param params [map] parameters to pass to the operation. See the given * operation for the expected operation parameters. In addition, you can * also pass the "Expires" parameter to inform S3 how long the URL should * work for. * @option params Expires [Integer] (900) the number of seconds to expire * the pre-signed URL operation in. Defaults to 15 minutes. * @param callback [Function] if a callback is provided, this function will * pass the URL as the second parameter (after the error parameter) to * the callback function. * @return [String] if called synchronously (with no callback), returns the * signed URL. * @return [null] nothing is returned if a callback is provided. * @example Pre-signing a getObject operation (synchronously) * var params = {Bucket: 'bucket', Key: 'key'}; * var url = s3.getSignedUrl('getObject', params); * console.log('The URL is', url); * @example Pre-signing a putObject (asynchronously) * var params = {Bucket: 'bucket', Key: 'key'}; * s3.getSignedUrl('putObject', params, function (err, url) { * console.log('The URL is', url); * }); * @example Pre-signing a putObject operation with a specific payload * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; * var url = s3.getSignedUrl('putObject', params); * console.log('The URL is', url); * @example Passing in a 1-minute expiry time for a pre-signed URL * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; * var url = s3.getSignedUrl('getObject', params); * console.log('The URL is', url); // expires in 60 seconds */ getSignedUrl: function getSignedUrl(operation, params, callback) { params = AWS.util.copy(params || {}); var expires = params.Expires || 900; delete params.Expires; // we can't validate this var request = this.makeRequest(operation, params); return request.presign(expires, callback); }, /** * @api private */ prepareSignedUrl: function prepareSignedUrl(request) { request.addListener('validate', request.service.noPresignedContentLength); request.removeListener('build', request.service.addContentType); if (!request.params.Body) { // no Content-MD5/SHA-256 if body is not provided request.removeListener('build', request.service.computeContentMd5); } else { request.addListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); } }, /** * @api private * @param request */ disableBodySigning: function disableBodySigning(request) { var headers = request.httpRequest.headers; // Add the header to anything that isn't a presigned url, unless that presigned url had a body defined if (!Object.prototype.hasOwnProperty.call(headers, 'presigned-expires')) { headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; } }, /** * @api private */ noPresignedContentLength: function noPresignedContentLength(request) { if (request.params.ContentLength !== undefined) { throw AWS.util.error(new Error(), {code: 'UnexpectedParameter', message: 'ContentLength is not supported in pre-signed URLs.'}); } }, createBucket: function createBucket(params, callback) { // When creating a bucket *outside* the classic region, the location // constraint must be set for the bucket and it must match the endpoint. // This chunk of code will set the location constraint param based // on the region (when possible), but it will not override a passed-in // location constraint. if (typeof params === 'function' || !params) { callback = callback || params; params = {}; } var hostname = this.endpoint.hostname; if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) { params.CreateBucketConfiguration = { LocationConstraint: this.config.region }; } return this.makeRequest('createBucket', params, callback); }, /** * @overload upload(params = {}, [options], [callback]) * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent * concurrent handling of parts if the payload is large enough. You can * configure the concurrent queue size by setting `options`. Note that this * is the only operation for which the SDK can retry requests with stream * bodies. * * @param (see AWS.S3.putObject) * @option (see AWS.S3.ManagedUpload.constructor) * @return [AWS.S3.ManagedUpload] the managed upload object that can call * `send()` or track progress. * @example Uploading a stream object * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; * s3.upload(params, function(err, data) { * console.log(err, data); * }); * @example Uploading a stream with concurrency of 1 and partSize of 10mb * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; * var options = {partSize: 10 * 1024 * 1024, queueSize: 1}; * s3.upload(params, options, function(err, data) { * console.log(err, data); * }); * @callback callback function(err, data) * @param err [Error] an error or null if no error occurred. * @param data [map] The response data from the successful upload: * * `Location` (String) the URL of the uploaded object * * `ETag` (String) the ETag of the uploaded object * * `Bucket` (String) the bucket to which the object was uploaded * * `Key` (String) the key to which the object was uploaded * @see AWS.S3.ManagedUpload */ upload: function upload(params, options, callback) { if (typeof options === 'function' && callback === undefined) { callback = options; options = null; } options = options || {}; options = AWS.util.merge(options || {}, {service: this, params: params}); var uploader = new AWS.S3.ManagedUpload(options); if (typeof callback === 'function') uploader.send(callback); return uploader; } }); },{"../core":196,"../s3/managed_upload":231}],243:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.SQS.prototype, { /** * @api private */ setupRequestListeners: function setupRequestListeners(request) { request.addListener('build', this.buildEndpoint); if (request.service.config.computeChecksums) { if (request.operation === 'sendMessage') { request.addListener('extractData', this.verifySendMessageChecksum); } else if (request.operation === 'sendMessageBatch') { request.addListener('extractData', this.verifySendMessageBatchChecksum); } else if (request.operation === 'receiveMessage') { request.addListener('extractData', this.verifyReceiveMessageChecksum); } } }, /** * @api private */ verifySendMessageChecksum: function verifySendMessageChecksum(response) { if (!response.data) return; var md5 = response.data.MD5OfMessageBody; var body = this.params.MessageBody; var calculatedMd5 = this.service.calculateChecksum(body); if (calculatedMd5 !== md5) { var msg = 'Got "' + response.data.MD5OfMessageBody + '", expecting "' + calculatedMd5 + '".'; this.service.throwInvalidChecksumError(response, [response.data.MessageId], msg); } }, /** * @api private */ verifySendMessageBatchChecksum: function verifySendMessageBatchChecksum(response) { if (!response.data) return; var service = this.service; var entries = {}; var errors = []; var messageIds = []; AWS.util.arrayEach(response.data.Successful, function (entry) { entries[entry.Id] = entry; }); AWS.util.arrayEach(this.params.Entries, function (entry) { if (entries[entry.Id]) { var md5 = entries[entry.Id].MD5OfMessageBody; var body = entry.MessageBody; if (!service.isChecksumValid(md5, body)) { errors.push(entry.Id); messageIds.push(entries[entry.Id].MessageId); } } }); if (errors.length > 0) { service.throwInvalidChecksumError(response, messageIds, 'Invalid messages: ' + errors.join(', ')); } }, /** * @api private */ verifyReceiveMessageChecksum: function verifyReceiveMessageChecksum(response) { if (!response.data) return; var service = this.service; var messageIds = []; AWS.util.arrayEach(response.data.Messages, function(message) { var md5 = message.MD5OfBody; var body = message.Body; if (!service.isChecksumValid(md5, body)) { messageIds.push(message.MessageId); } }); if (messageIds.length > 0) { service.throwInvalidChecksumError(response, messageIds, 'Invalid messages: ' + messageIds.join(', ')); } }, /** * @api private */ throwInvalidChecksumError: function throwInvalidChecksumError(response, ids, message) { response.error = AWS.util.error(new Error(), { retryable: true, code: 'InvalidChecksum', messageIds: ids, message: response.request.operation + ' returned an invalid MD5 response. ' + message }); }, /** * @api private */ isChecksumValid: function isChecksumValid(checksum, data) { return this.calculateChecksum(data) === checksum; }, /** * @api private */ calculateChecksum: function calculateChecksum(data) { return AWS.util.crypto.md5(data, 'hex'); }, /** * @api private */ buildEndpoint: function buildEndpoint(request) { var url = request.httpRequest.params.QueueUrl; if (url) { request.httpRequest.endpoint = new AWS.Endpoint(url); // signature version 4 requires the region name to be set, // sqs queue urls contain the region name var matches = request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./); if (matches) request.httpRequest.region = matches[1]; } } }); },{"../core":196}],244:[function(require,module,exports){ var AWS = require('../core'); AWS.util.update(AWS.STS.prototype, { /** * @overload credentialsFrom(data, credentials = null) * Creates a credentials object from STS response data containing * credentials information. Useful for quickly setting AWS credentials. * * @note This is a low-level utility function. If you want to load temporary * credentials into your process for subsequent requests to AWS resources, * you should use {AWS.TemporaryCredentials} instead. * @param data [map] data retrieved from a call to {getFederatedToken}, * {getSessionToken}, {assumeRole}, or {assumeRoleWithWebIdentity}. * @param credentials [AWS.Credentials] an optional credentials object to * fill instead of creating a new object. Useful when modifying an * existing credentials object from a refresh call. * @return [AWS.TemporaryCredentials] the set of temporary credentials * loaded from a raw STS operation response. * @example Using credentialsFrom to load global AWS credentials * var sts = new AWS.STS(); * sts.getSessionToken(function (err, data) { * if (err) console.log("Error getting credentials"); * else { * AWS.config.credentials = sts.credentialsFrom(data); * } * }); * @see AWS.TemporaryCredentials */ credentialsFrom: function credentialsFrom(data, credentials) { if (!data) return null; if (!credentials) credentials = new AWS.TemporaryCredentials(); credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretAccessKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; return credentials; }, assumeRoleWithWebIdentity: function assumeRoleWithWebIdentity(params, callback) { return this.makeUnauthenticatedRequest('assumeRoleWithWebIdentity', params, callback); }, assumeRoleWithSAML: function assumeRoleWithSAML(params, callback) { return this.makeUnauthenticatedRequest('assumeRoleWithSAML', params, callback); } }); },{"../core":196}],245:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ var expiresHeader = 'presigned-expires'; /** * @api private */ function signedUrlBuilder(request) { var expires = request.httpRequest.headers[expiresHeader]; var signerClass = request.service.getSignerClass(request); delete request.httpRequest.headers['User-Agent']; delete request.httpRequest.headers['X-Amz-User-Agent']; if (signerClass === AWS.Signers.V4) { if (expires > 604800) { // one week expiry is invalid var message = 'Presigning does not support expiry time greater ' + 'than a week with SigV4 signing.'; throw AWS.util.error(new Error(), { code: 'InvalidExpiryTime', message: message, retryable: false }); } request.httpRequest.headers[expiresHeader] = expires; } else if (signerClass === AWS.Signers.S3) { request.httpRequest.headers[expiresHeader] = parseInt( AWS.util.date.unixTimestamp() + expires, 10).toString(); } else { throw AWS.util.error(new Error(), { message: 'Presigning only supports S3 or SigV4 signing.', code: 'UnsupportedSigner', retryable: false }); } } /** * @api private */ function signedUrlSigner(request) { var endpoint = request.httpRequest.endpoint; var parsedUrl = AWS.util.urlParse(request.httpRequest.path); var queryParams = {}; if (parsedUrl.search) { queryParams = AWS.util.queryStringParse(parsedUrl.search.substr(1)); } AWS.util.each(request.httpRequest.headers, function (key, value) { if (key === expiresHeader) key = 'Expires'; if (key.indexOf('x-amz-meta-') === 0) { // Delete existing, potentially not normalized key delete queryParams[key]; key = key.toLowerCase(); } queryParams[key] = value; }); delete request.httpRequest.headers[expiresHeader]; var auth = queryParams['Authorization'].split(' '); if (auth[0] === 'AWS') { auth = auth[1].split(':'); queryParams['AWSAccessKeyId'] = auth[0]; queryParams['Signature'] = auth[1]; } else if (auth[0] === 'AWS4-HMAC-SHA256') { // SigV4 signing auth.shift(); var rest = auth.join(' '); var signature = rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; queryParams['X-Amz-Signature'] = signature; delete queryParams['Expires']; } delete queryParams['Authorization']; delete queryParams['Host']; // build URL endpoint.pathname = parsedUrl.pathname; endpoint.search = AWS.util.queryParamsToString(queryParams); } /** * @api private */ AWS.Signers.Presign = inherit({ /** * @api private */ sign: function sign(request, expireTime, callback) { request.httpRequest.headers[expiresHeader] = expireTime || 3600; request.on('build', signedUrlBuilder); request.on('sign', signedUrlSigner); request.removeListener('afterBuild', AWS.EventListeners.Core.SET_CONTENT_LENGTH); request.removeListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); request.emit('beforePresign', [request]); if (callback) { request.build(function() { if (this.response.error) callback(this.response.error); else { callback(null, AWS.util.urlFormat(request.httpRequest.endpoint)); } }); } else { request.build(); if (request.response.error) throw request.response.error; return AWS.util.urlFormat(request.httpRequest.endpoint); } } }); module.exports = AWS.Signers.Presign; },{"../core":196}],246:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ AWS.Signers.RequestSigner = inherit({ constructor: function RequestSigner(request) { this.request = request; }, setServiceClientId: function setServiceClientId(id) { this.serviceClientId = id; }, getServiceClientId: function getServiceClientId() { return this.serviceClientId; } }); AWS.Signers.RequestSigner.getVersion = function getVersion(version) { switch (version) { case 'v2': return AWS.Signers.V2; case 'v3': return AWS.Signers.V3; case 'v4': return AWS.Signers.V4; case 's3': return AWS.Signers.S3; case 'v3https': return AWS.Signers.V3Https; } throw new Error('Unknown signing version ' + version); }; require('./v2'); require('./v3'); require('./v3https'); require('./v4'); require('./s3'); require('./presign'); },{"../core":196,"./presign":245,"./s3":247,"./v2":248,"./v3":249,"./v3https":250,"./v4":251}],247:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, { /** * When building the stringToSign, these sub resource params should be * part of the canonical resource string with their NON-decoded values */ subResources: { 'acl': 1, 'accelerate': 1, 'cors': 1, 'lifecycle': 1, 'delete': 1, 'location': 1, 'logging': 1, 'notification': 1, 'partNumber': 1, 'policy': 1, 'requestPayment': 1, 'replication': 1, 'restore': 1, 'tagging': 1, 'torrent': 1, 'uploadId': 1, 'uploads': 1, 'versionId': 1, 'versioning': 1, 'versions': 1, 'website': 1 }, // when building the stringToSign, these querystring params should be // part of the canonical resource string with their NON-encoded values responseHeaders: { 'response-content-type': 1, 'response-content-language': 1, 'response-expires': 1, 'response-cache-control': 1, 'response-content-disposition': 1, 'response-content-encoding': 1 }, addAuthorization: function addAuthorization(credentials, date) { if (!this.request.headers['presigned-expires']) { this.request.headers['X-Amz-Date'] = AWS.util.date.rfc822(date); } if (credentials.sessionToken) { // presigned URLs require this header to be lowercased this.request.headers['x-amz-security-token'] = credentials.sessionToken; } var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); var auth = 'AWS ' + credentials.accessKeyId + ':' + signature; this.request.headers['Authorization'] = auth; }, stringToSign: function stringToSign() { var r = this.request; var parts = []; parts.push(r.method); parts.push(r.headers['Content-MD5'] || ''); parts.push(r.headers['Content-Type'] || ''); // This is the "Date" header, but we use X-Amz-Date. // The S3 signing mechanism requires us to pass an empty // string for this Date header regardless. parts.push(r.headers['presigned-expires'] || ''); var headers = this.canonicalizedAmzHeaders(); if (headers) parts.push(headers); parts.push(this.canonicalizedResource()); return parts.join('\n'); }, canonicalizedAmzHeaders: function canonicalizedAmzHeaders() { var amzHeaders = []; AWS.util.each(this.request.headers, function (name) { if (name.match(/^x-amz-/i)) amzHeaders.push(name); }); amzHeaders.sort(function (a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1; }); var parts = []; AWS.util.arrayEach.call(this, amzHeaders, function (name) { parts.push(name.toLowerCase() + ':' + String(this.request.headers[name])); }); return parts.join('\n'); }, canonicalizedResource: function canonicalizedResource() { var r = this.request; var parts = r.path.split('?'); var path = parts[0]; var querystring = parts[1]; var resource = ''; if (r.virtualHostedBucket) resource += '/' + r.virtualHostedBucket; resource += path; if (querystring) { // collect a list of sub resources and query params that need to be signed var resources = []; AWS.util.arrayEach.call(this, querystring.split('&'), function (param) { var name = param.split('=')[0]; var value = param.split('=')[1]; if (this.subResources[name] || this.responseHeaders[name]) { var subresource = { name: name }; if (value !== undefined) { if (this.subResources[name]) { subresource.value = value; } else { subresource.value = decodeURIComponent(value); } } resources.push(subresource); } }); resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); if (resources.length) { querystring = []; AWS.util.arrayEach(resources, function (res) { if (res.value === undefined) { querystring.push(res.name); } else { querystring.push(res.name + '=' + res.value); } }); resource += '?' + querystring.join('&'); } } return resource; }, sign: function sign(secret, string) { return AWS.util.crypto.hmac(secret, string, 'base64', 'sha1'); } }); module.exports = AWS.Signers.S3; },{"../core":196}],248:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ AWS.Signers.V2 = inherit(AWS.Signers.RequestSigner, { addAuthorization: function addAuthorization(credentials, date) { if (!date) date = AWS.util.date.getDate(); var r = this.request; r.params.Timestamp = AWS.util.date.iso8601(date); r.params.SignatureVersion = '2'; r.params.SignatureMethod = 'HmacSHA256'; r.params.AWSAccessKeyId = credentials.accessKeyId; if (credentials.sessionToken) { r.params.SecurityToken = credentials.sessionToken; } delete r.params.Signature; // delete old Signature for re-signing r.params.Signature = this.signature(credentials); r.body = AWS.util.queryParamsToString(r.params); r.headers['Content-Length'] = r.body.length; }, signature: function signature(credentials) { return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); }, stringToSign: function stringToSign() { var parts = []; parts.push(this.request.method); parts.push(this.request.endpoint.host.toLowerCase()); parts.push(this.request.pathname()); parts.push(AWS.util.queryParamsToString(this.request.params)); return parts.join('\n'); } }); module.exports = AWS.Signers.V2; },{"../core":196}],249:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ AWS.Signers.V3 = inherit(AWS.Signers.RequestSigner, { addAuthorization: function addAuthorization(credentials, date) { var datetime = AWS.util.date.rfc822(date); this.request.headers['X-Amz-Date'] = datetime; if (credentials.sessionToken) { this.request.headers['x-amz-security-token'] = credentials.sessionToken; } this.request.headers['X-Amzn-Authorization'] = this.authorization(credentials, datetime); }, authorization: function authorization(credentials) { return 'AWS3 ' + 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + 'Algorithm=HmacSHA256,' + 'SignedHeaders=' + this.signedHeaders() + ',' + 'Signature=' + this.signature(credentials); }, signedHeaders: function signedHeaders() { var headers = []; AWS.util.arrayEach(this.headersToSign(), function iterator(h) { headers.push(h.toLowerCase()); }); return headers.sort().join(';'); }, canonicalHeaders: function canonicalHeaders() { var headers = this.request.headers; var parts = []; AWS.util.arrayEach(this.headersToSign(), function iterator(h) { parts.push(h.toLowerCase().trim() + ':' + String(headers[h]).trim()); }); return parts.sort().join('\n') + '\n'; }, headersToSign: function headersToSign() { var headers = []; AWS.util.each(this.request.headers, function iterator(k) { if (k === 'Host' || k === 'Content-Encoding' || k.match(/^X-Amz/i)) { headers.push(k); } }); return headers; }, signature: function signature(credentials) { return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); }, stringToSign: function stringToSign() { var parts = []; parts.push(this.request.method); parts.push('/'); parts.push(''); parts.push(this.canonicalHeaders()); parts.push(this.request.body); return AWS.util.crypto.sha256(parts.join('\n')); } }); module.exports = AWS.Signers.V3; },{"../core":196}],250:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; require('./v3'); /** * @api private */ AWS.Signers.V3Https = inherit(AWS.Signers.V3, { authorization: function authorization(credentials) { return 'AWS3-HTTPS ' + 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + 'Algorithm=HmacSHA256,' + 'Signature=' + this.signature(credentials); }, stringToSign: function stringToSign() { return this.request.headers['X-Amz-Date']; } }); module.exports = AWS.Signers.V3Https; },{"../core":196,"./v3":249}],251:[function(require,module,exports){ var AWS = require('../core'); var inherit = AWS.util.inherit; /** * @api private */ var cachedSecret = {}; /** * @api private */ var cacheQueue = []; /** * @api private */ var maxCacheEntries = 50; /** * @api private */ var expiresHeader = 'presigned-expires'; /** * @api private */ AWS.Signers.V4 = inherit(AWS.Signers.RequestSigner, { constructor: function V4(request, serviceName, signatureCache) { AWS.Signers.RequestSigner.call(this, request); this.serviceName = serviceName; this.signatureCache = signatureCache; }, algorithm: 'AWS4-HMAC-SHA256', addAuthorization: function addAuthorization(credentials, date) { var datetime = AWS.util.date.iso8601(date).replace(/[:\-]|\.\d{3}/g, ''); if (this.isPresigned()) { this.updateForPresigned(credentials, datetime); } else { this.addHeaders(credentials, datetime); } this.request.headers['Authorization'] = this.authorization(credentials, datetime); }, addHeaders: function addHeaders(credentials, datetime) { this.request.headers['X-Amz-Date'] = datetime; if (credentials.sessionToken) { this.request.headers['x-amz-security-token'] = credentials.sessionToken; } }, updateForPresigned: function updateForPresigned(credentials, datetime) { var credString = this.credentialString(datetime); var qs = { 'X-Amz-Date': datetime, 'X-Amz-Algorithm': this.algorithm, 'X-Amz-Credential': credentials.accessKeyId + '/' + credString, 'X-Amz-Expires': this.request.headers[expiresHeader], 'X-Amz-SignedHeaders': this.signedHeaders() }; if (credentials.sessionToken) { qs['X-Amz-Security-Token'] = credentials.sessionToken; } if (this.request.headers['Content-Type']) { qs['Content-Type'] = this.request.headers['Content-Type']; } if (this.request.headers['Content-MD5']) { qs['Content-MD5'] = this.request.headers['Content-MD5']; } if (this.request.headers['Cache-Control']) { qs['Cache-Control'] = this.request.headers['Cache-Control']; } // need to pull in any other X-Amz-* headers AWS.util.each.call(this, this.request.headers, function(key, value) { if (key === expiresHeader) return; if (this.isSignableHeader(key)) { var lowerKey = key.toLowerCase(); // Metadata should be normalized if (lowerKey.indexOf('x-amz-meta-') === 0) { qs[lowerKey] = value; } else if (lowerKey.indexOf('x-amz-') === 0) { qs[key] = value; } } }); var sep = this.request.path.indexOf('?') >= 0 ? '&' : '?'; this.request.path += sep + AWS.util.queryParamsToString(qs); }, authorization: function authorization(credentials, datetime) { var parts = []; var credString = this.credentialString(datetime); parts.push(this.algorithm + ' Credential=' + credentials.accessKeyId + '/' + credString); parts.push('SignedHeaders=' + this.signedHeaders()); parts.push('Signature=' + this.signature(credentials, datetime)); return parts.join(', '); }, signature: function signature(credentials, datetime) { var cache = null; var cacheIdentifier = this.serviceName + (this.getServiceClientId() ? '_' + this.getServiceClientId() : ''); if (this.signatureCache) { var cache = cachedSecret[cacheIdentifier]; // If there isn't already a cache entry, we'll be adding one if (!cache) { cacheQueue.push(cacheIdentifier); if (cacheQueue.length > maxCacheEntries) { // remove the oldest entry (may not be last one used) delete cachedSecret[cacheQueue.shift()]; } } } var date = datetime.substr(0, 8); if (!cache || cache.akid !== credentials.accessKeyId || cache.region !== this.request.region || cache.date !== date) { var kSecret = credentials.secretAccessKey; var kDate = AWS.util.crypto.hmac('AWS4' + kSecret, date, 'buffer'); var kRegion = AWS.util.crypto.hmac(kDate, this.request.region, 'buffer'); var kService = AWS.util.crypto.hmac(kRegion, this.serviceName, 'buffer'); var kCredentials = AWS.util.crypto.hmac(kService, 'aws4_request', 'buffer'); if (!this.signatureCache) { return AWS.util.crypto.hmac(kCredentials, this.stringToSign(datetime), 'hex'); } cachedSecret[cacheIdentifier] = { region: this.request.region, date: date, key: kCredentials, akid: credentials.accessKeyId }; } var key = cachedSecret[cacheIdentifier].key; return AWS.util.crypto.hmac(key, this.stringToSign(datetime), 'hex'); }, stringToSign: function stringToSign(datetime) { var parts = []; parts.push('AWS4-HMAC-SHA256'); parts.push(datetime); parts.push(this.credentialString(datetime)); parts.push(this.hexEncodedHash(this.canonicalString())); return parts.join('\n'); }, canonicalString: function canonicalString() { var parts = [], pathname = this.request.pathname(); if (this.serviceName !== 's3') pathname = AWS.util.uriEscapePath(pathname); parts.push(this.request.method); parts.push(pathname); parts.push(this.request.search()); parts.push(this.canonicalHeaders() + '\n'); parts.push(this.signedHeaders()); parts.push(this.hexEncodedBodyHash()); return parts.join('\n'); }, canonicalHeaders: function canonicalHeaders() { var headers = []; AWS.util.each.call(this, this.request.headers, function (key, item) { headers.push([key, item]); }); headers.sort(function (a, b) { return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; }); var parts = []; AWS.util.arrayEach.call(this, headers, function (item) { var key = item[0].toLowerCase(); if (this.isSignableHeader(key)) { parts.push(key + ':' + this.canonicalHeaderValues(item[1].toString())); } }); return parts.join('\n'); }, canonicalHeaderValues: function canonicalHeaderValues(values) { return values.replace(/\s+/g, ' ').replace(/^\s+|\s+$/g, ''); }, signedHeaders: function signedHeaders() { var keys = []; AWS.util.each.call(this, this.request.headers, function (key) { key = key.toLowerCase(); if (this.isSignableHeader(key)) keys.push(key); }); return keys.sort().join(';'); }, credentialString: function credentialString(datetime) { var parts = []; parts.push(datetime.substr(0, 8)); parts.push(this.request.region); parts.push(this.serviceName); parts.push('aws4_request'); return parts.join('/'); }, hexEncodedHash: function hash(string) { return AWS.util.crypto.sha256(string, 'hex'); }, hexEncodedBodyHash: function hexEncodedBodyHash() { if (this.isPresigned() && this.serviceName === 's3' && !this.request.body) { return 'UNSIGNED-PAYLOAD'; } else if (this.request.headers['X-Amz-Content-Sha256']) { return this.request.headers['X-Amz-Content-Sha256']; } else { return this.hexEncodedHash(this.request.body || ''); } }, unsignableHeaders: ['authorization', 'content-type', 'content-length', 'user-agent', expiresHeader, 'expect'], isSignableHeader: function isSignableHeader(key) { if (key.toLowerCase().indexOf('x-amz-') === 0) return true; return this.unsignableHeaders.indexOf(key) < 0; }, isPresigned: function isPresigned() { return this.request.headers[expiresHeader] ? true : false; } }); module.exports = AWS.Signers.V4; },{"../core":196}],252:[function(require,module,exports){ function AcceptorStateMachine(states, state) { this.currentState = state || null; this.states = states || {}; } AcceptorStateMachine.prototype.runTo = function runTo(finalState, done, bindObject, inputError) { if (typeof finalState === 'function') { inputError = bindObject; bindObject = done; done = finalState; finalState = null; } var self = this; var state = self.states[self.currentState]; state.fn.call(bindObject || self, inputError, function(err) { if (err) { if (state.fail) self.currentState = state.fail; else return done ? done.call(bindObject, err) : null; } else { if (state.accept) self.currentState = state.accept; else return done ? done.call(bindObject) : null; } if (self.currentState === finalState) { return done ? done.call(bindObject, err) : null; } self.runTo(finalState, done, bindObject, err); }); }; AcceptorStateMachine.prototype.addState = function addState(name, acceptState, failState, fn) { if (typeof acceptState === 'function') { fn = acceptState; acceptState = null; failState = null; } else if (typeof failState === 'function') { fn = failState; failState = null; } if (!this.currentState) this.currentState = name; this.states[name] = { accept: acceptState, fail: failState, fn: fn }; return this; }; module.exports = AcceptorStateMachine; },{}],253:[function(require,module,exports){ (function (process){ /* eslint guard-for-in:0 */ var AWS; /** * A set of utility methods for use with the AWS SDK. * * @!attribute abort * Return this value from an iterator function {each} or {arrayEach} * to break out of the iteration. * @example Breaking out of an iterator function * AWS.util.each({a: 1, b: 2, c: 3}, function(key, value) { * if (key == 'b') return AWS.util.abort; * }); * @see each * @see arrayEach * @api private */ var util = { engine: function engine() { if (util.isBrowser() && typeof navigator !== 'undefined') { return navigator.userAgent; } else { return process.platform + '/' + process.version; } }, userAgent: function userAgent() { var name = util.isBrowser() ? 'js' : 'nodejs'; var agent = 'aws-sdk-' + name + '/' + require('./core').VERSION; if (name === 'nodejs') agent += ' ' + util.engine(); return agent; }, isBrowser: function isBrowser() { return process && process.browser; }, isNode: function isNode() { return !util.isBrowser(); }, uriEscape: function uriEscape(string) { var output = encodeURIComponent(string); output = output.replace(/[^A-Za-z0-9_.~\-%]+/g, escape); // AWS percent-encodes some extra non-standard characters in a URI output = output.replace(/[*]/g, function(ch) { return '%' + ch.charCodeAt(0).toString(16).toUpperCase(); }); return output; }, uriEscapePath: function uriEscapePath(string) { var parts = []; util.arrayEach(string.split('/'), function (part) { parts.push(util.uriEscape(part)); }); return parts.join('/'); }, urlParse: function urlParse(url) { return util.url.parse(url); }, urlFormat: function urlFormat(url) { return util.url.format(url); }, queryStringParse: function queryStringParse(qs) { return util.querystring.parse(qs); }, queryParamsToString: function queryParamsToString(params) { var items = []; var escape = util.uriEscape; var sortedKeys = Object.keys(params).sort(); util.arrayEach(sortedKeys, function(name) { var value = params[name]; var ename = escape(name); var result = ename + '='; if (Array.isArray(value)) { var vals = []; util.arrayEach(value, function(item) { vals.push(escape(item)); }); result = ename + '=' + vals.sort().join('&' + ename + '='); } else if (value !== undefined && value !== null) { result = ename + '=' + escape(value); } items.push(result); }); return items.join('&'); }, readFileSync: function readFileSync(path) { if (util.isBrowser()) return null; return require('fs').readFileSync(path, 'utf-8'); }, base64: { encode: function encode64(string) { return new util.Buffer(string).toString('base64'); }, decode: function decode64(string) { return new util.Buffer(string, 'base64'); } }, buffer: { toStream: function toStream(buffer) { if (!util.Buffer.isBuffer(buffer)) buffer = new util.Buffer(buffer); var readable = new (util.stream.Readable)(); var pos = 0; readable._read = function(size) { if (pos >= buffer.length) return readable.push(null); var end = pos + size; if (end > buffer.length) end = buffer.length; readable.push(buffer.slice(pos, end)); pos = end; }; return readable; }, /** * Concatenates a list of Buffer objects. */ concat: function(buffers) { var length = 0, offset = 0, buffer = null, i; for (i = 0; i < buffers.length; i++) { length += buffers[i].length; } buffer = new util.Buffer(length); for (i = 0; i < buffers.length; i++) { buffers[i].copy(buffer, offset); offset += buffers[i].length; } return buffer; } }, string: { byteLength: function byteLength(string) { if (string === null || string === undefined) return 0; if (typeof string === 'string') string = new util.Buffer(string); if (typeof string.byteLength === 'number') { return string.byteLength; } else if (typeof string.length === 'number') { return string.length; } else if (typeof string.size === 'number') { return string.size; } else if (typeof string.path === 'string') { return require('fs').lstatSync(string.path).size; } else { throw util.error(new Error('Cannot determine length of ' + string), { object: string }); } }, upperFirst: function upperFirst(string) { return string[0].toUpperCase() + string.substr(1); }, lowerFirst: function lowerFirst(string) { return string[0].toLowerCase() + string.substr(1); } }, ini: { parse: function string(ini) { var currentSection, map = {}; util.arrayEach(ini.split(/\r?\n/), function(line) { line = line.split(/(^|\s)[;#]/)[0]; // remove comments var section = line.match(/^\s*\[([^\[\]]+)\]\s*$/); if (section) { currentSection = section[1]; } else if (currentSection) { var item = line.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/); if (item) { map[currentSection] = map[currentSection] || {}; map[currentSection][item[1]] = item[2]; } } }); return map; } }, fn: { noop: function() {}, /** * Turn a synchronous function into as "async" function by making it call * a callback. The underlying function is called with all but the last argument, * which is treated as the callback. The callback is passed passed a first argument * of null on success to mimick standard node callbacks. */ makeAsync: function makeAsync(fn, expectedArgs) { if (expectedArgs && expectedArgs <= fn.length) { return fn; } return function() { var args = Array.prototype.slice.call(arguments, 0); var callback = args.pop(); var result = fn.apply(null, args); callback(result); }; } }, /** * Date and time utility functions. */ date: { /** * @return [Date] the current JavaScript date object. Since all * AWS services rely on this date object, you can override * this function to provide a special time value to AWS service * requests. */ getDate: function getDate() { if (!AWS) AWS = require('./core'); if (AWS.config.systemClockOffset) { // use offset when non-zero return new Date(new Date().getTime() + AWS.config.systemClockOffset); } else { return new Date(); } }, /** * @return [String] the date in ISO-8601 format */ iso8601: function iso8601(date) { if (date === undefined) { date = util.date.getDate(); } return date.toISOString().replace(/\.\d{3}Z$/, 'Z'); }, /** * @return [String] the date in RFC 822 format */ rfc822: function rfc822(date) { if (date === undefined) { date = util.date.getDate(); } return date.toUTCString(); }, /** * @return [Integer] the UNIX timestamp value for the current time */ unixTimestamp: function unixTimestamp(date) { if (date === undefined) { date = util.date.getDate(); } return date.getTime() / 1000; }, /** * @param [String,number,Date] date * @return [Date] */ from: function format(date) { if (typeof date === 'number') { return new Date(date * 1000); // unix timestamp } else { return new Date(date); } }, /** * Given a Date or date-like value, this function formats the * date into a string of the requested value. * @param [String,number,Date] date * @param [String] formatter Valid formats are: # * 'iso8601' # * 'rfc822' # * 'unixTimestamp' * @return [String] */ format: function format(date, formatter) { if (!formatter) formatter = 'iso8601'; return util.date[formatter](util.date.from(date)); }, parseTimestamp: function parseTimestamp(value) { if (typeof value === 'number') { // unix timestamp (number) return new Date(value * 1000); } else if (value.match(/^\d+$/)) { // unix timestamp return new Date(value * 1000); } else if (value.match(/^\d{4}/)) { // iso8601 return new Date(value); } else if (value.match(/^\w{3},/)) { // rfc822 return new Date(value); } else { throw util.error( new Error('unhandled timestamp format: ' + value), {code: 'TimestampParserError'}); } } }, crypto: { crc32Table: [ 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D], crc32: function crc32(data) { var tbl = util.crypto.crc32Table; var crc = 0 ^ -1; if (typeof data === 'string') { data = new util.Buffer(data); } for (var i = 0; i < data.length; i++) { var code = data.readUInt8(i); crc = (crc >>> 8) ^ tbl[(crc ^ code) & 0xFF]; } return (crc ^ -1) >>> 0; }, hmac: function hmac(key, string, digest, fn) { if (!digest) digest = 'binary'; if (digest === 'buffer') { digest = undefined; } if (!fn) fn = 'sha256'; if (typeof string === 'string') string = new util.Buffer(string); return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); }, md5: function md5(data, digest, callback) { return util.crypto.hash('md5', data, digest, callback); }, sha256: function sha256(data, digest, callback) { return util.crypto.hash('sha256', data, digest, callback); }, hash: function(algorithm, data, digest, callback) { var hash = util.crypto.createHash(algorithm); if (!digest) { digest = 'binary'; } if (digest === 'buffer') { digest = undefined; } if (typeof data === 'string') data = new util.Buffer(data); var sliceFn = util.arraySliceFn(data); var isBuffer = util.Buffer.isBuffer(data); //Identifying objects with an ArrayBuffer as buffers if (util.isBrowser() && typeof ArrayBuffer !== 'undefined' && data && data.buffer instanceof ArrayBuffer) isBuffer = true; if (callback && typeof data === 'object' && typeof data.on === 'function' && !isBuffer) { data.on('data', function(chunk) { hash.update(chunk); }); data.on('error', function(err) { callback(err); }); data.on('end', function() { callback(null, hash.digest(digest)); }); } else if (callback && sliceFn && !isBuffer && typeof FileReader !== 'undefined') { // this might be a File/Blob var index = 0, size = 1024 * 512; var reader = new FileReader(); reader.onerror = function() { callback(new Error('Failed to read data.')); }; reader.onload = function() { var buf = new util.Buffer(new Uint8Array(reader.result)); hash.update(buf); index += buf.length; reader._continueReading(); }; reader._continueReading = function() { if (index >= data.size) { callback(null, hash.digest(digest)); return; } var back = index + size; if (back > data.size) back = data.size; reader.readAsArrayBuffer(sliceFn.call(data, index, back)); }; reader._continueReading(); } else { if (util.isBrowser() && typeof data === 'object' && !isBuffer) { data = new util.Buffer(new Uint8Array(data)); } var out = hash.update(data).digest(digest); if (callback) callback(null, out); return out; } }, toHex: function toHex(data) { var out = []; for (var i = 0; i < data.length; i++) { out.push(('0' + data.charCodeAt(i).toString(16)).substr(-2, 2)); } return out.join(''); }, createHash: function createHash(algorithm) { return util.crypto.lib.createHash(algorithm); } }, /** @!ignore */ /* Abort constant */ abort: {}, each: function each(object, iterFunction) { for (var key in object) { if (Object.prototype.hasOwnProperty.call(object, key)) { var ret = iterFunction.call(this, key, object[key]); if (ret === util.abort) break; } } }, arrayEach: function arrayEach(array, iterFunction) { for (var idx in array) { if (Object.prototype.hasOwnProperty.call(array, idx)) { var ret = iterFunction.call(this, array[idx], parseInt(idx, 10)); if (ret === util.abort) break; } } }, update: function update(obj1, obj2) { util.each(obj2, function iterator(key, item) { obj1[key] = item; }); return obj1; }, merge: function merge(obj1, obj2) { return util.update(util.copy(obj1), obj2); }, copy: function copy(object) { if (object === null || object === undefined) return object; var dupe = {}; // jshint forin:false for (var key in object) { dupe[key] = object[key]; } return dupe; }, isEmpty: function isEmpty(obj) { for (var prop in obj) { if (Object.prototype.hasOwnProperty.call(obj, prop)) { return false; } } return true; }, arraySliceFn: function arraySliceFn(obj) { var fn = obj.slice || obj.webkitSlice || obj.mozSlice; return typeof fn === 'function' ? fn : null; }, isType: function isType(obj, type) { // handle cross-"frame" objects if (typeof type === 'function') type = util.typeName(type); return Object.prototype.toString.call(obj) === '[object ' + type + ']'; }, typeName: function typeName(type) { if (Object.prototype.hasOwnProperty.call(type, 'name')) return type.name; var str = type.toString(); var match = str.match(/^\s*function (.+)\(/); return match ? match[1] : str; }, error: function error(err, options) { var originalError = null; if (typeof err.message === 'string' && err.message !== '') { if (typeof options === 'string' || (options && options.message)) { originalError = util.copy(err); originalError.message = err.message; } } err.message = err.message || null; if (typeof options === 'string') { err.message = options; } else if (typeof options === 'object' && options !== null) { util.update(err, options); if (options.message) err.message = options.message; if (options.code || options.name) err.code = options.code || options.name; if (options.stack) err.stack = options.stack; } if (typeof Object.defineProperty === 'function') { Object.defineProperty(err, 'name', {writable: true, enumerable: false}); Object.defineProperty(err, 'message', {enumerable: true}); } err.name = options && options.name || err.name || err.code || 'Error'; err.time = new Date(); if (originalError) err.originalError = originalError; return err; }, /** * @api private */ inherit: function inherit(klass, features) { var newObject = null; if (features === undefined) { features = klass; klass = Object; newObject = {}; } else { var ctor = function ConstructorWrapper() {}; ctor.prototype = klass.prototype; newObject = new ctor(); } // constructor not supplied, create pass-through ctor if (features.constructor === Object) { features.constructor = function() { if (klass !== Object) { return klass.apply(this, arguments); } }; } features.constructor.prototype = newObject; util.update(features.constructor.prototype, features); features.constructor.__super__ = klass; return features.constructor; }, /** * @api private */ mixin: function mixin() { var klass = arguments[0]; for (var i = 1; i < arguments.length; i++) { // jshint forin:false for (var prop in arguments[i].prototype) { var fn = arguments[i].prototype[prop]; if (prop !== 'constructor') { klass.prototype[prop] = fn; } } } return klass; }, /** * @api private */ hideProperties: function hideProperties(obj, props) { if (typeof Object.defineProperty !== 'function') return; util.arrayEach(props, function (key) { Object.defineProperty(obj, key, { enumerable: false, writable: true, configurable: true }); }); }, /** * @api private */ property: function property(obj, name, value, enumerable, isValue) { var opts = { configurable: true, enumerable: enumerable !== undefined ? enumerable : true }; if (typeof value === 'function' && !isValue) { opts.get = value; } else { opts.value = value; opts.writable = true; } Object.defineProperty(obj, name, opts); }, /** * @api private */ memoizedProperty: function memoizedProperty(obj, name, get, enumerable) { var cachedValue = null; // build enumerable attribute for each value with lazy accessor. util.property(obj, name, function() { if (cachedValue === null) { cachedValue = get(); } return cachedValue; }, enumerable); }, /** * TODO Remove in major version revision * This backfill populates response data without the * top-level payload name. * * @api private */ hoistPayloadMember: function hoistPayloadMember(resp) { var req = resp.request; var operation = req.operation; var output = req.service.api.operations[operation].output; if (output.payload) { var payloadMember = output.members[output.payload]; var responsePayload = resp.data[output.payload]; if (payloadMember.type === 'structure') { util.each(responsePayload, function(key, value) { util.property(resp.data, key, value, false); }); } } }, /** * Compute SHA-256 checksums of streams * * @api private */ computeSha256: function computeSha256(body, done) { if (util.isNode()) { var Stream = util.stream.Stream; var fs = require('fs'); if (body instanceof Stream) { if (typeof body.path === 'string') { // assume file object var settings = {}; if (typeof body.start === 'number') { settings.start = body.start; } if (typeof body.end === 'number') { settings.end = body.end; } body = fs.createReadStream(body.path, settings); } else { // TODO support other stream types return done(new Error('Non-file stream objects are ' + 'not supported with SigV4')); } } } util.crypto.sha256(body, 'hex', function(err, sha) { if (err) done(err); else done(null, sha); }); }, /** * @api private */ isClockSkewed: function isClockSkewed(serverTime) { if (serverTime) { util.property(AWS.config, 'isClockSkewed', Math.abs(new Date().getTime() - serverTime) >= 300000, false); return AWS.config.isClockSkewed; } }, applyClockOffset: function applyClockOffset(serverTime) { if (serverTime) AWS.config.systemClockOffset = serverTime - new Date().getTime(); }, /** * @api private */ extractRequestId: function extractRequestId(resp) { var requestId = resp.httpResponse.headers['x-amz-request-id'] || resp.httpResponse.headers['x-amzn-requestid']; if (!requestId && resp.data && resp.data.ResponseMetadata) { requestId = resp.data.ResponseMetadata.RequestId; } if (requestId) { resp.requestId = requestId; } if (resp.error) { resp.error.requestId = requestId; } }, /** * @api private */ addPromisesToRequests: function addPromisesToRequests(constructor, PromiseDependency) { PromiseDependency = PromiseDependency || null; if (!PromiseDependency && typeof Promise !== 'undefined') { PromiseDependency = Promise; } if (typeof PromiseDependency !== 'function') { delete constructor.prototype.promise; return; } constructor.prototype.promise = function promise() { var self = this; return new PromiseDependency(function(resolve, reject) { self.on('complete', function(resp) { if (resp.error) { reject(resp.error); } else { resolve(resp.data); } }); self.runTo(); }); } }, /** * @api private */ isDualstackAvailable: function isDualstackAvailable(service) { if (!service) return false; var metadata = require('../apis/metadata.json'); if (typeof service !== 'string') service = service.serviceIdentifier; if (typeof service !== 'string' || !metadata.hasOwnProperty(service)) return false; return !!metadata[service].dualstackAvailable; }, /** * @api private */ calculateRetryDelay: function calculateRetryDelay(retryCount, retryDelayOptions) { if (!retryDelayOptions) retryDelayOptions = {}; var customBackoff = retryDelayOptions.customBackoff || null; if (typeof customBackoff === 'function') { return customBackoff(retryCount); } var base = retryDelayOptions.base || 100; var delay = Math.random() * (Math.pow(2, retryCount) * base); return delay; }, /** * @api private */ handleRequestWithRetries: function handleRequestWithRetries(httpRequest, options, cb) { if (!options) options = {}; var http = AWS.HttpClient.getInstance(); var httpOptions = options.httpOptions || {}; var retryCount = 0; var errCallback = function(err) { var maxRetries = options.maxRetries || 0; if (err && err.code === 'TimeoutError') err.retryable = true; if (err && err.retryable && retryCount < maxRetries) { retryCount++; var delay = util.calculateRetryDelay(retryCount, options.retryDelayOptions); setTimeout(sendRequest, delay + (err.retryAfter || 0)); } else { cb(err); } }; var sendRequest = function() { var data = ''; http.handleRequest(httpRequest, httpOptions, function(httpResponse) { httpResponse.on('data', function(chunk) { data += chunk.toString(); }); httpResponse.on('end', function() { var statusCode = httpResponse.statusCode; if (statusCode < 300) { cb(null, data); } else { var retryAfter = parseInt(httpResponse.headers['retry-after'], 10) * 1000 || 0; var err = util.error(new Error(), { retryable: statusCode >= 500 || statusCode === 429 } ); if (retryAfter && err.retryable) err.retryAfter = retryAfter; errCallback(err); } }); }, errCallback); }; process.nextTick(sendRequest); } }; module.exports = util; }).call(this,require('_process')) },{"../apis/metadata.json":94,"./core":196,"_process":432,"fs":421}],254:[function(require,module,exports){ var util = require('../util'); var Shape = require('../model/shape'); function DomXmlParser() { } DomXmlParser.prototype.parse = function(xml, shape) { if (xml.replace(/^\s+/, '') === '') return {}; var result, error; try { if (window.DOMParser) { try { var parser = new DOMParser(); result = parser.parseFromString(xml, 'text/xml'); } catch (syntaxError) { throw util.error(new Error('Parse error in document'), { originalError: syntaxError, code: 'XMLParserError', retryable: true }); } if (result.documentElement === null) { throw util.error(new Error('Cannot parse empty document.'), { code: 'XMLParserError', retryable: true }); } var isError = result.getElementsByTagName('parsererror')[0]; if (isError && (isError.parentNode === result || isError.parentNode.nodeName === 'body' || isError.parentNode.parentNode === result || isError.parentNode.parentNode.nodeName === 'body')) { var errorElement = isError.getElementsByTagName('div')[0] || isError; throw util.error(new Error(errorElement.textContent || 'Parser error in document'), { code: 'XMLParserError', retryable: true }); } } else if (window.ActiveXObject) { result = new window.ActiveXObject('Microsoft.XMLDOM'); result.async = false; if (!result.loadXML(xml)) { throw util.error(new Error('Parse error in document'), { code: 'XMLParserError', retryable: true }); } } else { throw new Error('Cannot load XML parser'); } } catch (e) { error = e; } if (result && result.documentElement && !error) { var data = parseXml(result.documentElement, shape); var metadata = result.getElementsByTagName('ResponseMetadata')[0]; if (metadata) { data.ResponseMetadata = parseXml(metadata, {}); } return data; } else if (error) { throw util.error(error || new Error(), {code: 'XMLParserError', retryable: true}); } else { // empty xml document return {}; } }; function parseXml(xml, shape) { if (!shape) shape = {}; switch (shape.type) { case 'structure': return parseStructure(xml, shape); case 'map': return parseMap(xml, shape); case 'list': return parseList(xml, shape); case undefined: case null: return parseUnknown(xml); default: return parseScalar(xml, shape); } } function parseStructure(xml, shape) { var data = {}; if (xml === null) return data; util.each(shape.members, function(memberName, memberShape) { if (memberShape.isXmlAttribute) { if (Object.prototype.hasOwnProperty.call(xml.attributes, memberShape.name)) { var value = xml.attributes[memberShape.name].value; data[memberName] = parseXml({textContent: value}, memberShape); } } else { var xmlChild = memberShape.flattened ? xml : xml.getElementsByTagName(memberShape.name)[0]; if (xmlChild) { data[memberName] = parseXml(xmlChild, memberShape); } else if (!memberShape.flattened && memberShape.type === 'list') { data[memberName] = memberShape.defaultValue; } } }); return data; } function parseMap(xml, shape) { var data = {}; var xmlKey = shape.key.name || 'key'; var xmlValue = shape.value.name || 'value'; var tagName = shape.flattened ? shape.name : 'entry'; var child = xml.firstElementChild; while (child) { if (child.nodeName === tagName) { var key = child.getElementsByTagName(xmlKey)[0].textContent; var value = child.getElementsByTagName(xmlValue)[0]; data[key] = parseXml(value, shape.value); } child = child.nextElementSibling; } return data; } function parseList(xml, shape) { var data = []; var tagName = shape.flattened ? shape.name : (shape.member.name || 'member'); var child = xml.firstElementChild; while (child) { if (child.nodeName === tagName) { data.push(parseXml(child, shape.member)); } child = child.nextElementSibling; } return data; } function parseScalar(xml, shape) { if (xml.getAttribute) { var encoding = xml.getAttribute('encoding'); if (encoding === 'base64') { shape = new Shape.create({type: encoding}); } } var text = xml.textContent; if (text === '') text = null; if (typeof shape.toType === 'function') { return shape.toType(text); } else { return text; } } function parseUnknown(xml) { if (xml === undefined || xml === null) return ''; // empty object if (!xml.firstElementChild) { if (xml.parentNode.parentNode === null) return {}; if (xml.childNodes.length === 0) return ''; else return xml.textContent; } // object, parse as structure var shape = {type: 'structure', members: {}}; var child = xml.firstElementChild; while (child) { var tag = child.nodeName; if (Object.prototype.hasOwnProperty.call(shape.members, tag)) { // multiple tags of the same name makes it a list shape.members[tag].type = 'list'; } else { shape.members[tag] = {name: tag}; } child = child.nextElementSibling; } return parseStructure(xml, shape); } module.exports = DomXmlParser; },{"../model/shape":218,"../util":253}],255:[function(require,module,exports){ var util = require('../util'); var builder = require('xmlbuilder'); function XmlBuilder() { } XmlBuilder.prototype.toXML = function(params, shape, rootElement, noEmpty) { var xml = builder.create(rootElement); applyNamespaces(xml, shape); serialize(xml, params, shape); return xml.children.length > 0 || noEmpty ? xml.root().toString() : ''; }; function serialize(xml, value, shape) { switch (shape.type) { case 'structure': return serializeStructure(xml, value, shape); case 'map': return serializeMap(xml, value, shape); case 'list': return serializeList(xml, value, shape); default: return serializeScalar(xml, value, shape); } } function serializeStructure(xml, params, shape) { util.arrayEach(shape.memberNames, function(memberName) { var memberShape = shape.members[memberName]; if (memberShape.location !== 'body') return; var value = params[memberName]; var name = memberShape.name; if (value !== undefined && value !== null) { if (memberShape.isXmlAttribute) { xml.att(name, value); } else if (memberShape.flattened) { serialize(xml, value, memberShape); } else { var element = xml.ele(name); applyNamespaces(element, memberShape); serialize(element, value, memberShape); } } }); } function serializeMap(xml, map, shape) { var xmlKey = shape.key.name || 'key'; var xmlValue = shape.value.name || 'value'; util.each(map, function(key, value) { var entry = xml.ele(shape.flattened ? shape.name : 'entry'); serialize(entry.ele(xmlKey), key, shape.key); serialize(entry.ele(xmlValue), value, shape.value); }); } function serializeList(xml, list, shape) { if (shape.flattened) { util.arrayEach(list, function(value) { var name = shape.member.name || shape.name; var element = xml.ele(name); serialize(element, value, shape.member); }); } else { util.arrayEach(list, function(value) { var name = shape.member.name || 'member'; var element = xml.ele(name); serialize(element, value, shape.member); }); } } function serializeScalar(xml, value, shape) { xml.txt(shape.toWireFormat(value)); } function applyNamespaces(xml, shape) { var uri, prefix = 'xmlns'; if (shape.xmlNamespaceUri) { uri = shape.xmlNamespaceUri; if (shape.xmlNamespacePrefix) prefix += ':' + shape.xmlNamespacePrefix; } else if (xml.isRoot && shape.api.xmlNamespaceUri) { uri = shape.api.xmlNamespaceUri; } if (uri) xml.att(prefix, uri); } module.exports = XmlBuilder; },{"../util":253,"xmlbuilder":418}],256:[function(require,module,exports){ 'use strict' exports.byteLength = byteLength exports.toByteArray = toByteArray exports.fromByteArray = fromByteArray var lookup = [] var revLookup = [] var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' for (var i = 0, len = code.length; i < len; ++i) { lookup[i] = code[i] revLookup[code.charCodeAt(i)] = i } revLookup['-'.charCodeAt(0)] = 62 revLookup['_'.charCodeAt(0)] = 63 function placeHoldersCount (b64) { var len = b64.length if (len % 4 > 0) { throw new Error('Invalid string. Length must be a multiple of 4') } // the number of equal signs (place holders) // if there are two placeholders, than the two characters before it // represent one byte // if there is only one, then the three characters before it represent 2 bytes // this is just a cheap hack to not do indexOf twice return b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0 } function byteLength (b64) { // base64 is 4/3 + up to two characters of the original data return b64.length * 3 / 4 - placeHoldersCount(b64) } function toByteArray (b64) { var i, j, l, tmp, placeHolders, arr var len = b64.length placeHolders = placeHoldersCount(b64) arr = new Arr(len * 3 / 4 - placeHolders) // if there are placeholders, only get up to the last complete 4 chars l = placeHolders > 0 ? len - 4 : len var L = 0 for (i = 0, j = 0; i < l; i += 4, j += 3) { tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)] arr[L++] = (tmp >> 16) & 0xFF arr[L++] = (tmp >> 8) & 0xFF arr[L++] = tmp & 0xFF } if (placeHolders === 2) { tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4) arr[L++] = tmp & 0xFF } else if (placeHolders === 1) { tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2) arr[L++] = (tmp >> 8) & 0xFF arr[L++] = tmp & 0xFF } return arr } function tripletToBase64 (num) { return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F] } function encodeChunk (uint8, start, end) { var tmp var output = [] for (var i = start; i < end; i += 3) { tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2]) output.push(tripletToBase64(tmp)) } return output.join('') } function fromByteArray (uint8) { var tmp var len = uint8.length var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes var output = '' var parts = [] var maxChunkLength = 16383 // must be multiple of 3 // go through the array every three bytes, we'll deal with trailing stuff later for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) } // pad the end with zeros, but make sure to not forget the extra bytes if (extraBytes === 1) { tmp = uint8[len - 1] output += lookup[tmp >> 2] output += lookup[(tmp << 4) & 0x3F] output += '==' } else if (extraBytes === 2) { tmp = (uint8[len - 2] << 8) + (uint8[len - 1]) output += lookup[tmp >> 10] output += lookup[(tmp >> 4) & 0x3F] output += lookup[(tmp << 2) & 0x3F] output += '=' } parts.push(output) return parts.join('') } },{}],257:[function(require,module,exports){ (function (Buffer){ var DuplexStream = require('readable-stream/duplex') , util = require('util') function BufferList (callback) { if (!(this instanceof BufferList)) return new BufferList(callback) this._bufs = [] this.length = 0 if (typeof callback == 'function') { this._callback = callback var piper = function (err) { if (this._callback) { this._callback(err) this._callback = null } }.bind(this) this.on('pipe', function (src) { src.on('error', piper) }) this.on('unpipe', function (src) { src.removeListener('error', piper) }) } else if (Buffer.isBuffer(callback)) this.append(callback) else if (Array.isArray(callback)) { callback.forEach(function (b) { Buffer.isBuffer(b) && this.append(b) }.bind(this)) } DuplexStream.call(this) } util.inherits(BufferList, DuplexStream) BufferList.prototype._offset = function (offset) { var tot = 0, i = 0, _t for (; i < this._bufs.length; i++) { _t = tot + this._bufs[i].length if (offset < _t) return [ i, offset - tot ] tot = _t } } BufferList.prototype.append = function (buf) { var isBuffer = Buffer.isBuffer(buf) || buf instanceof BufferList // coerce number arguments to strings, since Buffer(number) does // uninitialized memory allocation if (typeof buf == 'number') buf = buf.toString() this._bufs.push(isBuffer ? buf : new Buffer(buf)) this.length += buf.length return this } BufferList.prototype._write = function (buf, encoding, callback) { this.append(buf) if (callback) callback() } BufferList.prototype._read = function (size) { if (!this.length) return this.push(null) size = Math.min(size, this.length) this.push(this.slice(0, size)) this.consume(size) } BufferList.prototype.end = function (chunk) { DuplexStream.prototype.end.call(this, chunk) if (this._callback) { this._callback(null, this.slice()) this._callback = null } } BufferList.prototype.get = function (index) { return this.slice(index, index + 1)[0] } BufferList.prototype.slice = function (start, end) { return this.copy(null, 0, start, end) } BufferList.prototype.copy = function (dst, dstStart, srcStart, srcEnd) { if (typeof srcStart != 'number' || srcStart < 0) srcStart = 0 if (typeof srcEnd != 'number' || srcEnd > this.length) srcEnd = this.length if (srcStart >= this.length) return dst || new Buffer(0) if (srcEnd <= 0) return dst || new Buffer(0) var copy = !!dst , off = this._offset(srcStart) , len = srcEnd - srcStart , bytes = len , bufoff = (copy && dstStart) || 0 , start = off[1] , l , i // copy/slice everything if (srcStart === 0 && srcEnd == this.length) { if (!copy) // slice, just return a full concat return Buffer.concat(this._bufs) // copy, need to copy individual buffers for (i = 0; i < this._bufs.length; i++) { this._bufs[i].copy(dst, bufoff) bufoff += this._bufs[i].length } return dst } // easy, cheap case where it's a subset of one of the buffers if (bytes <= this._bufs[off[0]].length - start) { return copy ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) : this._bufs[off[0]].slice(start, start + bytes) } if (!copy) // a slice, we need something to copy in to dst = new Buffer(len) for (i = off[0]; i < this._bufs.length; i++) { l = this._bufs[i].length - start if (bytes > l) { this._bufs[i].copy(dst, bufoff, start) } else { this._bufs[i].copy(dst, bufoff, start, start + bytes) break } bufoff += l bytes -= l if (start) start = 0 } return dst } BufferList.prototype.toString = function (encoding, start, end) { return this.slice(start, end).toString(encoding) } BufferList.prototype.consume = function (bytes) { while (this._bufs.length) { if (bytes > this._bufs[0].length) { bytes -= this._bufs[0].length this.length -= this._bufs[0].length this._bufs.shift() } else { this._bufs[0] = this._bufs[0].slice(bytes) this.length -= bytes break } } return this } BufferList.prototype.duplicate = function () { var i = 0 , copy = new BufferList() for (; i < this._bufs.length; i++) copy.append(this._bufs[i]) return copy } BufferList.prototype.destroy = function () { this._bufs.length = 0; this.length = 0; this.push(null); } ;(function () { var methods = { 'readDoubleBE' : 8 , 'readDoubleLE' : 8 , 'readFloatBE' : 4 , 'readFloatLE' : 4 , 'readInt32BE' : 4 , 'readInt32LE' : 4 , 'readUInt32BE' : 4 , 'readUInt32LE' : 4 , 'readInt16BE' : 2 , 'readInt16LE' : 2 , 'readUInt16BE' : 2 , 'readUInt16LE' : 2 , 'readInt8' : 1 , 'readUInt8' : 1 } for (var m in methods) { (function (m) { BufferList.prototype[m] = function (offset) { return this.slice(offset, offset + methods[m])[m](0) } }(m)) } }()) module.exports = BufferList }).call(this,require("buffer").Buffer) },{"buffer":424,"readable-stream/duplex":380,"util":455}],258:[function(require,module,exports){ (function (global){ 'use strict'; var buffer = require('buffer'); var Buffer = buffer.Buffer; var SlowBuffer = buffer.SlowBuffer; var MAX_LEN = buffer.kMaxLength || 2147483647; exports.alloc = function alloc(size, fill, encoding) { if (typeof Buffer.alloc === 'function') { return Buffer.alloc(size, fill, encoding); } if (typeof encoding === 'number') { throw new TypeError('encoding must not be number'); } if (typeof size !== 'number') { throw new TypeError('size must be a number'); } if (size > MAX_LEN) { throw new RangeError('size is too large'); } var enc = encoding; var _fill = fill; if (_fill === undefined) { enc = undefined; _fill = 0; } var buf = new Buffer(size); if (typeof _fill === 'string') { var fillBuf = new Buffer(_fill, enc); var flen = fillBuf.length; var i = -1; while (++i < size) { buf[i] = fillBuf[i % flen]; } } else { buf.fill(_fill); } return buf; } exports.allocUnsafe = function allocUnsafe(size) { if (typeof Buffer.allocUnsafe === 'function') { return Buffer.allocUnsafe(size); } if (typeof size !== 'number') { throw new TypeError('size must be a number'); } if (size > MAX_LEN) { throw new RangeError('size is too large'); } return new Buffer(size); } exports.from = function from(value, encodingOrOffset, length) { if (typeof Buffer.from === 'function' && (!global.Uint8Array || Uint8Array.from !== Buffer.from)) { return Buffer.from(value, encodingOrOffset, length); } if (typeof value === 'number') { throw new TypeError('"value" argument must not be a number'); } if (typeof value === 'string') { return new Buffer(value, encodingOrOffset); } if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { var offset = encodingOrOffset; if (arguments.length === 1) { return new Buffer(value); } if (typeof offset === 'undefined') { offset = 0; } var len = length; if (typeof len === 'undefined') { len = value.byteLength - offset; } if (offset >= value.byteLength) { throw new RangeError('\'offset\' is out of bounds'); } if (len > value.byteLength - offset) { throw new RangeError('\'length\' is out of bounds'); } return new Buffer(value.slice(offset, offset + len)); } if (Buffer.isBuffer(value)) { var out = new Buffer(value.length); value.copy(out, 0, 0, value.length); return out; } if (value) { if (Array.isArray(value) || (typeof ArrayBuffer !== 'undefined' && value.buffer instanceof ArrayBuffer) || 'length' in value) { return new Buffer(value); } if (value.type === 'Buffer' && Array.isArray(value.data)) { return new Buffer(value.data); } } throw new TypeError('First argument must be a string, Buffer, ' + 'ArrayBuffer, Array, or array-like object.'); } exports.allocUnsafeSlow = function allocUnsafeSlow(size) { if (typeof Buffer.allocUnsafeSlow === 'function') { return Buffer.allocUnsafeSlow(size); } if (typeof size !== 'number') { throw new TypeError('size must be a number'); } if (size >= MAX_LEN) { throw new RangeError('size is too large'); } return new SlowBuffer(size); } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"buffer":424}],259:[function(require,module,exports){ (function (global){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /* eslint-disable no-proto */ 'use strict' var base64 = require('base64-js') var ieee754 = require('ieee754') var isArray = require('isarray') exports.Buffer = Buffer exports.SlowBuffer = SlowBuffer exports.INSPECT_MAX_BYTES = 50 /** * If `Buffer.TYPED_ARRAY_SUPPORT`: * === true Use Uint8Array implementation (fastest) * === false Use Object implementation (most compatible, even IE6) * * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, * Opera 11.6+, iOS 4.2+. * * Due to various browser bugs, sometimes the Object implementation will be used even * when the browser supports typed arrays. * * Note: * * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. * * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. * * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of * incorrect length in some situations. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they * get the Object implementation, which is slower but behaves correctly. */ Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined ? global.TYPED_ARRAY_SUPPORT : typedArraySupport() /* * Export kMaxLength after typed array support is determined. */ exports.kMaxLength = kMaxLength() function typedArraySupport () { try { var arr = new Uint8Array(1) arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }} return arr.foo() === 42 && // typed array instances can be augmented typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` } catch (e) { return false } } function kMaxLength () { return Buffer.TYPED_ARRAY_SUPPORT ? 0x7fffffff : 0x3fffffff } function createBuffer (that, length) { if (kMaxLength() < length) { throw new RangeError('Invalid typed array length') } if (Buffer.TYPED_ARRAY_SUPPORT) { // Return an augmented `Uint8Array` instance, for best performance that = new Uint8Array(length) that.__proto__ = Buffer.prototype } else { // Fallback: Return an object instance of the Buffer class if (that === null) { that = new Buffer(length) } that.length = length } return that } /** * The Buffer constructor returns instances of `Uint8Array` that have their * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of * `Uint8Array`, so the returned instances will have all the node `Buffer` methods * and the `Uint8Array` methods. Square bracket notation works as expected -- it * returns a single octet. * * The `Uint8Array` prototype remains unmodified. */ function Buffer (arg, encodingOrOffset, length) { if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { return new Buffer(arg, encodingOrOffset, length) } // Common case. if (typeof arg === 'number') { if (typeof encodingOrOffset === 'string') { throw new Error( 'If encoding is specified then the first argument must be a string' ) } return allocUnsafe(this, arg) } return from(this, arg, encodingOrOffset, length) } Buffer.poolSize = 8192 // not used by this implementation // TODO: Legacy, not needed anymore. Remove in next major version. Buffer._augment = function (arr) { arr.__proto__ = Buffer.prototype return arr } function from (that, value, encodingOrOffset, length) { if (typeof value === 'number') { throw new TypeError('"value" argument must not be a number') } if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { return fromArrayBuffer(that, value, encodingOrOffset, length) } if (typeof value === 'string') { return fromString(that, value, encodingOrOffset) } return fromObject(that, value) } /** * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError * if value is a number. * Buffer.from(str[, encoding]) * Buffer.from(array) * Buffer.from(buffer) * Buffer.from(arrayBuffer[, byteOffset[, length]]) **/ Buffer.from = function (value, encodingOrOffset, length) { return from(null, value, encodingOrOffset, length) } if (Buffer.TYPED_ARRAY_SUPPORT) { Buffer.prototype.__proto__ = Uint8Array.prototype Buffer.__proto__ = Uint8Array if (typeof Symbol !== 'undefined' && Symbol.species && Buffer[Symbol.species] === Buffer) { // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 Object.defineProperty(Buffer, Symbol.species, { value: null, configurable: true }) } } function assertSize (size) { if (typeof size !== 'number') { throw new TypeError('"size" argument must be a number') } else if (size < 0) { throw new RangeError('"size" argument must not be negative') } } function alloc (that, size, fill, encoding) { assertSize(size) if (size <= 0) { return createBuffer(that, size) } if (fill !== undefined) { // Only pay attention to encoding if it's a string. This // prevents accidentally sending in a number that would // be interpretted as a start offset. return typeof encoding === 'string' ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill) } return createBuffer(that, size) } /** * Creates a new filled Buffer instance. * alloc(size[, fill[, encoding]]) **/ Buffer.alloc = function (size, fill, encoding) { return alloc(null, size, fill, encoding) } function allocUnsafe (that, size) { assertSize(size) that = createBuffer(that, size < 0 ? 0 : checked(size) | 0) if (!Buffer.TYPED_ARRAY_SUPPORT) { for (var i = 0; i < size; ++i) { that[i] = 0 } } return that } /** * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. * */ Buffer.allocUnsafe = function (size) { return allocUnsafe(null, size) } /** * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. */ Buffer.allocUnsafeSlow = function (size) { return allocUnsafe(null, size) } function fromString (that, string, encoding) { if (typeof encoding !== 'string' || encoding === '') { encoding = 'utf8' } if (!Buffer.isEncoding(encoding)) { throw new TypeError('"encoding" must be a valid string encoding') } var length = byteLength(string, encoding) | 0 that = createBuffer(that, length) var actual = that.write(string, encoding) if (actual !== length) { // Writing a hex string, for example, that contains invalid characters will // cause everything after the first invalid character to be ignored. (e.g. // 'abxxcd' will be treated as 'ab') that = that.slice(0, actual) } return that } function fromArrayLike (that, array) { var length = array.length < 0 ? 0 : checked(array.length) | 0 that = createBuffer(that, length) for (var i = 0; i < length; i += 1) { that[i] = array[i] & 255 } return that } function fromArrayBuffer (that, array, byteOffset, length) { array.byteLength // this throws if `array` is not a valid ArrayBuffer if (byteOffset < 0 || array.byteLength < byteOffset) { throw new RangeError('\'offset\' is out of bounds') } if (array.byteLength < byteOffset + (length || 0)) { throw new RangeError('\'length\' is out of bounds') } if (byteOffset === undefined && length === undefined) { array = new Uint8Array(array) } else if (length === undefined) { array = new Uint8Array(array, byteOffset) } else { array = new Uint8Array(array, byteOffset, length) } if (Buffer.TYPED_ARRAY_SUPPORT) { // Return an augmented `Uint8Array` instance, for best performance that = array that.__proto__ = Buffer.prototype } else { // Fallback: Return an object instance of the Buffer class that = fromArrayLike(that, array) } return that } function fromObject (that, obj) { if (Buffer.isBuffer(obj)) { var len = checked(obj.length) | 0 that = createBuffer(that, len) if (that.length === 0) { return that } obj.copy(that, 0, 0, len) return that } if (obj) { if ((typeof ArrayBuffer !== 'undefined' && obj.buffer instanceof ArrayBuffer) || 'length' in obj) { if (typeof obj.length !== 'number' || isnan(obj.length)) { return createBuffer(that, 0) } return fromArrayLike(that, obj) } if (obj.type === 'Buffer' && isArray(obj.data)) { return fromArrayLike(that, obj.data) } } throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') } function checked (length) { // Note: cannot use `length < kMaxLength()` here because that fails when // length is NaN (which is otherwise coerced to zero.) if (length >= kMaxLength()) { throw new RangeError('Attempt to allocate Buffer larger than maximum ' + 'size: 0x' + kMaxLength().toString(16) + ' bytes') } return length | 0 } function SlowBuffer (length) { if (+length != length) { // eslint-disable-line eqeqeq length = 0 } return Buffer.alloc(+length) } Buffer.isBuffer = function isBuffer (b) { return !!(b != null && b._isBuffer) } Buffer.compare = function compare (a, b) { if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { throw new TypeError('Arguments must be Buffers') } if (a === b) return 0 var x = a.length var y = b.length for (var i = 0, len = Math.min(x, y); i < len; ++i) { if (a[i] !== b[i]) { x = a[i] y = b[i] break } } if (x < y) return -1 if (y < x) return 1 return 0 } Buffer.isEncoding = function isEncoding (encoding) { switch (String(encoding).toLowerCase()) { case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'latin1': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': return true default: return false } } Buffer.concat = function concat (list, length) { if (!isArray(list)) { throw new TypeError('"list" argument must be an Array of Buffers') } if (list.length === 0) { return Buffer.alloc(0) } var i if (length === undefined) { length = 0 for (i = 0; i < list.length; ++i) { length += list[i].length } } var buffer = Buffer.allocUnsafe(length) var pos = 0 for (i = 0; i < list.length; ++i) { var buf = list[i] if (!Buffer.isBuffer(buf)) { throw new TypeError('"list" argument must be an Array of Buffers') } buf.copy(buffer, pos) pos += buf.length } return buffer } function byteLength (string, encoding) { if (Buffer.isBuffer(string)) { return string.length } if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { return string.byteLength } if (typeof string !== 'string') { string = '' + string } var len = string.length if (len === 0) return 0 // Use a for loop to avoid recursion var loweredCase = false for (;;) { switch (encoding) { case 'ascii': case 'latin1': case 'binary': return len case 'utf8': case 'utf-8': case undefined: return utf8ToBytes(string).length case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': return len * 2 case 'hex': return len >>> 1 case 'base64': return base64ToBytes(string).length default: if (loweredCase) return utf8ToBytes(string).length // assume utf8 encoding = ('' + encoding).toLowerCase() loweredCase = true } } } Buffer.byteLength = byteLength function slowToString (encoding, start, end) { var loweredCase = false // No need to verify that "this.length <= MAX_UINT32" since it's a read-only // property of a typed array. // This behaves neither like String nor Uint8Array in that we set start/end // to their upper/lower bounds if the value passed is out of range. // undefined is handled specially as per ECMA-262 6th Edition, // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. if (start === undefined || start < 0) { start = 0 } // Return early if start > this.length. Done here to prevent potential uint32 // coercion fail below. if (start > this.length) { return '' } if (end === undefined || end > this.length) { end = this.length } if (end <= 0) { return '' } // Force coersion to uint32. This will also coerce falsey/NaN values to 0. end >>>= 0 start >>>= 0 if (end <= start) { return '' } if (!encoding) encoding = 'utf8' while (true) { switch (encoding) { case 'hex': return hexSlice(this, start, end) case 'utf8': case 'utf-8': return utf8Slice(this, start, end) case 'ascii': return asciiSlice(this, start, end) case 'latin1': case 'binary': return latin1Slice(this, start, end) case 'base64': return base64Slice(this, start, end) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': return utf16leSlice(this, start, end) default: if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) encoding = (encoding + '').toLowerCase() loweredCase = true } } } // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect // Buffer instances. Buffer.prototype._isBuffer = true function swap (b, n, m) { var i = b[n] b[n] = b[m] b[m] = i } Buffer.prototype.swap16 = function swap16 () { var len = this.length if (len % 2 !== 0) { throw new RangeError('Buffer size must be a multiple of 16-bits') } for (var i = 0; i < len; i += 2) { swap(this, i, i + 1) } return this } Buffer.prototype.swap32 = function swap32 () { var len = this.length if (len % 4 !== 0) { throw new RangeError('Buffer size must be a multiple of 32-bits') } for (var i = 0; i < len; i += 4) { swap(this, i, i + 3) swap(this, i + 1, i + 2) } return this } Buffer.prototype.swap64 = function swap64 () { var len = this.length if (len % 8 !== 0) { throw new RangeError('Buffer size must be a multiple of 64-bits') } for (var i = 0; i < len; i += 8) { swap(this, i, i + 7) swap(this, i + 1, i + 6) swap(this, i + 2, i + 5) swap(this, i + 3, i + 4) } return this } Buffer.prototype.toString = function toString () { var length = this.length | 0 if (length === 0) return '' if (arguments.length === 0) return utf8Slice(this, 0, length) return slowToString.apply(this, arguments) } Buffer.prototype.equals = function equals (b) { if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') if (this === b) return true return Buffer.compare(this, b) === 0 } Buffer.prototype.inspect = function inspect () { var str = '' var max = exports.INSPECT_MAX_BYTES if (this.length > 0) { str = this.toString('hex', 0, max).match(/.{2}/g).join(' ') if (this.length > max) str += ' ... ' } return '' } Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { if (!Buffer.isBuffer(target)) { throw new TypeError('Argument must be a Buffer') } if (start === undefined) { start = 0 } if (end === undefined) { end = target ? target.length : 0 } if (thisStart === undefined) { thisStart = 0 } if (thisEnd === undefined) { thisEnd = this.length } if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { throw new RangeError('out of range index') } if (thisStart >= thisEnd && start >= end) { return 0 } if (thisStart >= thisEnd) { return -1 } if (start >= end) { return 1 } start >>>= 0 end >>>= 0 thisStart >>>= 0 thisEnd >>>= 0 if (this === target) return 0 var x = thisEnd - thisStart var y = end - start var len = Math.min(x, y) var thisCopy = this.slice(thisStart, thisEnd) var targetCopy = target.slice(start, end) for (var i = 0; i < len; ++i) { if (thisCopy[i] !== targetCopy[i]) { x = thisCopy[i] y = targetCopy[i] break } } if (x < y) return -1 if (y < x) return 1 return 0 } // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, // OR the last index of `val` in `buffer` at offset <= `byteOffset`. // // Arguments: // - buffer - a Buffer to search // - val - a string, Buffer, or number // - byteOffset - an index into `buffer`; will be clamped to an int32 // - encoding - an optional encoding, relevant is val is a string // - dir - true for indexOf, false for lastIndexOf function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { // Empty buffer means no match if (buffer.length === 0) return -1 // Normalize byteOffset if (typeof byteOffset === 'string') { encoding = byteOffset byteOffset = 0 } else if (byteOffset > 0x7fffffff) { byteOffset = 0x7fffffff } else if (byteOffset < -0x80000000) { byteOffset = -0x80000000 } byteOffset = +byteOffset // Coerce to Number. if (isNaN(byteOffset)) { // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer byteOffset = dir ? 0 : (buffer.length - 1) } // Normalize byteOffset: negative offsets start from the end of the buffer if (byteOffset < 0) byteOffset = buffer.length + byteOffset if (byteOffset >= buffer.length) { if (dir) return -1 else byteOffset = buffer.length - 1 } else if (byteOffset < 0) { if (dir) byteOffset = 0 else return -1 } // Normalize val if (typeof val === 'string') { val = Buffer.from(val, encoding) } // Finally, search either indexOf (if dir is true) or lastIndexOf if (Buffer.isBuffer(val)) { // Special case: looking for empty string/buffer always fails if (val.length === 0) { return -1 } return arrayIndexOf(buffer, val, byteOffset, encoding, dir) } else if (typeof val === 'number') { val = val & 0xFF // Search for a byte value [0-255] if (Buffer.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf === 'function') { if (dir) { return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) } else { return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) } } return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) } throw new TypeError('val must be string, number or Buffer') } function arrayIndexOf (arr, val, byteOffset, encoding, dir) { var indexSize = 1 var arrLength = arr.length var valLength = val.length if (encoding !== undefined) { encoding = String(encoding).toLowerCase() if (encoding === 'ucs2' || encoding === 'ucs-2' || encoding === 'utf16le' || encoding === 'utf-16le') { if (arr.length < 2 || val.length < 2) { return -1 } indexSize = 2 arrLength /= 2 valLength /= 2 byteOffset /= 2 } } function read (buf, i) { if (indexSize === 1) { return buf[i] } else { return buf.readUInt16BE(i * indexSize) } } var i if (dir) { var foundIndex = -1 for (i = byteOffset; i < arrLength; i++) { if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { if (foundIndex === -1) foundIndex = i if (i - foundIndex + 1 === valLength) return foundIndex * indexSize } else { if (foundIndex !== -1) i -= i - foundIndex foundIndex = -1 } } } else { if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength for (i = byteOffset; i >= 0; i--) { var found = true for (var j = 0; j < valLength; j++) { if (read(arr, i + j) !== read(val, j)) { found = false break } } if (found) return i } } return -1 } Buffer.prototype.includes = function includes (val, byteOffset, encoding) { return this.indexOf(val, byteOffset, encoding) !== -1 } Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { return bidirectionalIndexOf(this, val, byteOffset, encoding, true) } Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { return bidirectionalIndexOf(this, val, byteOffset, encoding, false) } function hexWrite (buf, string, offset, length) { offset = Number(offset) || 0 var remaining = buf.length - offset if (!length) { length = remaining } else { length = Number(length) if (length > remaining) { length = remaining } } // must be an even number of digits var strLen = string.length if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') if (length > strLen / 2) { length = strLen / 2 } for (var i = 0; i < length; ++i) { var parsed = parseInt(string.substr(i * 2, 2), 16) if (isNaN(parsed)) return i buf[offset + i] = parsed } return i } function utf8Write (buf, string, offset, length) { return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) } function asciiWrite (buf, string, offset, length) { return blitBuffer(asciiToBytes(string), buf, offset, length) } function latin1Write (buf, string, offset, length) { return asciiWrite(buf, string, offset, length) } function base64Write (buf, string, offset, length) { return blitBuffer(base64ToBytes(string), buf, offset, length) } function ucs2Write (buf, string, offset, length) { return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) } Buffer.prototype.write = function write (string, offset, length, encoding) { // Buffer#write(string) if (offset === undefined) { encoding = 'utf8' length = this.length offset = 0 // Buffer#write(string, encoding) } else if (length === undefined && typeof offset === 'string') { encoding = offset length = this.length offset = 0 // Buffer#write(string, offset[, length][, encoding]) } else if (isFinite(offset)) { offset = offset | 0 if (isFinite(length)) { length = length | 0 if (encoding === undefined) encoding = 'utf8' } else { encoding = length length = undefined } // legacy write(string, encoding, offset, length) - remove in v0.13 } else { throw new Error( 'Buffer.write(string, encoding, offset[, length]) is no longer supported' ) } var remaining = this.length - offset if (length === undefined || length > remaining) length = remaining if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { throw new RangeError('Attempt to write outside buffer bounds') } if (!encoding) encoding = 'utf8' var loweredCase = false for (;;) { switch (encoding) { case 'hex': return hexWrite(this, string, offset, length) case 'utf8': case 'utf-8': return utf8Write(this, string, offset, length) case 'ascii': return asciiWrite(this, string, offset, length) case 'latin1': case 'binary': return latin1Write(this, string, offset, length) case 'base64': // Warning: maxLength not taken into account in base64Write return base64Write(this, string, offset, length) case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': return ucs2Write(this, string, offset, length) default: if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) encoding = ('' + encoding).toLowerCase() loweredCase = true } } } Buffer.prototype.toJSON = function toJSON () { return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) } } function base64Slice (buf, start, end) { if (start === 0 && end === buf.length) { return base64.fromByteArray(buf) } else { return base64.fromByteArray(buf.slice(start, end)) } } function utf8Slice (buf, start, end) { end = Math.min(buf.length, end) var res = [] var i = start while (i < end) { var firstByte = buf[i] var codePoint = null var bytesPerSequence = (firstByte > 0xEF) ? 4 : (firstByte > 0xDF) ? 3 : (firstByte > 0xBF) ? 2 : 1 if (i + bytesPerSequence <= end) { var secondByte, thirdByte, fourthByte, tempCodePoint switch (bytesPerSequence) { case 1: if (firstByte < 0x80) { codePoint = firstByte } break case 2: secondByte = buf[i + 1] if ((secondByte & 0xC0) === 0x80) { tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) if (tempCodePoint > 0x7F) { codePoint = tempCodePoint } } break case 3: secondByte = buf[i + 1] thirdByte = buf[i + 2] if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { codePoint = tempCodePoint } } break case 4: secondByte = buf[i + 1] thirdByte = buf[i + 2] fourthByte = buf[i + 3] if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { codePoint = tempCodePoint } } } } if (codePoint === null) { // we did not generate a valid codePoint so insert a // replacement char (U+FFFD) and advance only 1 byte codePoint = 0xFFFD bytesPerSequence = 1 } else if (codePoint > 0xFFFF) { // encode to utf16 (surrogate pair dance) codePoint -= 0x10000 res.push(codePoint >>> 10 & 0x3FF | 0xD800) codePoint = 0xDC00 | codePoint & 0x3FF } res.push(codePoint) i += bytesPerSequence } return decodeCodePointsArray(res) } // Based on http://stackoverflow.com/a/22747272/680742, the browser with // the lowest limit is Chrome, with 0x10000 args. // We go 1 magnitude less, for safety var MAX_ARGUMENTS_LENGTH = 0x1000 function decodeCodePointsArray (codePoints) { var len = codePoints.length if (len <= MAX_ARGUMENTS_LENGTH) { return String.fromCharCode.apply(String, codePoints) // avoid extra slice() } // Decode in chunks to avoid "call stack size exceeded". var res = '' var i = 0 while (i < len) { res += String.fromCharCode.apply( String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) ) } return res } function asciiSlice (buf, start, end) { var ret = '' end = Math.min(buf.length, end) for (var i = start; i < end; ++i) { ret += String.fromCharCode(buf[i] & 0x7F) } return ret } function latin1Slice (buf, start, end) { var ret = '' end = Math.min(buf.length, end) for (var i = start; i < end; ++i) { ret += String.fromCharCode(buf[i]) } return ret } function hexSlice (buf, start, end) { var len = buf.length if (!start || start < 0) start = 0 if (!end || end < 0 || end > len) end = len var out = '' for (var i = start; i < end; ++i) { out += toHex(buf[i]) } return out } function utf16leSlice (buf, start, end) { var bytes = buf.slice(start, end) var res = '' for (var i = 0; i < bytes.length; i += 2) { res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256) } return res } Buffer.prototype.slice = function slice (start, end) { var len = this.length start = ~~start end = end === undefined ? len : ~~end if (start < 0) { start += len if (start < 0) start = 0 } else if (start > len) { start = len } if (end < 0) { end += len if (end < 0) end = 0 } else if (end > len) { end = len } if (end < start) end = start var newBuf if (Buffer.TYPED_ARRAY_SUPPORT) { newBuf = this.subarray(start, end) newBuf.__proto__ = Buffer.prototype } else { var sliceLen = end - start newBuf = new Buffer(sliceLen, undefined) for (var i = 0; i < sliceLen; ++i) { newBuf[i] = this[i + start] } } return newBuf } /* * Need to make sure that buffer isn't trying to write out of bounds. */ function checkOffset (offset, ext, length) { if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') } Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) checkOffset(offset, byteLength, this.length) var val = this[offset] var mul = 1 var i = 0 while (++i < byteLength && (mul *= 0x100)) { val += this[offset + i] * mul } return val } Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) { checkOffset(offset, byteLength, this.length) } var val = this[offset + --byteLength] var mul = 1 while (byteLength > 0 && (mul *= 0x100)) { val += this[offset + --byteLength] * mul } return val } Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { if (!noAssert) checkOffset(offset, 1, this.length) return this[offset] } Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { if (!noAssert) checkOffset(offset, 2, this.length) return this[offset] | (this[offset + 1] << 8) } Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { if (!noAssert) checkOffset(offset, 2, this.length) return (this[offset] << 8) | this[offset + 1] } Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return ((this[offset]) | (this[offset + 1] << 8) | (this[offset + 2] << 16)) + (this[offset + 3] * 0x1000000) } Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return (this[offset] * 0x1000000) + ((this[offset + 1] << 16) | (this[offset + 2] << 8) | this[offset + 3]) } Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) checkOffset(offset, byteLength, this.length) var val = this[offset] var mul = 1 var i = 0 while (++i < byteLength && (mul *= 0x100)) { val += this[offset + i] * mul } mul *= 0x80 if (val >= mul) val -= Math.pow(2, 8 * byteLength) return val } Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) checkOffset(offset, byteLength, this.length) var i = byteLength var mul = 1 var val = this[offset + --i] while (i > 0 && (mul *= 0x100)) { val += this[offset + --i] * mul } mul *= 0x80 if (val >= mul) val -= Math.pow(2, 8 * byteLength) return val } Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { if (!noAssert) checkOffset(offset, 1, this.length) if (!(this[offset] & 0x80)) return (this[offset]) return ((0xff - this[offset] + 1) * -1) } Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { if (!noAssert) checkOffset(offset, 2, this.length) var val = this[offset] | (this[offset + 1] << 8) return (val & 0x8000) ? val | 0xFFFF0000 : val } Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { if (!noAssert) checkOffset(offset, 2, this.length) var val = this[offset + 1] | (this[offset] << 8) return (val & 0x8000) ? val | 0xFFFF0000 : val } Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return (this[offset]) | (this[offset + 1] << 8) | (this[offset + 2] << 16) | (this[offset + 3] << 24) } Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return (this[offset] << 24) | (this[offset + 1] << 16) | (this[offset + 2] << 8) | (this[offset + 3]) } Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return ieee754.read(this, offset, true, 23, 4) } Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { if (!noAssert) checkOffset(offset, 4, this.length) return ieee754.read(this, offset, false, 23, 4) } Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { if (!noAssert) checkOffset(offset, 8, this.length) return ieee754.read(this, offset, true, 52, 8) } Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { if (!noAssert) checkOffset(offset, 8, this.length) return ieee754.read(this, offset, false, 52, 8) } function checkInt (buf, value, offset, ext, max, min) { if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') if (offset + ext > buf.length) throw new RangeError('Index out of range') } Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { value = +value offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) { var maxBytes = Math.pow(2, 8 * byteLength) - 1 checkInt(this, value, offset, byteLength, maxBytes, 0) } var mul = 1 var i = 0 this[offset] = value & 0xFF while (++i < byteLength && (mul *= 0x100)) { this[offset + i] = (value / mul) & 0xFF } return offset + byteLength } Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { value = +value offset = offset | 0 byteLength = byteLength | 0 if (!noAssert) { var maxBytes = Math.pow(2, 8 * byteLength) - 1 checkInt(this, value, offset, byteLength, maxBytes, 0) } var i = byteLength - 1 var mul = 1 this[offset + i] = value & 0xFF while (--i >= 0 && (mul *= 0x100)) { this[offset + i] = (value / mul) & 0xFF } return offset + byteLength } Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) this[offset] = (value & 0xff) return offset + 1 } function objectWriteUInt16 (buf, value, offset, littleEndian) { if (value < 0) value = 0xffff + value + 1 for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> (littleEndian ? i : 1 - i) * 8 } } Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value & 0xff) this[offset + 1] = (value >>> 8) } else { objectWriteUInt16(this, value, offset, true) } return offset + 2 } Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value >>> 8) this[offset + 1] = (value & 0xff) } else { objectWriteUInt16(this, value, offset, false) } return offset + 2 } function objectWriteUInt32 (buf, value, offset, littleEndian) { if (value < 0) value = 0xffffffff + value + 1 for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff } } Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset + 3] = (value >>> 24) this[offset + 2] = (value >>> 16) this[offset + 1] = (value >>> 8) this[offset] = (value & 0xff) } else { objectWriteUInt32(this, value, offset, true) } return offset + 4 } Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value >>> 24) this[offset + 1] = (value >>> 16) this[offset + 2] = (value >>> 8) this[offset + 3] = (value & 0xff) } else { objectWriteUInt32(this, value, offset, false) } return offset + 4 } Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { value = +value offset = offset | 0 if (!noAssert) { var limit = Math.pow(2, 8 * byteLength - 1) checkInt(this, value, offset, byteLength, limit - 1, -limit) } var i = 0 var mul = 1 var sub = 0 this[offset] = value & 0xFF while (++i < byteLength && (mul *= 0x100)) { if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { sub = 1 } this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } return offset + byteLength } Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { value = +value offset = offset | 0 if (!noAssert) { var limit = Math.pow(2, 8 * byteLength - 1) checkInt(this, value, offset, byteLength, limit - 1, -limit) } var i = byteLength - 1 var mul = 1 var sub = 0 this[offset + i] = value & 0xFF while (--i >= 0 && (mul *= 0x100)) { if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { sub = 1 } this[offset + i] = ((value / mul) >> 0) - sub & 0xFF } return offset + byteLength } Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80) if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) if (value < 0) value = 0xff + value + 1 this[offset] = (value & 0xff) return offset + 1 } Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value & 0xff) this[offset + 1] = (value >>> 8) } else { objectWriteUInt16(this, value, offset, true) } return offset + 2 } Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value >>> 8) this[offset + 1] = (value & 0xff) } else { objectWriteUInt16(this, value, offset, false) } return offset + 2 } Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value & 0xff) this[offset + 1] = (value >>> 8) this[offset + 2] = (value >>> 16) this[offset + 3] = (value >>> 24) } else { objectWriteUInt32(this, value, offset, true) } return offset + 4 } Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { value = +value offset = offset | 0 if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) if (value < 0) value = 0xffffffff + value + 1 if (Buffer.TYPED_ARRAY_SUPPORT) { this[offset] = (value >>> 24) this[offset + 1] = (value >>> 16) this[offset + 2] = (value >>> 8) this[offset + 3] = (value & 0xff) } else { objectWriteUInt32(this, value, offset, false) } return offset + 4 } function checkIEEE754 (buf, value, offset, ext, max, min) { if (offset + ext > buf.length) throw new RangeError('Index out of range') if (offset < 0) throw new RangeError('Index out of range') } function writeFloat (buf, value, offset, littleEndian, noAssert) { if (!noAssert) { checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) } ieee754.write(buf, value, offset, littleEndian, 23, 4) return offset + 4 } Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { return writeFloat(this, value, offset, true, noAssert) } Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { return writeFloat(this, value, offset, false, noAssert) } function writeDouble (buf, value, offset, littleEndian, noAssert) { if (!noAssert) { checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) } ieee754.write(buf, value, offset, littleEndian, 52, 8) return offset + 8 } Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { return writeDouble(this, value, offset, true, noAssert) } Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { return writeDouble(this, value, offset, false, noAssert) } // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) Buffer.prototype.copy = function copy (target, targetStart, start, end) { if (!start) start = 0 if (!end && end !== 0) end = this.length if (targetStart >= target.length) targetStart = target.length if (!targetStart) targetStart = 0 if (end > 0 && end < start) end = start // Copy 0 bytes; we're done if (end === start) return 0 if (target.length === 0 || this.length === 0) return 0 // Fatal error conditions if (targetStart < 0) { throw new RangeError('targetStart out of bounds') } if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') if (end < 0) throw new RangeError('sourceEnd out of bounds') // Are we oob? if (end > this.length) end = this.length if (target.length - targetStart < end - start) { end = target.length - targetStart + start } var len = end - start var i if (this === target && start < targetStart && targetStart < end) { // descending copy from end for (i = len - 1; i >= 0; --i) { target[i + targetStart] = this[i + start] } } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { // ascending copy from start for (i = 0; i < len; ++i) { target[i + targetStart] = this[i + start] } } else { Uint8Array.prototype.set.call( target, this.subarray(start, start + len), targetStart ) } return len } // Usage: // buffer.fill(number[, offset[, end]]) // buffer.fill(buffer[, offset[, end]]) // buffer.fill(string[, offset[, end]][, encoding]) Buffer.prototype.fill = function fill (val, start, end, encoding) { // Handle string cases: if (typeof val === 'string') { if (typeof start === 'string') { encoding = start start = 0 end = this.length } else if (typeof end === 'string') { encoding = end end = this.length } if (val.length === 1) { var code = val.charCodeAt(0) if (code < 256) { val = code } } if (encoding !== undefined && typeof encoding !== 'string') { throw new TypeError('encoding must be a string') } if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { throw new TypeError('Unknown encoding: ' + encoding) } } else if (typeof val === 'number') { val = val & 255 } // Invalid ranges are not set to a default, so can range check early. if (start < 0 || this.length < start || this.length < end) { throw new RangeError('Out of range index') } if (end <= start) { return this } start = start >>> 0 end = end === undefined ? this.length : end >>> 0 if (!val) val = 0 var i if (typeof val === 'number') { for (i = start; i < end; ++i) { this[i] = val } } else { var bytes = Buffer.isBuffer(val) ? val : utf8ToBytes(new Buffer(val, encoding).toString()) var len = bytes.length for (i = 0; i < end - start; ++i) { this[i + start] = bytes[i % len] } } return this } // HELPER FUNCTIONS // ================ var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g function base64clean (str) { // Node strips out invalid characters like \n and \t from the string, base64-js does not str = stringtrim(str).replace(INVALID_BASE64_RE, '') // Node converts strings with length < 2 to '' if (str.length < 2) return '' // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not while (str.length % 4 !== 0) { str = str + '=' } return str } function stringtrim (str) { if (str.trim) return str.trim() return str.replace(/^\s+|\s+$/g, '') } function toHex (n) { if (n < 16) return '0' + n.toString(16) return n.toString(16) } function utf8ToBytes (string, units) { units = units || Infinity var codePoint var length = string.length var leadSurrogate = null var bytes = [] for (var i = 0; i < length; ++i) { codePoint = string.charCodeAt(i) // is surrogate component if (codePoint > 0xD7FF && codePoint < 0xE000) { // last char was a lead if (!leadSurrogate) { // no lead yet if (codePoint > 0xDBFF) { // unexpected trail if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) continue } else if (i + 1 === length) { // unpaired lead if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) continue } // valid lead leadSurrogate = codePoint continue } // 2 leads in a row if (codePoint < 0xDC00) { if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) leadSurrogate = codePoint continue } // valid surrogate pair codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000 } else if (leadSurrogate) { // valid bmp char, but last char was a lead if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) } leadSurrogate = null // encode utf8 if (codePoint < 0x80) { if ((units -= 1) < 0) break bytes.push(codePoint) } else if (codePoint < 0x800) { if ((units -= 2) < 0) break bytes.push( codePoint >> 0x6 | 0xC0, codePoint & 0x3F | 0x80 ) } else if (codePoint < 0x10000) { if ((units -= 3) < 0) break bytes.push( codePoint >> 0xC | 0xE0, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80 ) } else if (codePoint < 0x110000) { if ((units -= 4) < 0) break bytes.push( codePoint >> 0x12 | 0xF0, codePoint >> 0xC & 0x3F | 0x80, codePoint >> 0x6 & 0x3F | 0x80, codePoint & 0x3F | 0x80 ) } else { throw new Error('Invalid code point') } } return bytes } function asciiToBytes (str) { var byteArray = [] for (var i = 0; i < str.length; ++i) { // Node's code seems to be doing this and not & 0x7F.. byteArray.push(str.charCodeAt(i) & 0xFF) } return byteArray } function utf16leToBytes (str, units) { var c, hi, lo var byteArray = [] for (var i = 0; i < str.length; ++i) { if ((units -= 2) < 0) break c = str.charCodeAt(i) hi = c >> 8 lo = c % 256 byteArray.push(lo) byteArray.push(hi) } return byteArray } function base64ToBytes (str) { return base64.toByteArray(base64clean(str)) } function blitBuffer (src, dst, offset, length) { for (var i = 0; i < length; ++i) { if ((i + offset >= dst.length) || (i >= src.length)) break dst[i + offset] = src[i] } return i } function isnan (val) { return val !== val // eslint-disable-line no-self-compare } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"base64-js":256,"ieee754":311,"isarray":313}],260:[function(require,module,exports){ (function (Buffer){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(arg) { if (Array.isArray) { return Array.isArray(arg); } return objectToString(arg) === '[object Array]'; } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; exports.isBuffer = Buffer.isBuffer; function objectToString(o) { return Object.prototype.toString.call(o); } }).call(this,{"isBuffer":require("../../../../node_modules/is-buffer/index.js")}) },{"../../../../node_modules/is-buffer/index.js":429}],261:[function(require,module,exports){ var Buffer = require('buffer').Buffer; var intSize = 4; var zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0); var chrsz = 8; function toArray(buf, bigEndian) { if ((buf.length % intSize) !== 0) { var len = buf.length + (intSize - (buf.length % intSize)); buf = Buffer.concat([buf, zeroBuffer], len); } var arr = []; var fn = bigEndian ? buf.readInt32BE : buf.readInt32LE; for (var i = 0; i < buf.length; i += intSize) { arr.push(fn.call(buf, i)); } return arr; } function toBuffer(arr, size, bigEndian) { var buf = new Buffer(size); var fn = bigEndian ? buf.writeInt32BE : buf.writeInt32LE; for (var i = 0; i < arr.length; i++) { fn.call(buf, arr[i], i * 4, true); } return buf; } function hash(buf, fn, hashSize, bigEndian) { if (!Buffer.isBuffer(buf)) buf = new Buffer(buf); var arr = fn(toArray(buf, bigEndian), buf.length * chrsz); return toBuffer(arr, hashSize, bigEndian); } module.exports = { hash: hash }; },{"buffer":424}],262:[function(require,module,exports){ var Buffer = require('buffer').Buffer var sha = require('./sha') var sha256 = require('./sha256') var rng = require('./rng') var md5 = require('./md5') var algorithms = { sha1: sha, sha256: sha256, md5: md5 } var blocksize = 64 var zeroBuffer = new Buffer(blocksize); zeroBuffer.fill(0) function hmac(fn, key, data) { if(!Buffer.isBuffer(key)) key = new Buffer(key) if(!Buffer.isBuffer(data)) data = new Buffer(data) if(key.length > blocksize) { key = fn(key) } else if(key.length < blocksize) { key = Buffer.concat([key, zeroBuffer], blocksize) } var ipad = new Buffer(blocksize), opad = new Buffer(blocksize) for(var i = 0; i < blocksize; i++) { ipad[i] = key[i] ^ 0x36 opad[i] = key[i] ^ 0x5C } var hash = fn(Buffer.concat([ipad, data])) return fn(Buffer.concat([opad, hash])) } function hash(alg, key) { alg = alg || 'sha1' var fn = algorithms[alg] var bufs = [] var length = 0 if(!fn) error('algorithm:', alg, 'is not yet supported') return { update: function (data) { if(!Buffer.isBuffer(data)) data = new Buffer(data) bufs.push(data) length += data.length return this }, digest: function (enc) { var buf = Buffer.concat(bufs) var r = key ? hmac(fn, key, buf) : fn(buf) bufs = null return enc ? r.toString(enc) : r } } } function error () { var m = [].slice.call(arguments).join(' ') throw new Error([ m, 'we accept pull requests', 'http://github.com/dominictarr/crypto-browserify' ].join('\n')) } exports.createHash = function (alg) { return hash(alg) } exports.createHmac = function (alg, key) { return hash(alg, key) } exports.randomBytes = function(size, callback) { if (callback && callback.call) { try { callback.call(this, undefined, new Buffer(rng(size))) } catch (err) { callback(err) } } else { return new Buffer(rng(size)) } } function each(a, f) { for(var i in a) f(a[i], i) } // the least I can do is make error messages for the rest of the node.js/crypto api. each(['createCredentials' , 'createCipher' , 'createCipheriv' , 'createDecipher' , 'createDecipheriv' , 'createSign' , 'createVerify' , 'createDiffieHellman' , 'pbkdf2'], function (name) { exports[name] = function () { error('sorry,', name, 'is not implemented yet') } }) },{"./md5":263,"./rng":264,"./sha":265,"./sha256":266,"buffer":424}],263:[function(require,module,exports){ /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for more info. */ var helpers = require('./helpers'); /* * Perform a simple self-test to see if the VM is working */ function md5_vm_test() { return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"; } /* * Calculate the MD5 of an array of little-endian words, and a bit length */ function core_md5(x, len) { /* append padding */ x[len >> 5] |= 0x80 << ((len) % 32); x[(((len + 64) >>> 9) << 4) + 14] = len; var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; for(var i = 0; i < x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); c = md5_ff(c, d, a, b, x[i+10], 17, -42063); b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); } return Array(a, b, c, d); } /* * These functions implement the four basic operations the algorithm uses. */ function md5_cmn(q, a, b, x, s, t) { return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); } function md5_ff(a, b, c, d, x, s, t) { return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); } function md5_gg(a, b, c, d, x, s, t) { return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); } function md5_hh(a, b, c, d, x, s, t) { return md5_cmn(b ^ c ^ d, a, b, x, s, t); } function md5_ii(a, b, c, d, x, s, t) { return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); } /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } /* * Bitwise rotate a 32-bit number to the left. */ function bit_rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); } module.exports = function md5(buf) { return helpers.hash(buf, core_md5, 16); }; },{"./helpers":261}],264:[function(require,module,exports){ // Original code adapted from Robert Kieffer. // details at https://github.com/broofa/node-uuid (function() { var _global = this; var mathRNG, whatwgRNG; // NOTE: Math.random() does not guarantee "cryptographic quality" mathRNG = function(size) { var bytes = new Array(size); var r; for (var i = 0, r; i < size; i++) { if ((i & 0x03) == 0) r = Math.random() * 0x100000000; bytes[i] = r >>> ((i & 0x03) << 3) & 0xff; } return bytes; } if (_global.crypto && crypto.getRandomValues) { whatwgRNG = function(size) { var bytes = new Uint8Array(size); crypto.getRandomValues(bytes); return bytes; } } module.exports = whatwgRNG || mathRNG; }()) },{}],265:[function(require,module,exports){ /* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS PUB 180-1 * Version 2.1a Copyright Paul Johnston 2000 - 2002. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. */ var helpers = require('./helpers'); /* * Calculate the SHA-1 of an array of big-endian words, and a bit length */ function core_sha1(x, len) { /* append padding */ x[len >> 5] |= 0x80 << (24 - len % 32); x[((len + 64 >> 9) << 4) + 15] = len; var w = Array(80); var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; var e = -1009589776; for(var i = 0; i < x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; var olde = e; for(var j = 0; j < 80; j++) { if(j < 16) w[j] = x[i + j]; else w[j] = rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); var t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j))); e = d; d = c; c = rol(b, 30); b = a; a = t; } a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); e = safe_add(e, olde); } return Array(a, b, c, d, e); } /* * Perform the appropriate triplet combination function for the current * iteration */ function sha1_ft(t, b, c, d) { if(t < 20) return (b & c) | ((~b) & d); if(t < 40) return b ^ c ^ d; if(t < 60) return (b & c) | (b & d) | (c & d); return b ^ c ^ d; } /* * Determine the appropriate additive constant for the current iteration */ function sha1_kt(t) { return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : (t < 60) ? -1894007588 : -899497514; } /* * Add integers, wrapping at 2^32. This uses 16-bit operations internally * to work around bugs in some JS interpreters. */ function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } /* * Bitwise rotate a 32-bit number to the left. */ function rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); } module.exports = function sha1(buf) { return helpers.hash(buf, core_sha1, 20, true); }; },{"./helpers":261}],266:[function(require,module,exports){ /** * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined * in FIPS 180-2 * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * */ var helpers = require('./helpers'); var safe_add = function(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); }; var S = function(X, n) { return (X >>> n) | (X << (32 - n)); }; var R = function(X, n) { return (X >>> n); }; var Ch = function(x, y, z) { return ((x & y) ^ ((~x) & z)); }; var Maj = function(x, y, z) { return ((x & y) ^ (x & z) ^ (y & z)); }; var Sigma0256 = function(x) { return (S(x, 2) ^ S(x, 13) ^ S(x, 22)); }; var Sigma1256 = function(x) { return (S(x, 6) ^ S(x, 11) ^ S(x, 25)); }; var Gamma0256 = function(x) { return (S(x, 7) ^ S(x, 18) ^ R(x, 3)); }; var Gamma1256 = function(x) { return (S(x, 17) ^ S(x, 19) ^ R(x, 10)); }; var core_sha256 = function(m, l) { var K = new Array(0x428A2F98,0x71374491,0xB5C0FBCF,0xE9B5DBA5,0x3956C25B,0x59F111F1,0x923F82A4,0xAB1C5ED5,0xD807AA98,0x12835B01,0x243185BE,0x550C7DC3,0x72BE5D74,0x80DEB1FE,0x9BDC06A7,0xC19BF174,0xE49B69C1,0xEFBE4786,0xFC19DC6,0x240CA1CC,0x2DE92C6F,0x4A7484AA,0x5CB0A9DC,0x76F988DA,0x983E5152,0xA831C66D,0xB00327C8,0xBF597FC7,0xC6E00BF3,0xD5A79147,0x6CA6351,0x14292967,0x27B70A85,0x2E1B2138,0x4D2C6DFC,0x53380D13,0x650A7354,0x766A0ABB,0x81C2C92E,0x92722C85,0xA2BFE8A1,0xA81A664B,0xC24B8B70,0xC76C51A3,0xD192E819,0xD6990624,0xF40E3585,0x106AA070,0x19A4C116,0x1E376C08,0x2748774C,0x34B0BCB5,0x391C0CB3,0x4ED8AA4A,0x5B9CCA4F,0x682E6FF3,0x748F82EE,0x78A5636F,0x84C87814,0x8CC70208,0x90BEFFFA,0xA4506CEB,0xBEF9A3F7,0xC67178F2); var HASH = new Array(0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19); var W = new Array(64); var a, b, c, d, e, f, g, h, i, j; var T1, T2; /* append padding */ m[l >> 5] |= 0x80 << (24 - l % 32); m[((l + 64 >> 9) << 4) + 15] = l; for (var i = 0; i < m.length; i += 16) { a = HASH[0]; b = HASH[1]; c = HASH[2]; d = HASH[3]; e = HASH[4]; f = HASH[5]; g = HASH[6]; h = HASH[7]; for (var j = 0; j < 64; j++) { if (j < 16) { W[j] = m[j + i]; } else { W[j] = safe_add(safe_add(safe_add(Gamma1256(W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16]); } T1 = safe_add(safe_add(safe_add(safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j]); T2 = safe_add(Sigma0256(a), Maj(a, b, c)); h = g; g = f; f = e; e = safe_add(d, T1); d = c; c = b; b = a; a = safe_add(T1, T2); } HASH[0] = safe_add(a, HASH[0]); HASH[1] = safe_add(b, HASH[1]); HASH[2] = safe_add(c, HASH[2]); HASH[3] = safe_add(d, HASH[3]); HASH[4] = safe_add(e, HASH[4]); HASH[5] = safe_add(f, HASH[5]); HASH[6] = safe_add(g, HASH[6]); HASH[7] = safe_add(h, HASH[7]); } return HASH; }; module.exports = function sha256(buf) { return helpers.hash(buf, core_sha256, 32, true); }; },{"./helpers":261}],267:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var BlockCipher = C_lib.BlockCipher; var C_algo = C.algo; // Lookup tables var SBOX = []; var INV_SBOX = []; var SUB_MIX_0 = []; var SUB_MIX_1 = []; var SUB_MIX_2 = []; var SUB_MIX_3 = []; var INV_SUB_MIX_0 = []; var INV_SUB_MIX_1 = []; var INV_SUB_MIX_2 = []; var INV_SUB_MIX_3 = []; // Compute lookup tables (function () { // Compute double table var d = []; for (var i = 0; i < 256; i++) { if (i < 128) { d[i] = i << 1; } else { d[i] = (i << 1) ^ 0x11b; } } // Walk GF(2^8) var x = 0; var xi = 0; for (var i = 0; i < 256; i++) { // Compute sbox var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4); sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63; SBOX[x] = sx; INV_SBOX[sx] = x; // Compute multiplication var x2 = d[x]; var x4 = d[x2]; var x8 = d[x4]; // Compute sub bytes, mix columns tables var t = (d[sx] * 0x101) ^ (sx * 0x1010100); SUB_MIX_0[x] = (t << 24) | (t >>> 8); SUB_MIX_1[x] = (t << 16) | (t >>> 16); SUB_MIX_2[x] = (t << 8) | (t >>> 24); SUB_MIX_3[x] = t; // Compute inv sub bytes, inv mix columns tables var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100); INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8); INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16); INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24); INV_SUB_MIX_3[sx] = t; // Compute next counter if (!x) { x = xi = 1; } else { x = x2 ^ d[d[d[x8 ^ x2]]]; xi ^= d[d[xi]]; } } }()); // Precomputed Rcon lookup var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36]; /** * AES block cipher algorithm. */ var AES = C_algo.AES = BlockCipher.extend({ _doReset: function () { // Shortcuts var key = this._key; var keyWords = key.words; var keySize = key.sigBytes / 4; // Compute number of rounds var nRounds = this._nRounds = keySize + 6 // Compute number of key schedule rows var ksRows = (nRounds + 1) * 4; // Compute key schedule var keySchedule = this._keySchedule = []; for (var ksRow = 0; ksRow < ksRows; ksRow++) { if (ksRow < keySize) { keySchedule[ksRow] = keyWords[ksRow]; } else { var t = keySchedule[ksRow - 1]; if (!(ksRow % keySize)) { // Rot word t = (t << 8) | (t >>> 24); // Sub word t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff]; // Mix Rcon t ^= RCON[(ksRow / keySize) | 0] << 24; } else if (keySize > 6 && ksRow % keySize == 4) { // Sub word t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff]; } keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t; } } // Compute inv key schedule var invKeySchedule = this._invKeySchedule = []; for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) { var ksRow = ksRows - invKsRow; if (invKsRow % 4) { var t = keySchedule[ksRow]; } else { var t = keySchedule[ksRow - 4]; } if (invKsRow < 4 || ksRow <= 4) { invKeySchedule[invKsRow] = t; } else { invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^ INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]]; } } }, encryptBlock: function (M, offset) { this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX); }, decryptBlock: function (M, offset) { // Swap 2nd and 4th rows var t = M[offset + 1]; M[offset + 1] = M[offset + 3]; M[offset + 3] = t; this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); // Inv swap 2nd and 4th rows var t = M[offset + 1]; M[offset + 1] = M[offset + 3]; M[offset + 3] = t; }, _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) { // Shortcut var nRounds = this._nRounds; // Get input, add round key var s0 = M[offset] ^ keySchedule[0]; var s1 = M[offset + 1] ^ keySchedule[1]; var s2 = M[offset + 2] ^ keySchedule[2]; var s3 = M[offset + 3] ^ keySchedule[3]; // Key schedule row counter var ksRow = 4; // Rounds for (var round = 1; round < nRounds; round++) { // Shift rows, sub bytes, mix columns, add round key var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++]; var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++]; var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++]; var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++]; // Update state s0 = t0; s1 = t1; s2 = t2; s3 = t3; } // Shift rows, sub bytes, add round key var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++]; var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++]; var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++]; var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]; // Set output M[offset] = t0; M[offset + 1] = t1; M[offset + 2] = t2; M[offset + 3] = t3; }, keySize: 256/32 }); /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg); * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg); */ C.AES = BlockCipher._createHelper(AES); }()); return CryptoJS.AES; })); },{"./cipher-core":268,"./core":269,"./enc-base64":270,"./evpkdf":272,"./md5":277}],268:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Cipher core components. */ CryptoJS.lib.Cipher || (function (undefined) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var WordArray = C_lib.WordArray; var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm; var C_enc = C.enc; var Utf8 = C_enc.Utf8; var Base64 = C_enc.Base64; var C_algo = C.algo; var EvpKDF = C_algo.EvpKDF; /** * Abstract base cipher template. * * @property {number} keySize This cipher's key size. Default: 4 (128 bits) * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits) * @property {number} _ENC_XFORM_MODE A constant representing encryption mode. * @property {number} _DEC_XFORM_MODE A constant representing decryption mode. */ var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({ /** * Configuration options. * * @property {WordArray} iv The IV to use for this operation. */ cfg: Base.extend(), /** * Creates this cipher in encryption mode. * * @param {WordArray} key The key. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {Cipher} A cipher instance. * * @static * * @example * * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray }); */ createEncryptor: function (key, cfg) { return this.create(this._ENC_XFORM_MODE, key, cfg); }, /** * Creates this cipher in decryption mode. * * @param {WordArray} key The key. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {Cipher} A cipher instance. * * @static * * @example * * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray }); */ createDecryptor: function (key, cfg) { return this.create(this._DEC_XFORM_MODE, key, cfg); }, /** * Initializes a newly created cipher. * * @param {number} xformMode Either the encryption or decryption transormation mode constant. * @param {WordArray} key The key. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @example * * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray }); */ init: function (xformMode, key, cfg) { // Apply config defaults this.cfg = this.cfg.extend(cfg); // Store transform mode and key this._xformMode = xformMode; this._key = key; // Set initial values this.reset(); }, /** * Resets this cipher to its initial state. * * @example * * cipher.reset(); */ reset: function () { // Reset data buffer BufferedBlockAlgorithm.reset.call(this); // Perform concrete-cipher logic this._doReset(); }, /** * Adds data to be encrypted or decrypted. * * @param {WordArray|string} dataUpdate The data to encrypt or decrypt. * * @return {WordArray} The data after processing. * * @example * * var encrypted = cipher.process('data'); * var encrypted = cipher.process(wordArray); */ process: function (dataUpdate) { // Append this._append(dataUpdate); // Process available blocks return this._process(); }, /** * Finalizes the encryption or decryption process. * Note that the finalize operation is effectively a destructive, read-once operation. * * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt. * * @return {WordArray} The data after final processing. * * @example * * var encrypted = cipher.finalize(); * var encrypted = cipher.finalize('data'); * var encrypted = cipher.finalize(wordArray); */ finalize: function (dataUpdate) { // Final data update if (dataUpdate) { this._append(dataUpdate); } // Perform concrete-cipher logic var finalProcessedData = this._doFinalize(); return finalProcessedData; }, keySize: 128/32, ivSize: 128/32, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, /** * Creates shortcut functions to a cipher's object interface. * * @param {Cipher} cipher The cipher to create a helper for. * * @return {Object} An object with encrypt and decrypt shortcut functions. * * @static * * @example * * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES); */ _createHelper: (function () { function selectCipherStrategy(key) { if (typeof key == 'string') { return PasswordBasedCipher; } else { return SerializableCipher; } } return function (cipher) { return { encrypt: function (message, key, cfg) { return selectCipherStrategy(key).encrypt(cipher, message, key, cfg); }, decrypt: function (ciphertext, key, cfg) { return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg); } }; }; }()) }); /** * Abstract base stream cipher template. * * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits) */ var StreamCipher = C_lib.StreamCipher = Cipher.extend({ _doFinalize: function () { // Process partial blocks var finalProcessedBlocks = this._process(!!'flush'); return finalProcessedBlocks; }, blockSize: 1 }); /** * Mode namespace. */ var C_mode = C.mode = {}; /** * Abstract base block cipher mode template. */ var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({ /** * Creates this mode for encryption. * * @param {Cipher} cipher A block cipher instance. * @param {Array} iv The IV words. * * @static * * @example * * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words); */ createEncryptor: function (cipher, iv) { return this.Encryptor.create(cipher, iv); }, /** * Creates this mode for decryption. * * @param {Cipher} cipher A block cipher instance. * @param {Array} iv The IV words. * * @static * * @example * * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words); */ createDecryptor: function (cipher, iv) { return this.Decryptor.create(cipher, iv); }, /** * Initializes a newly created mode. * * @param {Cipher} cipher A block cipher instance. * @param {Array} iv The IV words. * * @example * * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words); */ init: function (cipher, iv) { this._cipher = cipher; this._iv = iv; } }); /** * Cipher Block Chaining mode. */ var CBC = C_mode.CBC = (function () { /** * Abstract base CBC mode. */ var CBC = BlockCipherMode.extend(); /** * CBC encryptor. */ CBC.Encryptor = CBC.extend({ /** * Processes the data block at offset. * * @param {Array} words The data words to operate on. * @param {number} offset The offset where the block starts. * * @example * * mode.processBlock(data.words, offset); */ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher; var blockSize = cipher.blockSize; // XOR and encrypt xorBlock.call(this, words, offset, blockSize); cipher.encryptBlock(words, offset); // Remember this block to use with next block this._prevBlock = words.slice(offset, offset + blockSize); } }); /** * CBC decryptor. */ CBC.Decryptor = CBC.extend({ /** * Processes the data block at offset. * * @param {Array} words The data words to operate on. * @param {number} offset The offset where the block starts. * * @example * * mode.processBlock(data.words, offset); */ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher; var blockSize = cipher.blockSize; // Remember this block to use with next block var thisBlock = words.slice(offset, offset + blockSize); // Decrypt and XOR cipher.decryptBlock(words, offset); xorBlock.call(this, words, offset, blockSize); // This block becomes the previous block this._prevBlock = thisBlock; } }); function xorBlock(words, offset, blockSize) { // Shortcut var iv = this._iv; // Choose mixing block if (iv) { var block = iv; // Remove IV for subsequent blocks this._iv = undefined; } else { var block = this._prevBlock; } // XOR blocks for (var i = 0; i < blockSize; i++) { words[offset + i] ^= block[i]; } } return CBC; }()); /** * Padding namespace. */ var C_pad = C.pad = {}; /** * PKCS #5/7 padding strategy. */ var Pkcs7 = C_pad.Pkcs7 = { /** * Pads data using the algorithm defined in PKCS #5/7. * * @param {WordArray} data The data to pad. * @param {number} blockSize The multiple that the data should be padded to. * * @static * * @example * * CryptoJS.pad.Pkcs7.pad(wordArray, 4); */ pad: function (data, blockSize) { // Shortcut var blockSizeBytes = blockSize * 4; // Count padding bytes var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; // Create padding word var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes; // Create padding var paddingWords = []; for (var i = 0; i < nPaddingBytes; i += 4) { paddingWords.push(paddingWord); } var padding = WordArray.create(paddingWords, nPaddingBytes); // Add padding data.concat(padding); }, /** * Unpads data that had been padded using the algorithm defined in PKCS #5/7. * * @param {WordArray} data The data to unpad. * * @static * * @example * * CryptoJS.pad.Pkcs7.unpad(wordArray); */ unpad: function (data) { // Get number of padding bytes from last byte var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff; // Remove padding data.sigBytes -= nPaddingBytes; } }; /** * Abstract base block cipher template. * * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits) */ var BlockCipher = C_lib.BlockCipher = Cipher.extend({ /** * Configuration options. * * @property {Mode} mode The block mode to use. Default: CBC * @property {Padding} padding The padding strategy to use. Default: Pkcs7 */ cfg: Cipher.cfg.extend({ mode: CBC, padding: Pkcs7 }), reset: function () { // Reset cipher Cipher.reset.call(this); // Shortcuts var cfg = this.cfg; var iv = cfg.iv; var mode = cfg.mode; // Reset block mode if (this._xformMode == this._ENC_XFORM_MODE) { var modeCreator = mode.createEncryptor; } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ { var modeCreator = mode.createDecryptor; // Keep at least one block in the buffer for unpadding this._minBufferSize = 1; } this._mode = modeCreator.call(mode, this, iv && iv.words); }, _doProcessBlock: function (words, offset) { this._mode.processBlock(words, offset); }, _doFinalize: function () { // Shortcut var padding = this.cfg.padding; // Finalize if (this._xformMode == this._ENC_XFORM_MODE) { // Pad data padding.pad(this._data, this.blockSize); // Process final blocks var finalProcessedBlocks = this._process(!!'flush'); } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ { // Process final blocks var finalProcessedBlocks = this._process(!!'flush'); // Unpad data padding.unpad(finalProcessedBlocks); } return finalProcessedBlocks; }, blockSize: 128/32 }); /** * A collection of cipher parameters. * * @property {WordArray} ciphertext The raw ciphertext. * @property {WordArray} key The key to this ciphertext. * @property {WordArray} iv The IV used in the ciphering operation. * @property {WordArray} salt The salt used with a key derivation function. * @property {Cipher} algorithm The cipher algorithm. * @property {Mode} mode The block mode used in the ciphering operation. * @property {Padding} padding The padding scheme used in the ciphering operation. * @property {number} blockSize The block size of the cipher. * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string. */ var CipherParams = C_lib.CipherParams = Base.extend({ /** * Initializes a newly created cipher params object. * * @param {Object} cipherParams An object with any of the possible cipher parameters. * * @example * * var cipherParams = CryptoJS.lib.CipherParams.create({ * ciphertext: ciphertextWordArray, * key: keyWordArray, * iv: ivWordArray, * salt: saltWordArray, * algorithm: CryptoJS.algo.AES, * mode: CryptoJS.mode.CBC, * padding: CryptoJS.pad.PKCS7, * blockSize: 4, * formatter: CryptoJS.format.OpenSSL * }); */ init: function (cipherParams) { this.mixIn(cipherParams); }, /** * Converts this cipher params object to a string. * * @param {Format} formatter (Optional) The formatting strategy to use. * * @return {string} The stringified cipher params. * * @throws Error If neither the formatter nor the default formatter is set. * * @example * * var string = cipherParams + ''; * var string = cipherParams.toString(); * var string = cipherParams.toString(CryptoJS.format.OpenSSL); */ toString: function (formatter) { return (formatter || this.formatter).stringify(this); } }); /** * Format namespace. */ var C_format = C.format = {}; /** * OpenSSL formatting strategy. */ var OpenSSLFormatter = C_format.OpenSSL = { /** * Converts a cipher params object to an OpenSSL-compatible string. * * @param {CipherParams} cipherParams The cipher params object. * * @return {string} The OpenSSL-compatible string. * * @static * * @example * * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams); */ stringify: function (cipherParams) { // Shortcuts var ciphertext = cipherParams.ciphertext; var salt = cipherParams.salt; // Format if (salt) { var wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext); } else { var wordArray = ciphertext; } return wordArray.toString(Base64); }, /** * Converts an OpenSSL-compatible string to a cipher params object. * * @param {string} openSSLStr The OpenSSL-compatible string. * * @return {CipherParams} The cipher params object. * * @static * * @example * * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString); */ parse: function (openSSLStr) { // Parse base64 var ciphertext = Base64.parse(openSSLStr); // Shortcut var ciphertextWords = ciphertext.words; // Test for salt if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) { // Extract salt var salt = WordArray.create(ciphertextWords.slice(2, 4)); // Remove salt from ciphertext ciphertextWords.splice(0, 4); ciphertext.sigBytes -= 16; } return CipherParams.create({ ciphertext: ciphertext, salt: salt }); } }; /** * A cipher wrapper that returns ciphertext as a serializable cipher params object. */ var SerializableCipher = C_lib.SerializableCipher = Base.extend({ /** * Configuration options. * * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL */ cfg: Base.extend({ format: OpenSSLFormatter }), /** * Encrypts a message. * * @param {Cipher} cipher The cipher algorithm to use. * @param {WordArray|string} message The message to encrypt. * @param {WordArray} key The key. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {CipherParams} A cipher params object. * * @static * * @example * * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key); * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv }); * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL }); */ encrypt: function (cipher, message, key, cfg) { // Apply config defaults cfg = this.cfg.extend(cfg); // Encrypt var encryptor = cipher.createEncryptor(key, cfg); var ciphertext = encryptor.finalize(message); // Shortcut var cipherCfg = encryptor.cfg; // Create and return serializable cipher params return CipherParams.create({ ciphertext: ciphertext, key: key, iv: cipherCfg.iv, algorithm: cipher, mode: cipherCfg.mode, padding: cipherCfg.padding, blockSize: cipher.blockSize, formatter: cfg.format }); }, /** * Decrypts serialized ciphertext. * * @param {Cipher} cipher The cipher algorithm to use. * @param {CipherParams|string} ciphertext The ciphertext to decrypt. * @param {WordArray} key The key. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {WordArray} The plaintext. * * @static * * @example * * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL }); * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL }); */ decrypt: function (cipher, ciphertext, key, cfg) { // Apply config defaults cfg = this.cfg.extend(cfg); // Convert string to CipherParams ciphertext = this._parse(ciphertext, cfg.format); // Decrypt var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext); return plaintext; }, /** * Converts serialized ciphertext to CipherParams, * else assumed CipherParams already and returns ciphertext unchanged. * * @param {CipherParams|string} ciphertext The ciphertext. * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext. * * @return {CipherParams} The unserialized ciphertext. * * @static * * @example * * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format); */ _parse: function (ciphertext, format) { if (typeof ciphertext == 'string') { return format.parse(ciphertext, this); } else { return ciphertext; } } }); /** * Key derivation function namespace. */ var C_kdf = C.kdf = {}; /** * OpenSSL key derivation function. */ var OpenSSLKdf = C_kdf.OpenSSL = { /** * Derives a key and IV from a password. * * @param {string} password The password to derive from. * @param {number} keySize The size in words of the key to generate. * @param {number} ivSize The size in words of the IV to generate. * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly. * * @return {CipherParams} A cipher params object with the key, IV, and salt. * * @static * * @example * * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32); * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt'); */ execute: function (password, keySize, ivSize, salt) { // Generate random salt if (!salt) { salt = WordArray.random(64/8); } // Derive key and IV var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt); // Separate key and IV var iv = WordArray.create(key.words.slice(keySize), ivSize * 4); key.sigBytes = keySize * 4; // Return params return CipherParams.create({ key: key, iv: iv, salt: salt }); } }; /** * A serializable cipher wrapper that derives the key from a password, * and returns ciphertext as a serializable cipher params object. */ var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({ /** * Configuration options. * * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL */ cfg: SerializableCipher.cfg.extend({ kdf: OpenSSLKdf }), /** * Encrypts a message using a password. * * @param {Cipher} cipher The cipher algorithm to use. * @param {WordArray|string} message The message to encrypt. * @param {string} password The password. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {CipherParams} A cipher params object. * * @static * * @example * * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password'); * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL }); */ encrypt: function (cipher, message, password, cfg) { // Apply config defaults cfg = this.cfg.extend(cfg); // Derive key and other params var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize); // Add IV to config cfg.iv = derivedParams.iv; // Encrypt var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); // Mix in derived params ciphertext.mixIn(derivedParams); return ciphertext; }, /** * Decrypts serialized ciphertext using a password. * * @param {Cipher} cipher The cipher algorithm to use. * @param {CipherParams|string} ciphertext The ciphertext to decrypt. * @param {string} password The password. * @param {Object} cfg (Optional) The configuration options to use for this operation. * * @return {WordArray} The plaintext. * * @static * * @example * * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL }); * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL }); */ decrypt: function (cipher, ciphertext, password, cfg) { // Apply config defaults cfg = this.cfg.extend(cfg); // Convert string to CipherParams ciphertext = this._parse(ciphertext, cfg.format); // Derive key and other params var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt); // Add IV to config cfg.iv = derivedParams.iv; // Decrypt var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg); return plaintext; } }); }()); })); },{"./core":269}],269:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(); } else if (typeof define === "function" && define.amd) { // AMD define([], factory); } else { // Global (browser) root.CryptoJS = factory(); } }(this, function () { /** * CryptoJS core components. */ var CryptoJS = CryptoJS || (function (Math, undefined) { /** * CryptoJS namespace. */ var C = {}; /** * Library namespace. */ var C_lib = C.lib = {}; /** * Base object for prototypal inheritance. */ var Base = C_lib.Base = (function () { function F() {} return { /** * Creates a new object that inherits from this object. * * @param {Object} overrides Properties to copy into the new object. * * @return {Object} The new object. * * @static * * @example * * var MyType = CryptoJS.lib.Base.extend({ * field: 'value', * * method: function () { * } * }); */ extend: function (overrides) { // Spawn F.prototype = this; var subtype = new F(); // Augment if (overrides) { subtype.mixIn(overrides); } // Create default initializer if (!subtype.hasOwnProperty('init')) { subtype.init = function () { subtype.$super.init.apply(this, arguments); }; } // Initializer's prototype is the subtype object subtype.init.prototype = subtype; // Reference supertype subtype.$super = this; return subtype; }, /** * Extends this object and runs the init method. * Arguments to create() will be passed to init(). * * @return {Object} The new object. * * @static * * @example * * var instance = MyType.create(); */ create: function () { var instance = this.extend(); instance.init.apply(instance, arguments); return instance; }, /** * Initializes a newly created object. * Override this method to add some logic when your objects are created. * * @example * * var MyType = CryptoJS.lib.Base.extend({ * init: function () { * // ... * } * }); */ init: function () { }, /** * Copies properties into this object. * * @param {Object} properties The properties to mix in. * * @example * * MyType.mixIn({ * field: 'value' * }); */ mixIn: function (properties) { for (var propertyName in properties) { if (properties.hasOwnProperty(propertyName)) { this[propertyName] = properties[propertyName]; } } // IE won't copy toString using the loop above if (properties.hasOwnProperty('toString')) { this.toString = properties.toString; } }, /** * Creates a copy of this object. * * @return {Object} The clone. * * @example * * var clone = instance.clone(); */ clone: function () { return this.init.prototype.extend(this); } }; }()); /** * An array of 32-bit words. * * @property {Array} words The array of 32-bit words. * @property {number} sigBytes The number of significant bytes in this word array. */ var WordArray = C_lib.WordArray = Base.extend({ /** * Initializes a newly created word array. * * @param {Array} words (Optional) An array of 32-bit words. * @param {number} sigBytes (Optional) The number of significant bytes in the words. * * @example * * var wordArray = CryptoJS.lib.WordArray.create(); * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]); * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6); */ init: function (words, sigBytes) { words = this.words = words || []; if (sigBytes != undefined) { this.sigBytes = sigBytes; } else { this.sigBytes = words.length * 4; } }, /** * Converts this word array to a string. * * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex * * @return {string} The stringified word array. * * @example * * var string = wordArray + ''; * var string = wordArray.toString(); * var string = wordArray.toString(CryptoJS.enc.Utf8); */ toString: function (encoder) { return (encoder || Hex).stringify(this); }, /** * Concatenates a word array to this word array. * * @param {WordArray} wordArray The word array to append. * * @return {WordArray} This word array. * * @example * * wordArray1.concat(wordArray2); */ concat: function (wordArray) { // Shortcuts var thisWords = this.words; var thatWords = wordArray.words; var thisSigBytes = this.sigBytes; var thatSigBytes = wordArray.sigBytes; // Clamp excess bits this.clamp(); // Concat if (thisSigBytes % 4) { // Copy one byte at a time for (var i = 0; i < thatSigBytes; i++) { var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8); } } else { // Copy one word at a time for (var i = 0; i < thatSigBytes; i += 4) { thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2]; } } this.sigBytes += thatSigBytes; // Chainable return this; }, /** * Removes insignificant bits. * * @example * * wordArray.clamp(); */ clamp: function () { // Shortcuts var words = this.words; var sigBytes = this.sigBytes; // Clamp words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8); words.length = Math.ceil(sigBytes / 4); }, /** * Creates a copy of this word array. * * @return {WordArray} The clone. * * @example * * var clone = wordArray.clone(); */ clone: function () { var clone = Base.clone.call(this); clone.words = this.words.slice(0); return clone; }, /** * Creates a word array filled with random bytes. * * @param {number} nBytes The number of random bytes to generate. * * @return {WordArray} The random word array. * * @static * * @example * * var wordArray = CryptoJS.lib.WordArray.random(16); */ random: function (nBytes) { var words = []; var r = (function (m_w) { var m_w = m_w; var m_z = 0x3ade68b1; var mask = 0xffffffff; return function () { m_z = (0x9069 * (m_z & 0xFFFF) + (m_z >> 0x10)) & mask; m_w = (0x4650 * (m_w & 0xFFFF) + (m_w >> 0x10)) & mask; var result = ((m_z << 0x10) + m_w) & mask; result /= 0x100000000; result += 0.5; return result * (Math.random() > .5 ? 1 : -1); } }); for (var i = 0, rcache; i < nBytes; i += 4) { var _r = r((rcache || Math.random()) * 0x100000000); rcache = _r() * 0x3ade67b7; words.push((_r() * 0x100000000) | 0); } return new WordArray.init(words, nBytes); } }); /** * Encoder namespace. */ var C_enc = C.enc = {}; /** * Hex encoding strategy. */ var Hex = C_enc.Hex = { /** * Converts a word array to a hex string. * * @param {WordArray} wordArray The word array. * * @return {string} The hex string. * * @static * * @example * * var hexString = CryptoJS.enc.Hex.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var hexChars = []; for (var i = 0; i < sigBytes; i++) { var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; hexChars.push((bite >>> 4).toString(16)); hexChars.push((bite & 0x0f).toString(16)); } return hexChars.join(''); }, /** * Converts a hex string to a word array. * * @param {string} hexStr The hex string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Hex.parse(hexString); */ parse: function (hexStr) { // Shortcut var hexStrLength = hexStr.length; // Convert var words = []; for (var i = 0; i < hexStrLength; i += 2) { words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4); } return new WordArray.init(words, hexStrLength / 2); } }; /** * Latin1 encoding strategy. */ var Latin1 = C_enc.Latin1 = { /** * Converts a word array to a Latin1 string. * * @param {WordArray} wordArray The word array. * * @return {string} The Latin1 string. * * @static * * @example * * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var latin1Chars = []; for (var i = 0; i < sigBytes; i++) { var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; latin1Chars.push(String.fromCharCode(bite)); } return latin1Chars.join(''); }, /** * Converts a Latin1 string to a word array. * * @param {string} latin1Str The Latin1 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Latin1.parse(latin1String); */ parse: function (latin1Str) { // Shortcut var latin1StrLength = latin1Str.length; // Convert var words = []; for (var i = 0; i < latin1StrLength; i++) { words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8); } return new WordArray.init(words, latin1StrLength); } }; /** * UTF-8 encoding strategy. */ var Utf8 = C_enc.Utf8 = { /** * Converts a word array to a UTF-8 string. * * @param {WordArray} wordArray The word array. * * @return {string} The UTF-8 string. * * @static * * @example * * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray); */ stringify: function (wordArray) { try { return decodeURIComponent(escape(Latin1.stringify(wordArray))); } catch (e) { throw new Error('Malformed UTF-8 data'); } }, /** * Converts a UTF-8 string to a word array. * * @param {string} utf8Str The UTF-8 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Utf8.parse(utf8String); */ parse: function (utf8Str) { return Latin1.parse(unescape(encodeURIComponent(utf8Str))); } }; /** * Abstract buffered block algorithm template. * * The property blockSize must be implemented in a concrete subtype. * * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0 */ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({ /** * Resets this block algorithm's data buffer to its initial state. * * @example * * bufferedBlockAlgorithm.reset(); */ reset: function () { // Initial values this._data = new WordArray.init(); this._nDataBytes = 0; }, /** * Adds new data to this block algorithm's buffer. * * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8. * * @example * * bufferedBlockAlgorithm._append('data'); * bufferedBlockAlgorithm._append(wordArray); */ _append: function (data) { // Convert string to WordArray, else assume WordArray already if (typeof data == 'string') { data = Utf8.parse(data); } // Append this._data.concat(data); this._nDataBytes += data.sigBytes; }, /** * Processes available data blocks. * * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype. * * @param {boolean} doFlush Whether all blocks and partial blocks should be processed. * * @return {WordArray} The processed data. * * @example * * var processedData = bufferedBlockAlgorithm._process(); * var processedData = bufferedBlockAlgorithm._process(!!'flush'); */ _process: function (doFlush) { // Shortcuts var data = this._data; var dataWords = data.words; var dataSigBytes = data.sigBytes; var blockSize = this.blockSize; var blockSizeBytes = blockSize * 4; // Count blocks ready var nBlocksReady = dataSigBytes / blockSizeBytes; if (doFlush) { // Round up to include partial blocks nBlocksReady = Math.ceil(nBlocksReady); } else { // Round down to include only full blocks, // less the number of blocks that must remain in the buffer nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0); } // Count words ready var nWordsReady = nBlocksReady * blockSize; // Count bytes ready var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes); // Process blocks if (nWordsReady) { for (var offset = 0; offset < nWordsReady; offset += blockSize) { // Perform concrete-algorithm logic this._doProcessBlock(dataWords, offset); } // Remove processed words var processedWords = dataWords.splice(0, nWordsReady); data.sigBytes -= nBytesReady; } // Return processed words return new WordArray.init(processedWords, nBytesReady); }, /** * Creates a copy of this object. * * @return {Object} The clone. * * @example * * var clone = bufferedBlockAlgorithm.clone(); */ clone: function () { var clone = Base.clone.call(this); clone._data = this._data.clone(); return clone; }, _minBufferSize: 0 }); /** * Abstract hasher template. * * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits) */ var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({ /** * Configuration options. */ cfg: Base.extend(), /** * Initializes a newly created hasher. * * @param {Object} cfg (Optional) The configuration options to use for this hash computation. * * @example * * var hasher = CryptoJS.algo.SHA256.create(); */ init: function (cfg) { // Apply config defaults this.cfg = this.cfg.extend(cfg); // Set initial values this.reset(); }, /** * Resets this hasher to its initial state. * * @example * * hasher.reset(); */ reset: function () { // Reset data buffer BufferedBlockAlgorithm.reset.call(this); // Perform concrete-hasher logic this._doReset(); }, /** * Updates this hasher with a message. * * @param {WordArray|string} messageUpdate The message to append. * * @return {Hasher} This hasher. * * @example * * hasher.update('message'); * hasher.update(wordArray); */ update: function (messageUpdate) { // Append this._append(messageUpdate); // Update the hash this._process(); // Chainable return this; }, /** * Finalizes the hash computation. * Note that the finalize operation is effectively a destructive, read-once operation. * * @param {WordArray|string} messageUpdate (Optional) A final message update. * * @return {WordArray} The hash. * * @example * * var hash = hasher.finalize(); * var hash = hasher.finalize('message'); * var hash = hasher.finalize(wordArray); */ finalize: function (messageUpdate) { // Final message update if (messageUpdate) { this._append(messageUpdate); } // Perform concrete-hasher logic var hash = this._doFinalize(); return hash; }, blockSize: 512/32, /** * Creates a shortcut function to a hasher's object interface. * * @param {Hasher} hasher The hasher to create a helper for. * * @return {Function} The shortcut function. * * @static * * @example * * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256); */ _createHelper: function (hasher) { return function (message, cfg) { return new hasher.init(cfg).finalize(message); }; }, /** * Creates a shortcut function to the HMAC's object interface. * * @param {Hasher} hasher The hasher to use in this HMAC helper. * * @return {Function} The shortcut function. * * @static * * @example * * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256); */ _createHmacHelper: function (hasher) { return function (message, key) { return new C_algo.HMAC.init(hasher, key).finalize(message); }; } }); /** * Algorithm namespace. */ var C_algo = C.algo = {}; return C; }(Math)); return CryptoJS; })); },{}],270:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var C_enc = C.enc; /** * Base64 encoding strategy. */ var Base64 = C_enc.Base64 = { /** * Converts a word array to a Base64 string. * * @param {WordArray} wordArray The word array. * * @return {string} The Base64 string. * * @static * * @example * * var base64String = CryptoJS.enc.Base64.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; var map = this._map; // Clamp excess bits wordArray.clamp(); // Convert var base64Chars = []; for (var i = 0; i < sigBytes; i += 3) { var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff; var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff; var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff; var triplet = (byte1 << 16) | (byte2 << 8) | byte3; for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) { base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f)); } } // Add padding var paddingChar = map.charAt(64); if (paddingChar) { while (base64Chars.length % 4) { base64Chars.push(paddingChar); } } return base64Chars.join(''); }, /** * Converts a Base64 string to a word array. * * @param {string} base64Str The Base64 string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Base64.parse(base64String); */ parse: function (base64Str) { // Shortcuts var base64StrLength = base64Str.length; var map = this._map; // Ignore padding var paddingChar = map.charAt(64); if (paddingChar) { var paddingIndex = base64Str.indexOf(paddingChar); if (paddingIndex != -1) { base64StrLength = paddingIndex; } } // Convert var words = []; var nBytes = 0; for (var i = 0; i < base64StrLength; i++) { if (i % 4) { var bits1 = map.indexOf(base64Str.charAt(i - 1)) << ((i % 4) * 2); var bits2 = map.indexOf(base64Str.charAt(i)) >>> (6 - (i % 4) * 2); var bitsCombined = bits1 | bits2; words[nBytes >>> 2] |= (bitsCombined) << (24 - (nBytes % 4) * 8); nBytes++; } } return WordArray.create(words, nBytes); }, _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=' }; }()); return CryptoJS.enc.Base64; })); },{"./core":269}],271:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var C_enc = C.enc; /** * UTF-16 BE encoding strategy. */ var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = { /** * Converts a word array to a UTF-16 BE string. * * @param {WordArray} wordArray The word array. * * @return {string} The UTF-16 BE string. * * @static * * @example * * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var utf16Chars = []; for (var i = 0; i < sigBytes; i += 2) { var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff; utf16Chars.push(String.fromCharCode(codePoint)); } return utf16Chars.join(''); }, /** * Converts a UTF-16 BE string to a word array. * * @param {string} utf16Str The UTF-16 BE string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Utf16.parse(utf16String); */ parse: function (utf16Str) { // Shortcut var utf16StrLength = utf16Str.length; // Convert var words = []; for (var i = 0; i < utf16StrLength; i++) { words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16); } return WordArray.create(words, utf16StrLength * 2); } }; /** * UTF-16 LE encoding strategy. */ C_enc.Utf16LE = { /** * Converts a word array to a UTF-16 LE string. * * @param {WordArray} wordArray The word array. * * @return {string} The UTF-16 LE string. * * @static * * @example * * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray); */ stringify: function (wordArray) { // Shortcuts var words = wordArray.words; var sigBytes = wordArray.sigBytes; // Convert var utf16Chars = []; for (var i = 0; i < sigBytes; i += 2) { var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff); utf16Chars.push(String.fromCharCode(codePoint)); } return utf16Chars.join(''); }, /** * Converts a UTF-16 LE string to a word array. * * @param {string} utf16Str The UTF-16 LE string. * * @return {WordArray} The word array. * * @static * * @example * * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str); */ parse: function (utf16Str) { // Shortcut var utf16StrLength = utf16Str.length; // Convert var words = []; for (var i = 0; i < utf16StrLength; i++) { words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16)); } return WordArray.create(words, utf16StrLength * 2); } }; function swapEndian(word) { return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff); } }()); return CryptoJS.enc.Utf16; })); },{"./core":269}],272:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha1", "./hmac"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var WordArray = C_lib.WordArray; var C_algo = C.algo; var MD5 = C_algo.MD5; /** * This key derivation function is meant to conform with EVP_BytesToKey. * www.openssl.org/docs/crypto/EVP_BytesToKey.html */ var EvpKDF = C_algo.EvpKDF = Base.extend({ /** * Configuration options. * * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) * @property {Hasher} hasher The hash algorithm to use. Default: MD5 * @property {number} iterations The number of iterations to perform. Default: 1 */ cfg: Base.extend({ keySize: 128/32, hasher: MD5, iterations: 1 }), /** * Initializes a newly created key derivation function. * * @param {Object} cfg (Optional) The configuration options to use for the derivation. * * @example * * var kdf = CryptoJS.algo.EvpKDF.create(); * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 }); * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 }); */ init: function (cfg) { this.cfg = this.cfg.extend(cfg); }, /** * Derives a key from a password. * * @param {WordArray|string} password The password. * @param {WordArray|string} salt A salt. * * @return {WordArray} The derived key. * * @example * * var key = kdf.compute(password, salt); */ compute: function (password, salt) { // Shortcut var cfg = this.cfg; // Init hasher var hasher = cfg.hasher.create(); // Initial values var derivedKey = WordArray.create(); // Shortcuts var derivedKeyWords = derivedKey.words; var keySize = cfg.keySize; var iterations = cfg.iterations; // Generate key while (derivedKeyWords.length < keySize) { if (block) { hasher.update(block); } var block = hasher.update(password).finalize(salt); hasher.reset(); // Iterations for (var i = 1; i < iterations; i++) { block = hasher.finalize(block); hasher.reset(); } derivedKey.concat(block); } derivedKey.sigBytes = keySize * 4; return derivedKey; } }); /** * Derives a key from a password. * * @param {WordArray|string} password The password. * @param {WordArray|string} salt A salt. * @param {Object} cfg (Optional) The configuration options to use for this computation. * * @return {WordArray} The derived key. * * @static * * @example * * var key = CryptoJS.EvpKDF(password, salt); * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 }); * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 }); */ C.EvpKDF = function (password, salt, cfg) { return EvpKDF.create(cfg).compute(password, salt); }; }()); return CryptoJS.EvpKDF; })); },{"./core":269,"./hmac":274,"./sha1":293}],273:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function (undefined) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var CipherParams = C_lib.CipherParams; var C_enc = C.enc; var Hex = C_enc.Hex; var C_format = C.format; var HexFormatter = C_format.Hex = { /** * Converts the ciphertext of a cipher params object to a hexadecimally encoded string. * * @param {CipherParams} cipherParams The cipher params object. * * @return {string} The hexadecimally encoded string. * * @static * * @example * * var hexString = CryptoJS.format.Hex.stringify(cipherParams); */ stringify: function (cipherParams) { return cipherParams.ciphertext.toString(Hex); }, /** * Converts a hexadecimally encoded ciphertext string to a cipher params object. * * @param {string} input The hexadecimally encoded string. * * @return {CipherParams} The cipher params object. * * @static * * @example * * var cipherParams = CryptoJS.format.Hex.parse(hexString); */ parse: function (input) { var ciphertext = Hex.parse(input); return CipherParams.create({ ciphertext: ciphertext }); } }; }()); return CryptoJS.format.Hex; })); },{"./cipher-core":268,"./core":269}],274:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var C_enc = C.enc; var Utf8 = C_enc.Utf8; var C_algo = C.algo; /** * HMAC algorithm. */ var HMAC = C_algo.HMAC = Base.extend({ /** * Initializes a newly created HMAC. * * @param {Hasher} hasher The hash algorithm to use. * @param {WordArray|string} key The secret key. * * @example * * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key); */ init: function (hasher, key) { // Init hasher hasher = this._hasher = new hasher.init(); // Convert string to WordArray, else assume WordArray already if (typeof key == 'string') { key = Utf8.parse(key); } // Shortcuts var hasherBlockSize = hasher.blockSize; var hasherBlockSizeBytes = hasherBlockSize * 4; // Allow arbitrary length keys if (key.sigBytes > hasherBlockSizeBytes) { key = hasher.finalize(key); } // Clamp excess bits key.clamp(); // Clone key for inner and outer pads var oKey = this._oKey = key.clone(); var iKey = this._iKey = key.clone(); // Shortcuts var oKeyWords = oKey.words; var iKeyWords = iKey.words; // XOR keys with pad constants for (var i = 0; i < hasherBlockSize; i++) { oKeyWords[i] ^= 0x5c5c5c5c; iKeyWords[i] ^= 0x36363636; } oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; // Set initial values this.reset(); }, /** * Resets this HMAC to its initial state. * * @example * * hmacHasher.reset(); */ reset: function () { // Shortcut var hasher = this._hasher; // Reset hasher.reset(); hasher.update(this._iKey); }, /** * Updates this HMAC with a message. * * @param {WordArray|string} messageUpdate The message to append. * * @return {HMAC} This HMAC instance. * * @example * * hmacHasher.update('message'); * hmacHasher.update(wordArray); */ update: function (messageUpdate) { this._hasher.update(messageUpdate); // Chainable return this; }, /** * Finalizes the HMAC computation. * Note that the finalize operation is effectively a destructive, read-once operation. * * @param {WordArray|string} messageUpdate (Optional) A final message update. * * @return {WordArray} The HMAC. * * @example * * var hmac = hmacHasher.finalize(); * var hmac = hmacHasher.finalize('message'); * var hmac = hmacHasher.finalize(wordArray); */ finalize: function (messageUpdate) { // Shortcut var hasher = this._hasher; // Compute HMAC var innerHash = hasher.finalize(messageUpdate); hasher.reset(); var hmac = hasher.finalize(this._oKey.clone().concat(innerHash)); return hmac; } }); }()); })); },{"./core":269}],275:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./lib-typedarrays"), require("./enc-utf16"), require("./enc-base64"), require("./md5"), require("./sha1"), require("./sha256"), require("./sha224"), require("./sha512"), require("./sha384"), require("./sha3"), require("./ripemd160"), require("./hmac"), require("./pbkdf2"), require("./evpkdf"), require("./cipher-core"), require("./mode-cfb"), require("./mode-ctr"), require("./mode-ctr-gladman"), require("./mode-ofb"), require("./mode-ecb"), require("./pad-ansix923"), require("./pad-iso10126"), require("./pad-iso97971"), require("./pad-zeropadding"), require("./pad-nopadding"), require("./format-hex"), require("./aes"), require("./tripledes"), require("./rc4"), require("./rabbit"), require("./rabbit-legacy")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy"], factory); } else { // Global (browser) root.CryptoJS = factory(root.CryptoJS); } }(this, function (CryptoJS) { return CryptoJS; })); },{"./aes":267,"./cipher-core":268,"./core":269,"./enc-base64":270,"./enc-utf16":271,"./evpkdf":272,"./format-hex":273,"./hmac":274,"./lib-typedarrays":276,"./md5":277,"./mode-cfb":278,"./mode-ctr":280,"./mode-ctr-gladman":279,"./mode-ecb":281,"./mode-ofb":282,"./pad-ansix923":283,"./pad-iso10126":284,"./pad-iso97971":285,"./pad-nopadding":286,"./pad-zeropadding":287,"./pbkdf2":288,"./rabbit":290,"./rabbit-legacy":289,"./rc4":291,"./ripemd160":292,"./sha1":293,"./sha224":294,"./sha256":295,"./sha3":296,"./sha384":297,"./sha512":298,"./tripledes":299,"./x64-core":300}],276:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Check if typed arrays are supported if (typeof ArrayBuffer != 'function') { return; } // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; // Reference original init var superInit = WordArray.init; // Augment WordArray.init to handle typed arrays var subInit = WordArray.init = function (typedArray) { // Convert buffers to uint8 if (typedArray instanceof ArrayBuffer) { typedArray = new Uint8Array(typedArray); } // Convert other array views to uint8 if ( typedArray instanceof Int8Array || (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array ) { typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength); } // Handle Uint8Array if (typedArray instanceof Uint8Array) { // Shortcut var typedArrayByteLength = typedArray.byteLength; // Extract bytes var words = []; for (var i = 0; i < typedArrayByteLength; i++) { words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8); } // Initialize this word array superInit.call(this, words, typedArrayByteLength); } else { // Else call normal init superInit.apply(this, arguments); } }; subInit.prototype = WordArray; }()); return CryptoJS.lib.WordArray; })); },{"./core":269}],277:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function (Math) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var Hasher = C_lib.Hasher; var C_algo = C.algo; // Constants table var T = []; // Compute constants (function () { for (var i = 0; i < 64; i++) { T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0; } }()); /** * MD5 hash algorithm. */ var MD5 = C_algo.MD5 = Hasher.extend({ _doReset: function () { this._hash = new WordArray.init([ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 ]); }, _doProcessBlock: function (M, offset) { // Swap endian for (var i = 0; i < 16; i++) { // Shortcuts var offset_i = offset + i; var M_offset_i = M[offset_i]; M[offset_i] = ( (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) | (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00) ); } // Shortcuts var H = this._hash.words; var M_offset_0 = M[offset + 0]; var M_offset_1 = M[offset + 1]; var M_offset_2 = M[offset + 2]; var M_offset_3 = M[offset + 3]; var M_offset_4 = M[offset + 4]; var M_offset_5 = M[offset + 5]; var M_offset_6 = M[offset + 6]; var M_offset_7 = M[offset + 7]; var M_offset_8 = M[offset + 8]; var M_offset_9 = M[offset + 9]; var M_offset_10 = M[offset + 10]; var M_offset_11 = M[offset + 11]; var M_offset_12 = M[offset + 12]; var M_offset_13 = M[offset + 13]; var M_offset_14 = M[offset + 14]; var M_offset_15 = M[offset + 15]; // Working varialbes var a = H[0]; var b = H[1]; var c = H[2]; var d = H[3]; // Computation a = FF(a, b, c, d, M_offset_0, 7, T[0]); d = FF(d, a, b, c, M_offset_1, 12, T[1]); c = FF(c, d, a, b, M_offset_2, 17, T[2]); b = FF(b, c, d, a, M_offset_3, 22, T[3]); a = FF(a, b, c, d, M_offset_4, 7, T[4]); d = FF(d, a, b, c, M_offset_5, 12, T[5]); c = FF(c, d, a, b, M_offset_6, 17, T[6]); b = FF(b, c, d, a, M_offset_7, 22, T[7]); a = FF(a, b, c, d, M_offset_8, 7, T[8]); d = FF(d, a, b, c, M_offset_9, 12, T[9]); c = FF(c, d, a, b, M_offset_10, 17, T[10]); b = FF(b, c, d, a, M_offset_11, 22, T[11]); a = FF(a, b, c, d, M_offset_12, 7, T[12]); d = FF(d, a, b, c, M_offset_13, 12, T[13]); c = FF(c, d, a, b, M_offset_14, 17, T[14]); b = FF(b, c, d, a, M_offset_15, 22, T[15]); a = GG(a, b, c, d, M_offset_1, 5, T[16]); d = GG(d, a, b, c, M_offset_6, 9, T[17]); c = GG(c, d, a, b, M_offset_11, 14, T[18]); b = GG(b, c, d, a, M_offset_0, 20, T[19]); a = GG(a, b, c, d, M_offset_5, 5, T[20]); d = GG(d, a, b, c, M_offset_10, 9, T[21]); c = GG(c, d, a, b, M_offset_15, 14, T[22]); b = GG(b, c, d, a, M_offset_4, 20, T[23]); a = GG(a, b, c, d, M_offset_9, 5, T[24]); d = GG(d, a, b, c, M_offset_14, 9, T[25]); c = GG(c, d, a, b, M_offset_3, 14, T[26]); b = GG(b, c, d, a, M_offset_8, 20, T[27]); a = GG(a, b, c, d, M_offset_13, 5, T[28]); d = GG(d, a, b, c, M_offset_2, 9, T[29]); c = GG(c, d, a, b, M_offset_7, 14, T[30]); b = GG(b, c, d, a, M_offset_12, 20, T[31]); a = HH(a, b, c, d, M_offset_5, 4, T[32]); d = HH(d, a, b, c, M_offset_8, 11, T[33]); c = HH(c, d, a, b, M_offset_11, 16, T[34]); b = HH(b, c, d, a, M_offset_14, 23, T[35]); a = HH(a, b, c, d, M_offset_1, 4, T[36]); d = HH(d, a, b, c, M_offset_4, 11, T[37]); c = HH(c, d, a, b, M_offset_7, 16, T[38]); b = HH(b, c, d, a, M_offset_10, 23, T[39]); a = HH(a, b, c, d, M_offset_13, 4, T[40]); d = HH(d, a, b, c, M_offset_0, 11, T[41]); c = HH(c, d, a, b, M_offset_3, 16, T[42]); b = HH(b, c, d, a, M_offset_6, 23, T[43]); a = HH(a, b, c, d, M_offset_9, 4, T[44]); d = HH(d, a, b, c, M_offset_12, 11, T[45]); c = HH(c, d, a, b, M_offset_15, 16, T[46]); b = HH(b, c, d, a, M_offset_2, 23, T[47]); a = II(a, b, c, d, M_offset_0, 6, T[48]); d = II(d, a, b, c, M_offset_7, 10, T[49]); c = II(c, d, a, b, M_offset_14, 15, T[50]); b = II(b, c, d, a, M_offset_5, 21, T[51]); a = II(a, b, c, d, M_offset_12, 6, T[52]); d = II(d, a, b, c, M_offset_3, 10, T[53]); c = II(c, d, a, b, M_offset_10, 15, T[54]); b = II(b, c, d, a, M_offset_1, 21, T[55]); a = II(a, b, c, d, M_offset_8, 6, T[56]); d = II(d, a, b, c, M_offset_15, 10, T[57]); c = II(c, d, a, b, M_offset_6, 15, T[58]); b = II(b, c, d, a, M_offset_13, 21, T[59]); a = II(a, b, c, d, M_offset_4, 6, T[60]); d = II(d, a, b, c, M_offset_11, 10, T[61]); c = II(c, d, a, b, M_offset_2, 15, T[62]); b = II(b, c, d, a, M_offset_9, 21, T[63]); // Intermediate hash value H[0] = (H[0] + a) | 0; H[1] = (H[1] + b) | 0; H[2] = (H[2] + c) | 0; H[3] = (H[3] + d) | 0; }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; // Add padding dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000); var nBitsTotalL = nBitsTotal; dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = ( (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) | (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00) ); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = ( (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) | (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00) ); data.sigBytes = (dataWords.length + 1) * 4; // Hash final blocks this._process(); // Shortcuts var hash = this._hash; var H = hash.words; // Swap endian for (var i = 0; i < 4; i++) { // Shortcut var H_i = H[i]; H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) | (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00); } // Return final computed hash return hash; }, clone: function () { var clone = Hasher.clone.call(this); clone._hash = this._hash.clone(); return clone; } }); function FF(a, b, c, d, x, s, t) { var n = a + ((b & c) | (~b & d)) + x + t; return ((n << s) | (n >>> (32 - s))) + b; } function GG(a, b, c, d, x, s, t) { var n = a + ((b & d) | (c & ~d)) + x + t; return ((n << s) | (n >>> (32 - s))) + b; } function HH(a, b, c, d, x, s, t) { var n = a + (b ^ c ^ d) + x + t; return ((n << s) | (n >>> (32 - s))) + b; } function II(a, b, c, d, x, s, t) { var n = a + (c ^ (b | ~d)) + x + t; return ((n << s) | (n >>> (32 - s))) + b; } /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.MD5('message'); * var hash = CryptoJS.MD5(wordArray); */ C.MD5 = Hasher._createHelper(MD5); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacMD5(message, key); */ C.HmacMD5 = Hasher._createHmacHelper(MD5); }(Math)); return CryptoJS.MD5; })); },{"./core":269}],278:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Cipher Feedback block mode. */ CryptoJS.mode.CFB = (function () { var CFB = CryptoJS.lib.BlockCipherMode.extend(); CFB.Encryptor = CFB.extend({ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher; var blockSize = cipher.blockSize; generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); // Remember this block to use with next block this._prevBlock = words.slice(offset, offset + blockSize); } }); CFB.Decryptor = CFB.extend({ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher; var blockSize = cipher.blockSize; // Remember this block to use with next block var thisBlock = words.slice(offset, offset + blockSize); generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); // This block becomes the previous block this._prevBlock = thisBlock; } }); function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) { // Shortcut var iv = this._iv; // Generate keystream if (iv) { var keystream = iv.slice(0); // Remove IV for subsequent blocks this._iv = undefined; } else { var keystream = this._prevBlock; } cipher.encryptBlock(keystream, 0); // Encrypt for (var i = 0; i < blockSize; i++) { words[offset + i] ^= keystream[i]; } } return CFB; }()); return CryptoJS.mode.CFB; })); },{"./cipher-core":268,"./core":269}],279:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ CryptoJS.mode.CTRGladman = (function () { var CTRGladman = CryptoJS.lib.BlockCipherMode.extend(); function incWord(word) { if (((word >> 24) & 0xff) === 0xff) { //overflow var b1 = (word >> 16)&0xff; var b2 = (word >> 8)&0xff; var b3 = word & 0xff; if (b1 === 0xff) // overflow b1 { b1 = 0; if (b2 === 0xff) { b2 = 0; if (b3 === 0xff) { b3 = 0; } else { ++b3; } } else { ++b2; } } else { ++b1; } word = 0; word += (b1 << 16); word += (b2 << 8); word += b3; } else { word += (0x01 << 24); } return word; } function incCounter(counter) { if ((counter[0] = incWord(counter[0])) === 0) { // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8 counter[1] = incWord(counter[1]); } return counter; } var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher var blockSize = cipher.blockSize; var iv = this._iv; var counter = this._counter; // Generate keystream if (iv) { counter = this._counter = iv.slice(0); // Remove IV for subsequent blocks this._iv = undefined; } incCounter(counter); var keystream = counter.slice(0); cipher.encryptBlock(keystream, 0); // Encrypt for (var i = 0; i < blockSize; i++) { words[offset + i] ^= keystream[i]; } } }); CTRGladman.Decryptor = Encryptor; return CTRGladman; }()); return CryptoJS.mode.CTRGladman; })); },{"./cipher-core":268,"./core":269}],280:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Counter block mode. */ CryptoJS.mode.CTR = (function () { var CTR = CryptoJS.lib.BlockCipherMode.extend(); var Encryptor = CTR.Encryptor = CTR.extend({ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher var blockSize = cipher.blockSize; var iv = this._iv; var counter = this._counter; // Generate keystream if (iv) { counter = this._counter = iv.slice(0); // Remove IV for subsequent blocks this._iv = undefined; } var keystream = counter.slice(0); cipher.encryptBlock(keystream, 0); // Increment counter counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0 // Encrypt for (var i = 0; i < blockSize; i++) { words[offset + i] ^= keystream[i]; } } }); CTR.Decryptor = Encryptor; return CTR; }()); return CryptoJS.mode.CTR; })); },{"./cipher-core":268,"./core":269}],281:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Electronic Codebook block mode. */ CryptoJS.mode.ECB = (function () { var ECB = CryptoJS.lib.BlockCipherMode.extend(); ECB.Encryptor = ECB.extend({ processBlock: function (words, offset) { this._cipher.encryptBlock(words, offset); } }); ECB.Decryptor = ECB.extend({ processBlock: function (words, offset) { this._cipher.decryptBlock(words, offset); } }); return ECB; }()); return CryptoJS.mode.ECB; })); },{"./cipher-core":268,"./core":269}],282:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Output Feedback block mode. */ CryptoJS.mode.OFB = (function () { var OFB = CryptoJS.lib.BlockCipherMode.extend(); var Encryptor = OFB.Encryptor = OFB.extend({ processBlock: function (words, offset) { // Shortcuts var cipher = this._cipher var blockSize = cipher.blockSize; var iv = this._iv; var keystream = this._keystream; // Generate keystream if (iv) { keystream = this._keystream = iv.slice(0); // Remove IV for subsequent blocks this._iv = undefined; } cipher.encryptBlock(keystream, 0); // Encrypt for (var i = 0; i < blockSize; i++) { words[offset + i] ^= keystream[i]; } } }); OFB.Decryptor = Encryptor; return OFB; }()); return CryptoJS.mode.OFB; })); },{"./cipher-core":268,"./core":269}],283:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * ANSI X.923 padding strategy. */ CryptoJS.pad.AnsiX923 = { pad: function (data, blockSize) { // Shortcuts var dataSigBytes = data.sigBytes; var blockSizeBytes = blockSize * 4; // Count padding bytes var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes; // Compute last byte position var lastBytePos = dataSigBytes + nPaddingBytes - 1; // Pad data.clamp(); data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8); data.sigBytes += nPaddingBytes; }, unpad: function (data) { // Get number of padding bytes from last byte var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff; // Remove padding data.sigBytes -= nPaddingBytes; } }; return CryptoJS.pad.Ansix923; })); },{"./cipher-core":268,"./core":269}],284:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * ISO 10126 padding strategy. */ CryptoJS.pad.Iso10126 = { pad: function (data, blockSize) { // Shortcut var blockSizeBytes = blockSize * 4; // Count padding bytes var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; // Pad data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)). concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1)); }, unpad: function (data) { // Get number of padding bytes from last byte var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff; // Remove padding data.sigBytes -= nPaddingBytes; } }; return CryptoJS.pad.Iso10126; })); },{"./cipher-core":268,"./core":269}],285:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * ISO/IEC 9797-1 Padding Method 2. */ CryptoJS.pad.Iso97971 = { pad: function (data, blockSize) { // Add 0x80 byte data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1)); // Zero pad the rest CryptoJS.pad.ZeroPadding.pad(data, blockSize); }, unpad: function (data) { // Remove zero padding CryptoJS.pad.ZeroPadding.unpad(data); // Remove one more byte -- the 0x80 byte data.sigBytes--; } }; return CryptoJS.pad.Iso97971; })); },{"./cipher-core":268,"./core":269}],286:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * A noop padding strategy. */ CryptoJS.pad.NoPadding = { pad: function () { }, unpad: function () { } }; return CryptoJS.pad.NoPadding; })); },{"./cipher-core":268,"./core":269}],287:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** * Zero padding strategy. */ CryptoJS.pad.ZeroPadding = { pad: function (data, blockSize) { // Shortcut var blockSizeBytes = blockSize * 4; // Pad data.clamp(); data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes); }, unpad: function (data) { // Shortcut var dataWords = data.words; // Unpad var i = data.sigBytes - 1; while (!((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) { i--; } data.sigBytes = i + 1; } }; return CryptoJS.pad.ZeroPadding; })); },{"./cipher-core":268,"./core":269}],288:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha1", "./hmac"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var WordArray = C_lib.WordArray; var C_algo = C.algo; var SHA1 = C_algo.SHA1; var HMAC = C_algo.HMAC; /** * Password-Based Key Derivation Function 2 algorithm. */ var PBKDF2 = C_algo.PBKDF2 = Base.extend({ /** * Configuration options. * * @property {number} keySize The key size in words to generate. Default: 4 (128 bits) * @property {Hasher} hasher The hasher to use. Default: SHA1 * @property {number} iterations The number of iterations to perform. Default: 1 */ cfg: Base.extend({ keySize: 128/32, hasher: SHA1, iterations: 1 }), /** * Initializes a newly created key derivation function. * * @param {Object} cfg (Optional) The configuration options to use for the derivation. * * @example * * var kdf = CryptoJS.algo.PBKDF2.create(); * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 }); * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 }); */ init: function (cfg) { this.cfg = this.cfg.extend(cfg); }, /** * Computes the Password-Based Key Derivation Function 2. * * @param {WordArray|string} password The password. * @param {WordArray|string} salt A salt. * * @return {WordArray} The derived key. * * @example * * var key = kdf.compute(password, salt); */ compute: function (password, salt) { // Shortcut var cfg = this.cfg; // Init HMAC var hmac = HMAC.create(cfg.hasher, password); // Initial values var derivedKey = WordArray.create(); var blockIndex = WordArray.create([0x00000001]); // Shortcuts var derivedKeyWords = derivedKey.words; var blockIndexWords = blockIndex.words; var keySize = cfg.keySize; var iterations = cfg.iterations; // Generate key while (derivedKeyWords.length < keySize) { var block = hmac.update(salt).finalize(blockIndex); hmac.reset(); // Shortcuts var blockWords = block.words; var blockWordsLength = blockWords.length; // Iterations var intermediate = block; for (var i = 1; i < iterations; i++) { intermediate = hmac.finalize(intermediate); hmac.reset(); // Shortcut var intermediateWords = intermediate.words; // XOR intermediate with block for (var j = 0; j < blockWordsLength; j++) { blockWords[j] ^= intermediateWords[j]; } } derivedKey.concat(block); blockIndexWords[0]++; } derivedKey.sigBytes = keySize * 4; return derivedKey; } }); /** * Computes the Password-Based Key Derivation Function 2. * * @param {WordArray|string} password The password. * @param {WordArray|string} salt A salt. * @param {Object} cfg (Optional) The configuration options to use for this computation. * * @return {WordArray} The derived key. * * @static * * @example * * var key = CryptoJS.PBKDF2(password, salt); * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 }); * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 }); */ C.PBKDF2 = function (password, salt, cfg) { return PBKDF2.create(cfg).compute(password, salt); }; }()); return CryptoJS.PBKDF2; })); },{"./core":269,"./hmac":274,"./sha1":293}],289:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var StreamCipher = C_lib.StreamCipher; var C_algo = C.algo; // Reusable objects var S = []; var C_ = []; var G = []; /** * Rabbit stream cipher algorithm. * * This is a legacy version that neglected to convert the key to little-endian. * This error doesn't affect the cipher's security, * but it does affect its compatibility with other implementations. */ var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({ _doReset: function () { // Shortcuts var K = this._key.words; var iv = this.cfg.iv; // Generate initial state values var X = this._X = [ K[0], (K[3] << 16) | (K[2] >>> 16), K[1], (K[0] << 16) | (K[3] >>> 16), K[2], (K[1] << 16) | (K[0] >>> 16), K[3], (K[2] << 16) | (K[1] >>> 16) ]; // Generate initial counter values var C = this._C = [ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff), (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff), (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff), (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff) ]; // Carry bit this._b = 0; // Iterate the system four times for (var i = 0; i < 4; i++) { nextState.call(this); } // Modify the counters for (var i = 0; i < 8; i++) { C[i] ^= X[(i + 4) & 7]; } // IV setup if (iv) { // Shortcuts var IV = iv.words; var IV_0 = IV[0]; var IV_1 = IV[1]; // Generate four subvectors var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00); var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00); var i1 = (i0 >>> 16) | (i2 & 0xffff0000); var i3 = (i2 << 16) | (i0 & 0x0000ffff); // Modify counter values C[0] ^= i0; C[1] ^= i1; C[2] ^= i2; C[3] ^= i3; C[4] ^= i0; C[5] ^= i1; C[6] ^= i2; C[7] ^= i3; // Iterate the system four times for (var i = 0; i < 4; i++) { nextState.call(this); } } }, _doProcessBlock: function (M, offset) { // Shortcut var X = this._X; // Iterate the system nextState.call(this); // Generate four keystream words S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16); S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16); S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16); S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16); for (var i = 0; i < 4; i++) { // Swap endian S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) | (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00); // Encrypt M[offset + i] ^= S[i]; } }, blockSize: 128/32, ivSize: 64/32 }); function nextState() { // Shortcuts var X = this._X; var C = this._C; // Save old counter values for (var i = 0; i < 8; i++) { C_[i] = C[i]; } // Calculate new counter values C[0] = (C[0] + 0x4d34d34d + this._b) | 0; C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0; C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0; C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0; C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0; C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0; C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0; C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0; this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0; // Calculate the g-values for (var i = 0; i < 8; i++) { var gx = X[i] + C[i]; // Construct high and low argument for squaring var ga = gx & 0xffff; var gb = gx >>> 16; // Calculate high and low result of squaring var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb; var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0); // High XOR low G[i] = gh ^ gl; } // Calculate new state values X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0; X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0; X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0; X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0; X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0; X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0; X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0; X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0; } /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg); * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg); */ C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy); }()); return CryptoJS.RabbitLegacy; })); },{"./cipher-core":268,"./core":269,"./enc-base64":270,"./evpkdf":272,"./md5":277}],290:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var StreamCipher = C_lib.StreamCipher; var C_algo = C.algo; // Reusable objects var S = []; var C_ = []; var G = []; /** * Rabbit stream cipher algorithm */ var Rabbit = C_algo.Rabbit = StreamCipher.extend({ _doReset: function () { // Shortcuts var K = this._key.words; var iv = this.cfg.iv; // Swap endian for (var i = 0; i < 4; i++) { K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) | (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00); } // Generate initial state values var X = this._X = [ K[0], (K[3] << 16) | (K[2] >>> 16), K[1], (K[0] << 16) | (K[3] >>> 16), K[2], (K[1] << 16) | (K[0] >>> 16), K[3], (K[2] << 16) | (K[1] >>> 16) ]; // Generate initial counter values var C = this._C = [ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff), (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff), (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff), (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff) ]; // Carry bit this._b = 0; // Iterate the system four times for (var i = 0; i < 4; i++) { nextState.call(this); } // Modify the counters for (var i = 0; i < 8; i++) { C[i] ^= X[(i + 4) & 7]; } // IV setup if (iv) { // Shortcuts var IV = iv.words; var IV_0 = IV[0]; var IV_1 = IV[1]; // Generate four subvectors var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00); var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00); var i1 = (i0 >>> 16) | (i2 & 0xffff0000); var i3 = (i2 << 16) | (i0 & 0x0000ffff); // Modify counter values C[0] ^= i0; C[1] ^= i1; C[2] ^= i2; C[3] ^= i3; C[4] ^= i0; C[5] ^= i1; C[6] ^= i2; C[7] ^= i3; // Iterate the system four times for (var i = 0; i < 4; i++) { nextState.call(this); } } }, _doProcessBlock: function (M, offset) { // Shortcut var X = this._X; // Iterate the system nextState.call(this); // Generate four keystream words S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16); S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16); S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16); S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16); for (var i = 0; i < 4; i++) { // Swap endian S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) | (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00); // Encrypt M[offset + i] ^= S[i]; } }, blockSize: 128/32, ivSize: 64/32 }); function nextState() { // Shortcuts var X = this._X; var C = this._C; // Save old counter values for (var i = 0; i < 8; i++) { C_[i] = C[i]; } // Calculate new counter values C[0] = (C[0] + 0x4d34d34d + this._b) | 0; C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0; C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0; C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0; C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0; C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0; C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0; C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0; this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0; // Calculate the g-values for (var i = 0; i < 8; i++) { var gx = X[i] + C[i]; // Construct high and low argument for squaring var ga = gx & 0xffff; var gb = gx >>> 16; // Calculate high and low result of squaring var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb; var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0); // High XOR low G[i] = gh ^ gl; } // Calculate new state values X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0; X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0; X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0; X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0; X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0; X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0; X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0; X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0; } /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg); * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg); */ C.Rabbit = StreamCipher._createHelper(Rabbit); }()); return CryptoJS.Rabbit; })); },{"./cipher-core":268,"./core":269,"./enc-base64":270,"./evpkdf":272,"./md5":277}],291:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var StreamCipher = C_lib.StreamCipher; var C_algo = C.algo; /** * RC4 stream cipher algorithm. */ var RC4 = C_algo.RC4 = StreamCipher.extend({ _doReset: function () { // Shortcuts var key = this._key; var keyWords = key.words; var keySigBytes = key.sigBytes; // Init sbox var S = this._S = []; for (var i = 0; i < 256; i++) { S[i] = i; } // Key setup for (var i = 0, j = 0; i < 256; i++) { var keyByteIndex = i % keySigBytes; var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff; j = (j + S[i] + keyByte) % 256; // Swap var t = S[i]; S[i] = S[j]; S[j] = t; } // Counters this._i = this._j = 0; }, _doProcessBlock: function (M, offset) { M[offset] ^= generateKeystreamWord.call(this); }, keySize: 256/32, ivSize: 0 }); function generateKeystreamWord() { // Shortcuts var S = this._S; var i = this._i; var j = this._j; // Generate keystream word var keystreamWord = 0; for (var n = 0; n < 4; n++) { i = (i + 1) % 256; j = (j + S[i]) % 256; // Swap var t = S[i]; S[i] = S[j]; S[j] = t; keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8); } // Update counters this._i = i; this._j = j; return keystreamWord; } /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg); * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg); */ C.RC4 = StreamCipher._createHelper(RC4); /** * Modified RC4 stream cipher algorithm. */ var RC4Drop = C_algo.RC4Drop = RC4.extend({ /** * Configuration options. * * @property {number} drop The number of keystream words to drop. Default 192 */ cfg: RC4.cfg.extend({ drop: 192 }), _doReset: function () { RC4._doReset.call(this); // Drop for (var i = this.cfg.drop; i > 0; i--) { generateKeystreamWord.call(this); } } }); /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg); * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg); */ C.RC4Drop = StreamCipher._createHelper(RC4Drop); }()); return CryptoJS.RC4; })); },{"./cipher-core":268,"./core":269,"./enc-base64":270,"./evpkdf":272,"./md5":277}],292:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ (function (Math) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var Hasher = C_lib.Hasher; var C_algo = C.algo; // Constants table var _zl = WordArray.create([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]); var _zr = WordArray.create([ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]); var _sl = WordArray.create([ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]); var _sr = WordArray.create([ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]); var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]); var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]); /** * RIPEMD160 hash algorithm. */ var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({ _doReset: function () { this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]); }, _doProcessBlock: function (M, offset) { // Swap endian for (var i = 0; i < 16; i++) { // Shortcuts var offset_i = offset + i; var M_offset_i = M[offset_i]; // Swap M[offset_i] = ( (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) | (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00) ); } // Shortcut var H = this._hash.words; var hl = _hl.words; var hr = _hr.words; var zl = _zl.words; var zr = _zr.words; var sl = _sl.words; var sr = _sr.words; // Working variables var al, bl, cl, dl, el; var ar, br, cr, dr, er; ar = al = H[0]; br = bl = H[1]; cr = cl = H[2]; dr = dl = H[3]; er = el = H[4]; // Computation var t; for (var i = 0; i < 80; i += 1) { t = (al + M[offset+zl[i]])|0; if (i<16){ t += f1(bl,cl,dl) + hl[0]; } else if (i<32) { t += f2(bl,cl,dl) + hl[1]; } else if (i<48) { t += f3(bl,cl,dl) + hl[2]; } else if (i<64) { t += f4(bl,cl,dl) + hl[3]; } else {// if (i<80) { t += f5(bl,cl,dl) + hl[4]; } t = t|0; t = rotl(t,sl[i]); t = (t+el)|0; al = el; el = dl; dl = rotl(cl, 10); cl = bl; bl = t; t = (ar + M[offset+zr[i]])|0; if (i<16){ t += f5(br,cr,dr) + hr[0]; } else if (i<32) { t += f4(br,cr,dr) + hr[1]; } else if (i<48) { t += f3(br,cr,dr) + hr[2]; } else if (i<64) { t += f2(br,cr,dr) + hr[3]; } else {// if (i<80) { t += f1(br,cr,dr) + hr[4]; } t = t|0; t = rotl(t,sr[i]) ; t = (t+er)|0; ar = er; er = dr; dr = rotl(cr, 10); cr = br; br = t; } // Intermediate hash value t = (H[1] + cl + dr)|0; H[1] = (H[2] + dl + er)|0; H[2] = (H[3] + el + ar)|0; H[3] = (H[4] + al + br)|0; H[4] = (H[0] + bl + cr)|0; H[0] = t; }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; // Add padding dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = ( (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) | (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00) ); data.sigBytes = (dataWords.length + 1) * 4; // Hash final blocks this._process(); // Shortcuts var hash = this._hash; var H = hash.words; // Swap endian for (var i = 0; i < 5; i++) { // Shortcut var H_i = H[i]; // Swap H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) | (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00); } // Return final computed hash return hash; }, clone: function () { var clone = Hasher.clone.call(this); clone._hash = this._hash.clone(); return clone; } }); function f1(x, y, z) { return ((x) ^ (y) ^ (z)); } function f2(x, y, z) { return (((x)&(y)) | ((~x)&(z))); } function f3(x, y, z) { return (((x) | (~(y))) ^ (z)); } function f4(x, y, z) { return (((x) & (z)) | ((y)&(~(z)))); } function f5(x, y, z) { return ((x) ^ ((y) |(~(z)))); } function rotl(x,n) { return (x<>>(32-n)); } /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.RIPEMD160('message'); * var hash = CryptoJS.RIPEMD160(wordArray); */ C.RIPEMD160 = Hasher._createHelper(RIPEMD160); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacRIPEMD160(message, key); */ C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160); }(Math)); return CryptoJS.RIPEMD160; })); },{"./core":269}],293:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var Hasher = C_lib.Hasher; var C_algo = C.algo; // Reusable object var W = []; /** * SHA-1 hash algorithm. */ var SHA1 = C_algo.SHA1 = Hasher.extend({ _doReset: function () { this._hash = new WordArray.init([ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ]); }, _doProcessBlock: function (M, offset) { // Shortcut var H = this._hash.words; // Working variables var a = H[0]; var b = H[1]; var c = H[2]; var d = H[3]; var e = H[4]; // Computation for (var i = 0; i < 80; i++) { if (i < 16) { W[i] = M[offset + i] | 0; } else { var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16]; W[i] = (n << 1) | (n >>> 31); } var t = ((a << 5) | (a >>> 27)) + e + W[i]; if (i < 20) { t += ((b & c) | (~b & d)) + 0x5a827999; } else if (i < 40) { t += (b ^ c ^ d) + 0x6ed9eba1; } else if (i < 60) { t += ((b & c) | (b & d) | (c & d)) - 0x70e44324; } else /* if (i < 80) */ { t += (b ^ c ^ d) - 0x359d3e2a; } e = d; d = c; c = (b << 30) | (b >>> 2); b = a; a = t; } // Intermediate hash value H[0] = (H[0] + a) | 0; H[1] = (H[1] + b) | 0; H[2] = (H[2] + c) | 0; H[3] = (H[3] + d) | 0; H[4] = (H[4] + e) | 0; }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; // Add padding dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal; data.sigBytes = dataWords.length * 4; // Hash final blocks this._process(); // Return final computed hash return this._hash; }, clone: function () { var clone = Hasher.clone.call(this); clone._hash = this._hash.clone(); return clone; } }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA1('message'); * var hash = CryptoJS.SHA1(wordArray); */ C.SHA1 = Hasher._createHelper(SHA1); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA1(message, key); */ C.HmacSHA1 = Hasher._createHmacHelper(SHA1); }()); return CryptoJS.SHA1; })); },{"./core":269}],294:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha256")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha256"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var C_algo = C.algo; var SHA256 = C_algo.SHA256; /** * SHA-224 hash algorithm. */ var SHA224 = C_algo.SHA224 = SHA256.extend({ _doReset: function () { this._hash = new WordArray.init([ 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ]); }, _doFinalize: function () { var hash = SHA256._doFinalize.call(this); hash.sigBytes -= 4; return hash; } }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA224('message'); * var hash = CryptoJS.SHA224(wordArray); */ C.SHA224 = SHA256._createHelper(SHA224); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA224(message, key); */ C.HmacSHA224 = SHA256._createHmacHelper(SHA224); }()); return CryptoJS.SHA224; })); },{"./core":269,"./sha256":295}],295:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function (Math) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var Hasher = C_lib.Hasher; var C_algo = C.algo; // Initialization and round constants tables var H = []; var K = []; // Compute constants (function () { function isPrime(n) { var sqrtN = Math.sqrt(n); for (var factor = 2; factor <= sqrtN; factor++) { if (!(n % factor)) { return false; } } return true; } function getFractionalBits(n) { return ((n - (n | 0)) * 0x100000000) | 0; } var n = 2; var nPrime = 0; while (nPrime < 64) { if (isPrime(n)) { if (nPrime < 8) { H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2)); } K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3)); nPrime++; } n++; } }()); // Reusable object var W = []; /** * SHA-256 hash algorithm. */ var SHA256 = C_algo.SHA256 = Hasher.extend({ _doReset: function () { this._hash = new WordArray.init(H.slice(0)); }, _doProcessBlock: function (M, offset) { // Shortcut var H = this._hash.words; // Working variables var a = H[0]; var b = H[1]; var c = H[2]; var d = H[3]; var e = H[4]; var f = H[5]; var g = H[6]; var h = H[7]; // Computation for (var i = 0; i < 64; i++) { if (i < 16) { W[i] = M[offset + i] | 0; } else { var gamma0x = W[i - 15]; var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^ ((gamma0x << 14) | (gamma0x >>> 18)) ^ (gamma0x >>> 3); var gamma1x = W[i - 2]; var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^ ((gamma1x << 13) | (gamma1x >>> 19)) ^ (gamma1x >>> 10); W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]; } var ch = (e & f) ^ (~e & g); var maj = (a & b) ^ (a & c) ^ (b & c); var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22)); var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25)); var t1 = h + sigma1 + ch + K[i] + W[i]; var t2 = sigma0 + maj; h = g; g = f; f = e; e = (d + t1) | 0; d = c; c = b; b = a; a = (t1 + t2) | 0; } // Intermediate hash value H[0] = (H[0] + a) | 0; H[1] = (H[1] + b) | 0; H[2] = (H[2] + c) | 0; H[3] = (H[3] + d) | 0; H[4] = (H[4] + e) | 0; H[5] = (H[5] + f) | 0; H[6] = (H[6] + g) | 0; H[7] = (H[7] + h) | 0; }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; // Add padding dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000); dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal; data.sigBytes = dataWords.length * 4; // Hash final blocks this._process(); // Return final computed hash return this._hash; }, clone: function () { var clone = Hasher.clone.call(this); clone._hash = this._hash.clone(); return clone; } }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA256('message'); * var hash = CryptoJS.SHA256(wordArray); */ C.SHA256 = Hasher._createHelper(SHA256); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA256(message, key); */ C.HmacSHA256 = Hasher._createHmacHelper(SHA256); }(Math)); return CryptoJS.SHA256; })); },{"./core":269}],296:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function (Math) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var Hasher = C_lib.Hasher; var C_x64 = C.x64; var X64Word = C_x64.Word; var C_algo = C.algo; // Constants tables var RHO_OFFSETS = []; var PI_INDEXES = []; var ROUND_CONSTANTS = []; // Compute Constants (function () { // Compute rho offset constants var x = 1, y = 0; for (var t = 0; t < 24; t++) { RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64; var newX = y % 5; var newY = (2 * x + 3 * y) % 5; x = newX; y = newY; } // Compute pi index constants for (var x = 0; x < 5; x++) { for (var y = 0; y < 5; y++) { PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5; } } // Compute round constants var LFSR = 0x01; for (var i = 0; i < 24; i++) { var roundConstantMsw = 0; var roundConstantLsw = 0; for (var j = 0; j < 7; j++) { if (LFSR & 0x01) { var bitPosition = (1 << j) - 1; if (bitPosition < 32) { roundConstantLsw ^= 1 << bitPosition; } else /* if (bitPosition >= 32) */ { roundConstantMsw ^= 1 << (bitPosition - 32); } } // Compute next LFSR if (LFSR & 0x80) { // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1 LFSR = (LFSR << 1) ^ 0x71; } else { LFSR <<= 1; } } ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw); } }()); // Reusable objects for temporary values var T = []; (function () { for (var i = 0; i < 25; i++) { T[i] = X64Word.create(); } }()); /** * SHA-3 hash algorithm. */ var SHA3 = C_algo.SHA3 = Hasher.extend({ /** * Configuration options. * * @property {number} outputLength * The desired number of bits in the output hash. * Only values permitted are: 224, 256, 384, 512. * Default: 512 */ cfg: Hasher.cfg.extend({ outputLength: 512 }), _doReset: function () { var state = this._state = [] for (var i = 0; i < 25; i++) { state[i] = new X64Word.init(); } this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; }, _doProcessBlock: function (M, offset) { // Shortcuts var state = this._state; var nBlockSizeLanes = this.blockSize / 2; // Absorb for (var i = 0; i < nBlockSizeLanes; i++) { // Shortcuts var M2i = M[offset + 2 * i]; var M2i1 = M[offset + 2 * i + 1]; // Swap endian M2i = ( (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) | (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00) ); M2i1 = ( (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) | (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00) ); // Absorb message into state var lane = state[i]; lane.high ^= M2i1; lane.low ^= M2i; } // Rounds for (var round = 0; round < 24; round++) { // Theta for (var x = 0; x < 5; x++) { // Mix column lanes var tMsw = 0, tLsw = 0; for (var y = 0; y < 5; y++) { var lane = state[x + 5 * y]; tMsw ^= lane.high; tLsw ^= lane.low; } // Temporary values var Tx = T[x]; Tx.high = tMsw; Tx.low = tLsw; } for (var x = 0; x < 5; x++) { // Shortcuts var Tx4 = T[(x + 4) % 5]; var Tx1 = T[(x + 1) % 5]; var Tx1Msw = Tx1.high; var Tx1Lsw = Tx1.low; // Mix surrounding columns var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31)); var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31)); for (var y = 0; y < 5; y++) { var lane = state[x + 5 * y]; lane.high ^= tMsw; lane.low ^= tLsw; } } // Rho Pi for (var laneIndex = 1; laneIndex < 25; laneIndex++) { // Shortcuts var lane = state[laneIndex]; var laneMsw = lane.high; var laneLsw = lane.low; var rhoOffset = RHO_OFFSETS[laneIndex]; // Rotate lanes if (rhoOffset < 32) { var tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset)); var tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset)); } else /* if (rhoOffset >= 32) */ { var tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset)); var tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset)); } // Transpose lanes var TPiLane = T[PI_INDEXES[laneIndex]]; TPiLane.high = tMsw; TPiLane.low = tLsw; } // Rho pi at x = y = 0 var T0 = T[0]; var state0 = state[0]; T0.high = state0.high; T0.low = state0.low; // Chi for (var x = 0; x < 5; x++) { for (var y = 0; y < 5; y++) { // Shortcuts var laneIndex = x + 5 * y; var lane = state[laneIndex]; var TLane = T[laneIndex]; var Tx1Lane = T[((x + 1) % 5) + 5 * y]; var Tx2Lane = T[((x + 2) % 5) + 5 * y]; // Mix rows lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high); lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low); } } // Iota var lane = state[0]; var roundConstant = ROUND_CONSTANTS[round]; lane.high ^= roundConstant.high; lane.low ^= roundConstant.low;; } }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; var blockSizeBits = this.blockSize * 32; // Add padding dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32); dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80; data.sigBytes = dataWords.length * 4; // Hash final blocks this._process(); // Shortcuts var state = this._state; var outputLengthBytes = this.cfg.outputLength / 8; var outputLengthLanes = outputLengthBytes / 8; // Squeeze var hashWords = []; for (var i = 0; i < outputLengthLanes; i++) { // Shortcuts var lane = state[i]; var laneMsw = lane.high; var laneLsw = lane.low; // Swap endian laneMsw = ( (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) | (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00) ); laneLsw = ( (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) | (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00) ); // Squeeze state to retrieve hash hashWords.push(laneLsw); hashWords.push(laneMsw); } // Return final computed hash return new WordArray.init(hashWords, outputLengthBytes); }, clone: function () { var clone = Hasher.clone.call(this); var state = clone._state = this._state.slice(0); for (var i = 0; i < 25; i++) { state[i] = state[i].clone(); } return clone; } }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA3('message'); * var hash = CryptoJS.SHA3(wordArray); */ C.SHA3 = Hasher._createHelper(SHA3); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA3(message, key); */ C.HmacSHA3 = Hasher._createHmacHelper(SHA3); }(Math)); return CryptoJS.SHA3; })); },{"./core":269,"./x64-core":300}],297:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core", "./sha512"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_x64 = C.x64; var X64Word = C_x64.Word; var X64WordArray = C_x64.WordArray; var C_algo = C.algo; var SHA512 = C_algo.SHA512; /** * SHA-384 hash algorithm. */ var SHA384 = C_algo.SHA384 = SHA512.extend({ _doReset: function () { this._hash = new X64WordArray.init([ new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507), new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939), new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511), new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4) ]); }, _doFinalize: function () { var hash = SHA512._doFinalize.call(this); hash.sigBytes -= 16; return hash; } }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA384('message'); * var hash = CryptoJS.SHA384(wordArray); */ C.SHA384 = SHA512._createHelper(SHA384); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA384(message, key); */ C.HmacSHA384 = SHA512._createHmacHelper(SHA384); }()); return CryptoJS.SHA384; })); },{"./core":269,"./sha512":298,"./x64-core":300}],298:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Hasher = C_lib.Hasher; var C_x64 = C.x64; var X64Word = C_x64.Word; var X64WordArray = C_x64.WordArray; var C_algo = C.algo; function X64Word_create() { return X64Word.create.apply(X64Word, arguments); } // Constants var K = [ X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd), X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc), X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019), X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118), X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe), X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2), X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1), X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694), X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3), X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65), X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483), X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5), X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210), X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4), X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725), X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70), X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926), X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df), X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8), X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b), X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001), X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30), X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910), X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8), X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53), X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8), X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb), X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3), X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60), X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec), X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9), X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b), X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207), X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178), X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6), X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b), X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493), X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c), X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a), X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817) ]; // Reusable objects var W = []; (function () { for (var i = 0; i < 80; i++) { W[i] = X64Word_create(); } }()); /** * SHA-512 hash algorithm. */ var SHA512 = C_algo.SHA512 = Hasher.extend({ _doReset: function () { this._hash = new X64WordArray.init([ new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b), new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1), new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f), new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179) ]); }, _doProcessBlock: function (M, offset) { // Shortcuts var H = this._hash.words; var H0 = H[0]; var H1 = H[1]; var H2 = H[2]; var H3 = H[3]; var H4 = H[4]; var H5 = H[5]; var H6 = H[6]; var H7 = H[7]; var H0h = H0.high; var H0l = H0.low; var H1h = H1.high; var H1l = H1.low; var H2h = H2.high; var H2l = H2.low; var H3h = H3.high; var H3l = H3.low; var H4h = H4.high; var H4l = H4.low; var H5h = H5.high; var H5l = H5.low; var H6h = H6.high; var H6l = H6.low; var H7h = H7.high; var H7l = H7.low; // Working variables var ah = H0h; var al = H0l; var bh = H1h; var bl = H1l; var ch = H2h; var cl = H2l; var dh = H3h; var dl = H3l; var eh = H4h; var el = H4l; var fh = H5h; var fl = H5l; var gh = H6h; var gl = H6l; var hh = H7h; var hl = H7l; // Rounds for (var i = 0; i < 80; i++) { // Shortcut var Wi = W[i]; // Extend message if (i < 16) { var Wih = Wi.high = M[offset + i * 2] | 0; var Wil = Wi.low = M[offset + i * 2 + 1] | 0; } else { // Gamma0 var gamma0x = W[i - 15]; var gamma0xh = gamma0x.high; var gamma0xl = gamma0x.low; var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7); var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25)); // Gamma1 var gamma1x = W[i - 2]; var gamma1xh = gamma1x.high; var gamma1xl = gamma1x.low; var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6); var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26)); // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16] var Wi7 = W[i - 7]; var Wi7h = Wi7.high; var Wi7l = Wi7.low; var Wi16 = W[i - 16]; var Wi16h = Wi16.high; var Wi16l = Wi16.low; var Wil = gamma0l + Wi7l; var Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0); var Wil = Wil + gamma1l; var Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0); var Wil = Wil + Wi16l; var Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0); Wi.high = Wih; Wi.low = Wil; } var chh = (eh & fh) ^ (~eh & gh); var chl = (el & fl) ^ (~el & gl); var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch); var majl = (al & bl) ^ (al & cl) ^ (bl & cl); var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7)); var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7)); var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9)); var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9)); // t1 = h + sigma1 + ch + K[i] + W[i] var Ki = K[i]; var Kih = Ki.high; var Kil = Ki.low; var t1l = hl + sigma1l; var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0); var t1l = t1l + chl; var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0); var t1l = t1l + Kil; var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0); var t1l = t1l + Wil; var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0); // t2 = sigma0 + maj var t2l = sigma0l + majl; var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0); // Update working variables hh = gh; hl = gl; gh = fh; gl = fl; fh = eh; fl = el; el = (dl + t1l) | 0; eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0; dh = ch; dl = cl; ch = bh; cl = bl; bh = ah; bl = al; al = (t1l + t2l) | 0; ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0; } // Intermediate hash value H0l = H0.low = (H0l + al); H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0)); H1l = H1.low = (H1l + bl); H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0)); H2l = H2.low = (H2l + cl); H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0)); H3l = H3.low = (H3l + dl); H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0)); H4l = H4.low = (H4l + el); H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0)); H5l = H5.low = (H5l + fl); H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0)); H6l = H6.low = (H6l + gl); H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0)); H7l = H7.low = (H7l + hl); H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0)); }, _doFinalize: function () { // Shortcuts var data = this._data; var dataWords = data.words; var nBitsTotal = this._nDataBytes * 8; var nBitsLeft = data.sigBytes * 8; // Add padding dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000); dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal; data.sigBytes = dataWords.length * 4; // Hash final blocks this._process(); // Convert hash to 32-bit word array before returning var hash = this._hash.toX32(); // Return final computed hash return hash; }, clone: function () { var clone = Hasher.clone.call(this); clone._hash = this._hash.clone(); return clone; }, blockSize: 1024/32 }); /** * Shortcut function to the hasher's object interface. * * @param {WordArray|string} message The message to hash. * * @return {WordArray} The hash. * * @static * * @example * * var hash = CryptoJS.SHA512('message'); * var hash = CryptoJS.SHA512(wordArray); */ C.SHA512 = Hasher._createHelper(SHA512); /** * Shortcut function to the HMAC's object interface. * * @param {WordArray|string} message The message to hash. * @param {WordArray|string} key The secret key. * * @return {WordArray} The HMAC. * * @static * * @example * * var hmac = CryptoJS.HmacSHA512(message, key); */ C.HmacSHA512 = Hasher._createHmacHelper(SHA512); }()); return CryptoJS.SHA512; })); },{"./core":269,"./x64-core":300}],299:[function(require,module,exports){ ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./enc-base64", "./md5", "./evpkdf", "./cipher-core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function () { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var WordArray = C_lib.WordArray; var BlockCipher = C_lib.BlockCipher; var C_algo = C.algo; // Permuted Choice 1 constants var PC1 = [ 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4 ]; // Permuted Choice 2 constants var PC2 = [ 14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32 ]; // Cumulative bit shift constants var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; // SBOXes and round permutation constants var SBOX_P = [ { 0x0: 0x808200, 0x10000000: 0x8000, 0x20000000: 0x808002, 0x30000000: 0x2, 0x40000000: 0x200, 0x50000000: 0x808202, 0x60000000: 0x800202, 0x70000000: 0x800000, 0x80000000: 0x202, 0x90000000: 0x800200, 0xa0000000: 0x8200, 0xb0000000: 0x808000, 0xc0000000: 0x8002, 0xd0000000: 0x800002, 0xe0000000: 0x0, 0xf0000000: 0x8202, 0x8000000: 0x0, 0x18000000: 0x808202, 0x28000000: 0x8202, 0x38000000: 0x8000, 0x48000000: 0x808200, 0x58000000: 0x200, 0x68000000: 0x808002, 0x78000000: 0x2, 0x88000000: 0x800200, 0x98000000: 0x8200, 0xa8000000: 0x808000, 0xb8000000: 0x800202, 0xc8000000: 0x800002, 0xd8000000: 0x8002, 0xe8000000: 0x202, 0xf8000000: 0x800000, 0x1: 0x8000, 0x10000001: 0x2, 0x20000001: 0x808200, 0x30000001: 0x800000, 0x40000001: 0x808002, 0x50000001: 0x8200, 0x60000001: 0x200, 0x70000001: 0x800202, 0x80000001: 0x808202, 0x90000001: 0x808000, 0xa0000001: 0x800002, 0xb0000001: 0x8202, 0xc0000001: 0x202, 0xd0000001: 0x800200, 0xe0000001: 0x8002, 0xf0000001: 0x0, 0x8000001: 0x808202, 0x18000001: 0x808000, 0x28000001: 0x800000, 0x38000001: 0x200, 0x48000001: 0x8000, 0x58000001: 0x800002, 0x68000001: 0x2, 0x78000001: 0x8202, 0x88000001: 0x8002, 0x98000001: 0x800202, 0xa8000001: 0x202, 0xb8000001: 0x808200, 0xc8000001: 0x800200, 0xd8000001: 0x0, 0xe8000001: 0x8200, 0xf8000001: 0x808002 }, { 0x0: 0x40084010, 0x1000000: 0x4000, 0x2000000: 0x80000, 0x3000000: 0x40080010, 0x4000000: 0x40000010, 0x5000000: 0x40084000, 0x6000000: 0x40004000, 0x7000000: 0x10, 0x8000000: 0x84000, 0x9000000: 0x40004010, 0xa000000: 0x40000000, 0xb000000: 0x84010, 0xc000000: 0x80010, 0xd000000: 0x0, 0xe000000: 0x4010, 0xf000000: 0x40080000, 0x800000: 0x40004000, 0x1800000: 0x84010, 0x2800000: 0x10, 0x3800000: 0x40004010, 0x4800000: 0x40084010, 0x5800000: 0x40000000, 0x6800000: 0x80000, 0x7800000: 0x40080010, 0x8800000: 0x80010, 0x9800000: 0x0, 0xa800000: 0x4000, 0xb800000: 0x40080000, 0xc800000: 0x40000010, 0xd800000: 0x84000, 0xe800000: 0x40084000, 0xf800000: 0x4010, 0x10000000: 0x0, 0x11000000: 0x40080010, 0x12000000: 0x40004010, 0x13000000: 0x40084000, 0x14000000: 0x40080000, 0x15000000: 0x10, 0x16000000: 0x84010, 0x17000000: 0x4000, 0x18000000: 0x4010, 0x19000000: 0x80000, 0x1a000000: 0x80010, 0x1b000000: 0x40000010, 0x1c000000: 0x84000, 0x1d000000: 0x40004000, 0x1e000000: 0x40000000, 0x1f000000: 0x40084010, 0x10800000: 0x84010, 0x11800000: 0x80000, 0x12800000: 0x40080000, 0x13800000: 0x4000, 0x14800000: 0x40004000, 0x15800000: 0x40084010, 0x16800000: 0x10, 0x17800000: 0x40000000, 0x18800000: 0x40084000, 0x19800000: 0x40000010, 0x1a800000: 0x40004010, 0x1b800000: 0x80010, 0x1c800000: 0x0, 0x1d800000: 0x4010, 0x1e800000: 0x40080010, 0x1f800000: 0x84000 }, { 0x0: 0x104, 0x100000: 0x0, 0x200000: 0x4000100, 0x300000: 0x10104, 0x400000: 0x10004, 0x500000: 0x4000004, 0x600000: 0x4010104, 0x700000: 0x4010000, 0x800000: 0x4000000, 0x900000: 0x4010100, 0xa00000: 0x10100, 0xb00000: 0x4010004, 0xc00000: 0x4000104, 0xd00000: 0x10000, 0xe00000: 0x4, 0xf00000: 0x100, 0x80000: 0x4010100, 0x180000: 0x4010004, 0x280000: 0x0, 0x380000: 0x4000100, 0x480000: 0x4000004, 0x580000: 0x10000, 0x680000: 0x10004, 0x780000: 0x104, 0x880000: 0x4, 0x980000: 0x100, 0xa80000: 0x4010000, 0xb80000: 0x10104, 0xc80000: 0x10100, 0xd80000: 0x4000104, 0xe80000: 0x4010104, 0xf80000: 0x4000000, 0x1000000: 0x4010100, 0x1100000: 0x10004, 0x1200000: 0x10000, 0x1300000: 0x4000100, 0x1400000: 0x100, 0x1500000: 0x4010104, 0x1600000: 0x4000004, 0x1700000: 0x0, 0x1800000: 0x4000104, 0x1900000: 0x4000000, 0x1a00000: 0x4, 0x1b00000: 0x10100, 0x1c00000: 0x4010000, 0x1d00000: 0x104, 0x1e00000: 0x10104, 0x1f00000: 0x4010004, 0x1080000: 0x4000000, 0x1180000: 0x104, 0x1280000: 0x4010100, 0x1380000: 0x0, 0x1480000: 0x10004, 0x1580000: 0x4000100, 0x1680000: 0x100, 0x1780000: 0x4010004, 0x1880000: 0x10000, 0x1980000: 0x4010104, 0x1a80000: 0x10104, 0x1b80000: 0x4000004, 0x1c80000: 0x4000104, 0x1d80000: 0x4010000, 0x1e80000: 0x4, 0x1f80000: 0x10100 }, { 0x0: 0x80401000, 0x10000: 0x80001040, 0x20000: 0x401040, 0x30000: 0x80400000, 0x40000: 0x0, 0x50000: 0x401000, 0x60000: 0x80000040, 0x70000: 0x400040, 0x80000: 0x80000000, 0x90000: 0x400000, 0xa0000: 0x40, 0xb0000: 0x80001000, 0xc0000: 0x80400040, 0xd0000: 0x1040, 0xe0000: 0x1000, 0xf0000: 0x80401040, 0x8000: 0x80001040, 0x18000: 0x40, 0x28000: 0x80400040, 0x38000: 0x80001000, 0x48000: 0x401000, 0x58000: 0x80401040, 0x68000: 0x0, 0x78000: 0x80400000, 0x88000: 0x1000, 0x98000: 0x80401000, 0xa8000: 0x400000, 0xb8000: 0x1040, 0xc8000: 0x80000000, 0xd8000: 0x400040, 0xe8000: 0x401040, 0xf8000: 0x80000040, 0x100000: 0x400040, 0x110000: 0x401000, 0x120000: 0x80000040, 0x130000: 0x0, 0x140000: 0x1040, 0x150000: 0x80400040, 0x160000: 0x80401000, 0x170000: 0x80001040, 0x180000: 0x80401040, 0x190000: 0x80000000, 0x1a0000: 0x80400000, 0x1b0000: 0x401040, 0x1c0000: 0x80001000, 0x1d0000: 0x400000, 0x1e0000: 0x40, 0x1f0000: 0x1000, 0x108000: 0x80400000, 0x118000: 0x80401040, 0x128000: 0x0, 0x138000: 0x401000, 0x148000: 0x400040, 0x158000: 0x80000000, 0x168000: 0x80001040, 0x178000: 0x40, 0x188000: 0x80000040, 0x198000: 0x1000, 0x1a8000: 0x80001000, 0x1b8000: 0x80400040, 0x1c8000: 0x1040, 0x1d8000: 0x80401000, 0x1e8000: 0x400000, 0x1f8000: 0x401040 }, { 0x0: 0x80, 0x1000: 0x1040000, 0x2000: 0x40000, 0x3000: 0x20000000, 0x4000: 0x20040080, 0x5000: 0x1000080, 0x6000: 0x21000080, 0x7000: 0x40080, 0x8000: 0x1000000, 0x9000: 0x20040000, 0xa000: 0x20000080, 0xb000: 0x21040080, 0xc000: 0x21040000, 0xd000: 0x0, 0xe000: 0x1040080, 0xf000: 0x21000000, 0x800: 0x1040080, 0x1800: 0x21000080, 0x2800: 0x80, 0x3800: 0x1040000, 0x4800: 0x40000, 0x5800: 0x20040080, 0x6800: 0x21040000, 0x7800: 0x20000000, 0x8800: 0x20040000, 0x9800: 0x0, 0xa800: 0x21040080, 0xb800: 0x1000080, 0xc800: 0x20000080, 0xd800: 0x21000000, 0xe800: 0x1000000, 0xf800: 0x40080, 0x10000: 0x40000, 0x11000: 0x80, 0x12000: 0x20000000, 0x13000: 0x21000080, 0x14000: 0x1000080, 0x15000: 0x21040000, 0x16000: 0x20040080, 0x17000: 0x1000000, 0x18000: 0x21040080, 0x19000: 0x21000000, 0x1a000: 0x1040000, 0x1b000: 0x20040000, 0x1c000: 0x40080, 0x1d000: 0x20000080, 0x1e000: 0x0, 0x1f000: 0x1040080, 0x10800: 0x21000080, 0x11800: 0x1000000, 0x12800: 0x1040000, 0x13800: 0x20040080, 0x14800: 0x20000000, 0x15800: 0x1040080, 0x16800: 0x80, 0x17800: 0x21040000, 0x18800: 0x40080, 0x19800: 0x21040080, 0x1a800: 0x0, 0x1b800: 0x21000000, 0x1c800: 0x1000080, 0x1d800: 0x40000, 0x1e800: 0x20040000, 0x1f800: 0x20000080 }, { 0x0: 0x10000008, 0x100: 0x2000, 0x200: 0x10200000, 0x300: 0x10202008, 0x400: 0x10002000, 0x500: 0x200000, 0x600: 0x200008, 0x700: 0x10000000, 0x800: 0x0, 0x900: 0x10002008, 0xa00: 0x202000, 0xb00: 0x8, 0xc00: 0x10200008, 0xd00: 0x202008, 0xe00: 0x2008, 0xf00: 0x10202000, 0x80: 0x10200000, 0x180: 0x10202008, 0x280: 0x8, 0x380: 0x200000, 0x480: 0x202008, 0x580: 0x10000008, 0x680: 0x10002000, 0x780: 0x2008, 0x880: 0x200008, 0x980: 0x2000, 0xa80: 0x10002008, 0xb80: 0x10200008, 0xc80: 0x0, 0xd80: 0x10202000, 0xe80: 0x202000, 0xf80: 0x10000000, 0x1000: 0x10002000, 0x1100: 0x10200008, 0x1200: 0x10202008, 0x1300: 0x2008, 0x1400: 0x200000, 0x1500: 0x10000000, 0x1600: 0x10000008, 0x1700: 0x202000, 0x1800: 0x202008, 0x1900: 0x0, 0x1a00: 0x8, 0x1b00: 0x10200000, 0x1c00: 0x2000, 0x1d00: 0x10002008, 0x1e00: 0x10202000, 0x1f00: 0x200008, 0x1080: 0x8, 0x1180: 0x202000, 0x1280: 0x200000, 0x1380: 0x10000008, 0x1480: 0x10002000, 0x1580: 0x2008, 0x1680: 0x10202008, 0x1780: 0x10200000, 0x1880: 0x10202000, 0x1980: 0x10200008, 0x1a80: 0x2000, 0x1b80: 0x202008, 0x1c80: 0x200008, 0x1d80: 0x0, 0x1e80: 0x10000000, 0x1f80: 0x10002008 }, { 0x0: 0x100000, 0x10: 0x2000401, 0x20: 0x400, 0x30: 0x100401, 0x40: 0x2100401, 0x50: 0x0, 0x60: 0x1, 0x70: 0x2100001, 0x80: 0x2000400, 0x90: 0x100001, 0xa0: 0x2000001, 0xb0: 0x2100400, 0xc0: 0x2100000, 0xd0: 0x401, 0xe0: 0x100400, 0xf0: 0x2000000, 0x8: 0x2100001, 0x18: 0x0, 0x28: 0x2000401, 0x38: 0x2100400, 0x48: 0x100000, 0x58: 0x2000001, 0x68: 0x2000000, 0x78: 0x401, 0x88: 0x100401, 0x98: 0x2000400, 0xa8: 0x2100000, 0xb8: 0x100001, 0xc8: 0x400, 0xd8: 0x2100401, 0xe8: 0x1, 0xf8: 0x100400, 0x100: 0x2000000, 0x110: 0x100000, 0x120: 0x2000401, 0x130: 0x2100001, 0x140: 0x100001, 0x150: 0x2000400, 0x160: 0x2100400, 0x170: 0x100401, 0x180: 0x401, 0x190: 0x2100401, 0x1a0: 0x100400, 0x1b0: 0x1, 0x1c0: 0x0, 0x1d0: 0x2100000, 0x1e0: 0x2000001, 0x1f0: 0x400, 0x108: 0x100400, 0x118: 0x2000401, 0x128: 0x2100001, 0x138: 0x1, 0x148: 0x2000000, 0x158: 0x100000, 0x168: 0x401, 0x178: 0x2100400, 0x188: 0x2000001, 0x198: 0x2100000, 0x1a8: 0x0, 0x1b8: 0x2100401, 0x1c8: 0x100401, 0x1d8: 0x400, 0x1e8: 0x2000400, 0x1f8: 0x100001 }, { 0x0: 0x8000820, 0x1: 0x20000, 0x2: 0x8000000, 0x3: 0x20, 0x4: 0x20020, 0x5: 0x8020820, 0x6: 0x8020800, 0x7: 0x800, 0x8: 0x8020000, 0x9: 0x8000800, 0xa: 0x20800, 0xb: 0x8020020, 0xc: 0x820, 0xd: 0x0, 0xe: 0x8000020, 0xf: 0x20820, 0x80000000: 0x800, 0x80000001: 0x8020820, 0x80000002: 0x8000820, 0x80000003: 0x8000000, 0x80000004: 0x8020000, 0x80000005: 0x20800, 0x80000006: 0x20820, 0x80000007: 0x20, 0x80000008: 0x8000020, 0x80000009: 0x820, 0x8000000a: 0x20020, 0x8000000b: 0x8020800, 0x8000000c: 0x0, 0x8000000d: 0x8020020, 0x8000000e: 0x8000800, 0x8000000f: 0x20000, 0x10: 0x20820, 0x11: 0x8020800, 0x12: 0x20, 0x13: 0x800, 0x14: 0x8000800, 0x15: 0x8000020, 0x16: 0x8020020, 0x17: 0x20000, 0x18: 0x0, 0x19: 0x20020, 0x1a: 0x8020000, 0x1b: 0x8000820, 0x1c: 0x8020820, 0x1d: 0x20800, 0x1e: 0x820, 0x1f: 0x8000000, 0x80000010: 0x20000, 0x80000011: 0x800, 0x80000012: 0x8020020, 0x80000013: 0x20820, 0x80000014: 0x20, 0x80000015: 0x8020000, 0x80000016: 0x8000000, 0x80000017: 0x8000820, 0x80000018: 0x8020820, 0x80000019: 0x8000020, 0x8000001a: 0x8000800, 0x8000001b: 0x0, 0x8000001c: 0x20800, 0x8000001d: 0x820, 0x8000001e: 0x20020, 0x8000001f: 0x8020800 } ]; // Masks that select the SBOX input var SBOX_MASK = [ 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f ]; /** * DES block cipher algorithm. */ var DES = C_algo.DES = BlockCipher.extend({ _doReset: function () { // Shortcuts var key = this._key; var keyWords = key.words; // Select 56 bits according to PC1 var keyBits = []; for (var i = 0; i < 56; i++) { var keyBitPos = PC1[i] - 1; keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1; } // Assemble 16 subkeys var subKeys = this._subKeys = []; for (var nSubKey = 0; nSubKey < 16; nSubKey++) { // Create subkey var subKey = subKeys[nSubKey] = []; // Shortcut var bitShift = BIT_SHIFTS[nSubKey]; // Select 48 bits according to PC2 for (var i = 0; i < 24; i++) { // Select from the left 28 key bits subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6); // Select from the right 28 key bits subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6); } // Since each subkey is applied to an expanded 32-bit input, // the subkey can be broken into 8 values scaled to 32-bits, // which allows the key to be used without expansion subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31); for (var i = 1; i < 7; i++) { subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3); } subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27); } // Compute inverse subkeys var invSubKeys = this._invSubKeys = []; for (var i = 0; i < 16; i++) { invSubKeys[i] = subKeys[15 - i]; } }, encryptBlock: function (M, offset) { this._doCryptBlock(M, offset, this._subKeys); }, decryptBlock: function (M, offset) { this._doCryptBlock(M, offset, this._invSubKeys); }, _doCryptBlock: function (M, offset, subKeys) { // Get input this._lBlock = M[offset]; this._rBlock = M[offset + 1]; // Initial permutation exchangeLR.call(this, 4, 0x0f0f0f0f); exchangeLR.call(this, 16, 0x0000ffff); exchangeRL.call(this, 2, 0x33333333); exchangeRL.call(this, 8, 0x00ff00ff); exchangeLR.call(this, 1, 0x55555555); // Rounds for (var round = 0; round < 16; round++) { // Shortcuts var subKey = subKeys[round]; var lBlock = this._lBlock; var rBlock = this._rBlock; // Feistel function var f = 0; for (var i = 0; i < 8; i++) { f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0]; } this._lBlock = rBlock; this._rBlock = lBlock ^ f; } // Undo swap from last round var t = this._lBlock; this._lBlock = this._rBlock; this._rBlock = t; // Final permutation exchangeLR.call(this, 1, 0x55555555); exchangeRL.call(this, 8, 0x00ff00ff); exchangeRL.call(this, 2, 0x33333333); exchangeLR.call(this, 16, 0x0000ffff); exchangeLR.call(this, 4, 0x0f0f0f0f); // Set output M[offset] = this._lBlock; M[offset + 1] = this._rBlock; }, keySize: 64/32, ivSize: 64/32, blockSize: 64/32 }); // Swap bits across the left and right words function exchangeLR(offset, mask) { var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask; this._rBlock ^= t; this._lBlock ^= t << offset; } function exchangeRL(offset, mask) { var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask; this._lBlock ^= t; this._rBlock ^= t << offset; } /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg); * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg); */ C.DES = BlockCipher._createHelper(DES); /** * Triple-DES block cipher algorithm. */ var TripleDES = C_algo.TripleDES = BlockCipher.extend({ _doReset: function () { // Shortcuts var key = this._key; var keyWords = key.words; // Create DES instances this._des1 = DES.createEncryptor(WordArray.create(keyWords.slice(0, 2))); this._des2 = DES.createEncryptor(WordArray.create(keyWords.slice(2, 4))); this._des3 = DES.createEncryptor(WordArray.create(keyWords.slice(4, 6))); }, encryptBlock: function (M, offset) { this._des1.encryptBlock(M, offset); this._des2.decryptBlock(M, offset); this._des3.encryptBlock(M, offset); }, decryptBlock: function (M, offset) { this._des3.decryptBlock(M, offset); this._des2.encryptBlock(M, offset); this._des1.decryptBlock(M, offset); }, keySize: 192/32, ivSize: 64/32, blockSize: 64/32 }); /** * Shortcut functions to the cipher's object interface. * * @example * * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg); * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg); */ C.TripleDES = BlockCipher._createHelper(TripleDES); }()); return CryptoJS.TripleDES; })); },{"./cipher-core":268,"./core":269,"./enc-base64":270,"./evpkdf":272,"./md5":277}],300:[function(require,module,exports){ ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (CryptoJS) { (function (undefined) { // Shortcuts var C = CryptoJS; var C_lib = C.lib; var Base = C_lib.Base; var X32WordArray = C_lib.WordArray; /** * x64 namespace. */ var C_x64 = C.x64 = {}; /** * A 64-bit word. */ var X64Word = C_x64.Word = Base.extend({ /** * Initializes a newly created 64-bit word. * * @param {number} high The high 32 bits. * @param {number} low The low 32 bits. * * @example * * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607); */ init: function (high, low) { this.high = high; this.low = low; } /** * Bitwise NOTs this word. * * @return {X64Word} A new x64-Word object after negating. * * @example * * var negated = x64Word.not(); */ // not: function () { // var high = ~this.high; // var low = ~this.low; // return X64Word.create(high, low); // }, /** * Bitwise ANDs this word with the passed word. * * @param {X64Word} word The x64-Word to AND with this word. * * @return {X64Word} A new x64-Word object after ANDing. * * @example * * var anded = x64Word.and(anotherX64Word); */ // and: function (word) { // var high = this.high & word.high; // var low = this.low & word.low; // return X64Word.create(high, low); // }, /** * Bitwise ORs this word with the passed word. * * @param {X64Word} word The x64-Word to OR with this word. * * @return {X64Word} A new x64-Word object after ORing. * * @example * * var ored = x64Word.or(anotherX64Word); */ // or: function (word) { // var high = this.high | word.high; // var low = this.low | word.low; // return X64Word.create(high, low); // }, /** * Bitwise XORs this word with the passed word. * * @param {X64Word} word The x64-Word to XOR with this word. * * @return {X64Word} A new x64-Word object after XORing. * * @example * * var xored = x64Word.xor(anotherX64Word); */ // xor: function (word) { // var high = this.high ^ word.high; // var low = this.low ^ word.low; // return X64Word.create(high, low); // }, /** * Shifts this word n bits to the left. * * @param {number} n The number of bits to shift. * * @return {X64Word} A new x64-Word object after shifting. * * @example * * var shifted = x64Word.shiftL(25); */ // shiftL: function (n) { // if (n < 32) { // var high = (this.high << n) | (this.low >>> (32 - n)); // var low = this.low << n; // } else { // var high = this.low << (n - 32); // var low = 0; // } // return X64Word.create(high, low); // }, /** * Shifts this word n bits to the right. * * @param {number} n The number of bits to shift. * * @return {X64Word} A new x64-Word object after shifting. * * @example * * var shifted = x64Word.shiftR(7); */ // shiftR: function (n) { // if (n < 32) { // var low = (this.low >>> n) | (this.high << (32 - n)); // var high = this.high >>> n; // } else { // var low = this.high >>> (n - 32); // var high = 0; // } // return X64Word.create(high, low); // }, /** * Rotates this word n bits to the left. * * @param {number} n The number of bits to rotate. * * @return {X64Word} A new x64-Word object after rotating. * * @example * * var rotated = x64Word.rotL(25); */ // rotL: function (n) { // return this.shiftL(n).or(this.shiftR(64 - n)); // }, /** * Rotates this word n bits to the right. * * @param {number} n The number of bits to rotate. * * @return {X64Word} A new x64-Word object after rotating. * * @example * * var rotated = x64Word.rotR(7); */ // rotR: function (n) { // return this.shiftR(n).or(this.shiftL(64 - n)); // }, /** * Adds this word with the passed word. * * @param {X64Word} word The x64-Word to add with this word. * * @return {X64Word} A new x64-Word object after adding. * * @example * * var added = x64Word.add(anotherX64Word); */ // add: function (word) { // var low = (this.low + word.low) | 0; // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0; // var high = (this.high + word.high + carry) | 0; // return X64Word.create(high, low); // } }); /** * An array of 64-bit words. * * @property {Array} words The array of CryptoJS.x64.Word objects. * @property {number} sigBytes The number of significant bytes in this word array. */ var X64WordArray = C_x64.WordArray = Base.extend({ /** * Initializes a newly created word array. * * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects. * @param {number} sigBytes (Optional) The number of significant bytes in the words. * * @example * * var wordArray = CryptoJS.x64.WordArray.create(); * * var wordArray = CryptoJS.x64.WordArray.create([ * CryptoJS.x64.Word.create(0x00010203, 0x04050607), * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) * ]); * * var wordArray = CryptoJS.x64.WordArray.create([ * CryptoJS.x64.Word.create(0x00010203, 0x04050607), * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f) * ], 10); */ init: function (words, sigBytes) { words = this.words = words || []; if (sigBytes != undefined) { this.sigBytes = sigBytes; } else { this.sigBytes = words.length * 8; } }, /** * Converts this 64-bit word array to a 32-bit word array. * * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array. * * @example * * var x32WordArray = x64WordArray.toX32(); */ toX32: function () { // Shortcuts var x64Words = this.words; var x64WordsLength = x64Words.length; // Convert var x32Words = []; for (var i = 0; i < x64WordsLength; i++) { var x64Word = x64Words[i]; x32Words.push(x64Word.high); x32Words.push(x64Word.low); } return X32WordArray.create(x32Words, this.sigBytes); }, /** * Creates a copy of this word array. * * @return {X64WordArray} The clone. * * @example * * var clone = x64WordArray.clone(); */ clone: function () { var clone = Base.clone.call(this); // Clone "words" array var words = clone.words = this.words.slice(0); // Clone each X64Word object var wordsLength = words.length; for (var i = 0; i < wordsLength; i++) { words[i] = words[i].clone(); } return clone; } }); }()); return CryptoJS; })); },{"./core":269}],301:[function(require,module,exports){ (function (process,Buffer){ var stream = require('readable-stream') var eos = require('end-of-stream') var inherits = require('inherits') var shift = require('stream-shift') var SIGNAL_FLUSH = new Buffer([0]) var onuncork = function(self, fn) { if (self._corked) self.once('uncork', fn) else fn() } var destroyer = function(self, end) { return function(err) { if (err) self.destroy(err.message === 'premature close' ? null : err) else if (end && !self._ended) self.end() } } var end = function(ws, fn) { if (!ws) return fn() if (ws._writableState && ws._writableState.finished) return fn() if (ws._writableState) return ws.end(fn) ws.end() fn() } var toStreams2 = function(rs) { return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) } var Duplexify = function(writable, readable, opts) { if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) stream.Duplex.call(this, opts) this._writable = null this._readable = null this._readable2 = null this._forwardDestroy = !opts || opts.destroy !== false this._forwardEnd = !opts || opts.end !== false this._corked = 1 // start corked this._ondrain = null this._drained = false this._forwarding = false this._unwrite = null this._unread = null this._ended = false this.destroyed = false if (writable) this.setWritable(writable) if (readable) this.setReadable(readable) } inherits(Duplexify, stream.Duplex) Duplexify.obj = function(writable, readable, opts) { if (!opts) opts = {} opts.objectMode = true opts.highWaterMark = 16 return new Duplexify(writable, readable, opts) } Duplexify.prototype.cork = function() { if (++this._corked === 1) this.emit('cork') } Duplexify.prototype.uncork = function() { if (this._corked && --this._corked === 0) this.emit('uncork') } Duplexify.prototype.setWritable = function(writable) { if (this._unwrite) this._unwrite() if (this.destroyed) { if (writable && writable.destroy) writable.destroy() return } if (writable === null || writable === false) { this.end() return } var self = this var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) var ondrain = function() { var ondrain = self._ondrain self._ondrain = null if (ondrain) ondrain() } var clear = function() { self._writable.removeListener('drain', ondrain) unend() } if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks this._writable = writable this._writable.on('drain', ondrain) this._unwrite = clear this.uncork() // always uncork setWritable } Duplexify.prototype.setReadable = function(readable) { if (this._unread) this._unread() if (this.destroyed) { if (readable && readable.destroy) readable.destroy() return } if (readable === null || readable === false) { this.push(null) this.resume() return } var self = this var unend = eos(readable, {writable:false, readable:true}, destroyer(this)) var onreadable = function() { self._forward() } var onend = function() { self.push(null) } var clear = function() { self._readable2.removeListener('readable', onreadable) self._readable2.removeListener('end', onend) unend() } this._drained = true this._readable = readable this._readable2 = readable._readableState ? readable : toStreams2(readable) this._readable2.on('readable', onreadable) this._readable2.on('end', onend) this._unread = clear this._forward() } Duplexify.prototype._read = function() { this._drained = true this._forward() } Duplexify.prototype._forward = function() { if (this._forwarding || !this._readable2 || !this._drained) return this._forwarding = true var data while ((data = shift(this._readable2)) !== null) { this._drained = this.push(data) } this._forwarding = false } Duplexify.prototype.destroy = function(err) { if (this.destroyed) return this.destroyed = true var self = this process.nextTick(function() { self._destroy(err) }) } Duplexify.prototype._destroy = function(err) { if (err) { var ondrain = this._ondrain this._ondrain = null if (ondrain) ondrain(err) else this.emit('error', err) } if (this._forwardDestroy) { if (this._readable && this._readable.destroy) this._readable.destroy() if (this._writable && this._writable.destroy) this._writable.destroy() } this.emit('close') } Duplexify.prototype._write = function(data, enc, cb) { if (this.destroyed) return cb() if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb)) if (data === SIGNAL_FLUSH) return this._finish(cb) if (!this._writable) return cb() if (this._writable.write(data) === false) this._ondrain = cb else cb() } Duplexify.prototype._finish = function(cb) { var self = this this.emit('preend') onuncork(this, function() { end(self._forwardEnd && self._writable, function() { // haxx to not emit prefinish twice if (self._writableState.prefinished === false) self._writableState.prefinished = true self.emit('prefinish') onuncork(self, cb) }) }) } Duplexify.prototype.end = function(data, enc, cb) { if (typeof data === 'function') return this.end(null, null, data) if (typeof enc === 'function') return this.end(data, null, enc) this._ended = true if (data) this.write(data) if (!this._writableState.ending) this.write(SIGNAL_FLUSH) return stream.Writable.prototype.end.call(this, cb) } module.exports = Duplexify }).call(this,require('_process'),require("buffer").Buffer) },{"_process":432,"buffer":424,"end-of-stream":302,"inherits":312,"readable-stream":309,"stream-shift":389}],302:[function(require,module,exports){ var once = require('once'); var noop = function() {}; var isRequest = function(stream) { return stream.setHeader && typeof stream.abort === 'function'; }; var eos = function(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var ws = stream._writableState; var rs = stream._readableState; var readable = opts.readable || (opts.readable !== false && stream.readable); var writable = opts.writable || (opts.writable !== false && stream.writable); var onlegacyfinish = function() { if (!stream.writable) onfinish(); }; var onfinish = function() { writable = false; if (!readable) callback(); }; var onend = function() { readable = false; if (!writable) callback(); }; var onclose = function() { if (readable && !(rs && rs.ended)) return callback(new Error('premature close')); if (writable && !(ws && ws.ended)) return callback(new Error('premature close')); }; var onrequest = function() { stream.req.on('finish', onfinish); }; if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); if (stream.req) onrequest(); else stream.on('request', onrequest); } else if (writable && !ws) { // legacy streams stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', callback); stream.on('close', onclose); return function() { stream.removeListener('complete', onfinish); stream.removeListener('abort', onclose); stream.removeListener('request', onrequest); if (stream.req) stream.req.removeListener('finish', onfinish); stream.removeListener('end', onlegacyfinish); stream.removeListener('close', onlegacyfinish); stream.removeListener('finish', onfinish); stream.removeListener('end', onend); stream.removeListener('error', callback); stream.removeListener('close', onclose); }; }; module.exports = eos; },{"once":375}],303:[function(require,module,exports){ // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. 'use strict'; /**/ var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) { keys.push(key); }return keys; }; /**/ module.exports = Duplex; /**/ var processNextTick = require('process-nextick-args'); /**/ /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ var Readable = require('./_stream_readable'); var Writable = require('./_stream_writable'); util.inherits(Duplex, Readable); var keys = objectKeys(Writable.prototype); for (var v = 0; v < keys.length; v++) { var method = keys[v]; if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; } function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); if (options && options.readable === false) this.readable = false; if (options && options.writable === false) this.writable = false; this.allowHalfOpen = true; if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; this.once('end', onend); } // the no-half-open enforcer function onend() { // if we allow half-open state, or if the writable side ended, // then we're ok. if (this.allowHalfOpen || this._writableState.ended) return; // no more data can be written. // But allow more writes to happen in this tick. processNextTick(onEndNT, this); } function onEndNT(self) { self.end(); } function forEach(xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } },{"./_stream_readable":305,"./_stream_writable":307,"core-util-is":260,"inherits":312,"process-nextick-args":376}],304:[function(require,module,exports){ // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. 'use strict'; module.exports = PassThrough; var Transform = require('./_stream_transform'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function (chunk, encoding, cb) { cb(null, chunk); }; },{"./_stream_transform":306,"core-util-is":260,"inherits":312}],305:[function(require,module,exports){ (function (process){ 'use strict'; module.exports = Readable; /**/ var processNextTick = require('process-nextick-args'); /**/ /**/ var isArray = require('isarray'); /**/ Readable.ReadableState = ReadableState; /**/ var EE = require('events').EventEmitter; var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ var Stream; (function () { try { Stream = require('st' + 'ream'); } catch (_) {} finally { if (!Stream) Stream = require('events').EventEmitter; } })(); /**/ var Buffer = require('buffer').Buffer; /**/ var bufferShim = require('buffer-shims'); /**/ /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ /**/ var debugUtil = require('util'); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { debug = function () {}; } /**/ var BufferList = require('./internal/streams/BufferList'); var StringDecoder; util.inherits(Readable, Stream); function prependListener(emitter, event, fn) { if (typeof emitter.prependListener === 'function') { return emitter.prependListener(event, fn); } else { // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; } } var Duplex; function ReadableState(options, stream) { Duplex = Duplex || require('./_stream_duplex'); options = options || {}; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; // cast to ints. this.highWaterMark = ~ ~this.highWaterMark; // A linked list is used to store data chunks instead of an array because the // linked list can remove elements from the beginning faster than // array.shift() this.buffer = new BufferList(); this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // when piping, we only care about 'readable' events that happen // after read()ing all the bytes and not getting any pushback. this.ranOut = false; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } var Duplex; function Readable(options) { Duplex = Duplex || require('./_stream_duplex'); if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); // legacy this.readable = true; if (options && typeof options.read === 'function') this._read = options.read; Stream.call(this); } // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; if (!state.objectMode && typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = bufferShim.from(chunk, encoding); encoding = ''; } } return readableAddChunk(this, state, chunk, encoding, false); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { var state = this._readableState; return readableAddChunk(this, state, chunk, '', true); }; Readable.prototype.isPaused = function () { return this._readableState.flowing === false; }; function readableAddChunk(stream, state, chunk, encoding, addToFront) { var er = chunkInvalid(state, chunk); if (er) { stream.emit('error', er); } else if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else if (state.objectMode || chunk && chunk.length > 0) { if (state.ended && !addToFront) { var e = new Error('stream.push() after EOF'); stream.emit('error', e); } else if (state.endEmitted && addToFront) { var _e = new Error('stream.unshift() after end event'); stream.emit('error', _e); } else { var skipAdd; if (state.decoder && !addToFront && !encoding) { chunk = state.decoder.write(chunk); skipAdd = !state.objectMode && chunk.length === 0; } if (!addToFront) state.reading = false; // Don't add to the buffer if we've decoded to an empty string chunk and // we're not in object mode if (!skipAdd) { // if we want the data now, just emit it. if (state.flowing && state.length === 0 && !state.sync) { stream.emit('data', chunk); stream.read(0); } else { // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } } maybeReadMore(stream, state); } } else if (!addToFront) { state.reading = false; } return needMoreData(state); } // if it's past the high water mark, we can push in some more. // Also, if we have no data yet, we can stand some // more bytes. This is to work around cases where hwm=0, // such as the repl. Also, if the push() triggered a // readable event, and the user called read(largeNumber) such that // needReadable was set, then we ought to push more, so that another // 'readable' event will be triggered. function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } // backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; }; // Don't raise the hwm > 8MB var MAX_HWM = 0x800000; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { n = MAX_HWM; } else { // Get the next highest power of 2 to prevent increasing hwm excessively in // tiny amounts n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } // This function is designed to be inlinable, so please take care when making // changes to the function body. function howMuchToRead(n, state) { if (n <= 0 || state.length === 0 && state.ended) return 0; if (state.objectMode) return 1; if (n !== n) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; } // If we're asking for more than the current hwm, then raise the hwm. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); if (n <= state.length) return n; // Don't have enough if (!state.ended) { state.needReadable = true; return 0; } return state.length; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); n = parseInt(n, 10); var state = this._readableState; var nOrig = n; if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); } // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } else if (doRead) { debug('do read'); state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. if (!state.reading) n = howMuchToRead(nOrig, state); } var ret; if (n > 0) ret = fromList(n, state);else ret = null; if (ret === null) { state.needReadable = true; n = 0; } else { state.length -= n; } if (state.length === 0) { // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended) endReadable(this); } if (ret !== null) this.emit('data', ret); return ret; }; function chunkInvalid(state, chunk) { var er = null; if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; } function onEofChunk(stream, state) { if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; // emit 'readable' now to make sure it gets picked up. emitReadable(stream); } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; state.needReadable = false; if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); } } function emitReadable_(stream) { debug('emit readable'); stream.emit('readable'); flow(stream); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; processNextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { var len = state.length; while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break;else len = state.length; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function (n) { this.emit('error', new Error('not implemented')); }; Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : cleanup; if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable) { debug('onunpipe'); if (readable === src) { cleanup(); } } function onend() { debug('onend'); dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; function cleanup() { debug('cleanup'); // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', cleanup); src.removeListener('data', ondata); cleanedUp = true; // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } // If the user pushes more data while we're writing to dest then we'll end up // in ondata again. However, we only want to increase awaitDrain once because // dest will only emit one 'drain' event for the multiple writes. // => Introduce a guard on increasing awaitDrain. var increasedAwaitDrain = false; src.on('data', ondata); function ondata(chunk) { debug('ondata'); increasedAwaitDrain = false; var ret = dest.write(chunk); if (false === ret && !increasedAwaitDrain) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. // => Check whether `dest` is still a piping destination. if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { debug('false write response, pause', src._readableState.awaitDrain); src._readableState.awaitDrain++; increasedAwaitDrain = true; } src.pause(); } } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); } // Make sure our error handler is attached before userland ones. prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { debug('unpipe'); src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } return dest; }; function pipeOnDrain(src) { return function () { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function (dest) { var state = this._readableState; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var _i = 0; _i < len; _i++) { dests[_i].emit('unpipe', this); }return this; } // try to find the right one. var i = indexOf(state.pipes, dest); if (i === -1) return this; state.pipes.splice(i, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); if (ev === 'data') { // Start flowing on next tick if stream isn't explicitly paused if (this._readableState.flowing !== false) this.resume(); } else if (ev === 'readable') { var state = this._readableState; if (!state.endEmitted && !state.readableListening) { state.readableListening = state.needReadable = true; state.emittedReadable = false; if (!state.reading) { processNextTick(nReadingNextTick, this); } else if (state.length) { emitReadable(this, state); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); } // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; if (!state.flowing) { debug('resume'); state.flowing = true; resume(this, state); } return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; processNextTick(resume_, stream, state); } } function resume_(stream, state) { if (!state.reading) { debug('resume read 0'); stream.read(0); } state.resumeScheduled = false; state.awaitDrain = 0; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); if (false !== this._readableState.flowing) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } return this; }; function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); while (state.flowing && stream.read() !== null) {} } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function (stream) { var state = this._readableState; var paused = false; var self = this; stream.on('end', function () { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) self.push(chunk); } self.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = self.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function (method) { return function () { return stream[method].apply(stream, arguments); }; }(i); } } // proxy certain important events. var events = ['error', 'close', 'destroy', 'pause', 'resume']; forEach(events, function (ev) { stream.on(ev, self.emit.bind(self, ev)); }); // when we try to consume some more bytes, simply unpause the // underlying stream. self._read = function (n) { debug('wrapped _read', n); if (paused) { paused = false; stream.resume(); } }; return self; }; // exposed for testing purposes only. Readable._fromList = fromList; // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromList(n, state) { // nothing buffered if (state.length === 0) return null; var ret; if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { // read it all, truncate the list if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); state.buffer.clear(); } else { // read part of list ret = fromListPartial(n, state.buffer, state.decoder); } return ret; } // Extracts only enough buffered data to satisfy the amount requested. // This function is designed to be inlinable, so please take care when making // changes to the function body. function fromListPartial(n, list, hasStrings) { var ret; if (n < list.head.data.length) { // slice is the same for buffers and strings ret = list.head.data.slice(0, n); list.head.data = list.head.data.slice(n); } else if (n === list.head.data.length) { // first chunk is a perfect match ret = list.shift(); } else { // result spans more than one buffer ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); } return ret; } // Copies a specified amount of characters from the list of buffered data // chunks. // This function is designed to be inlinable, so please take care when making // changes to the function body. function copyFromBufferString(n, list) { var p = list.head; var c = 1; var ret = p.data; n -= ret.length; while (p = p.next) { var str = p.data; var nb = n > str.length ? str.length : n; if (nb === str.length) ret += str;else ret += str.slice(0, n); n -= nb; if (n === 0) { if (nb === str.length) { ++c; if (p.next) list.head = p.next;else list.head = list.tail = null; } else { list.head = p; p.data = str.slice(nb); } break; } ++c; } list.length -= c; return ret; } // Copies a specified amount of bytes from the list of buffered data chunks. // This function is designed to be inlinable, so please take care when making // changes to the function body. function copyFromBuffer(n, list) { var ret = bufferShim.allocUnsafe(n); var p = list.head; var c = 1; p.data.copy(ret); n -= p.data.length; while (p = p.next) { var buf = p.data; var nb = n > buf.length ? buf.length : n; buf.copy(ret, ret.length - n, 0, nb); n -= nb; if (n === 0) { if (nb === buf.length) { ++c; if (p.next) list.head = p.next;else list.head = list.tail = null; } else { list.head = p; p.data = buf.slice(nb); } break; } ++c; } list.length -= c; return ret; } function endReadable(stream) { var state = stream._readableState; // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); if (!state.endEmitted) { state.ended = true; processNextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); } } function forEach(xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } }).call(this,require('_process')) },{"./_stream_duplex":303,"./internal/streams/BufferList":308,"_process":432,"buffer":424,"buffer-shims":258,"core-util-is":260,"events":426,"inherits":312,"isarray":313,"process-nextick-args":376,"string_decoder/":390,"util":421}],306:[function(require,module,exports){ // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. 'use strict'; module.exports = Transform; var Duplex = require('./_stream_duplex'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ util.inherits(Transform, Duplex); function TransformState(stream) { this.afterTransform = function (er, data) { return afterTransform(stream, er, data); }; this.needTransform = false; this.transforming = false; this.writecb = null; this.writechunk = null; this.writeencoding = null; } function afterTransform(stream, er, data) { var ts = stream._transformState; ts.transforming = false; var cb = ts.writecb; if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); ts.writechunk = null; ts.writecb = null; if (data !== null && data !== undefined) stream.push(data); cb(er); var rs = stream._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { stream._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = new TransformState(this); // when the writable side finishes, then flush out anything remaining. var stream = this; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; } this.once('prefinish', function () { if (typeof this._flush === 'function') this._flush(function (er) { done(stream, er); });else done(stream); }); } Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function (chunk, encoding, cb) { throw new Error('Not implemented'); }; Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function (n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; function done(stream, er) { if (er) return stream.emit('error', er); // if there's nothing in the write buffer, then that means // that nothing more will ever be provided var ws = stream._writableState; var ts = stream._transformState; if (ws.length) throw new Error('Calling transform done when ws.length != 0'); if (ts.transforming) throw new Error('Calling transform done when still transforming'); return stream.push(null); } },{"./_stream_duplex":303,"core-util-is":260,"inherits":312}],307:[function(require,module,exports){ (function (process){ // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. 'use strict'; module.exports = Writable; /**/ var processNextTick = require('process-nextick-args'); /**/ /**/ var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; /**/ Writable.WritableState = WritableState; /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ /**/ var internalUtil = { deprecate: require('util-deprecate') }; /**/ /**/ var Stream; (function () { try { Stream = require('st' + 'ream'); } catch (_) {} finally { if (!Stream) Stream = require('events').EventEmitter; } })(); /**/ var Buffer = require('buffer').Buffer; /**/ var bufferShim = require('buffer-shims'); /**/ util.inherits(Writable, Stream); function nop() {} function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } var Duplex; function WritableState(options, stream) { Duplex = Duplex || require('./_stream_duplex'); options = options || {}; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; // cast to ints. this.highWaterMark = ~ ~this.highWaterMark; this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // when true all writes will be buffered until .uncork() call this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams this.prefinished = false; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; // count buffered requests this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always // one allocated and free to use, and we maintain at most two this.corkedRequestsFree = new CorkedRequest(this); } WritableState.prototype.getBuffer = function writableStateGetBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { get: internalUtil.deprecate(function () { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') }); } catch (_) {} })(); var Duplex; function Writable(options) { Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, though they're not // instanceof Writable, they're instanceof Readable. if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options); this._writableState = new WritableState(options, this); // legacy. this.writable = true; if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { this.emit('error', new Error('Cannot pipe, not readable')); }; function writeAfterEnd(stream, cb) { var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb stream.emit('error', er); processNextTick(cb, er); } // If we get something that is not a buffer, string, null, or undefined, // and we're not in objectMode, then that's an error. // Otherwise stream chunks are all considered to be of length=1, and the // watermarks determine how many objects to keep in the buffer, rather than // how many bytes or characters. function validChunk(stream, state, chunk, cb) { var valid = true; var er = false; // Always throw error if a null is written // if we are not in object mode then throw // if it is not a buffer, string, or undefined. if (chunk === null) { er = new TypeError('May not write null values to stream'); } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } if (er) { stream.emit('error', er); processNextTick(cb, er); valid = false; } return valid; } Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function () { var state = this._writableState; state.corked++; }; Writable.prototype.uncork = function () { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); this._writableState.defaultEncoding = encoding; return this; }; function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = bufferShim.from(chunk, encoding); } return chunk; } // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, chunk, encoding, cb) { chunk = decodeChunk(state, chunk, encoding); if (Buffer.isBuffer(chunk)) encoding = 'buffer'; var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = new WriteReq(chunk, encoding, cb); if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) processNextTick(cb, er);else cb(er); stream._writableState.errorEmitted = true; stream.emit('error', er); } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state); if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { /**/ asyncWrite(afterWrite, stream, state, finished, cb); /**/ } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; while (entry) { buffer[count] = entry; entry = entry.next; count += 1; } doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; if (holder.next) { state.corkedRequestsFree = holder.next; holder.next = null; } else { state.corkedRequestsFree = new CorkedRequest(state); } } else { // Slow case, write chunks one-by-one while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequestCount = 0; state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function (chunk, encoding, cb) { cb(new Error('not implemented')); }; Writable.prototype._writev = null; Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); } // ignore unnecessary end() calls. if (!state.ending && !state.finished) endWritable(this, state, cb); }; function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function prefinish(stream, state) { if (!state.prefinished) { state.prefinished = true; stream.emit('prefinish'); } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { if (state.pendingcb === 0) { prefinish(stream, state); state.finished = true; stream.emit('finish'); } else { prefinish(stream, state); } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) processNextTick(cb);else stream.once('finish', cb); } state.ended = true; stream.writable = false; } // It seems a linked list but it is not // there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function (err) { var entry = _this.entry; _this.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } if (state.corkedRequestsFree) { state.corkedRequestsFree.next = _this; } else { state.corkedRequestsFree = _this; } }; } }).call(this,require('_process')) },{"./_stream_duplex":303,"_process":432,"buffer":424,"buffer-shims":258,"core-util-is":260,"events":426,"inherits":312,"process-nextick-args":376,"util-deprecate":398}],308:[function(require,module,exports){ 'use strict'; var Buffer = require('buffer').Buffer; /**/ var bufferShim = require('buffer-shims'); /**/ module.exports = BufferList; function BufferList() { this.head = null; this.tail = null; this.length = 0; } BufferList.prototype.push = function (v) { var entry = { data: v, next: null }; if (this.length > 0) this.tail.next = entry;else this.head = entry; this.tail = entry; ++this.length; }; BufferList.prototype.unshift = function (v) { var entry = { data: v, next: this.head }; if (this.length === 0) this.tail = entry; this.head = entry; ++this.length; }; BufferList.prototype.shift = function () { if (this.length === 0) return; var ret = this.head.data; if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; --this.length; return ret; }; BufferList.prototype.clear = function () { this.head = this.tail = null; this.length = 0; }; BufferList.prototype.join = function (s) { if (this.length === 0) return ''; var p = this.head; var ret = '' + p.data; while (p = p.next) { ret += s + p.data; }return ret; }; BufferList.prototype.concat = function (n) { if (this.length === 0) return bufferShim.alloc(0); if (this.length === 1) return this.head.data; var ret = bufferShim.allocUnsafe(n >>> 0); var p = this.head; var i = 0; while (p) { p.data.copy(ret, i); i += p.data.length; p = p.next; } return ret; }; },{"buffer":424,"buffer-shims":258}],309:[function(require,module,exports){ (function (process){ var Stream = (function (){ try { return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify } catch(_){} }()); exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = Stream || exports; exports.Readable = exports; exports.Writable = require('./lib/_stream_writable.js'); exports.Duplex = require('./lib/_stream_duplex.js'); exports.Transform = require('./lib/_stream_transform.js'); exports.PassThrough = require('./lib/_stream_passthrough.js'); if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) { module.exports = Stream; } }).call(this,require('_process')) },{"./lib/_stream_duplex.js":303,"./lib/_stream_passthrough.js":304,"./lib/_stream_readable.js":305,"./lib/_stream_transform.js":306,"./lib/_stream_writable.js":307,"_process":432}],310:[function(require,module,exports){ var once = require('once'); var noop = function() {}; var isRequest = function(stream) { return stream.setHeader && typeof stream.abort === 'function'; }; var isChildProcess = function(stream) { return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 }; var eos = function(stream, opts, callback) { if (typeof opts === 'function') return eos(stream, null, opts); if (!opts) opts = {}; callback = once(callback || noop); var ws = stream._writableState; var rs = stream._readableState; var readable = opts.readable || (opts.readable !== false && stream.readable); var writable = opts.writable || (opts.writable !== false && stream.writable); var onlegacyfinish = function() { if (!stream.writable) onfinish(); }; var onfinish = function() { writable = false; if (!readable) callback(); }; var onend = function() { readable = false; if (!writable) callback(); }; var onexit = function(exitCode) { callback(exitCode ? new Error('exited with error code: ' + exitCode) : null); }; var onclose = function() { if (readable && !(rs && rs.ended)) return callback(new Error('premature close')); if (writable && !(ws && ws.ended)) return callback(new Error('premature close')); }; var onrequest = function() { stream.req.on('finish', onfinish); }; if (isRequest(stream)) { stream.on('complete', onfinish); stream.on('abort', onclose); if (stream.req) onrequest(); else stream.on('request', onrequest); } else if (writable && !ws) { // legacy streams stream.on('end', onlegacyfinish); stream.on('close', onlegacyfinish); } if (isChildProcess(stream)) stream.on('exit', onexit); stream.on('end', onend); stream.on('finish', onfinish); if (opts.error !== false) stream.on('error', callback); stream.on('close', onclose); return function() { stream.removeListener('complete', onfinish); stream.removeListener('abort', onclose); stream.removeListener('request', onrequest); if (stream.req) stream.req.removeListener('finish', onfinish); stream.removeListener('end', onlegacyfinish); stream.removeListener('close', onlegacyfinish); stream.removeListener('finish', onfinish); stream.removeListener('exit', onexit); stream.removeListener('end', onend); stream.removeListener('error', callback); stream.removeListener('close', onclose); }; }; module.exports = eos; },{"once":375}],311:[function(require,module,exports){ exports.read = function (buffer, offset, isLE, mLen, nBytes) { var e, m var eLen = nBytes * 8 - mLen - 1 var eMax = (1 << eLen) - 1 var eBias = eMax >> 1 var nBits = -7 var i = isLE ? (nBytes - 1) : 0 var d = isLE ? -1 : 1 var s = buffer[offset + i] i += d e = s & ((1 << (-nBits)) - 1) s >>= (-nBits) nBits += eLen for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} m = e & ((1 << (-nBits)) - 1) e >>= (-nBits) nBits += mLen for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} if (e === 0) { e = 1 - eBias } else if (e === eMax) { return m ? NaN : ((s ? -1 : 1) * Infinity) } else { m = m + Math.pow(2, mLen) e = e - eBias } return (s ? -1 : 1) * m * Math.pow(2, e - mLen) } exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { var e, m, c var eLen = nBytes * 8 - mLen - 1 var eMax = (1 << eLen) - 1 var eBias = eMax >> 1 var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0) var i = isLE ? 0 : (nBytes - 1) var d = isLE ? 1 : -1 var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 value = Math.abs(value) if (isNaN(value) || value === Infinity) { m = isNaN(value) ? 1 : 0 e = eMax } else { e = Math.floor(Math.log(value) / Math.LN2) if (value * (c = Math.pow(2, -e)) < 1) { e-- c *= 2 } if (e + eBias >= 1) { value += rt / c } else { value += rt * Math.pow(2, 1 - eBias) } if (value * c >= 2) { e++ c /= 2 } if (e + eBias >= eMax) { m = 0 e = eMax } else if (e + eBias >= 1) { m = (value * c - 1) * Math.pow(2, mLen) e = e + eBias } else { m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) e = 0 } } for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} e = (e << mLen) | m eLen += mLen for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} buffer[offset + i - d] |= s * 128 } },{}],312:[function(require,module,exports){ if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }); }; } else { // old school shim for old browsers module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor var TempCtor = function () {} TempCtor.prototype = superCtor.prototype ctor.prototype = new TempCtor() ctor.prototype.constructor = ctor } } },{}],313:[function(require,module,exports){ var toString = {}.toString; module.exports = Array.isArray || function (arr) { return toString.call(arr) == '[object Array]'; }; },{}],314:[function(require,module,exports){ (function(exports) { "use strict"; function isArray(obj) { if (obj !== null) { return Object.prototype.toString.call(obj) === "[object Array]"; } else { return false; } } function isObject(obj) { if (obj !== null) { return Object.prototype.toString.call(obj) === "[object Object]"; } else { return false; } } function strictDeepEqual(first, second) { // Check the scalar case first. if (first === second) { return true; } // Check if they are the same type. var firstType = Object.prototype.toString.call(first); if (firstType !== Object.prototype.toString.call(second)) { return false; } // We know that first and second have the same type so we can just check the // first type from now on. if (isArray(first) === true) { // Short circuit if they're not the same length; if (first.length !== second.length) { return false; } for (var i = 0; i < first.length; i++) { if (strictDeepEqual(first[i], second[i]) === false) { return false; } } return true; } if (isObject(first) === true) { // An object is equal if it has the same key/value pairs. var keysSeen = {}; for (var key in first) { if (hasOwnProperty.call(first, key)) { if (strictDeepEqual(first[key], second[key]) === false) { return false; } keysSeen[key] = true; } } // Now check that there aren't any keys in second that weren't // in first. for (var key2 in second) { if (hasOwnProperty.call(second, key2)) { if (keysSeen[key2] !== true) { return false; } } } return true; } return false; } function isFalse(obj) { // From the spec: // A false value corresponds to the following values: // Empty list // Empty object // Empty string // False boolean // null value // First check the scalar values. if (obj === "" || obj === false || obj === null) { return true; } else if (isArray(obj) && obj.length === 0) { // Check for an empty array. return true; } else if (isObject(obj)) { // Check for an empty object. for (var key in obj) { // If there are any keys, then // the object is not empty so the object // is not false. if (obj.hasOwnProperty(key)) { return false; } } return true; } else { return false; } } function objValues(obj) { var keys = Object.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { values.push(obj[keys[i]]); } return values; } function merge(a, b) { var merged = {}; for (var key in a) { merged[key] = a[key]; } for (var key2 in b) { merged[key2] = b[key2]; } return merged; } var trimLeft; if (typeof String.prototype.trimLeft === "function") { trimLeft = function(str) { return str.trimLeft(); }; } else { trimLeft = function(str) { return str.match(/^\s*(.*)/)[1]; }; } // Type constants used to define functions. var TYPE_NUMBER = 0; var TYPE_ANY = 1; var TYPE_STRING = 2; var TYPE_ARRAY = 3; var TYPE_OBJECT = 4; var TYPE_BOOLEAN = 5; var TYPE_EXPREF = 6; var TYPE_NULL = 7; var TYPE_ARRAY_NUMBER = 8; var TYPE_ARRAY_STRING = 9; var TOK_EOF = "EOF"; var TOK_UNQUOTEDIDENTIFIER = "UnquotedIdentifier"; var TOK_QUOTEDIDENTIFIER = "QuotedIdentifier"; var TOK_RBRACKET = "Rbracket"; var TOK_RPAREN = "Rparen"; var TOK_COMMA = "Comma"; var TOK_COLON = "Colon"; var TOK_RBRACE = "Rbrace"; var TOK_NUMBER = "Number"; var TOK_CURRENT = "Current"; var TOK_EXPREF = "Expref"; var TOK_PIPE = "Pipe"; var TOK_OR = "Or"; var TOK_AND = "And"; var TOK_EQ = "EQ"; var TOK_GT = "GT"; var TOK_LT = "LT"; var TOK_GTE = "GTE"; var TOK_LTE = "LTE"; var TOK_NE = "NE"; var TOK_FLATTEN = "Flatten"; var TOK_STAR = "Star"; var TOK_FILTER = "Filter"; var TOK_DOT = "Dot"; var TOK_NOT = "Not"; var TOK_LBRACE = "Lbrace"; var TOK_LBRACKET = "Lbracket"; var TOK_LPAREN= "Lparen"; var TOK_LITERAL= "Literal"; // The "&", "[", "<", ">" tokens // are not in basicToken because // there are two token variants // ("&&", "[?", "<=", ">="). This is specially handled // below. var basicTokens = { ".": TOK_DOT, "*": TOK_STAR, ",": TOK_COMMA, ":": TOK_COLON, "{": TOK_LBRACE, "}": TOK_RBRACE, "]": TOK_RBRACKET, "(": TOK_LPAREN, ")": TOK_RPAREN, "@": TOK_CURRENT }; var operatorStartToken = { "<": true, ">": true, "=": true, "!": true }; var skipChars = { " ": true, "\t": true, "\n": true }; function isAlpha(ch) { return (ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z") || ch === "_"; } function isNum(ch) { return (ch >= "0" && ch <= "9") || ch === "-"; } function isAlphaNum(ch) { return (ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z") || (ch >= "0" && ch <= "9") || ch === "_"; } function Lexer() { } Lexer.prototype = { tokenize: function(stream) { var tokens = []; this._current = 0; var start; var identifier; var token; while (this._current < stream.length) { if (isAlpha(stream[this._current])) { start = this._current; identifier = this._consumeUnquotedIdentifier(stream); tokens.push({type: TOK_UNQUOTEDIDENTIFIER, value: identifier, start: start}); } else if (basicTokens[stream[this._current]] !== undefined) { tokens.push({type: basicTokens[stream[this._current]], value: stream[this._current], start: this._current}); this._current++; } else if (isNum(stream[this._current])) { token = this._consumeNumber(stream); tokens.push(token); } else if (stream[this._current] === "[") { // No need to increment this._current. This happens // in _consumeLBracket token = this._consumeLBracket(stream); tokens.push(token); } else if (stream[this._current] === "\"") { start = this._current; identifier = this._consumeQuotedIdentifier(stream); tokens.push({type: TOK_QUOTEDIDENTIFIER, value: identifier, start: start}); } else if (stream[this._current] === "'") { start = this._current; identifier = this._consumeRawStringLiteral(stream); tokens.push({type: TOK_LITERAL, value: identifier, start: start}); } else if (stream[this._current] === "`") { start = this._current; var literal = this._consumeLiteral(stream); tokens.push({type: TOK_LITERAL, value: literal, start: start}); } else if (operatorStartToken[stream[this._current]] !== undefined) { tokens.push(this._consumeOperator(stream)); } else if (skipChars[stream[this._current]] !== undefined) { // Ignore whitespace. this._current++; } else if (stream[this._current] === "&") { start = this._current; this._current++; if (stream[this._current] === "&") { this._current++; tokens.push({type: TOK_AND, value: "&&", start: start}); } else { tokens.push({type: TOK_EXPREF, value: "&", start: start}); } } else if (stream[this._current] === "|") { start = this._current; this._current++; if (stream[this._current] === "|") { this._current++; tokens.push({type: TOK_OR, value: "||", start: start}); } else { tokens.push({type: TOK_PIPE, value: "|", start: start}); } } else { var error = new Error("Unknown character:" + stream[this._current]); error.name = "LexerError"; throw error; } } return tokens; }, _consumeUnquotedIdentifier: function(stream) { var start = this._current; this._current++; while (this._current < stream.length && isAlphaNum(stream[this._current])) { this._current++; } return stream.slice(start, this._current); }, _consumeQuotedIdentifier: function(stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== "\"" && this._current < maxLength) { // You can escape a double quote and you can escape an escape. var current = this._current; if (stream[current] === "\\" && (stream[current + 1] === "\\" || stream[current + 1] === "\"")) { current += 2; } else { current++; } this._current = current; } this._current++; return JSON.parse(stream.slice(start, this._current)); }, _consumeRawStringLiteral: function(stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== "'" && this._current < maxLength) { // You can escape a single quote and you can escape an escape. var current = this._current; if (stream[current] === "\\" && (stream[current + 1] === "\\" || stream[current + 1] === "'")) { current += 2; } else { current++; } this._current = current; } this._current++; var literal = stream.slice(start + 1, this._current - 1); return literal.replace("\\'", "'"); }, _consumeNumber: function(stream) { var start = this._current; this._current++; var maxLength = stream.length; while (isNum(stream[this._current]) && this._current < maxLength) { this._current++; } var value = parseInt(stream.slice(start, this._current)); return {type: TOK_NUMBER, value: value, start: start}; }, _consumeLBracket: function(stream) { var start = this._current; this._current++; if (stream[this._current] === "?") { this._current++; return {type: TOK_FILTER, value: "[?", start: start}; } else if (stream[this._current] === "]") { this._current++; return {type: TOK_FLATTEN, value: "[]", start: start}; } else { return {type: TOK_LBRACKET, value: "[", start: start}; } }, _consumeOperator: function(stream) { var start = this._current; var startingChar = stream[start]; this._current++; if (startingChar === "!") { if (stream[this._current] === "=") { this._current++; return {type: TOK_NE, value: "!=", start: start}; } else { return {type: TOK_NOT, value: "!", start: start}; } } else if (startingChar === "<") { if (stream[this._current] === "=") { this._current++; return {type: TOK_LTE, value: "<=", start: start}; } else { return {type: TOK_LT, value: "<", start: start}; } } else if (startingChar === ">") { if (stream[this._current] === "=") { this._current++; return {type: TOK_GTE, value: ">=", start: start}; } else { return {type: TOK_GT, value: ">", start: start}; } } else if (startingChar === "=") { if (stream[this._current] === "=") { this._current++; return {type: TOK_EQ, value: "==", start: start}; } } }, _consumeLiteral: function(stream) { this._current++; var start = this._current; var maxLength = stream.length; var literal; while(stream[this._current] !== "`" && this._current < maxLength) { // You can escape a literal char or you can escape the escape. var current = this._current; if (stream[current] === "\\" && (stream[current + 1] === "\\" || stream[current + 1] === "`")) { current += 2; } else { current++; } this._current = current; } var literalString = trimLeft(stream.slice(start, this._current)); literalString = literalString.replace("\\`", "`"); if (this._looksLikeJSON(literalString)) { literal = JSON.parse(literalString); } else { // Try to JSON parse it as "" literal = JSON.parse("\"" + literalString + "\""); } // +1 gets us to the ending "`", +1 to move on to the next char. this._current++; return literal; }, _looksLikeJSON: function(literalString) { var startingChars = "[{\""; var jsonLiterals = ["true", "false", "null"]; var numberLooking = "-0123456789"; if (literalString === "") { return false; } else if (startingChars.indexOf(literalString[0]) >= 0) { return true; } else if (jsonLiterals.indexOf(literalString) >= 0) { return true; } else if (numberLooking.indexOf(literalString[0]) >= 0) { try { JSON.parse(literalString); return true; } catch (ex) { return false; } } else { return false; } } }; var bindingPower = {}; bindingPower[TOK_EOF] = 0; bindingPower[TOK_UNQUOTEDIDENTIFIER] = 0; bindingPower[TOK_QUOTEDIDENTIFIER] = 0; bindingPower[TOK_RBRACKET] = 0; bindingPower[TOK_RPAREN] = 0; bindingPower[TOK_COMMA] = 0; bindingPower[TOK_RBRACE] = 0; bindingPower[TOK_NUMBER] = 0; bindingPower[TOK_CURRENT] = 0; bindingPower[TOK_EXPREF] = 0; bindingPower[TOK_PIPE] = 1; bindingPower[TOK_OR] = 2; bindingPower[TOK_AND] = 3; bindingPower[TOK_EQ] = 5; bindingPower[TOK_GT] = 5; bindingPower[TOK_LT] = 5; bindingPower[TOK_GTE] = 5; bindingPower[TOK_LTE] = 5; bindingPower[TOK_NE] = 5; bindingPower[TOK_FLATTEN] = 9; bindingPower[TOK_STAR] = 20; bindingPower[TOK_FILTER] = 21; bindingPower[TOK_DOT] = 40; bindingPower[TOK_NOT] = 45; bindingPower[TOK_LBRACE] = 50; bindingPower[TOK_LBRACKET] = 55; bindingPower[TOK_LPAREN] = 60; function Parser() { } Parser.prototype = { parse: function(expression) { this._loadTokens(expression); this.index = 0; var ast = this.expression(0); if (this._lookahead(0) !== TOK_EOF) { var t = this._lookaheadToken(0); var error = new Error( "Unexpected token type: " + t.type + ", value: " + t.value); error.name = "ParserError"; throw error; } return ast; }, _loadTokens: function(expression) { var lexer = new Lexer(); var tokens = lexer.tokenize(expression); tokens.push({type: TOK_EOF, value: "", start: expression.length}); this.tokens = tokens; }, expression: function(rbp) { var leftToken = this._lookaheadToken(0); this._advance(); var left = this.nud(leftToken); var currentToken = this._lookahead(0); while (rbp < bindingPower[currentToken]) { this._advance(); left = this.led(currentToken, left); currentToken = this._lookahead(0); } return left; }, _lookahead: function(number) { return this.tokens[this.index + number].type; }, _lookaheadToken: function(number) { return this.tokens[this.index + number]; }, _advance: function() { this.index++; }, nud: function(token) { var left; var right; var expression; switch (token.type) { case TOK_LITERAL: return {type: "Literal", value: token.value}; case TOK_UNQUOTEDIDENTIFIER: return {type: "Field", name: token.value}; case TOK_QUOTEDIDENTIFIER: var node = {type: "Field", name: token.value}; if (this._lookahead(0) === TOK_LPAREN) { throw new Error("Quoted identifier not allowed for function names."); } else { return node; } break; case TOK_NOT: right = this.expression(bindingPower.Not); return {type: "NotExpression", children: [right]}; case TOK_STAR: left = {type: "Identity"}; right = null; if (this._lookahead(0) === TOK_RBRACKET) { // This can happen in a multiselect, // [a, b, *] right = {type: "Identity"}; } else { right = this._parseProjectionRHS(bindingPower.Star); } return {type: "ValueProjection", children: [left, right]}; case TOK_FILTER: return this.led(token.type, {type: "Identity"}); case TOK_LBRACE: return this._parseMultiselectHash(); case TOK_FLATTEN: left = {type: TOK_FLATTEN, children: [{type: "Identity"}]}; right = this._parseProjectionRHS(bindingPower.Flatten); return {type: "Projection", children: [left, right]}; case TOK_LBRACKET: if (this._lookahead(0) === TOK_NUMBER || this._lookahead(0) === TOK_COLON) { right = this._parseIndexExpression(); return this._projectIfSlice({type: "Identity"}, right); } else if (this._lookahead(0) === TOK_STAR && this._lookahead(1) === TOK_RBRACKET) { this._advance(); this._advance(); right = this._parseProjectionRHS(bindingPower.Star); return {type: "Projection", children: [{type: "Identity"}, right]}; } else { return this._parseMultiselectList(); } break; case TOK_CURRENT: return {type: TOK_CURRENT}; case TOK_EXPREF: expression = this.expression(bindingPower.Expref); return {type: "ExpressionReference", children: [expression]}; case TOK_LPAREN: var args = []; while (this._lookahead(0) !== TOK_RPAREN) { if (this._lookahead(0) === TOK_CURRENT) { expression = {type: TOK_CURRENT}; this._advance(); } else { expression = this.expression(0); } args.push(expression); } this._match(TOK_RPAREN); return args[0]; default: this._errorToken(token); } }, led: function(tokenName, left) { var right; switch(tokenName) { case TOK_DOT: var rbp = bindingPower.Dot; if (this._lookahead(0) !== TOK_STAR) { right = this._parseDotRHS(rbp); return {type: "Subexpression", children: [left, right]}; } else { // Creating a projection. this._advance(); right = this._parseProjectionRHS(rbp); return {type: "ValueProjection", children: [left, right]}; } break; case TOK_PIPE: right = this.expression(bindingPower.Pipe); return {type: TOK_PIPE, children: [left, right]}; case TOK_OR: right = this.expression(bindingPower.Or); return {type: "OrExpression", children: [left, right]}; case TOK_AND: right = this.expression(bindingPower.And); return {type: "AndExpression", children: [left, right]}; case TOK_LPAREN: var name = left.name; var args = []; var expression, node; while (this._lookahead(0) !== TOK_RPAREN) { if (this._lookahead(0) === TOK_CURRENT) { expression = {type: TOK_CURRENT}; this._advance(); } else { expression = this.expression(0); } if (this._lookahead(0) === TOK_COMMA) { this._match(TOK_COMMA); } args.push(expression); } this._match(TOK_RPAREN); node = {type: "Function", name: name, children: args}; return node; case TOK_FILTER: var condition = this.expression(0); this._match(TOK_RBRACKET); if (this._lookahead(0) === TOK_FLATTEN) { right = {type: "Identity"}; } else { right = this._parseProjectionRHS(bindingPower.Filter); } return {type: "FilterProjection", children: [left, right, condition]}; case TOK_FLATTEN: var leftNode = {type: TOK_FLATTEN, children: [left]}; var rightNode = this._parseProjectionRHS(bindingPower.Flatten); return {type: "Projection", children: [leftNode, rightNode]}; case TOK_EQ: case TOK_NE: case TOK_GT: case TOK_GTE: case TOK_LT: case TOK_LTE: return this._parseComparator(left, tokenName); case TOK_LBRACKET: var token = this._lookaheadToken(0); if (token.type === TOK_NUMBER || token.type === TOK_COLON) { right = this._parseIndexExpression(); return this._projectIfSlice(left, right); } else { this._match(TOK_STAR); this._match(TOK_RBRACKET); right = this._parseProjectionRHS(bindingPower.Star); return {type: "Projection", children: [left, right]}; } break; default: this._errorToken(this._lookaheadToken(0)); } }, _match: function(tokenType) { if (this._lookahead(0) === tokenType) { this._advance(); } else { var t = this._lookaheadToken(0); var error = new Error("Expected " + tokenType + ", got: " + t.type); error.name = "ParserError"; throw error; } }, _errorToken: function(token) { var error = new Error("Invalid token (" + token.type + "): \"" + token.value + "\""); error.name = "ParserError"; throw error; }, _parseIndexExpression: function() { if (this._lookahead(0) === TOK_COLON || this._lookahead(1) === TOK_COLON) { return this._parseSliceExpression(); } else { var node = { type: "Index", value: this._lookaheadToken(0).value}; this._advance(); this._match(TOK_RBRACKET); return node; } }, _projectIfSlice: function(left, right) { var indexExpr = {type: "IndexExpression", children: [left, right]}; if (right.type === "Slice") { return { type: "Projection", children: [indexExpr, this._parseProjectionRHS(bindingPower.Star)] }; } else { return indexExpr; } }, _parseSliceExpression: function() { // [start:end:step] where each part is optional, as well as the last // colon. var parts = [null, null, null]; var index = 0; var currentToken = this._lookahead(0); while (currentToken !== TOK_RBRACKET && index < 3) { if (currentToken === TOK_COLON) { index++; this._advance(); } else if (currentToken === TOK_NUMBER) { parts[index] = this._lookaheadToken(0).value; this._advance(); } else { var t = this._lookahead(0); var error = new Error("Syntax error, unexpected token: " + t.value + "(" + t.type + ")"); error.name = "Parsererror"; throw error; } currentToken = this._lookahead(0); } this._match(TOK_RBRACKET); return { type: "Slice", children: parts }; }, _parseComparator: function(left, comparator) { var right = this.expression(bindingPower[comparator]); return {type: "Comparator", name: comparator, children: [left, right]}; }, _parseDotRHS: function(rbp) { var lookahead = this._lookahead(0); var exprTokens = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER, TOK_STAR]; if (exprTokens.indexOf(lookahead) >= 0) { return this.expression(rbp); } else if (lookahead === TOK_LBRACKET) { this._match(TOK_LBRACKET); return this._parseMultiselectList(); } else if (lookahead === TOK_LBRACE) { this._match(TOK_LBRACE); return this._parseMultiselectHash(); } }, _parseProjectionRHS: function(rbp) { var right; if (bindingPower[this._lookahead(0)] < 10) { right = {type: "Identity"}; } else if (this._lookahead(0) === TOK_LBRACKET) { right = this.expression(rbp); } else if (this._lookahead(0) === TOK_FILTER) { right = this.expression(rbp); } else if (this._lookahead(0) === TOK_DOT) { this._match(TOK_DOT); right = this._parseDotRHS(rbp); } else { var t = this._lookaheadToken(0); var error = new Error("Sytanx error, unexpected token: " + t.value + "(" + t.type + ")"); error.name = "ParserError"; throw error; } return right; }, _parseMultiselectList: function() { var expressions = []; while (this._lookahead(0) !== TOK_RBRACKET) { var expression = this.expression(0); expressions.push(expression); if (this._lookahead(0) === TOK_COMMA) { this._match(TOK_COMMA); if (this._lookahead(0) === TOK_RBRACKET) { throw new Error("Unexpected token Rbracket"); } } } this._match(TOK_RBRACKET); return {type: "MultiSelectList", children: expressions}; }, _parseMultiselectHash: function() { var pairs = []; var identifierTypes = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER]; var keyToken, keyName, value, node; for (;;) { keyToken = this._lookaheadToken(0); if (identifierTypes.indexOf(keyToken.type) < 0) { throw new Error("Expecting an identifier token, got: " + keyToken.type); } keyName = keyToken.value; this._advance(); this._match(TOK_COLON); value = this.expression(0); node = {type: "KeyValuePair", name: keyName, value: value}; pairs.push(node); if (this._lookahead(0) === TOK_COMMA) { this._match(TOK_COMMA); } else if (this._lookahead(0) === TOK_RBRACE) { this._match(TOK_RBRACE); break; } } return {type: "MultiSelectHash", children: pairs}; } }; function TreeInterpreter(runtime) { this.runtime = runtime; } TreeInterpreter.prototype = { search: function(node, value) { return this.visit(node, value); }, visit: function(node, value) { var matched, current, result, first, second, field, left, right, collected, i; switch (node.type) { case "Field": if (value === null ) { return null; } else if (isObject(value)) { field = value[node.name]; if (field === undefined) { return null; } else { return field; } } else { return null; } break; case "Subexpression": result = this.visit(node.children[0], value); for (i = 1; i < node.children.length; i++) { result = this.visit(node.children[1], result); if (result === null) { return null; } } return result; case "IndexExpression": left = this.visit(node.children[0], value); right = this.visit(node.children[1], left); return right; case "Index": if (!isArray(value)) { return null; } var index = node.value; if (index < 0) { index = value.length + index; } result = value[index]; if (result === undefined) { result = null; } return result; case "Slice": if (!isArray(value)) { return null; } var sliceParams = node.children.slice(0); var computed = this.computeSliceParams(value.length, sliceParams); var start = computed[0]; var stop = computed[1]; var step = computed[2]; result = []; if (step > 0) { for (i = start; i < stop; i += step) { result.push(value[i]); } } else { for (i = start; i > stop; i += step) { result.push(value[i]); } } return result; case "Projection": // Evaluate left child. var base = this.visit(node.children[0], value); if (!isArray(base)) { return null; } collected = []; for (i = 0; i < base.length; i++) { current = this.visit(node.children[1], base[i]); if (current !== null) { collected.push(current); } } return collected; case "ValueProjection": // Evaluate left child. base = this.visit(node.children[0], value); if (!isObject(base)) { return null; } collected = []; var values = objValues(base); for (i = 0; i < values.length; i++) { current = this.visit(node.children[1], values[i]); if (current !== null) { collected.push(current); } } return collected; case "FilterProjection": base = this.visit(node.children[0], value); if (!isArray(base)) { return null; } var filtered = []; var finalResults = []; for (i = 0; i < base.length; i++) { matched = this.visit(node.children[2], base[i]); if (!isFalse(matched)) { filtered.push(base[i]); } } for (var j = 0; j < filtered.length; j++) { current = this.visit(node.children[1], filtered[j]); if (current !== null) { finalResults.push(current); } } return finalResults; case "Comparator": first = this.visit(node.children[0], value); second = this.visit(node.children[1], value); switch(node.name) { case TOK_EQ: result = strictDeepEqual(first, second); break; case TOK_NE: result = !strictDeepEqual(first, second); break; case TOK_GT: result = first > second; break; case TOK_GTE: result = first >= second; break; case TOK_LT: result = first < second; break; case TOK_LTE: result = first <= second; break; default: throw new Error("Unknown comparator: " + node.name); } return result; case TOK_FLATTEN: var original = this.visit(node.children[0], value); if (!isArray(original)) { return null; } var merged = []; for (i = 0; i < original.length; i++) { current = original[i]; if (isArray(current)) { merged.push.apply(merged, current); } else { merged.push(current); } } return merged; case "Identity": return value; case "MultiSelectList": if (value === null) { return null; } collected = []; for (i = 0; i < node.children.length; i++) { collected.push(this.visit(node.children[i], value)); } return collected; case "MultiSelectHash": if (value === null) { return null; } collected = {}; var child; for (i = 0; i < node.children.length; i++) { child = node.children[i]; collected[child.name] = this.visit(child.value, value); } return collected; case "OrExpression": matched = this.visit(node.children[0], value); if (isFalse(matched)) { matched = this.visit(node.children[1], value); } return matched; case "AndExpression": first = this.visit(node.children[0], value); if (isFalse(first) === true) { return first; } return this.visit(node.children[1], value); case "NotExpression": first = this.visit(node.children[0], value); return isFalse(first); case "Literal": return node.value; case TOK_PIPE: left = this.visit(node.children[0], value); return this.visit(node.children[1], left); case TOK_CURRENT: return value; case "Function": var resolvedArgs = []; for (i = 0; i < node.children.length; i++) { resolvedArgs.push(this.visit(node.children[i], value)); } return this.runtime.callFunction(node.name, resolvedArgs); case "ExpressionReference": var refNode = node.children[0]; // Tag the node with a specific attribute so the type // checker verify the type. refNode.jmespathType = TOK_EXPREF; return refNode; default: throw new Error("Unknown node type: " + node.type); } }, computeSliceParams: function(arrayLength, sliceParams) { var start = sliceParams[0]; var stop = sliceParams[1]; var step = sliceParams[2]; var computed = [null, null, null]; if (step === null) { step = 1; } else if (step === 0) { var error = new Error("Invalid slice, step cannot be 0"); error.name = "RuntimeError"; throw error; } var stepValueNegative = step < 0 ? true : false; if (start === null) { start = stepValueNegative ? arrayLength - 1 : 0; } else { start = this.capSliceRange(arrayLength, start, step); } if (stop === null) { stop = stepValueNegative ? -1 : arrayLength; } else { stop = this.capSliceRange(arrayLength, stop, step); } computed[0] = start; computed[1] = stop; computed[2] = step; return computed; }, capSliceRange: function(arrayLength, actualValue, step) { if (actualValue < 0) { actualValue += arrayLength; if (actualValue < 0) { actualValue = step < 0 ? -1 : 0; } } else if (actualValue >= arrayLength) { actualValue = step < 0 ? arrayLength - 1 : arrayLength; } return actualValue; } }; function Runtime(interpreter) { this._interpreter = interpreter; this.functionTable = { // name: [function, ] // The can be: // // { // args: [[type1, type2], [type1, type2]], // variadic: true|false // } // // Each arg in the arg list is a list of valid types // (if the function is overloaded and supports multiple // types. If the type is "any" then no type checking // occurs on the argument. Variadic is optional // and if not provided is assumed to be false. abs: {_func: this._functionAbs, _signature: [{types: [TYPE_NUMBER]}]}, avg: {_func: this._functionAvg, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, ceil: {_func: this._functionCeil, _signature: [{types: [TYPE_NUMBER]}]}, contains: { _func: this._functionContains, _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}, {types: [TYPE_ANY]}]}, "ends_with": { _func: this._functionEndsWith, _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, floor: {_func: this._functionFloor, _signature: [{types: [TYPE_NUMBER]}]}, length: { _func: this._functionLength, _signature: [{types: [TYPE_STRING, TYPE_ARRAY, TYPE_OBJECT]}]}, map: { _func: this._functionMap, _signature: [{types: [TYPE_EXPREF]}, {types: [TYPE_ARRAY]}]}, max: { _func: this._functionMax, _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, "merge": { _func: this._functionMerge, _signature: [{types: [TYPE_OBJECT], variadic: true}] }, "max_by": { _func: this._functionMaxBy, _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] }, sum: {_func: this._functionSum, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, "starts_with": { _func: this._functionStartsWith, _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, min: { _func: this._functionMin, _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, "min_by": { _func: this._functionMinBy, _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] }, type: {_func: this._functionType, _signature: [{types: [TYPE_ANY]}]}, keys: {_func: this._functionKeys, _signature: [{types: [TYPE_OBJECT]}]}, values: {_func: this._functionValues, _signature: [{types: [TYPE_OBJECT]}]}, sort: {_func: this._functionSort, _signature: [{types: [TYPE_ARRAY_STRING, TYPE_ARRAY_NUMBER]}]}, "sort_by": { _func: this._functionSortBy, _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] }, join: { _func: this._functionJoin, _signature: [ {types: [TYPE_STRING]}, {types: [TYPE_ARRAY_STRING]} ] }, reverse: { _func: this._functionReverse, _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}]}, "to_array": {_func: this._functionToArray, _signature: [{types: [TYPE_ANY]}]}, "to_string": {_func: this._functionToString, _signature: [{types: [TYPE_ANY]}]}, "to_number": {_func: this._functionToNumber, _signature: [{types: [TYPE_ANY]}]}, "not_null": { _func: this._functionNotNull, _signature: [{types: [TYPE_ANY], variadic: true}] } }; } Runtime.prototype = { callFunction: function(name, resolvedArgs) { var functionEntry = this.functionTable[name]; if (functionEntry === undefined) { throw new Error("Unknown function: " + name + "()"); } this._validateArgs(name, resolvedArgs, functionEntry._signature); return functionEntry._func.call(this, resolvedArgs); }, _validateArgs: function(name, args, signature) { // Validating the args requires validating // the correct arity and the correct type of each arg. // If the last argument is declared as variadic, then we need // a minimum number of args to be required. Otherwise it has to // be an exact amount. var pluralized; if (signature[signature.length - 1].variadic) { if (args.length < signature.length) { pluralized = signature.length === 1 ? " argument" : " arguments"; throw new Error("ArgumentError: " + name + "() " + "takes at least" + signature.length + pluralized + " but received " + args.length); } } else if (args.length !== signature.length) { pluralized = signature.length === 1 ? " argument" : " arguments"; throw new Error("ArgumentError: " + name + "() " + "takes " + signature.length + pluralized + " but received " + args.length); } var currentSpec; var actualType; var typeMatched; for (var i = 0; i < signature.length; i++) { typeMatched = false; currentSpec = signature[i].types; actualType = this._getTypeName(args[i]); for (var j = 0; j < currentSpec.length; j++) { if (this._typeMatches(actualType, currentSpec[j], args[i])) { typeMatched = true; break; } } if (!typeMatched) { throw new Error("TypeError: " + name + "() " + "expected argument " + (i + 1) + " to be type " + currentSpec + " but received type " + actualType + " instead."); } } }, _typeMatches: function(actual, expected, argValue) { if (expected === TYPE_ANY) { return true; } if (expected === TYPE_ARRAY_STRING || expected === TYPE_ARRAY_NUMBER || expected === TYPE_ARRAY) { // The expected type can either just be array, // or it can require a specific subtype (array of numbers). // // The simplest case is if "array" with no subtype is specified. if (expected === TYPE_ARRAY) { return actual === TYPE_ARRAY; } else if (actual === TYPE_ARRAY) { // Otherwise we need to check subtypes. // I think this has potential to be improved. var subtype; if (expected === TYPE_ARRAY_NUMBER) { subtype = TYPE_NUMBER; } else if (expected === TYPE_ARRAY_STRING) { subtype = TYPE_STRING; } for (var i = 0; i < argValue.length; i++) { if (!this._typeMatches( this._getTypeName(argValue[i]), subtype, argValue[i])) { return false; } } return true; } } else { return actual === expected; } }, _getTypeName: function(obj) { switch (Object.prototype.toString.call(obj)) { case "[object String]": return TYPE_STRING; case "[object Number]": return TYPE_NUMBER; case "[object Array]": return TYPE_ARRAY; case "[object Boolean]": return TYPE_BOOLEAN; case "[object Null]": return TYPE_NULL; case "[object Object]": // Check if it's an expref. If it has, it's been // tagged with a jmespathType attr of 'Expref'; if (obj.jmespathType === TOK_EXPREF) { return TYPE_EXPREF; } else { return TYPE_OBJECT; } } }, _functionStartsWith: function(resolvedArgs) { return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; }, _functionEndsWith: function(resolvedArgs) { var searchStr = resolvedArgs[0]; var suffix = resolvedArgs[1]; return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; }, _functionReverse: function(resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); if (typeName === TYPE_STRING) { var originalStr = resolvedArgs[0]; var reversedStr = ""; for (var i = originalStr.length - 1; i >= 0; i--) { reversedStr += originalStr[i]; } return reversedStr; } else { var reversedArray = resolvedArgs[0].slice(0); reversedArray.reverse(); return reversedArray; } }, _functionAbs: function(resolvedArgs) { return Math.abs(resolvedArgs[0]); }, _functionCeil: function(resolvedArgs) { return Math.ceil(resolvedArgs[0]); }, _functionAvg: function(resolvedArgs) { var sum = 0; var inputArray = resolvedArgs[0]; for (var i = 0; i < inputArray.length; i++) { sum += inputArray[i]; } return sum / inputArray.length; }, _functionContains: function(resolvedArgs) { return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; }, _functionFloor: function(resolvedArgs) { return Math.floor(resolvedArgs[0]); }, _functionLength: function(resolvedArgs) { if (!isObject(resolvedArgs[0])) { return resolvedArgs[0].length; } else { // As far as I can tell, there's no way to get the length // of an object without O(n) iteration through the object. return Object.keys(resolvedArgs[0]).length; } }, _functionMap: function(resolvedArgs) { var mapped = []; var interpreter = this._interpreter; var exprefNode = resolvedArgs[0]; var elements = resolvedArgs[1]; for (var i = 0; i < elements.length; i++) { mapped.push(interpreter.visit(exprefNode, elements[i])); } return mapped; }, _functionMerge: function(resolvedArgs) { var merged = {}; for (var i = 0; i < resolvedArgs.length; i++) { var current = resolvedArgs[i]; for (var key in current) { merged[key] = current[key]; } } return merged; }, _functionMax: function(resolvedArgs) { if (resolvedArgs[0].length > 0) { var typeName = this._getTypeName(resolvedArgs[0][0]); if (typeName === TYPE_NUMBER) { return Math.max.apply(Math, resolvedArgs[0]); } else { var elements = resolvedArgs[0]; var maxElement = elements[0]; for (var i = 1; i < elements.length; i++) { if (maxElement.localeCompare(elements[i]) < 0) { maxElement = elements[i]; } } return maxElement; } } else { return null; } }, _functionMin: function(resolvedArgs) { if (resolvedArgs[0].length > 0) { var typeName = this._getTypeName(resolvedArgs[0][0]); if (typeName === TYPE_NUMBER) { return Math.min.apply(Math, resolvedArgs[0]); } else { var elements = resolvedArgs[0]; var minElement = elements[0]; for (var i = 1; i < elements.length; i++) { if (elements[i].localeCompare(minElement) < 0) { minElement = elements[i]; } } return minElement; } } else { return null; } }, _functionSum: function(resolvedArgs) { var sum = 0; var listToSum = resolvedArgs[0]; for (var i = 0; i < listToSum.length; i++) { sum += listToSum[i]; } return sum; }, _functionType: function(resolvedArgs) { switch (this._getTypeName(resolvedArgs[0])) { case TYPE_NUMBER: return "number"; case TYPE_STRING: return "string"; case TYPE_ARRAY: return "array"; case TYPE_OBJECT: return "object"; case TYPE_BOOLEAN: return "boolean"; case TYPE_EXPREF: return "expref"; case TYPE_NULL: return "null"; } }, _functionKeys: function(resolvedArgs) { return Object.keys(resolvedArgs[0]); }, _functionValues: function(resolvedArgs) { var obj = resolvedArgs[0]; var keys = Object.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { values.push(obj[keys[i]]); } return values; }, _functionJoin: function(resolvedArgs) { var joinChar = resolvedArgs[0]; var listJoin = resolvedArgs[1]; return listJoin.join(joinChar); }, _functionToArray: function(resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === TYPE_ARRAY) { return resolvedArgs[0]; } else { return [resolvedArgs[0]]; } }, _functionToString: function(resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === TYPE_STRING) { return resolvedArgs[0]; } else { return JSON.stringify(resolvedArgs[0]); } }, _functionToNumber: function(resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); var convertedValue; if (typeName === TYPE_NUMBER) { return resolvedArgs[0]; } else if (typeName === TYPE_STRING) { convertedValue = +resolvedArgs[0]; if (!isNaN(convertedValue)) { return convertedValue; } } return null; }, _functionNotNull: function(resolvedArgs) { for (var i = 0; i < resolvedArgs.length; i++) { if (this._getTypeName(resolvedArgs[i]) !== TYPE_NULL) { return resolvedArgs[i]; } } return null; }, _functionSort: function(resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); sortedArray.sort(); return sortedArray; }, _functionSortBy: function(resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); if (sortedArray.length === 0) { return sortedArray; } var interpreter = this._interpreter; var exprefNode = resolvedArgs[1]; var requiredType = this._getTypeName( interpreter.visit(exprefNode, sortedArray[0])); if ([TYPE_NUMBER, TYPE_STRING].indexOf(requiredType) < 0) { throw new Error("TypeError"); } var that = this; // In order to get a stable sort out of an unstable // sort algorithm, we decorate/sort/undecorate (DSU) // by creating a new list of [index, element] pairs. // In the cmp function, if the evaluated elements are // equal, then the index will be used as the tiebreaker. // After the decorated list has been sorted, it will be // undecorated to extract the original elements. var decorated = []; for (var i = 0; i < sortedArray.length; i++) { decorated.push([i, sortedArray[i]]); } decorated.sort(function(a, b) { var exprA = interpreter.visit(exprefNode, a[1]); var exprB = interpreter.visit(exprefNode, b[1]); if (that._getTypeName(exprA) !== requiredType) { throw new Error( "TypeError: expected " + requiredType + ", received " + that._getTypeName(exprA)); } else if (that._getTypeName(exprB) !== requiredType) { throw new Error( "TypeError: expected " + requiredType + ", received " + that._getTypeName(exprB)); } if (exprA > exprB) { return 1; } else if (exprA < exprB) { return -1; } else { // If they're equal compare the items by their // order to maintain relative order of equal keys // (i.e. to get a stable sort). return a[0] - b[0]; } }); // Undecorate: extract out the original list elements. for (var j = 0; j < decorated.length; j++) { sortedArray[j] = decorated[j][1]; } return sortedArray; }, _functionMaxBy: function(resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); var maxNumber = -Infinity; var maxRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { current = keyFunction(resolvedArray[i]); if (current > maxNumber) { maxNumber = current; maxRecord = resolvedArray[i]; } } return maxRecord; }, _functionMinBy: function(resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); var minNumber = Infinity; var minRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { current = keyFunction(resolvedArray[i]); if (current < minNumber) { minNumber = current; minRecord = resolvedArray[i]; } } return minRecord; }, createKeyFunction: function(exprefNode, allowedTypes) { var that = this; var interpreter = this._interpreter; var keyFunc = function(x) { var current = interpreter.visit(exprefNode, x); if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { var msg = "TypeError: expected one of " + allowedTypes + ", received " + that._getTypeName(current); throw new Error(msg); } return current; }; return keyFunc; } }; function compile(stream) { var parser = new Parser(); var ast = parser.parse(stream); return ast; } function tokenize(stream) { var lexer = new Lexer(); return lexer.tokenize(stream); } function search(data, expression) { var parser = new Parser(); // This needs to be improved. Both the interpreter and runtime depend on // each other. The runtime needs the interpreter to support exprefs. // There's likely a clean way to avoid the cyclic dependency. var runtime = new Runtime(); var interpreter = new TreeInterpreter(runtime); runtime._interpreter = interpreter; var node = parser.parse(expression); return interpreter.search(node, data); } exports.tokenize = tokenize; exports.compile = compile; exports.search = search; exports.strictDeepEqual = strictDeepEqual; })(typeof exports === "undefined" ? this.jmespath = {} : exports); },{}],315:[function(require,module,exports){ var arrayEvery = require('../internal/arrayEvery'), baseCallback = require('../internal/baseCallback'), baseEvery = require('../internal/baseEvery'), isArray = require('../lang/isArray'); /** * Checks if `predicate` returns truthy for **all** elements of `collection`. * The predicate is bound to `thisArg` and invoked with three arguments; * (value, index|key, collection). * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. * * If a value is also provided for `thisArg` the created `_.matchesProperty` * style callback returns `true` for elements that have a matching property * value, else `false`. * * If an object is provided for `predicate` the created `_.matches` style * callback returns `true` for elements that have the properties of the given * object, else `false`. * * @static * @memberOf _ * @alias all * @category Collection * @param {Array|Object|string} collection The collection to iterate over. * @param {Function|Object|string} [predicate=_.identity] The function invoked * per iteration. * @param {*} [thisArg] The `this` binding of `predicate`. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. * @example * * _.every([true, 1, null, 'yes'], Boolean); * // => false * * var users = [ * { 'user': 'barney', 'active': false }, * { 'user': 'fred', 'active': false } * ]; * * // using the `_.matches` callback shorthand * _.every(users, { 'user': 'barney', 'active': false }); * // => false * * // using the `_.matchesProperty` callback shorthand * _.every(users, 'active', false); * // => true * * // using the `_.property` callback shorthand * _.every(users, 'active'); * // => false */ function every(collection, predicate, thisArg) { var func = isArray(collection) ? arrayEvery : baseEvery; if (typeof predicate != 'function' || typeof thisArg != 'undefined') { predicate = baseCallback(predicate, thisArg, 3); } return func(collection, predicate); } module.exports = every; },{"../internal/arrayEvery":316,"../internal/baseCallback":318,"../internal/baseEvery":322,"../lang/isArray":349}],316:[function(require,module,exports){ /** * A specialized version of `_.every` for arrays without support for callback * shorthands or `this` binding. * * @private * @param {Array} array The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. */ function arrayEvery(array, predicate) { var index = -1, length = array.length; while (++index < length) { if (!predicate(array[index], index, array)) { return false; } } return true; } module.exports = arrayEvery; },{}],317:[function(require,module,exports){ var baseCopy = require('./baseCopy'), keys = require('../object/keys'); /** * The base implementation of `_.assign` without support for argument juggling, * multiple sources, and `this` binding `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {Function} [customizer] The function to customize assigning values. * @returns {Object} Returns the destination object. */ function baseAssign(object, source, customizer) { var props = keys(source); if (!customizer) { return baseCopy(source, object, props); } var index = -1, length = props.length; while (++index < length) { var key = props[index], value = object[key], result = customizer(value, source[key], key, object, source); if ((result === result ? (result !== value) : (value === value)) || (typeof value == 'undefined' && !(key in object))) { object[key] = result; } } return object; } module.exports = baseAssign; },{"../object/keys":358,"./baseCopy":319}],318:[function(require,module,exports){ var baseMatches = require('./baseMatches'), baseMatchesProperty = require('./baseMatchesProperty'), baseProperty = require('./baseProperty'), bindCallback = require('./bindCallback'), identity = require('../utility/identity'), isBindable = require('./isBindable'); /** * The base implementation of `_.callback` which supports specifying the * number of arguments to provide to `func`. * * @private * @param {*} [func=_.identity] The value to convert to a callback. * @param {*} [thisArg] The `this` binding of `func`. * @param {number} [argCount] The number of arguments to provide to `func`. * @returns {Function} Returns the callback. */ function baseCallback(func, thisArg, argCount) { var type = typeof func; if (type == 'function') { return (typeof thisArg != 'undefined' && isBindable(func)) ? bindCallback(func, thisArg, argCount) : func; } if (func == null) { return identity; } if (type == 'object') { return baseMatches(func); } return typeof thisArg == 'undefined' ? baseProperty(func + '') : baseMatchesProperty(func + '', thisArg); } module.exports = baseCallback; },{"../utility/identity":362,"./baseMatches":329,"./baseMatchesProperty":330,"./baseProperty":331,"./bindCallback":334,"./isBindable":339}],319:[function(require,module,exports){ /** * Copies the properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Object} [object={}] The object to copy properties to. * @param {Array} props The property names to copy. * @returns {Object} Returns `object`. */ function baseCopy(source, object, props) { if (!props) { props = object; object = {}; } var index = -1, length = props.length; while (++index < length) { var key = props[index]; object[key] = source[key]; } return object; } module.exports = baseCopy; },{}],320:[function(require,module,exports){ (function (global){ var isObject = require('../lang/isObject'); /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function Object() {} return function(prototype) { if (isObject(prototype)) { Object.prototype = prototype; var result = new Object; Object.prototype = null; } return result || global.Object(); }; }()); module.exports = baseCreate; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"../lang/isObject":353}],321:[function(require,module,exports){ var baseForOwn = require('./baseForOwn'), isLength = require('./isLength'), toObject = require('./toObject'); /** * The base implementation of `_.forEach` without support for callback * shorthands and `this` binding. * * @private * @param {Array|Object|string} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object|string} Returns `collection`. */ function baseEach(collection, iteratee) { var length = collection ? collection.length : 0; if (!isLength(length)) { return baseForOwn(collection, iteratee); } var index = -1, iterable = toObject(collection); while (++index < length) { if (iteratee(iterable[index], index, iterable) === false) { break; } } return collection; } module.exports = baseEach; },{"./baseForOwn":324,"./isLength":342,"./toObject":347}],322:[function(require,module,exports){ var baseEach = require('./baseEach'); /** * The base implementation of `_.every` without support for callback * shorthands or `this` binding. * * @private * @param {Array|Object|string} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false` */ function baseEvery(collection, predicate) { var result = true; baseEach(collection, function(value, index, collection) { result = !!predicate(value, index, collection); return result; }); return result; } module.exports = baseEvery; },{"./baseEach":321}],323:[function(require,module,exports){ var toObject = require('./toObject'); /** * The base implementation of `baseForIn` and `baseForOwn` which iterates * over `object` properties returned by `keysFunc` invoking `iteratee` for * each property. Iterator functions may exit iteration early by explicitly * returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ function baseFor(object, iteratee, keysFunc) { var index = -1, iterable = toObject(object), props = keysFunc(object), length = props.length; while (++index < length) { var key = props[index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; } module.exports = baseFor; },{"./toObject":347}],324:[function(require,module,exports){ var baseFor = require('./baseFor'), keys = require('../object/keys'); /** * The base implementation of `_.forOwn` without support for callback * shorthands and `this` binding. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. */ function baseForOwn(object, iteratee) { return baseFor(object, iteratee, keys); } module.exports = baseForOwn; },{"../object/keys":358,"./baseFor":323}],325:[function(require,module,exports){ var baseIsEqualDeep = require('./baseIsEqualDeep'); /** * The base implementation of `_.isEqual` without support for `this` binding * `customizer` functions. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {Function} [customizer] The function to customize comparing values. * @param {boolean} [isWhere] Specify performing partial comparisons. * @param {Array} [stackA] Tracks traversed `value` objects. * @param {Array} [stackB] Tracks traversed `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ function baseIsEqual(value, other, customizer, isWhere, stackA, stackB) { // Exit early for identical values. if (value === other) { // Treat `+0` vs. `-0` as not equal. return value !== 0 || (1 / value == 1 / other); } var valType = typeof value, othType = typeof other; // Exit early for unlike primitive values. if ((valType != 'function' && valType != 'object' && othType != 'function' && othType != 'object') || value == null || other == null) { // Return `false` unless both values are `NaN`. return value !== value && other !== other; } return baseIsEqualDeep(value, other, baseIsEqual, customizer, isWhere, stackA, stackB); } module.exports = baseIsEqual; },{"./baseIsEqualDeep":326}],326:[function(require,module,exports){ var equalArrays = require('./equalArrays'), equalByTag = require('./equalByTag'), equalObjects = require('./equalObjects'), isArray = require('../lang/isArray'), isTypedArray = require('../lang/isTypedArray'); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', objectTag = '[object Object]'; /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** * A specialized version of `baseIsEqual` for arrays and objects which performs * deep comparisons and tracks traversed objects enabling objects with circular * references to be compared. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Function} [customizer] The function to customize comparing objects. * @param {boolean} [isWhere] Specify performing partial comparisons. * @param {Array} [stackA=[]] Tracks traversed `value` objects. * @param {Array} [stackB=[]] Tracks traversed `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function baseIsEqualDeep(object, other, equalFunc, customizer, isWhere, stackA, stackB) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag; if (!objIsArr) { objTag = objToString.call(object); if (objTag == argsTag) { objTag = objectTag; } else if (objTag != objectTag) { objIsArr = isTypedArray(object); } } if (!othIsArr) { othTag = objToString.call(other); if (othTag == argsTag) { othTag = objectTag; } else if (othTag != objectTag) { othIsArr = isTypedArray(other); } } var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; if (isSameTag && !(objIsArr || objIsObj)) { return equalByTag(object, other, objTag); } var valWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); if (valWrapped || othWrapped) { return equalFunc(valWrapped ? object.value() : object, othWrapped ? other.value() : other, customizer, isWhere, stackA, stackB); } if (!isSameTag) { return false; } // Assume cyclic values are equal. // For more information on detecting circular references see https://es5.github.io/#JO. stackA || (stackA = []); stackB || (stackB = []); var length = stackA.length; while (length--) { if (stackA[length] == object) { return stackB[length] == other; } } // Add `object` and `other` to the stack of traversed objects. stackA.push(object); stackB.push(other); var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isWhere, stackA, stackB); stackA.pop(); stackB.pop(); return result; } module.exports = baseIsEqualDeep; },{"../lang/isArray":349,"../lang/isTypedArray":355,"./equalArrays":336,"./equalByTag":337,"./equalObjects":338}],327:[function(require,module,exports){ /** * The base implementation of `_.isFunction` without support for environments * with incorrect `typeof` results. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. */ function baseIsFunction(value) { // Avoid a Chakra JIT bug in compatibility modes of IE 11. // See https://github.com/jashkenas/underscore/issues/1621 for more details. return typeof value == 'function' || false; } module.exports = baseIsFunction; },{}],328:[function(require,module,exports){ var baseIsEqual = require('./baseIsEqual'); /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.isMatch` without support for callback * shorthands or `this` binding. * * @private * @param {Object} object The object to inspect. * @param {Array} props The source property names to match. * @param {Array} values The source values to match. * @param {Array} strictCompareFlags Strict comparison flags for source values. * @param {Function} [customizer] The function to customize comparing objects. * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ function baseIsMatch(object, props, values, strictCompareFlags, customizer) { var length = props.length; if (object == null) { return !length; } var index = -1, noCustomizer = !customizer; while (++index < length) { if ((noCustomizer && strictCompareFlags[index]) ? values[index] !== object[props[index]] : !hasOwnProperty.call(object, props[index]) ) { return false; } } index = -1; while (++index < length) { var key = props[index]; if (noCustomizer && strictCompareFlags[index]) { var result = hasOwnProperty.call(object, key); } else { var objValue = object[key], srcValue = values[index]; result = customizer ? customizer(objValue, srcValue, key) : undefined; if (typeof result == 'undefined') { result = baseIsEqual(srcValue, objValue, customizer, true); } } if (!result) { return false; } } return true; } module.exports = baseIsMatch; },{"./baseIsEqual":325}],329:[function(require,module,exports){ var baseIsMatch = require('./baseIsMatch'), isStrictComparable = require('./isStrictComparable'), keys = require('../object/keys'); /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * The base implementation of `_.matches` which does not clone `source`. * * @private * @param {Object} source The object of property values to match. * @returns {Function} Returns the new function. */ function baseMatches(source) { var props = keys(source), length = props.length; if (length == 1) { var key = props[0], value = source[key]; if (isStrictComparable(value)) { return function(object) { return object != null && object[key] === value && hasOwnProperty.call(object, key); }; } } var values = Array(length), strictCompareFlags = Array(length); while (length--) { value = source[props[length]]; values[length] = value; strictCompareFlags[length] = isStrictComparable(value); } return function(object) { return baseIsMatch(object, props, values, strictCompareFlags); }; } module.exports = baseMatches; },{"../object/keys":358,"./baseIsMatch":328,"./isStrictComparable":344}],330:[function(require,module,exports){ var baseIsEqual = require('./baseIsEqual'), isStrictComparable = require('./isStrictComparable'); /** * The base implementation of `_.matchesProperty` which does not coerce `key` * to a string. * * @private * @param {string} key The key of the property to get. * @param {*} value The value to compare. * @returns {Function} Returns the new function. */ function baseMatchesProperty(key, value) { if (isStrictComparable(value)) { return function(object) { return object != null && object[key] === value; }; } return function(object) { return object != null && baseIsEqual(value, object[key], null, true); }; } module.exports = baseMatchesProperty; },{"./baseIsEqual":325,"./isStrictComparable":344}],331:[function(require,module,exports){ /** * The base implementation of `_.property` which does not coerce `key` to a string. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new function. */ function baseProperty(key) { return function(object) { return object == null ? undefined : object[key]; }; } module.exports = baseProperty; },{}],332:[function(require,module,exports){ var identity = require('../utility/identity'), metaMap = require('./metaMap'); /** * The base implementation of `setData` without support for hot loop detection. * * @private * @param {Function} func The function to associate metadata with. * @param {*} data The metadata. * @returns {Function} Returns `func`. */ var baseSetData = !metaMap ? identity : function(func, data) { metaMap.set(func, data); return func; }; module.exports = baseSetData; },{"../utility/identity":362,"./metaMap":345}],333:[function(require,module,exports){ /** * Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { if (typeof value == 'string') { return value; } return value == null ? '' : (value + ''); } module.exports = baseToString; },{}],334:[function(require,module,exports){ var identity = require('../utility/identity'); /** * A specialized version of `baseCallback` which only supports `this` binding * and specifying the number of arguments to provide to `func`. * * @private * @param {Function} func The function to bind. * @param {*} thisArg The `this` binding of `func`. * @param {number} [argCount] The number of arguments to provide to `func`. * @returns {Function} Returns the callback. */ function bindCallback(func, thisArg, argCount) { if (typeof func != 'function') { return identity; } if (typeof thisArg == 'undefined') { return func; } switch (argCount) { case 1: return function(value) { return func.call(thisArg, value); }; case 3: return function(value, index, collection) { return func.call(thisArg, value, index, collection); }; case 4: return function(accumulator, value, index, collection) { return func.call(thisArg, accumulator, value, index, collection); }; case 5: return function(value, other, key, object, source) { return func.call(thisArg, value, other, key, object, source); }; } return function() { return func.apply(thisArg, arguments); }; } module.exports = bindCallback; },{"../utility/identity":362}],335:[function(require,module,exports){ var bindCallback = require('./bindCallback'), isIterateeCall = require('./isIterateeCall'); /** * Creates a function that assigns properties of source object(s) to a given * destination object. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return function() { var args = arguments, length = args.length, object = args[0]; if (length < 2 || object == null) { return object; } var customizer = args[length - 2], thisArg = args[length - 1], guard = args[3]; if (length > 3 && typeof customizer == 'function') { customizer = bindCallback(customizer, thisArg, 5); length -= 2; } else { customizer = (length > 2 && typeof thisArg == 'function') ? thisArg : null; length -= (customizer ? 1 : 0); } if (guard && isIterateeCall(args[1], args[2], guard)) { customizer = length == 3 ? null : customizer; length = 2; } var index = 0; while (++index < length) { var source = args[index]; if (source) { assigner(object, source, customizer); } } return object; }; } module.exports = createAssigner; },{"./bindCallback":334,"./isIterateeCall":341}],336:[function(require,module,exports){ /** * A specialized version of `baseIsEqualDeep` for arrays with support for * partial deep comparisons. * * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Function} [customizer] The function to customize comparing arrays. * @param {boolean} [isWhere] Specify performing partial comparisons. * @param {Array} [stackA] Tracks traversed `value` objects. * @param {Array} [stackB] Tracks traversed `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ function equalArrays(array, other, equalFunc, customizer, isWhere, stackA, stackB) { var index = -1, arrLength = array.length, othLength = other.length, result = true; if (arrLength != othLength && !(isWhere && othLength > arrLength)) { return false; } // Deep compare the contents, ignoring non-numeric properties. while (result && ++index < arrLength) { var arrValue = array[index], othValue = other[index]; result = undefined; if (customizer) { result = isWhere ? customizer(othValue, arrValue, index) : customizer(arrValue, othValue, index); } if (typeof result == 'undefined') { // Recursively compare arrays (susceptible to call stack limits). if (isWhere) { var othIndex = othLength; while (othIndex--) { othValue = other[othIndex]; result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB); if (result) { break; } } } else { result = (arrValue && arrValue === othValue) || equalFunc(arrValue, othValue, customizer, isWhere, stackA, stackB); } } } return !!result; } module.exports = equalArrays; },{}],337:[function(require,module,exports){ /** `Object#toString` result references. */ var boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', numberTag = '[object Number]', regexpTag = '[object RegExp]', stringTag = '[object String]'; /** * A specialized version of `baseIsEqualDeep` for comparing objects of * the same `toStringTag`. * * **Note:** This function only supports comparing values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} value The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalByTag(object, other, tag) { switch (tag) { case boolTag: case dateTag: // Coerce dates and booleans to numbers, dates to milliseconds and booleans // to `1` or `0` treating invalid dates coerced to `NaN` as not equal. return +object == +other; case errorTag: return object.name == other.name && object.message == other.message; case numberTag: // Treat `NaN` vs. `NaN` as equal. return (object != +object) ? other != +other // But, treat `-0` vs. `+0` as not equal. : (object == 0 ? ((1 / object) == (1 / other)) : object == +other); case regexpTag: case stringTag: // Coerce regexes to strings and treat strings primitives and string // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details. return object == (other + ''); } return false; } module.exports = equalByTag; },{}],338:[function(require,module,exports){ var keys = require('../object/keys'); /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A specialized version of `baseIsEqualDeep` for objects with support for * partial deep comparisons. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Function} [customizer] The function to customize comparing values. * @param {boolean} [isWhere] Specify performing partial comparisons. * @param {Array} [stackA] Tracks traversed `value` objects. * @param {Array} [stackB] Tracks traversed `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalObjects(object, other, equalFunc, customizer, isWhere, stackA, stackB) { var objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length; if (objLength != othLength && !isWhere) { return false; } var hasCtor, index = -1; while (++index < objLength) { var key = objProps[index], result = hasOwnProperty.call(other, key); if (result) { var objValue = object[key], othValue = other[key]; result = undefined; if (customizer) { result = isWhere ? customizer(othValue, objValue, key) : customizer(objValue, othValue, key); } if (typeof result == 'undefined') { // Recursively compare objects (susceptible to call stack limits). result = (objValue && objValue === othValue) || equalFunc(objValue, othValue, customizer, isWhere, stackA, stackB); } } if (!result) { return false; } hasCtor || (hasCtor = key == 'constructor'); } if (!hasCtor) { var objCtor = object.constructor, othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal. if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { return false; } } return true; } module.exports = equalObjects; },{"../object/keys":358}],339:[function(require,module,exports){ var baseSetData = require('./baseSetData'), isNative = require('../lang/isNative'), support = require('../support'); /** Used to detect named functions. */ var reFuncName = /^\s*function[ \n\r\t]+\w/; /** Used to detect functions containing a `this` reference. */ var reThis = /\bthis\b/; /** Used to resolve the decompiled source of functions. */ var fnToString = Function.prototype.toString; /** * Checks if `func` is eligible for `this` binding. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is eligible, else `false`. */ function isBindable(func) { var result = !(support.funcNames ? func.name : support.funcDecomp); if (!result) { var source = fnToString.call(func); if (!support.funcNames) { result = !reFuncName.test(source); } if (!result) { // Check if `func` references the `this` keyword and store the result. result = reThis.test(source) || isNative(func); baseSetData(func, result); } } return result; } module.exports = isBindable; },{"../lang/isNative":352,"../support":361,"./baseSetData":332}],340:[function(require,module,exports){ /** * Used as the maximum length of an array-like value. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * for more details. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { value = +value; length = length == null ? MAX_SAFE_INTEGER : length; return value > -1 && value % 1 == 0 && value < length; } module.exports = isIndex; },{}],341:[function(require,module,exports){ var isIndex = require('./isIndex'), isLength = require('./isLength'), isObject = require('../lang/isObject'); /** * Checks if the provided arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number') { var length = object.length, prereq = isLength(length) && isIndex(index, length); } else { prereq = type == 'string' && index in object; } if (prereq) { var other = object[index]; return value === value ? (value === other) : (other !== other); } return false; } module.exports = isIterateeCall; },{"../lang/isObject":353,"./isIndex":340,"./isLength":342}],342:[function(require,module,exports){ /** * Used as the maximum length of an array-like value. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * for more details. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * * **Note:** This function is based on ES `ToLength`. See the * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) * for more details. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; },{}],343:[function(require,module,exports){ /** * Checks if `value` is object-like. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { return (value && typeof value == 'object') || false; } module.exports = isObjectLike; },{}],344:[function(require,module,exports){ var isObject = require('../lang/isObject'); /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` if suitable for strict * equality comparisons, else `false`. */ function isStrictComparable(value) { return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value)); } module.exports = isStrictComparable; },{"../lang/isObject":353}],345:[function(require,module,exports){ (function (global){ var isNative = require('../lang/isNative'); /** Native method references. */ var WeakMap = isNative(WeakMap = global.WeakMap) && WeakMap; /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; module.exports = metaMap; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"../lang/isNative":352}],346:[function(require,module,exports){ var isArguments = require('../lang/isArguments'), isArray = require('../lang/isArray'), isIndex = require('./isIndex'), isLength = require('./isLength'), keysIn = require('../object/keysIn'), support = require('../support'); /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A fallback implementation of `Object.keys` which creates an array of the * own enumerable property names of `object`. * * @private * @param {Object} object The object to inspect. * @returns {Array} Returns the array of property names. */ function shimKeys(object) { var props = keysIn(object), propsLength = props.length, length = propsLength && object.length; var allowIndexes = length && isLength(length) && (isArray(object) || (support.nonEnumArgs && isArguments(object))); var index = -1, result = []; while (++index < propsLength) { var key = props[index]; if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) { result.push(key); } } return result; } module.exports = shimKeys; },{"../lang/isArguments":348,"../lang/isArray":349,"../object/keysIn":359,"../support":361,"./isIndex":340,"./isLength":342}],347:[function(require,module,exports){ var isObject = require('../lang/isObject'); /** * Converts `value` to an object if it is not one. * * @private * @param {*} value The value to process. * @returns {Object} Returns the object. */ function toObject(value) { return isObject(value) ? value : Object(value); } module.exports = toObject; },{"../lang/isObject":353}],348:[function(require,module,exports){ var isLength = require('../internal/isLength'), isObjectLike = require('../internal/isObjectLike'); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** Used for native method references. */ var objectProto = Object.prototype; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** * Checks if `value` is classified as an `arguments` object. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ function isArguments(value) { var length = isObjectLike(value) ? value.length : undefined; return (isLength(length) && objToString.call(value) == argsTag) || false; } module.exports = isArguments; },{"../internal/isLength":342,"../internal/isObjectLike":343}],349:[function(require,module,exports){ var isLength = require('../internal/isLength'), isNative = require('./isNative'), isObjectLike = require('../internal/isObjectLike'); /** `Object#toString` result references. */ var arrayTag = '[object Array]'; /** Used for native method references. */ var objectProto = Object.prototype; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /* Native method references for those with the same name as other `lodash` methods. */ var nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray; /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(function() { return arguments; }()); * // => false */ var isArray = nativeIsArray || function(value) { return (isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag) || false; }; module.exports = isArray; },{"../internal/isLength":342,"../internal/isObjectLike":343,"./isNative":352}],350:[function(require,module,exports){ var isArguments = require('./isArguments'), isArray = require('./isArray'), isFunction = require('./isFunction'), isLength = require('../internal/isLength'), isObjectLike = require('../internal/isObjectLike'), isString = require('./isString'), keys = require('../object/keys'); /** * Checks if `value` is empty. A value is considered empty unless it is an * `arguments` object, array, string, or jQuery-like collection with a length * greater than `0` or an object with own enumerable properties. * * @static * @memberOf _ * @category Lang * @param {Array|Object|string} value The value to inspect. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } var length = value.length; if (isLength(length) && (isArray(value) || isString(value) || isArguments(value) || (isObjectLike(value) && isFunction(value.splice)))) { return !length; } return !keys(value).length; } module.exports = isEmpty; },{"../internal/isLength":342,"../internal/isObjectLike":343,"../object/keys":358,"./isArguments":348,"./isArray":349,"./isFunction":351,"./isString":354}],351:[function(require,module,exports){ (function (global){ var baseIsFunction = require('../internal/baseIsFunction'), isNative = require('./isNative'); /** `Object#toString` result references. */ var funcTag = '[object Function]'; /** Used for native method references. */ var objectProto = Object.prototype; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** Native method references. */ var Uint8Array = isNative(Uint8Array = global.Uint8Array) && Uint8Array; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ var isFunction = !(baseIsFunction(/x/) || (Uint8Array && !baseIsFunction(Uint8Array))) ? baseIsFunction : function(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in older versions of Chrome and Safari which return 'function' for regexes // and Safari 8 equivalents which return 'object' for typed array constructors. return objToString.call(value) == funcTag; }; module.exports = isFunction; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"../internal/baseIsFunction":327,"./isNative":352}],352:[function(require,module,exports){ var escapeRegExp = require('../string/escapeRegExp'), isObjectLike = require('../internal/isObjectLike'); /** `Object#toString` result references. */ var funcTag = '[object Function]'; /** Used to detect host constructors (Safari > 5). */ var reHostCtor = /^\[object .+?Constructor\]$/; /** Used for native method references. */ var objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var fnToString = Function.prototype.toString; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** Used to detect if a method is native. */ var reNative = RegExp('^' + escapeRegExp(objToString) .replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * Checks if `value` is a native function. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, else `false`. * @example * * _.isNative(Array.prototype.push); * // => true * * _.isNative(_); * // => false */ function isNative(value) { if (value == null) { return false; } if (objToString.call(value) == funcTag) { return reNative.test(fnToString.call(value)); } return (isObjectLike(value) && reHostCtor.test(value)) || false; } module.exports = isNative; },{"../internal/isObjectLike":343,"../string/escapeRegExp":360}],353:[function(require,module,exports){ /** * Checks if `value` is the language type of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(1); * // => false */ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; return type == 'function' || (value && type == 'object') || false; } module.exports = isObject; },{}],354:[function(require,module,exports){ var isObjectLike = require('../internal/isObjectLike'); /** `Object#toString` result references. */ var stringTag = '[object String]'; /** Used for native method references. */ var objectProto = Object.prototype; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** * Checks if `value` is classified as a `String` primitive or object. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * * _.isString('abc'); * // => true * * _.isString(1); * // => false */ function isString(value) { return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag) || false; } module.exports = isString; },{"../internal/isObjectLike":343}],355:[function(require,module,exports){ var isLength = require('../internal/isLength'), isObjectLike = require('../internal/isObjectLike'); /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]'; var arrayBufferTag = '[object ArrayBuffer]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** Used for native method references. */ var objectProto = Object.prototype; /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * for more details. */ var objToString = objectProto.toString; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ function isTypedArray(value) { return (isObjectLike(value) && isLength(value.length) && typedArrayTags[objToString.call(value)]) || false; } module.exports = isTypedArray; },{"../internal/isLength":342,"../internal/isObjectLike":343}],356:[function(require,module,exports){ var baseAssign = require('../internal/baseAssign'), createAssigner = require('../internal/createAssigner'); /** * Assigns own enumerable properties of source object(s) to the destination * object. Subsequent sources overwrite property assignments of previous sources. * If `customizer` is provided it is invoked to produce the assigned values. * The `customizer` is bound to `thisArg` and invoked with five arguments; * (objectValue, sourceValue, key, object, source). * * @static * @memberOf _ * @alias extend * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @param {Function} [customizer] The function to customize assigning values. * @param {*} [thisArg] The `this` binding of `customizer`. * @returns {Object} Returns `object`. * @example * * _.assign({ 'user': 'barney' }, { 'age': 40 }, { 'user': 'fred' }); * // => { 'user': 'fred', 'age': 40 } * * // using a customizer callback * var defaults = _.partialRight(_.assign, function(value, other) { * return typeof value == 'undefined' ? other : value; * }); * * defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' }); * // => { 'user': 'barney', 'age': 36 } */ var assign = createAssigner(baseAssign); module.exports = assign; },{"../internal/baseAssign":317,"../internal/createAssigner":335}],357:[function(require,module,exports){ var baseCopy = require('../internal/baseCopy'), baseCreate = require('../internal/baseCreate'), isIterateeCall = require('../internal/isIterateeCall'), keys = require('./keys'); /** * Creates an object that inherits from the given `prototype` object. If a * `properties` object is provided its own enumerable properties are assigned * to the created object. * * @static * @memberOf _ * @category Object * @param {Object} prototype The object to inherit from. * @param {Object} [properties] The properties to assign to the object. * @param- {Object} [guard] Enables use as a callback for functions like `_.map`. * @returns {Object} Returns the new object. * @example * * function Shape() { * this.x = 0; * this.y = 0; * } * * function Circle() { * Shape.call(this); * } * * Circle.prototype = _.create(Shape.prototype, { * 'constructor': Circle * }); * * var circle = new Circle; * circle instanceof Circle; * // => true * * circle instanceof Shape; * // => true */ function create(prototype, properties, guard) { var result = baseCreate(prototype); if (guard && isIterateeCall(prototype, properties, guard)) { properties = null; } return properties ? baseCopy(properties, result, keys(properties)) : result; } module.exports = create; },{"../internal/baseCopy":319,"../internal/baseCreate":320,"../internal/isIterateeCall":341,"./keys":358}],358:[function(require,module,exports){ var isLength = require('../internal/isLength'), isNative = require('../lang/isNative'), isObject = require('../lang/isObject'), shimKeys = require('../internal/shimKeys'); /* Native method references for those with the same name as other `lodash` methods. */ var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys) * for more details. * * @static * @memberOf _ * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ var keys = !nativeKeys ? shimKeys : function(object) { if (object) { var Ctor = object.constructor, length = object.length; } if ((typeof Ctor == 'function' && Ctor.prototype === object) || (typeof object != 'function' && (length && isLength(length)))) { return shimKeys(object); } return isObject(object) ? nativeKeys(object) : []; }; module.exports = keys; },{"../internal/isLength":342,"../internal/shimKeys":346,"../lang/isNative":352,"../lang/isObject":353}],359:[function(require,module,exports){ var isArguments = require('../lang/isArguments'), isArray = require('../lang/isArray'), isIndex = require('../internal/isIndex'), isLength = require('../internal/isLength'), isObject = require('../lang/isObject'), support = require('../support'); /** Used for native method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { if (object == null) { return []; } if (!isObject(object)) { object = Object(object); } var length = object.length; length = (length && isLength(length) && (isArray(object) || (support.nonEnumArgs && isArguments(object))) && length) || 0; var Ctor = object.constructor, index = -1, isProto = typeof Ctor == 'function' && Ctor.prototype === object, result = Array(length), skipIndexes = length > 0; while (++index < length) { result[index] = (index + ''); } for (var key in object) { if (!(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } module.exports = keysIn; },{"../internal/isIndex":340,"../internal/isLength":342,"../lang/isArguments":348,"../lang/isArray":349,"../lang/isObject":353,"../support":361}],360:[function(require,module,exports){ var baseToString = require('../internal/baseToString'); /** * Used to match `RegExp` special characters. * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special) * for more details. */ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); /** * Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*", * "+", "(", ")", "[", "]", "{" and "}" in `string`. * * @static * @memberOf _ * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns the escaped string. * @example * * _.escapeRegExp('[lodash](https://lodash.com/)'); * // => '\[lodash\]\(https://lodash\.com/\)' */ function escapeRegExp(string) { string = baseToString(string); return (string && reHasRegExpChars.test(string)) ? string.replace(reRegExpChars, '\\$&') : string; } module.exports = escapeRegExp; },{"../internal/baseToString":333}],361:[function(require,module,exports){ (function (global){ var isNative = require('./lang/isNative'); /** Used to detect functions containing a `this` reference. */ var reThis = /\bthis\b/; /** Used for native method references. */ var objectProto = Object.prototype; /** Used to detect DOM support. */ var document = (document = global.window) && document.document; /** Native method references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * An object environment feature flags. * * @static * @memberOf _ * @type Object */ var support = {}; (function(x) { /** * Detect if functions can be decompiled by `Function#toString` * (all but Firefox OS certified apps, older Opera mobile browsers, and * the PlayStation 3; forced `false` for Windows 8 apps). * * @memberOf _.support * @type boolean */ support.funcDecomp = !isNative(global.WinRTError) && reThis.test(function() { return this; }); /** * Detect if `Function#name` is supported (all but IE). * * @memberOf _.support * @type boolean */ support.funcNames = typeof Function.name == 'string'; /** * Detect if the DOM is supported. * * @memberOf _.support * @type boolean */ try { support.dom = document.createDocumentFragment().nodeType === 11; } catch(e) { support.dom = false; } /** * Detect if `arguments` object indexes are non-enumerable. * * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` * checks for indexes that exceed their function's formal parameters with * associated values of `0`. * * @memberOf _.support * @type boolean */ try { support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); } catch(e) { support.nonEnumArgs = true; } }(0, 0)); module.exports = support; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./lang/isNative":352}],362:[function(require,module,exports){ /** * This method returns the first argument provided to it. * * @static * @memberOf _ * @category Utility * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'user': 'fred' }; * * _.identity(object) === object; * // => true */ function identity(value) { return value; } module.exports = identity; },{}],363:[function(require,module,exports){ /* Protocol - protocol constants */ /* Command code => mnemonic */ module.exports.types = { 0: 'reserved', 1: 'connect', 2: 'connack', 3: 'publish', 4: 'puback', 5: 'pubrec', 6: 'pubrel', 7: 'pubcomp', 8: 'subscribe', 9: 'suback', 10: 'unsubscribe', 11: 'unsuback', 12: 'pingreq', 13: 'pingresp', 14: 'disconnect', 15: 'reserved' }; /* Mnemonic => Command code */ module.exports.codes = {} for(var k in module.exports.types) { var v = module.exports.types[k]; module.exports.codes[v] = k; } /* Header */ module.exports.CMD_SHIFT = 4; module.exports.CMD_MASK = 0xF0; module.exports.DUP_MASK = 0x08; module.exports.QOS_MASK = 0x03; module.exports.QOS_SHIFT = 1; module.exports.RETAIN_MASK = 0x01; /* Length */ module.exports.LENGTH_MASK = 0x7F; module.exports.LENGTH_FIN_MASK = 0x80; /* Connack */ module.exports.SESSIONPRESENT_MASK = 0x01; /* Connect */ module.exports.USERNAME_MASK = 0x80; module.exports.PASSWORD_MASK = 0x40; module.exports.WILL_RETAIN_MASK = 0x20; module.exports.WILL_QOS_MASK = 0x18; module.exports.WILL_QOS_SHIFT = 3; module.exports.WILL_FLAG_MASK = 0x04; module.exports.CLEAN_SESSION_MASK = 0x02; },{}],364:[function(require,module,exports){ (function (Buffer){ 'use strict'; var protocol = require('./constants') , empty = new Buffer(0) function generate(packet) { switch (packet.cmd) { case 'connect': return connect(packet) case 'connack': return connack(packet) case 'publish': return publish(packet) case 'puback': case 'pubrec': case 'pubrel': case 'pubcomp': case 'unsuback': return confirmation(packet) case 'subscribe': return subscribe(packet) case 'suback': return suback(packet) case 'unsubscribe': return unsubscribe(packet) case 'pingreq': case 'pingresp': case 'disconnect': return emptyPacket(packet) default: throw new Error('unknown command') } } function connect(opts) { var opts = opts || {} , protocolId = opts.protocolId || 'MQTT' , protocolVersion = opts.protocolVersion || 4 , will = opts.will , clean = opts.clean , keepalive = opts.keepalive || 0 , clientId = opts.clientId || "" , username = opts.username , password = opts.password if (clean === undefined) { clean = true } var length = 0 // Must be a string and non-falsy if (!protocolId || (typeof protocolId !== "string" && !Buffer.isBuffer(protocolId))) { throw new Error('Invalid protocol id') } else { length += protocolId.length + 2 } // Must be a 1 byte number if (!protocolVersion || 'number' !== typeof protocolVersion || protocolVersion > 255 || protocolVersion < 0) { throw new Error('Invalid protocol version') } else { length += 1 } // ClientId might be omitted in 3.1.1, but only if cleanSession is set to 1 if ((typeof clientId === "string" || Buffer.isBuffer(clientId)) && (clientId || protocolVersion == 4) && (clientId || clean)) { length += clientId.length + 2 } else { if(protocolVersion < 4) { throw new Error('clientId must be supplied before 3.1.1'); } if(clean == 0) { throw new Error('clientId must be given if cleanSession set to 0'); } } // Must be a two byte number if ('number' !== typeof keepalive || keepalive < 0 || keepalive > 65535) { throw new Error('Invalid keepalive') } else { length += 2 } // Connect flags length += 1 // If will exists... if (will) { // It must be an object if ('object' !== typeof will) { throw new Error('Invalid will') } // It must have topic typeof string if (!will.topic || 'string' !== typeof will.topic) { throw new Error('Invalid will topic') } else { length += Buffer.byteLength(will.topic) + 2 } // Payload if (will.payload && will.payload) { if (will.payload.length >= 0) { if ('string' === typeof will.payload) { length += Buffer.byteLength(will.payload) + 2 } else { length += will.payload.length + 2 } } else { throw new Error('Invalid will payload') } } else { length += 2 } } // Username if (username) { if (username.length) { length += Buffer.byteLength(username) + 2 } else { throw new Error('Invalid username') } } // Password if (password) { if (password.length) { length += byteLength(password) + 2 } else { throw new Error('Invalid password') } } var buffer = new Buffer(1 + calcLengthLength(length) + length) , pos = 0 // Generate header buffer.writeUInt8(protocol.codes['connect'] << protocol.CMD_SHIFT, pos++, true) // Generate length pos += writeLength(buffer, pos, length) // Generate protocol ID pos += writeStringOrBuffer(buffer, pos, protocolId) buffer.writeUInt8(protocolVersion, pos++, true) // Connect flags var flags = 0 flags |= username ? protocol.USERNAME_MASK : 0 flags |= password ? protocol.PASSWORD_MASK : 0 flags |= (will && will.retain) ? protocol.WILL_RETAIN_MASK : 0 flags |= (will && will.qos) ? will.qos << protocol.WILL_QOS_SHIFT : 0 flags |= will ? protocol.WILL_FLAG_MASK : 0 flags |= clean ? protocol.CLEAN_SESSION_MASK : 0 buffer.writeUInt8(flags, pos++, true) // Keepalive pos += writeNumber(buffer, pos, keepalive) // Client ID pos += writeStringOrBuffer(buffer, pos, clientId) // Will if (will) { pos += writeString(buffer, pos, will.topic) pos += writeStringOrBuffer(buffer, pos, will.payload) } // Username and password if (username) pos += writeStringOrBuffer(buffer, pos, username) if (password) pos += writeStringOrBuffer(buffer, pos, password) return buffer } function connack(opts) { var opts = opts || {} , rc = opts.returnCode; // Check return code if ('number' !== typeof rc) throw new Error('Invalid return code'); var buffer = new Buffer(4) , pos = 0; buffer.writeUInt8(protocol.codes['connack'] << protocol.CMD_SHIFT, pos++, true); pos += writeLength(buffer, pos, 2); buffer.writeUInt8(opts.sessionPresent && protocol.SESSIONPRESENT_MASK || 0, pos++, true); buffer.writeUInt8(rc, pos++, true); return buffer; } function publish(opts) { var opts = opts || {} , dup = opts.dup ? protocol.DUP_MASK : 0 , qos = opts.qos , retain = opts.retain ? protocol.RETAIN_MASK : 0 , topic = opts.topic , payload = opts.payload || empty , id = opts.messageId; var length = 0; // Topic must be a non-empty string or Buffer if (typeof topic === "string") length += Buffer.byteLength(topic) + 2; else if (Buffer.isBuffer(topic)) length += topic.length + 2; else throw new Error('Invalid topic'); // get the payload length if (!Buffer.isBuffer(payload)) { length += Buffer.byteLength(payload); } else { length += payload.length; } // Message id must a number if qos > 0 if (qos && 'number' !== typeof id) { throw new Error('Invalid message id') } else if (qos) { length += 2; } var buffer = new Buffer(1 + calcLengthLength(length) + length) , pos = 0; // Header buffer.writeUInt8( protocol.codes['publish'] << protocol.CMD_SHIFT | dup | qos << protocol.QOS_SHIFT | retain, pos++, true); // Remaining length pos += writeLength(buffer, pos, length); // Topic pos += writeStringOrBuffer(buffer, pos, topic); // Message ID if (qos > 0) { pos += writeNumber(buffer, pos, id); } // Payload if (!Buffer.isBuffer(payload)) { writeStringNoPos(buffer, pos, payload); } else { writeBuffer(buffer, pos, payload); } return buffer; } /* Puback, pubrec, pubrel and pubcomp */ function confirmation(opts) { var opts = opts || {} , type = opts.cmd || 'puback' , id = opts.messageId , dup = (opts.dup && type === 'pubrel') ? protocol.DUP_MASK : 0 , qos = 0 if (type === 'pubrel') qos = 1 // Check message ID if ('number' !== typeof id) throw new Error('Invalid message id'); var buffer = new Buffer(4) , pos = 0; // Header buffer[pos++] = protocol.codes[type] << protocol.CMD_SHIFT | dup | qos << protocol.QOS_SHIFT; // Length pos += writeLength(buffer, pos, 2); // Message ID pos += writeNumber(buffer, pos, id); return buffer; } function subscribe(opts) { var opts = opts || {} , dup = opts.dup ? protocol.DUP_MASK : 0 , qos = opts.qos || 0 , id = opts.messageId , subs = opts.subscriptions; var length = 0; // Check mid if ('number' !== typeof id) { throw new Error('Invalid message id'); } else { length += 2; } // Check subscriptions if ('object' === typeof subs && subs.length) { for (var i = 0; i < subs.length; i += 1) { var topic = subs[i].topic , qos = subs[i].qos; if ('string' !== typeof topic) { throw new Error('Invalid subscriptions - invalid topic'); } if ('number' !== typeof qos) { throw new Error('Invalid subscriptions - invalid qos'); } length += Buffer.byteLength(topic) + 2 + 1; } } else { throw new Error('Invalid subscriptions'); } var buffer = new Buffer(1 + calcLengthLength(length) + length) , pos = 0; // Generate header buffer.writeUInt8( protocol.codes['subscribe'] << protocol.CMD_SHIFT | dup | 1 << protocol.QOS_SHIFT, pos++, true); // Generate length pos += writeLength(buffer, pos, length); // Generate message ID pos += writeNumber(buffer, pos, id); // Generate subs for (var i = 0; i < subs.length; i++) { var sub = subs[i] , topic = sub.topic , qos = sub.qos; // Write topic string pos += writeString(buffer, pos, topic); // Write qos buffer.writeUInt8(qos, pos++, true); } return buffer; } function suback(opts) { var opts = opts || {} , id = opts.messageId , granted = opts.granted; var length = 0; // Check message id if ('number' !== typeof id) { throw new Error('Invalid message id'); } else { length += 2; } // Check granted qos vector if ('object' === typeof granted && granted.length) { for (var i = 0; i < granted.length; i += 1) { if ('number' !== typeof granted[i]) { throw new Error('Invalid qos vector'); } length += 1; } } else { throw new Error('Invalid qos vector'); } var buffer = new Buffer(1 + calcLengthLength(length) + length) , pos = 0; // Header buffer.writeUInt8(protocol.codes['suback'] << protocol.CMD_SHIFT, pos++, true); // Length pos += writeLength(buffer, pos, length); // Message ID pos += writeNumber(buffer, pos, id); // Subscriptions for (var i = 0; i < granted.length; i++) { buffer.writeUInt8(granted[i], pos++, true); } return buffer; } function unsubscribe(opts) { var opts = opts || {} , id = opts.messageId , dup = opts.dup ? protocol.DUP_MASK : 0 , unsubs = opts.unsubscriptions; var length = 0; // Check message id if ('number' !== typeof id) { throw new Error('Invalid message id'); } else { length += 2; } // Check unsubs if ('object' === typeof unsubs && unsubs.length) { for (var i = 0; i < unsubs.length; i += 1) { if ('string' !== typeof unsubs[i]) { throw new Error('Invalid unsubscriptions'); } length += Buffer.byteLength(unsubs[i]) + 2; } } else { throw new Error('Invalid unsubscriptions'); } var buffer = new Buffer(1 + calcLengthLength(length) + length) , pos = 0; // Header buffer[pos++] = protocol.codes['unsubscribe'] << protocol.CMD_SHIFT | dup | 1 << protocol.QOS_SHIFT; // Length pos += writeLength(buffer, pos, length); // Message ID pos += writeNumber(buffer, pos, id); // Unsubs for (var i = 0; i < unsubs.length; i++) { pos += writeString(buffer, pos, unsubs[i]); } return buffer; } function emptyPacket(opts) { var buf = new Buffer(2); buf[0] = protocol.codes[opts.cmd] << 4; buf[1] = 0; return buf; } /** * calcLengthLength - calculate the length of the remaining * length field * * @api private */ function calcLengthLength(length) { if (length >= 0 && length < 128) { return 1 } else if (length >= 128 && length < 16384) { return 2 } else if (length >= 16384 && length < 2097152) { return 3 } else if (length >= 2097152 && length < 268435456) { return 4 } else { return 0 } } /** * writeLength - write an MQTT style length field to the buffer * * @param buffer - destination * @param pos - offset * @param length - length (>0) * @returns number of bytes written * * @api private */ function writeLength(buffer, pos, length) { var digit = 0 , origPos = pos do { digit = length % 128 | 0 length = length / 128 | 0 if (length > 0) { digit = digit | 0x80 } buffer.writeUInt8(digit, pos++, true) } while (length > 0) return pos - origPos } /** * writeString - write a utf8 string to the buffer * * @param buffer - destination * @param pos - offset * @param string - string to write * @return number of bytes written * * @api private */ function writeString(buffer, pos, string) { var strlen = Buffer.byteLength(string) writeNumber(buffer, pos, strlen) writeStringNoPos(buffer, pos + 2, string) return strlen + 2 } function writeStringNoPos(buffer, pos, string) { buffer.write(string, pos) } /** * write_buffer - write buffer to buffer * * @param buffer - dest buffer * @param pos - offset * @param src - source buffer * @return number of bytes written * * @api private */ function writeBuffer(buffer, pos, src) { src.copy(buffer, pos) return src.length } /** * writeNumber - write a two byte number to the buffer * * @param buffer - destination * @param pos - offset * @param number - number to write * @return number of bytes written * * @api private */ function writeNumber(buffer, pos, number) { buffer.writeUInt8(number >> 8, pos, true) buffer.writeUInt8(number & 0x00FF, pos + 1, true) return 2 } /** * writeStringOrBuffer - write a String or Buffer with the its length prefix * * @param buffer - destination * @param pos - offset * @param toWrite - String or Buffer * @return number of bytes written */ function writeStringOrBuffer(buffer, pos, toWrite) { var written = 0 if (toWrite && typeof toWrite === 'string') { written += writeString(buffer, pos + written, toWrite) } else if (toWrite) { written += writeNumber(buffer, pos + written, toWrite.length) written += writeBuffer(buffer, pos + written, toWrite) } else { written += writeNumber(buffer, pos + written, 0) } return written } function byteLength(bufOrString) { if (Buffer.isBuffer(bufOrString)) { return bufOrString.length } else { return Buffer.byteLength(bufOrString) } } module.exports = generate }).call(this,require("buffer").Buffer) },{"./constants":363,"buffer":424}],365:[function(require,module,exports){ 'use strict'; exports.parser = require('./parser') exports.generate = require('./generate') },{"./generate":364,"./parser":367}],366:[function(require,module,exports){ function Packet() { this.cmd = null this.retain = false this.qos = 0 this.dup = false this.length = -1 this.topic = null this.payload = null } module.exports = Packet },{}],367:[function(require,module,exports){ var bl = require('bl') , inherits = require('inherits') , EE = require('events').EventEmitter , Packet = require('./packet') , constants = require('./constants') function Parser() { if (!(this instanceof Parser)) { return new Parser() } this._list = bl() this._newPacket() this._states = [ '_parseHeader' , '_parseLength' , '_parsePayload' , '_newPacket' ] this._stateCounter = 0 } inherits(Parser, EE) Parser.prototype._newPacket = function () { if (this.packet) { this._list.consume(this.packet.length) this.emit('packet', this.packet) } this.packet = new Packet() return true } Parser.prototype.parse = function (buf) { this._list.append(buf) while ((this.packet.length != -1 || this._list.length > 0) && this[this._states[this._stateCounter]]()) { this._stateCounter++ if (this._stateCounter >= this._states.length) { this._stateCounter = 0 } } return this._list.length } Parser.prototype._parseHeader = function () { // there is at least one byte in the buffer var zero = this._list.readUInt8(0) this.packet.cmd = constants.types[zero >> constants.CMD_SHIFT] this.packet.retain = (zero & constants.RETAIN_MASK) !== 0 this.packet.qos = (zero >> constants.QOS_SHIFT) & constants.QOS_MASK this.packet.dup = (zero & constants.DUP_MASK) !== 0 this._list.consume(1) return true } Parser.prototype._parseLength = function () { // there is at least one byte in the list var bytes = 0 , mul = 1 , length = 0 , result = true , current while (bytes < 5) { current = this._list.readUInt8(bytes++) length += mul * (current & constants.LENGTH_MASK) mul *= 0x80 if ((current & constants.LENGTH_FIN_MASK) === 0) { break } if (this._list.length <= bytes) { result = false break } } if (result) { this.packet.length = length this._list.consume(bytes) } return result } Parser.prototype._parsePayload = function () { var result = false // Do we have a payload? Do we have enough data to complete the payload? // PINGs have no payload if (this.packet.length === 0 || this._list.length >= this.packet.length) { this._pos = 0 switch (this.packet.cmd) { case 'connect': this._parseConnect() break case 'connack': this._parseConnack() break case 'publish': this._parsePublish() break case 'puback': case 'pubrec': case 'pubrel': case 'pubcomp': this._parseMessageId() break case 'subscribe': this._parseSubscribe() break case 'suback': this._parseSuback() break case 'unsubscribe': this._parseUnsubscribe() break case 'unsuback': this._parseUnsuback() break case 'pingreq': case 'pingresp': case 'disconnect': // these are empty, nothing to do break default: this.emit('error', new Error('not supported')) } result = true } return result } Parser.prototype._parseConnect = function () { var protocolId // constants id , clientId // Client id , topic // Will topic , payload // Will payload , password // Password , username // Username , flags = {} , packet = this.packet // Parse constants id protocolId = this._parseString() if (protocolId === null) return this.emit('error', new Error('cannot parse protocol id')) if (protocolId != 'MQTT' && protocolId != 'MQIsdp') { return this.emit('error', new Error('invalid protocol id')) } packet.protocolId = protocolId // Parse constants version number if(this._pos >= this._list.length) return this.emit('error', new Error('packet too short')) packet.protocolVersion = this._list.readUInt8(this._pos) if(packet.protocolVersion != 3 && packet.protocolVersion != 4) { return this.emit('error', new Error('invalid protocol version')) } this._pos++ if(this._pos >= this._list.length) return this.emit('error', new Error('packet too short')) // Parse connect flags flags.username = (this._list.readUInt8(this._pos) & constants.USERNAME_MASK) flags.password = (this._list.readUInt8(this._pos) & constants.PASSWORD_MASK) flags.will = (this._list.readUInt8(this._pos) & constants.WILL_FLAG_MASK) if (flags.will) { packet.will = {} packet.will.retain = (this._list.readUInt8(this._pos) & constants.WILL_RETAIN_MASK) !== 0 packet.will.qos = (this._list.readUInt8(this._pos) & constants.WILL_QOS_MASK) >> constants.WILL_QOS_SHIFT } packet.clean = (this._list.readUInt8(this._pos) & constants.CLEAN_SESSION_MASK) !== 0 this._pos++ // Parse keepalive packet.keepalive = this._parseNum() if(packet.keepalive === -1) return this.emit('error', new Error('packet too short')) // Parse client ID clientId = this._parseString() if(clientId === null) return this.emit('error', new Error('packet too short')) packet.clientId = clientId if (flags.will) { // Parse will topic topic = this._parseString() if (topic === null) return this.emit('error', new Error('cannot parse will topic')) packet.will.topic = topic // Parse will payload payload = this._parseBuffer() if (payload === null) return this.emit('error', new Error('cannot parse will payload')) packet.will.payload = payload } // Parse username if (flags.username) { username = this._parseString() if(username === null) return this.emit('error', new Error('cannot parse username')) packet.username = username } // Parse password if(flags.password) { password = this._parseBuffer() if(password === null) return this.emit('error', new Error('cannot parse username')) packet.password = password } return packet } Parser.prototype._parseConnack = function () { var packet = this.packet if (this._list.length < 2) return null packet.sessionPresent = !!(this._list.readUInt8(this._pos++) & constants.SESSIONPRESENT_MASK) packet.returnCode = this._list.readUInt8(this._pos) if(packet.returnCode === -1) return this.emit('error', new Error('cannot parse return code')) } Parser.prototype._parsePublish = function () { var packet = this.packet packet.topic = this._parseString() if(packet.topic === null) return this.emit('error', new Error('cannot parse topic')) // Parse message ID if (packet.qos > 0) { if (!this._parseMessageId()) { return } } packet.payload = this._list.slice(this._pos, packet.length) } Parser.prototype._parseSubscribe = function() { var packet = this.packet , topic , qos if (packet.qos != 1) { return this.emit('error', new Error('wrong subscribe header')) } packet.subscriptions = [] if (!this._parseMessageId()) { return } while (this._pos < packet.length) { // Parse topic topic = this._parseString() if (topic === null) return this.emit('error', new Error('Parse error - cannot parse topic')) qos = this._list.readUInt8(this._pos++) // Push pair to subscriptions packet.subscriptions.push({ topic: topic, qos: qos }); } } Parser.prototype._parseSuback = function() { this.packet.granted = [] if (!this._parseMessageId()) { return } // Parse granted QoSes while (this._pos < this.packet.length) { this.packet.granted.push(this._list.readUInt8(this._pos++)); } } Parser.prototype._parseUnsubscribe = function() { var packet = this.packet packet.unsubscriptions = [] // Parse message ID if (!this._parseMessageId()) { return } while (this._pos < packet.length) { var topic; // Parse topic topic = this._parseString() if (topic === null) return this.emit('error', new Error('cannot parse topic')) // Push topic to unsubscriptions packet.unsubscriptions.push(topic); } } Parser.prototype._parseUnsuback = function() { if (!this._parseMessageId()) return this.emit('error', new Error('cannot parse message id')) } Parser.prototype._parseMessageId = function() { var packet = this.packet packet.messageId = this._parseNum() if(packet.messageId === null) { this.emit('error', new Error('cannot parse message id')) return false } return true } Parser.prototype._parseString = function(maybeBuffer) { var length = this._parseNum() , result , end = length + this._pos if(length === -1 || end > this._list.length || end > this.packet.length) return null result = this._list.toString('utf8', this._pos, end) this._pos += length return result } Parser.prototype._parseBuffer = function() { var length = this._parseNum() , result , end = length + this._pos if(length === -1 || end > this._list.length || end > this.packet.length) return null result = this._list.slice(this._pos, end) this._pos += length return result } Parser.prototype._parseNum = function() { if(this._list.length - this._pos < 2) return -1 var result = this._list.readUInt16BE(this._pos) this._pos += 2 return result } module.exports = Parser },{"./constants":363,"./packet":366,"bl":257,"events":426,"inherits":312}],368:[function(require,module,exports){ (function (process,global){ 'use strict'; /** * Module dependencies */ /*global setImmediate:true*/ var events = require('events'), Store = require('./store'), eos = require('end-of-stream'), mqttPacket = require('mqtt-packet'), Writable = require('readable-stream').Writable, inherits = require('inherits'), reInterval = require('reinterval'), validations = require('./validations'), setImmediate = global.setImmediate || function (callback) { // works in node v0.8 process.nextTick(callback); }, defaultConnectOptions = { keepalive: 10, reschedulePings: true, protocolId: 'MQTT', protocolVersion: 4, reconnectPeriod: 1000, connectTimeout: 30 * 1000, clean: true }; function defaultId () { return 'mqttjs_' + Math.random().toString(16).substr(2, 8); } function sendPacket (client, packet, cb) { try { var buf = mqttPacket.generate(packet); client.emit('packetsend', packet); if (client.stream.write(buf) && cb) { cb(); } else if (cb) { client.stream.once('drain', cb); } } catch (err) { if (cb) { cb(err); } else { client.emit('error', err); } } } function storeAndSend (client, packet, cb) { client.outgoingStore.put(packet, function storedPacket (err) { if (err) { return cb && cb(err); } sendPacket(client, packet, cb); }); } function nop () {} /** * MqttClient constructor * * @param {Stream} stream - stream * @param {Object} [options] - connection options * (see Connection#connect) */ function MqttClient (streamBuilder, options) { var k, that = this; if (!(this instanceof MqttClient)) { return new MqttClient(streamBuilder, options); } this.options = options || {}; // Defaults for (k in defaultConnectOptions) { if ('undefined' === typeof this.options[k]) { this.options[k] = defaultConnectOptions[k]; } else { this.options[k] = options[k]; } } this.options.clientId = this.options.clientId || defaultId(); this.streamBuilder = streamBuilder; // Inflight message storages this.outgoingStore = this.options.outgoingStore || new Store(); this.incomingStore = this.options.incomingStore || new Store(); // Should QoS zero messages be queued when the connection is broken? this.queueQoSZero = null == this.options.queueQoSZero ? true : this.options.queueQoSZero; // Ping timer, setup in _setupPingTimer this.pingTimer = null; // Is the client connected? this.connected = false; // Are we disconnecting? this.disconnecting = false; // Packet queue this.queue = []; // connack timer this.connackTimer = null; // Reconnect timer this.reconnectTimer = null; // MessageIDs starting with 1 this.nextId = Math.floor(Math.random() * 65535); // Inflight callbacks this.outgoing = {}; // Mark connected on connect this.on('connect', function () { if (this.disconnected) { return; } this.connected = true; var outStore = null; outStore = this.outgoingStore.createStream(); // Control of stored messages outStore.once('readable', function () { function storeDeliver () { var packet = outStore.read(1), cb; if (!packet) { return; } // Avoid unnecesary stream read operations when disconnected if (!that.disconnecting && !that.reconnectTimer && (0 < that.options.reconnectPeriod)) { outStore.read(0); cb = that.outgoing[packet.messageId]; that.outgoing[packet.messageId] = function () { // Ensure that the original callback passed in to publish gets invoked if (cb) { cb(); } // Ensure that the next message will only be read after callback is issued storeDeliver(); }; that._sendPacket(packet); } else if (outStore.destroy) { outStore.destroy(); } } storeDeliver(); }) .on('error', this.emit.bind(this, 'error')); }); // Mark disconnected on stream close this.on('close', function () { this.connected = false; clearTimeout(this.connackTimer); }); // Setup ping timer this.on('connect', this._setupPingTimer); // Send queued packets this.on('connect', function () { var queue = this.queue; function deliver () { var entry = queue.shift(), packet = null; if (!entry) { return; } packet = entry.packet; that._sendPacket( packet, function (err) { if (entry.cb) { entry.cb(err); } deliver(); } ); } deliver(); }); // Clear ping timer this.on('close', function () { if (null !== that.pingTimer) { that.pingTimer.clear(); that.pingTimer = null; } }); // Setup reconnect timer on disconnect this.on('close', this._setupReconnect); events.EventEmitter.call(this); this._setupStream(); } inherits(MqttClient, events.EventEmitter); /** * setup the event handlers in the inner stream. * * @api private */ MqttClient.prototype._setupStream = function () { var connectPacket, that = this, writable = new Writable(), parser = mqttPacket.parser(this.options), completeParse = null, packets = []; this._clearReconnect(); this.stream = this.streamBuilder(this); parser.on('packet', function (packet) { packets.push(packet); }); function process () { var packet = packets.shift(), done = completeParse; if (packet) { that._handlePacket(packet, process); } else { completeParse = null; done(); } } writable._write = function (buf, enc, done) { completeParse = done; parser.parse(buf); process(); }; this.stream.pipe(writable); // Suppress connection errors this.stream.on('error', nop); // Echo stream close eos(this.stream, this.emit.bind(this, 'close')); // Send a connect packet connectPacket = Object.create(this.options); connectPacket.cmd = 'connect'; // avoid message queue sendPacket(this, connectPacket); // Echo connection errors parser.on('error', this.emit.bind(this, 'error')); // many drain listeners are needed for qos 1 callbacks if the connection is intermittent this.stream.setMaxListeners(1000); clearTimeout(this.connackTimer); this.connackTimer = setTimeout(function () { that._cleanUp(true); }, this.options.connectTimeout); }; MqttClient.prototype._handlePacket = function (packet, done) { this.emit('packetreceive', packet); switch (packet.cmd) { case 'publish': this._handlePublish(packet, done); break; case 'puback': case 'pubrec': case 'pubcomp': case 'suback': case 'unsuback': this._handleAck(packet); done(); break; case 'pubrel': this._handlePubrel(packet, done); break; case 'connack': this._handleConnack(packet); done(); break; case 'pingresp': this._handlePingresp(packet); done(); break; default: // do nothing // maybe we should do an error handling // or just log it break; } }; MqttClient.prototype._checkDisconnecting = function (callback) { if (this.disconnecting) { if (callback) { callback(new Error('client disconnecting')); } else { this.emit('error', new Error('client disconnecting')); } } return this.disconnecting; }; /** * publish - publish to * * @param {String} topic - topic to publish to * @param {String, Buffer} message - message to publish * @param {Object} [opts] - publish options, includes: * {Number} qos - qos level to publish on * {Boolean} retain - whether or not to retain the message * @param {Function} [callback] - function(err){} * called when publish succeeds or fails * @returns {MqttClient} this - for chaining * @api public * * @example client.publish('topic', 'message'); * @example * client.publish('topic', 'message', {qos: 1, retain: true}); * @example client.publish('topic', 'message', console.log); */ MqttClient.prototype.publish = function (topic, message, opts, callback) { var packet; // .publish(topic, payload, cb); if ('function' === typeof opts) { callback = opts; opts = null; } // Default opts if (!opts) { opts = {qos: 0, retain: false}; } if (this._checkDisconnecting(callback)) { return this; } packet = { cmd: 'publish', topic: topic, payload: message, qos: opts.qos, retain: opts.retain, messageId: this._nextId() }; switch (opts.qos) { case 1: case 2: // Add to callbacks this.outgoing[packet.messageId] = callback || nop; this._sendPacket(packet); break; default: this._sendPacket(packet, callback); break; } return this; }; /** * subscribe - subscribe to * * @param {String, Array, Object} topic - topic(s) to subscribe to, supports objects in the form {'topic': qos} * @param {Object} [opts] - optional subscription options, includes: * {Number} qos - subscribe qos level * @param {Function} [callback] - function(err, granted){} where: * {Error} err - subscription error (none at the moment!) * {Array} granted - array of {topic: 't', qos: 0} * @returns {MqttClient} this - for chaining * @api public * @example client.subscribe('topic'); * @example client.subscribe('topic', {qos: 1}); * @example client.subscribe({'topic': 0, 'topic2': 1}, console.log); * @example client.subscribe('topic', console.log); */ MqttClient.prototype.subscribe = function () { var packet, args = Array.prototype.slice.call(arguments), subs = [], obj = args.shift(), callback = args.pop() || nop, opts = args.pop(), invalidTopic; if ('string' === typeof obj) { obj = [obj]; } if ('function' !== typeof callback) { opts = callback; callback = nop; } invalidTopic = validations.validateTopics(obj); if ( null !== invalidTopic ) { callback(new Error('Invalid topic ' + invalidTopic)); return this; } if (this._checkDisconnecting(callback)) { return this; } if (!opts) { opts = { qos: 0 }; } if (Array.isArray(obj)) { obj.forEach(function (topic) { subs.push({ topic: topic, qos: opts.qos }); }); } else { Object .keys(obj) .forEach(function (k) { subs.push({ topic: k, qos: obj[k] }); }); } packet = { cmd: 'subscribe', subscriptions: subs, qos: 1, retain: false, dup: false, messageId: this._nextId() }; this.outgoing[packet.messageId] = callback; this._sendPacket(packet); return this; }; /** * unsubscribe - unsubscribe from topic(s) * * @param {String, Array} topic - topics to unsubscribe from * @param {Function} [callback] - callback fired on unsuback * @returns {MqttClient} this - for chaining * @api public * @example client.unsubscribe('topic'); * @example client.unsubscribe('topic', console.log); */ MqttClient.prototype.unsubscribe = function (topic, callback) { var packet = { cmd: 'unsubscribe', qos: 1, messageId: this._nextId() }; callback = callback || nop; if (this._checkDisconnecting(callback)) { return this; } if ('string' === typeof topic) { packet.unsubscriptions = [topic]; } else if ('object' === typeof topic && topic.length) { packet.unsubscriptions = topic; } this.outgoing[packet.messageId] = callback; this._sendPacket(packet); return this; }; /** * end - close connection * * @returns {MqttClient} this - for chaining * @param {Boolean} force - do not wait for all in-flight messages to be acked * @param {Function} cb - called when the client has been closed * * @api public */ MqttClient.prototype.end = function (force, cb) { var that = this; if ('function' === typeof force) { cb = force; force = false; } function closeStores () { that.disconnected = true; that.incomingStore.close(function () { that.outgoingStore.close(cb); }); } function finish () { // defer closesStores of an I/O cycle, // just to make sure things are // ok for websockets that._cleanUp(force, setImmediate.bind(null, closeStores)); } if (this.disconnecting) { return this; } this._clearReconnect(); this.disconnecting = true; if (!force && 0 < Object.keys(this.outgoing).length) { // wait 10ms, just to be sure we received all of it this.once('outgoingEmpty', setTimeout.bind(null, finish, 10)); } else { finish(); } return this; }; /** * _reconnect - implement reconnection * @api privateish */ MqttClient.prototype._reconnect = function () { this.emit('reconnect'); this._setupStream(); }; /** * _setupReconnect - setup reconnect timer */ MqttClient.prototype._setupReconnect = function () { var that = this; if (!that.disconnecting && !that.reconnectTimer && (0 < that.options.reconnectPeriod)) { if (!this.reconnecting) { this.emit('offline'); this.reconnecting = true; } that.reconnectTimer = setInterval(function () { that._reconnect(); }, that.options.reconnectPeriod); } }; /** * _clearReconnect - clear the reconnect timer */ MqttClient.prototype._clearReconnect = function () { if (this.reconnectTimer) { clearInterval(this.reconnectTimer); this.reconnectTimer = null; } }; /** * _cleanUp - clean up on connection end * @api private */ MqttClient.prototype._cleanUp = function (forced, done) { if (done) { this.stream.on('close', done); } if (forced) { this.stream.destroy(); } else { this._sendPacket( { cmd: 'disconnect' }, setImmediate.bind( null, this.stream.end.bind(this.stream) ) ); } if (!this.disconnecting) { this._clearReconnect(); this._setupReconnect(); } if (null !== this.pingTimer) { this.pingTimer.clear(); this.pingTimer = null; } }; /** * _sendPacket - send or queue a packet * @param {String} type - packet type (see `protocol`) * @param {Object} packet - packet options * @param {Function} cb - callback when the packet is sent * @api private */ MqttClient.prototype._sendPacket = function (packet, cb) { if (!this.connected) { if (0 < packet.qos || 'publish' !== packet.cmd || this.queueQoSZero) { this.queue.push({ packet: packet, cb: cb }); } else if (cb) { cb(new Error('No connection to broker')); } return; } // When sending a packet, reschedule the ping timer this._shiftPingInterval(); switch (packet.qos) { case 2: case 1: storeAndSend(this, packet, cb); break; /** * no need of case here since it will be caught by default * and jshint comply that before default it must be a break * anyway it will result in -1 evaluation */ case 0: /* falls through */ default: sendPacket(this, packet, cb); break; } }; /** * _setupPingTimer - setup the ping timer * * @api private */ MqttClient.prototype._setupPingTimer = function () { var that = this; if (!this.pingTimer && this.options.keepalive) { this.pingResp = true; this.pingTimer = reInterval(function () { that._checkPing(); }, this.options.keepalive * 1000); } }; /** * _shiftPingInterval - reschedule the ping interval * * @api private */ MqttClient.prototype._shiftPingInterval = function () { if (this.pingTimer && this.options.keepalive && this.options.reschedulePings) { this.pingTimer.reschedule(this.options.keepalive * 1000); } }; /** * _checkPing - check if a pingresp has come back, and ping the server again * * @api private */ MqttClient.prototype._checkPing = function () { if (this.pingResp) { this.pingResp = false; this._sendPacket({ cmd: 'pingreq' }); } else { // do a forced cleanup since socket will be in bad shape this._cleanUp(true); } }; /** * _handlePingresp - handle a pingresp * * @api private */ MqttClient.prototype._handlePingresp = function () { this.pingResp = true; }; /** * _handleConnack * * @param {Object} packet * @api private */ MqttClient.prototype._handleConnack = function (packet) { var rc = packet.returnCode, // TODO: move to protocol errors = [ '', 'Unacceptable protocol version', 'Identifier rejected', 'Server unavailable', 'Bad username or password', 'Not authorized' ]; clearTimeout(this.connackTimer); if (0 === rc) { this.reconnecting = false; this.emit('connect', packet); } else if (0 < rc) { this.emit('error', new Error('Connection refused: ' + errors[rc])); } }; /** * _handlePublish * * @param {Object} packet * @api private */ /* those late 2 case should be rewrite to comply with coding style: case 1: case 0: // do not wait sending a puback // no callback passed if (1 === qos) { this._sendPacket({ cmd: 'puback', messageId: mid }); } // emit the message event for both qos 1 and 0 this.emit('message', topic, message, packet); this.handleMessage(packet, done); break; default: // do nothing but every switch mus have a default // log or throw an error about unknown qos break; for now i just suppressed the warnings */ MqttClient.prototype._handlePublish = function (packet, done) { var topic = packet.topic.toString(), message = packet.payload, qos = packet.qos, mid = packet.messageId, that = this; switch (qos) { case 2: this.incomingStore.put(packet, function () { that._sendPacket({cmd: 'pubrec', messageId: mid}, done); }); break; case 1: // do not wait sending a puback // no callback passed this._sendPacket({ cmd: 'puback', messageId: mid }); /* falls through */ case 0: // emit the message event for both qos 1 and 0 this.emit('message', topic, message, packet); this.handleMessage(packet, done); break; default: // do nothing // log or throw an error about unknown qos break; } }; /** * Handle messages with backpressure support, one at a time. * Override at will. * * @param Packet packet the packet * @param Function callback call when finished * @api public */ MqttClient.prototype.handleMessage = function (packet, callback) { callback(); }; /** * _handleAck * * @param {Object} packet * @api private */ MqttClient.prototype._handleAck = function (packet) { var mid = packet.messageId, type = packet.cmd, response = null, cb = this.outgoing[mid], that = this; if (!cb) { // Server sent an ack in error, ignore it. return; } // Process switch (type) { case 'pubcomp': // same thing as puback for QoS 2 case 'puback': // Callback - we're done delete this.outgoing[mid]; this.outgoingStore.del(packet, cb); break; case 'pubrec': response = { cmd: 'pubrel', qos: 2, messageId: mid }; this._sendPacket(response); break; case 'suback': delete this.outgoing[mid]; this.outgoingStore.del(packet, function (err, original) { if (err) { // missing packet, what should we do? return that.emit('error', err); } var i, origSubs = original.subscriptions, granted = packet.granted; for (i = 0; i < granted.length; i += 1) { origSubs[i].qos = granted[i]; } cb(null, origSubs); }); break; case 'unsuback': delete this.outgoing[mid]; this.outgoingStore.del(packet, cb); break; default: that.emit('error', new Error('unrecognized packet type')); } if (this.disconnecting && 0 === Object.keys(this.outgoing).length) { this.emit('outgoingEmpty'); } }; /** * _handlePubrel * * @param {Object} packet * @api private */ MqttClient.prototype._handlePubrel = function (packet, callback) { var mid = packet.messageId, that = this; that.incomingStore.get(packet, function (err, pub) { if (err) { return that.emit('error', err); } if ('pubrel' !== pub.cmd) { that.emit('message', pub.topic, pub.payload, pub); that.incomingStore.put(packet); } that._sendPacket({cmd: 'pubcomp', messageId: mid}, callback); }); }; /** * _nextId */ MqttClient.prototype._nextId = function () { var id = this.nextId++; // Ensure 16 bit unsigned int: if (65535 === id) { this.nextId = 1; } return id; }; module.exports = MqttClient; }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./store":373,"./validations":374,"_process":432,"end-of-stream":310,"events":426,"inherits":312,"mqtt-packet":365,"readable-stream":387,"reinterval":388}],369:[function(require,module,exports){ (function (process){ 'use strict'; var MqttClient = require('../client'), url = require('url'), xtend = require('xtend'), protocols = {}, protocolList = []; if ('browser' !== process.title) { protocols.mqtt = require('./tcp'); protocols.tcp = require('./tcp'); protocols.ssl = require('./tls'); protocols.tls = require('./tls'); protocols.mqtts = require('./tls'); } protocols.ws = require('./ws'); protocols.wss = require('./ws'); protocolList = [ 'mqtt', 'mqtts', 'ws', 'wss' ]; /** * Parse the auth attribute and merge username and password in the options object. * * @param {Object} [opts] option object */ function parseAuthOptions (opts) { var matches; if (opts.auth) { matches = opts.auth.match(/^(.+):(.+)$/); if (matches) { opts.username = matches[1]; opts.password = matches[2]; } else { opts.username = opts.auth; } } } /** * connect - connect to an MQTT broker. * * @param {String} [brokerUrl] - url of the broker, optional * @param {Object} opts - see MqttClient#constructor */ function connect (brokerUrl, opts) { if (('object' === typeof brokerUrl) && !opts) { opts = brokerUrl; brokerUrl = null; } opts = opts || {}; if (brokerUrl) { opts = xtend(url.parse(brokerUrl, true), opts); opts.protocol = opts.protocol.replace(/\:$/, ''); } // merge in the auth options if supplied parseAuthOptions(opts); // support clientId passed in the query string of the url if (opts.query && 'string' === typeof opts.query.clientId) { opts.clientId = opts.query.clientId; } if (opts.cert && opts.key) { if (opts.protocol) { if (-1 === ['mqtts', 'wss'].indexOf(opts.protocol)) { /* * jshint and eslint * complains that break from default cannot be reached after throw * it is a foced exit from a control structure * maybe add a check after switch to see if it went through default * and then throw the error */ /*jshint -W027*/ /*eslint no-unreachable:1*/ switch (opts.protocol) { case 'mqtt': opts.protocol = 'mqtts'; break; case 'ws': opts.protocol = 'wss'; break; default: throw new Error('Unknown protocol for secure connection: "' + opts.protocol + '"!'); break; } /*eslint no-unreachable:0*/ /*jshint +W027*/ } } else { // don't know what protocol he want to use, mqtts or wss throw new Error('Missing secure protocol key'); } } if (!protocols[opts.protocol]) { opts.protocol = protocolList.filter(function (key) { return 'function' === typeof protocols[key]; })[0]; } if (false === opts.clean && !opts.clientId) { throw new Error('Missing clientId for unclean clients'); } function wrapper (client) { if (opts.servers) { if (!client._reconnectCount || client._reconnectCount === opts.servers.length) { client._reconnectCount = 0; } opts.host = opts.servers[client._reconnectCount].host; opts.port = opts.servers[client._reconnectCount].port; opts.hostname = opts.host; client._reconnectCount++; } return protocols[opts.protocol](client, opts); } return new MqttClient(wrapper, opts); } module.exports = connect; module.exports.connect = connect; module.exports.MqttClient = MqttClient; }).call(this,require('_process')) },{"../client":368,"./tcp":370,"./tls":371,"./ws":372,"_process":432,"url":450,"xtend":419}],370:[function(require,module,exports){ 'use strict'; var net = require('net'); /* variables port and host can be removed since you have all required information in opts object */ function buildBuilder (client, opts) { var port, host; opts.port = opts.port || 1883; opts.hostname = opts.hostname || opts.host || 'localhost'; port = opts.port; host = opts.hostname; return net.createConnection(port, host); } module.exports = buildBuilder; },{"net":421}],371:[function(require,module,exports){ 'use strict'; var tls = require('tls'); function buildBuilder (mqttClient, opts) { var connection; opts.port = opts.port || 8883; opts.host = opts.hostname || opts.host || 'localhost'; opts.rejectUnauthorized = false !== opts.rejectUnauthorized; connection = tls.connect(opts); /*eslint no-use-before-define: [2, "nofunc"]*/ connection.on('secureConnect', function () { if (opts.rejectUnauthorized && !connection.authorized) { connection.emit('error', new Error('TLS not authorized')); } else { connection.removeListener('error', handleTLSerrors); } }); /* * to comply with strict rules, a function must be * declared before it can be used * so i moved it has to be moved before its first call * later on maybe we can move all of them to the top of the file * for now i just suppressed the warning */ /*jshint latedef:false*/ function handleTLSerrors (err) { // How can I get verify this error is a tls error? if (opts.rejectUnauthorized) { mqttClient.emit('error', err); } // close this connection to match the behaviour of net // otherwise all we get is an error from the connection // and close event doesn't fire. This is a work around // to enable the reconnect code to work the same as with // net.createConnection connection.end(); } /*jshint latedef:false*/ connection.on('error', handleTLSerrors); return connection; } module.exports = buildBuilder; },{"tls":421}],372:[function(require,module,exports){ (function (process){ 'use strict'; var websocket = require('websocket-stream'), _URL = require('url'), wssProperties = [ 'rejectUnauthorized', 'ca', 'cert', 'key', 'pfx', 'passphrase' ]; function buildBuilder (client, opts) { var wsOpt = { protocol: 'mqtt' }, host = opts.hostname || 'localhost', port = String(opts.port || 80), path = opts.path || '/', url = opts.protocol + '://' + host + ':' + port + path; if (('MQIsdp' === opts.protocolId) && (3 === opts.protocolVersion)) { wsOpt.protocol = 'mqttv3.1'; } if ('wss' === opts.protocol) { wssProperties.forEach(function (prop) { if (opts.hasOwnProperty(prop)) { wsOpt[prop] = opts[prop]; } }); } return websocket(url, wsOpt); } function buildBuilderBrowser (mqttClient, opts) { var url, parsed; if ('undefined' !== typeof (document)) { // for Web Workers! P.S: typeof(document) !== undefined may be becoming the faster one these days. parsed = _URL.parse(document.URL); } else { throw new Error('Could not determine host. Specify host manually.'); } if (!opts.protocol) { if ('https:' === parsed.protocol) { opts.protocol = 'wss'; } else { opts.protocol = 'ws'; } } if (!opts.hostname) { opts.hostname = opts.host; } if (!opts.hostname) { opts.hostname = parsed.hostname; if (!opts.port) { opts.port = parsed.port; } } if (!opts.port) { if ('wss' === opts.protocol) { opts.port = 443; } else { opts.port = 80; } } if (!opts.path) { opts.path = '/'; } url = opts.protocol + '://' + opts.hostname + ':' + opts.port + opts.path; return websocket(url, 'mqttv3.1'); } if ('browser' !== process.title) { module.exports = buildBuilder; } else { module.exports = buildBuilderBrowser; } }).call(this,require('_process')) },{"_process":432,"url":450,"websocket-stream":399}],373:[function(require,module,exports){ (function (process){ 'use strict'; var Readable = require('readable-stream').Readable, streamsOpts = { objectMode: true }; /** * In-memory implementation of the message store * This can actually be saved into files. * */ function Store () { if (!(this instanceof Store)) { return new Store(); } this._inflights = {}; } /** * Adds a packet to the store, a packet is * anything that has a messageId property. * */ Store.prototype.put = function (packet, cb) { this._inflights[packet.messageId] = packet; if (cb) { cb(); } return this; }; /** * Creates a stream with all the packets in the store * */ Store.prototype.createStream = function () { var stream = new Readable(streamsOpts), inflights = this._inflights, ids = Object.keys(this._inflights), destroyed = false, i = 0; stream._read = function () { if (!destroyed && i < ids.length) { this.push(inflights[ids[i++]]); } else { this.push(null); } }; stream.destroy = function () { if (destroyed) { return; } var self = this; destroyed = true; process.nextTick(function () { self.emit('close'); }); }; return stream; }; /** * deletes a packet from the store. */ Store.prototype.del = function (packet, cb) { packet = this._inflights[packet.messageId]; if (packet) { delete this._inflights[packet.messageId]; cb(null, packet); } else if (cb) { cb(new Error('missing packet')); } return this; }; /** * get a packet from the store. */ Store.prototype.get = function (packet, cb) { packet = this._inflights[packet.messageId]; if (packet) { cb(null, packet); } else if (cb) { cb(new Error('missing packet')); } return this; }; /** * Close the store */ Store.prototype.close = function (cb) { this._inflights = null; if (cb) { cb(); } }; module.exports = Store; }).call(this,require('_process')) },{"_process":432,"readable-stream":387}],374:[function(require,module,exports){ 'use strict'; /*eslint no-unused-expressions:0*/ /*jshint expr:true*/ /** * Validate a topic to see if it's valid or not. * A topic is valid if it follow below rules: * - Rule #1: If any part of the topic is not `+` or `#`, then it must not contain `+` and '#' * - Rule #2: Part `#` must be located at the end of the mailbox * * @param {String} topic - A topic * @returns {Boolean} If the topic is valid, returns true. Otherwise, returns false. */ function validateTopic (topic) { var parts = topic.split('/'), i = 0; for (i = 0; i < parts.length; i++) { if ('+' === parts[i]) { continue; } if ('#' === parts[i] ) { // for Rule #2 return i === parts.length - 1; } if ( -1 !== parts[i].indexOf('+') || -1 !== parts[i].indexOf('#')) { return false; } } return true; } /** * Validate an array of topics to see if any of them is valid or not * @param {Array} topics - Array of topics * @returns {String} If the topics is valid, returns null. Otherwise, returns the invalid one */ function validateTopics (topics) { for (var i = 0; i < topics.length; i++) { if ( !validateTopic(topics[i]) ) { return topics[i]; } } return null; } module.exports = { validateTopics: validateTopics }; },{}],375:[function(require,module,exports){ var wrappy = require('wrappy') module.exports = wrappy(once) once.proto = once(function () { Object.defineProperty(Function.prototype, 'once', { value: function () { return once(this) }, configurable: true }) }) function once (fn) { var f = function () { if (f.called) return f.value f.called = true return f.value = fn.apply(this, arguments) } f.called = false return f } },{"wrappy":401}],376:[function(require,module,exports){ (function (process){ 'use strict'; if (!process.version || process.version.indexOf('v0.') === 0 || process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { module.exports = nextTick; } else { module.exports = process.nextTick; } function nextTick(fn, arg1, arg2, arg3) { if (typeof fn !== 'function') { throw new TypeError('"callback" argument must be a function'); } var len = arguments.length; var args, i; switch (len) { case 0: case 1: return process.nextTick(fn); case 2: return process.nextTick(function afterTickOne() { fn.call(null, arg1); }); case 3: return process.nextTick(function afterTickTwo() { fn.call(null, arg1, arg2); }); case 4: return process.nextTick(function afterTickThree() { fn.call(null, arg1, arg2, arg3); }); default: args = new Array(len - 1); i = 0; while (i < args.length) { args[i++] = arguments[i]; } return process.nextTick(function afterTick() { fn.apply(null, args); }); } } }).call(this,require('_process')) },{"_process":432}],377:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; // If obj.hasOwnProperty has been overridden, then calling // obj.hasOwnProperty(prop) will break. // See: https://github.com/joyent/node/issues/1707 function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } module.exports = function(qs, sep, eq, options) { sep = sep || '&'; eq = eq || '='; var obj = {}; if (typeof qs !== 'string' || qs.length === 0) { return obj; } var regexp = /\+/g; qs = qs.split(sep); var maxKeys = 1000; if (options && typeof options.maxKeys === 'number') { maxKeys = options.maxKeys; } var len = qs.length; // maxKeys <= 0 means that we should not limit keys count if (maxKeys > 0 && len > maxKeys) { len = maxKeys; } for (var i = 0; i < len; ++i) { var x = qs[i].replace(regexp, '%20'), idx = x.indexOf(eq), kstr, vstr, k, v; if (idx >= 0) { kstr = x.substr(0, idx); vstr = x.substr(idx + 1); } else { kstr = x; vstr = ''; } k = decodeURIComponent(kstr); v = decodeURIComponent(vstr); if (!hasOwnProperty(obj, k)) { obj[k] = v; } else if (Array.isArray(obj[k])) { obj[k].push(v); } else { obj[k] = [obj[k], v]; } } return obj; }; },{}],378:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; var stringifyPrimitive = function(v) { switch (typeof v) { case 'string': return v; case 'boolean': return v ? 'true' : 'false'; case 'number': return isFinite(v) ? v : ''; default: return ''; } }; module.exports = function(obj, sep, eq, name) { sep = sep || '&'; eq = eq || '='; if (obj === null) { obj = undefined; } if (typeof obj === 'object') { return Object.keys(obj).map(function(k) { var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; if (Array.isArray(obj[k])) { return obj[k].map(function(v) { return ks + encodeURIComponent(stringifyPrimitive(v)); }).join(sep); } else { return ks + encodeURIComponent(stringifyPrimitive(obj[k])); } }).join(sep); } if (!name) return ''; return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj)); }; },{}],379:[function(require,module,exports){ 'use strict'; exports.decode = exports.parse = require('./decode'); exports.encode = exports.stringify = require('./encode'); },{"./decode":377,"./encode":378}],380:[function(require,module,exports){ module.exports = require("./lib/_stream_duplex.js") },{"./lib/_stream_duplex.js":381}],381:[function(require,module,exports){ (function (process){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. module.exports = Duplex; /**/ var objectKeys = Object.keys || function (obj) { var keys = []; for (var key in obj) keys.push(key); return keys; } /**/ /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ var Readable = require('./_stream_readable'); var Writable = require('./_stream_writable'); util.inherits(Duplex, Readable); forEach(objectKeys(Writable.prototype), function(method) { if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; }); function Duplex(options) { if (!(this instanceof Duplex)) return new Duplex(options); Readable.call(this, options); Writable.call(this, options); if (options && options.readable === false) this.readable = false; if (options && options.writable === false) this.writable = false; this.allowHalfOpen = true; if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; this.once('end', onend); } // the no-half-open enforcer function onend() { // if we allow half-open state, or if the writable side ended, // then we're ok. if (this.allowHalfOpen || this._writableState.ended) return; // no more data can be written. // But allow more writes to happen in this tick. process.nextTick(this.end.bind(this)); } function forEach (xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } }).call(this,require('_process')) },{"./_stream_readable":383,"./_stream_writable":385,"_process":432,"core-util-is":260,"inherits":312}],382:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. module.exports = PassThrough; var Transform = require('./_stream_transform'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ util.inherits(PassThrough, Transform); function PassThrough(options) { if (!(this instanceof PassThrough)) return new PassThrough(options); Transform.call(this, options); } PassThrough.prototype._transform = function(chunk, encoding, cb) { cb(null, chunk); }; },{"./_stream_transform":384,"core-util-is":260,"inherits":312}],383:[function(require,module,exports){ (function (process){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = Readable; /**/ var isArray = require('isarray'); /**/ /**/ var Buffer = require('buffer').Buffer; /**/ Readable.ReadableState = ReadableState; var EE = require('events').EventEmitter; /**/ if (!EE.listenerCount) EE.listenerCount = function(emitter, type) { return emitter.listeners(type).length; }; /**/ var Stream = require('stream'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ var StringDecoder; util.inherits(Readable, Stream); function ReadableState(options, stream) { options = options || {}; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" var hwm = options.highWaterMark; this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024; // cast to ints. this.highWaterMark = ~~this.highWaterMark; this.buffer = []; this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = false; this.ended = false; this.endEmitted = false; this.reading = false; // In streams that never have any data, and do push(null) right away, // the consumer can miss the 'end' event if they do some I/O before // consuming the stream. So, we don't emit('end') until some reading // happens. this.calledRead = false; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, becuase any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // when piping, we only care about 'readable' events that happen // after read()ing all the bytes and not getting any pushback. this.ranOut = false; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); // legacy this.readable = true; Stream.call(this); } // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function(chunk, encoding) { var state = this._readableState; if (typeof chunk === 'string' && !state.objectMode) { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = new Buffer(chunk, encoding); encoding = ''; } } return readableAddChunk(this, state, chunk, encoding, false); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function(chunk) { var state = this._readableState; return readableAddChunk(this, state, chunk, '', true); }; function readableAddChunk(stream, state, chunk, encoding, addToFront) { var er = chunkInvalid(state, chunk); if (er) { stream.emit('error', er); } else if (chunk === null || chunk === undefined) { state.reading = false; if (!state.ended) onEofChunk(stream, state); } else if (state.objectMode || chunk && chunk.length > 0) { if (state.ended && !addToFront) { var e = new Error('stream.push() after EOF'); stream.emit('error', e); } else if (state.endEmitted && addToFront) { var e = new Error('stream.unshift() after end event'); stream.emit('error', e); } else { if (state.decoder && !addToFront && !encoding) chunk = state.decoder.write(chunk); // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) { state.buffer.unshift(chunk); } else { state.reading = false; state.buffer.push(chunk); } if (state.needReadable) emitReadable(stream); maybeReadMore(stream, state); } } else if (!addToFront) { state.reading = false; } return needMoreData(state); } // if it's past the high water mark, we can push in some more. // Also, if we have no data yet, we can stand some // more bytes. This is to work around cases where hwm=0, // such as the repl. Also, if the push() triggered a // readable event, and the user called read(largeNumber) such that // needReadable was set, then we ought to push more, so that another // 'readable' event will be triggered. function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } // backwards compatibility. Readable.prototype.setEncoding = function(enc) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; }; // Don't raise the hwm > 128MB var MAX_HWM = 0x800000; function roundUpToNextPowerOf2(n) { if (n >= MAX_HWM) { n = MAX_HWM; } else { // Get the next highest power of 2 n--; for (var p = 1; p < 32; p <<= 1) n |= n >> p; n++; } return n; } function howMuchToRead(n, state) { if (state.length === 0 && state.ended) return 0; if (state.objectMode) return n === 0 ? 0 : 1; if (n === null || isNaN(n)) { // only flow one buffer at a time if (state.flowing && state.buffer.length) return state.buffer[0].length; else return state.length; } if (n <= 0) return 0; // If we're asking for more than the target buffer level, // then raise the water mark. Bump up to the next highest // power of 2, to prevent increasing it excessively in tiny // amounts. if (n > state.highWaterMark) state.highWaterMark = roundUpToNextPowerOf2(n); // don't have that much. return null, unless we've ended. if (n > state.length) { if (!state.ended) { state.needReadable = true; return 0; } else return state.length; } return n; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function(n) { var state = this._readableState; state.calledRead = true; var nOrig = n; var ret; if (typeof n !== 'number' || n > 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { ret = null; // In cases where the decoder did not receive enough data // to produce a full chunk, then immediately received an // EOF, state.buffer will contain [, ]. // howMuchToRead will see this and coerce the amount to // read to zero (because it's looking at the length of the // first in state.buffer), and we'll end up here. // // This can only happen via state.decoder -- no other venue // exists for pushing a zero-length chunk into state.buffer // and triggering this behavior. In this case, we return our // remaining data and end the stream, if appropriate. if (state.length > 0 && state.decoder) { ret = fromList(n, state); state.length -= ret.length; } if (state.length === 0) endReadable(this); return ret; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; // if we currently have less than the highWaterMark, then also read some if (state.length - n <= state.highWaterMark) doRead = true; // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) doRead = false; if (doRead) { state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; } // If _read called its callback synchronously, then `reading` // will be false, and we need to re-evaluate how much data we // can return to the user. if (doRead && !state.reading) n = howMuchToRead(nOrig, state); if (n > 0) ret = fromList(n, state); else ret = null; if (ret === null) { state.needReadable = true; n = 0; } state.length -= n; // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (state.length === 0 && !state.ended) state.needReadable = true; // If we happened to read() exactly the remaining amount in the // buffer, and the EOF has been seen at this point, then make sure // that we emit 'end' on the very next tick. if (state.ended && !state.endEmitted && state.length === 0) endReadable(this); return ret; }; function chunkInvalid(state, chunk) { var er = null; if (!Buffer.isBuffer(chunk) && 'string' !== typeof chunk && chunk !== null && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; } function onEofChunk(stream, state) { if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; // if we've ended and we have some data left, then emit // 'readable' now to make sure it gets picked up. if (state.length > 0) emitReadable(stream); else endReadable(stream); } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; state.needReadable = false; if (state.emittedReadable) return; state.emittedReadable = true; if (state.sync) process.nextTick(function() { emitReadable_(stream); }); else emitReadable_(stream); } function emitReadable_(stream) { stream.emit('readable'); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; process.nextTick(function() { maybeReadMore_(stream, state); }); } } function maybeReadMore_(stream, state) { var len = state.length; while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break; else len = state.length; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function(n) { this.emit('error', new Error('not implemented')); }; Readable.prototype.pipe = function(dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : cleanup; if (state.endEmitted) process.nextTick(endFn); else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable) { if (readable !== src) return; cleanup(); } function onend() { dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); function cleanup() { // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', cleanup); // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (!dest._writableState || dest._writableState.needDrain) ondrain(); } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { unpipe(); dest.removeListener('error', onerror); if (EE.listenerCount(dest, 'error') === 0) dest.emit('error', er); } // This is a brutally ugly hack to make sure that our error handler // is attached before any userland ones. NEVER DO THIS. if (!dest._events || !dest._events.error) dest.on('error', onerror); else if (isArray(dest._events.error)) dest._events.error.unshift(onerror); else dest._events.error = [onerror, dest._events.error]; // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { // the handler that waits for readable events after all // the data gets sucked out in flow. // This would be easier to follow with a .once() handler // in flow(), but that is too slow. this.on('readable', pipeOnReadable); state.flowing = true; process.nextTick(function() { flow(src); }); } return dest; }; function pipeOnDrain(src) { return function() { var dest = this; var state = src._readableState; state.awaitDrain--; if (state.awaitDrain === 0) flow(src); }; } function flow(src) { var state = src._readableState; var chunk; state.awaitDrain = 0; function write(dest, i, list) { var written = dest.write(chunk); if (false === written) { state.awaitDrain++; } } while (state.pipesCount && null !== (chunk = src.read())) { if (state.pipesCount === 1) write(state.pipes, 0, null); else forEach(state.pipes, write); src.emit('data', chunk); // if anyone needs a drain, then we have to wait for that. if (state.awaitDrain > 0) return; } // if every destination was unpiped, either before entering this // function, or in the while loop, then stop flowing. // // NB: This is a pretty rare edge case. if (state.pipesCount === 0) { state.flowing = false; // if there were data event listeners added, then switch to old mode. if (EE.listenerCount(src, 'data') > 0) emitDataEvents(src); return; } // at this point, no one needed a drain, so we just ran out of data // on the next readable event, start it over again. state.ranOut = true; } function pipeOnReadable() { if (this._readableState.ranOut) { this._readableState.ranOut = false; flow(this); } } Readable.prototype.unpipe = function(dest) { var state = this._readableState; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; this.removeListener('readable', pipeOnReadable); state.flowing = false; if (dest) dest.emit('unpipe', this); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; this.removeListener('readable', pipeOnReadable); state.flowing = false; for (var i = 0; i < len; i++) dests[i].emit('unpipe', this); return this; } // try to find the right one. var i = indexOf(state.pipes, dest); if (i === -1) return this; state.pipes.splice(i, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function(ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); if (ev === 'data' && !this._readableState.flowing) emitDataEvents(this); if (ev === 'readable' && this.readable) { var state = this._readableState; if (!state.readableListening) { state.readableListening = true; state.emittedReadable = false; state.needReadable = true; if (!state.reading) { this.read(0); } else if (state.length) { emitReadable(this, state); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function() { emitDataEvents(this); this.read(0); this.emit('resume'); }; Readable.prototype.pause = function() { emitDataEvents(this, true); this.emit('pause'); }; function emitDataEvents(stream, startPaused) { var state = stream._readableState; if (state.flowing) { // https://github.com/isaacs/readable-stream/issues/16 throw new Error('Cannot switch to old mode now.'); } var paused = startPaused || false; var readable = false; // convert to an old-style stream. stream.readable = true; stream.pipe = Stream.prototype.pipe; stream.on = stream.addListener = Stream.prototype.on; stream.on('readable', function() { readable = true; var c; while (!paused && (null !== (c = stream.read()))) stream.emit('data', c); if (c === null) { readable = false; stream._readableState.needReadable = true; } }); stream.pause = function() { paused = true; this.emit('pause'); }; stream.resume = function() { paused = false; if (readable) process.nextTick(function() { stream.emit('readable'); }); else this.read(0); this.emit('resume'); }; // now make it start, just in case it hadn't already. stream.emit('readable'); } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function(stream) { var state = this._readableState; var paused = false; var self = this; stream.on('end', function() { if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) self.push(chunk); } self.push(null); }); stream.on('data', function(chunk) { if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode //if (state.objectMode && util.isNullOrUndefined(chunk)) if (state.objectMode && (chunk === null || chunk === undefined)) return; else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = self.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (typeof stream[i] === 'function' && typeof this[i] === 'undefined') { this[i] = function(method) { return function() { return stream[method].apply(stream, arguments); }}(i); } } // proxy certain important events. var events = ['error', 'close', 'destroy', 'pause', 'resume']; forEach(events, function(ev) { stream.on(ev, self.emit.bind(self, ev)); }); // when we try to consume some more bytes, simply unpause the // underlying stream. self._read = function(n) { if (paused) { paused = false; stream.resume(); } }; return self; }; // exposed for testing purposes only. Readable._fromList = fromList; // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. function fromList(n, state) { var list = state.buffer; var length = state.length; var stringMode = !!state.decoder; var objectMode = !!state.objectMode; var ret; // nothing in the list, definitely empty. if (list.length === 0) return null; if (length === 0) ret = null; else if (objectMode) ret = list.shift(); else if (!n || n >= length) { // read it all, truncate the array. if (stringMode) ret = list.join(''); else ret = Buffer.concat(list, length); list.length = 0; } else { // read just some of it. if (n < list[0].length) { // just take a part of the first list item. // slice is the same for buffers and strings. var buf = list[0]; ret = buf.slice(0, n); list[0] = buf.slice(n); } else if (n === list[0].length) { // first list is a perfect match ret = list.shift(); } else { // complex case. // we have enough to cover it, but it spans past the first buffer. if (stringMode) ret = ''; else ret = new Buffer(n); var c = 0; for (var i = 0, l = list.length; i < l && c < n; i++) { var buf = list[0]; var cpy = Math.min(n - c, buf.length); if (stringMode) ret += buf.slice(0, cpy); else buf.copy(ret, c, 0, cpy); if (cpy < buf.length) list[0] = buf.slice(cpy); else list.shift(); c += cpy; } } } return ret; } function endReadable(stream) { var state = stream._readableState; // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. if (state.length > 0) throw new Error('endReadable called on non-empty stream'); if (!state.endEmitted && state.calledRead) { state.ended = true; process.nextTick(function() { // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); } }); } } function forEach (xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } function indexOf (xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } }).call(this,require('_process')) },{"_process":432,"buffer":424,"core-util-is":260,"events":426,"inherits":312,"isarray":386,"stream":448,"string_decoder/":390}],384:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. module.exports = Transform; var Duplex = require('./_stream_duplex'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ util.inherits(Transform, Duplex); function TransformState(options, stream) { this.afterTransform = function(er, data) { return afterTransform(stream, er, data); }; this.needTransform = false; this.transforming = false; this.writecb = null; this.writechunk = null; } function afterTransform(stream, er, data) { var ts = stream._transformState; ts.transforming = false; var cb = ts.writecb; if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); ts.writechunk = null; ts.writecb = null; if (data !== null && data !== undefined) stream.push(data); if (cb) cb(er); var rs = stream._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { stream._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); var ts = this._transformState = new TransformState(options, this); // when the writable side finishes, then flush out anything remaining. var stream = this; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; this.once('finish', function() { if ('function' === typeof this._flush) this._flush(function(er) { done(stream, er); }); else done(stream); }); } Transform.prototype.push = function(chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function(chunk, encoding, cb) { throw new Error('not implemented'); }; Transform.prototype._write = function(chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function(n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; function done(stream, er) { if (er) return stream.emit('error', er); // if there's nothing in the write buffer, then that means // that nothing more will ever be provided var ws = stream._writableState; var rs = stream._readableState; var ts = stream._transformState; if (ws.length) throw new Error('calling transform done when ws.length != 0'); if (ts.transforming) throw new Error('calling transform done when still transforming'); return stream.push(null); } },{"./_stream_duplex":381,"core-util-is":260,"inherits":312}],385:[function(require,module,exports){ (function (process){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. // A bit simpler than readable streams. // Implement an async ._write(chunk, cb), and it'll handle all // the drain event emission and buffering. module.exports = Writable; /**/ var Buffer = require('buffer').Buffer; /**/ Writable.WritableState = WritableState; /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ var Stream = require('stream'); util.inherits(Writable, Stream); function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; } function WritableState(options, stream) { options = options || {}; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() var hwm = options.highWaterMark; this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; // cast to ints. this.highWaterMark = ~~this.highWaterMark; this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, becuase any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function(er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.buffer = []; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; } function Writable(options) { var Duplex = require('./_stream_duplex'); // Writable ctor is applied to Duplexes, though they're not // instanceof Writable, they're instanceof Readable. if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options); this._writableState = new WritableState(options, this); // legacy. this.writable = true; Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function() { this.emit('error', new Error('Cannot pipe. Not readable.')); }; function writeAfterEnd(stream, state, cb) { var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb stream.emit('error', er); process.nextTick(function() { cb(er); }); } // If we get something that is not a buffer, string, null, or undefined, // and we're not in objectMode, then that's an error. // Otherwise stream chunks are all considered to be of length=1, and the // watermarks determine how many objects to keep in the buffer, rather than // how many bytes or characters. function validChunk(stream, state, chunk, cb) { var valid = true; if (!Buffer.isBuffer(chunk) && 'string' !== typeof chunk && chunk !== null && chunk !== undefined && !state.objectMode) { var er = new TypeError('Invalid non-string/buffer chunk'); stream.emit('error', er); process.nextTick(function() { cb(er); }); valid = false; } return valid; } Writable.prototype.write = function(chunk, encoding, cb) { var state = this._writableState; var ret = false; if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (Buffer.isBuffer(chunk)) encoding = 'buffer'; else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = function() {}; if (state.ended) writeAfterEnd(this, state, cb); else if (validChunk(this, state, chunk, cb)) ret = writeOrBuffer(this, state, chunk, encoding, cb); return ret; }; function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = new Buffer(chunk, encoding); } return chunk; } // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, chunk, encoding, cb) { chunk = decodeChunk(state, chunk, encoding); if (Buffer.isBuffer(chunk)) encoding = 'buffer'; var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing) state.buffer.push(new WriteReq(chunk, encoding, cb)); else doWrite(stream, state, len, chunk, encoding, cb); return ret; } function doWrite(stream, state, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { if (sync) process.nextTick(function() { cb(er); }); else cb(er); stream._writableState.errorEmitted = true; stream.emit('error', er); } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb); else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(stream, state); if (!finished && !state.bufferProcessing && state.buffer.length) clearBuffer(stream, state); if (sync) { process.nextTick(function() { afterWrite(stream, state, finished, cb); }); } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); cb(); if (finished) finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; for (var c = 0; c < state.buffer.length; c++) { var entry = state.buffer[c]; var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, len, chunk, encoding, cb); // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { c++; break; } } state.bufferProcessing = false; if (c < state.buffer.length) state.buffer = state.buffer.slice(c); else state.buffer.length = 0; } Writable.prototype._write = function(chunk, encoding, cb) { cb(new Error('not implemented')); }; Writable.prototype.end = function(chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (typeof chunk !== 'undefined' && chunk !== null) this.write(chunk, encoding); // ignore unnecessary end() calls. if (!state.ending && !state.finished) endWritable(this, state, cb); }; function needFinish(stream, state) { return (state.ending && state.length === 0 && !state.finished && !state.writing); } function finishMaybe(stream, state) { var need = needFinish(stream, state); if (need) { state.finished = true; stream.emit('finish'); } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) process.nextTick(cb); else stream.once('finish', cb); } state.ended = true; } }).call(this,require('_process')) },{"./_stream_duplex":381,"_process":432,"buffer":424,"core-util-is":260,"inherits":312,"stream":448}],386:[function(require,module,exports){ module.exports = Array.isArray || function (arr) { return Object.prototype.toString.call(arr) == '[object Array]'; }; },{}],387:[function(require,module,exports){ (function (process){ var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = Stream; exports.Readable = exports; exports.Writable = require('./lib/_stream_writable.js'); exports.Duplex = require('./lib/_stream_duplex.js'); exports.Transform = require('./lib/_stream_transform.js'); exports.PassThrough = require('./lib/_stream_passthrough.js'); if (!process.browser && process.env.READABLE_STREAM === 'disable') { module.exports = require('stream'); } }).call(this,require('_process')) },{"./lib/_stream_duplex.js":381,"./lib/_stream_passthrough.js":382,"./lib/_stream_readable.js":383,"./lib/_stream_transform.js":384,"./lib/_stream_writable.js":385,"_process":432,"stream":448}],388:[function(require,module,exports){ 'use strict' function ReInterval (callback, interval, args) { var self = this; this._callback = callback; this._args = args; this._interval = setInterval(callback, interval, this._args); this.reschedule = function (interval) { // if no interval entered, use the interval passed in on creation if (!interval) interval = self._interval; if (self._interval) clearInterval(self._interval); self._interval = setInterval(self._callback, interval, self._args); }; this.clear = function () { if (self._interval) { clearInterval(self._interval); self._interval = undefined; } }; this.destroy = function () { if (self._interval) { clearInterval(self._interval); } self._callback = undefined; self._interval = undefined; self._args = undefined; }; } function reInterval () { if (typeof arguments[0] !== 'function') throw new Error('callback needed'); if (typeof arguments[1] !== 'number') throw new Error('interval needed'); var args; if (arguments.length > 0) { args = new Array(arguments.length - 2); for (var i = 0; i < args.length; i++) { args[i] = arguments[i + 2]; } } return new ReInterval(arguments[0], arguments[1], args); } module.exports = reInterval; },{}],389:[function(require,module,exports){ module.exports = shift function shift (stream) { var rs = stream._readableState if (!rs) return null return rs.objectMode ? stream.read() : stream.read(getStateLength(rs)) } function getStateLength (state) { if (state.buffer.length) { // Since node 6.3.0 state.buffer is a BufferList not an array if (state.buffer.head) { return state.buffer.head.data.length } return state.buffer[0].length } return state.length } },{}],390:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var Buffer = require('buffer').Buffer; var isBufferEncoding = Buffer.isEncoding || function(encoding) { switch (encoding && encoding.toLowerCase()) { case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true; default: return false; } } function assertEncoding(encoding) { if (encoding && !isBufferEncoding(encoding)) { throw new Error('Unknown encoding: ' + encoding); } } // StringDecoder provides an interface for efficiently splitting a series of // buffers into a series of JS strings without breaking apart multi-byte // characters. CESU-8 is handled as part of the UTF-8 encoding. // // @TODO Handling all encodings inside a single object makes it very difficult // to reason about this code, so it should be split up in the future. // @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code // points as used by CESU-8. var StringDecoder = exports.StringDecoder = function(encoding) { this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, ''); assertEncoding(encoding); switch (this.encoding) { case 'utf8': // CESU-8 represents each of Surrogate Pair by 3-bytes this.surrogateSize = 3; break; case 'ucs2': case 'utf16le': // UTF-16 represents each of Surrogate Pair by 2-bytes this.surrogateSize = 2; this.detectIncompleteChar = utf16DetectIncompleteChar; break; case 'base64': // Base-64 stores 3 bytes in 4 chars, and pads the remainder. this.surrogateSize = 3; this.detectIncompleteChar = base64DetectIncompleteChar; break; default: this.write = passThroughWrite; return; } // Enough space to store all bytes of a single character. UTF-8 needs 4 // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate). this.charBuffer = new Buffer(6); // Number of bytes received for the current incomplete multi-byte character. this.charReceived = 0; // Number of bytes expected for the current incomplete multi-byte character. this.charLength = 0; }; // write decodes the given buffer and returns it as JS string that is // guaranteed to not contain any partial multi-byte characters. Any partial // character found at the end of the buffer is buffered up, and will be // returned when calling write again with the remaining bytes. // // Note: Converting a Buffer containing an orphan surrogate to a String // currently works, but converting a String to a Buffer (via `new Buffer`, or // Buffer#write) will replace incomplete surrogates with the unicode // replacement character. See https://codereview.chromium.org/121173009/ . StringDecoder.prototype.write = function(buffer) { var charStr = ''; // if our last write ended with an incomplete multibyte character while (this.charLength) { // determine how many remaining bytes this buffer has to offer for this char var available = (buffer.length >= this.charLength - this.charReceived) ? this.charLength - this.charReceived : buffer.length; // add the new bytes to the char buffer buffer.copy(this.charBuffer, this.charReceived, 0, available); this.charReceived += available; if (this.charReceived < this.charLength) { // still not enough chars in this buffer? wait for more ... return ''; } // remove bytes belonging to the current character from the buffer buffer = buffer.slice(available, buffer.length); // get the character that was split charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding); // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character var charCode = charStr.charCodeAt(charStr.length - 1); if (charCode >= 0xD800 && charCode <= 0xDBFF) { this.charLength += this.surrogateSize; charStr = ''; continue; } this.charReceived = this.charLength = 0; // if there are no more bytes in this buffer, just emit our char if (buffer.length === 0) { return charStr; } break; } // determine and set charLength / charReceived this.detectIncompleteChar(buffer); var end = buffer.length; if (this.charLength) { // buffer the incomplete character bytes we got buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end); end -= this.charReceived; } charStr += buffer.toString(this.encoding, 0, end); var end = charStr.length - 1; var charCode = charStr.charCodeAt(end); // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character if (charCode >= 0xD800 && charCode <= 0xDBFF) { var size = this.surrogateSize; this.charLength += size; this.charReceived += size; this.charBuffer.copy(this.charBuffer, size, 0, size); buffer.copy(this.charBuffer, 0, 0, size); return charStr.substring(0, end); } // or just emit the charStr return charStr; }; // detectIncompleteChar determines if there is an incomplete UTF-8 character at // the end of the given buffer. If so, it sets this.charLength to the byte // length that character, and sets this.charReceived to the number of bytes // that are available for this character. StringDecoder.prototype.detectIncompleteChar = function(buffer) { // determine how many bytes we have to check at the end of this buffer var i = (buffer.length >= 3) ? 3 : buffer.length; // Figure out if one of the last i bytes of our buffer announces an // incomplete char. for (; i > 0; i--) { var c = buffer[buffer.length - i]; // See http://en.wikipedia.org/wiki/UTF-8#Description // 110XXXXX if (i == 1 && c >> 5 == 0x06) { this.charLength = 2; break; } // 1110XXXX if (i <= 2 && c >> 4 == 0x0E) { this.charLength = 3; break; } // 11110XXX if (i <= 3 && c >> 3 == 0x1E) { this.charLength = 4; break; } } this.charReceived = i; }; StringDecoder.prototype.end = function(buffer) { var res = ''; if (buffer && buffer.length) res = this.write(buffer); if (this.charReceived) { var cr = this.charReceived; var buf = this.charBuffer; var enc = this.encoding; res += buf.slice(0, cr).toString(enc); } return res; }; function passThroughWrite(buffer) { return buffer.toString(this.encoding); } function utf16DetectIncompleteChar(buffer) { this.charReceived = buffer.length % 2; this.charLength = this.charReceived ? 2 : 0; } function base64DetectIncompleteChar(buffer) { this.charReceived = buffer.length % 3; this.charLength = this.charReceived ? 3 : 0; } },{"buffer":424}],391:[function(require,module,exports){ arguments[4][303][0].apply(exports,arguments) },{"./_stream_readable":392,"./_stream_writable":394,"core-util-is":260,"dup":303,"inherits":312,"process-nextick-args":376}],392:[function(require,module,exports){ (function (process){ 'use strict'; module.exports = Readable; /**/ var processNextTick = require('process-nextick-args'); /**/ /**/ var isArray = require('isarray'); /**/ /**/ var Buffer = require('buffer').Buffer; /**/ Readable.ReadableState = ReadableState; var EE = require('events'); /**/ var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; }; /**/ /**/ var Stream; (function () { try { Stream = require('st' + 'ream'); } catch (_) {} finally { if (!Stream) Stream = require('events').EventEmitter; } })(); /**/ var Buffer = require('buffer').Buffer; /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ /**/ var debugUtil = require('util'); var debug = undefined; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); } else { debug = function () {}; } /**/ var StringDecoder; util.inherits(Readable, Stream); var Duplex; function ReadableState(options, stream) { Duplex = Duplex || require('./_stream_duplex'); options = options || {}; // object stream flag. Used to make read(n) ignore n and to // make all the buffer merging and length checks go away this.objectMode = !!options.objectMode; if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer // Note: 0 is a valid value, means "don't call _read preemptively ever" var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; // cast to ints. this.highWaterMark = ~ ~this.highWaterMark; this.buffer = []; this.length = 0; this.pipes = null; this.pipesCount = 0; this.flowing = null; this.ended = false; this.endEmitted = false; this.reading = false; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // whenever we return null, then we set a flag to say // that we're awaiting a 'readable' event emission. this.needReadable = false; this.emittedReadable = false; this.readableListening = false; this.resumeScheduled = false; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // when piping, we only care about 'readable' events that happen // after read()ing all the bytes and not getting any pushback. this.ranOut = false; // the number of writers that are awaiting a drain event in .pipe()s this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled this.readingMore = false; this.decoder = null; this.encoding = null; if (options.encoding) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } var Duplex; function Readable(options) { Duplex = Duplex || require('./_stream_duplex'); if (!(this instanceof Readable)) return new Readable(options); this._readableState = new ReadableState(options, this); // legacy this.readable = true; if (options && typeof options.read === 'function') this._read = options.read; Stream.call(this); } // Manually shove something into the read() buffer. // This returns true if the highWaterMark has not been hit yet, // similar to how Writable.write() returns true if you should // write() some more. Readable.prototype.push = function (chunk, encoding) { var state = this._readableState; if (!state.objectMode && typeof chunk === 'string') { encoding = encoding || state.defaultEncoding; if (encoding !== state.encoding) { chunk = new Buffer(chunk, encoding); encoding = ''; } } return readableAddChunk(this, state, chunk, encoding, false); }; // Unshift should *always* be something directly out of read() Readable.prototype.unshift = function (chunk) { var state = this._readableState; return readableAddChunk(this, state, chunk, '', true); }; Readable.prototype.isPaused = function () { return this._readableState.flowing === false; }; function readableAddChunk(stream, state, chunk, encoding, addToFront) { var er = chunkInvalid(state, chunk); if (er) { stream.emit('error', er); } else if (chunk === null) { state.reading = false; onEofChunk(stream, state); } else if (state.objectMode || chunk && chunk.length > 0) { if (state.ended && !addToFront) { var e = new Error('stream.push() after EOF'); stream.emit('error', e); } else if (state.endEmitted && addToFront) { var e = new Error('stream.unshift() after end event'); stream.emit('error', e); } else { var skipAdd; if (state.decoder && !addToFront && !encoding) { chunk = state.decoder.write(chunk); skipAdd = !state.objectMode && chunk.length === 0; } if (!addToFront) state.reading = false; // Don't add to the buffer if we've decoded to an empty string chunk and // we're not in object mode if (!skipAdd) { // if we want the data now, just emit it. if (state.flowing && state.length === 0 && !state.sync) { stream.emit('data', chunk); stream.read(0); } else { // update the buffer info. state.length += state.objectMode ? 1 : chunk.length; if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); if (state.needReadable) emitReadable(stream); } } maybeReadMore(stream, state); } } else if (!addToFront) { state.reading = false; } return needMoreData(state); } // if it's past the high water mark, we can push in some more. // Also, if we have no data yet, we can stand some // more bytes. This is to work around cases where hwm=0, // such as the repl. Also, if the push() triggered a // readable event, and the user called read(largeNumber) such that // needReadable was set, then we ought to push more, so that another // 'readable' event will be triggered. function needMoreData(state) { return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); } // backwards compatibility. Readable.prototype.setEncoding = function (enc) { if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; }; // Don't raise the hwm > 8MB var MAX_HWM = 0x800000; function computeNewHighWaterMark(n) { if (n >= MAX_HWM) { n = MAX_HWM; } else { // Get the next highest power of 2 n--; n |= n >>> 1; n |= n >>> 2; n |= n >>> 4; n |= n >>> 8; n |= n >>> 16; n++; } return n; } function howMuchToRead(n, state) { if (state.length === 0 && state.ended) return 0; if (state.objectMode) return n === 0 ? 0 : 1; if (n === null || isNaN(n)) { // only flow one buffer at a time if (state.flowing && state.buffer.length) return state.buffer[0].length;else return state.length; } if (n <= 0) return 0; // If we're asking for more than the target buffer level, // then raise the water mark. Bump up to the next highest // power of 2, to prevent increasing it excessively in tiny // amounts. if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); // don't have that much. return null, unless we've ended. if (n > state.length) { if (!state.ended) { state.needReadable = true; return 0; } else { return state.length; } } return n; } // you can override either this method, or the async _read(n) below. Readable.prototype.read = function (n) { debug('read', n); var state = this._readableState; var nOrig = n; if (typeof n !== 'number' || n > 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we // already have a bunch of data in the buffer, then just trigger // the 'readable' event and move on. if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { debug('read: emitReadable', state.length, state.ended); if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); return null; } n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. if (n === 0 && state.ended) { if (state.length === 0) endReadable(this); return null; } // All the actual chunk generation logic needs to be // *below* the call to _read. The reason is that in certain // synthetic stream cases, such as passthrough streams, _read // may be a completely synchronous operation which may change // the state of the read buffer, providing enough data when // before there was *not* enough. // // So, the steps are: // 1. Figure out what the state of things will be after we do // a read from the buffer. // // 2. If that resulting state will trigger a _read, then call _read. // Note that this may be asynchronous, or synchronous. Yes, it is // deeply ugly to write APIs this way, but that still doesn't mean // that the Readable class should behave improperly, as streams are // designed to be sync/async agnostic. // Take note if the _read call is sync or async (ie, if the read call // has returned yet), so that we know whether or not it's safe to emit // 'readable' etc. // // 3. Actually pull the requested chunks out of the buffer and return. // if we need a readable event, then we need to do some reading. var doRead = state.needReadable; debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some if (state.length === 0 || state.length - n < state.highWaterMark) { doRead = true; debug('length less than watermark', doRead); } // however, if we've ended, then there's no point, and if we're already // reading, then it's unnecessary. if (state.ended || state.reading) { doRead = false; debug('reading or ended', doRead); } if (doRead) { debug('do read'); state.reading = true; state.sync = true; // if the length is currently zero, then we *need* a readable event. if (state.length === 0) state.needReadable = true; // call internal read method this._read(state.highWaterMark); state.sync = false; } // If _read pushed data synchronously, then `reading` will be false, // and we need to re-evaluate how much data we can return to the user. if (doRead && !state.reading) n = howMuchToRead(nOrig, state); var ret; if (n > 0) ret = fromList(n, state);else ret = null; if (ret === null) { state.needReadable = true; n = 0; } state.length -= n; // If we have nothing in the buffer, then we want to know // as soon as we *do* get something into the buffer. if (state.length === 0 && !state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. if (nOrig !== n && state.ended && state.length === 0) endReadable(this); if (ret !== null) this.emit('data', ret); return ret; }; function chunkInvalid(state, chunk) { var er = null; if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { er = new TypeError('Invalid non-string/buffer chunk'); } return er; } function onEofChunk(stream, state) { if (state.ended) return; if (state.decoder) { var chunk = state.decoder.end(); if (chunk && chunk.length) { state.buffer.push(chunk); state.length += state.objectMode ? 1 : chunk.length; } } state.ended = true; // emit 'readable' now to make sure it gets picked up. emitReadable(stream); } // Don't emit readable right away in sync mode, because this can trigger // another read() call => stack overflow. This way, it might trigger // a nextTick recursion warning, but that's not so bad. function emitReadable(stream) { var state = stream._readableState; state.needReadable = false; if (!state.emittedReadable) { debug('emitReadable', state.flowing); state.emittedReadable = true; if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream); } } function emitReadable_(stream) { debug('emit readable'); stream.emit('readable'); flow(stream); } // at this point, the user has presumably seen the 'readable' event, // and called read() to consume some data. that may have triggered // in turn another _read(n) call, in which case reading = true if // it's in progress. // However, if we're not ended, or reading, and the length < hwm, // then go ahead and try to read some more preemptively. function maybeReadMore(stream, state) { if (!state.readingMore) { state.readingMore = true; processNextTick(maybeReadMore_, stream, state); } } function maybeReadMore_(stream, state) { var len = state.length; while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { debug('maybeReadMore read 0'); stream.read(0); if (len === state.length) // didn't get any data, stop spinning. break;else len = state.length; } state.readingMore = false; } // abstract method. to be overridden in specific implementation classes. // call cb(er, data) where data is <= n in length. // for virtual (non-string, non-buffer) streams, "length" is somewhat // arbitrary, and perhaps not very meaningful. Readable.prototype._read = function (n) { this.emit('error', new Error('not implemented')); }; Readable.prototype.pipe = function (dest, pipeOpts) { var src = this; var state = this._readableState; switch (state.pipesCount) { case 0: state.pipes = dest; break; case 1: state.pipes = [state.pipes, dest]; break; default: state.pipes.push(dest); break; } state.pipesCount += 1; debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; var endFn = doEnd ? onend : cleanup; if (state.endEmitted) processNextTick(endFn);else src.once('end', endFn); dest.on('unpipe', onunpipe); function onunpipe(readable) { debug('onunpipe'); if (readable === src) { cleanup(); } } function onend() { debug('onend'); dest.end(); } // when the dest drains, it reduces the awaitDrain counter // on the source. This would be more elegant with a .once() // handler in flow(), but adding and removing repeatedly is // too slow. var ondrain = pipeOnDrain(src); dest.on('drain', ondrain); var cleanedUp = false; function cleanup() { debug('cleanup'); // cleanup event handlers once the pipe is broken dest.removeListener('close', onclose); dest.removeListener('finish', onfinish); dest.removeListener('drain', ondrain); dest.removeListener('error', onerror); dest.removeListener('unpipe', onunpipe); src.removeListener('end', onend); src.removeListener('end', cleanup); src.removeListener('data', ondata); cleanedUp = true; // if the reader is waiting for a drain event from this // specific writer, then it would cause it to never start // flowing again. // So, if this is awaiting a drain, then we just call it now. // If we don't know, then assume that we are waiting for one. if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); } src.on('data', ondata); function ondata(chunk) { debug('ondata'); var ret = dest.write(chunk); if (false === ret) { // If the user unpiped during `dest.write()`, it is possible // to get stuck in a permanently paused state if that write // also returned false. if (state.pipesCount === 1 && state.pipes[0] === dest && src.listenerCount('data') === 1 && !cleanedUp) { debug('false write response, pause', src._readableState.awaitDrain); src._readableState.awaitDrain++; } src.pause(); } } // if the dest has an error, then stop piping into it. // however, don't suppress the throwing behavior for this. function onerror(er) { debug('onerror', er); unpipe(); dest.removeListener('error', onerror); if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); } // This is a brutally ugly hack to make sure that our error handler // is attached before any userland ones. NEVER DO THIS. if (!dest._events || !dest._events.error) dest.on('error', onerror);else if (isArray(dest._events.error)) dest._events.error.unshift(onerror);else dest._events.error = [onerror, dest._events.error]; // Both close and finish should trigger unpipe, but only once. function onclose() { dest.removeListener('finish', onfinish); unpipe(); } dest.once('close', onclose); function onfinish() { debug('onfinish'); dest.removeListener('close', onclose); unpipe(); } dest.once('finish', onfinish); function unpipe() { debug('unpipe'); src.unpipe(dest); } // tell the dest that it's being piped to dest.emit('pipe', src); // start the flow if it hasn't been started already. if (!state.flowing) { debug('pipe resume'); src.resume(); } return dest; }; function pipeOnDrain(src) { return function () { var state = src._readableState; debug('pipeOnDrain', state.awaitDrain); if (state.awaitDrain) state.awaitDrain--; if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { state.flowing = true; flow(src); } }; } Readable.prototype.unpipe = function (dest) { var state = this._readableState; // if we're not piping anywhere, then do nothing. if (state.pipesCount === 0) return this; // just one destination. most common case. if (state.pipesCount === 1) { // passed in one, but it's not the right one. if (dest && dest !== state.pipes) return this; if (!dest) dest = state.pipes; // got a match. state.pipes = null; state.pipesCount = 0; state.flowing = false; if (dest) dest.emit('unpipe', this); return this; } // slow case. multiple pipe destinations. if (!dest) { // remove all. var dests = state.pipes; var len = state.pipesCount; state.pipes = null; state.pipesCount = 0; state.flowing = false; for (var _i = 0; _i < len; _i++) { dests[_i].emit('unpipe', this); }return this; } // try to find the right one. var i = indexOf(state.pipes, dest); if (i === -1) return this; state.pipes.splice(i, 1); state.pipesCount -= 1; if (state.pipesCount === 1) state.pipes = state.pipes[0]; dest.emit('unpipe', this); return this; }; // set up data events if they are asked for // Ensure readable listeners eventually get something Readable.prototype.on = function (ev, fn) { var res = Stream.prototype.on.call(this, ev, fn); // If listening to data, and it has not explicitly been paused, // then call resume to start the flow of data on the next tick. if (ev === 'data' && false !== this._readableState.flowing) { this.resume(); } if (ev === 'readable' && !this._readableState.endEmitted) { var state = this._readableState; if (!state.readableListening) { state.readableListening = true; state.emittedReadable = false; state.needReadable = true; if (!state.reading) { processNextTick(nReadingNextTick, this); } else if (state.length) { emitReadable(this, state); } } } return res; }; Readable.prototype.addListener = Readable.prototype.on; function nReadingNextTick(self) { debug('readable nexttick read 0'); self.read(0); } // pause() and resume() are remnants of the legacy readable stream API // If the user uses them, then switch into old mode. Readable.prototype.resume = function () { var state = this._readableState; if (!state.flowing) { debug('resume'); state.flowing = true; resume(this, state); } return this; }; function resume(stream, state) { if (!state.resumeScheduled) { state.resumeScheduled = true; processNextTick(resume_, stream, state); } } function resume_(stream, state) { if (!state.reading) { debug('resume read 0'); stream.read(0); } state.resumeScheduled = false; stream.emit('resume'); flow(stream); if (state.flowing && !state.reading) stream.read(0); } Readable.prototype.pause = function () { debug('call pause flowing=%j', this._readableState.flowing); if (false !== this._readableState.flowing) { debug('pause'); this._readableState.flowing = false; this.emit('pause'); } return this; }; function flow(stream) { var state = stream._readableState; debug('flow', state.flowing); if (state.flowing) { do { var chunk = stream.read(); } while (null !== chunk && state.flowing); } } // wrap an old-style stream as the async data source. // This is *not* part of the readable stream interface. // It is an ugly unfortunate mess of history. Readable.prototype.wrap = function (stream) { var state = this._readableState; var paused = false; var self = this; stream.on('end', function () { debug('wrapped end'); if (state.decoder && !state.ended) { var chunk = state.decoder.end(); if (chunk && chunk.length) self.push(chunk); } self.push(null); }); stream.on('data', function (chunk) { debug('wrapped data'); if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; var ret = self.push(chunk); if (!ret) { paused = true; stream.pause(); } }); // proxy all the other methods. // important when wrapping filters and duplexes. for (var i in stream) { if (this[i] === undefined && typeof stream[i] === 'function') { this[i] = function (method) { return function () { return stream[method].apply(stream, arguments); }; }(i); } } // proxy certain important events. var events = ['error', 'close', 'destroy', 'pause', 'resume']; forEach(events, function (ev) { stream.on(ev, self.emit.bind(self, ev)); }); // when we try to consume some more bytes, simply unpause the // underlying stream. self._read = function (n) { debug('wrapped _read', n); if (paused) { paused = false; stream.resume(); } }; return self; }; // exposed for testing purposes only. Readable._fromList = fromList; // Pluck off n bytes from an array of buffers. // Length is the combined lengths of all the buffers in the list. function fromList(n, state) { var list = state.buffer; var length = state.length; var stringMode = !!state.decoder; var objectMode = !!state.objectMode; var ret; // nothing in the list, definitely empty. if (list.length === 0) return null; if (length === 0) ret = null;else if (objectMode) ret = list.shift();else if (!n || n >= length) { // read it all, truncate the array. if (stringMode) ret = list.join('');else if (list.length === 1) ret = list[0];else ret = Buffer.concat(list, length); list.length = 0; } else { // read just some of it. if (n < list[0].length) { // just take a part of the first list item. // slice is the same for buffers and strings. var buf = list[0]; ret = buf.slice(0, n); list[0] = buf.slice(n); } else if (n === list[0].length) { // first list is a perfect match ret = list.shift(); } else { // complex case. // we have enough to cover it, but it spans past the first buffer. if (stringMode) ret = '';else ret = new Buffer(n); var c = 0; for (var i = 0, l = list.length; i < l && c < n; i++) { var buf = list[0]; var cpy = Math.min(n - c, buf.length); if (stringMode) ret += buf.slice(0, cpy);else buf.copy(ret, c, 0, cpy); if (cpy < buf.length) list[0] = buf.slice(cpy);else list.shift(); c += cpy; } } } return ret; } function endReadable(stream) { var state = stream._readableState; // If we get here before consuming all the bytes, then that is a // bug in node. Should never happen. if (state.length > 0) throw new Error('endReadable called on non-empty stream'); if (!state.endEmitted) { state.ended = true; processNextTick(endReadableNT, state, stream); } } function endReadableNT(state, stream) { // Check that we didn't get one last unshift. if (!state.endEmitted && state.length === 0) { state.endEmitted = true; stream.readable = false; stream.emit('end'); } } function forEach(xs, f) { for (var i = 0, l = xs.length; i < l; i++) { f(xs[i], i); } } function indexOf(xs, x) { for (var i = 0, l = xs.length; i < l; i++) { if (xs[i] === x) return i; } return -1; } }).call(this,require('_process')) },{"./_stream_duplex":391,"_process":432,"buffer":424,"core-util-is":260,"events":426,"inherits":312,"isarray":313,"process-nextick-args":376,"string_decoder/":390,"util":421}],393:[function(require,module,exports){ // a transform stream is a readable/writable stream where you do // something with the data. Sometimes it's called a "filter", // but that's not a great name for it, since that implies a thing where // some bits pass through, and others are simply ignored. (That would // be a valid example of a transform, of course.) // // While the output is causally related to the input, it's not a // necessarily symmetric or synchronous transformation. For example, // a zlib stream might take multiple plain-text writes(), and then // emit a single compressed chunk some time in the future. // // Here's how this works: // // The Transform stream has all the aspects of the readable and writable // stream classes. When you write(chunk), that calls _write(chunk,cb) // internally, and returns false if there's a lot of pending writes // buffered up. When you call read(), that calls _read(n) until // there's enough pending readable data buffered up. // // In a transform stream, the written data is placed in a buffer. When // _read(n) is called, it transforms the queued up data, calling the // buffered _write cb's as it consumes chunks. If consuming a single // written chunk would result in multiple output chunks, then the first // outputted bit calls the readcb, and subsequent chunks just go into // the read buffer, and will cause it to emit 'readable' if necessary. // // This way, back-pressure is actually determined by the reading side, // since _read has to be called to start processing a new chunk. However, // a pathological inflate type of transform can cause excessive buffering // here. For example, imagine a stream where every byte of input is // interpreted as an integer from 0-255, and then results in that many // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in // 1kb of data being output. In this case, you could write a very small // amount of input, and end up with a very large amount of output. In // such a pathological inflating mechanism, there'd be no way to tell // the system to stop doing the transform. A single 4MB write could // cause the system to run out of memory. // // However, even in such a pathological case, only a single written chunk // would be consumed, and then the rest would wait (un-transformed) until // the results of the previous transformed chunk were consumed. 'use strict'; module.exports = Transform; var Duplex = require('./_stream_duplex'); /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ util.inherits(Transform, Duplex); function TransformState(stream) { this.afterTransform = function (er, data) { return afterTransform(stream, er, data); }; this.needTransform = false; this.transforming = false; this.writecb = null; this.writechunk = null; this.writeencoding = null; } function afterTransform(stream, er, data) { var ts = stream._transformState; ts.transforming = false; var cb = ts.writecb; if (!cb) return stream.emit('error', new Error('no writecb in Transform class')); ts.writechunk = null; ts.writecb = null; if (data !== null && data !== undefined) stream.push(data); cb(er); var rs = stream._readableState; rs.reading = false; if (rs.needReadable || rs.length < rs.highWaterMark) { stream._read(rs.highWaterMark); } } function Transform(options) { if (!(this instanceof Transform)) return new Transform(options); Duplex.call(this, options); this._transformState = new TransformState(this); // when the writable side finishes, then flush out anything remaining. var stream = this; // start out asking for a readable event once data is transformed. this._readableState.needReadable = true; // we have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. this._readableState.sync = false; if (options) { if (typeof options.transform === 'function') this._transform = options.transform; if (typeof options.flush === 'function') this._flush = options.flush; } this.once('prefinish', function () { if (typeof this._flush === 'function') this._flush(function (er) { done(stream, er); });else done(stream); }); } Transform.prototype.push = function (chunk, encoding) { this._transformState.needTransform = false; return Duplex.prototype.push.call(this, chunk, encoding); }; // This is the part where you do stuff! // override this function in implementation classes. // 'chunk' is an input chunk. // // Call `push(newChunk)` to pass along transformed output // to the readable side. You may call 'push' zero or more times. // // Call `cb(err)` when you are done with this chunk. If you pass // an error, then that'll put the hurt on the whole operation. If you // never call cb(), then you'll never get another chunk. Transform.prototype._transform = function (chunk, encoding, cb) { throw new Error('not implemented'); }; Transform.prototype._write = function (chunk, encoding, cb) { var ts = this._transformState; ts.writecb = cb; ts.writechunk = chunk; ts.writeencoding = encoding; if (!ts.transforming) { var rs = this._readableState; if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); } }; // Doesn't matter what the args are here. // _transform does all the work. // That we got here means that the readable side wants more data. Transform.prototype._read = function (n) { var ts = this._transformState; if (ts.writechunk !== null && ts.writecb && !ts.transforming) { ts.transforming = true; this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); } else { // mark that we need a transform, so that any data that comes in // will get processed, now that we've asked for it. ts.needTransform = true; } }; function done(stream, er) { if (er) return stream.emit('error', er); // if there's nothing in the write buffer, then that means // that nothing more will ever be provided var ws = stream._writableState; var ts = stream._transformState; if (ws.length) throw new Error('calling transform done when ws.length != 0'); if (ts.transforming) throw new Error('calling transform done when still transforming'); return stream.push(null); } },{"./_stream_duplex":391,"core-util-is":260,"inherits":312}],394:[function(require,module,exports){ (function (process){ // A bit simpler than readable streams. // Implement an async ._write(chunk, encoding, cb), and it'll handle all // the drain event emission and buffering. 'use strict'; module.exports = Writable; /**/ var processNextTick = require('process-nextick-args'); /**/ /**/ var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; /**/ /**/ var Buffer = require('buffer').Buffer; /**/ Writable.WritableState = WritableState; /**/ var util = require('core-util-is'); util.inherits = require('inherits'); /**/ /**/ var internalUtil = { deprecate: require('util-deprecate') }; /**/ /**/ var Stream; (function () { try { Stream = require('st' + 'ream'); } catch (_) {} finally { if (!Stream) Stream = require('events').EventEmitter; } })(); /**/ var Buffer = require('buffer').Buffer; util.inherits(Writable, Stream); function nop() {} function WriteReq(chunk, encoding, cb) { this.chunk = chunk; this.encoding = encoding; this.callback = cb; this.next = null; } var Duplex; function WritableState(options, stream) { Duplex = Duplex || require('./_stream_duplex'); options = options || {}; // object stream flag to indicate whether or not this stream // contains buffers or objects. this.objectMode = !!options.objectMode; if (stream instanceof Duplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false // Note: 0 is a valid value, means that we always return false if // the entire buffer is not flushed immediately on write() var hwm = options.highWaterMark; var defaultHwm = this.objectMode ? 16 : 16 * 1024; this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm; // cast to ints. this.highWaterMark = ~ ~this.highWaterMark; this.needDrain = false; // at the start of calling end() this.ending = false; // when end() has been called, and returned this.ended = false; // when 'finish' is emitted this.finished = false; // should we decode strings into buffers before passing to _write? // this is here so that some node-core streams can optimize string // handling at a lower level. var noDecode = options.decodeStrings === false; this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string // encoding is 'binary' so we have to make this configurable. // Everything else in the universe uses 'utf8', though. this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement // of how much we're waiting to get pushed to some underlying // socket or file. this.length = 0; // a flag to see when we're in the middle of a write. this.writing = false; // when true all writes will be buffered until .uncork() call this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, // or on a later tick. We set this to true at first, because any // actions that shouldn't happen until "later" should generally also // not happen before the first write call. this.sync = true; // a flag to know if we're processing previously buffered items, which // may call the _write() callback in the same tick, so that we don't // end up in an overlapped onwrite situation. this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) this.onwrite = function (er) { onwrite(stream, er); }; // the callback that the user supplies to write(chunk,encoding,cb) this.writecb = null; // the amount that is being written when _write is called. this.writelen = 0; this.bufferedRequest = null; this.lastBufferedRequest = null; // number of pending user-supplied write callbacks // this must be 0 before 'finish' can be emitted this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs // This is relevant for synchronous Transform streams this.prefinished = false; // True if the error was already emitted and should not be thrown again this.errorEmitted = false; // count buffered requests this.bufferedRequestCount = 0; // create the two objects needed to store the corked requests // they are not a linked list, as no new elements are inserted in there this.corkedRequestsFree = new CorkedRequest(this); this.corkedRequestsFree.next = new CorkedRequest(this); } WritableState.prototype.getBuffer = function writableStateGetBuffer() { var current = this.bufferedRequest; var out = []; while (current) { out.push(current); current = current.next; } return out; }; (function () { try { Object.defineProperty(WritableState.prototype, 'buffer', { get: internalUtil.deprecate(function () { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.') }); } catch (_) {} })(); var Duplex; function Writable(options) { Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, though they're not // instanceof Writable, they're instanceof Readable. if (!(this instanceof Writable) && !(this instanceof Duplex)) return new Writable(options); this._writableState = new WritableState(options, this); // legacy. this.writable = true; if (options) { if (typeof options.write === 'function') this._write = options.write; if (typeof options.writev === 'function') this._writev = options.writev; } Stream.call(this); } // Otherwise people can pipe Writable streams, which is just wrong. Writable.prototype.pipe = function () { this.emit('error', new Error('Cannot pipe. Not readable.')); }; function writeAfterEnd(stream, cb) { var er = new Error('write after end'); // TODO: defer error events consistently everywhere, not just the cb stream.emit('error', er); processNextTick(cb, er); } // If we get something that is not a buffer, string, null, or undefined, // and we're not in objectMode, then that's an error. // Otherwise stream chunks are all considered to be of length=1, and the // watermarks determine how many objects to keep in the buffer, rather than // how many bytes or characters. function validChunk(stream, state, chunk, cb) { var valid = true; if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) { var er = new TypeError('Invalid non-string/buffer chunk'); stream.emit('error', er); processNextTick(cb, er); valid = false; } return valid; } Writable.prototype.write = function (chunk, encoding, cb) { var state = this._writableState; var ret = false; if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (Buffer.isBuffer(chunk)) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; if (typeof cb !== 'function') cb = nop; if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) { state.pendingcb++; ret = writeOrBuffer(this, state, chunk, encoding, cb); } return ret; }; Writable.prototype.cork = function () { var state = this._writableState; state.corked++; }; Writable.prototype.uncork = function () { var state = this._writableState; if (state.corked) { state.corked--; if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); } }; Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { // node::ParseEncoding() requires lower case. if (typeof encoding === 'string') encoding = encoding.toLowerCase(); if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); this._writableState.defaultEncoding = encoding; }; function decodeChunk(state, chunk, encoding) { if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { chunk = new Buffer(chunk, encoding); } return chunk; } // if we're already writing something, then just put this // in the queue, and wait our turn. Otherwise, call _write // If we return false, then we need a drain event, so set that flag. function writeOrBuffer(stream, state, chunk, encoding, cb) { chunk = decodeChunk(state, chunk, encoding); if (Buffer.isBuffer(chunk)) encoding = 'buffer'; var len = state.objectMode ? 1 : chunk.length; state.length += len; var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. if (!ret) state.needDrain = true; if (state.writing || state.corked) { var last = state.lastBufferedRequest; state.lastBufferedRequest = new WriteReq(chunk, encoding, cb); if (last) { last.next = state.lastBufferedRequest; } else { state.bufferedRequest = state.lastBufferedRequest; } state.bufferedRequestCount += 1; } else { doWrite(stream, state, false, len, chunk, encoding, cb); } return ret; } function doWrite(stream, state, writev, len, chunk, encoding, cb) { state.writelen = len; state.writecb = cb; state.writing = true; state.sync = true; if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); state.sync = false; } function onwriteError(stream, state, sync, er, cb) { --state.pendingcb; if (sync) processNextTick(cb, er);else cb(er); stream._writableState.errorEmitted = true; stream.emit('error', er); } function onwriteStateUpdate(state) { state.writing = false; state.writecb = null; state.length -= state.writelen; state.writelen = 0; } function onwrite(stream, er) { var state = stream._writableState; var sync = state.sync; var cb = state.writecb; onwriteStateUpdate(state); if (er) onwriteError(stream, state, sync, er, cb);else { // Check if we're actually ready to finish, but don't emit yet var finished = needFinish(state); if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { clearBuffer(stream, state); } if (sync) { /**/ asyncWrite(afterWrite, stream, state, finished, cb); /**/ } else { afterWrite(stream, state, finished, cb); } } } function afterWrite(stream, state, finished, cb) { if (!finished) onwriteDrain(stream, state); state.pendingcb--; cb(); finishMaybe(stream, state); } // Must force callback to be called on nextTick, so that we don't // emit 'drain' before the write() consumer gets the 'false' return // value, and has a chance to attach a 'drain' listener. function onwriteDrain(stream, state) { if (state.length === 0 && state.needDrain) { state.needDrain = false; stream.emit('drain'); } } // if there's something in the buffer waiting, then process it function clearBuffer(stream, state) { state.bufferProcessing = true; var entry = state.bufferedRequest; if (stream._writev && entry && entry.next) { // Fast case, write everything using _writev() var l = state.bufferedRequestCount; var buffer = new Array(l); var holder = state.corkedRequestsFree; holder.entry = entry; var count = 0; while (entry) { buffer[count] = entry; entry = entry.next; count += 1; } doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is always async, defer these to save a bit of time // as the hot path ends with doWrite state.pendingcb++; state.lastBufferedRequest = null; state.corkedRequestsFree = holder.next; holder.next = null; } else { // Slow case, write chunks one-by-one while (entry) { var chunk = entry.chunk; var encoding = entry.encoding; var cb = entry.callback; var len = state.objectMode ? 1 : chunk.length; doWrite(stream, state, false, len, chunk, encoding, cb); entry = entry.next; // if we didn't call the onwrite immediately, then // it means that we need to wait until it does. // also, that means that the chunk and cb are currently // being processed, so move the buffer counter past them. if (state.writing) { break; } } if (entry === null) state.lastBufferedRequest = null; } state.bufferedRequestCount = 0; state.bufferedRequest = entry; state.bufferProcessing = false; } Writable.prototype._write = function (chunk, encoding, cb) { cb(new Error('not implemented')); }; Writable.prototype._writev = null; Writable.prototype.end = function (chunk, encoding, cb) { var state = this._writableState; if (typeof chunk === 'function') { cb = chunk; chunk = null; encoding = null; } else if (typeof encoding === 'function') { cb = encoding; encoding = null; } if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks if (state.corked) { state.corked = 1; this.uncork(); } // ignore unnecessary end() calls. if (!state.ending && !state.finished) endWritable(this, state, cb); }; function needFinish(state) { return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; } function prefinish(stream, state) { if (!state.prefinished) { state.prefinished = true; stream.emit('prefinish'); } } function finishMaybe(stream, state) { var need = needFinish(state); if (need) { if (state.pendingcb === 0) { prefinish(stream, state); state.finished = true; stream.emit('finish'); } else { prefinish(stream, state); } } return need; } function endWritable(stream, state, cb) { state.ending = true; finishMaybe(stream, state); if (cb) { if (state.finished) processNextTick(cb);else stream.once('finish', cb); } state.ended = true; stream.writable = false; } // It seems a linked list but it is not // there will be only 2 of these for each stream function CorkedRequest(state) { var _this = this; this.next = null; this.entry = null; this.finish = function (err) { var entry = _this.entry; _this.entry = null; while (entry) { var cb = entry.callback; state.pendingcb--; cb(err); entry = entry.next; } if (state.corkedRequestsFree) { state.corkedRequestsFree.next = _this; } else { state.corkedRequestsFree = _this; } }; } }).call(this,require('_process')) },{"./_stream_duplex":391,"_process":432,"buffer":424,"core-util-is":260,"events":426,"inherits":312,"process-nextick-args":376,"util-deprecate":398}],395:[function(require,module,exports){ module.exports = require("./lib/_stream_transform.js") },{"./lib/_stream_transform.js":393}],396:[function(require,module,exports){ (function (process){ var Transform = require('readable-stream/transform') , inherits = require('util').inherits , xtend = require('xtend') function DestroyableTransform(opts) { Transform.call(this, opts) this._destroyed = false } inherits(DestroyableTransform, Transform) DestroyableTransform.prototype.destroy = function(err) { if (this._destroyed) return this._destroyed = true var self = this process.nextTick(function() { if (err) self.emit('error', err) self.emit('close') }) } // a noop _transform function function noop (chunk, enc, callback) { callback(null, chunk) } // create a new export function, used by both the main export and // the .ctor export, contains common logic for dealing with arguments function through2 (construct) { return function (options, transform, flush) { if (typeof options == 'function') { flush = transform transform = options options = {} } if (typeof transform != 'function') transform = noop if (typeof flush != 'function') flush = null return construct(options, transform, flush) } } // main export, just make me a transform stream! module.exports = through2(function (options, transform, flush) { var t2 = new DestroyableTransform(options) t2._transform = transform if (flush) t2._flush = flush return t2 }) // make me a reusable prototype that I can `new`, or implicitly `new` // with a constructor call module.exports.ctor = through2(function (options, transform, flush) { function Through2 (override) { if (!(this instanceof Through2)) return new Through2(override) this.options = xtend(options, override) DestroyableTransform.call(this, this.options) } inherits(Through2, DestroyableTransform) Through2.prototype._transform = transform if (flush) Through2.prototype._flush = flush return Through2 }) module.exports.obj = through2(function (options, transform, flush) { var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options)) t2._transform = transform if (flush) t2._flush = flush return t2 }) }).call(this,require('_process')) },{"_process":432,"readable-stream/transform":395,"util":455,"xtend":419}],397:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var punycode = require('punycode'); exports.parse = urlParse; exports.resolve = urlResolve; exports.resolveObject = urlResolveObject; exports.format = urlFormat; exports.Url = Url; function Url() { this.protocol = null; this.slashes = null; this.auth = null; this.host = null; this.port = null; this.hostname = null; this.hash = null; this.search = null; this.query = null; this.pathname = null; this.path = null; this.href = null; } // Reference: RFC 3986, RFC 1808, RFC 2396 // define these here so at least they only have to be // compiled once on the first module load. var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, // RFC 2396: characters reserved for delimiting URLs. // We actually just auto-escape these. delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], // RFC 2396: characters not allowed for various reasons. unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), // Allowed by RFCs, but cause of XSS attacks. Always escape these. autoEscape = ['\''].concat(unwise), // Characters that are never ever allowed in a hostname. // Note that any invalid chars are also handled, but these // are the ones that are *expected* to be seen, so we fast-path // them. nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), hostEndingChars = ['/', '?', '#'], hostnameMaxLen = 255, hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/, // protocols that can allow "unsafe" and "unwise" chars. unsafeProtocol = { 'javascript': true, 'javascript:': true }, // protocols that never have a hostname. hostlessProtocol = { 'javascript': true, 'javascript:': true }, // protocols that always contain a // bit. slashedProtocol = { 'http': true, 'https': true, 'ftp': true, 'gopher': true, 'file': true, 'http:': true, 'https:': true, 'ftp:': true, 'gopher:': true, 'file:': true }, querystring = require('querystring'); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && isObject(url) && url instanceof Url) return url; var u = new Url; u.parse(url, parseQueryString, slashesDenoteHost); return u; } Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { if (!isString(url)) { throw new TypeError("Parameter 'url' must be a string, not " + typeof url); } var rest = url; // trim before proceeding. // This is to support parse stuff like " http://foo.com \n" rest = rest.trim(); var proto = protocolPattern.exec(rest); if (proto) { proto = proto[0]; var lowerProto = proto.toLowerCase(); this.protocol = lowerProto; rest = rest.substr(proto.length); } // figure out if it's got a host // user@server is *always* interpreted as a hostname, and url // resolution will treat //foo/bar as host=foo,path=bar because that's // how the browser resolves relative URLs. if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { var slashes = rest.substr(0, 2) === '//'; if (slashes && !(proto && hostlessProtocol[proto])) { rest = rest.substr(2); this.slashes = true; } } if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) { // there's a hostname. // the first instance of /, ?, ;, or # ends the host. // // If there is an @ in the hostname, then non-host chars *are* allowed // to the left of the last @ sign, unless some host-ending character // comes *before* the @-sign. // URLs are obnoxious. // // ex: // http://a@b@c/ => user:a@b host:c // http://a@b?@c => user:a host:c path:/?@c // v0.12 TODO(isaacs): This is not quite how Chrome does things. // Review our test case against browsers more comprehensively. // find the first instance of any hostEndingChars var hostEnd = -1; for (var i = 0; i < hostEndingChars.length; i++) { var hec = rest.indexOf(hostEndingChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // at this point, either we have an explicit point where the // auth portion cannot go past, or the last @ char is the decider. var auth, atSign; if (hostEnd === -1) { // atSign can be anywhere. atSign = rest.lastIndexOf('@'); } else { // atSign must be in auth portion. // http://a@b/c@d => host:b auth:a path:/c@d atSign = rest.lastIndexOf('@', hostEnd); } // Now we have a portion which is definitely the auth. // Pull that off. if (atSign !== -1) { auth = rest.slice(0, atSign); rest = rest.slice(atSign + 1); this.auth = decodeURIComponent(auth); } // the host is the remaining to the left of the first non-host char hostEnd = -1; for (var i = 0; i < nonHostChars.length; i++) { var hec = rest.indexOf(nonHostChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // if we still have not hit it, then the entire thing is a host. if (hostEnd === -1) hostEnd = rest.length; this.host = rest.slice(0, hostEnd); rest = rest.slice(hostEnd); // pull out port. this.parseHost(); // we've indicated that there is a hostname, // so even if it's empty, it has to be present. this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ] // assume that it's an IPv6 address. var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little. if (!ipv6Hostname) { var hostparts = this.hostname.split(/\./); for (var i = 0, l = hostparts.length; i < l; i++) { var part = hostparts[i]; if (!part) continue; if (!part.match(hostnamePartPattern)) { var newpart = ''; for (var j = 0, k = part.length; j < k; j++) { if (part.charCodeAt(j) > 127) { // we replace non-ASCII char with a temporary placeholder // we need this to make sure size of hostname is not // broken by replacing non-ASCII by nothing newpart += 'x'; } else { newpart += part[j]; } } // we test again with ASCII char only if (!newpart.match(hostnamePartPattern)) { var validParts = hostparts.slice(0, i); var notHost = hostparts.slice(i + 1); var bit = part.match(hostnamePartStart); if (bit) { validParts.push(bit[1]); notHost.unshift(bit[2]); } if (notHost.length) { rest = '/' + notHost.join('.') + rest; } this.hostname = validParts.join('.'); break; } } } } if (this.hostname.length > hostnameMaxLen) { this.hostname = ''; } else { // hostnames are always lower case. this.hostname = this.hostname.toLowerCase(); } if (!ipv6Hostname) { // IDNA Support: Returns a puny coded representation of "domain". // It only converts the part of the domain name that // has non ASCII characters. I.e. it dosent matter if // you call it with a domain that already is in ASCII. var domainArray = this.hostname.split('.'); var newOut = []; for (var i = 0; i < domainArray.length; ++i) { var s = domainArray[i]; newOut.push(s.match(/[^A-Za-z0-9_-]/) ? 'xn--' + punycode.encode(s) : s); } this.hostname = newOut.join('.'); } var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; this.href += this.host; // strip [ and ] from the hostname // the host field still retains them, though if (ipv6Hostname) { this.hostname = this.hostname.substr(1, this.hostname.length - 2); if (rest[0] !== '/') { rest = '/' + rest; } } } // now rest is set to the post-host stuff. // chop off any delim chars. if (!unsafeProtocol[lowerProto]) { // First, make 100% sure that any "autoEscape" chars get // escaped, even if encodeURIComponent doesn't think they // need to be. for (var i = 0, l = autoEscape.length; i < l; i++) { var ae = autoEscape[i]; var esc = encodeURIComponent(ae); if (esc === ae) { esc = escape(ae); } rest = rest.split(ae).join(esc); } } // chop off from the tail first. var hash = rest.indexOf('#'); if (hash !== -1) { // got a fragment string. this.hash = rest.substr(hash); rest = rest.slice(0, hash); } var qm = rest.indexOf('?'); if (qm !== -1) { this.search = rest.substr(qm); this.query = rest.substr(qm + 1); if (parseQueryString) { this.query = querystring.parse(this.query); } rest = rest.slice(0, qm); } else if (parseQueryString) { // no query string, but parseQueryString still requested this.search = ''; this.query = {}; } if (rest) this.pathname = rest; if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) { this.pathname = '/'; } //to support http.request if (this.pathname || this.search) { var p = this.pathname || ''; var s = this.search || ''; this.path = p + s; } // finally, reconstruct the href based on what has been validated. this.href = this.format(); return this; }; // format a parsed object into a url string function urlFormat(obj) { // ensure it's an object, and not a string url. // If it's an obj, this is a no-op. // this way, you can call url_format() on strings // to clean up potentially wonky urls. if (isString(obj)) obj = urlParse(obj); if (!(obj instanceof Url)) return Url.prototype.format.call(obj); return obj.format(); } Url.prototype.format = function() { var auth = this.auth || ''; if (auth) { auth = encodeURIComponent(auth); auth = auth.replace(/%3A/i, ':'); auth += '@'; } var protocol = this.protocol || '', pathname = this.pathname || '', hash = this.hash || '', host = false, query = ''; if (this.host) { host = auth + this.host; } else if (this.hostname) { host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']'); if (this.port) { host += ':' + this.port; } } if (this.query && isObject(this.query) && Object.keys(this.query).length) { query = querystring.stringify(this.query); } var search = this.search || (query && ('?' + query)) || ''; if (protocol && protocol.substr(-1) !== ':') protocol += ':'; // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. // unless they had them to begin with. if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { host = '//' + (host || ''); if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; } else if (!host) { host = ''; } if (hash && hash.charAt(0) !== '#') hash = '#' + hash; if (search && search.charAt(0) !== '?') search = '?' + search; pathname = pathname.replace(/[?#]/g, function(match) { return encodeURIComponent(match); }); search = search.replace('#', '%23'); return protocol + host + pathname + search + hash; }; function urlResolve(source, relative) { return urlParse(source, false, true).resolve(relative); } Url.prototype.resolve = function(relative) { return this.resolveObject(urlParse(relative, false, true)).format(); }; function urlResolveObject(source, relative) { if (!source) return relative; return urlParse(source, false, true).resolveObject(relative); } Url.prototype.resolveObject = function(relative) { if (isString(relative)) { var rel = new Url(); rel.parse(relative, false, true); relative = rel; } var result = new Url(); Object.keys(this).forEach(function(k) { result[k] = this[k]; }, this); // hash is always overridden, no matter what. // even href="" will remove it. result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here. if (relative.href === '') { result.href = result.format(); return result; } // hrefs like //foo/bar always cut to the protocol. if (relative.slashes && !relative.protocol) { // take everything except the protocol from relative Object.keys(relative).forEach(function(k) { if (k !== 'protocol') result[k] = relative[k]; }); //urlParse appends trailing / to urls like http://www.example.com if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { result.path = result.pathname = '/'; } result.href = result.format(); return result; } if (relative.protocol && relative.protocol !== result.protocol) { // if it's a known url protocol, then changing // the protocol does weird things // first, if it's not file:, then we MUST have a host, // and if there was a path // to begin with, then we MUST have a path. // if it is file:, then the host is dropped, // because that's known to be hostless. // anything else is assumed to be absolute. if (!slashedProtocol[relative.protocol]) { Object.keys(relative).forEach(function(k) { result[k] = relative[k]; }); result.href = result.format(); return result; } result.protocol = relative.protocol; if (!relative.host && !hostlessProtocol[relative.protocol]) { var relPath = (relative.pathname || '').split('/'); while (relPath.length && !(relative.host = relPath.shift())); if (!relative.host) relative.host = ''; if (!relative.hostname) relative.hostname = ''; if (relPath[0] !== '') relPath.unshift(''); if (relPath.length < 2) relPath.unshift(''); result.pathname = relPath.join('/'); } else { result.pathname = relative.pathname; } result.search = relative.search; result.query = relative.query; result.host = relative.host || ''; result.auth = relative.auth; result.hostname = relative.hostname || relative.host; result.port = relative.port; // to support http.request if (result.pathname || result.search) { var p = result.pathname || ''; var s = result.search || ''; result.path = p + s; } result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; } var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), isRelAbs = ( relative.host || relative.pathname && relative.pathname.charAt(0) === '/' ), mustEndAbs = (isRelAbs || isSourceAbs || (result.host && relative.pathname)), removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split('/') || [], relPath = relative.pathname && relative.pathname.split('/') || [], psychotic = result.protocol && !slashedProtocol[result.protocol]; // if the url is a non-slashed url, then relative // links like ../.. should be able // to crawl up to the hostname, as well. This is strange. // result.protocol has already been set by now. // Later on, put the first path part into the host field. if (psychotic) { result.hostname = ''; result.port = null; if (result.host) { if (srcPath[0] === '') srcPath[0] = result.host; else srcPath.unshift(result.host); } result.host = ''; if (relative.protocol) { relative.hostname = null; relative.port = null; if (relative.host) { if (relPath[0] === '') relPath[0] = relative.host; else relPath.unshift(relative.host); } relative.host = null; } mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); } if (isRelAbs) { // it's absolute. result.host = (relative.host || relative.host === '') ? relative.host : result.host; result.hostname = (relative.hostname || relative.hostname === '') ? relative.hostname : result.hostname; result.search = relative.search; result.query = relative.query; srcPath = relPath; // fall through to the dot-handling below. } else if (relPath.length) { // it's relative // throw away the existing file, and take the new path instead. if (!srcPath) srcPath = []; srcPath.pop(); srcPath = srcPath.concat(relPath); result.search = relative.search; result.query = relative.query; } else if (!isNullOrUndefined(relative.search)) { // just pull out the search. // like href='?foo'. // Put this after the other two cases because it simplifies the booleans if (psychotic) { result.hostname = result.host = srcPath.shift(); //occationaly the auth can get stuck only in host //this especialy happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } result.search = relative.search; result.query = relative.query; //to support http.request if (!isNull(result.pathname) || !isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.href = result.format(); return result; } if (!srcPath.length) { // no path at all. easy. // we've already handled the other stuff above. result.pathname = null; //to support http.request if (result.search) { result.path = '/' + result.search; } else { result.path = null; } result.href = result.format(); return result; } // if a url ENDs in . or .., then it must get a trailing slash. // however, if it ends in anything else non-slashy, // then it must NOT get a trailing slash. var last = srcPath.slice(-1)[0]; var hasTrailingSlash = ( (result.host || relative.host) && (last === '.' || last === '..') || last === ''); // strip single dots, resolve double dots to parent dir // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = srcPath.length; i >= 0; i--) { last = srcPath[i]; if (last == '.') { srcPath.splice(i, 1); } else if (last === '..') { srcPath.splice(i, 1); up++; } else if (up) { srcPath.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (!mustEndAbs && !removeAllDots) { for (; up--; up) { srcPath.unshift('..'); } } if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { srcPath.unshift(''); } if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { srcPath.push(''); } var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/'); // put the host back if (psychotic) { result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; //occationaly the auth can get stuck only in host //this especialy happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } mustEndAbs = mustEndAbs || (result.host && srcPath.length); if (mustEndAbs && !isAbsolute) { srcPath.unshift(''); } if (!srcPath.length) { result.pathname = null; result.path = null; } else { result.pathname = srcPath.join('/'); } //to support request.http if (!isNull(result.pathname) || !isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.auth = relative.auth || result.auth; result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; }; Url.prototype.parseHost = function() { var host = this.host; var port = portPattern.exec(host); if (port) { port = port[0]; if (port !== ':') { this.port = port.substr(1); } host = host.substr(0, host.length - port.length); } if (host) this.hostname = host; }; function isString(arg) { return typeof arg === "string"; } function isObject(arg) { return typeof arg === 'object' && arg !== null; } function isNull(arg) { return arg === null; } function isNullOrUndefined(arg) { return arg == null; } },{"punycode":433,"querystring":436}],398:[function(require,module,exports){ (function (global){ /** * Module exports. */ module.exports = deprecate; /** * Mark that a method should not be used. * Returns a modified function which warns once by default. * * If `localStorage.noDeprecation = true` is set, then it is a no-op. * * If `localStorage.throwDeprecation = true` is set, then deprecated functions * will throw an Error when invoked. * * If `localStorage.traceDeprecation = true` is set, then deprecated functions * will invoke `console.trace()` instead of `console.error()`. * * @param {Function} fn - the function to deprecate * @param {String} msg - the string to print to the console when `fn` is invoked * @returns {Function} a new "deprecated" version of `fn` * @api public */ function deprecate (fn, msg) { if (config('noDeprecation')) { return fn; } var warned = false; function deprecated() { if (!warned) { if (config('throwDeprecation')) { throw new Error(msg); } else if (config('traceDeprecation')) { console.trace(msg); } else { console.warn(msg); } warned = true; } return fn.apply(this, arguments); } return deprecated; } /** * Checks `localStorage` for boolean values for the given `name`. * * @param {String} name * @returns {Boolean} * @api private */ function config (name) { // accessing global.localStorage can trigger a DOMException in sandboxed iframes try { if (!global.localStorage) return false; } catch (_) { return false; } var val = global.localStorage[name]; if (null == val) return false; return String(val).toLowerCase() === 'true'; } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],399:[function(require,module,exports){ (function (process,global,Buffer){ var through = require('through2') var duplexify = require('duplexify') var WS = require('ws') module.exports = WebSocketStream function WebSocketStream(target, protocols, options) { var stream, socket var isBrowser = process.title === 'browser' var isNative = !!global.WebSocket var socketWrite = isBrowser ? socketWriteBrowser : socketWriteNode var proxy = through.obj(socketWrite, socketEnd) if (protocols && !Array.isArray(protocols) && 'object' === typeof protocols) { // accept the "options" Object as the 2nd argument options = protocols protocols = null } if (!options) options = {} // browser only: sets the maximum socket buffer size before throttling var bufferSize = options.browserBufferSize || 1024 * 512 // browser only: how long to wait when throttling var bufferTimeout = options.browserBufferTimeout || 1000 // use existing WebSocket object that was passed in if (typeof target === 'object') { socket = target // otherwise make a new one } else { // special constructor treatment for native websockets in browsers, see // https://github.com/maxogden/websocket-stream/issues/82 if (isNative && isBrowser) { socket = new WS(target, protocols) } else { socket = new WS(target, protocols, options) } socket.binaryType = 'arraybuffer' } // was already open when passed in if (socket.readyState === WS.OPEN) { stream = proxy } else { stream = duplexify.obj() socket.onopen = onopen } stream.socket = socket socket.onclose = onclose socket.onerror = onerror socket.onmessage = onmessage proxy.on('close', destroy) var coerceToBuffer = options.binary || options.binary === undefined function socketWriteNode(chunk, enc, next) { if (coerceToBuffer && !(chunk instanceof Buffer)) { chunk = new Buffer(chunk, 'utf8') } socket.send(chunk, next) } function socketWriteBrowser(chunk, enc, next) { if (socket.bufferedAmount > bufferSize) { setTimeout(socketWriteBrowser, bufferTimeout, chunk, enc, next) return } try { socket.send(chunk) } catch(err) { return next(err) } next() } function socketEnd(done) { socket.close() done() } function onopen() { stream.setReadable(proxy) stream.setWritable(proxy) stream.emit('connect') } function onclose() { stream.end() stream.destroy() } function onerror(err) { stream.destroy(err) } function onmessage(event) { var data = event.data if (data instanceof ArrayBuffer) data = new Buffer(new Uint8Array(data)) else data = new Buffer(data) proxy.push(data) } function destroy() { socket.close() } return stream } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer) },{"_process":432,"buffer":424,"duplexify":301,"through2":396,"ws":400}],400:[function(require,module,exports){ var ws = null if (typeof WebSocket !== 'undefined') { ws = WebSocket } else if (typeof MozWebSocket !== 'undefined') { ws = MozWebSocket } else { ws = window.WebSocket || window.MozWebSocket } module.exports = ws },{}],401:[function(require,module,exports){ // Returns a wrapper function that returns a wrapped callback // The wrapper function should do some stuff, and return a // presumably different callback function. // This makes sure that own properties are retained, so that // decorations and such are not lost along the way. module.exports = wrappy function wrappy (fn, cb) { if (fn && cb) return wrappy(fn)(cb) if (typeof fn !== 'function') throw new TypeError('need wrapper function') Object.keys(fn).forEach(function (k) { wrapper[k] = fn[k] }) return wrapper function wrapper() { var args = new Array(arguments.length) for (var i = 0; i < args.length; i++) { args[i] = arguments[i] } var ret = fn.apply(this, args) var cb = args[args.length-1] if (typeof ret === 'function' && ret !== cb) { Object.keys(cb).forEach(function (k) { ret[k] = cb[k] }) } return ret } } },{}],402:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLAttribute, create; create = require('lodash/object/create'); module.exports = XMLAttribute = (function() { function XMLAttribute(parent, name, value) { this.stringify = parent.stringify; if (name == null) { throw new Error("Missing attribute name of element " + parent.name); } if (value == null) { throw new Error("Missing attribute value for attribute " + name + " of element " + parent.name); } this.name = this.stringify.attName(name); this.value = this.stringify.attValue(value); } XMLAttribute.prototype.clone = function() { return create(XMLAttribute.prototype, this); }; XMLAttribute.prototype.toString = function(options, level) { return ' ' + this.name + '="' + this.value + '"'; }; return XMLAttribute; })(); }).call(this); },{"lodash/object/create":357}],403:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLBuilder, XMLDeclaration, XMLDocType, XMLElement, XMLStringifier; XMLStringifier = require('./XMLStringifier'); XMLDeclaration = require('./XMLDeclaration'); XMLDocType = require('./XMLDocType'); XMLElement = require('./XMLElement'); module.exports = XMLBuilder = (function() { function XMLBuilder(name, options) { var root, temp; if (name == null) { throw new Error("Root element needs a name"); } if (options == null) { options = {}; } this.options = options; this.stringify = new XMLStringifier(options); temp = new XMLElement(this, 'doc'); root = temp.element(name); root.isRoot = true; root.documentObject = this; this.rootObject = root; if (!options.headless) { root.declaration(options); if ((options.pubID != null) || (options.sysID != null)) { root.doctype(options); } } } XMLBuilder.prototype.root = function() { return this.rootObject; }; XMLBuilder.prototype.end = function(options) { return this.toString(options); }; XMLBuilder.prototype.toString = function(options) { var indent, newline, offset, pretty, r, ref, ref1, ref2; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; r = ''; if (this.xmldec != null) { r += this.xmldec.toString(options); } if (this.doctype != null) { r += this.doctype.toString(options); } r += this.rootObject.toString(options); if (pretty && r.slice(-newline.length) === newline) { r = r.slice(0, -newline.length); } return r; }; return XMLBuilder; })(); }).call(this); },{"./XMLDeclaration":410,"./XMLDocType":411,"./XMLElement":412,"./XMLStringifier":416}],404:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLCData, XMLNode, create, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; create = require('lodash/object/create'); XMLNode = require('./XMLNode'); module.exports = XMLCData = (function(superClass) { extend(XMLCData, superClass); function XMLCData(parent, text) { XMLCData.__super__.constructor.call(this, parent); if (text == null) { throw new Error("Missing CDATA text"); } this.text = this.stringify.cdata(text); } XMLCData.prototype.clone = function() { return create(XMLCData.prototype, this); }; XMLCData.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLCData; })(XMLNode); }).call(this); },{"./XMLNode":413,"lodash/object/create":357}],405:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLComment, XMLNode, create, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; create = require('lodash/object/create'); XMLNode = require('./XMLNode'); module.exports = XMLComment = (function(superClass) { extend(XMLComment, superClass); function XMLComment(parent, text) { XMLComment.__super__.constructor.call(this, parent); if (text == null) { throw new Error("Missing comment text"); } this.text = this.stringify.comment(text); } XMLComment.prototype.clone = function() { return create(XMLComment.prototype, this); }; XMLComment.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLComment; })(XMLNode); }).call(this); },{"./XMLNode":413,"lodash/object/create":357}],406:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLDTDAttList, create; create = require('lodash/object/create'); module.exports = XMLDTDAttList = (function() { function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) { this.stringify = parent.stringify; if (elementName == null) { throw new Error("Missing DTD element name"); } if (attributeName == null) { throw new Error("Missing DTD attribute name"); } if (!attributeType) { throw new Error("Missing DTD attribute type"); } if (!defaultValueType) { throw new Error("Missing DTD attribute default"); } if (defaultValueType.indexOf('#') !== 0) { defaultValueType = '#' + defaultValueType; } if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) { throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT"); } if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) { throw new Error("Default value only applies to #FIXED or #DEFAULT"); } this.elementName = this.stringify.eleName(elementName); this.attributeName = this.stringify.attName(attributeName); this.attributeType = this.stringify.dtdAttType(attributeType); this.defaultValue = this.stringify.dtdAttDefault(defaultValue); this.defaultValueType = defaultValueType; } XMLDTDAttList.prototype.clone = function() { return create(XMLDTDAttList.prototype, this); }; XMLDTDAttList.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLDTDAttList; })(); }).call(this); },{"lodash/object/create":357}],407:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLDTDElement, create, isArray; create = require('lodash/object/create'); isArray = require('lodash/lang/isArray'); module.exports = XMLDTDElement = (function() { function XMLDTDElement(parent, name, value) { this.stringify = parent.stringify; if (name == null) { throw new Error("Missing DTD element name"); } if (!value) { value = '(#PCDATA)'; } if (isArray(value)) { value = '(' + value.join(',') + ')'; } this.name = this.stringify.eleName(name); this.value = this.stringify.dtdElementValue(value); } XMLDTDElement.prototype.clone = function() { return create(XMLDTDElement.prototype, this); }; XMLDTDElement.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLDTDElement; })(); }).call(this); },{"lodash/lang/isArray":349,"lodash/object/create":357}],408:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLDTDEntity, create, isObject; create = require('lodash/object/create'); isObject = require('lodash/lang/isObject'); module.exports = XMLDTDEntity = (function() { function XMLDTDEntity(parent, pe, name, value) { this.stringify = parent.stringify; if (name == null) { throw new Error("Missing entity name"); } if (value == null) { throw new Error("Missing entity value"); } this.pe = !!pe; this.name = this.stringify.eleName(name); if (!isObject(value)) { this.value = this.stringify.dtdEntityValue(value); } else { if (!value.pubID && !value.sysID) { throw new Error("Public and/or system identifiers are required for an external entity"); } if (value.pubID && !value.sysID) { throw new Error("System identifier is required for a public external entity"); } if (value.pubID != null) { this.pubID = this.stringify.dtdPubID(value.pubID); } if (value.sysID != null) { this.sysID = this.stringify.dtdSysID(value.sysID); } if (value.nData != null) { this.nData = this.stringify.dtdNData(value.nData); } if (this.pe && this.nData) { throw new Error("Notation declaration is not allowed in a parameter entity"); } } } XMLDTDEntity.prototype.clone = function() { return create(XMLDTDEntity.prototype, this); }; XMLDTDEntity.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLDTDEntity; })(); }).call(this); },{"lodash/lang/isObject":353,"lodash/object/create":357}],409:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLDTDNotation, create; create = require('lodash/object/create'); module.exports = XMLDTDNotation = (function() { function XMLDTDNotation(parent, name, value) { this.stringify = parent.stringify; if (name == null) { throw new Error("Missing notation name"); } if (!value.pubID && !value.sysID) { throw new Error("Public or system identifiers are required for an external entity"); } this.name = this.stringify.eleName(name); if (value.pubID != null) { this.pubID = this.stringify.dtdPubID(value.pubID); } if (value.sysID != null) { this.sysID = this.stringify.dtdSysID(value.sysID); } } XMLDTDNotation.prototype.clone = function() { return create(XMLDTDNotation.prototype, this); }; XMLDTDNotation.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLDTDNotation; })(); }).call(this); },{"lodash/object/create":357}],410:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLDeclaration, XMLNode, create, isObject, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; create = require('lodash/object/create'); isObject = require('lodash/lang/isObject'); XMLNode = require('./XMLNode'); module.exports = XMLDeclaration = (function(superClass) { extend(XMLDeclaration, superClass); function XMLDeclaration(parent, version, encoding, standalone) { var ref; XMLDeclaration.__super__.constructor.call(this, parent); if (isObject(version)) { ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone; } if (!version) { version = '1.0'; } if (version != null) { this.version = this.stringify.xmlVersion(version); } if (encoding != null) { this.encoding = this.stringify.xmlEncoding(encoding); } if (standalone != null) { this.standalone = this.stringify.xmlStandalone(standalone); } } XMLDeclaration.prototype.clone = function() { return create(XMLDeclaration.prototype, this); }; XMLDeclaration.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLDeclaration; })(XMLNode); }).call(this); },{"./XMLNode":413,"lodash/lang/isObject":353,"lodash/object/create":357}],411:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLProcessingInstruction, create, isObject; create = require('lodash/object/create'); isObject = require('lodash/lang/isObject'); XMLCData = require('./XMLCData'); XMLComment = require('./XMLComment'); XMLDTDAttList = require('./XMLDTDAttList'); XMLDTDEntity = require('./XMLDTDEntity'); XMLDTDElement = require('./XMLDTDElement'); XMLDTDNotation = require('./XMLDTDNotation'); XMLProcessingInstruction = require('./XMLProcessingInstruction'); module.exports = XMLDocType = (function() { function XMLDocType(parent, pubID, sysID) { var ref, ref1; this.documentObject = parent; this.stringify = this.documentObject.stringify; this.children = []; if (isObject(pubID)) { ref = pubID, pubID = ref.pubID, sysID = ref.sysID; } if (sysID == null) { ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1]; } if (pubID != null) { this.pubID = this.stringify.dtdPubID(pubID); } if (sysID != null) { this.sysID = this.stringify.dtdSysID(sysID); } } XMLDocType.prototype.clone = function() { return create(XMLDocType.prototype, this); }; XMLDocType.prototype.element = function(name, value) { var child; child = new XMLDTDElement(this, name, value); this.children.push(child); return this; }; XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) { var child; child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue); this.children.push(child); return this; }; XMLDocType.prototype.entity = function(name, value) { var child; child = new XMLDTDEntity(this, false, name, value); this.children.push(child); return this; }; XMLDocType.prototype.pEntity = function(name, value) { var child; child = new XMLDTDEntity(this, true, name, value); this.children.push(child); return this; }; XMLDocType.prototype.notation = function(name, value) { var child; child = new XMLDTDNotation(this, name, value); this.children.push(child); return this; }; XMLDocType.prototype.cdata = function(value) { var child; child = new XMLCData(this, value); this.children.push(child); return this; }; XMLDocType.prototype.comment = function(value) { var child; child = new XMLComment(this, value); this.children.push(child); return this; }; XMLDocType.prototype.instruction = function(target, value) { var child; child = new XMLProcessingInstruction(this, target, value); this.children.push(child); return this; }; XMLDocType.prototype.root = function() { return this.documentObject.root(); }; XMLDocType.prototype.document = function() { return this.documentObject; }; XMLDocType.prototype.toString = function(options, level) { var child, i, indent, len, newline, offset, pretty, r, ref, ref1, ref2, ref3, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ' 0) { r += ' ['; if (pretty) { r += newline; } ref3 = this.children; for (i = 0, len = ref3.length; i < len; i++) { child = ref3[i]; r += child.toString(options, level + 1); } r += ']'; } r += '>'; if (pretty) { r += newline; } return r; }; XMLDocType.prototype.ele = function(name, value) { return this.element(name, value); }; XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) { return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue); }; XMLDocType.prototype.ent = function(name, value) { return this.entity(name, value); }; XMLDocType.prototype.pent = function(name, value) { return this.pEntity(name, value); }; XMLDocType.prototype.not = function(name, value) { return this.notation(name, value); }; XMLDocType.prototype.dat = function(value) { return this.cdata(value); }; XMLDocType.prototype.com = function(value) { return this.comment(value); }; XMLDocType.prototype.ins = function(target, value) { return this.instruction(target, value); }; XMLDocType.prototype.up = function() { return this.root(); }; XMLDocType.prototype.doc = function() { return this.document(); }; return XMLDocType; })(); }).call(this); },{"./XMLCData":404,"./XMLComment":405,"./XMLDTDAttList":406,"./XMLDTDElement":407,"./XMLDTDEntity":408,"./XMLDTDNotation":409,"./XMLProcessingInstruction":414,"lodash/lang/isObject":353,"lodash/object/create":357}],412:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLAttribute, XMLElement, XMLNode, XMLProcessingInstruction, create, every, isArray, isFunction, isObject, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; create = require('lodash/object/create'); isObject = require('lodash/lang/isObject'); isArray = require('lodash/lang/isArray'); isFunction = require('lodash/lang/isFunction'); every = require('lodash/collection/every'); XMLNode = require('./XMLNode'); XMLAttribute = require('./XMLAttribute'); XMLProcessingInstruction = require('./XMLProcessingInstruction'); module.exports = XMLElement = (function(superClass) { extend(XMLElement, superClass); function XMLElement(parent, name, attributes) { XMLElement.__super__.constructor.call(this, parent); if (name == null) { throw new Error("Missing element name"); } this.name = this.stringify.eleName(name); this.children = []; this.instructions = []; this.attributes = {}; if (attributes != null) { this.attribute(attributes); } } XMLElement.prototype.clone = function() { var att, attName, clonedSelf, i, len, pi, ref, ref1; clonedSelf = create(XMLElement.prototype, this); if (clonedSelf.isRoot) { clonedSelf.documentObject = null; } clonedSelf.attributes = {}; ref = this.attributes; for (attName in ref) { if (!hasProp.call(ref, attName)) continue; att = ref[attName]; clonedSelf.attributes[attName] = att.clone(); } clonedSelf.instructions = []; ref1 = this.instructions; for (i = 0, len = ref1.length; i < len; i++) { pi = ref1[i]; clonedSelf.instructions.push(pi.clone()); } clonedSelf.children = []; this.children.forEach(function(child) { var clonedChild; clonedChild = child.clone(); clonedChild.parent = clonedSelf; return clonedSelf.children.push(clonedChild); }); return clonedSelf; }; XMLElement.prototype.attribute = function(name, value) { var attName, attValue; if (name != null) { name = name.valueOf(); } if (isObject(name)) { for (attName in name) { if (!hasProp.call(name, attName)) continue; attValue = name[attName]; this.attribute(attName, attValue); } } else { if (isFunction(value)) { value = value.apply(); } if (!this.options.skipNullAttributes || (value != null)) { this.attributes[name] = new XMLAttribute(this, name, value); } } return this; }; XMLElement.prototype.removeAttribute = function(name) { var attName, i, len; if (name == null) { throw new Error("Missing attribute name"); } name = name.valueOf(); if (isArray(name)) { for (i = 0, len = name.length; i < len; i++) { attName = name[i]; delete this.attributes[attName]; } } else { delete this.attributes[name]; } return this; }; XMLElement.prototype.instruction = function(target, value) { var i, insTarget, insValue, instruction, len; if (target != null) { target = target.valueOf(); } if (value != null) { value = value.valueOf(); } if (isArray(target)) { for (i = 0, len = target.length; i < len; i++) { insTarget = target[i]; this.instruction(insTarget); } } else if (isObject(target)) { for (insTarget in target) { if (!hasProp.call(target, insTarget)) continue; insValue = target[insTarget]; this.instruction(insTarget, insValue); } } else { if (isFunction(value)) { value = value.apply(); } instruction = new XMLProcessingInstruction(this, target, value); this.instructions.push(instruction); } return this; }; XMLElement.prototype.toString = function(options, level) { var att, child, i, indent, instruction, j, len, len1, name, newline, offset, pretty, r, ref, ref1, ref2, ref3, ref4, ref5, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; ref3 = this.instructions; for (i = 0, len = ref3.length; i < len; i++) { instruction = ref3[i]; r += instruction.toString(options, level + 1); } if (pretty) { r += space; } r += '<' + this.name; ref4 = this.attributes; for (name in ref4) { if (!hasProp.call(ref4, name)) continue; att = ref4[name]; r += att.toString(options); } if (this.children.length === 0 || every(this.children, function(e) { return e.value === ''; })) { r += '/>'; if (pretty) { r += newline; } } else if (pretty && this.children.length === 1 && (this.children[0].value != null)) { r += '>'; r += this.children[0].value; r += ''; r += newline; } else { r += '>'; if (pretty) { r += newline; } ref5 = this.children; for (j = 0, len1 = ref5.length; j < len1; j++) { child = ref5[j]; r += child.toString(options, level + 1); } if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } } return r; }; XMLElement.prototype.att = function(name, value) { return this.attribute(name, value); }; XMLElement.prototype.ins = function(target, value) { return this.instruction(target, value); }; XMLElement.prototype.a = function(name, value) { return this.attribute(name, value); }; XMLElement.prototype.i = function(target, value) { return this.instruction(target, value); }; return XMLElement; })(XMLNode); }).call(this); },{"./XMLAttribute":402,"./XMLNode":413,"./XMLProcessingInstruction":414,"lodash/collection/every":315,"lodash/lang/isArray":349,"lodash/lang/isFunction":351,"lodash/lang/isObject":353,"lodash/object/create":357}],413:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLRaw, XMLText, isArray, isEmpty, isFunction, isObject, hasProp = {}.hasOwnProperty; isObject = require('lodash/lang/isObject'); isArray = require('lodash/lang/isArray'); isFunction = require('lodash/lang/isFunction'); isEmpty = require('lodash/lang/isEmpty'); XMLElement = null; XMLCData = null; XMLComment = null; XMLDeclaration = null; XMLDocType = null; XMLRaw = null; XMLText = null; module.exports = XMLNode = (function() { function XMLNode(parent) { this.parent = parent; this.options = this.parent.options; this.stringify = this.parent.stringify; if (XMLElement === null) { XMLElement = require('./XMLElement'); XMLCData = require('./XMLCData'); XMLComment = require('./XMLComment'); XMLDeclaration = require('./XMLDeclaration'); XMLDocType = require('./XMLDocType'); XMLRaw = require('./XMLRaw'); XMLText = require('./XMLText'); } } XMLNode.prototype.clone = function() { throw new Error("Cannot clone generic XMLNode"); }; XMLNode.prototype.element = function(name, attributes, text) { var item, j, key, lastChild, len, ref, val; lastChild = null; if (attributes == null) { attributes = {}; } attributes = attributes.valueOf(); if (!isObject(attributes)) { ref = [attributes, text], text = ref[0], attributes = ref[1]; } if (name != null) { name = name.valueOf(); } if (isArray(name)) { for (j = 0, len = name.length; j < len; j++) { item = name[j]; lastChild = this.element(item); } } else if (isFunction(name)) { lastChild = this.element(name.apply()); } else if (isObject(name)) { for (key in name) { if (!hasProp.call(name, key)) continue; val = name[key]; if (isFunction(val)) { val = val.apply(); } if ((isObject(val)) && (isEmpty(val))) { val = null; } if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) { lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val); } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && key.indexOf(this.stringify.convertPIKey) === 0) { lastChild = this.instruction(key.substr(this.stringify.convertPIKey.length), val); } else if (isObject(val)) { if (!this.options.ignoreDecorators && this.stringify.convertListKey && key.indexOf(this.stringify.convertListKey) === 0 && isArray(val)) { lastChild = this.element(val); } else { lastChild = this.element(key); lastChild.element(val); } } else { lastChild = this.element(key, val); } } } else { if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) { lastChild = this.text(text); } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) { lastChild = this.cdata(text); } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) { lastChild = this.comment(text); } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) { lastChild = this.raw(text); } else { lastChild = this.node(name, attributes, text); } } if (lastChild == null) { throw new Error("Could not create any elements with: " + name); } return lastChild; }; XMLNode.prototype.insertBefore = function(name, attributes, text) { var child, i, removed; if (this.isRoot) { throw new Error("Cannot insert elements at root level"); } i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.element(name, attributes, text); Array.prototype.push.apply(this.parent.children, removed); return child; }; XMLNode.prototype.insertAfter = function(name, attributes, text) { var child, i, removed; if (this.isRoot) { throw new Error("Cannot insert elements at root level"); } i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.element(name, attributes, text); Array.prototype.push.apply(this.parent.children, removed); return child; }; XMLNode.prototype.remove = function() { var i, ref; if (this.isRoot) { throw new Error("Cannot remove the root element"); } i = this.parent.children.indexOf(this); [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref = [])), ref; return this.parent; }; XMLNode.prototype.node = function(name, attributes, text) { var child, ref; if (name != null) { name = name.valueOf(); } if (attributes == null) { attributes = {}; } attributes = attributes.valueOf(); if (!isObject(attributes)) { ref = [attributes, text], text = ref[0], attributes = ref[1]; } child = new XMLElement(this, name, attributes); if (text != null) { child.text(text); } this.children.push(child); return child; }; XMLNode.prototype.text = function(value) { var child; child = new XMLText(this, value); this.children.push(child); return this; }; XMLNode.prototype.cdata = function(value) { var child; child = new XMLCData(this, value); this.children.push(child); return this; }; XMLNode.prototype.comment = function(value) { var child; child = new XMLComment(this, value); this.children.push(child); return this; }; XMLNode.prototype.raw = function(value) { var child; child = new XMLRaw(this, value); this.children.push(child); return this; }; XMLNode.prototype.declaration = function(version, encoding, standalone) { var doc, xmldec; doc = this.document(); xmldec = new XMLDeclaration(doc, version, encoding, standalone); doc.xmldec = xmldec; return doc.root(); }; XMLNode.prototype.doctype = function(pubID, sysID) { var doc, doctype; doc = this.document(); doctype = new XMLDocType(doc, pubID, sysID); doc.doctype = doctype; return doctype; }; XMLNode.prototype.up = function() { if (this.isRoot) { throw new Error("The root node has no parent. Use doc() if you need to get the document object."); } return this.parent; }; XMLNode.prototype.root = function() { var child; if (this.isRoot) { return this; } child = this.parent; while (!child.isRoot) { child = child.parent; } return child; }; XMLNode.prototype.document = function() { return this.root().documentObject; }; XMLNode.prototype.end = function(options) { return this.document().toString(options); }; XMLNode.prototype.prev = function() { var i; if (this.isRoot) { throw new Error("Root node has no siblings"); } i = this.parent.children.indexOf(this); if (i < 1) { throw new Error("Already at the first node"); } return this.parent.children[i - 1]; }; XMLNode.prototype.next = function() { var i; if (this.isRoot) { throw new Error("Root node has no siblings"); } i = this.parent.children.indexOf(this); if (i === -1 || i === this.parent.children.length - 1) { throw new Error("Already at the last node"); } return this.parent.children[i + 1]; }; XMLNode.prototype.importXMLBuilder = function(xmlbuilder) { var clonedRoot; clonedRoot = xmlbuilder.root().clone(); clonedRoot.parent = this; clonedRoot.isRoot = false; this.children.push(clonedRoot); return this; }; XMLNode.prototype.ele = function(name, attributes, text) { return this.element(name, attributes, text); }; XMLNode.prototype.nod = function(name, attributes, text) { return this.node(name, attributes, text); }; XMLNode.prototype.txt = function(value) { return this.text(value); }; XMLNode.prototype.dat = function(value) { return this.cdata(value); }; XMLNode.prototype.com = function(value) { return this.comment(value); }; XMLNode.prototype.doc = function() { return this.document(); }; XMLNode.prototype.dec = function(version, encoding, standalone) { return this.declaration(version, encoding, standalone); }; XMLNode.prototype.dtd = function(pubID, sysID) { return this.doctype(pubID, sysID); }; XMLNode.prototype.e = function(name, attributes, text) { return this.element(name, attributes, text); }; XMLNode.prototype.n = function(name, attributes, text) { return this.node(name, attributes, text); }; XMLNode.prototype.t = function(value) { return this.text(value); }; XMLNode.prototype.d = function(value) { return this.cdata(value); }; XMLNode.prototype.c = function(value) { return this.comment(value); }; XMLNode.prototype.r = function(value) { return this.raw(value); }; XMLNode.prototype.u = function() { return this.up(); }; return XMLNode; })(); }).call(this); },{"./XMLCData":404,"./XMLComment":405,"./XMLDeclaration":410,"./XMLDocType":411,"./XMLElement":412,"./XMLRaw":415,"./XMLText":417,"lodash/lang/isArray":349,"lodash/lang/isEmpty":350,"lodash/lang/isFunction":351,"lodash/lang/isObject":353}],414:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLProcessingInstruction, create; create = require('lodash/object/create'); module.exports = XMLProcessingInstruction = (function() { function XMLProcessingInstruction(parent, target, value) { this.stringify = parent.stringify; if (target == null) { throw new Error("Missing instruction target"); } this.target = this.stringify.insTarget(target); if (value) { this.value = this.stringify.insValue(value); } } XMLProcessingInstruction.prototype.clone = function() { return create(XMLProcessingInstruction.prototype, this); }; XMLProcessingInstruction.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += ''; if (pretty) { r += newline; } return r; }; return XMLProcessingInstruction; })(); }).call(this); },{"lodash/object/create":357}],415:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLNode, XMLRaw, create, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; create = require('lodash/object/create'); XMLNode = require('./XMLNode'); module.exports = XMLRaw = (function(superClass) { extend(XMLRaw, superClass); function XMLRaw(parent, text) { XMLRaw.__super__.constructor.call(this, parent); if (text == null) { throw new Error("Missing raw text"); } this.value = this.stringify.raw(text); } XMLRaw.prototype.clone = function() { return create(XMLRaw.prototype, this); }; XMLRaw.prototype.toString = function(options, level) { var indent, newline, offset, pretty, r, ref, ref1, ref2, space; pretty = (options != null ? options.pretty : void 0) || false; indent = (ref = options != null ? options.indent : void 0) != null ? ref : ' '; offset = (ref1 = options != null ? options.offset : void 0) != null ? ref1 : 0; newline = (ref2 = options != null ? options.newline : void 0) != null ? ref2 : '\n'; level || (level = 0); space = new Array(level + offset + 1).join(indent); r = ''; if (pretty) { r += space; } r += this.value; if (pretty) { r += newline; } return r; }; return XMLRaw; })(XMLNode); }).call(this); },{"./XMLNode":413,"lodash/object/create":357}],416:[function(require,module,exports){ // Generated by CoffeeScript 1.9.1 (function() { var XMLStringifier, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, hasProp = {}.hasOwnProperty; module.exports = XMLStringifier = (function() { function XMLStringifier(options) { this.assertLegalChar = bind(this.assertLegalChar, this); var key, ref, value; this.allowSurrogateChars = options != null ? options.allowSurrogateChars : void 0; ref = (options != null ? options.stringify : void 0) || {}; for (key in ref) { if (!hasProp.call(ref, key)) continue; value = ref[key]; this[key] = value; } } XMLStringifier.prototype.eleName = function(val) { val = '' + val || ''; return this.assertLegalChar(val); }; XMLStringifier.prototype.eleText = function(val) { val = '' + val || ''; return this.assertLegalChar(this.elEscape(val)); }; XMLStringifier.prototype.cdata = function(val) { val = '' + val || ''; if (val.match(/]]>/)) { throw new Error("Invalid CDATA text: " + val); } return this.assertLegalChar(val); }; XMLStringifier.prototype.comment = function(val) { val = '' + val || ''; if (val.match(/--/)) { throw new Error("Comment text cannot contain double-hypen: " + val); } return this.assertLegalChar(val); }; XMLStringifier.prototype.raw = function(val) { return '' + val || ''; }; XMLStringifier.prototype.attName = function(val) { return '' + val || ''; }; XMLStringifier.prototype.attValue = function(val) { val = '' + val || ''; return this.attEscape(val); }; XMLStringifier.prototype.insTarget = function(val) { return '' + val || ''; }; XMLStringifier.prototype.insValue = function(val) { val = '' + val || ''; if (val.match(/\?>/)) { throw new Error("Invalid processing instruction value: " + val); } return val; }; XMLStringifier.prototype.xmlVersion = function(val) { val = '' + val || ''; if (!val.match(/1\.[0-9]+/)) { throw new Error("Invalid version number: " + val); } return val; }; XMLStringifier.prototype.xmlEncoding = function(val) { val = '' + val || ''; if (!val.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/)) { throw new Error("Invalid encoding: " + val); } return val; }; XMLStringifier.prototype.xmlStandalone = function(val) { if (val) { return "yes"; } else { return "no"; } }; XMLStringifier.prototype.dtdPubID = function(val) { return '' + val || ''; }; XMLStringifier.prototype.dtdSysID = function(val) { return '' + val || ''; }; XMLStringifier.prototype.dtdElementValue = function(val) { return '' + val || ''; }; XMLStringifier.prototype.dtdAttType = function(val) { return '' + val || ''; }; XMLStringifier.prototype.dtdAttDefault = function(val) { if (val != null) { return '' + val || ''; } else { return val; } }; XMLStringifier.prototype.dtdEntityValue = function(val) { return '' + val || ''; }; XMLStringifier.prototype.dtdNData = function(val) { return '' + val || ''; }; XMLStringifier.prototype.convertAttKey = '@'; XMLStringifier.prototype.convertPIKey = '?'; XMLStringifier.prototype.convertTextKey = '#text'; XMLStringifier.prototype.convertCDataKey = '#cdata'; XMLStringifier.prototype.convertCommentKey = '#comment'; XMLStringifier.prototype.convertRawKey = '#raw'; XMLStringifier.prototype.convertListKey = '#list'; XMLStringifier.prototype.assertLegalChar = function(str) { var chars, chr; if (this.allowSurrogateChars) { chars = /[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/; } else { chars = /[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/; } chr = str.match(chars); if (chr) { throw new Error("Invalid character (" + chr + ") in string: " + str + " at index " + chr.index); } return str; }; XMLStringifier.prototype.elEscape = function(str) { return str.replace(/&/g, '&').replace(//g, '>').replace(/\r/g, ' '); }; XMLStringifier.prototype.attEscape = function(str) { return str.replace(/&/g, '&').replace(/ 0 && this._events[type].length > m) { this._events[type].warned = true; console.error('(node) warning: possible EventEmitter memory ' + 'leak detected. %d listeners added. ' + 'Use emitter.setMaxListeners() to increase limit.', this._events[type].length); if (typeof console.trace === 'function') { // not supported in IE 10 console.trace(); } } } return this; }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.once = function(type, listener) { if (!isFunction(listener)) throw TypeError('listener must be a function'); var fired = false; function g() { this.removeListener(type, g); if (!fired) { fired = true; listener.apply(this, arguments); } } g.listener = listener; this.on(type, g); return this; }; // emits a 'removeListener' event iff the listener was removed EventEmitter.prototype.removeListener = function(type, listener) { var list, position, length, i; if (!isFunction(listener)) throw TypeError('listener must be a function'); if (!this._events || !this._events[type]) return this; list = this._events[type]; length = list.length; position = -1; if (list === listener || (isFunction(list.listener) && list.listener === listener)) { delete this._events[type]; if (this._events.removeListener) this.emit('removeListener', type, listener); } else if (isObject(list)) { for (i = length; i-- > 0;) { if (list[i] === listener || (list[i].listener && list[i].listener === listener)) { position = i; break; } } if (position < 0) return this; if (list.length === 1) { list.length = 0; delete this._events[type]; } else { list.splice(position, 1); } if (this._events.removeListener) this.emit('removeListener', type, listener); } return this; }; EventEmitter.prototype.removeAllListeners = function(type) { var key, listeners; if (!this._events) return this; // not listening for removeListener, no need to emit if (!this._events.removeListener) { if (arguments.length === 0) this._events = {}; else if (this._events[type]) delete this._events[type]; return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { for (key in this._events) { if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = {}; return this; } listeners = this._events[type]; if (isFunction(listeners)) { this.removeListener(type, listeners); } else if (listeners) { // LIFO order while (listeners.length) this.removeListener(type, listeners[listeners.length - 1]); } delete this._events[type]; return this; }; EventEmitter.prototype.listeners = function(type) { var ret; if (!this._events || !this._events[type]) ret = []; else if (isFunction(this._events[type])) ret = [this._events[type]]; else ret = this._events[type].slice(); return ret; }; EventEmitter.prototype.listenerCount = function(type) { if (this._events) { var evlistener = this._events[type]; if (isFunction(evlistener)) return 1; else if (evlistener) return evlistener.length; } return 0; }; EventEmitter.listenerCount = function(emitter, type) { return emitter.listenerCount(type); }; function isFunction(arg) { return typeof arg === 'function'; } function isNumber(arg) { return typeof arg === 'number'; } function isObject(arg) { return typeof arg === 'object' && arg !== null; } function isUndefined(arg) { return arg === void 0; } },{}],427:[function(require,module,exports){ arguments[4][311][0].apply(exports,arguments) },{"dup":311}],428:[function(require,module,exports){ arguments[4][312][0].apply(exports,arguments) },{"dup":312}],429:[function(require,module,exports){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ // The _isBuffer check is for Safari 5-7 support, because it's missing // Object.prototype.constructor. Remove this eventually module.exports = function (obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) } function isBuffer (obj) { return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) } // For Node v0.10 support. Remove this eventually. function isSlowBuffer (obj) { return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) } },{}],430:[function(require,module,exports){ arguments[4][313][0].apply(exports,arguments) },{"dup":313}],431:[function(require,module,exports){ arguments[4][376][0].apply(exports,arguments) },{"_process":432,"dup":376}],432:[function(require,module,exports){ // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; },{}],433:[function(require,module,exports){ (function (global){ /*! https://mths.be/punycode v1.4.1 by @mathias */ ;(function(root) { /** Detect free variables */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; var freeModule = typeof module == 'object' && module && !module.nodeType && module; var freeGlobal = typeof global == 'object' && global; if ( freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal ) { root = freeGlobal; } /** * The `punycode` object. * @name punycode * @type Object */ var punycode, /** Highest positive signed 32-bit float value */ maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1 /** Bootstring parameters */ base = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, // 0x80 delimiter = '-', // '\x2D' /** Regular expressions */ regexPunycode = /^xn--/, regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators /** Error messages */ errors = { 'overflow': 'Overflow: input needs wider integers to process', 'not-basic': 'Illegal input >= 0x80 (not a basic code point)', 'invalid-input': 'Invalid input' }, /** Convenience shortcuts */ baseMinusTMin = base - tMin, floor = Math.floor, stringFromCharCode = String.fromCharCode, /** Temporary variable */ key; /*--------------------------------------------------------------------------*/ /** * A generic error utility function. * @private * @param {String} type The error type. * @returns {Error} Throws a `RangeError` with the applicable error message. */ function error(type) { throw new RangeError(errors[type]); } /** * A generic `Array#map` utility function. * @private * @param {Array} array The array to iterate over. * @param {Function} callback The function that gets called for every array * item. * @returns {Array} A new array of values returned by the callback function. */ function map(array, fn) { var length = array.length; var result = []; while (length--) { result[length] = fn(array[length]); } return result; } /** * A simple `Array#map`-like wrapper to work with domain name strings or email * addresses. * @private * @param {String} domain The domain name or email address. * @param {Function} callback The function that gets called for every * character. * @returns {Array} A new string of characters returned by the callback * function. */ function mapDomain(string, fn) { var parts = string.split('@'); var result = ''; if (parts.length > 1) { // In email addresses, only the domain name should be punycoded. Leave // the local part (i.e. everything up to `@`) intact. result = parts[0] + '@'; string = parts[1]; } // Avoid `split(regex)` for IE8 compatibility. See #17. string = string.replace(regexSeparators, '\x2E'); var labels = string.split('.'); var encoded = map(labels, fn).join('.'); return result + encoded; } /** * Creates an array containing the numeric code points of each Unicode * character in the string. While JavaScript uses UCS-2 internally, * this function will convert a pair of surrogate halves (each of which * UCS-2 exposes as separate characters) into a single code point, * matching UTF-16. * @see `punycode.ucs2.encode` * @see * @memberOf punycode.ucs2 * @name decode * @param {String} string The Unicode input string (UCS-2). * @returns {Array} The new array of code points. */ function ucs2decode(string) { var output = [], counter = 0, length = string.length, value, extra; while (counter < length) { value = string.charCodeAt(counter++); if (value >= 0xD800 && value <= 0xDBFF && counter < length) { // high surrogate, and there is a next character extra = string.charCodeAt(counter++); if ((extra & 0xFC00) == 0xDC00) { // low surrogate output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); } else { // unmatched surrogate; only append this code unit, in case the next // code unit is the high surrogate of a surrogate pair output.push(value); counter--; } } else { output.push(value); } } return output; } /** * Creates a string based on an array of numeric code points. * @see `punycode.ucs2.decode` * @memberOf punycode.ucs2 * @name encode * @param {Array} codePoints The array of numeric code points. * @returns {String} The new Unicode string (UCS-2). */ function ucs2encode(array) { return map(array, function(value) { var output = ''; if (value > 0xFFFF) { value -= 0x10000; output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800); value = 0xDC00 | value & 0x3FF; } output += stringFromCharCode(value); return output; }).join(''); } /** * Converts a basic code point into a digit/integer. * @see `digitToBasic()` * @private * @param {Number} codePoint The basic numeric code point value. * @returns {Number} The numeric value of a basic code point (for use in * representing integers) in the range `0` to `base - 1`, or `base` if * the code point does not represent a value. */ function basicToDigit(codePoint) { if (codePoint - 48 < 10) { return codePoint - 22; } if (codePoint - 65 < 26) { return codePoint - 65; } if (codePoint - 97 < 26) { return codePoint - 97; } return base; } /** * Converts a digit/integer into a basic code point. * @see `basicToDigit()` * @private * @param {Number} digit The numeric value of a basic code point. * @returns {Number} The basic code point whose value (when used for * representing integers) is `digit`, which needs to be in the range * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is * used; else, the lowercase form is used. The behavior is undefined * if `flag` is non-zero and `digit` has no uppercase form. */ function digitToBasic(digit, flag) { // 0..25 map to ASCII a..z or A..Z // 26..35 map to ASCII 0..9 return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); } /** * Bias adaptation function as per section 3.4 of RFC 3492. * https://tools.ietf.org/html/rfc3492#section-3.4 * @private */ function adapt(delta, numPoints, firstTime) { var k = 0; delta = firstTime ? floor(delta / damp) : delta >> 1; delta += floor(delta / numPoints); for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) { delta = floor(delta / baseMinusTMin); } return floor(k + (baseMinusTMin + 1) * delta / (delta + skew)); } /** * Converts a Punycode string of ASCII-only symbols to a string of Unicode * symbols. * @memberOf punycode * @param {String} input The Punycode string of ASCII-only symbols. * @returns {String} The resulting string of Unicode symbols. */ function decode(input) { // Don't use UCS-2 var output = [], inputLength = input.length, out, i = 0, n = initialN, bias = initialBias, basic, j, index, oldi, w, k, digit, t, /** Cached calculation results */ baseMinusT; // Handle the basic code points: let `basic` be the number of input code // points before the last delimiter, or `0` if there is none, then copy // the first basic code points to the output. basic = input.lastIndexOf(delimiter); if (basic < 0) { basic = 0; } for (j = 0; j < basic; ++j) { // if it's not a basic code point if (input.charCodeAt(j) >= 0x80) { error('not-basic'); } output.push(input.charCodeAt(j)); } // Main decoding loop: start just after the last delimiter if any basic code // points were copied; start at the beginning otherwise. for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) { // `index` is the index of the next character to be consumed. // Decode a generalized variable-length integer into `delta`, // which gets added to `i`. The overflow checking is easier // if we increase `i` as we go, then subtract off its starting // value at the end to obtain `delta`. for (oldi = i, w = 1, k = base; /* no condition */; k += base) { if (index >= inputLength) { error('invalid-input'); } digit = basicToDigit(input.charCodeAt(index++)); if (digit >= base || digit > floor((maxInt - i) / w)) { error('overflow'); } i += digit * w; t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (digit < t) { break; } baseMinusT = base - t; if (w > floor(maxInt / baseMinusT)) { error('overflow'); } w *= baseMinusT; } out = output.length + 1; bias = adapt(i - oldi, out, oldi == 0); // `i` was supposed to wrap around from `out` to `0`, // incrementing `n` each time, so we'll fix that now: if (floor(i / out) > maxInt - n) { error('overflow'); } n += floor(i / out); i %= out; // Insert `n` at position `i` of the output output.splice(i++, 0, n); } return ucs2encode(output); } /** * Converts a string of Unicode symbols (e.g. a domain name label) to a * Punycode string of ASCII-only symbols. * @memberOf punycode * @param {String} input The string of Unicode symbols. * @returns {String} The resulting Punycode string of ASCII-only symbols. */ function encode(input) { var n, delta, handledCPCount, basicLength, bias, j, m, q, k, t, currentValue, output = [], /** `inputLength` will hold the number of code points in `input`. */ inputLength, /** Cached calculation results */ handledCPCountPlusOne, baseMinusT, qMinusT; // Convert the input in UCS-2 to Unicode input = ucs2decode(input); // Cache the length inputLength = input.length; // Initialize the state n = initialN; delta = 0; bias = initialBias; // Handle the basic code points for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < 0x80) { output.push(stringFromCharCode(currentValue)); } } handledCPCount = basicLength = output.length; // `handledCPCount` is the number of code points that have been handled; // `basicLength` is the number of basic code points. // Finish the basic string - if it is not empty - with a delimiter if (basicLength) { output.push(delimiter); } // Main encoding loop: while (handledCPCount < inputLength) { // All non-basic code points < n have been handled already. Find the next // larger one: for (m = maxInt, j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue >= n && currentValue < m) { m = currentValue; } } // Increase `delta` enough to advance the decoder's state to , // but guard against overflow handledCPCountPlusOne = handledCPCount + 1; if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { error('overflow'); } delta += (m - n) * handledCPCountPlusOne; n = m; for (j = 0; j < inputLength; ++j) { currentValue = input[j]; if (currentValue < n && ++delta > maxInt) { error('overflow'); } if (currentValue == n) { // Represent delta as a generalized variable-length integer for (q = delta, k = base; /* no condition */; k += base) { t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (q < t) { break; } qMinusT = q - t; baseMinusT = base - t; output.push( stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)) ); q = floor(qMinusT / baseMinusT); } output.push(stringFromCharCode(digitToBasic(q, 0))); bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); delta = 0; ++handledCPCount; } } ++delta; ++n; } return output.join(''); } /** * Converts a Punycode string representing a domain name or an email address * to Unicode. Only the Punycoded parts of the input will be converted, i.e. * it doesn't matter if you call it on a string that has already been * converted to Unicode. * @memberOf punycode * @param {String} input The Punycoded domain name or email address to * convert to Unicode. * @returns {String} The Unicode representation of the given Punycode * string. */ function toUnicode(input) { return mapDomain(input, function(string) { return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string; }); } /** * Converts a Unicode string representing a domain name or an email address to * Punycode. Only the non-ASCII parts of the domain name will be converted, * i.e. it doesn't matter if you call it with a domain that's already in * ASCII. * @memberOf punycode * @param {String} input The domain name or email address to convert, as a * Unicode string. * @returns {String} The Punycode representation of the given domain name or * email address. */ function toASCII(input) { return mapDomain(input, function(string) { return regexNonASCII.test(string) ? 'xn--' + encode(string) : string; }); } /*--------------------------------------------------------------------------*/ /** Define the public API */ punycode = { /** * A string representing the current Punycode.js version number. * @memberOf punycode * @type String */ 'version': '1.4.1', /** * An object of methods to convert from JavaScript's internal character * representation (UCS-2) to Unicode code points, and back. * @see * @memberOf punycode * @type Object */ 'ucs2': { 'decode': ucs2decode, 'encode': ucs2encode }, 'decode': decode, 'encode': encode, 'toASCII': toASCII, 'toUnicode': toUnicode }; /** Expose `punycode` */ // Some AMD build optimizers, like r.js, check for specific condition patterns // like the following: if ( typeof define == 'function' && typeof define.amd == 'object' && define.amd ) { define('punycode', function() { return punycode; }); } else if (freeExports && freeModule) { if (module.exports == freeExports) { // in Node.js, io.js, or RingoJS v0.8.0+ freeModule.exports = punycode; } else { // in Narwhal or RingoJS v0.7.0- for (key in punycode) { punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]); } } } else { // in Rhino or a web browser root.punycode = punycode; } }(this)); }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],434:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; // If obj.hasOwnProperty has been overridden, then calling // obj.hasOwnProperty(prop) will break. // See: https://github.com/joyent/node/issues/1707 function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } module.exports = function(qs, sep, eq, options) { sep = sep || '&'; eq = eq || '='; var obj = {}; if (typeof qs !== 'string' || qs.length === 0) { return obj; } var regexp = /\+/g; qs = qs.split(sep); var maxKeys = 1000; if (options && typeof options.maxKeys === 'number') { maxKeys = options.maxKeys; } var len = qs.length; // maxKeys <= 0 means that we should not limit keys count if (maxKeys > 0 && len > maxKeys) { len = maxKeys; } for (var i = 0; i < len; ++i) { var x = qs[i].replace(regexp, '%20'), idx = x.indexOf(eq), kstr, vstr, k, v; if (idx >= 0) { kstr = x.substr(0, idx); vstr = x.substr(idx + 1); } else { kstr = x; vstr = ''; } k = decodeURIComponent(kstr); v = decodeURIComponent(vstr); if (!hasOwnProperty(obj, k)) { obj[k] = v; } else if (isArray(obj[k])) { obj[k].push(v); } else { obj[k] = [obj[k], v]; } } return obj; }; var isArray = Array.isArray || function (xs) { return Object.prototype.toString.call(xs) === '[object Array]'; }; },{}],435:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; var stringifyPrimitive = function(v) { switch (typeof v) { case 'string': return v; case 'boolean': return v ? 'true' : 'false'; case 'number': return isFinite(v) ? v : ''; default: return ''; } }; module.exports = function(obj, sep, eq, name) { sep = sep || '&'; eq = eq || '='; if (obj === null) { obj = undefined; } if (typeof obj === 'object') { return map(objectKeys(obj), function(k) { var ks = encodeURIComponent(stringifyPrimitive(k)) + eq; if (isArray(obj[k])) { return map(obj[k], function(v) { return ks + encodeURIComponent(stringifyPrimitive(v)); }).join(sep); } else { return ks + encodeURIComponent(stringifyPrimitive(obj[k])); } }).join(sep); } if (!name) return ''; return encodeURIComponent(stringifyPrimitive(name)) + eq + encodeURIComponent(stringifyPrimitive(obj)); }; var isArray = Array.isArray || function (xs) { return Object.prototype.toString.call(xs) === '[object Array]'; }; function map (xs, f) { if (xs.map) return xs.map(f); var res = []; for (var i = 0; i < xs.length; i++) { res.push(f(xs[i], i)); } return res; } var objectKeys = Object.keys || function (obj) { var res = []; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key); } return res; }; },{}],436:[function(require,module,exports){ arguments[4][379][0].apply(exports,arguments) },{"./decode":434,"./encode":435,"dup":379}],437:[function(require,module,exports){ arguments[4][380][0].apply(exports,arguments) },{"./lib/_stream_duplex.js":438,"dup":380}],438:[function(require,module,exports){ arguments[4][303][0].apply(exports,arguments) },{"./_stream_readable":440,"./_stream_writable":442,"core-util-is":425,"dup":303,"inherits":428,"process-nextick-args":431}],439:[function(require,module,exports){ arguments[4][304][0].apply(exports,arguments) },{"./_stream_transform":441,"core-util-is":425,"dup":304,"inherits":428}],440:[function(require,module,exports){ arguments[4][305][0].apply(exports,arguments) },{"./_stream_duplex":438,"./internal/streams/BufferList":443,"_process":432,"buffer":424,"buffer-shims":423,"core-util-is":425,"dup":305,"events":426,"inherits":428,"isarray":430,"process-nextick-args":431,"string_decoder/":449,"util":421}],441:[function(require,module,exports){ arguments[4][306][0].apply(exports,arguments) },{"./_stream_duplex":438,"core-util-is":425,"dup":306,"inherits":428}],442:[function(require,module,exports){ arguments[4][307][0].apply(exports,arguments) },{"./_stream_duplex":438,"_process":432,"buffer":424,"buffer-shims":423,"core-util-is":425,"dup":307,"events":426,"inherits":428,"process-nextick-args":431,"util-deprecate":452}],443:[function(require,module,exports){ arguments[4][308][0].apply(exports,arguments) },{"buffer":424,"buffer-shims":423,"dup":308}],444:[function(require,module,exports){ module.exports = require("./lib/_stream_passthrough.js") },{"./lib/_stream_passthrough.js":439}],445:[function(require,module,exports){ arguments[4][309][0].apply(exports,arguments) },{"./lib/_stream_duplex.js":438,"./lib/_stream_passthrough.js":439,"./lib/_stream_readable.js":440,"./lib/_stream_transform.js":441,"./lib/_stream_writable.js":442,"_process":432,"dup":309}],446:[function(require,module,exports){ arguments[4][395][0].apply(exports,arguments) },{"./lib/_stream_transform.js":441,"dup":395}],447:[function(require,module,exports){ module.exports = require("./lib/_stream_writable.js") },{"./lib/_stream_writable.js":442}],448:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. module.exports = Stream; var EE = require('events').EventEmitter; var inherits = require('inherits'); inherits(Stream, EE); Stream.Readable = require('readable-stream/readable.js'); Stream.Writable = require('readable-stream/writable.js'); Stream.Duplex = require('readable-stream/duplex.js'); Stream.Transform = require('readable-stream/transform.js'); Stream.PassThrough = require('readable-stream/passthrough.js'); // Backwards-compat with node 0.4.x Stream.Stream = Stream; // old-style streams. Note that the pipe method (the only relevant // part of this class) is overridden in the Readable class. function Stream() { EE.call(this); } Stream.prototype.pipe = function(dest, options) { var source = this; function ondata(chunk) { if (dest.writable) { if (false === dest.write(chunk) && source.pause) { source.pause(); } } } source.on('data', ondata); function ondrain() { if (source.readable && source.resume) { source.resume(); } } dest.on('drain', ondrain); // If the 'end' option is not supplied, dest.end() will be called when // source gets the 'end' or 'close' events. Only dest.end() once. if (!dest._isStdio && (!options || options.end !== false)) { source.on('end', onend); source.on('close', onclose); } var didOnEnd = false; function onend() { if (didOnEnd) return; didOnEnd = true; dest.end(); } function onclose() { if (didOnEnd) return; didOnEnd = true; if (typeof dest.destroy === 'function') dest.destroy(); } // don't leave dangling pipes when there are errors. function onerror(er) { cleanup(); if (EE.listenerCount(this, 'error') === 0) { throw er; // Unhandled stream error in pipe. } } source.on('error', onerror); dest.on('error', onerror); // remove all the event listeners that were added. function cleanup() { source.removeListener('data', ondata); dest.removeListener('drain', ondrain); source.removeListener('end', onend); source.removeListener('close', onclose); source.removeListener('error', onerror); dest.removeListener('error', onerror); source.removeListener('end', cleanup); source.removeListener('close', cleanup); dest.removeListener('close', cleanup); } source.on('end', cleanup); source.on('close', cleanup); dest.on('close', cleanup); dest.emit('pipe', source); // Allow for unix-like usage: A.pipe(B).pipe(C) return dest; }; },{"events":426,"inherits":428,"readable-stream/duplex.js":437,"readable-stream/passthrough.js":444,"readable-stream/readable.js":445,"readable-stream/transform.js":446,"readable-stream/writable.js":447}],449:[function(require,module,exports){ arguments[4][390][0].apply(exports,arguments) },{"buffer":424,"dup":390}],450:[function(require,module,exports){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. 'use strict'; var punycode = require('punycode'); var util = require('./util'); exports.parse = urlParse; exports.resolve = urlResolve; exports.resolveObject = urlResolveObject; exports.format = urlFormat; exports.Url = Url; function Url() { this.protocol = null; this.slashes = null; this.auth = null; this.host = null; this.port = null; this.hostname = null; this.hash = null; this.search = null; this.query = null; this.pathname = null; this.path = null; this.href = null; } // Reference: RFC 3986, RFC 1808, RFC 2396 // define these here so at least they only have to be // compiled once on the first module load. var protocolPattern = /^([a-z0-9.+-]+:)/i, portPattern = /:[0-9]*$/, // Special case for a simple path URL simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, // RFC 2396: characters reserved for delimiting URLs. // We actually just auto-escape these. delims = ['<', '>', '"', '`', ' ', '\r', '\n', '\t'], // RFC 2396: characters not allowed for various reasons. unwise = ['{', '}', '|', '\\', '^', '`'].concat(delims), // Allowed by RFCs, but cause of XSS attacks. Always escape these. autoEscape = ['\''].concat(unwise), // Characters that are never ever allowed in a hostname. // Note that any invalid chars are also handled, but these // are the ones that are *expected* to be seen, so we fast-path // them. nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape), hostEndingChars = ['/', '?', '#'], hostnameMaxLen = 255, hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/, hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, // protocols that can allow "unsafe" and "unwise" chars. unsafeProtocol = { 'javascript': true, 'javascript:': true }, // protocols that never have a hostname. hostlessProtocol = { 'javascript': true, 'javascript:': true }, // protocols that always contain a // bit. slashedProtocol = { 'http': true, 'https': true, 'ftp': true, 'gopher': true, 'file': true, 'http:': true, 'https:': true, 'ftp:': true, 'gopher:': true, 'file:': true }, querystring = require('querystring'); function urlParse(url, parseQueryString, slashesDenoteHost) { if (url && util.isObject(url) && url instanceof Url) return url; var u = new Url; u.parse(url, parseQueryString, slashesDenoteHost); return u; } Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { if (!util.isString(url)) { throw new TypeError("Parameter 'url' must be a string, not " + typeof url); } // Copy chrome, IE, opera backslash-handling behavior. // Back slashes before the query string get converted to forward slashes // See: https://code.google.com/p/chromium/issues/detail?id=25916 var queryIndex = url.indexOf('?'), splitter = (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', uSplit = url.split(splitter), slashRegex = /\\/g; uSplit[0] = uSplit[0].replace(slashRegex, '/'); url = uSplit.join(splitter); var rest = url; // trim before proceeding. // This is to support parse stuff like " http://foo.com \n" rest = rest.trim(); if (!slashesDenoteHost && url.split('#').length === 1) { // Try fast path regexp var simplePath = simplePathPattern.exec(rest); if (simplePath) { this.path = rest; this.href = rest; this.pathname = simplePath[1]; if (simplePath[2]) { this.search = simplePath[2]; if (parseQueryString) { this.query = querystring.parse(this.search.substr(1)); } else { this.query = this.search.substr(1); } } else if (parseQueryString) { this.search = ''; this.query = {}; } return this; } } var proto = protocolPattern.exec(rest); if (proto) { proto = proto[0]; var lowerProto = proto.toLowerCase(); this.protocol = lowerProto; rest = rest.substr(proto.length); } // figure out if it's got a host // user@server is *always* interpreted as a hostname, and url // resolution will treat //foo/bar as host=foo,path=bar because that's // how the browser resolves relative URLs. if (slashesDenoteHost || proto || rest.match(/^\/\/[^@\/]+@[^@\/]+/)) { var slashes = rest.substr(0, 2) === '//'; if (slashes && !(proto && hostlessProtocol[proto])) { rest = rest.substr(2); this.slashes = true; } } if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) { // there's a hostname. // the first instance of /, ?, ;, or # ends the host. // // If there is an @ in the hostname, then non-host chars *are* allowed // to the left of the last @ sign, unless some host-ending character // comes *before* the @-sign. // URLs are obnoxious. // // ex: // http://a@b@c/ => user:a@b host:c // http://a@b?@c => user:a host:c path:/?@c // v0.12 TODO(isaacs): This is not quite how Chrome does things. // Review our test case against browsers more comprehensively. // find the first instance of any hostEndingChars var hostEnd = -1; for (var i = 0; i < hostEndingChars.length; i++) { var hec = rest.indexOf(hostEndingChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // at this point, either we have an explicit point where the // auth portion cannot go past, or the last @ char is the decider. var auth, atSign; if (hostEnd === -1) { // atSign can be anywhere. atSign = rest.lastIndexOf('@'); } else { // atSign must be in auth portion. // http://a@b/c@d => host:b auth:a path:/c@d atSign = rest.lastIndexOf('@', hostEnd); } // Now we have a portion which is definitely the auth. // Pull that off. if (atSign !== -1) { auth = rest.slice(0, atSign); rest = rest.slice(atSign + 1); this.auth = decodeURIComponent(auth); } // the host is the remaining to the left of the first non-host char hostEnd = -1; for (var i = 0; i < nonHostChars.length; i++) { var hec = rest.indexOf(nonHostChars[i]); if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) hostEnd = hec; } // if we still have not hit it, then the entire thing is a host. if (hostEnd === -1) hostEnd = rest.length; this.host = rest.slice(0, hostEnd); rest = rest.slice(hostEnd); // pull out port. this.parseHost(); // we've indicated that there is a hostname, // so even if it's empty, it has to be present. this.hostname = this.hostname || ''; // if hostname begins with [ and ends with ] // assume that it's an IPv6 address. var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']'; // validate a little. if (!ipv6Hostname) { var hostparts = this.hostname.split(/\./); for (var i = 0, l = hostparts.length; i < l; i++) { var part = hostparts[i]; if (!part) continue; if (!part.match(hostnamePartPattern)) { var newpart = ''; for (var j = 0, k = part.length; j < k; j++) { if (part.charCodeAt(j) > 127) { // we replace non-ASCII char with a temporary placeholder // we need this to make sure size of hostname is not // broken by replacing non-ASCII by nothing newpart += 'x'; } else { newpart += part[j]; } } // we test again with ASCII char only if (!newpart.match(hostnamePartPattern)) { var validParts = hostparts.slice(0, i); var notHost = hostparts.slice(i + 1); var bit = part.match(hostnamePartStart); if (bit) { validParts.push(bit[1]); notHost.unshift(bit[2]); } if (notHost.length) { rest = '/' + notHost.join('.') + rest; } this.hostname = validParts.join('.'); break; } } } } if (this.hostname.length > hostnameMaxLen) { this.hostname = ''; } else { // hostnames are always lower case. this.hostname = this.hostname.toLowerCase(); } if (!ipv6Hostname) { // IDNA Support: Returns a punycoded representation of "domain". // It only converts parts of the domain name that // have non-ASCII characters, i.e. it doesn't matter if // you call it with a domain that already is ASCII-only. this.hostname = punycode.toASCII(this.hostname); } var p = this.port ? ':' + this.port : ''; var h = this.hostname || ''; this.host = h + p; this.href += this.host; // strip [ and ] from the hostname // the host field still retains them, though if (ipv6Hostname) { this.hostname = this.hostname.substr(1, this.hostname.length - 2); if (rest[0] !== '/') { rest = '/' + rest; } } } // now rest is set to the post-host stuff. // chop off any delim chars. if (!unsafeProtocol[lowerProto]) { // First, make 100% sure that any "autoEscape" chars get // escaped, even if encodeURIComponent doesn't think they // need to be. for (var i = 0, l = autoEscape.length; i < l; i++) { var ae = autoEscape[i]; if (rest.indexOf(ae) === -1) continue; var esc = encodeURIComponent(ae); if (esc === ae) { esc = escape(ae); } rest = rest.split(ae).join(esc); } } // chop off from the tail first. var hash = rest.indexOf('#'); if (hash !== -1) { // got a fragment string. this.hash = rest.substr(hash); rest = rest.slice(0, hash); } var qm = rest.indexOf('?'); if (qm !== -1) { this.search = rest.substr(qm); this.query = rest.substr(qm + 1); if (parseQueryString) { this.query = querystring.parse(this.query); } rest = rest.slice(0, qm); } else if (parseQueryString) { // no query string, but parseQueryString still requested this.search = ''; this.query = {}; } if (rest) this.pathname = rest; if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) { this.pathname = '/'; } //to support http.request if (this.pathname || this.search) { var p = this.pathname || ''; var s = this.search || ''; this.path = p + s; } // finally, reconstruct the href based on what has been validated. this.href = this.format(); return this; }; // format a parsed object into a url string function urlFormat(obj) { // ensure it's an object, and not a string url. // If it's an obj, this is a no-op. // this way, you can call url_format() on strings // to clean up potentially wonky urls. if (util.isString(obj)) obj = urlParse(obj); if (!(obj instanceof Url)) return Url.prototype.format.call(obj); return obj.format(); } Url.prototype.format = function() { var auth = this.auth || ''; if (auth) { auth = encodeURIComponent(auth); auth = auth.replace(/%3A/i, ':'); auth += '@'; } var protocol = this.protocol || '', pathname = this.pathname || '', hash = this.hash || '', host = false, query = ''; if (this.host) { host = auth + this.host; } else if (this.hostname) { host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']'); if (this.port) { host += ':' + this.port; } } if (this.query && util.isObject(this.query) && Object.keys(this.query).length) { query = querystring.stringify(this.query); } var search = this.search || (query && ('?' + query)) || ''; if (protocol && protocol.substr(-1) !== ':') protocol += ':'; // only the slashedProtocols get the //. Not mailto:, xmpp:, etc. // unless they had them to begin with. if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) { host = '//' + (host || ''); if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname; } else if (!host) { host = ''; } if (hash && hash.charAt(0) !== '#') hash = '#' + hash; if (search && search.charAt(0) !== '?') search = '?' + search; pathname = pathname.replace(/[?#]/g, function(match) { return encodeURIComponent(match); }); search = search.replace('#', '%23'); return protocol + host + pathname + search + hash; }; function urlResolve(source, relative) { return urlParse(source, false, true).resolve(relative); } Url.prototype.resolve = function(relative) { return this.resolveObject(urlParse(relative, false, true)).format(); }; function urlResolveObject(source, relative) { if (!source) return relative; return urlParse(source, false, true).resolveObject(relative); } Url.prototype.resolveObject = function(relative) { if (util.isString(relative)) { var rel = new Url(); rel.parse(relative, false, true); relative = rel; } var result = new Url(); var tkeys = Object.keys(this); for (var tk = 0; tk < tkeys.length; tk++) { var tkey = tkeys[tk]; result[tkey] = this[tkey]; } // hash is always overridden, no matter what. // even href="" will remove it. result.hash = relative.hash; // if the relative url is empty, then there's nothing left to do here. if (relative.href === '') { result.href = result.format(); return result; } // hrefs like //foo/bar always cut to the protocol. if (relative.slashes && !relative.protocol) { // take everything except the protocol from relative var rkeys = Object.keys(relative); for (var rk = 0; rk < rkeys.length; rk++) { var rkey = rkeys[rk]; if (rkey !== 'protocol') result[rkey] = relative[rkey]; } //urlParse appends trailing / to urls like http://www.example.com if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { result.path = result.pathname = '/'; } result.href = result.format(); return result; } if (relative.protocol && relative.protocol !== result.protocol) { // if it's a known url protocol, then changing // the protocol does weird things // first, if it's not file:, then we MUST have a host, // and if there was a path // to begin with, then we MUST have a path. // if it is file:, then the host is dropped, // because that's known to be hostless. // anything else is assumed to be absolute. if (!slashedProtocol[relative.protocol]) { var keys = Object.keys(relative); for (var v = 0; v < keys.length; v++) { var k = keys[v]; result[k] = relative[k]; } result.href = result.format(); return result; } result.protocol = relative.protocol; if (!relative.host && !hostlessProtocol[relative.protocol]) { var relPath = (relative.pathname || '').split('/'); while (relPath.length && !(relative.host = relPath.shift())); if (!relative.host) relative.host = ''; if (!relative.hostname) relative.hostname = ''; if (relPath[0] !== '') relPath.unshift(''); if (relPath.length < 2) relPath.unshift(''); result.pathname = relPath.join('/'); } else { result.pathname = relative.pathname; } result.search = relative.search; result.query = relative.query; result.host = relative.host || ''; result.auth = relative.auth; result.hostname = relative.hostname || relative.host; result.port = relative.port; // to support http.request if (result.pathname || result.search) { var p = result.pathname || ''; var s = result.search || ''; result.path = p + s; } result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; } var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'), isRelAbs = ( relative.host || relative.pathname && relative.pathname.charAt(0) === '/' ), mustEndAbs = (isRelAbs || isSourceAbs || (result.host && relative.pathname)), removeAllDots = mustEndAbs, srcPath = result.pathname && result.pathname.split('/') || [], relPath = relative.pathname && relative.pathname.split('/') || [], psychotic = result.protocol && !slashedProtocol[result.protocol]; // if the url is a non-slashed url, then relative // links like ../.. should be able // to crawl up to the hostname, as well. This is strange. // result.protocol has already been set by now. // Later on, put the first path part into the host field. if (psychotic) { result.hostname = ''; result.port = null; if (result.host) { if (srcPath[0] === '') srcPath[0] = result.host; else srcPath.unshift(result.host); } result.host = ''; if (relative.protocol) { relative.hostname = null; relative.port = null; if (relative.host) { if (relPath[0] === '') relPath[0] = relative.host; else relPath.unshift(relative.host); } relative.host = null; } mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === ''); } if (isRelAbs) { // it's absolute. result.host = (relative.host || relative.host === '') ? relative.host : result.host; result.hostname = (relative.hostname || relative.hostname === '') ? relative.hostname : result.hostname; result.search = relative.search; result.query = relative.query; srcPath = relPath; // fall through to the dot-handling below. } else if (relPath.length) { // it's relative // throw away the existing file, and take the new path instead. if (!srcPath) srcPath = []; srcPath.pop(); srcPath = srcPath.concat(relPath); result.search = relative.search; result.query = relative.query; } else if (!util.isNullOrUndefined(relative.search)) { // just pull out the search. // like href='?foo'. // Put this after the other two cases because it simplifies the booleans if (psychotic) { result.hostname = result.host = srcPath.shift(); //occationaly the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } result.search = relative.search; result.query = relative.query; //to support http.request if (!util.isNull(result.pathname) || !util.isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.href = result.format(); return result; } if (!srcPath.length) { // no path at all. easy. // we've already handled the other stuff above. result.pathname = null; //to support http.request if (result.search) { result.path = '/' + result.search; } else { result.path = null; } result.href = result.format(); return result; } // if a url ENDs in . or .., then it must get a trailing slash. // however, if it ends in anything else non-slashy, // then it must NOT get a trailing slash. var last = srcPath.slice(-1)[0]; var hasTrailingSlash = ( (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === ''); // strip single dots, resolve double dots to parent dir // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = srcPath.length; i >= 0; i--) { last = srcPath[i]; if (last === '.') { srcPath.splice(i, 1); } else if (last === '..') { srcPath.splice(i, 1); up++; } else if (up) { srcPath.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (!mustEndAbs && !removeAllDots) { for (; up--; up) { srcPath.unshift('..'); } } if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) { srcPath.unshift(''); } if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) { srcPath.push(''); } var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/'); // put the host back if (psychotic) { result.hostname = result.host = isAbsolute ? '' : srcPath.length ? srcPath.shift() : ''; //occationaly the auth can get stuck only in host //this especially happens in cases like //url.resolveObject('mailto:local1@domain1', 'local2@domain2') var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false; if (authInHost) { result.auth = authInHost.shift(); result.host = result.hostname = authInHost.shift(); } } mustEndAbs = mustEndAbs || (result.host && srcPath.length); if (mustEndAbs && !isAbsolute) { srcPath.unshift(''); } if (!srcPath.length) { result.pathname = null; result.path = null; } else { result.pathname = srcPath.join('/'); } //to support request.http if (!util.isNull(result.pathname) || !util.isNull(result.search)) { result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : ''); } result.auth = relative.auth || result.auth; result.slashes = result.slashes || relative.slashes; result.href = result.format(); return result; }; Url.prototype.parseHost = function() { var host = this.host; var port = portPattern.exec(host); if (port) { port = port[0]; if (port !== ':') { this.port = port.substr(1); } host = host.substr(0, host.length - port.length); } if (host) this.hostname = host; }; },{"./util":451,"punycode":433,"querystring":436}],451:[function(require,module,exports){ 'use strict'; module.exports = { isString: function(arg) { return typeof(arg) === 'string'; }, isObject: function(arg) { return typeof(arg) === 'object' && arg !== null; }, isNull: function(arg) { return arg === null; }, isNullOrUndefined: function(arg) { return arg == null; } }; },{}],452:[function(require,module,exports){ arguments[4][398][0].apply(exports,arguments) },{"dup":398}],453:[function(require,module,exports){ arguments[4][312][0].apply(exports,arguments) },{"dup":312}],454:[function(require,module,exports){ module.exports = function isBuffer(arg) { return arg && typeof arg === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function'; } },{}],455:[function(require,module,exports){ (function (process,global){ // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var formatRegExp = /%[sdj%]/g; exports.format = function(f) { if (!isString(f)) { var objects = []; for (var i = 0; i < arguments.length; i++) { objects.push(inspect(arguments[i])); } return objects.join(' '); } var i = 1; var args = arguments; var len = args.length; var str = String(f).replace(formatRegExp, function(x) { if (x === '%%') return '%'; if (i >= len) return x; switch (x) { case '%s': return String(args[i++]); case '%d': return Number(args[i++]); case '%j': try { return JSON.stringify(args[i++]); } catch (_) { return '[Circular]'; } default: return x; } }); for (var x = args[i]; i < len; x = args[++i]) { if (isNull(x) || !isObject(x)) { str += ' ' + x; } else { str += ' ' + inspect(x); } } return str; }; // Mark that a method should not be used. // Returns a modified function which warns once by default. // If --no-deprecation is set, then it is a no-op. exports.deprecate = function(fn, msg) { // Allow for deprecating things in the process of starting up. if (isUndefined(global.process)) { return function() { return exports.deprecate(fn, msg).apply(this, arguments); }; } if (process.noDeprecation === true) { return fn; } var warned = false; function deprecated() { if (!warned) { if (process.throwDeprecation) { throw new Error(msg); } else if (process.traceDeprecation) { console.trace(msg); } else { console.error(msg); } warned = true; } return fn.apply(this, arguments); } return deprecated; }; var debugs = {}; var debugEnviron; exports.debuglog = function(set) { if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || ''; set = set.toUpperCase(); if (!debugs[set]) { if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { var pid = process.pid; debugs[set] = function() { var msg = exports.format.apply(exports, arguments); console.error('%s %d: %s', set, pid, msg); }; } else { debugs[set] = function() {}; } } return debugs[set]; }; /** * Echos the value of a value. Trys to print the value out * in the best way possible given the different types. * * @param {Object} obj The object to print out. * @param {Object} opts Optional options object that alters the output. */ /* legacy: obj, showHidden, depth, colors*/ function inspect(obj, opts) { // default options var ctx = { seen: [], stylize: stylizeNoColor }; // legacy... if (arguments.length >= 3) ctx.depth = arguments[2]; if (arguments.length >= 4) ctx.colors = arguments[3]; if (isBoolean(opts)) { // legacy... ctx.showHidden = opts; } else if (opts) { // got an "options" object exports._extend(ctx, opts); } // set default options if (isUndefined(ctx.showHidden)) ctx.showHidden = false; if (isUndefined(ctx.depth)) ctx.depth = 2; if (isUndefined(ctx.colors)) ctx.colors = false; if (isUndefined(ctx.customInspect)) ctx.customInspect = true; if (ctx.colors) ctx.stylize = stylizeWithColor; return formatValue(ctx, obj, ctx.depth); } exports.inspect = inspect; // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics inspect.colors = { 'bold' : [1, 22], 'italic' : [3, 23], 'underline' : [4, 24], 'inverse' : [7, 27], 'white' : [37, 39], 'grey' : [90, 39], 'black' : [30, 39], 'blue' : [34, 39], 'cyan' : [36, 39], 'green' : [32, 39], 'magenta' : [35, 39], 'red' : [31, 39], 'yellow' : [33, 39] }; // Don't use 'blue' not visible on cmd.exe inspect.styles = { 'special': 'cyan', 'number': 'yellow', 'boolean': 'yellow', 'undefined': 'grey', 'null': 'bold', 'string': 'green', 'date': 'magenta', // "name": intentionally not styling 'regexp': 'red' }; function stylizeWithColor(str, styleType) { var style = inspect.styles[styleType]; if (style) { return '\u001b[' + inspect.colors[style][0] + 'm' + str + '\u001b[' + inspect.colors[style][1] + 'm'; } else { return str; } } function stylizeNoColor(str, styleType) { return str; } function arrayToHash(array) { var hash = {}; array.forEach(function(val, idx) { hash[val] = true; }); return hash; } function formatValue(ctx, value, recurseTimes) { // Provide a hook for user-specified inspect functions. // Check that value is an object with an inspect function on it if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check. !(value.constructor && value.constructor.prototype === value)) { var ret = value.inspect(recurseTimes, ctx); if (!isString(ret)) { ret = formatValue(ctx, ret, recurseTimes); } return ret; } // Primitive types cannot have properties var primitive = formatPrimitive(ctx, value); if (primitive) { return primitive; } // Look up the keys of the object. var keys = Object.keys(value); var visibleKeys = arrayToHash(keys); if (ctx.showHidden) { keys = Object.getOwnPropertyNames(value); } // IE doesn't make error fields non-enumerable // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { return formatError(value); } // Some type of object without properties can be shortcutted. if (keys.length === 0) { if (isFunction(value)) { var name = value.name ? ': ' + value.name : ''; return ctx.stylize('[Function' + name + ']', 'special'); } if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); } if (isDate(value)) { return ctx.stylize(Date.prototype.toString.call(value), 'date'); } if (isError(value)) { return formatError(value); } } var base = '', array = false, braces = ['{', '}']; // Make Array say that they are Array if (isArray(value)) { array = true; braces = ['[', ']']; } // Make functions say that they are functions if (isFunction(value)) { var n = value.name ? ': ' + value.name : ''; base = ' [Function' + n + ']'; } // Make RegExps say that they are RegExps if (isRegExp(value)) { base = ' ' + RegExp.prototype.toString.call(value); } // Make dates with properties first say the date if (isDate(value)) { base = ' ' + Date.prototype.toUTCString.call(value); } // Make error with message first say the error if (isError(value)) { base = ' ' + formatError(value); } if (keys.length === 0 && (!array || value.length == 0)) { return braces[0] + base + braces[1]; } if (recurseTimes < 0) { if (isRegExp(value)) { return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); } else { return ctx.stylize('[Object]', 'special'); } } ctx.seen.push(value); var output; if (array) { output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); } else { output = keys.map(function(key) { return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); }); } ctx.seen.pop(); return reduceToSingleString(output, base, braces); } function formatPrimitive(ctx, value) { if (isUndefined(value)) return ctx.stylize('undefined', 'undefined'); if (isString(value)) { var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') .replace(/'/g, "\\'") .replace(/\\"/g, '"') + '\''; return ctx.stylize(simple, 'string'); } if (isNumber(value)) return ctx.stylize('' + value, 'number'); if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is "object", so special case here. if (isNull(value)) return ctx.stylize('null', 'null'); } function formatError(value) { return '[' + Error.prototype.toString.call(value) + ']'; } function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { var output = []; for (var i = 0, l = value.length; i < l; ++i) { if (hasOwnProperty(value, String(i))) { output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true)); } else { output.push(''); } } keys.forEach(function(key) { if (!key.match(/^\d+$/)) { output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true)); } }); return output; } function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { var name, str, desc; desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; if (desc.get) { if (desc.set) { str = ctx.stylize('[Getter/Setter]', 'special'); } else { str = ctx.stylize('[Getter]', 'special'); } } else { if (desc.set) { str = ctx.stylize('[Setter]', 'special'); } } if (!hasOwnProperty(visibleKeys, key)) { name = '[' + key + ']'; } if (!str) { if (ctx.seen.indexOf(desc.value) < 0) { if (isNull(recurseTimes)) { str = formatValue(ctx, desc.value, null); } else { str = formatValue(ctx, desc.value, recurseTimes - 1); } if (str.indexOf('\n') > -1) { if (array) { str = str.split('\n').map(function(line) { return ' ' + line; }).join('\n').substr(2); } else { str = '\n' + str.split('\n').map(function(line) { return ' ' + line; }).join('\n'); } } } else { str = ctx.stylize('[Circular]', 'special'); } } if (isUndefined(name)) { if (array && key.match(/^\d+$/)) { return str; } name = JSON.stringify('' + key); if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { name = name.substr(1, name.length - 2); name = ctx.stylize(name, 'name'); } else { name = name.replace(/'/g, "\\'") .replace(/\\"/g, '"') .replace(/(^"|"$)/g, "'"); name = ctx.stylize(name, 'string'); } } return name + ': ' + str; } function reduceToSingleString(output, base, braces) { var numLinesEst = 0; var length = output.reduce(function(prev, cur) { numLinesEst++; if (cur.indexOf('\n') >= 0) numLinesEst++; return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; }, 0); if (length > 60) { return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1]; } return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; } // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { return Array.isArray(ar); } exports.isArray = isArray; function isBoolean(arg) { return typeof arg === 'boolean'; } exports.isBoolean = isBoolean; function isNull(arg) { return arg === null; } exports.isNull = isNull; function isNullOrUndefined(arg) { return arg == null; } exports.isNullOrUndefined = isNullOrUndefined; function isNumber(arg) { return typeof arg === 'number'; } exports.isNumber = isNumber; function isString(arg) { return typeof arg === 'string'; } exports.isString = isString; function isSymbol(arg) { return typeof arg === 'symbol'; } exports.isSymbol = isSymbol; function isUndefined(arg) { return arg === void 0; } exports.isUndefined = isUndefined; function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; } exports.isRegExp = isRegExp; function isObject(arg) { return typeof arg === 'object' && arg !== null; } exports.isObject = isObject; function isDate(d) { return isObject(d) && objectToString(d) === '[object Date]'; } exports.isDate = isDate; function isError(e) { return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error); } exports.isError = isError; function isFunction(arg) { return typeof arg === 'function'; } exports.isFunction = isFunction; function isPrimitive(arg) { return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || // ES6 symbol typeof arg === 'undefined'; } exports.isPrimitive = isPrimitive; exports.isBuffer = require('./support/isBuffer'); function objectToString(o) { return Object.prototype.toString.call(o); } function pad(n) { return n < 10 ? '0' + n.toString(10) : n.toString(10); } var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 function timestamp() { var d = new Date(); var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':'); return [d.getDate(), months[d.getMonth()], time].join(' '); } // log is just a thin wrapper to console.log that prepends a timestamp exports.log = function() { console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); }; /** * Inherit the prototype methods from one constructor into another. * * The Function.prototype.inherits from lang.js rewritten as a standalone * function (not on Function.prototype). NOTE: If this file is to be loaded * during bootstrapping this function needs to be rewritten using some native * functions as prototype setup using normal JavaScript does not work as * expected during bootstrapping (see mirror.js in r114903). * * @param {function} ctor Constructor function which needs to inherit the * prototype. * @param {function} superCtor Constructor function to inherit prototype from. */ exports.inherits = require('inherits'); exports._extend = function(origin, add) { // Don't do anything if add isn't an object if (!add || !isObject(add)) return origin; var keys = Object.keys(add); var i = keys.length; while (i--) { origin[keys[i]] = add[keys[i]]; } return origin; }; function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./support/isBuffer":454,"_process":432,"inherits":453}],"aws-iot-device-sdk":[function(require,module,exports){ /* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Expose AWS IoT Embedded Javascript SDK modules */ module.exports.device = require('./device'); module.exports.thingShadow = require('./thing'); },{"./device":4,"./thing":8}],"aws-sdk":[function(require,module,exports){ // AWS SDK for JavaScript v2.6.7 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt require('./browser_loader'); var AWS = require('./core'); if (typeof window !== 'undefined') window.AWS = AWS; if (typeof module !== 'undefined') module.exports = AWS; if (typeof self !== 'undefined') self.AWS = AWS; /** * @private * DO NOT REMOVE * browser builder will strip out this line if services are supplied on the command line. */ require('../clients/browser_default'); },{"../clients/browser_default":139,"./browser_loader":193,"./core":196}]},{},[]);