@aws-sdk/credential-provider-ini 3.409.0 → 3.413.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.
@@ -36,6 +36,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, visi
36
36
  RoleArn: data.role_arn,
37
37
  RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
38
38
  ExternalId: data.external_id,
39
+ DurationSeconds: parseInt(data.duration_seconds || "3600", 10),
39
40
  };
40
41
  const { mfa_serial } = data;
41
42
  if (mfa_serial) {
@@ -32,6 +32,7 @@ export const resolveAssumeRoleCredentials = async (profileName, profiles, option
32
32
  RoleArn: data.role_arn,
33
33
  RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
34
34
  ExternalId: data.external_id,
35
+ DurationSeconds: parseInt(data.duration_seconds || "3600", 10),
35
36
  };
36
37
  const { mfa_serial } = data;
37
38
  if (mfa_serial) {
@@ -29,6 +29,10 @@ export interface AssumeRoleParams {
29
29
  * The value provided by the MFA device.
30
30
  */
31
31
  TokenCode?: string;
32
+ /**
33
+ * The duration, in seconds, of the role session.
34
+ */
35
+ DurationSeconds?: number;
32
36
  }
33
37
  /**
34
38
  * @internal
@@ -6,6 +6,7 @@ export interface AssumeRoleParams {
6
6
  ExternalId?: string;
7
7
  SerialNumber?: string;
8
8
  TokenCode?: string;
9
+ DurationSeconds?: number;
9
10
  }
10
11
  export declare const isAssumeRoleProfile: (arg: any) => boolean;
11
12
  export declare const resolveAssumeRoleCredentials: (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.409.0",
3
+ "version": "3.413.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/credential-provider-env": "3.408.0",
28
- "@aws-sdk/credential-provider-process": "3.408.0",
29
- "@aws-sdk/credential-provider-sso": "3.409.0",
30
- "@aws-sdk/credential-provider-web-identity": "3.408.0",
31
- "@aws-sdk/types": "3.408.0",
27
+ "@aws-sdk/credential-provider-env": "3.413.0",
28
+ "@aws-sdk/credential-provider-process": "3.413.0",
29
+ "@aws-sdk/credential-provider-sso": "3.413.0",
30
+ "@aws-sdk/credential-provider-web-identity": "3.413.0",
31
+ "@aws-sdk/types": "3.413.0",
32
32
  "@smithy/credential-provider-imds": "^2.0.0",
33
33
  "@smithy/property-provider": "^2.0.0",
34
34
  "@smithy/shared-ini-file-loader": "^2.0.6",
35
- "@smithy/types": "^2.2.2",
35
+ "@smithy/types": "^2.3.1",
36
36
  "tslib": "^2.5.0"
37
37
  },
38
38
  "devDependencies": {