@aws-sdk/client-rbin 3.300.0 → 3.303.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.
@@ -2,30 +2,25 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResourceNotFoundException = exports.ResourceNotFoundExceptionReason = exports.ConflictException = exports.ConflictExceptionReason = exports.ValidationException = exports.ValidationExceptionReason = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.InternalServerException = exports.RuleStatus = exports.LockState = exports.RetentionPeriodUnit = exports.ResourceType = exports.UnlockDelayUnit = void 0;
4
4
  const RbinServiceException_1 = require("./RbinServiceException");
5
- var UnlockDelayUnit;
6
- (function (UnlockDelayUnit) {
7
- UnlockDelayUnit["DAYS"] = "DAYS";
8
- })(UnlockDelayUnit = exports.UnlockDelayUnit || (exports.UnlockDelayUnit = {}));
9
- var ResourceType;
10
- (function (ResourceType) {
11
- ResourceType["EBS_SNAPSHOT"] = "EBS_SNAPSHOT";
12
- ResourceType["EC2_IMAGE"] = "EC2_IMAGE";
13
- })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
14
- var RetentionPeriodUnit;
15
- (function (RetentionPeriodUnit) {
16
- RetentionPeriodUnit["DAYS"] = "DAYS";
17
- })(RetentionPeriodUnit = exports.RetentionPeriodUnit || (exports.RetentionPeriodUnit = {}));
18
- var LockState;
19
- (function (LockState) {
20
- LockState["LOCKED"] = "locked";
21
- LockState["PENDING_UNLOCK"] = "pending_unlock";
22
- LockState["UNLOCKED"] = "unlocked";
23
- })(LockState = exports.LockState || (exports.LockState = {}));
24
- var RuleStatus;
25
- (function (RuleStatus) {
26
- RuleStatus["AVAILABLE"] = "available";
27
- RuleStatus["PENDING"] = "pending";
28
- })(RuleStatus = exports.RuleStatus || (exports.RuleStatus = {}));
5
+ exports.UnlockDelayUnit = {
6
+ DAYS: "DAYS",
7
+ };
8
+ exports.ResourceType = {
9
+ EBS_SNAPSHOT: "EBS_SNAPSHOT",
10
+ EC2_IMAGE: "EC2_IMAGE",
11
+ };
12
+ exports.RetentionPeriodUnit = {
13
+ DAYS: "DAYS",
14
+ };
15
+ exports.LockState = {
16
+ LOCKED: "locked",
17
+ PENDING_UNLOCK: "pending_unlock",
18
+ UNLOCKED: "unlocked",
19
+ };
20
+ exports.RuleStatus = {
21
+ AVAILABLE: "available",
22
+ PENDING: "pending",
23
+ };
29
24
  class InternalServerException extends RbinServiceException_1.RbinServiceException {
30
25
  constructor(opts) {
31
26
  super({
@@ -40,10 +35,9 @@ class InternalServerException extends RbinServiceException_1.RbinServiceExceptio
40
35
  }
41
36
  }
42
37
  exports.InternalServerException = InternalServerException;
43
- var ServiceQuotaExceededExceptionReason;
44
- (function (ServiceQuotaExceededExceptionReason) {
45
- ServiceQuotaExceededExceptionReason["SERVICE_QUOTA_EXCEEDED"] = "SERVICE_QUOTA_EXCEEDED";
46
- })(ServiceQuotaExceededExceptionReason = exports.ServiceQuotaExceededExceptionReason || (exports.ServiceQuotaExceededExceptionReason = {}));
38
+ exports.ServiceQuotaExceededExceptionReason = {
39
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
40
+ };
47
41
  class ServiceQuotaExceededException extends RbinServiceException_1.RbinServiceException {
48
42
  constructor(opts) {
49
43
  super({
@@ -59,11 +53,10 @@ class ServiceQuotaExceededException extends RbinServiceException_1.RbinServiceEx
59
53
  }
60
54
  }
61
55
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
62
- var ValidationExceptionReason;
63
- (function (ValidationExceptionReason) {
64
- ValidationExceptionReason["INVALID_PAGE_TOKEN"] = "INVALID_PAGE_TOKEN";
65
- ValidationExceptionReason["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
66
- })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
56
+ exports.ValidationExceptionReason = {
57
+ INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
58
+ INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
59
+ };
67
60
  class ValidationException extends RbinServiceException_1.RbinServiceException {
68
61
  constructor(opts) {
69
62
  super({
@@ -79,10 +72,9 @@ class ValidationException extends RbinServiceException_1.RbinServiceException {
79
72
  }
80
73
  }
81
74
  exports.ValidationException = ValidationException;
82
- var ConflictExceptionReason;
83
- (function (ConflictExceptionReason) {
84
- ConflictExceptionReason["INVALID_RULE_STATE"] = "INVALID_RULE_STATE";
85
- })(ConflictExceptionReason = exports.ConflictExceptionReason || (exports.ConflictExceptionReason = {}));
75
+ exports.ConflictExceptionReason = {
76
+ INVALID_RULE_STATE: "INVALID_RULE_STATE",
77
+ };
86
78
  class ConflictException extends RbinServiceException_1.RbinServiceException {
87
79
  constructor(opts) {
88
80
  super({
@@ -98,10 +90,9 @@ class ConflictException extends RbinServiceException_1.RbinServiceException {
98
90
  }
99
91
  }
100
92
  exports.ConflictException = ConflictException;
101
- var ResourceNotFoundExceptionReason;
102
- (function (ResourceNotFoundExceptionReason) {
103
- ResourceNotFoundExceptionReason["RULE_NOT_FOUND"] = "RULE_NOT_FOUND";
104
- })(ResourceNotFoundExceptionReason = exports.ResourceNotFoundExceptionReason || (exports.ResourceNotFoundExceptionReason = {}));
93
+ exports.ResourceNotFoundExceptionReason = {
94
+ RULE_NOT_FOUND: "RULE_NOT_FOUND",
95
+ };
105
96
  class ResourceNotFoundException extends RbinServiceException_1.RbinServiceException {
106
97
  constructor(opts) {
107
98
  super({
@@ -1,28 +1,23 @@
1
1
  import { RbinServiceException as __BaseException } from "./RbinServiceException";
2
- export var UnlockDelayUnit;
3
- (function (UnlockDelayUnit) {
4
- UnlockDelayUnit["DAYS"] = "DAYS";
5
- })(UnlockDelayUnit || (UnlockDelayUnit = {}));
6
- export var ResourceType;
7
- (function (ResourceType) {
8
- ResourceType["EBS_SNAPSHOT"] = "EBS_SNAPSHOT";
9
- ResourceType["EC2_IMAGE"] = "EC2_IMAGE";
10
- })(ResourceType || (ResourceType = {}));
11
- export var RetentionPeriodUnit;
12
- (function (RetentionPeriodUnit) {
13
- RetentionPeriodUnit["DAYS"] = "DAYS";
14
- })(RetentionPeriodUnit || (RetentionPeriodUnit = {}));
15
- export var LockState;
16
- (function (LockState) {
17
- LockState["LOCKED"] = "locked";
18
- LockState["PENDING_UNLOCK"] = "pending_unlock";
19
- LockState["UNLOCKED"] = "unlocked";
20
- })(LockState || (LockState = {}));
21
- export var RuleStatus;
22
- (function (RuleStatus) {
23
- RuleStatus["AVAILABLE"] = "available";
24
- RuleStatus["PENDING"] = "pending";
25
- })(RuleStatus || (RuleStatus = {}));
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
+ };
26
21
  export class InternalServerException extends __BaseException {
27
22
  constructor(opts) {
28
23
  super({
@@ -36,10 +31,9 @@ export class InternalServerException extends __BaseException {
36
31
  this.Message = opts.Message;
37
32
  }
38
33
  }
39
- export var ServiceQuotaExceededExceptionReason;
40
- (function (ServiceQuotaExceededExceptionReason) {
41
- ServiceQuotaExceededExceptionReason["SERVICE_QUOTA_EXCEEDED"] = "SERVICE_QUOTA_EXCEEDED";
42
- })(ServiceQuotaExceededExceptionReason || (ServiceQuotaExceededExceptionReason = {}));
34
+ export const ServiceQuotaExceededExceptionReason = {
35
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
36
+ };
43
37
  export class ServiceQuotaExceededException extends __BaseException {
44
38
  constructor(opts) {
45
39
  super({
@@ -54,11 +48,10 @@ export class ServiceQuotaExceededException extends __BaseException {
54
48
  this.Reason = opts.Reason;
55
49
  }
56
50
  }
57
- export var ValidationExceptionReason;
58
- (function (ValidationExceptionReason) {
59
- ValidationExceptionReason["INVALID_PAGE_TOKEN"] = "INVALID_PAGE_TOKEN";
60
- ValidationExceptionReason["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
61
- })(ValidationExceptionReason || (ValidationExceptionReason = {}));
51
+ export const ValidationExceptionReason = {
52
+ INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",
53
+ INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",
54
+ };
62
55
  export class ValidationException extends __BaseException {
63
56
  constructor(opts) {
64
57
  super({
@@ -73,10 +66,9 @@ export class ValidationException extends __BaseException {
73
66
  this.Reason = opts.Reason;
74
67
  }
75
68
  }
76
- export var ConflictExceptionReason;
77
- (function (ConflictExceptionReason) {
78
- ConflictExceptionReason["INVALID_RULE_STATE"] = "INVALID_RULE_STATE";
79
- })(ConflictExceptionReason || (ConflictExceptionReason = {}));
69
+ export const ConflictExceptionReason = {
70
+ INVALID_RULE_STATE: "INVALID_RULE_STATE",
71
+ };
80
72
  export class ConflictException extends __BaseException {
81
73
  constructor(opts) {
82
74
  super({
@@ -91,10 +83,9 @@ export class ConflictException extends __BaseException {
91
83
  this.Reason = opts.Reason;
92
84
  }
93
85
  }
94
- export var ResourceNotFoundExceptionReason;
95
- (function (ResourceNotFoundExceptionReason) {
96
- ResourceNotFoundExceptionReason["RULE_NOT_FOUND"] = "RULE_NOT_FOUND";
97
- })(ResourceNotFoundExceptionReason || (ResourceNotFoundExceptionReason = {}));
86
+ export const ResourceNotFoundExceptionReason = {
87
+ RULE_NOT_FOUND: "RULE_NOT_FOUND",
88
+ };
98
89
  export class ResourceNotFoundException extends __BaseException {
99
90
  constructor(opts) {
100
91
  super({
@@ -27,27 +27,27 @@ export interface CreateRuleCommandOutput extends CreateRuleResponse, __MetadataB
27
27
  * import { RbinClient, CreateRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
28
28
  * // const { RbinClient, CreateRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
29
29
  * const client = new RbinClient(config);
30
- * const input = {
31
- * RetentionPeriod: {
30
+ * const input = { // CreateRuleRequest
31
+ * RetentionPeriod: { // RetentionPeriod
32
32
  * RetentionPeriodValue: Number("int"), // required
33
33
  * RetentionPeriodUnit: "DAYS", // required
34
34
  * },
35
35
  * Description: "STRING_VALUE",
36
- * Tags: [
37
- * {
36
+ * Tags: [ // TagList
37
+ * { // Tag
38
38
  * Key: "STRING_VALUE", // required
39
39
  * Value: "STRING_VALUE", // required
40
40
  * },
41
41
  * ],
42
42
  * ResourceType: "EBS_SNAPSHOT" || "EC2_IMAGE", // required
43
- * ResourceTags: [
44
- * {
43
+ * ResourceTags: [ // ResourceTags
44
+ * { // ResourceTag
45
45
  * ResourceTagKey: "STRING_VALUE", // required
46
46
  * ResourceTagValue: "STRING_VALUE",
47
47
  * },
48
48
  * ],
49
- * LockConfiguration: {
50
- * UnlockDelay: {
49
+ * LockConfiguration: { // LockConfiguration
50
+ * UnlockDelay: { // UnlockDelay
51
51
  * UnlockDelayValue: Number("int"), // required
52
52
  * UnlockDelayUnit: "DAYS", // required
53
53
  * },
@@ -27,7 +27,7 @@ export interface DeleteRuleCommandOutput extends DeleteRuleResponse, __MetadataB
27
27
  * import { RbinClient, DeleteRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
28
28
  * // const { RbinClient, DeleteRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
29
29
  * const client = new RbinClient(config);
30
- * const input = {
30
+ * const input = { // DeleteRuleRequest
31
31
  * Identifier: "STRING_VALUE", // required
32
32
  * };
33
33
  * const command = new DeleteRuleCommand(input);
@@ -26,7 +26,7 @@ export interface GetRuleCommandOutput extends GetRuleResponse, __MetadataBearer
26
26
  * import { RbinClient, GetRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, GetRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // GetRuleRequest
30
30
  * Identifier: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetRuleCommand(input);
@@ -26,12 +26,12 @@ export interface ListRulesCommandOutput extends ListRulesResponse, __MetadataBea
26
26
  * import { RbinClient, ListRulesCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, ListRulesCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // ListRulesRequest
30
30
  * MaxResults: Number("int"),
31
31
  * NextToken: "STRING_VALUE",
32
32
  * ResourceType: "EBS_SNAPSHOT" || "EC2_IMAGE", // required
33
- * ResourceTags: [
34
- * {
33
+ * ResourceTags: [ // ResourceTags
34
+ * { // ResourceTag
35
35
  * ResourceTagKey: "STRING_VALUE", // required
36
36
  * ResourceTagValue: "STRING_VALUE",
37
37
  * },
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { RbinClient, ListTagsForResourceCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, ListTagsForResourceCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -26,10 +26,10 @@ export interface LockRuleCommandOutput extends LockRuleResponse, __MetadataBeare
26
26
  * import { RbinClient, LockRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, LockRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // LockRuleRequest
30
30
  * Identifier: "STRING_VALUE", // required
31
- * LockConfiguration: {
32
- * UnlockDelay: {
31
+ * LockConfiguration: { // LockConfiguration
32
+ * UnlockDelay: { // UnlockDelay
33
33
  * UnlockDelayValue: Number("int"), // required
34
34
  * UnlockDelayUnit: "DAYS", // required
35
35
  * },
@@ -26,10 +26,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
26
26
  * import { RbinClient, TagResourceCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, TagResourceCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * Tags: [ // required
32
- * {
31
+ * Tags: [ // TagList // required
32
+ * { // Tag
33
33
  * Key: "STRING_VALUE", // required
34
34
  * Value: "STRING_VALUE", // required
35
35
  * },
@@ -27,7 +27,7 @@ export interface UnlockRuleCommandOutput extends UnlockRuleResponse, __MetadataB
27
27
  * import { RbinClient, UnlockRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
28
28
  * // const { RbinClient, UnlockRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
29
29
  * const client = new RbinClient(config);
30
- * const input = {
30
+ * const input = { // UnlockRuleRequest
31
31
  * Identifier: "STRING_VALUE", // required
32
32
  * };
33
33
  * const command = new UnlockRuleCommand(input);
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
26
  * import { RbinClient, UntagResourceCommand } from "@aws-sdk/client-rbin"; // ES Modules import
27
27
  * // const { RbinClient, UntagResourceCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
28
28
  * const client = new RbinClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceRequest
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * TagKeys: [ // required
31
+ * TagKeys: [ // TagKeyList // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -29,16 +29,16 @@ export interface UpdateRuleCommandOutput extends UpdateRuleResponse, __MetadataB
29
29
  * import { RbinClient, UpdateRuleCommand } from "@aws-sdk/client-rbin"; // ES Modules import
30
30
  * // const { RbinClient, UpdateRuleCommand } = require("@aws-sdk/client-rbin"); // CommonJS import
31
31
  * const client = new RbinClient(config);
32
- * const input = {
32
+ * const input = { // UpdateRuleRequest
33
33
  * Identifier: "STRING_VALUE", // required
34
- * RetentionPeriod: {
34
+ * RetentionPeriod: { // RetentionPeriod
35
35
  * RetentionPeriodValue: Number("int"), // required
36
36
  * RetentionPeriodUnit: "DAYS", // required
37
37
  * },
38
38
  * Description: "STRING_VALUE",
39
39
  * ResourceType: "EBS_SNAPSHOT" || "EC2_IMAGE",
40
- * ResourceTags: [
41
- * {
40
+ * ResourceTags: [ // ResourceTags
41
+ * { // ResourceTag
42
42
  * ResourceTagKey: "STRING_VALUE", // required
43
43
  * ResourceTagValue: "STRING_VALUE",
44
44
  * },
@@ -2,10 +2,15 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { RbinServiceException as __BaseException } from "./RbinServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum UnlockDelayUnit {
7
- DAYS = "DAYS"
8
- }
7
+ export declare const UnlockDelayUnit: {
8
+ readonly DAYS: "DAYS";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type UnlockDelayUnit = (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
9
14
  /**
10
15
  * @public
11
16
  * <p>Information about the retention rule unlock delay. The unlock delay is the period after which
@@ -51,17 +56,27 @@ export interface ResourceTag {
51
56
  }
52
57
  /**
53
58
  * @public
59
+ * @enum
54
60
  */
55
- export declare enum ResourceType {
56
- EBS_SNAPSHOT = "EBS_SNAPSHOT",
57
- EC2_IMAGE = "EC2_IMAGE"
58
- }
61
+ export declare const ResourceType: {
62
+ readonly EBS_SNAPSHOT: "EBS_SNAPSHOT";
63
+ readonly EC2_IMAGE: "EC2_IMAGE";
64
+ };
59
65
  /**
60
66
  * @public
61
67
  */
62
- export declare enum RetentionPeriodUnit {
63
- DAYS = "DAYS"
64
- }
68
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
69
+ /**
70
+ * @public
71
+ * @enum
72
+ */
73
+ export declare const RetentionPeriodUnit: {
74
+ readonly DAYS: "DAYS";
75
+ };
76
+ /**
77
+ * @public
78
+ */
79
+ export type RetentionPeriodUnit = (typeof RetentionPeriodUnit)[keyof typeof RetentionPeriodUnit];
65
80
  /**
66
81
  * @public
67
82
  * <p>Information about the retention period for which the retention rule is to retain resources.</p>
@@ -132,19 +147,29 @@ export interface CreateRuleRequest {
132
147
  }
133
148
  /**
134
149
  * @public
150
+ * @enum
135
151
  */
136
- export declare enum LockState {
137
- LOCKED = "locked",
138
- PENDING_UNLOCK = "pending_unlock",
139
- UNLOCKED = "unlocked"
140
- }
152
+ export declare const LockState: {
153
+ readonly LOCKED: "locked";
154
+ readonly PENDING_UNLOCK: "pending_unlock";
155
+ readonly UNLOCKED: "unlocked";
156
+ };
141
157
  /**
142
158
  * @public
143
159
  */
144
- export declare enum RuleStatus {
145
- AVAILABLE = "available",
146
- PENDING = "pending"
147
- }
160
+ export type LockState = (typeof LockState)[keyof typeof LockState];
161
+ /**
162
+ * @public
163
+ * @enum
164
+ */
165
+ export declare const RuleStatus: {
166
+ readonly AVAILABLE: "available";
167
+ readonly PENDING: "pending";
168
+ };
169
+ /**
170
+ * @public
171
+ */
172
+ export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
148
173
  /**
149
174
  * @public
150
175
  */
@@ -226,10 +251,15 @@ export declare class InternalServerException extends __BaseException {
226
251
  }
227
252
  /**
228
253
  * @public
254
+ * @enum
229
255
  */
230
- export declare enum ServiceQuotaExceededExceptionReason {
231
- SERVICE_QUOTA_EXCEEDED = "SERVICE_QUOTA_EXCEEDED"
232
- }
256
+ export declare const ServiceQuotaExceededExceptionReason: {
257
+ readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
258
+ };
259
+ /**
260
+ * @public
261
+ */
262
+ export type ServiceQuotaExceededExceptionReason = (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
233
263
  /**
234
264
  * @public
235
265
  * <p>The request would cause a service quota for the number of tags per resource to be exceeded.</p>
@@ -249,11 +279,16 @@ export declare class ServiceQuotaExceededException extends __BaseException {
249
279
  }
250
280
  /**
251
281
  * @public
282
+ * @enum
252
283
  */
253
- export declare enum ValidationExceptionReason {
254
- INVALID_PAGE_TOKEN = "INVALID_PAGE_TOKEN",
255
- INVALID_PARAMETER_VALUE = "INVALID_PARAMETER_VALUE"
256
- }
284
+ export declare const ValidationExceptionReason: {
285
+ readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
286
+ readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
287
+ };
288
+ /**
289
+ * @public
290
+ */
291
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
257
292
  /**
258
293
  * @public
259
294
  * <p>One or more of the parameters in the request is not valid.</p>
@@ -273,10 +308,15 @@ export declare class ValidationException extends __BaseException {
273
308
  }
274
309
  /**
275
310
  * @public
311
+ * @enum
276
312
  */
277
- export declare enum ConflictExceptionReason {
278
- INVALID_RULE_STATE = "INVALID_RULE_STATE"
279
- }
313
+ export declare const ConflictExceptionReason: {
314
+ readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
315
+ };
316
+ /**
317
+ * @public
318
+ */
319
+ export type ConflictExceptionReason = (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
280
320
  /**
281
321
  * @public
282
322
  * <p>The specified retention rule lock request can't be completed.</p>
@@ -310,10 +350,15 @@ export interface DeleteRuleResponse {
310
350
  }
311
351
  /**
312
352
  * @public
353
+ * @enum
313
354
  */
314
- export declare enum ResourceNotFoundExceptionReason {
315
- RULE_NOT_FOUND = "RULE_NOT_FOUND"
316
- }
355
+ export declare const ResourceNotFoundExceptionReason: {
356
+ readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
357
+ };
358
+ /**
359
+ * @public
360
+ */
361
+ export type ResourceNotFoundExceptionReason = (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
317
362
  /**
318
363
  * @public
319
364
  * <p>The specified resource was not found.</p>
@@ -1,8 +1,10 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { RbinServiceException as __BaseException } from "./RbinServiceException";
3
- export declare enum UnlockDelayUnit {
4
- DAYS = "DAYS",
5
- }
3
+ export declare const UnlockDelayUnit: {
4
+ readonly DAYS: "DAYS";
5
+ };
6
+ export type UnlockDelayUnit =
7
+ (typeof UnlockDelayUnit)[keyof typeof UnlockDelayUnit];
6
8
  export interface UnlockDelay {
7
9
  UnlockDelayValue: number | undefined;
8
10
  UnlockDelayUnit: UnlockDelayUnit | string | undefined;
@@ -14,13 +16,16 @@ export interface ResourceTag {
14
16
  ResourceTagKey: string | undefined;
15
17
  ResourceTagValue?: string;
16
18
  }
17
- export declare enum ResourceType {
18
- EBS_SNAPSHOT = "EBS_SNAPSHOT",
19
- EC2_IMAGE = "EC2_IMAGE",
20
- }
21
- export declare enum RetentionPeriodUnit {
22
- DAYS = "DAYS",
23
- }
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];
24
29
  export interface RetentionPeriod {
25
30
  RetentionPeriodValue: number | undefined;
26
31
  RetentionPeriodUnit: RetentionPeriodUnit | string | undefined;
@@ -37,15 +42,17 @@ export interface CreateRuleRequest {
37
42
  ResourceTags?: ResourceTag[];
38
43
  LockConfiguration?: LockConfiguration;
39
44
  }
40
- export declare enum LockState {
41
- LOCKED = "locked",
42
- PENDING_UNLOCK = "pending_unlock",
43
- UNLOCKED = "unlocked",
44
- }
45
- export declare enum RuleStatus {
46
- AVAILABLE = "available",
47
- PENDING = "pending",
48
- }
45
+ export declare const LockState: {
46
+ readonly LOCKED: "locked";
47
+ readonly PENDING_UNLOCK: "pending_unlock";
48
+ readonly UNLOCKED: "unlocked";
49
+ };
50
+ export type LockState = (typeof LockState)[keyof typeof LockState];
51
+ export declare const RuleStatus: {
52
+ readonly AVAILABLE: "available";
53
+ readonly PENDING: "pending";
54
+ };
55
+ export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
49
56
  export interface CreateRuleResponse {
50
57
  Identifier?: string;
51
58
  RetentionPeriod?: RetentionPeriod;
@@ -65,9 +72,11 @@ export declare class InternalServerException extends __BaseException {
65
72
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
66
73
  );
67
74
  }
68
- export declare enum ServiceQuotaExceededExceptionReason {
69
- SERVICE_QUOTA_EXCEEDED = "SERVICE_QUOTA_EXCEEDED",
70
- }
75
+ export declare const ServiceQuotaExceededExceptionReason: {
76
+ readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
77
+ };
78
+ export type ServiceQuotaExceededExceptionReason =
79
+ (typeof ServiceQuotaExceededExceptionReason)[keyof typeof ServiceQuotaExceededExceptionReason];
71
80
  export declare class ServiceQuotaExceededException extends __BaseException {
72
81
  readonly name: "ServiceQuotaExceededException";
73
82
  readonly $fault: "client";
@@ -77,10 +86,12 @@ export declare class ServiceQuotaExceededException extends __BaseException {
77
86
  opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
78
87
  );
79
88
  }
80
- export declare enum ValidationExceptionReason {
81
- INVALID_PAGE_TOKEN = "INVALID_PAGE_TOKEN",
82
- INVALID_PARAMETER_VALUE = "INVALID_PARAMETER_VALUE",
83
- }
89
+ export declare const ValidationExceptionReason: {
90
+ readonly INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN";
91
+ readonly INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE";
92
+ };
93
+ export type ValidationExceptionReason =
94
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
84
95
  export declare class ValidationException extends __BaseException {
85
96
  readonly name: "ValidationException";
86
97
  readonly $fault: "client";
@@ -90,9 +101,11 @@ export declare class ValidationException extends __BaseException {
90
101
  opts: __ExceptionOptionType<ValidationException, __BaseException>
91
102
  );
92
103
  }
93
- export declare enum ConflictExceptionReason {
94
- INVALID_RULE_STATE = "INVALID_RULE_STATE",
95
- }
104
+ export declare const ConflictExceptionReason: {
105
+ readonly INVALID_RULE_STATE: "INVALID_RULE_STATE";
106
+ };
107
+ export type ConflictExceptionReason =
108
+ (typeof ConflictExceptionReason)[keyof typeof ConflictExceptionReason];
96
109
  export declare class ConflictException extends __BaseException {
97
110
  readonly name: "ConflictException";
98
111
  readonly $fault: "client";
@@ -104,9 +117,11 @@ export interface DeleteRuleRequest {
104
117
  Identifier: string | undefined;
105
118
  }
106
119
  export interface DeleteRuleResponse {}
107
- export declare enum ResourceNotFoundExceptionReason {
108
- RULE_NOT_FOUND = "RULE_NOT_FOUND",
109
- }
120
+ export declare const ResourceNotFoundExceptionReason: {
121
+ readonly RULE_NOT_FOUND: "RULE_NOT_FOUND";
122
+ };
123
+ export type ResourceNotFoundExceptionReason =
124
+ (typeof ResourceNotFoundExceptionReason)[keyof typeof ResourceNotFoundExceptionReason];
110
125
  export declare class ResourceNotFoundException extends __BaseException {
111
126
  readonly name: "ResourceNotFoundException";
112
127
  readonly $fault: "client";
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.300.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",