@aws-sdk/client-ram 3.301.0 → 3.306.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,26 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TagLimitExceededException = exports.InvalidResourceTypeException = exports.MissingRequiredParameterException = exports.ResourceStatus = exports.ResourceRegionScope = exports.ResourceRegionScopeFilter = exports.ResourceOwner = exports.InvalidMaxResultsException = exports.ResourceArnNotFoundException = exports.InvalidNextTokenException = exports.TagPolicyViolationException = exports.ResourceShareStatus = exports.ResourceShareFeatureSet = exports.UnknownResourceException = exports.ThrottlingException = exports.ResourceShareLimitExceededException = exports.InvalidStateTransitionException = exports.InvalidParameterException = exports.ServiceUnavailableException = exports.ServerInternalException = exports.ResourceShareInvitationExpiredException = exports.ResourceShareInvitationArnNotFoundException = exports.ResourceShareInvitationAlreadyRejectedException = exports.ResourceShareInvitationAlreadyAcceptedException = exports.OperationNotPermittedException = exports.MalformedArnException = exports.InvalidClientTokenException = exports.IdempotentParameterMismatchException = exports.ResourceShareInvitationStatus = exports.ResourceShareAssociationStatus = exports.ResourceShareAssociationType = void 0;
4
4
  const RAMServiceException_1 = require("./RAMServiceException");
