@aws-sdk/client-rbin 3.934.0 → 3.936.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
@@ -117,25 +117,6 @@ let RbinServiceException$1 = class RbinServiceException extends smithyClient.Ser
117
117
  }
118
118
  };
119
119
 
120
- const UnlockDelayUnit = {
121
- DAYS: "DAYS",
122
- };
123
- const ResourceType = {
124
- EBS_SNAPSHOT: "EBS_SNAPSHOT",
125
- EC2_IMAGE: "EC2_IMAGE",
126
- };
127
- const RetentionPeriodUnit = {
128
- DAYS: "DAYS",
129
- };
130
- const LockState = {
131
- LOCKED: "locked",
132
- PENDING_UNLOCK: "pending_unlock",
133
- UNLOCKED: "unlocked",
134
- };
135
- const RuleStatus = {
136
- AVAILABLE: "available",
137
- PENDING: "pending",
138
- };
139
120
  let InternalServerException$1 = class InternalServerException extends RbinServiceException$1 {
140
121
  name = "InternalServerException";
141
122
  $fault = "server";
@@ -150,9 +131,6 @@ let InternalServerException$1 = class InternalServerException extends RbinServic
150
131
  this.Message = opts.Message;
151
132
  }
152
133
  };
153
- const ServiceQuotaExceededExceptionReason = {
154
- SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
155
- };
156
134
  let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends RbinServiceException$1 {
157
135
  name = "ServiceQuotaExceededException";
158
136
  $fault = "client";
@@ -169,10 +147,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
169
147
  this.Reason = opts.Reason;
170
148
  }
171
149
  };
172
- const ValidationExceptionReason = {
173
- INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
174
- INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
175
- };
176
150
  let ValidationException$1 = class ValidationException extends RbinServiceException$1 {
177
151
  name = "ValidationException";
178
152
  $fault = "client";
@@ -189,9 +163,6 @@ let ValidationException$1 = class ValidationException extends RbinServiceExcepti
189
163
  this.Reason = opts.Reason;
190
164
  }
191
165
  };
192
- const ConflictExceptionReason = {
193
- INVALID_RULE_STATE: "INVALID_RULE_STATE",
194
- };
195
166
  let ConflictException$1 = class ConflictException extends RbinServiceException$1 {
196
167
  name = "ConflictException";
197
168
  $fault = "client";
@@ -208,9 +179,6 @@ let ConflictException$1 = class ConflictException extends RbinServiceException$1
208
179
  this.Reason = opts.Reason;
209
180
  }
210
181
  };
