aws-sdk 2.1625.0 → 2.1627.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1625.0',
23
+ VERSION: '2.1627.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -176,7 +176,7 @@ AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, {
176
176
  var ssoTokenProvider = new AWS.SSOTokenProvider({
177
177
  profile: profileName,
178
178
  });
179
- ssoTokenProvider.load(function (err) {
179
+ ssoTokenProvider.get(function (err) {
180
180
  if (err) {
181
181
  return callback(err);
182
182
  }
@@ -1,12 +1,12 @@
1
1
  import {Credentials} from '../credentials';
2
2
  import {AWSError} from '../error';
3
- import {ConfigurationOptions} from '../config-base';
3
+ import {ClientConfiguration} from '../../clients/sts';
4
4
  export class TokenFileWebIdentityCredentials extends Credentials {
5
5
  /**
6
6
  * Creates a new credentials object with optional configuraion.
7
7
  * @param {Object} clientConfig - a map of configuration options to pass to the underlying STS client.
8
8
  */
9
- constructor(clientConfig?: ConfigurationOptions);
9
+ constructor(clientConfig?: ClientConfiguration);
10
10
  /**
11
11
  * Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity().
12
12
  */
@@ -17,6 +17,10 @@ export class MetadataService {
17
17
  options: {method?: string, headers?: {[key: string]: String} },
18
18
  callback: (err: AWSError, data: string) => void
19
19
  ): void;
20
+ /**
21
+ * Fetches metadata token used for authenticating against the instance metadata service.
22
+ */
23
+ fetchMetadataToken(callback: (err: AWSError, token: string) => void): void;
20
24
  /**
21
25
  * 169.254.169.254
22
26
  */
@@ -120,9 +120,8 @@ AWS.MetadataService = inherit({
120
120
  loadCredentialsCallbacks: [],
121
121
 
122
122
  /**
123
- * Fetches metadata token used for getting credentials
123
+ * Fetches metadata token used for authenticating against the instance metadata service.
124
124
  *
125
- * @api private
126
125
  * @callback callback function(err, token)
127
126
  * Called when token is loaded from the resource
128
127
  */
@@ -1,3 +1,4 @@
1
+ var AWS = require('../core');
1
2
  var util = require('../util');
2
3
  var Rest = require('./rest');
3
4
  var Json = require('./json');
@@ -75,7 +76,7 @@ function extractData(resp) {
75
76
  var body = resp.httpResponse.body;
76
77
  if (payloadMember.isEventStream) {
77
78
  parser = new JsonParser();
78
- resp.data[payload] = util.createEventStream(
79
+ resp.data[rules.payload] = util.createEventStream(
79
80
  AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body,
80
81
  parser,
81
82
  payloadMember
@@ -42,7 +42,9 @@ function serializeList(name, list, rules, fn) {
42
42
  var memberRules = rules.member || {};
43
43
 
44
44
  if (list.length === 0) {
45
- fn.call(this, name, null);
45
+ if (rules.api.protocol !== 'ec2') {
46
+ fn.call(this, name, null);
47
+ }
46
48
  return;
47
49
  }
48
50
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1625.0",
4
+ "version": "2.1627.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",