5
- var ResourceShareAssociationType;
6
- (function (ResourceShareAssociationType) {
7
- ResourceShareAssociationType["PRINCIPAL"] = "PRINCIPAL";
8
- ResourceShareAssociationType["RESOURCE"] = "RESOURCE";
9
- })(ResourceShareAssociationType = exports.ResourceShareAssociationType || (exports.ResourceShareAssociationType = {}));
10
- var ResourceShareAssociationStatus;
11
- (function (ResourceShareAssociationStatus) {
12
- ResourceShareAssociationStatus["ASSOCIATED"] = "ASSOCIATED";
13
- ResourceShareAssociationStatus["ASSOCIATING"] = "ASSOCIATING";
14
- ResourceShareAssociationStatus["DISASSOCIATED"] = "DISASSOCIATED";
15
- ResourceShareAssociationStatus["DISASSOCIATING"] = "DISASSOCIATING";
16
- ResourceShareAssociationStatus["FAILED"] = "FAILED";
17
- })(ResourceShareAssociationStatus = exports.ResourceShareAssociationStatus || (exports.ResourceShareAssociationStatus = {}));
18
- var ResourceShareInvitationStatus;
19
- (function (ResourceShareInvitationStatus) {
20
- ResourceShareInvitationStatus["ACCEPTED"] = "ACCEPTED";
21
- ResourceShareInvitationStatus["EXPIRED"] = "EXPIRED";
22
- ResourceShareInvitationStatus["PENDING"] = "PENDING";
23
- ResourceShareInvitationStatus["REJECTED"] = "REJECTED";
24
- })(ResourceShareInvitationStatus = exports.ResourceShareInvitationStatus || (exports.ResourceShareInvitationStatus = {}));
5
+ exports.ResourceShareAssociationType = {
6
+ PRINCIPAL: "PRINCIPAL",
7
+ RESOURCE: "RESOURCE",
8
+ };
9
+ exports.ResourceShareAssociationStatus = {
10
+ ASSOCIATED: "ASSOCIATED",
11
+ ASSOCIATING: "ASSOCIATING",
12
+ DISASSOCIATED: "DISASSOCIATED",
13
+ DISASSOCIATING: "DISASSOCIATING",
14
+ FAILED: "FAILED",
15
+ };
16
+ exports.ResourceShareInvitationStatus = {
17
+ ACCEPTED: "ACCEPTED",
18
+ EXPIRED: "EXPIRED",
19
+ PENDING: "PENDING",
20
+ REJECTED: "REJECTED",
21
+ };
25
22
  class IdempotentParameterMismatchException extends RAMServiceException_1.RAMServiceException {
26
23
  constructor(opts) {
27
24
  super({
@@ -217,20 +214,18 @@ class UnknownResourceException extends RAMServiceException_1.RAMServiceException
217
214
  }
218
215
  }
219
216
  exports.UnknownResourceException = UnknownResourceException;
220
- var ResourceShareFeatureSet;
221
- (function (ResourceShareFeatureSet) {
222
- ResourceShareFeatureSet["CREATED_FROM_POLICY"] = "CREATED_FROM_POLICY";
223
- ResourceShareFeatureSet["PROMOTING_TO_STANDARD"] = "PROMOTING_TO_STANDARD";
224
- ResourceShareFeatureSet["STANDARD"] = "STANDARD";
225
- })(ResourceShareFeatureSet = exports.ResourceShareFeatureSet || (exports.ResourceShareFeatureSet = {}));
226
- var ResourceShareStatus;
227
- (function (ResourceShareStatus) {
228
- ResourceShareStatus["ACTIVE"] = "ACTIVE";
229
- ResourceShareStatus["DELETED"] = "DELETED";
230
- ResourceShareStatus["DELETING"] = "DELETING";
231
- ResourceShareStatus["FAILED"] = "FAILED";
232
- ResourceShareStatus["PENDING"] = "PENDING";
233
- })(ResourceShareStatus = exports.ResourceShareStatus || (exports.ResourceShareStatus = {}));
217
+ exports.ResourceShareFeatureSet = {
218
+ CREATED_FROM_POLICY: "CREATED_FROM_POLICY",
219
+ PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD",
220
+ STANDARD: "STANDARD",
221
+ };
222
+ exports.ResourceShareStatus = {
223
+ ACTIVE: "ACTIVE",
224
+ DELETED: "DELETED",
225
+ DELETING: "DELETING",
226
+ FAILED: "FAILED",
227
+ PENDING: "PENDING",
228
+ };
234
229
  class TagPolicyViolationException extends RAMServiceException_1.RAMServiceException {
235
230
  constructor(opts) {
236
231
  super({
@@ -283,30 +278,26 @@ class InvalidMaxResultsException extends RAMServiceException_1.RAMServiceExcepti
283
278
  }
284
279
  }
285
280
  exports.InvalidMaxResultsException = InvalidMaxResultsException;
286
- var ResourceOwner;
287
- (function (ResourceOwner) {
288
- ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
289
- ResourceOwner["SELF"] = "SELF";
290
- })(ResourceOwner = exports.ResourceOwner || (exports.ResourceOwner = {}));
291
- var ResourceRegionScopeFilter;
292
- (function (ResourceRegionScopeFilter) {
293
- ResourceRegionScopeFilter["ALL"] = "ALL";
294
- ResourceRegionScopeFilter["GLOBAL"] = "GLOBAL";
295
- ResourceRegionScopeFilter["REGIONAL"] = "REGIONAL";
296
- })(ResourceRegionScopeFilter = exports.ResourceRegionScopeFilter || (exports.ResourceRegionScopeFilter = {}));
297
- var ResourceRegionScope;
298
- (function (ResourceRegionScope) {
299
- ResourceRegionScope["GLOBAL"] = "GLOBAL";
300
- ResourceRegionScope["REGIONAL"] = "REGIONAL";
301
- })(ResourceRegionScope = exports.ResourceRegionScope || (exports.ResourceRegionScope = {}));
302
- var ResourceStatus;
303
- (function (ResourceStatus) {
304
- ResourceStatus["AVAILABLE"] = "AVAILABLE";
305
- ResourceStatus["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
306
- ResourceStatus["PENDING"] = "PENDING";
307
- ResourceStatus["UNAVAILABLE"] = "UNAVAILABLE";
308
- ResourceStatus["ZONAL_RESOURCE_INACCESSIBLE"] = "ZONAL_RESOURCE_INACCESSIBLE";
309
- })(ResourceStatus = exports.ResourceStatus || (exports.ResourceStatus = {}));
281
+ exports.ResourceOwner = {
282
+ OTHER_ACCOUNTS: "OTHER-ACCOUNTS",
283
+ SELF: "SELF",
284
+ };
285
+ exports.ResourceRegionScopeFilter = {
286
+ ALL: "ALL",
287
+ GLOBAL: "GLOBAL",
288
+ REGIONAL: "REGIONAL",
289
+ };
290
+ exports.ResourceRegionScope = {
291
+ GLOBAL: "GLOBAL",
292
+ REGIONAL: "REGIONAL",
293
+ };
294
+ exports.ResourceStatus = {
295
+ AVAILABLE: "AVAILABLE",
296
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
297
+ PENDING: "PENDING",
298
+ UNAVAILABLE: "UNAVAILABLE",
299
+ ZONAL_RESOURCE_INACCESSIBLE: "ZONAL_RESOURCE_INACCESSIBLE",
300
+ };
310
301
  class MissingRequiredParameterException extends RAMServiceException_1.RAMServiceException {
311
302
  constructor(opts) {
312
303
  super({
@@ -1,24 +1,21 @@
1
1
  import { RAMServiceException as __BaseException } from "./RAMServiceException";
2
- export var ResourceShareAssociationType;
3
- (function (ResourceShareAssociationType) {
4
- ResourceShareAssociationType["PRINCIPAL"] = "PRINCIPAL";
5
- ResourceShareAssociationType["RESOURCE"] = "RESOURCE";
6
- })(ResourceShareAssociationType || (ResourceShareAssociationType = {}));
7
- export var ResourceShareAssociationStatus;
8
- (function (ResourceShareAssociationStatus) {
9
- ResourceShareAssociationStatus["ASSOCIATED"] = "ASSOCIATED";
10
- ResourceShareAssociationStatus["ASSOCIATING"] = "ASSOCIATING";
11
- ResourceShareAssociationStatus["DISASSOCIATED"] = "DISASSOCIATED";
12
- ResourceShareAssociationStatus["DISASSOCIATING"] = "DISASSOCIATING";
13
- ResourceShareAssociationStatus["FAILED"] = "FAILED";
14
- })(ResourceShareAssociationStatus || (ResourceShareAssociationStatus = {}));
15
- export var ResourceShareInvitationStatus;
16
- (function (ResourceShareInvitationStatus) {
17
- ResourceShareInvitationStatus["ACCEPTED"] = "ACCEPTED";
18
- ResourceShareInvitationStatus["EXPIRED"] = "EXPIRED";
19
- ResourceShareInvitationStatus["PENDING"] = "PENDING";
20
- ResourceShareInvitationStatus["REJECTED"] = "REJECTED";
21
- })(ResourceShareInvitationStatus || (ResourceShareInvitationStatus = {}));
2
+ export const ResourceShareAssociationType = {
3
+ PRINCIPAL: "PRINCIPAL",
4
+ RESOURCE: "RESOURCE",
5
+ };
6
+ export const ResourceShareAssociationStatus = {
7
+ ASSOCIATED: "ASSOCIATED",
8
+ ASSOCIATING: "ASSOCIATING",
9
+ DISASSOCIATED: "DISASSOCIATED",
10
+ DISASSOCIATING: "DISASSOCIATING",
11
+ FAILED: "FAILED",
12
+ };
13
+ export const ResourceShareInvitationStatus = {
14
+ ACCEPTED: "ACCEPTED",
15
+ EXPIRED: "EXPIRED",
16
+ PENDING: "PENDING",
17
+ REJECTED: "REJECTED",
18
+ };
22
19
  export class IdempotentParameterMismatchException extends __BaseException {
23
20
  constructor(opts) {
24
21
  super({
@@ -199,20 +196,18 @@ export class UnknownResourceException extends __BaseException {
199
196
  Object.setPrototypeOf(this, UnknownResourceException.prototype);
200
197
  }
201
198
  }
202
- export var ResourceShareFeatureSet;
203
- (function (ResourceShareFeatureSet) {
204
- ResourceShareFeatureSet["CREATED_FROM_POLICY"] = "CREATED_FROM_POLICY";
205
- ResourceShareFeatureSet["PROMOTING_TO_STANDARD"] = "PROMOTING_TO_STANDARD";
206
- ResourceShareFeatureSet["STANDARD"] = "STANDARD";
207
- })(ResourceShareFeatureSet || (ResourceShareFeatureSet = {}));
208
- export var ResourceShareStatus;
209
- (function (ResourceShareStatus) {
210
- ResourceShareStatus["ACTIVE"] = "ACTIVE";
211
- ResourceShareStatus["DELETED"] = "DELETED";
212
- ResourceShareStatus["DELETING"] = "DELETING";
213
- ResourceShareStatus["FAILED"] = "FAILED";
214
- ResourceShareStatus["PENDING"] = "PENDING";
215
- })(ResourceShareStatus || (ResourceShareStatus = {}));
199
+ export const ResourceShareFeatureSet = {
200
+ CREATED_FROM_POLICY: "CREATED_FROM_POLICY",
201
+ PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD",
202
+ STANDARD: "STANDARD",
203
+ };
204
+ export const ResourceShareStatus = {
205
+ ACTIVE: "ACTIVE",
206
+ DELETED: "DELETED",
207
+ DELETING: "DELETING",
208
+ FAILED: "FAILED",
209
+ PENDING: "PENDING",
210
+ };
216
211
  export class TagPolicyViolationException extends __BaseException {
217
212
  constructor(opts) {
218
213
  super({
@@ -261,30 +256,26 @@ export class InvalidMaxResultsException extends __BaseException {
261
256
  Object.setPrototypeOf(this, InvalidMaxResultsException.prototype);
262
257
  }
263
258
  }
264
- export var ResourceOwner;
265
- (function (ResourceOwner) {
266
- ResourceOwner["OTHER_ACCOUNTS"] = "OTHER-ACCOUNTS";
267
- ResourceOwner["SELF"] = "SELF";
268
- })(ResourceOwner || (ResourceOwner = {}));
269
- export var ResourceRegionScopeFilter;
270
- (function (ResourceRegionScopeFilter) {
271
- ResourceRegionScopeFilter["ALL"] = "ALL";
272
- ResourceRegionScopeFilter["GLOBAL"] = "GLOBAL";
273
- ResourceRegionScopeFilter["REGIONAL"] = "REGIONAL";
274
- })(ResourceRegionScopeFilter || (ResourceRegionScopeFilter = {}));
275
- export var ResourceRegionScope;
276
- (function (ResourceRegionScope) {
277
- ResourceRegionScope["GLOBAL"] = "GLOBAL";
278
- ResourceRegionScope["REGIONAL"] = "REGIONAL";
279
- })(ResourceRegionScope || (ResourceRegionScope = {}));
280
- export var ResourceStatus;
281
- (function (ResourceStatus) {
282
- ResourceStatus["AVAILABLE"] = "AVAILABLE";
283
- ResourceStatus["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
284
- ResourceStatus["PENDING"] = "PENDING";
285
- ResourceStatus["UNAVAILABLE"] = "UNAVAILABLE";
286
- ResourceStatus["ZONAL_RESOURCE_INACCESSIBLE"] = "ZONAL_RESOURCE_INACCESSIBLE";
287
- })(ResourceStatus || (ResourceStatus = {}));
259
+ export const ResourceOwner = {
260
+ OTHER_ACCOUNTS: "OTHER-ACCOUNTS",
261
+ SELF: "SELF",
262
+ };
263
+ export const ResourceRegionScopeFilter = {
264
+ ALL: "ALL",
265
+ GLOBAL: "GLOBAL",
266
+ REGIONAL: "REGIONAL",
267
+ };
268
+ export const ResourceRegionScope = {
269
+ GLOBAL: "GLOBAL",
270
+ REGIONAL: "REGIONAL",
271
+ };
272
+ export const ResourceStatus = {
273
+ AVAILABLE: "AVAILABLE",
274
+ LIMIT_EXCEEDED: "LIMIT_EXCEEDED",
275
+ PENDING: "PENDING",
276
+ UNAVAILABLE: "UNAVAILABLE",
277
+ ZONAL_RESOURCE_INACCESSIBLE: "ZONAL_RESOURCE_INACCESSIBLE",
278
+ };
288
279
  export class MissingRequiredParameterException extends __BaseException {
289
280
  constructor(opts) {
290
281
  super({
@@ -22,21 +22,31 @@ export interface AcceptResourceShareInvitationRequest {
22
22
  }
23
23
  /**
24
24
  * @public
25
+ * @enum
25
26
  */
26
- export declare enum ResourceShareAssociationType {
27
- PRINCIPAL = "PRINCIPAL",
28
- RESOURCE = "RESOURCE"
29
- }
27
+ export declare const ResourceShareAssociationType: {
28
+ readonly PRINCIPAL: "PRINCIPAL";
29
+ readonly RESOURCE: "RESOURCE";
30
+ };
30
31
  /**
31
32
  * @public
32
33
  */
33
- export declare enum ResourceShareAssociationStatus {
34
- ASSOCIATED = "ASSOCIATED",
35
- ASSOCIATING = "ASSOCIATING",
36
- DISASSOCIATED = "DISASSOCIATED",
37
- DISASSOCIATING = "DISASSOCIATING",
38
- FAILED = "FAILED"
39
- }
34
+ export type ResourceShareAssociationType = (typeof ResourceShareAssociationType)[keyof typeof ResourceShareAssociationType];
35
+ /**
36
+ * @public
37
+ * @enum
38
+ */
39
+ export declare const ResourceShareAssociationStatus: {
40
+ readonly ASSOCIATED: "ASSOCIATED";
41
+ readonly ASSOCIATING: "ASSOCIATING";
42
+ readonly DISASSOCIATED: "DISASSOCIATED";
43
+ readonly DISASSOCIATING: "DISASSOCIATING";
44
+ readonly FAILED: "FAILED";
45
+ };
46
+ /**
47
+ * @public
48
+ */
49
+ export type ResourceShareAssociationStatus = (typeof ResourceShareAssociationStatus)[keyof typeof ResourceShareAssociationStatus];
40
50
  /**
41
51
  * @public
42
52
  * <p>Describes an association with a resource share and either a principal or a resource.</p>
@@ -107,13 +117,18 @@ export interface ResourceShareAssociation {
107
117
  }
108
118
  /**
109
119
  * @public
120
+ * @enum
110
121
  */
111
- export declare enum ResourceShareInvitationStatus {
112
- ACCEPTED = "ACCEPTED",
113
- EXPIRED = "EXPIRED",
114
- PENDING = "PENDING",
115
- REJECTED = "REJECTED"
116
- }
122
+ export declare const ResourceShareInvitationStatus: {
123
+ readonly ACCEPTED: "ACCEPTED";
124
+ readonly EXPIRED: "EXPIRED";
125
+ readonly PENDING: "PENDING";
126
+ readonly REJECTED: "REJECTED";
127
+ };
128
+ /**
129
+ * @public
130
+ */
131
+ export type ResourceShareInvitationStatus = (typeof ResourceShareInvitationStatus)[keyof typeof ResourceShareInvitationStatus];
117
132
  /**
118
133
  * @public
119
134
  * <p>Describes an invitation for an Amazon Web Services account to join a resource share.</p>
@@ -606,22 +621,32 @@ export interface CreateResourceShareRequest {
606
621
  }
607
622
  /**
608
623
  * @public
624
+ * @enum
609
625
  */
610
- export declare enum ResourceShareFeatureSet {
611
- CREATED_FROM_POLICY = "CREATED_FROM_POLICY",
612
- PROMOTING_TO_STANDARD = "PROMOTING_TO_STANDARD",
613
- STANDARD = "STANDARD"
614
- }
626
+ export declare const ResourceShareFeatureSet: {
627
+ readonly CREATED_FROM_POLICY: "CREATED_FROM_POLICY";
628
+ readonly PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD";
629
+ readonly STANDARD: "STANDARD";
630
+ };
615
631
  /**
616
632
  * @public
617
633
  */
618
- export declare enum ResourceShareStatus {
619
- ACTIVE = "ACTIVE",
620
- DELETED = "DELETED",
621
- DELETING = "DELETING",
622
- FAILED = "FAILED",
623
- PENDING = "PENDING"
624
- }
634
+ export type ResourceShareFeatureSet = (typeof ResourceShareFeatureSet)[keyof typeof ResourceShareFeatureSet];
635
+ /**
636
+ * @public
637
+ * @enum
638
+ */
639
+ export declare const ResourceShareStatus: {
640
+ readonly ACTIVE: "ACTIVE";
641
+ readonly DELETED: "DELETED";
642
+ readonly DELETING: "DELETING";
643
+ readonly FAILED: "FAILED";
644
+ readonly PENDING: "PENDING";
645
+ };
646
+ /**
647
+ * @public
648
+ */
649
+ export type ResourceShareStatus = (typeof ResourceShareStatus)[keyof typeof ResourceShareStatus];
625
650
  /**
626
651
  * @public
627
652
  * <p>Describes a resource share in RAM.</p>
@@ -1184,11 +1209,16 @@ export declare class InvalidMaxResultsException extends __BaseException {
1184
1209
  }
1185
1210
  /**
1186
1211
  * @public
1212
+ * @enum
1187
1213
  */
1188
- export declare enum ResourceOwner {
1189
- OTHER_ACCOUNTS = "OTHER-ACCOUNTS",
1190
- SELF = "SELF"
1191
- }
1214
+ export declare const ResourceOwner: {
1215
+ readonly OTHER_ACCOUNTS: "OTHER-ACCOUNTS";
1216
+ readonly SELF: "SELF";
1217
+ };
1218
+ /**
1219
+ * @public
1220
+ */
1221
+ export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner];
1192
1222
  /**
1193
1223
  * @public
1194
1224
  * <p>A tag key and optional list of possible values that you can use to filter results for
@@ -1294,12 +1324,17 @@ export interface GetResourceSharesResponse {
1294
1324
  }
1295
1325
  /**
1296
1326
  * @public
1327
+ * @enum
1297
1328
  */
1298
- export declare enum ResourceRegionScopeFilter {
1299
- ALL = "ALL",
1300
- GLOBAL = "GLOBAL",
1301
- REGIONAL = "REGIONAL"
1302
- }
1329
+ export declare const ResourceRegionScopeFilter: {
1330
+ readonly ALL: "ALL";
1331
+ readonly GLOBAL: "GLOBAL";
1332
+ readonly REGIONAL: "REGIONAL";
1333
+ };
1334
+ /**
1335
+ * @public
1336
+ */
1337
+ export type ResourceRegionScopeFilter = (typeof ResourceRegionScopeFilter)[keyof typeof ResourceRegionScopeFilter];
1303
1338
  /**
1304
1339
  * @public
1305
1340
  */
@@ -1354,21 +1389,31 @@ export interface ListPendingInvitationResourcesRequest {
1354
1389
  }
1355
1390
  /**
1356
1391
  * @public
1392
+ * @enum
1357
1393
  */
1358
- export declare enum ResourceRegionScope {
1359
- GLOBAL = "GLOBAL",
1360
- REGIONAL = "REGIONAL"
1361
- }
1394
+ export declare const ResourceRegionScope: {
1395
+ readonly GLOBAL: "GLOBAL";
1396
+ readonly REGIONAL: "REGIONAL";
1397
+ };
1362
1398
  /**
1363
1399
  * @public
1364
1400
  */
1365
- export declare enum ResourceStatus {
1366
- AVAILABLE = "AVAILABLE",
1367
- LIMIT_EXCEEDED = "LIMIT_EXCEEDED",
1368
- PENDING = "PENDING",
1369
- UNAVAILABLE = "UNAVAILABLE",
1370
- ZONAL_RESOURCE_INACCESSIBLE = "ZONAL_RESOURCE_INACCESSIBLE"
1371
- }
1401
+ export type ResourceRegionScope = (typeof ResourceRegionScope)[keyof typeof ResourceRegionScope];
1402
+ /**
1403
+ * @public
1404
+ * @enum
1405
+ */
1406
+ export declare const ResourceStatus: {
1407
+ readonly AVAILABLE: "AVAILABLE";
1408
+ readonly LIMIT_EXCEEDED: "LIMIT_EXCEEDED";
1409
+ readonly PENDING: "PENDING";
1410
+ readonly UNAVAILABLE: "UNAVAILABLE";
1411
+ readonly ZONAL_RESOURCE_INACCESSIBLE: "ZONAL_RESOURCE_INACCESSIBLE";
1412
+ };
1413
+ /**
1414
+ * @public
1415
+ */
1416
+ export type ResourceStatus = (typeof ResourceStatus)[keyof typeof ResourceStatus];
1372
1417
  /**
1373
1418
  * @public
1374
1419
  * <p>Describes a resource associated with a resource share in RAM.</p>
@@ -4,17 +4,21 @@ export interface AcceptResourceShareInvitationRequest {
4
4
  resourceShareInvitationArn: string | undefined;
5
5
  clientToken?: string;
6
6
  }
7
- export declare enum ResourceShareAssociationType {
8
- PRINCIPAL = "PRINCIPAL",
9
- RESOURCE = "RESOURCE",
10
- }
11
- export declare enum ResourceShareAssociationStatus {
12
- ASSOCIATED = "ASSOCIATED",
13
- ASSOCIATING = "ASSOCIATING",
14
- DISASSOCIATED = "DISASSOCIATED",
15
- DISASSOCIATING = "DISASSOCIATING",
16
- FAILED = "FAILED",
17
- }
7
+ export declare const ResourceShareAssociationType: {
8
+ readonly PRINCIPAL: "PRINCIPAL";
9
+ readonly RESOURCE: "RESOURCE";
10
+ };
11
+ export type ResourceShareAssociationType =
12
+ (typeof ResourceShareAssociationType)[keyof typeof ResourceShareAssociationType];
13
+ export declare const ResourceShareAssociationStatus: {
14
+ readonly ASSOCIATED: "ASSOCIATED";
15
+ readonly ASSOCIATING: "ASSOCIATING";
16
+ readonly DISASSOCIATED: "DISASSOCIATED";
17
+ readonly DISASSOCIATING: "DISASSOCIATING";
18
+ readonly FAILED: "FAILED";
19
+ };
20
+ export type ResourceShareAssociationStatus =
21
+ (typeof ResourceShareAssociationStatus)[keyof typeof ResourceShareAssociationStatus];
18
22
  export interface ResourceShareAssociation {
19
23
  resourceShareArn?: string;
20
24
  resourceShareName?: string;
@@ -26,12 +30,14 @@ export interface ResourceShareAssociation {
26
30
  lastUpdatedTime?: Date;
27
31
  external?: boolean;
28
32
  }
29
- export declare enum ResourceShareInvitationStatus {
30
- ACCEPTED = "ACCEPTED",
31
- EXPIRED = "EXPIRED",
32
- PENDING = "PENDING",
33
- REJECTED = "REJECTED",
34
- }
33
+ export declare const ResourceShareInvitationStatus: {
34
+ readonly ACCEPTED: "ACCEPTED";
35
+ readonly EXPIRED: "EXPIRED";
36
+ readonly PENDING: "PENDING";
37
+ readonly REJECTED: "REJECTED";
38
+ };
39
+ export type ResourceShareInvitationStatus =
40
+ (typeof ResourceShareInvitationStatus)[keyof typeof ResourceShareInvitationStatus];
35
41
  export interface ResourceShareInvitation {
36
42
  resourceShareInvitationArn?: string;
37
43
  resourceShareName?: string;
@@ -207,18 +213,22 @@ export interface CreateResourceShareRequest {
207
213
  clientToken?: string;
208
214
  permissionArns?: string[];
209
215
  }
210
- export declare enum ResourceShareFeatureSet {
211
- CREATED_FROM_POLICY = "CREATED_FROM_POLICY",
212
- PROMOTING_TO_STANDARD = "PROMOTING_TO_STANDARD",
213
- STANDARD = "STANDARD",
214
- }
215
- export declare enum ResourceShareStatus {
216
- ACTIVE = "ACTIVE",
217
- DELETED = "DELETED",
218
- DELETING = "DELETING",
219
- FAILED = "FAILED",
220
- PENDING = "PENDING",
221
- }
216
+ export declare const ResourceShareFeatureSet: {
217
+ readonly CREATED_FROM_POLICY: "CREATED_FROM_POLICY";
218
+ readonly PROMOTING_TO_STANDARD: "PROMOTING_TO_STANDARD";
219
+ readonly STANDARD: "STANDARD";
220
+ };
221
+ export type ResourceShareFeatureSet =
222
+ (typeof ResourceShareFeatureSet)[keyof typeof ResourceShareFeatureSet];
223
+ export declare const ResourceShareStatus: {
224
+ readonly ACTIVE: "ACTIVE";
225
+ readonly DELETED: "DELETED";
226
+ readonly DELETING: "DELETING";
227
+ readonly FAILED: "FAILED";
228
+ readonly PENDING: "PENDING";
229
+ };
230
+ export type ResourceShareStatus =
231
+ (typeof ResourceShareStatus)[keyof typeof ResourceShareStatus];
222
232
  export interface ResourceShare {
223
233
  resourceShareArn?: string;
224
234
  name?: string;
@@ -345,10 +355,11 @@ export declare class InvalidMaxResultsException extends __BaseException {
345
355
  opts: __ExceptionOptionType<InvalidMaxResultsException, __BaseException>
346
356
  );
347
357
  }
348
- export declare enum ResourceOwner {
349
- OTHER_ACCOUNTS = "OTHER-ACCOUNTS",
350
- SELF = "SELF",
351
- }
358
+ export declare const ResourceOwner: {
359
+ readonly OTHER_ACCOUNTS: "OTHER-ACCOUNTS";
360
+ readonly SELF: "SELF";
361
+ };
362
+ export type ResourceOwner = (typeof ResourceOwner)[keyof typeof ResourceOwner];
352
363
  export interface TagFilter {
353
364
  tagKey?: string;
354
365
  tagValues?: string[];
@@ -367,28 +378,34 @@ export interface GetResourceSharesResponse {
367
378
  resourceShares?: ResourceShare[];
368
379
  nextToken?: string;
369
380
  }
370
- export declare enum ResourceRegionScopeFilter {
371
- ALL = "ALL",
372
- GLOBAL = "GLOBAL",
373
- REGIONAL = "REGIONAL",
374
- }
381
+ export declare const ResourceRegionScopeFilter: {
382
+ readonly ALL: "ALL";
383
+ readonly GLOBAL: "GLOBAL";
384
+ readonly REGIONAL: "REGIONAL";
385
+ };
386
+ export type ResourceRegionScopeFilter =
387
+ (typeof ResourceRegionScopeFilter)[keyof typeof ResourceRegionScopeFilter];
375
388
  export interface ListPendingInvitationResourcesRequest {
376
389
  resourceShareInvitationArn: string | undefined;
377
390
  nextToken?: string;
378
391
  maxResults?: number;
379
392
  resourceRegionScope?: ResourceRegionScopeFilter | string;
380
393
  }
381
- export declare enum ResourceRegionScope {
382
- GLOBAL = "GLOBAL",
383
- REGIONAL = "REGIONAL",
384
- }
385
- export declare enum ResourceStatus {
386
- AVAILABLE = "AVAILABLE",
387
- LIMIT_EXCEEDED = "LIMIT_EXCEEDED",
388
- PENDING = "PENDING",
389
- UNAVAILABLE = "UNAVAILABLE",
390
- ZONAL_RESOURCE_INACCESSIBLE = "ZONAL_RESOURCE_INACCESSIBLE",
391
- }
394
+ export declare const ResourceRegionScope: {
395
+ readonly GLOBAL: "GLOBAL";
396
+ readonly REGIONAL: "REGIONAL";
397
+ };
398
+ export type ResourceRegionScope =
399
+ (typeof ResourceRegionScope)[keyof typeof ResourceRegionScope];
400
+ export declare const ResourceStatus: {
401
+ readonly AVAILABLE: "AVAILABLE";
402
+ readonly LIMIT_EXCEEDED: "LIMIT_EXCEEDED";
403
+ readonly PENDING: "PENDING";
404
+ readonly UNAVAILABLE: "UNAVAILABLE";
405
+ readonly ZONAL_RESOURCE_INACCESSIBLE: "ZONAL_RESOURCE_INACCESSIBLE";
406
+ };
407
+ export type ResourceStatus =
408
+ (typeof ResourceStatus)[keyof typeof ResourceStatus];
392
409
  export interface Resource {
393
410
  arn?: string;
394
411
  type?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ram",
3
3
  "description": "AWS SDK for JavaScript Ram Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.306.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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.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.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.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.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.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",