211
- const ResourceNotFoundExceptionReason = {
212
- RULE_NOT_FOUND: "RULE_NOT_FOUND",
213
- };
214
182
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends RbinServiceException$1 {
215
183
  name = "ResourceNotFoundException";
216
184
  $fault = "client";
@@ -726,6 +694,39 @@ smithyClient.createAggregatedClient(commands, Rbin);
726
694
 
727
695
  const paginateListRules = core.createPaginator(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults");
728
696
 
697
+ const UnlockDelayUnit = {
698
+ DAYS: "DAYS",
699
+ };
700
+ const ResourceType = {
701
+ EBS_SNAPSHOT: "EBS_SNAPSHOT",
702
+ EC2_IMAGE: "EC2_IMAGE",
703
+ };
704
+ const RetentionPeriodUnit = {
705
+ DAYS: "DAYS",
706
+ };
707
+ const LockState = {
708
+ LOCKED: "locked",
709
+ PENDING_UNLOCK: "pending_unlock",
710
+ UNLOCKED: "unlocked",
711
+ };
712
+ const RuleStatus = {
713
+ AVAILABLE: "available",
714
+ PENDING: "pending",
715
+ };
716
+ const ServiceQuotaExceededExceptionReason = {
717
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
718
+ };
719
+ const ValidationExceptionReason = {
720
+ INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
721
+ INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
722
+ };
723
+ const ConflictExceptionReason = {
724
+ INVALID_RULE_STATE: "INVALID_RULE_STATE",
725
+ };
726
+ const ResourceNotFoundExceptionReason = {
727
+ RULE_NOT_FOUND: "RULE_NOT_FOUND",
728
+ };
729
+
729
730
  Object.defineProperty(exports, "$Command", {
730
731
  enumerable: true,
731
732
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./RbinClient";
2
2
  export * from "./Rbin";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { RbinServiceException } from "./models/RbinServiceException";
@@ -0,0 +1,32 @@
1
+ export const UnlockDelayUnit = {
2
+ DAYS: "DAYS",
3
+ };
4
+ export const ResourceType = {
5
+ EBS_SNAPSHOT: "EBS_SNAPSHOT",
6
+ EC2_IMAGE: "EC2_IMAGE",
7
+ };
8
+ export const RetentionPeriodUnit = {
9
+ DAYS: "DAYS",
10
+ };
11
+ export const LockState = {
12
+ LOCKED: "locked",
13
+ PENDING_UNLOCK: "pending_unlock",
14
+ UNLOCKED: "unlocked",
15
+ };
16
+ export const RuleStatus = {
17
+ AVAILABLE: "available",
18
+ PENDING: "pending",
19
+ };
20
+ export const ServiceQuotaExceededExceptionReason = {
21
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
22
+ };
23
+ export const ValidationExceptionReason = {
24
+ INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
25
+ INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
26
+ };
27
+ export const ConflictExceptionReason = {
28
+ INVALID_RULE_STATE: "INVALID_RULE_STATE",
29
+ };
30
+ export const ResourceNotFoundExceptionReason = {
31
+ RULE_NOT_FOUND: "RULE_NOT_FOUND",
32
+ };
@@ -0,0 +1,79 @@
1
+ import { RbinServiceException as __BaseException } from "./RbinServiceException";
2
+ export class InternalServerException extends __BaseException {
3
+ name = "InternalServerException";
4
+ $fault = "server";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "InternalServerException",
9
+ $fault: "server",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, InternalServerException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ServiceQuotaExceededException extends __BaseException {
17
+ name = "ServiceQuotaExceededException";
18
+ $fault = "client";
19
+ Message;
20
+ Reason;
21
+ constructor(opts) {
22
+ super({
23
+ name: "ServiceQuotaExceededException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
28
+ this.Message = opts.Message;
29
+ this.Reason = opts.Reason;
30
+ }
31
+ }
32
+ export class ValidationException extends __BaseException {
33
+ name = "ValidationException";
34
+ $fault = "client";
35
+ Message;
36
+ Reason;
37
+ constructor(opts) {
38
+ super({
39
+ name: "ValidationException",
40
+ $fault: "client",
41
+ ...opts,
42
+ });
43
+ Object.setPrototypeOf(this, ValidationException.prototype);
44
+ this.Message = opts.Message;
45
+ this.Reason = opts.Reason;
46
+ }
47
+ }
48
+ export class ConflictException extends __BaseException {
49
+ name = "ConflictException";
50
+ $fault = "client";
51
+ Message;
52
+ Reason;
53
+ constructor(opts) {
54
+ super({
55
+ name: "ConflictException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, ConflictException.prototype);
60
+ this.Message = opts.Message;
61
+ this.Reason = opts.Reason;
62
+ }
63
+ }
64
+ export class ResourceNotFoundException extends __BaseException {
65
+ name = "ResourceNotFoundException";
66
+ $fault = "client";
67
+ Message;
68
+ Reason;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceNotFoundException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
76
+ this.Message = opts.Message;
77
+ this.Reason = opts.Reason;
78
+ }
79
+ }
@@ -1,111 +1 @@
1
- import { RbinServiceException as __BaseException } from "./RbinServiceException";
2
- export const UnlockDelayUnit = {
3
- DAYS: "DAYS",
4
- };
5
- export const ResourceType = {
6
- EBS_SNAPSHOT: "EBS_SNAPSHOT",
7
- EC2_IMAGE: "EC2_IMAGE",
8
- };
9
- export const RetentionPeriodUnit = {
10
- DAYS: "DAYS",
11
- };
12
- export const LockState = {
13
- LOCKED: "locked",
14
- PENDING_UNLOCK: "pending_unlock",
15
- UNLOCKED: "unlocked",
16
- };
17
- export const RuleStatus = {
18
- AVAILABLE: "available",
19
- PENDING: "pending",
20
- };
21
- export class InternalServerException extends __BaseException {
22
- name = "InternalServerException";
23
- $fault = "server";
24
- Message;
25
- constructor(opts) {
26
- super({
27
- name: "InternalServerException",
28
- $fault: "server",
29
- ...opts,
30
- });
31
- Object.setPrototypeOf(this, InternalServerException.prototype);
32
- this.Message = opts.Message;
33
- }
34
- }
35
- export const ServiceQuotaExceededExceptionReason = {
36
- SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
37
- };
38
- export class ServiceQuotaExceededException extends __BaseException {
39
- name = "ServiceQuotaExceededException";
40
- $fault = "client";
41
- Message;
42
- Reason;
43
- constructor(opts) {
44
- super({
45
- name: "ServiceQuotaExceededException",
46
- $fault: "client",
47
- ...opts,
48
- });
49
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
50
- this.Message = opts.Message;
51
- this.Reason = opts.Reason;
52
- }
53
- }
54
- export const ValidationExceptionReason = {
55
- INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
56
- INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
57
- };
58
- export class ValidationException extends __BaseException {
59
- name = "ValidationException";
60
- $fault = "client";
61
- Message;
62
- Reason;
63
- constructor(opts) {
64
- super({
65
- name: "ValidationException",
66
- $fault: "client",
67
- ...opts,
68
- });
69
- Object.setPrototypeOf(this, ValidationException.prototype);
70
- this.Message = opts.Message;
71
- this.Reason = opts.Reason;
72
- }
73
- }
74
- export const ConflictExceptionReason = {
75
- INVALID_RULE_STATE: "INVALID_RULE_STATE",
76
- };
77
- export class ConflictException extends __BaseException {
78
- name = "ConflictException";
79
- $fault = "client";
80
- Message;
81
- Reason;
82
- constructor(opts) {
83
- super({
84
- name: "ConflictException",
85
- $fault: "client",
86
- ...opts,
87
- });
88
- Object.setPrototypeOf(this, ConflictException.prototype);
89
- this.Message = opts.Message;
90
- this.Reason = opts.Reason;
91
- }
92
- }
93
- export const ResourceNotFoundExceptionReason = {
94
- RULE_NOT_FOUND: "RULE_NOT_FOUND",
95
- };
96
- export class ResourceNotFoundException extends __BaseException {
97
- name = "ResourceNotFoundException";
98
- $fault = "client";
99
- Message;
100
- Reason;
101
- constructor(opts) {
102
- super({
103
- name: "ResourceNotFoundException",
104
- $fault: "client",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
108
- this.Message = opts.Message;
109
- this.Reason = opts.Reason;
110
- }
111
- }
1
+ export {};
@@ -76,7 +76,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
76
76
  const _tK = "tagKeys";
77
77
  const n0 = "com.amazonaws.rbin";
78
78
  import { TypeRegistry } from "@smithy/core/schema";
79
- import { ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ValidationException as __ValidationException, } from "../models/index";
79
+ import { ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ValidationException as __ValidationException, } from "../models/errors";
80
80
  import { RbinServiceException as __RbinServiceException } from "../models/RbinServiceException";
81
81
  export var ConflictException = [
82
82
  -3,
@@ -21,5 +21,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
21
21
  export type { RbinExtensionConfiguration } from "./extensionConfiguration";
22
22
  export * from "./commands";
23
23
  export * from "./pagination";
24
- export * from "./models";
24
+ export * from "./models/enums";
25
+ export * from "./models/errors";
26
+ export type * from "./models/models_0";
25
27
  export { RbinServiceException } from "./models/RbinServiceException";
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const UnlockDelayUnit: {
6
+ readonly DAYS: "DAYS";
7
+ };
8
+ /**
9
+ * @public
10
+ */
11
+ export type UnlockDelayUnit = (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
12
+ /**
13
+ * @public
14
+ * @enum
15
+ */
16
+ export declare const ResourceType: {
17
+ readonly EBS_SNAPSHOT: "EBS_SNAPSHOT";
18
+ readonly EC2_IMAGE: "EC2_IMAGE";
19
+ };
20
+ /**
21
+ * @public
22
+ */
23
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
24
+ /**
25
+ * @public
26
+ * @enum
27
+ */
28
+ export declare const RetentionPeriodUnit: {
29
+ readonly DAYS: "DAYS";
30
+ };
31
+ /**
32
+ * @public
33
+ */
34
+ export type RetentionPeriodUnit = (typeof RetentionPeriodUnit)[keyof typeof RetentionPeriodUnit];
35
+ /**
36
+ * @public
37
+ * @enum
38
+ */
39
+ export declare const LockState: {
40
+ readonly LOCKED: "locked";
41
+ readonly PENDING_UNLOCK: "pending_unlock";
42
+ readonly UNLOCKED: "unlocked";
43
+ };
44
+ /**
45
+ * @public
46
+ */
47
+ export type LockState = (typeof LockState)[keyof typeof LockState];
48
+ /**
49
+ * @public
50
+ * @enum
51
+ */
52
+ export declare const RuleStatus: {
53
+ readonly AVAILABLE: "available";
54
+ readonly PENDING: "pending";
55
+ };
56
+ /**
57
+ * @public
58
+ */
59
+ export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
60
+ /**
61
+ * @public
62
+ * @enum
63
+ */
64
+ export declare const ServiceQuotaExceededExceptionReason: {
65
+ readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
66
+ };
67
+ /**
68
+ * @public
69
+ */
70
+ export type ServiceQuotaExceededExceptionReason = (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
71
+ /**
72
+ * @public
73
+ * @enum
74
+ */
75
+ export declare const ValidationExceptionReason: {
76
+ readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
77
+ readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
78
+ };
79
+ /**
80
+ * @public
81
+ */
82
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
83
+ /**
84
+ * @public
85
+ * @enum
86
+ */
87
+ export declare const ConflictExceptionReason: {
88
+ readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
89
+ };
90
+ /**
91
+ * @public
92
+ */
93
+ export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
94
+ /**
95
+ * @public
96
+ * @enum
97
+ */
98
+ export declare const ResourceNotFoundExceptionReason: {
99
+ readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
100
+ };
101
+ /**
102
+ * @public
103
+ */
104
+ export type ResourceNotFoundExceptionReason = (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
@@ -0,0 +1,88 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ConflictExceptionReason, ResourceNotFoundExceptionReason, ServiceQuotaExceededExceptionReason, ValidationExceptionReason } from "./enums";
3
+ import { RbinServiceException as __BaseException } from "./RbinServiceException";
4
+ /**
5
+ * <p>The service could not respond to the request due to an internal problem.</p>
6
+ * @public
7
+ */
8
+ export declare class InternalServerException extends __BaseException {
9
+ readonly name: "InternalServerException";
10
+ readonly $fault: "server";
11
+ Message?: string | undefined;
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>The request would cause a service quota for the number of tags per resource to be exceeded.</p>
19
+ * @public
20
+ */
21
+ export declare class ServiceQuotaExceededException extends __BaseException {
22
+ readonly name: "ServiceQuotaExceededException";
23
+ readonly $fault: "client";
24
+ Message?: string | undefined;
25
+ /**
26
+ * <p>The reason for the exception.</p>
27
+ * @public
28
+ */
29
+ Reason?: ServiceQuotaExceededExceptionReason | undefined;
30
+ /**
31
+ * @internal
32
+ */
33
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
34
+ }
35
+ /**
36
+ * <p>One or more of the parameters in the request is not valid.</p>
37
+ * @public
38
+ */
39
+ export declare class ValidationException extends __BaseException {
40
+ readonly name: "ValidationException";
41
+ readonly $fault: "client";
42
+ Message?: string | undefined;
43
+ /**
44
+ * <p>The reason for the exception.</p>
45
+ * @public
46
+ */
47
+ Reason?: ValidationExceptionReason | undefined;
48
+ /**
49
+ * @internal
50
+ */
51
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
52
+ }
53
+ /**
54
+ * <p>The specified retention rule lock request can't be completed.</p>
55
+ * @public
56
+ */
57
+ export declare class ConflictException extends __BaseException {
58
+ readonly name: "ConflictException";
59
+ readonly $fault: "client";
60
+ Message?: string | undefined;
61
+ /**
62
+ * <p>The reason for the exception.</p>
63
+ * @public
64
+ */
65
+ Reason?: ConflictExceptionReason | undefined;
66
+ /**
67
+ * @internal
68
+ */
69
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
70
+ }
71
+ /**
72
+ * <p>The specified resource was not found.</p>
73
+ * @public
74
+ */
75
+ export declare class ResourceNotFoundException extends __BaseException {
76
+ readonly name: "ResourceNotFoundException";
77
+ readonly $fault: "client";
78
+ Message?: string | undefined;
79
+ /**
80
+ * <p>The reason for the exception.</p>
81
+ * @public
82
+ */
83
+ Reason?: ResourceNotFoundExceptionReason | undefined;
84
+ /**
85
+ * @internal
86
+ */
87
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
88
+ }
@@ -1,5 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RbinServiceException as __BaseException } from "./RbinServiceException";
1
+ import { LockState, ResourceType, RetentionPeriodUnit, RuleStatus, UnlockDelayUnit } from "./enums";
3
2
  /**
4
3
  * <p>[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention
5
4
  * rule.</p>
@@ -17,17 +16,6 @@ export interface ResourceTag {
17
16
  */
18
17
  ResourceTagValue?: string | undefined;
19
18
  }
20
- /**
21
- * @public
22
- * @enum
23
- */
24
- export declare const UnlockDelayUnit: {
25
- readonly DAYS: "DAYS";
26
- };
27
- /**
28
- * @public
29
- */
30
- export type UnlockDelayUnit = (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
31
19
  /**
32
20
  * <p>Information about the retention rule unlock delay. The unlock delay is the period after which
33
21
  * a retention rule can be modified or edited after it has been unlocked by a user with the required
@@ -59,29 +47,6 @@ export interface LockConfiguration {
59
47
  */
60
48
  UnlockDelay: UnlockDelay | undefined;
61
49
  }
62
- /**
63
- * @public
64
- * @enum
65
- */
66
- export declare const ResourceType: {
67
- readonly EBS_SNAPSHOT: "EBS_SNAPSHOT";
68
- readonly EC2_IMAGE: "EC2_IMAGE";
69
- };
70
- /**
71
- * @public
72
- */
73
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
74
- /**
75
- * @public
76
- * @enum
77
- */
78
- export declare const RetentionPeriodUnit: {
79
- readonly DAYS: "DAYS";
80
- };
81
- /**
82
- * @public
83
- */
84
- export type RetentionPeriodUnit = (typeof RetentionPeriodUnit)[keyof typeof RetentionPeriodUnit];
85
50
  /**
86
51
  * <p>Information about the retention period for which the retention rule is to retain resources.</p>
87
52
  * @public
@@ -168,31 +133,6 @@ export interface CreateRuleRequest {
168
133
  */
169
134
  ExcludeResourceTags?: ResourceTag[] | undefined;
170
135
  }
171
- /**
172
- * @public
173
- * @enum
174
- */
175
- export declare const LockState: {
176
- readonly LOCKED: "locked";
177
- readonly PENDING_UNLOCK: "pending_unlock";
178
- readonly UNLOCKED: "unlocked";
179
- };
180
- /**
181
- * @public
182
- */
183
- export type LockState = (typeof LockState)[keyof typeof LockState];
184
- /**
185
- * @public
186
- * @enum
187
- */
188
- export declare const RuleStatus: {
189
- readonly AVAILABLE: "available";
190
- readonly PENDING: "pending";
191
- };
192
- /**
193
- * @public
194
- */
195
- export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
196
136
  /**
197
137
  * @public
198
138
  */
@@ -279,107 +219,6 @@ export interface CreateRuleResponse {
279
219
  */
280
220
  ExcludeResourceTags?: ResourceTag[] | undefined;
281
221
  }
282
- /**
283
- * <p>The service could not respond to the request due to an internal problem.</p>
284
- * @public
285
- */
286
- export declare class InternalServerException extends __BaseException {
287
- readonly name: "InternalServerException";
288
- readonly $fault: "server";
289
- Message?: string | undefined;
290
- /**
291
- * @internal
292
- */
293
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
294
- }
295
- /**
296
- * @public
297
- * @enum
298
- */
299
- export declare const ServiceQuotaExceededExceptionReason: {
300
- readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
301
- };
302
- /**
303
- * @public
304
- */
305
- export type ServiceQuotaExceededExceptionReason = (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
306
- /**
307
- * <p>The request would cause a service quota for the number of tags per resource to be exceeded.</p>
308
- * @public
309
- */
310
- export declare class ServiceQuotaExceededException extends __BaseException {
311
- readonly name: "ServiceQuotaExceededException";
312
- readonly $fault: "client";
313
- Message?: string | undefined;
314
- /**
315
- * <p>The reason for the exception.</p>
316
- * @public
317
- */
318
- Reason?: ServiceQuotaExceededExceptionReason | undefined;
319
- /**
320
- * @internal
321
- */
322
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
323
- }
324
- /**
325
- * @public
326
- * @enum
327
- */
328
- export declare const ValidationExceptionReason: {
329
- readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
330
- readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
331
- };
332
- /**
333
- * @public
334
- */
335
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
336
- /**
337
- * <p>One or more of the parameters in the request is not valid.</p>
338
- * @public
339
- */
340
- export declare class ValidationException extends __BaseException {
341
- readonly name: "ValidationException";
342
- readonly $fault: "client";
343
- Message?: string | undefined;
344
- /**
345
- * <p>The reason for the exception.</p>
346
- * @public
347
- */
348
- Reason?: ValidationExceptionReason | undefined;
349
- /**
350
- * @internal
351
- */
352
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
353
- }
354
- /**
355
- * @public
356
- * @enum
357
- */
358
- export declare const ConflictExceptionReason: {
359
- readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
360
- };
361
- /**
362
- * @public
363
- */
364
- export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
365
- /**
366
- * <p>The specified retention rule lock request can't be completed.</p>
367
- * @public
368
- */
369
- export declare class ConflictException extends __BaseException {
370
- readonly name: "ConflictException";
371
- readonly $fault: "client";
372
- Message?: string | undefined;
373
- /**
374
- * <p>The reason for the exception.</p>
375
- * @public
376
- */
377
- Reason?: ConflictExceptionReason | undefined;
378
- /**
379
- * @internal
380
- */
381
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
382
- }
383
222
  /**
384
223
  * @public
385
224
  */
@@ -395,35 +234,6 @@ export interface DeleteRuleRequest {
395
234
  */
396
235
  export interface DeleteRuleResponse {
397
236
  }
398
- /**
399
- * @public
400
- * @enum
401
- */
402
- export declare const ResourceNotFoundExceptionReason: {
403
- readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
404
- };
405
- /**
406
- * @public
407
- */
408
- export type ResourceNotFoundExceptionReason = (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
409
- /**
410
- * <p>The specified resource was not found.</p>
411
- * @public
412
- */
413
- export declare class ResourceNotFoundException extends __BaseException {
414
- readonly name: "ResourceNotFoundException";
415
- readonly $fault: "client";
416
- Message?: string | undefined;
417
- /**
418
- * <p>The reason for the exception.</p>
419
- * @public
420
- */
421
- Reason?: ResourceNotFoundExceptionReason | undefined;
422
- /**
423
- * @internal
424
- */
425
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
426
- }
427
237
  /**
428
238
  * @public
429
239
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { RbinExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { RbinServiceException } from "./models/RbinServiceException";
@@ -0,0 +1,47 @@
1
+ export declare const UnlockDelayUnit: {
2
+ readonly DAYS: "DAYS";
3
+ };
4
+ export type UnlockDelayUnit =
5
+ (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
6
+ export declare const ResourceType: {
7
+ readonly EBS_SNAPSHOT: "EBS_SNAPSHOT";
8
+ readonly EC2_IMAGE: "EC2_IMAGE";
9
+ };
10
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
11
+ export declare const RetentionPeriodUnit: {
12
+ readonly DAYS: "DAYS";
13
+ };
14
+ export type RetentionPeriodUnit =
15
+ (typeof RetentionPeriodUnit)[keyof typeof RetentionPeriodUnit];
16
+ export declare const LockState: {
17
+ readonly LOCKED: "locked";
18
+ readonly PENDING_UNLOCK: "pending_unlock";
19
+ readonly UNLOCKED: "unlocked";
20
+ };
21
+ export type LockState = (typeof LockState)[keyof typeof LockState];
22
+ export declare const RuleStatus: {
23
+ readonly AVAILABLE: "available";
24
+ readonly PENDING: "pending";
25
+ };
26
+ export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
27
+ export declare const ServiceQuotaExceededExceptionReason: {
28
+ readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
29
+ };
30
+ export type ServiceQuotaExceededExceptionReason =
31
+ (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
32
+ export declare const ValidationExceptionReason: {
33
+ readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
34
+ readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
35
+ };
36
+ export type ValidationExceptionReason =
37
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
38
+ export declare const ConflictExceptionReason: {
39
+ readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
40
+ };
41
+ export type ConflictExceptionReason =
42
+ (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
43
+ export declare const ResourceNotFoundExceptionReason: {
44
+ readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
45
+ };
46
+ export type ResourceNotFoundExceptionReason =
47
+ (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
@@ -0,0 +1,50 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import {
3
+ ConflictExceptionReason,
4
+ ResourceNotFoundExceptionReason,
5
+ ServiceQuotaExceededExceptionReason,
6
+ ValidationExceptionReason,
7
+ } from "./enums";
8
+ import { RbinServiceException as __BaseException } from "./RbinServiceException";
9
+ export declare class InternalServerException extends __BaseException {
10
+ readonly name: "InternalServerException";
11
+ readonly $fault: "server";
12
+ Message?: string | undefined;
13
+ constructor(
14
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
15
+ );
16
+ }
17
+ export declare class ServiceQuotaExceededException extends __BaseException {
18
+ readonly name: "ServiceQuotaExceededException";
19
+ readonly $fault: "client";
20
+ Message?: string | undefined;
21
+ Reason?: ServiceQuotaExceededExceptionReason | undefined;
22
+ constructor(
23
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
24
+ );
25
+ }
26
+ export declare class ValidationException extends __BaseException {
27
+ readonly name: "ValidationException";
28
+ readonly $fault: "client";
29
+ Message?: string | undefined;
30
+ Reason?: ValidationExceptionReason | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
33
+ );
34
+ }
35
+ export declare class ConflictException extends __BaseException {
36
+ readonly name: "ConflictException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ Reason?: ConflictExceptionReason | undefined;
40
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
41
+ }
42
+ export declare class ResourceNotFoundException extends __BaseException {
43
+ readonly name: "ResourceNotFoundException";
44
+ readonly $fault: "client";
45
+ Message?: string | undefined;
46
+ Reason?: ResourceNotFoundExceptionReason | undefined;
47
+ constructor(
48
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
49
+ );
50
+ }
@@ -1,14 +1,14 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { RbinServiceException as __BaseException } from "./RbinServiceException";
1
+ import {
2
+ LockState,
3
+ ResourceType,
4
+ RetentionPeriodUnit,
5
+ RuleStatus,
6
+ UnlockDelayUnit,
7
+ } from "./enums";
3
8
  export interface ResourceTag {
4
9
  ResourceTagKey: string | undefined;
5
10
  ResourceTagValue?: string | undefined;
6
11
  }
7
- export declare const UnlockDelayUnit: {
8
- readonly DAYS: "DAYS";
9
- };
10
- export type UnlockDelayUnit =
11
- (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
12
12
  export interface UnlockDelay {
13
13
  UnlockDelayValue: number | undefined;
14
14
  UnlockDelayUnit: UnlockDelayUnit | undefined;
@@ -16,16 +16,6 @@ export interface UnlockDelay {
16
16
  export interface LockConfiguration {
17
17
  UnlockDelay: UnlockDelay | undefined;
18
18
  }
19
- export declare const ResourceType: {
20
- readonly EBS_SNAPSHOT: "EBS_SNAPSHOT";
21
- readonly EC2_IMAGE: "EC2_IMAGE";
22
- };
23
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
24
- export declare const RetentionPeriodUnit: {
25
- readonly DAYS: "DAYS";
26
- };
27
- export type RetentionPeriodUnit =
28
- (typeof RetentionPeriodUnit)[keyof typeof RetentionPeriodUnit];
29
19
  export interface RetentionPeriod {
30
20
  RetentionPeriodValue: number | undefined;
31
21
  RetentionPeriodUnit: RetentionPeriodUnit | undefined;
@@ -43,17 +33,6 @@ export interface CreateRuleRequest {
43
33
  LockConfiguration?: LockConfiguration | undefined;
44
34
  ExcludeResourceTags?: ResourceTag[] | undefined;
45
35
  }
46
- export declare const LockState: {
47
- readonly LOCKED: "locked";
48
- readonly PENDING_UNLOCK: "pending_unlock";
49
- readonly UNLOCKED: "unlocked";
50
- };
51
- export type LockState = (typeof LockState)[keyof typeof LockState];
52
- export declare const RuleStatus: {
53
- readonly AVAILABLE: "available";
54
- readonly PENDING: "pending";
55
- };
56
- export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
57
36
  export interface CreateRuleResponse {
58
37
  Identifier?: string | undefined;
59
38
  RetentionPeriod?: RetentionPeriod | undefined;
@@ -67,73 +46,10 @@ export interface CreateRuleResponse {
67
46
  RuleArn?: string | undefined;
68
47
  ExcludeResourceTags?: ResourceTag[] | undefined;
69
48
  }
70
- export declare class InternalServerException extends __BaseException {
71
- readonly name: "InternalServerException";
72
- readonly $fault: "server";
73
- Message?: string | undefined;
74
- constructor(
75
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
76
- );
77
- }
78
- export declare const ServiceQuotaExceededExceptionReason: {
79
- readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
80
- };
81
- export type ServiceQuotaExceededExceptionReason =
82
- (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
83
- export declare class ServiceQuotaExceededException extends __BaseException {
84
- readonly name: "ServiceQuotaExceededException";
85
- readonly $fault: "client";
86
- Message?: string | undefined;
87
- Reason?: ServiceQuotaExceededExceptionReason | undefined;
88
- constructor(
89
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
90
- );
91
- }
92
- export declare const ValidationExceptionReason: {
93
- readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
94
- readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
95
- };
96
- export type ValidationExceptionReason =
97
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
98
- export declare class ValidationException extends __BaseException {
99
- readonly name: "ValidationException";
100
- readonly $fault: "client";
101
- Message?: string | undefined;
102
- Reason?: ValidationExceptionReason | undefined;
103
- constructor(
104
- opts: __ExceptionOptionType<ValidationException, __BaseException>
105
- );
106
- }
107
- export declare const ConflictExceptionReason: {
108
- readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
109
- };
110
- export type ConflictExceptionReason =
111
- (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
112
- export declare class ConflictException extends __BaseException {
113
- readonly name: "ConflictException";
114
- readonly $fault: "client";
115
- Message?: string | undefined;
116
- Reason?: ConflictExceptionReason | undefined;
117
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
118
- }
119
49
  export interface DeleteRuleRequest {
120
50
  Identifier: string | undefined;
121
51
  }
122
52
  export interface DeleteRuleResponse {}
123
- export declare const ResourceNotFoundExceptionReason: {
124
- readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
125
- };
126
- export type ResourceNotFoundExceptionReason =
127
- (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
128
- export declare class ResourceNotFoundException extends __BaseException {
129
- readonly name: "ResourceNotFoundException";
130
- readonly $fault: "client";
131
- Message?: string | undefined;
132
- Reason?: ResourceNotFoundExceptionReason | undefined;
133
- constructor(
134
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
135
- );
136
- }
137
53
  export interface GetRuleRequest {
138
54
  Identifier: string | undefined;
139
55
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rbin",
3
3
  "description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rbin",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";