@aws-sdk/client-iam 3.1037.0 → 3.1038.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/index.js CHANGED
@@ -2303,7 +2303,7 @@ const checkState$3 = async (client, input) => {
2303
2303
  }
2304
2304
  catch (exception) {
2305
2305
  reason = exception;
2306
- if (exception.name && exception.name == "NoSuchEntityException") {
2306
+ if (exception.name === "NoSuchEntityException") {
2307
2307
  return { state: utilWaiter.WaiterState.RETRY, reason };
2308
2308
  }
2309
2309
  }
@@ -2328,7 +2328,7 @@ const checkState$2 = async (client, input) => {
2328
2328
  }
2329
2329
  catch (exception) {
2330
2330
  reason = exception;
2331
- if (exception.name && exception.name == "NoSuchEntityException") {
2331
+ if (exception.name === "NoSuchEntityException") {
2332
2332
  return { state: utilWaiter.WaiterState.RETRY, reason };
2333
2333
  }
2334
2334
  }
@@ -2353,7 +2353,7 @@ const checkState$1 = async (client, input) => {
2353
2353
  }
2354
2354
  catch (exception) {
2355
2355
  reason = exception;
2356
- if (exception.name && exception.name == "NoSuchEntityException") {
2356
+ if (exception.name === "NoSuchEntityException") {
2357
2357
  return { state: utilWaiter.WaiterState.RETRY, reason };
2358
2358
  }
2359
2359
  }
@@ -2378,7 +2378,7 @@ const checkState = async (client, input) => {
2378
2378
  }
2379
2379
  catch (exception) {
2380
2380
  reason = exception;
2381
- if (exception.name && exception.name == "NoSuchEntityException") {
2381
+ if (exception.name === "NoSuchEntityException") {
2382
2382
  return { state: utilWaiter.WaiterState.RETRY, reason };
2383
2383
  }
2384
2384
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetInstanceProfileCommand } from "../commands/GetInstanceProfileCommand";
2
+ import { GetInstanceProfileCommand, } from "../commands/GetInstanceProfileCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "NoSuchEntityException") {
12
+ if (exception.name === "NoSuchEntityException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetPolicyCommand } from "../commands/GetPolicyCommand";
2
+ import { GetPolicyCommand, } from "../commands/GetPolicyCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "NoSuchEntityException") {
12
+ if (exception.name === "NoSuchEntityException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
15
  }
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "NoSuchEntityException") {
12
+ if (exception.name === "NoSuchEntityException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
15
  }
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
9
9
  }
10
10
  catch (exception) {
11
11
  reason = exception;
12
- if (exception.name && exception.name == "NoSuchEntityException") {
12
+ if (exception.name === "NoSuchEntityException") {
13
13
  return { state: WaiterState.RETRY, reason };
14
14
  }
15
15
  }
@@ -1513,25 +1513,25 @@ export interface IAM {
1513
1513
  * @param args - command input.
1514
1514
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1515
1515
  */
1516
- waitUntilInstanceProfileExists(args: GetInstanceProfileCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult>;
1516
+ waitUntilInstanceProfileExists(args: GetInstanceProfileCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult<GetInstanceProfileCommandOutput>>;
1517
1517
  /**
1518
1518
  * @see {@link GetPolicyCommand}
1519
1519
  * @param args - command input.
1520
1520
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1521
1521
  */
1522
- waitUntilPolicyExists(args: GetPolicyCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult>;
1522
+ waitUntilPolicyExists(args: GetPolicyCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult<GetPolicyCommandOutput>>;
1523
1523
  /**
1524
1524
  * @see {@link GetRoleCommand}
1525
1525
  * @param args - command input.
1526
1526
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1527
1527
  */
1528
- waitUntilRoleExists(args: GetRoleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult>;
1528
+ waitUntilRoleExists(args: GetRoleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult<GetRoleCommandOutput>>;
1529
1529
  /**
1530
1530
  * @see {@link GetUserCommand}
1531
1531
  * @param args - command input.
1532
1532
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1533
1533
  */
1534
- waitUntilUserExists(args: GetUserCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult>;
1534
+ waitUntilUserExists(args: GetUserCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IAM>, "client">): Promise<WaiterResult<GetUserCommandOutput>>;
1535
1535
  }
1536
1536
  /**
1537
1537
  * <fullname>Identity and Access Management</fullname>
@@ -3365,7 +3365,7 @@ export interface IAM {
3365
3365
  WaiterConfiguration<IAM>,
3366
3366
  Exclude<keyof WaiterConfiguration<IAM>, "client">
3367
3367
  >
3368
- ): Promise<WaiterResult>;
3368
+ ): Promise<WaiterResult<GetInstanceProfileCommandOutput>>;
3369
3369
  waitUntilPolicyExists(
3370
3370
  args: GetPolicyCommandInput,
3371
3371
  waiterConfig:
@@ -3374,7 +3374,7 @@ export interface IAM {
3374
3374
  WaiterConfiguration<IAM>,
3375
3375
  Exclude<keyof WaiterConfiguration<IAM>, "client">
3376
3376
  >
3377
- ): Promise<WaiterResult>;
3377
+ ): Promise<WaiterResult<GetPolicyCommandOutput>>;
3378
3378
  waitUntilRoleExists(
3379
3379
  args: GetRoleCommandInput,
3380
3380
  waiterConfig:
@@ -3383,7 +3383,7 @@ export interface IAM {
3383
3383
  WaiterConfiguration<IAM>,
3384
3384
  Exclude<keyof WaiterConfiguration<IAM>, "client">
3385
3385
  >
3386
- ): Promise<WaiterResult>;
3386
+ ): Promise<WaiterResult<GetRoleCommandOutput>>;
3387
3387
  waitUntilUserExists(
3388
3388
  args: GetUserCommandInput,
3389
3389
  waiterConfig:
@@ -3392,6 +3392,6 @@ export interface IAM {
3392
3392
  WaiterConfiguration<IAM>,
3393
3393
  Exclude<keyof WaiterConfiguration<IAM>, "client">
3394
3394
  >
3395
- ): Promise<WaiterResult>;
3395
+ ): Promise<WaiterResult<GetUserCommandOutput>>;
3396
3396
  }
3397
3397
  export declare class IAM extends IAMClient implements IAM {}
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetInstanceProfileCommandInput } from "../commands/GetInstanceProfileCommand";
2
+ import {
3
+ GetInstanceProfileCommandInput,
4
+ GetInstanceProfileCommandOutput,
5
+ } from "../commands/GetInstanceProfileCommand";
3
6
  import { IAMClient } from "../IAMClient";
7
+ import { IAMServiceException } from "../models/IAMServiceException";
4
8
  export declare const waitForInstanceProfileExists: (
5
9
  params: WaiterConfiguration<IAMClient>,
6
10
  input: GetInstanceProfileCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<GetInstanceProfileCommandOutput | IAMServiceException>
13
+ >;
8
14
  export declare const waitUntilInstanceProfileExists: (
9
15
  params: WaiterConfiguration<IAMClient>,
10
16
  input: GetInstanceProfileCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<GetInstanceProfileCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetPolicyCommandInput } from "../commands/GetPolicyCommand";
2
+ import {
3
+ GetPolicyCommandInput,
4
+ GetPolicyCommandOutput,
5
+ } from "../commands/GetPolicyCommand";
3
6
  import { IAMClient } from "../IAMClient";
7
+ import { IAMServiceException } from "../models/IAMServiceException";
4
8
  export declare const waitForPolicyExists: (
5
9
  params: WaiterConfiguration<IAMClient>,
6
10
  input: GetPolicyCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetPolicyCommandOutput | IAMServiceException>>;
8
12
  export declare const waitUntilPolicyExists: (
9
13
  params: WaiterConfiguration<IAMClient>,
10
14
  input: GetPolicyCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetPolicyCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetRoleCommandInput } from "../commands/GetRoleCommand";
2
+ import {
3
+ GetRoleCommandInput,
4
+ GetRoleCommandOutput,
5
+ } from "../commands/GetRoleCommand";
3
6
  import { IAMClient } from "../IAMClient";
7
+ import { IAMServiceException } from "../models/IAMServiceException";
4
8
  export declare const waitForRoleExists: (
5
9
  params: WaiterConfiguration<IAMClient>,
6
10
  input: GetRoleCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetRoleCommandOutput | IAMServiceException>>;
8
12
  export declare const waitUntilRoleExists: (
9
13
  params: WaiterConfiguration<IAMClient>,
10
14
  input: GetRoleCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetRoleCommandOutput>>;
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetUserCommandInput } from "../commands/GetUserCommand";
2
+ import {
3
+ GetUserCommandInput,
4
+ GetUserCommandOutput,
5
+ } from "../commands/GetUserCommand";
3
6
  import { IAMClient } from "../IAMClient";
7
+ import { IAMServiceException } from "../models/IAMServiceException";
4
8
  export declare const waitForUserExists: (
5
9
  params: WaiterConfiguration<IAMClient>,
6
10
  input: GetUserCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetUserCommandOutput | IAMServiceException>>;
8
12
  export declare const waitUntilUserExists: (
9
13
  params: WaiterConfiguration<IAMClient>,
10
14
  input: GetUserCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetUserCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetInstanceProfileCommandInput } from "../commands/GetInstanceProfileCommand";
2
+ import { type GetInstanceProfileCommandInput, type GetInstanceProfileCommandOutput } from "../commands/GetInstanceProfileCommand";
3
3
  import type { IAMClient } from "../IAMClient";
4
+ import type { IAMServiceException } from "../models/IAMServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilInstanceProfileExists instead. waitForInstanceProfileExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForInstanceProfileExists: (params: WaiterConfiguration<IAMClient>, input: GetInstanceProfileCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForInstanceProfileExists: (params: WaiterConfiguration<IAMClient>, input: GetInstanceProfileCommandInput) => Promise<WaiterResult<GetInstanceProfileCommandOutput | IAMServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetInstanceProfileCommand for polling.
13
14
  */
14
- export declare const waitUntilInstanceProfileExists: (params: WaiterConfiguration<IAMClient>, input: GetInstanceProfileCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilInstanceProfileExists: (params: WaiterConfiguration<IAMClient>, input: GetInstanceProfileCommandInput) => Promise<WaiterResult<GetInstanceProfileCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetPolicyCommandInput } from "../commands/GetPolicyCommand";
2
+ import { type GetPolicyCommandInput, type GetPolicyCommandOutput } from "../commands/GetPolicyCommand";
3
3
  import type { IAMClient } from "../IAMClient";
4
+ import type { IAMServiceException } from "../models/IAMServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilPolicyExists instead. waitForPolicyExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForPolicyExists: (params: WaiterConfiguration<IAMClient>, input: GetPolicyCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForPolicyExists: (params: WaiterConfiguration<IAMClient>, input: GetPolicyCommandInput) => Promise<WaiterResult<GetPolicyCommandOutput | IAMServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetPolicyCommand for polling.
13
14
  */
14
- export declare const waitUntilPolicyExists: (params: WaiterConfiguration<IAMClient>, input: GetPolicyCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilPolicyExists: (params: WaiterConfiguration<IAMClient>, input: GetPolicyCommandInput) => Promise<WaiterResult<GetPolicyCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetRoleCommandInput } from "../commands/GetRoleCommand";
2
+ import { type GetRoleCommandInput, type GetRoleCommandOutput } from "../commands/GetRoleCommand";
3
3
  import type { IAMClient } from "../IAMClient";
4
+ import type { IAMServiceException } from "../models/IAMServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilRoleExists instead. waitForRoleExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForRoleExists: (params: WaiterConfiguration<IAMClient>, input: GetRoleCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForRoleExists: (params: WaiterConfiguration<IAMClient>, input: GetRoleCommandInput) => Promise<WaiterResult<GetRoleCommandOutput | IAMServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetRoleCommand for polling.
13
14
  */
14
- export declare const waitUntilRoleExists: (params: WaiterConfiguration<IAMClient>, input: GetRoleCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilRoleExists: (params: WaiterConfiguration<IAMClient>, input: GetRoleCommandInput) => Promise<WaiterResult<GetRoleCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetUserCommandInput } from "../commands/GetUserCommand";
2
+ import { type GetUserCommandInput, type GetUserCommandOutput } from "../commands/GetUserCommand";
3
3
  import type { IAMClient } from "../IAMClient";
4
+ import type { IAMServiceException } from "../models/IAMServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilUserExists instead. waitForUserExists does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForUserExists: (params: WaiterConfiguration<IAMClient>, input: GetUserCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForUserExists: (params: WaiterConfiguration<IAMClient>, input: GetUserCommandInput) => Promise<WaiterResult<GetUserCommandOutput | IAMServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetUserCommand for polling.
13
14
  */
14
- export declare const waitUntilUserExists: (params: WaiterConfiguration<IAMClient>, input: GetUserCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilUserExists: (params: WaiterConfiguration<IAMClient>, input: GetUserCommandInput) => Promise<WaiterResult<GetUserCommandOutput>>;
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.1037.0",
4
+ "version": "3.1038.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iam",
@@ -27,17 +27,17 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.5",
31
- "@aws-sdk/credential-provider-node": "^3.972.36",
30
+ "@aws-sdk/core": "^3.974.6",
31
+ "@aws-sdk/credential-provider-node": "^3.972.37",
32
32
  "@aws-sdk/middleware-host-header": "^3.972.10",
33
33
  "@aws-sdk/middleware-logger": "^3.972.10",
34
34
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
35
- "@aws-sdk/middleware-user-agent": "^3.972.35",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
36
36
  "@aws-sdk/region-config-resolver": "^3.972.13",
37
37
  "@aws-sdk/types": "^3.973.8",
38
38
  "@aws-sdk/util-endpoints": "^3.996.8",
39
39
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
40
- "@aws-sdk/util-user-agent-node": "^3.973.21",
40
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
41
41
  "@smithy/config-resolver": "^4.4.17",
42
42
  "@smithy/core": "^3.23.17",
43
43
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -45,7 +45,7 @@
45
45
  "@smithy/invalid-dependency": "^4.2.14",
46
46
  "@smithy/middleware-content-length": "^4.2.14",
47
47
  "@smithy/middleware-endpoint": "^4.4.32",
48
- "@smithy/middleware-retry": "^4.5.5",
48
+ "@smithy/middleware-retry": "^4.5.6",
49
49
  "@smithy/middleware-serde": "^4.2.20",
50
50
  "@smithy/middleware-stack": "^4.2.14",
51
51
  "@smithy/node-config-provider": "^4.3.14",
@@ -61,9 +61,9 @@
61
61
  "@smithy/util-defaults-mode-node": "^4.2.54",
62
62
  "@smithy/util-endpoints": "^3.4.2",
63
63
  "@smithy/util-middleware": "^4.2.14",
64
- "@smithy/util-retry": "^4.3.4",
64
+ "@smithy/util-retry": "^4.3.5",
65
65
  "@smithy/util-utf8": "^4.2.2",
66
- "@smithy/util-waiter": "^4.2.16",
66
+ "@smithy/util-waiter": "^4.3.0",
67
67
  "tslib": "^2.6.2"
68
68
  },
69
69
  "devDependencies": {