aws-sdk 2.1411.0 → 2.1412.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.1411.0',
23
+ VERSION: '2.1412.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -192,6 +192,7 @@ AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, {
192
192
  var externalId = roleProfile['external_id'];
193
193
  var mfaSerial = roleProfile['mfa_serial'];
194
194
  var sourceProfileName = roleProfile['source_profile'];
195
+ var durationSeconds = parseInt(roleProfile['duration_seconds'], 10) || undefined;
195
196
 
196
197
  // From experimentation, the following behavior mimics the AWS CLI:
197
198
  //
@@ -246,6 +247,7 @@ AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, {
246
247
  });
247
248
 
248
249
  var roleParams = {
250
+ DurationSeconds: durationSeconds,
249
251
  RoleArn: roleArn,
250
252
  RoleSessionName: roleSessionName || 'aws-sdk-js-' + Date.now()
251
253
  };
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.1411.0",
4
+ "version": "2.1412.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",