@aws-sdk/client-iotthingsgraph 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.
@@ -3,3 +3,4 @@ export * from "./IoTThingsGraphClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { IoTThingsGraphServiceException } from "./models/IoTThingsGraphServiceException";
@@ -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 IoTThingsGraph service.
4
+ */
5
+ export declare class IoTThingsGraphServiceException 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 { IoTThingsGraphServiceException as __BaseException } from "./IoTThingsGraphServiceException";
2
3
  export interface AssociateEntityToThingRequest {
3
4
  /**
4
5
  * <p>The name of the thing to which the entity is to be associated.</p>
@@ -34,34 +35,46 @@ export declare namespace AssociateEntityToThingResponse {
34
35
  /**
35
36
  * <p></p>
36
37
  */
37
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
38
- name: "InternalFailureException";
39
- $fault: "server";
40
- message?: string;
38
+ export declare class InternalFailureException extends __BaseException {
39
+ readonly name: "InternalFailureException";
40
+ readonly $fault: "server";
41
+ /**
42
+ * @internal
43
+ */
44
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
41
45
  }
42
46
  /**
43
47
  * <p></p>
44
48
  */
45
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
46
- name: "InvalidRequestException";
47
- $fault: "client";
48
- message?: string;
49
+ export declare class InvalidRequestException extends __BaseException {
50
+ readonly name: "InvalidRequestException";
51
+ readonly $fault: "client";
52
+ /**
53
+ * @internal
54
+ */
55
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
49
56
  }
50
57
  /**
51
58
  * <p></p>
52
59
  */
53
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
54
- name: "ResourceNotFoundException";
55
- $fault: "client";
56
- message?: string;
60
+ export declare class ResourceNotFoundException extends __BaseException {
61
+ readonly name: "ResourceNotFoundException";
62
+ readonly $fault: "client";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
57
67
  }
58
68
  /**
59
69
  * <p></p>
60
70
  */
61
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
62
- name: "ThrottlingException";
63
- $fault: "client";
64
- message?: string;
71
+ export declare class ThrottlingException extends __BaseException {
72
+ readonly name: "ThrottlingException";
73
+ readonly $fault: "client";
74
+ /**
75
+ * @internal
76
+ */
77
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
65
78
  }
66
79
  export declare enum DefinitionLanguage {
67
80
  GRAPHQL = "GRAPHQL"
@@ -144,18 +157,24 @@ export declare namespace CreateFlowTemplateResponse {
144
157
  /**
145
158
  * <p></p>
146
159
  */
147
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
148
- name: "LimitExceededException";
149
- $fault: "client";
150
- message?: string;
160
+ export declare class LimitExceededException extends __BaseException {
161
+ readonly name: "LimitExceededException";
162
+ readonly $fault: "client";
163
+ /**
164
+ * @internal
165
+ */
166
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
151
167
  }
152
168
  /**
153
169
  * <p></p>
154
170
  */
155
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
156
- name: "ResourceAlreadyExistsException";
157
- $fault: "client";
158
- message?: string;
171
+ export declare class ResourceAlreadyExistsException extends __BaseException {
172
+ readonly name: "ResourceAlreadyExistsException";
173
+ readonly $fault: "client";
174
+ /**
175
+ * @internal
176
+ */
177
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
159
178
  }
160
179
  /**
161
180
  * <p>An object that specifies whether cloud metrics are collected in a deployment and, if so, what role is used to collect metrics.</p>
@@ -393,10 +412,13 @@ export declare namespace DeleteFlowTemplateResponse {
393
412
  /**
394
413
  * <p></p>
395
414
  */
396
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
397
- name: "ResourceInUseException";
398
- $fault: "client";
399
- message?: string;
415
+ export declare class ResourceInUseException extends __BaseException {
416
+ readonly name: "ResourceInUseException";
417
+ readonly $fault: "client";
418
+ /**
419
+ * @internal
420
+ */
421
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
400
422
  }
401
423
  export interface DeleteNamespaceRequest {
402
424
  }
@@ -3,3 +3,4 @@ export * from "./IoTThingsGraphClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { IoTThingsGraphServiceException } from "./models/IoTThingsGraphServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class IoTThingsGraphServiceException 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 { IoTThingsGraphServiceException as __BaseException } from "./IoTThingsGraphServiceException";
2
3
  export interface AssociateEntityToThingRequest {
3
4
 
4
5
  thingName: string | undefined;
@@ -18,28 +19,32 @@ export declare namespace AssociateEntityToThingResponse {
18
19
  const filterSensitiveLog: (obj: AssociateEntityToThingResponse) => any;
19
20
  }
20
21
 
21
- export interface InternalFailureException extends __SmithyException, $MetadataBearer {
22
- name: "InternalFailureException";
23
- $fault: "server";
24
- message?: string;
22
+ export declare class InternalFailureException extends __BaseException {
23
+ readonly name: "InternalFailureException";
24
+ readonly $fault: "server";
25
+
26
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
25
27
  }
26
28
 
27
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
28
- name: "InvalidRequestException";
29
- $fault: "client";
30
- message?: string;
29
+ export declare class InvalidRequestException extends __BaseException {
30
+ readonly name: "InvalidRequestException";
31
+ readonly $fault: "client";
32
+
33
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
31
34
  }
32
35
 
33
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
34
- name: "ResourceNotFoundException";
35
- $fault: "client";
36
- message?: string;
36
+ export declare class ResourceNotFoundException extends __BaseException {
37
+ readonly name: "ResourceNotFoundException";
38
+ readonly $fault: "client";
39
+
40
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
37
41
  }
38
42
 
39
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
40
- name: "ThrottlingException";
41
- $fault: "client";
42
- message?: string;
43
+ export declare class ThrottlingException extends __BaseException {
44
+ readonly name: "ThrottlingException";
45
+ readonly $fault: "client";
46
+
47
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
43
48
  }
44
49
  export declare enum DefinitionLanguage {
45
50
  GRAPHQL = "GRAPHQL"
@@ -89,16 +94,18 @@ export declare namespace CreateFlowTemplateResponse {
89
94
  const filterSensitiveLog: (obj: CreateFlowTemplateResponse) => any;
90
95
  }
91
96
 
92
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
93
- name: "LimitExceededException";
94
- $fault: "client";
95
- message?: string;
97
+ export declare class LimitExceededException extends __BaseException {
98
+ readonly name: "LimitExceededException";
99
+ readonly $fault: "client";
100
+
101
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
96
102
  }
97
103
 
98
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
99
- name: "ResourceAlreadyExistsException";
100
- $fault: "client";
101
- message?: string;
104
+ export declare class ResourceAlreadyExistsException extends __BaseException {
105
+ readonly name: "ResourceAlreadyExistsException";
106
+ readonly $fault: "client";
107
+
108
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
102
109
  }
103
110
 
104
111
  export interface MetricsConfiguration {
@@ -237,10 +244,11 @@ export declare namespace DeleteFlowTemplateResponse {
237
244
  const filterSensitiveLog: (obj: DeleteFlowTemplateResponse) => any;
238
245
  }
239
246
 
240
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
241
- name: "ResourceInUseException";
242
- $fault: "client";
243
- message?: string;
247
+ export declare class ResourceInUseException extends __BaseException {
248
+ readonly name: "ResourceInUseException";
249
+ readonly $fault: "client";
250
+
251
+ constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
244
252
  }
245
253
  export interface DeleteNamespaceRequest {
246
254
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotthingsgraph",
3
3
  "description": "AWS SDK for JavaScript Iotthingsgraph 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,34 +18,34 @@
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
51
  "tslib": "^2.3.0"