@aws-sdk/client-iotsitewise 3.52.0 → 3.53.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.
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { IoTSiteWiseServiceException } from "./models/IoTSiteWiseServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from IoTSiteWise service.
4
+ */
5
+ export declare class IoTSiteWiseServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException";
2
3
  /**
3
4
  * <p>Contains information for a group identity in an access policy.</p>
4
5
  */
@@ -1338,10 +1339,9 @@ export declare namespace AssociateAssetsRequest {
1338
1339
  * <p>Your request has conflicting operations. This can occur if you're trying to perform more
1339
1340
  * than one operation on the same resource at the same time.</p>
1340
1341
  */
1341
- export interface ConflictingOperationException extends __SmithyException, $MetadataBearer {
1342
- name: "ConflictingOperationException";
1343
- $fault: "client";
1344
- message: string | undefined;
1342
+ export declare class ConflictingOperationException extends __BaseException {
1343
+ readonly name: "ConflictingOperationException";
1344
+ readonly $fault: "client";
1345
1345
  /**
1346
1346
  * <p>The ID of the resource that conflicts with this operation.</p>
1347
1347
  */
@@ -1350,23 +1350,33 @@ export interface ConflictingOperationException extends __SmithyException, $Metad
1350
1350
  * <p>The ARN of the resource that conflicts with this operation.</p>
1351
1351
  */
1352
1352
  resourceArn: string | undefined;
1353
+ /**
1354
+ * @internal
1355
+ */
1356
+ constructor(opts: __ExceptionOptionType<ConflictingOperationException, __BaseException>);
1353
1357
  }
1354
1358
  /**
1355
1359
  * <p>IoT SiteWise can't process your request right now. Try again later.</p>
1356
1360
  */
1357
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
1358
- name: "InternalFailureException";
1359
- $fault: "server";
1360
- message: string | undefined;
1361
+ export declare class InternalFailureException extends __BaseException {
1362
+ readonly name: "InternalFailureException";
1363
+ readonly $fault: "server";
1364
+ /**
1365
+ * @internal
1366
+ */
1367
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
1361
1368
  }
1362
1369
  /**
1363
1370
  * <p>The request isn't valid. This can occur if your request contains malformed JSON or
1364
1371
  * unsupported characters. Check your request and try again.</p>
1365
1372
  */
1366
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
1367
- name: "InvalidRequestException";
1368
- $fault: "client";
1369
- message: string | undefined;
1373
+ export declare class InvalidRequestException extends __BaseException {
1374
+ readonly name: "InvalidRequestException";
1375
+ readonly $fault: "client";
1376
+ /**
1377
+ * @internal
1378
+ */
1379
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
1370
1380
  }
1371
1381
  /**
1372
1382
  * <p>You've reached the limit for a resource. For example, this can occur if you're trying to
@@ -1374,18 +1384,24 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
1374
1384
  * allowed number of properties for an asset model.</p>
1375
1385
  * <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
1376
1386
  */
1377
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
1378
- name: "LimitExceededException";
1379
- $fault: "client";
1380
- message: string | undefined;
1387
+ export declare class LimitExceededException extends __BaseException {
1388
+ readonly name: "LimitExceededException";
1389
+ readonly $fault: "client";
1390
+ /**
1391
+ * @internal
1392
+ */
1393
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
1381
1394
  }
1382
1395
  /**
1383
1396
  * <p>The requested resource can't be found.</p>
1384
1397
  */
1385
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1386
- name: "ResourceNotFoundException";
1387
- $fault: "client";
1388
- message: string | undefined;
1398
+ export declare class ResourceNotFoundException extends __BaseException {
1399
+ readonly name: "ResourceNotFoundException";
1400
+ readonly $fault: "client";
1401
+ /**
1402
+ * @internal
1403
+ */
1404
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1389
1405
  }
1390
1406
  /**
1391
1407
  * <p>Your request exceeded a rate limit. For example, you might have exceeded the number of
@@ -1393,10 +1409,13 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
1393
1409
  * on.</p>
1394
1410
  * <p>For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p>
1395
1411
  */
1396
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
1397
- name: "ThrottlingException";
1398
- $fault: "client";
1399
- message: string | undefined;
1412
+ export declare class ThrottlingException extends __BaseException {
1413
+ readonly name: "ThrottlingException";
1414
+ readonly $fault: "client";
1415
+ /**
1416
+ * @internal
1417
+ */
1418
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
1400
1419
  }
1401
1420
  /**
1402
1421
  * <p>Contains a summary of an associated asset.</p>
@@ -1657,10 +1676,13 @@ export declare namespace BatchPutAssetPropertyValueResponse {
1657
1676
  /**
1658
1677
  * <p>The requested service is unavailable.</p>
1659
1678
  */
1660
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
1661
- name: "ServiceUnavailableException";
1662
- $fault: "server";
1663
- message: string | undefined;
1679
+ export declare class ServiceUnavailableException extends __BaseException {
1680
+ readonly name: "ServiceUnavailableException";
1681
+ readonly $fault: "server";
1682
+ /**
1683
+ * @internal
1684
+ */
1685
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
1664
1686
  }
1665
1687
  export interface CreateAccessPolicyRequest {
1666
1688
  /**
@@ -1769,10 +1791,9 @@ export declare namespace CreateAssetResponse {
1769
1791
  /**
1770
1792
  * <p>The resource already exists.</p>
1771
1793
  */
1772
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
1773
- name: "ResourceAlreadyExistsException";
1774
- $fault: "client";
1775
- message: string | undefined;
1794
+ export declare class ResourceAlreadyExistsException extends __BaseException {
1795
+ readonly name: "ResourceAlreadyExistsException";
1796
+ readonly $fault: "client";
1776
1797
  /**
1777
1798
  * <p>The ID of the resource that already exists.</p>
1778
1799
  */
@@ -1781,6 +1802,10 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
1781
1802
  * <p>The ARN of the resource that already exists.</p>
1782
1803
  */
1783
1804
  resourceArn: string | undefined;
1805
+ /**
1806
+ * @internal
1807
+ */
1808
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1784
1809
  }
1785
1810
  export interface CreateAssetModelRequest {
1786
1811
  /**
@@ -4456,10 +4481,13 @@ export declare namespace ListTagsForResourceResponse {
4456
4481
  /**
4457
4482
  * <p>You are not authorized.</p>
4458
4483
  */
4459
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
4460
- name: "UnauthorizedException";
4461
- $fault: "client";
4462
- message: string | undefined;
4484
+ export declare class UnauthorizedException extends __BaseException {
4485
+ readonly name: "UnauthorizedException";
4486
+ readonly $fault: "client";
4487
+ /**
4488
+ * @internal
4489
+ */
4490
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
4463
4491
  }
4464
4492
  export declare enum ListTimeSeriesType {
4465
4493
  ASSOCIATED = "ASSOCIATED",
@@ -4774,14 +4802,17 @@ export declare namespace TagResourceResponse {
4774
4802
  * information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions">Tag naming limits and
4775
4803
  * requirements</a> in the <i>Amazon Web Services General Reference</i>.</p>
4776
4804
  */
4777
- export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
4778
- name: "TooManyTagsException";
4779
- $fault: "client";
4780
- message?: string;
4805
+ export declare class TooManyTagsException extends __BaseException {
4806
+ readonly name: "TooManyTagsException";
4807
+ readonly $fault: "client";
4781
4808
  /**
4782
4809
  * <p>The name of the resource with too many tags.</p>
4783
4810
  */
4784
4811
  resourceName?: string;
4812
+ /**
4813
+ * @internal
4814
+ */
4815
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
4785
4816
  }
4786
4817
  export interface UntagResourceRequest {
4787
4818
  /**
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { IoTSiteWiseServiceException } from "./models/IoTSiteWiseServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class IoTSiteWiseServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException";
2
3
 
3
4
  export interface GroupIdentity {
4
5
 
@@ -674,44 +675,50 @@ export declare namespace AssociateAssetsRequest {
674
675
  const filterSensitiveLog: (obj: AssociateAssetsRequest) => any;
675
676
  }
676
677
 
677
- export interface ConflictingOperationException extends __SmithyException, $MetadataBearer {
678
- name: "ConflictingOperationException";
679
- $fault: "client";
680
- message: string | undefined;
678
+ export declare class ConflictingOperationException extends __BaseException {
679
+ readonly name: "ConflictingOperationException";
680
+ readonly $fault: "client";
681
681
 
682
682
  resourceId: string | undefined;
683
683
 
684
684
  resourceArn: string | undefined;
685
+
686
+ constructor(opts: __ExceptionOptionType<ConflictingOperationException, __BaseException>);
685
687
  }
686
688
 
687
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
688
- name: "InternalFailureException";
689
- $fault: "server";
690
- message: string | undefined;
689
+ export declare class InternalFailureException extends __BaseException {
690
+ readonly name: "InternalFailureException";
691
+ readonly $fault: "server";
692
+
693
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
691
694
  }
692
695
 
693
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
694
- name: "InvalidRequestException";
695
- $fault: "client";
696
- message: string | undefined;
696
+ export declare class InvalidRequestException extends __BaseException {
697
+ readonly name: "InvalidRequestException";
698
+ readonly $fault: "client";
699
+
700
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
697
701
  }
698
702
 
699
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
700
- name: "LimitExceededException";
701
- $fault: "client";
702
- message: string | undefined;
703
+ export declare class LimitExceededException extends __BaseException {
704
+ readonly name: "LimitExceededException";
705
+ readonly $fault: "client";
706
+
707
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
703
708
  }
704
709
 
705
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
706
- name: "ResourceNotFoundException";
707
- $fault: "client";
708
- message: string | undefined;
710
+ export declare class ResourceNotFoundException extends __BaseException {
711
+ readonly name: "ResourceNotFoundException";
712
+ readonly $fault: "client";
713
+
714
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
709
715
  }
710
716
 
711
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
712
- name: "ThrottlingException";
713
- $fault: "client";
714
- message: string | undefined;
717
+ export declare class ThrottlingException extends __BaseException {
718
+ readonly name: "ThrottlingException";
719
+ readonly $fault: "client";
720
+
721
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
715
722
  }
716
723
 
717
724
  export interface AssociatedAssetsSummary {
@@ -863,10 +870,11 @@ export declare namespace BatchPutAssetPropertyValueResponse {
863
870
  const filterSensitiveLog: (obj: BatchPutAssetPropertyValueResponse) => any;
864
871
  }
865
872
 
866
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
867
- name: "ServiceUnavailableException";
868
- $fault: "server";
869
- message: string | undefined;
873
+ export declare class ServiceUnavailableException extends __BaseException {
874
+ readonly name: "ServiceUnavailableException";
875
+ readonly $fault: "server";
876
+
877
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
870
878
  }
871
879
  export interface CreateAccessPolicyRequest {
872
880
 
@@ -925,14 +933,15 @@ export declare namespace CreateAssetResponse {
925
933
  const filterSensitiveLog: (obj: CreateAssetResponse) => any;
926
934
  }
927
935
 
928
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
929
- name: "ResourceAlreadyExistsException";
930
- $fault: "client";
931
- message: string | undefined;
936
+ export declare class ResourceAlreadyExistsException extends __BaseException {
937
+ readonly name: "ResourceAlreadyExistsException";
938
+ readonly $fault: "client";
932
939
 
933
940
  resourceId: string | undefined;
934
941
 
935
942
  resourceArn: string | undefined;
943
+
944
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
936
945
  }
937
946
  export interface CreateAssetModelRequest {
938
947
 
@@ -2329,10 +2338,11 @@ export declare namespace ListTagsForResourceResponse {
2329
2338
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2330
2339
  }
2331
2340
 
2332
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
2333
- name: "UnauthorizedException";
2334
- $fault: "client";
2335
- message: string | undefined;
2341
+ export declare class UnauthorizedException extends __BaseException {
2342
+ readonly name: "UnauthorizedException";
2343
+ readonly $fault: "client";
2344
+
2345
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
2336
2346
  }
2337
2347
  export declare enum ListTimeSeriesType {
2338
2348
  ASSOCIATED = "ASSOCIATED",
@@ -2472,12 +2482,13 @@ export declare namespace TagResourceResponse {
2472
2482
  const filterSensitiveLog: (obj: TagResourceResponse) => any;
2473
2483
  }
2474
2484
 
2475
- export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
2476
- name: "TooManyTagsException";
2477
- $fault: "client";
2478
- message?: string;
2485
+ export declare class TooManyTagsException extends __BaseException {
2486
+ readonly name: "TooManyTagsException";
2487
+ readonly $fault: "client";
2479
2488
 
2480
2489
  resourceName?: string;
2490
+
2491
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
2481
2492
  }
2482
2493
  export interface UntagResourceRequest {
2483
2494
 
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.52.0",
4
+ "version": "3.53.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",
@@ -18,37 +18,37 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
- "@aws-sdk/util-waiter": "3.52.0",
51
+ "@aws-sdk/util-waiter": "3.53.0",
52
52
  "tslib": "^2.3.0",
53
53
  "uuid": "^8.3.2"
54
54
  },