@aws-sdk/client-resource-groups 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 "./ResourceGroupsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ResourceGroupsServiceException } from "./models/ResourceGroupsServiceException";
@@ -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 ResourceGroups service.
4
+ */
5
+ export declare class ResourceGroupsServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,16 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ResourceGroupsServiceException as __BaseException } from "./ResourceGroupsServiceException";
2
3
  /**
3
4
  * <p>The request includes one or more parameters that violate validation rules.</p>
4
5
  */
5
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
6
- name: "BadRequestException";
7
- $fault: "client";
6
+ export declare class BadRequestException extends __BaseException {
7
+ readonly name: "BadRequestException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>A parameter for a group configuration item. For details about group service
@@ -407,35 +412,51 @@ export declare namespace CreateGroupOutput {
407
412
  /**
408
413
  * <p>The caller isn't authorized to make the request. Check permissions.</p>
409
414
  */
410
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
411
- name: "ForbiddenException";
412
- $fault: "client";
415
+ export declare class ForbiddenException extends __BaseException {
416
+ readonly name: "ForbiddenException";
417
+ readonly $fault: "client";
413
418
  Message?: string;
419
+ /**
420
+ * @internal
421
+ */
422
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
414
423
  }
415
424
  /**
416
425
  * <p>An internal error occurred while processing the request. Try again later.</p>
417
426
  */
418
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
419
- name: "InternalServerErrorException";
420
- $fault: "server";
427
+ export declare class InternalServerErrorException extends __BaseException {
428
+ readonly name: "InternalServerErrorException";
429
+ readonly $fault: "server";
421
430
  Message?: string;
431
+ /**
432
+ * @internal
433
+ */
434
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
422
435
  }
423
436
  /**
424
437
  * <p>The request uses an HTTP method that isn't allowed for the specified resource.</p>
425
438
  */
426
- export interface MethodNotAllowedException extends __SmithyException, $MetadataBearer {
427
- name: "MethodNotAllowedException";
428
- $fault: "client";
439
+ export declare class MethodNotAllowedException extends __BaseException {
440
+ readonly name: "MethodNotAllowedException";
441
+ readonly $fault: "client";
429
442
  Message?: string;
443
+ /**
444
+ * @internal
445
+ */
446
+ constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
430
447
  }
431
448
  /**
432
449
  * <p>You've exceeded throttling limits by making too many requests in a period of
433
450
  * time.</p>
434
451
  */
435
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
436
- name: "TooManyRequestsException";
437
- $fault: "client";
452
+ export declare class TooManyRequestsException extends __BaseException {
453
+ readonly name: "TooManyRequestsException";
454
+ readonly $fault: "client";
438
455
  Message?: string;
456
+ /**
457
+ * @internal
458
+ */
459
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
439
460
  }
440
461
  export interface DeleteGroupInput {
441
462
  /**
@@ -470,10 +491,14 @@ export declare namespace DeleteGroupOutput {
470
491
  /**
471
492
  * <p>One or more of the specified resources don't exist.</p>
472
493
  */
473
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
474
- name: "NotFoundException";
475
- $fault: "client";
494
+ export declare class NotFoundException extends __BaseException {
495
+ readonly name: "NotFoundException";
496
+ readonly $fault: "client";
476
497
  Message?: string;
498
+ /**
499
+ * @internal
500
+ */
501
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
477
502
  }
478
503
  export interface GetGroupInput {
479
504
  /**
@@ -941,10 +966,14 @@ export declare namespace ListGroupResourcesOutput {
941
966
  * <p>The request was rejected because it doesn't have valid credentials for the target
942
967
  * resource.</p>
943
968
  */
944
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
945
- name: "UnauthorizedException";
946
- $fault: "client";
969
+ export declare class UnauthorizedException extends __BaseException {
970
+ readonly name: "UnauthorizedException";
971
+ readonly $fault: "client";
947
972
  Message?: string;
973
+ /**
974
+ * @internal
975
+ */
976
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
948
977
  }
949
978
  export declare enum GroupFilterName {
950
979
  ConfigurationType = "configuration-type",
@@ -3,3 +3,4 @@ export * from "./ResourceGroupsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ResourceGroupsServiceException } from "./models/ResourceGroupsServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ResourceGroupsServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ResourceGroupsServiceException as __BaseException } from "./ResourceGroupsServiceException";
2
3
 
3
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
4
- name: "BadRequestException";
5
- $fault: "client";
4
+ export declare class BadRequestException extends __BaseException {
5
+ readonly name: "BadRequestException";
6
+ readonly $fault: "client";
6
7
  Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
7
10
  }
8
11
 
9
12
  export interface GroupConfigurationParameter {
@@ -110,28 +113,36 @@ export declare namespace CreateGroupOutput {
110
113
  const filterSensitiveLog: (obj: CreateGroupOutput) => any;
111
114
  }
112
115
 
113
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
114
- name: "ForbiddenException";
115
- $fault: "client";
116
+ export declare class ForbiddenException extends __BaseException {
117
+ readonly name: "ForbiddenException";
118
+ readonly $fault: "client";
116
119
  Message?: string;
120
+
121
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
117
122
  }
118
123
 
119
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
120
- name: "InternalServerErrorException";
121
- $fault: "server";
124
+ export declare class InternalServerErrorException extends __BaseException {
125
+ readonly name: "InternalServerErrorException";
126
+ readonly $fault: "server";
122
127
  Message?: string;
128
+
129
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
123
130
  }
124
131
 
125
- export interface MethodNotAllowedException extends __SmithyException, $MetadataBearer {
126
- name: "MethodNotAllowedException";
127
- $fault: "client";
132
+ export declare class MethodNotAllowedException extends __BaseException {
133
+ readonly name: "MethodNotAllowedException";
134
+ readonly $fault: "client";
128
135
  Message?: string;
136
+
137
+ constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
129
138
  }
130
139
 
131
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
132
- name: "TooManyRequestsException";
133
- $fault: "client";
140
+ export declare class TooManyRequestsException extends __BaseException {
141
+ readonly name: "TooManyRequestsException";
142
+ readonly $fault: "client";
134
143
  Message?: string;
144
+
145
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
135
146
  }
136
147
  export interface DeleteGroupInput {
137
148
 
@@ -152,10 +163,12 @@ export declare namespace DeleteGroupOutput {
152
163
  const filterSensitiveLog: (obj: DeleteGroupOutput) => any;
153
164
  }
154
165
 
155
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
156
- name: "NotFoundException";
157
- $fault: "client";
166
+ export declare class NotFoundException extends __BaseException {
167
+ readonly name: "NotFoundException";
168
+ readonly $fault: "client";
158
169
  Message?: string;
170
+
171
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
159
172
  }
160
173
  export interface GetGroupInput {
161
174
 
@@ -378,10 +391,12 @@ export declare namespace ListGroupResourcesOutput {
378
391
  const filterSensitiveLog: (obj: ListGroupResourcesOutput) => any;
379
392
  }
380
393
 
381
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
382
- name: "UnauthorizedException";
383
- $fault: "client";
394
+ export declare class UnauthorizedException extends __BaseException {
395
+ readonly name: "UnauthorizedException";
396
+ readonly $fault: "client";
384
397
  Message?: string;
398
+
399
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
385
400
  }
386
401
  export declare enum GroupFilterName {
387
402
  ConfigurationType = "configuration-type",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-resource-groups",
3
3
  "description": "AWS SDK for JavaScript Resource Groups 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"