@aws-sdk/client-iotsitewise 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
@@ -1512,7 +1512,7 @@ const checkState$3 = async (client, input) => {
1512
1512
  }
1513
1513
  catch (exception) {
1514
1514
  reason = exception;
1515
- if (exception.name && exception.name == "ResourceNotFoundException") {
1515
+ if (exception.name === "ResourceNotFoundException") {
1516
1516
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1517
1517
  }
1518
1518
  }
@@ -1536,7 +1536,7 @@ const checkState$2 = async (client, input) => {
1536
1536
  }
1537
1537
  catch (exception) {
1538
1538
  reason = exception;
1539
- if (exception.name && exception.name == "ResourceNotFoundException") {
1539
+ if (exception.name === "ResourceNotFoundException") {
1540
1540
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1541
1541
  }
1542
1542
  }
@@ -1590,7 +1590,7 @@ const checkState = async (client, input) => {
1590
1590
  }
1591
1591
  catch (exception) {
1592
1592
  reason = exception;
1593
- if (exception.name && exception.name == "ResourceNotFoundException") {
1593
+ if (exception.name === "ResourceNotFoundException") {
1594
1594
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1595
1595
  }
1596
1596
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeAssetCommand } from "../commands/DescribeAssetCommand";
2
+ import { DescribeAssetCommand, } from "../commands/DescribeAssetCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeAssetModelCommand } from "../commands/DescribeAssetModelCommand";
2
+ import { DescribeAssetModelCommand, } from "../commands/DescribeAssetModelCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeAssetModelCommand } from "../commands/DescribeAssetModelCommand";
2
+ import { DescribeAssetModelCommand, } from "../commands/DescribeAssetModelCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -8,7 +8,7 @@ const checkState = async (client, input) => {
8
8
  }
9
9
  catch (exception) {
10
10
  reason = exception;
11
- if (exception.name && exception.name == "ResourceNotFoundException") {
11
+ if (exception.name === "ResourceNotFoundException") {
12
12
  return { state: WaiterState.SUCCESS, reason };
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeAssetCommand } from "../commands/DescribeAssetCommand";
2
+ import { DescribeAssetCommand, } from "../commands/DescribeAssetCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -8,7 +8,7 @@ const checkState = async (client, input) => {
8
8
  }
9
9
  catch (exception) {
10
10
  reason = exception;
11
- if (exception.name && exception.name == "ResourceNotFoundException") {
11
+ if (exception.name === "ResourceNotFoundException") {
12
12
  return { state: WaiterState.SUCCESS, reason };
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribePortalCommand } from "../commands/DescribePortalCommand";
2
+ import { DescribePortalCommand, } from "../commands/DescribePortalCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribePortalCommand } from "../commands/DescribePortalCommand";
2
+ import { DescribePortalCommand, } from "../commands/DescribePortalCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -8,7 +8,7 @@ const checkState = async (client, input) => {
8
8
  }
9
9
  catch (exception) {
10
10
  reason = exception;
11
- if (exception.name && exception.name == "ResourceNotFoundException") {
11
+ if (exception.name === "ResourceNotFoundException") {
12
12
  return { state: WaiterState.SUCCESS, reason };
13
13
  }
14
14
  }
@@ -105,6 +105,7 @@ import { type UpdateGatewayCommandInput, type UpdateGatewayCommandOutput } from
105
105
  import { type UpdatePortalCommandInput, type UpdatePortalCommandOutput } from "./commands/UpdatePortalCommand";
106
106
  import { type UpdateProjectCommandInput, type UpdateProjectCommandOutput } from "./commands/UpdateProjectCommand";
107
107
  import { IoTSiteWiseClient } from "./IoTSiteWiseClient";
108
+ import type { ResourceNotFoundException } from "./models/errors";
108
109
  export interface IoTSiteWise {
109
110
  /**
110
111
  * @see {@link AssociateAssetsCommand}
@@ -953,37 +954,37 @@ export interface IoTSiteWise {
953
954
  * @param args - command input.
954
955
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
955
956
  */
956
- waitUntilAssetActive(args: DescribeAssetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
957
+ waitUntilAssetActive(args: DescribeAssetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<DescribeAssetCommandOutput>>;
957
958
  /**
958
959
  * @see {@link DescribeAssetCommand}
959
960
  * @param args - command input.
960
961
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
961
962
  */
962
- waitUntilAssetNotExists(args: DescribeAssetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
963
+ waitUntilAssetNotExists(args: DescribeAssetCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
963
964
  /**
964
965
  * @see {@link DescribeAssetModelCommand}
965
966
  * @param args - command input.
966
967
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
967
968
  */
968
- waitUntilAssetModelActive(args: DescribeAssetModelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
969
+ waitUntilAssetModelActive(args: DescribeAssetModelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<DescribeAssetModelCommandOutput>>;
969
970
  /**
970
971
  * @see {@link DescribeAssetModelCommand}
971
972
  * @param args - command input.
972
973
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
973
974
  */
974
- waitUntilAssetModelNotExists(args: DescribeAssetModelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
975
+ waitUntilAssetModelNotExists(args: DescribeAssetModelCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
975
976
  /**
976
977
  * @see {@link DescribePortalCommand}
977
978
  * @param args - command input.
978
979
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
979
980
  */
980
- waitUntilPortalActive(args: DescribePortalCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
981
+ waitUntilPortalActive(args: DescribePortalCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<DescribePortalCommandOutput>>;
981
982
  /**
982
983
  * @see {@link DescribePortalCommand}
983
984
  * @param args - command input.
984
985
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
985
986
  */
986
- waitUntilPortalNotExists(args: DescribePortalCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult>;
987
+ waitUntilPortalNotExists(args: DescribePortalCommandInput, waiterConfig: number | Omit<WaiterConfiguration<IoTSiteWise>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
987
988
  }
988
989
  /**
989
990
  * <p>Welcome to the IoT SiteWise API Reference. IoT SiteWise is an Amazon Web Services service that connects <a href="https://en.wikipedia.org/wiki/Internet_of_things#Industrial_applications">Industrial Internet of Things (IIoT)</a> devices to the power of the Amazon Web Services Cloud. For more information, see the
@@ -422,6 +422,7 @@ import {
422
422
  UpdateProjectCommandOutput,
423
423
  } from "./commands/UpdateProjectCommand";
424
424
  import { IoTSiteWiseClient } from "./IoTSiteWiseClient";
425
+ import { ResourceNotFoundException } from "./models/errors";
425
426
  export interface IoTSiteWise {
426
427
  associateAssets(
427
428
  args: AssociateAssetsCommandInput,
@@ -2085,7 +2086,7 @@ export interface IoTSiteWise {
2085
2086
  WaiterConfiguration<IoTSiteWise>,
2086
2087
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2087
2088
  >
2088
- ): Promise<WaiterResult>;
2089
+ ): Promise<WaiterResult<DescribeAssetCommandOutput>>;
2089
2090
  waitUntilAssetNotExists(
2090
2091
  args: DescribeAssetCommandInput,
2091
2092
  waiterConfig:
@@ -2094,7 +2095,7 @@ export interface IoTSiteWise {
2094
2095
  WaiterConfiguration<IoTSiteWise>,
2095
2096
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2096
2097
  >
2097
- ): Promise<WaiterResult>;
2098
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
2098
2099
  waitUntilAssetModelActive(
2099
2100
  args: DescribeAssetModelCommandInput,
2100
2101
  waiterConfig:
@@ -2103,7 +2104,7 @@ export interface IoTSiteWise {
2103
2104
  WaiterConfiguration<IoTSiteWise>,
2104
2105
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2105
2106
  >
2106
- ): Promise<WaiterResult>;
2107
+ ): Promise<WaiterResult<DescribeAssetModelCommandOutput>>;
2107
2108
  waitUntilAssetModelNotExists(
2108
2109
  args: DescribeAssetModelCommandInput,
2109
2110
  waiterConfig:
@@ -2112,7 +2113,7 @@ export interface IoTSiteWise {
2112
2113
  WaiterConfiguration<IoTSiteWise>,
2113
2114
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2114
2115
  >
2115
- ): Promise<WaiterResult>;
2116
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
2116
2117
  waitUntilPortalActive(
2117
2118
  args: DescribePortalCommandInput,
2118
2119
  waiterConfig:
@@ -2121,7 +2122,7 @@ export interface IoTSiteWise {
2121
2122
  WaiterConfiguration<IoTSiteWise>,
2122
2123
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2123
2124
  >
2124
- ): Promise<WaiterResult>;
2125
+ ): Promise<WaiterResult<DescribePortalCommandOutput>>;
2125
2126
  waitUntilPortalNotExists(
2126
2127
  args: DescribePortalCommandInput,
2127
2128
  waiterConfig:
@@ -2130,7 +2131,7 @@ export interface IoTSiteWise {
2130
2131
  WaiterConfiguration<IoTSiteWise>,
2131
2132
  Exclude<keyof WaiterConfiguration<IoTSiteWise>, "client">
2132
2133
  >
2133
- ): Promise<WaiterResult>;
2134
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
2134
2135
  }
2135
2136
  export declare class IoTSiteWise
2136
2137
  extends IoTSiteWiseClient
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeAssetCommandInput } from "../commands/DescribeAssetCommand";
2
+ import {
3
+ DescribeAssetCommandInput,
4
+ DescribeAssetCommandOutput,
5
+ } from "../commands/DescribeAssetCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
8
  export declare const waitForAssetActive: (
5
9
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
10
  input: DescribeAssetCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeAssetCommandOutput | IoTSiteWiseServiceException>
13
+ >;
8
14
  export declare const waitUntilAssetActive: (
9
15
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
16
  input: DescribeAssetCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeAssetCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeAssetModelCommandInput } from "../commands/DescribeAssetModelCommand";
2
+ import {
3
+ DescribeAssetModelCommandInput,
4
+ DescribeAssetModelCommandOutput,
5
+ } from "../commands/DescribeAssetModelCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
8
  export declare const waitForAssetModelActive: (
5
9
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
10
  input: DescribeAssetModelCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeAssetModelCommandOutput | IoTSiteWiseServiceException>
13
+ >;
8
14
  export declare const waitUntilAssetModelActive: (
9
15
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
16
  input: DescribeAssetModelCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeAssetModelCommandOutput>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeAssetModelCommandInput } from "../commands/DescribeAssetModelCommand";
2
+ import {
3
+ DescribeAssetModelCommandInput,
4
+ DescribeAssetModelCommandOutput,
5
+ } from "../commands/DescribeAssetModelCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { ResourceNotFoundException } from "../models/errors";
8
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
9
  export declare const waitForAssetModelNotExists: (
5
10
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
11
  input: DescribeAssetModelCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribeAssetModelCommandOutput | IoTSiteWiseServiceException>
14
+ >;
8
15
  export declare const waitUntilAssetModelNotExists: (
9
16
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
17
  input: DescribeAssetModelCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeAssetCommandInput } from "../commands/DescribeAssetCommand";
2
+ import {
3
+ DescribeAssetCommandInput,
4
+ DescribeAssetCommandOutput,
5
+ } from "../commands/DescribeAssetCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { ResourceNotFoundException } from "../models/errors";
8
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
9
  export declare const waitForAssetNotExists: (
5
10
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
11
  input: DescribeAssetCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribeAssetCommandOutput | IoTSiteWiseServiceException>
14
+ >;
8
15
  export declare const waitUntilAssetNotExists: (
9
16
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
17
  input: DescribeAssetCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribePortalCommandInput } from "../commands/DescribePortalCommand";
2
+ import {
3
+ DescribePortalCommandInput,
4
+ DescribePortalCommandOutput,
5
+ } from "../commands/DescribePortalCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
8
  export declare const waitForPortalActive: (
5
9
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
10
  input: DescribePortalCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribePortalCommandOutput | IoTSiteWiseServiceException>
13
+ >;
8
14
  export declare const waitUntilPortalActive: (
9
15
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
16
  input: DescribePortalCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribePortalCommandOutput>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribePortalCommandInput } from "../commands/DescribePortalCommand";
2
+ import {
3
+ DescribePortalCommandInput,
4
+ DescribePortalCommandOutput,
5
+ } from "../commands/DescribePortalCommand";
3
6
  import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
7
+ import { ResourceNotFoundException } from "../models/errors";
8
+ import { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
9
  export declare const waitForPortalNotExists: (
5
10
  params: WaiterConfiguration<IoTSiteWiseClient>,
6
11
  input: DescribePortalCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribePortalCommandOutput | IoTSiteWiseServiceException>
14
+ >;
8
15
  export declare const waitUntilPortalNotExists: (
9
16
  params: WaiterConfiguration<IoTSiteWiseClient>,
10
17
  input: DescribePortalCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeAssetCommandInput } from "../commands/DescribeAssetCommand";
2
+ import { type DescribeAssetCommandInput, type DescribeAssetCommandOutput } from "../commands/DescribeAssetCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilAssetActive instead. waitForAssetActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForAssetActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForAssetActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult<DescribeAssetCommandOutput | IoTSiteWiseServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeAssetCommand for polling.
13
14
  */
14
- export declare const waitUntilAssetActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilAssetActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult<DescribeAssetCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeAssetModelCommandInput } from "../commands/DescribeAssetModelCommand";
2
+ import { type DescribeAssetModelCommandInput, type DescribeAssetModelCommandOutput } from "../commands/DescribeAssetModelCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilAssetModelActive instead. waitForAssetModelActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForAssetModelActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForAssetModelActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult<DescribeAssetModelCommandOutput | IoTSiteWiseServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeAssetModelCommand for polling.
13
14
  */
14
- export declare const waitUntilAssetModelActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilAssetModelActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult<DescribeAssetModelCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeAssetModelCommandInput } from "../commands/DescribeAssetModelCommand";
2
+ import { type DescribeAssetModelCommandInput, type DescribeAssetModelCommandOutput } from "../commands/DescribeAssetModelCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { ResourceNotFoundException } from "../models/errors";
5
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilAssetModelNotExists instead. waitForAssetModelNotExists does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForAssetModelNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForAssetModelNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult<DescribeAssetModelCommandOutput | IoTSiteWiseServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribeAssetModelCommand for polling.
13
15
  */
14
- export declare const waitUntilAssetModelNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilAssetModelNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetModelCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeAssetCommandInput } from "../commands/DescribeAssetCommand";
2
+ import { type DescribeAssetCommandInput, type DescribeAssetCommandOutput } from "../commands/DescribeAssetCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { ResourceNotFoundException } from "../models/errors";
5
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilAssetNotExists instead. waitForAssetNotExists does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForAssetNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForAssetNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult<DescribeAssetCommandOutput | IoTSiteWiseServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribeAssetCommand for polling.
13
15
  */
14
- export declare const waitUntilAssetNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilAssetNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribeAssetCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribePortalCommandInput } from "../commands/DescribePortalCommand";
2
+ import { type DescribePortalCommandInput, type DescribePortalCommandOutput } from "../commands/DescribePortalCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilPortalActive instead. waitForPortalActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForPortalActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForPortalActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult<DescribePortalCommandOutput | IoTSiteWiseServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribePortalCommand for polling.
13
14
  */
14
- export declare const waitUntilPortalActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilPortalActive: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult<DescribePortalCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribePortalCommandInput } from "../commands/DescribePortalCommand";
2
+ import { type DescribePortalCommandInput, type DescribePortalCommandOutput } from "../commands/DescribePortalCommand";
3
3
  import type { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ import type { ResourceNotFoundException } from "../models/errors";
5
+ import type { IoTSiteWiseServiceException } from "../models/IoTSiteWiseServiceException";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilPortalNotExists instead. waitForPortalNotExists does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForPortalNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForPortalNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult<DescribePortalCommandOutput | IoTSiteWiseServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribePortalCommand for polling.
13
15
  */
14
- export declare const waitUntilPortalNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilPortalNotExists: (params: WaiterConfiguration<IoTSiteWiseClient>, input: DescribePortalCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsitewise",
3
3
  "description": "AWS SDK for JavaScript Iotsitewise 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-iotsitewise",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/eventstream-serde-browser": "^4.2.14",
@@ -42,7 +42,7 @@
42
42
  "@smithy/invalid-dependency": "^4.2.14",
43
43
  "@smithy/middleware-content-length": "^4.2.14",
44
44
  "@smithy/middleware-endpoint": "^4.4.32",
45
- "@smithy/middleware-retry": "^4.5.5",
45
+ "@smithy/middleware-retry": "^4.5.6",
46
46
  "@smithy/middleware-serde": "^4.2.20",
47
47
  "@smithy/middleware-stack": "^4.2.14",
48
48
  "@smithy/node-config-provider": "^4.3.14",
@@ -58,9 +58,9 @@
58
58
  "@smithy/util-defaults-mode-node": "^4.2.54",
59
59
  "@smithy/util-endpoints": "^3.4.2",
60
60
  "@smithy/util-middleware": "^4.2.14",
61
- "@smithy/util-retry": "^4.3.4",
61
+ "@smithy/util-retry": "^4.3.5",
62
62
  "@smithy/util-utf8": "^4.2.2",
63
- "@smithy/util-waiter": "^4.2.16",
63
+ "@smithy/util-waiter": "^4.3.0",
64
64
  "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {