@aws-sdk/client-application-auto-scaling 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 "./ApplicationAutoScalingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ApplicationAutoScalingServiceException } from "./models/ApplicationAutoScalingServiceException";
@@ -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 ApplicationAutoScaling service.
4
+ */
5
+ export declare class ApplicationAutoScalingServiceException 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 { ApplicationAutoScalingServiceException as __BaseException } from "./ApplicationAutoScalingServiceException";
2
3
  export declare enum AdjustmentType {
3
4
  ChangeInCapacity = "ChangeInCapacity",
4
5
  ExactCapacity = "ExactCapacity",
@@ -27,10 +28,14 @@ export declare namespace Alarm {
27
28
  * <p>Concurrent updates caused an exception, for example, if you request an update to an
28
29
  * Application Auto Scaling resource that already has a pending update.</p>
29
30
  */
30
- export interface ConcurrentUpdateException extends __SmithyException, $MetadataBearer {
31
- name: "ConcurrentUpdateException";
32
- $fault: "server";
31
+ export declare class ConcurrentUpdateException extends __BaseException {
32
+ readonly name: "ConcurrentUpdateException";
33
+ readonly $fault: "server";
33
34
  Message?: string;
35
+ /**
36
+ * @internal
37
+ */
38
+ constructor(opts: __ExceptionOptionType<ConcurrentUpdateException, __BaseException>);
34
39
  }
35
40
  export declare enum ScalableDimension {
36
41
  AppstreamFleetDesiredCapacity = "appstream:fleet:DesiredCapacity",
@@ -253,10 +258,14 @@ export declare namespace DeleteScalingPolicyResponse {
253
258
  /**
254
259
  * <p>The service encountered an internal error.</p>
255
260
  */
256
- export interface InternalServiceException extends __SmithyException, $MetadataBearer {
257
- name: "InternalServiceException";
258
- $fault: "server";
261
+ export declare class InternalServiceException extends __BaseException {
262
+ readonly name: "InternalServiceException";
263
+ readonly $fault: "server";
259
264
  Message?: string;
265
+ /**
266
+ * @internal
267
+ */
268
+ constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
260
269
  }
261
270
  /**
262
271
  * <p>The specified object could not be found. For any operation that depends on the existence
@@ -265,19 +274,27 @@ export interface InternalServiceException extends __SmithyException, $MetadataBe
265
274
  * that deletes or deregisters a resource, this exception is thrown if the resource cannot be
266
275
  * found.</p>
267
276
  */
268
- export interface ObjectNotFoundException extends __SmithyException, $MetadataBearer {
269
- name: "ObjectNotFoundException";
270
- $fault: "client";
277
+ export declare class ObjectNotFoundException extends __BaseException {
278
+ readonly name: "ObjectNotFoundException";
279
+ readonly $fault: "client";
271
280
  Message?: string;
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts: __ExceptionOptionType<ObjectNotFoundException, __BaseException>);
272
285
  }
273
286
  /**
274
287
  * <p>An exception was thrown for a validation issue. Review the available parameters for the
275
288
  * API request.</p>
276
289
  */
277
- export interface ValidationException extends __SmithyException, $MetadataBearer {
278
- name: "ValidationException";
279
- $fault: "client";
290
+ export declare class ValidationException extends __BaseException {
291
+ readonly name: "ValidationException";
292
+ readonly $fault: "client";
280
293
  Message?: string;
294
+ /**
295
+ * @internal
296
+ */
297
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
281
298
  }
282
299
  export interface DeleteScheduledActionRequest {
283
300
  /**
@@ -1063,10 +1080,14 @@ export declare namespace DescribeScalableTargetsResponse {
1063
1080
  /**
1064
1081
  * <p>The next token supplied was invalid.</p>
1065
1082
  */
1066
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
1067
- name: "InvalidNextTokenException";
1068
- $fault: "client";
1083
+ export declare class InvalidNextTokenException extends __BaseException {
1084
+ readonly name: "InvalidNextTokenException";
1085
+ readonly $fault: "client";
1069
1086
  Message?: string;
1087
+ /**
1088
+ * @internal
1089
+ */
1090
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
1070
1091
  }
1071
1092
  export interface DescribeScalingActivitiesRequest {
1072
1093
  /**
@@ -2374,10 +2395,14 @@ export declare namespace DescribeScalingPoliciesResponse {
2374
2395
  * for example, if the role ARN specified for a scalable target does not have permission to
2375
2396
  * call the CloudWatch <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> on your behalf.</p>
2376
2397
  */
2377
- export interface FailedResourceAccessException extends __SmithyException, $MetadataBearer {
2378
- name: "FailedResourceAccessException";
2379
- $fault: "client";
2398
+ export declare class FailedResourceAccessException extends __BaseException {
2399
+ readonly name: "FailedResourceAccessException";
2400
+ readonly $fault: "client";
2380
2401
  Message?: string;
2402
+ /**
2403
+ * @internal
2404
+ */
2405
+ constructor(opts: __ExceptionOptionType<FailedResourceAccessException, __BaseException>);
2381
2406
  }
2382
2407
  export interface DescribeScheduledActionsRequest {
2383
2408
  /**
@@ -2842,10 +2867,14 @@ export declare namespace DescribeScheduledActionsResponse {
2842
2867
  /**
2843
2868
  * <p>A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application Auto Scaling service quotas</a>.</p>
2844
2869
  */
2845
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
2846
- name: "LimitExceededException";
2847
- $fault: "client";
2870
+ export declare class LimitExceededException extends __BaseException {
2871
+ readonly name: "LimitExceededException";
2872
+ readonly $fault: "client";
2848
2873
  Message?: string;
2874
+ /**
2875
+ * @internal
2876
+ */
2877
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
2849
2878
  }
2850
2879
  export interface PutScalingPolicyRequest {
2851
2880
  /**
@@ -3,3 +3,4 @@ export * from "./ApplicationAutoScalingClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ApplicationAutoScalingServiceException } from "./models/ApplicationAutoScalingServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ApplicationAutoScalingServiceException 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 { ApplicationAutoScalingServiceException as __BaseException } from "./ApplicationAutoScalingServiceException";
2
3
  export declare enum AdjustmentType {
3
4
  ChangeInCapacity = "ChangeInCapacity",
4
5
  ExactCapacity = "ExactCapacity",
@@ -16,10 +17,12 @@ export declare namespace Alarm {
16
17
  const filterSensitiveLog: (obj: Alarm) => any;
17
18
  }
18
19
 
19
- export interface ConcurrentUpdateException extends __SmithyException, $MetadataBearer {
20
- name: "ConcurrentUpdateException";
21
- $fault: "server";
20
+ export declare class ConcurrentUpdateException extends __BaseException {
21
+ readonly name: "ConcurrentUpdateException";
22
+ readonly $fault: "server";
22
23
  Message?: string;
24
+
25
+ constructor(opts: __ExceptionOptionType<ConcurrentUpdateException, __BaseException>);
23
26
  }
24
27
  export declare enum ScalableDimension {
25
28
  AppstreamFleetDesiredCapacity = "appstream:fleet:DesiredCapacity",
@@ -80,22 +83,28 @@ export declare namespace DeleteScalingPolicyResponse {
80
83
  const filterSensitiveLog: (obj: DeleteScalingPolicyResponse) => any;
81
84
  }
82
85
 
83
- export interface InternalServiceException extends __SmithyException, $MetadataBearer {
84
- name: "InternalServiceException";
85
- $fault: "server";
86
+ export declare class InternalServiceException extends __BaseException {
87
+ readonly name: "InternalServiceException";
88
+ readonly $fault: "server";
86
89
  Message?: string;
90
+
91
+ constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
87
92
  }
88
93
 
89
- export interface ObjectNotFoundException extends __SmithyException, $MetadataBearer {
90
- name: "ObjectNotFoundException";
91
- $fault: "client";
94
+ export declare class ObjectNotFoundException extends __BaseException {
95
+ readonly name: "ObjectNotFoundException";
96
+ readonly $fault: "client";
92
97
  Message?: string;
98
+
99
+ constructor(opts: __ExceptionOptionType<ObjectNotFoundException, __BaseException>);
93
100
  }
94
101
 
95
- export interface ValidationException extends __SmithyException, $MetadataBearer {
96
- name: "ValidationException";
97
- $fault: "client";
102
+ export declare class ValidationException extends __BaseException {
103
+ readonly name: "ValidationException";
104
+ readonly $fault: "client";
98
105
  Message?: string;
106
+
107
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
99
108
  }
100
109
  export interface DeleteScheduledActionRequest {
101
110
 
@@ -198,10 +207,12 @@ export declare namespace DescribeScalableTargetsResponse {
198
207
  const filterSensitiveLog: (obj: DescribeScalableTargetsResponse) => any;
199
208
  }
200
209
 
201
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
202
- name: "InvalidNextTokenException";
203
- $fault: "client";
210
+ export declare class InvalidNextTokenException extends __BaseException {
211
+ readonly name: "InvalidNextTokenException";
212
+ readonly $fault: "client";
204
213
  Message?: string;
214
+
215
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
205
216
  }
206
217
  export interface DescribeScalingActivitiesRequest {
207
218
 
@@ -449,10 +460,12 @@ export declare namespace DescribeScalingPoliciesResponse {
449
460
  const filterSensitiveLog: (obj: DescribeScalingPoliciesResponse) => any;
450
461
  }
451
462
 
452
- export interface FailedResourceAccessException extends __SmithyException, $MetadataBearer {
453
- name: "FailedResourceAccessException";
454
- $fault: "client";
463
+ export declare class FailedResourceAccessException extends __BaseException {
464
+ readonly name: "FailedResourceAccessException";
465
+ readonly $fault: "client";
455
466
  Message?: string;
467
+
468
+ constructor(opts: __ExceptionOptionType<FailedResourceAccessException, __BaseException>);
456
469
  }
457
470
  export interface DescribeScheduledActionsRequest {
458
471
 
@@ -523,10 +536,12 @@ export declare namespace DescribeScheduledActionsResponse {
523
536
  const filterSensitiveLog: (obj: DescribeScheduledActionsResponse) => any;
524
537
  }
525
538
 
526
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
527
- name: "LimitExceededException";
528
- $fault: "client";
539
+ export declare class LimitExceededException extends __BaseException {
540
+ readonly name: "LimitExceededException";
541
+ readonly $fault: "client";
529
542
  Message?: string;
543
+
544
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
530
545
  }
531
546
  export interface PutScalingPolicyRequest {
532
547
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Application Auto Scaling 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"