@aws-sdk/client-iam 3.435.0 → 3.437.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/dist-cjs/protocols/Aws_query.js +6 -12
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- package/dist-es/protocols/Aws_query.js +6 -12
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- package/dist-types/commands/GenerateServiceLastAccessedDetailsCommand.d.ts +3 -1
- package/dist-types/commands/GetAccessKeyLastUsedCommand.d.ts +0 -4
- package/dist-types/commands/ListAccessKeysCommand.d.ts +4 -3
- package/package.json +5 -4
|
@@ -3866,18 +3866,12 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
|
|
|
3866
3866
|
body: await parseErrorBody(output.body, context),
|
|
3867
3867
|
};
|
|
3868
3868
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
return throwDefaultError({
|
|
3876
|
-
output,
|
|
3877
|
-
parsedBody: parsedBody.Error,
|
|
3878
|
-
errorCode,
|
|
3879
|
-
});
|
|
3880
|
-
}
|
|
3869
|
+
const parsedBody = parsedOutput.body;
|
|
3870
|
+
return throwDefaultError({
|
|
3871
|
+
output,
|
|
3872
|
+
parsedBody: parsedBody.Error,
|
|
3873
|
+
errorCode,
|
|
3874
|
+
});
|
|
3881
3875
|
};
|
|
3882
3876
|
const de_GetAccountAuthorizationDetailsCommand = async (output, context) => {
|
|
3883
3877
|
if (output.statusCode >= 300) {
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2010-05-08",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "IAM",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3645,18 +3645,12 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
|
|
|
3645
3645
|
body: await parseErrorBody(output.body, context),
|
|
3646
3646
|
};
|
|
3647
3647
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
return throwDefaultError({
|
|
3655
|
-
output,
|
|
3656
|
-
parsedBody: parsedBody.Error,
|
|
3657
|
-
errorCode,
|
|
3658
|
-
});
|
|
3659
|
-
}
|
|
3648
|
+
const parsedBody = parsedOutput.body;
|
|
3649
|
+
return throwDefaultError({
|
|
3650
|
+
output,
|
|
3651
|
+
parsedBody: parsedBody.Error,
|
|
3652
|
+
errorCode,
|
|
3653
|
+
});
|
|
3660
3654
|
};
|
|
3661
3655
|
export const de_GetAccountAuthorizationDetailsCommand = async (output, context) => {
|
|
3662
3656
|
if (output.statusCode >= 300) {
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
20
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
21
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2010-05-08",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "IAM",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -27,7 +27,9 @@ export interface GenerateServiceLastAccessedDetailsCommandOutput extends Generat
|
|
|
27
27
|
* role, or policy) was last used in an attempt to access Amazon Web Services services. Recent activity
|
|
28
28
|
* usually appears within four hours. IAM reports activity for at least the last 400
|
|
29
29
|
* days, or less if your Region began supporting this feature within the last year. For
|
|
30
|
-
* more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions where data is tracked</a
|
|
30
|
+
* more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period">Regions where data is tracked</a>. For more information about services and
|
|
31
|
+
* actions for which action last accessed information is displayed, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor-action-last-accessed.html">IAM
|
|
32
|
+
* action last accessed information services and actions</a>.</p>
|
|
31
33
|
* <important>
|
|
32
34
|
* <p>The service last accessed data includes all attempts to access an Amazon Web Services API, not
|
|
33
35
|
* just the successful ones. This includes all attempts that were made using the
|
|
@@ -54,10 +54,6 @@ export interface GetAccessKeyLastUsedCommandOutput extends GetAccessKeyLastUsedR
|
|
|
54
54
|
* @see {@link GetAccessKeyLastUsedCommandOutput} for command's `response` shape.
|
|
55
55
|
* @see {@link IAMClientResolvedConfig | config} for IAMClient's `config` shape.
|
|
56
56
|
*
|
|
57
|
-
* @throws {@link NoSuchEntityException} (client fault)
|
|
58
|
-
* <p>The request was rejected because it referenced a resource entity that does not exist. The
|
|
59
|
-
* error message describes the resource.</p>
|
|
60
|
-
*
|
|
61
57
|
* @throws {@link IAMServiceException}
|
|
62
58
|
* <p>Base exception class for all service exceptions from IAM service.</p>
|
|
63
59
|
*
|
|
@@ -30,9 +30,10 @@ export interface ListAccessKeysCommandOutput extends ListAccessKeysResponse, __M
|
|
|
30
30
|
* <p>If the <code>UserName</code> is not specified, the user name is determined implicitly
|
|
31
31
|
* based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is
|
|
32
32
|
* used, then <code>UserName</code> is required. If a long-term key is assigned to the
|
|
33
|
-
* user, then <code>UserName</code> is not required
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* user, then <code>UserName</code> is not required.</p>
|
|
34
|
+
* <p>This operation works for access keys under the Amazon Web Services account. If the Amazon Web Services account has
|
|
35
|
+
* no associated users, the root user returns it's own access key IDs by running this
|
|
36
|
+
* command.</p>
|
|
36
37
|
* <note>
|
|
37
38
|
* <p>To ensure the security of your Amazon Web Services account, the secret access key is accessible
|
|
38
39
|
* only during key and user creation.</p>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iam",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.437.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/
|
|
24
|
+
"@aws-sdk/client-sts": "3.437.0",
|
|
25
|
+
"@aws-sdk/core": "3.436.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.437.0",
|
|
26
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
27
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
28
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"@aws-sdk/types": "3.433.0",
|
|
33
34
|
"@aws-sdk/util-endpoints": "3.433.0",
|
|
34
35
|
"@aws-sdk/util-user-agent-browser": "3.433.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.437.0",
|
|
36
37
|
"@smithy/config-resolver": "^2.0.16",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.2.4",
|
|
38
39
|
"@smithy/hash-node": "^2.0.12",
|