@aws-sdk/client-ram 3.370.0 → 3.373.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TagLimitExceededException = exports.UnmatchedPolicyPermissionException = exports.InvalidResourceTypeException = exports.ReplacePermissionAssociationsWorkStatus = exports.PermissionTypeFilter = exports.MissingRequiredParameterException = exports.ResourceStatus = exports.ResourceRegionScope = exports.ResourceRegionScopeFilter = exports.ResourceOwner = exports.InvalidMaxResultsException = exports.ResourceArnNotFoundException = exports.InvalidNextTokenException = exports.TagPolicyViolationException = exports.ResourceShareStatus = exports.ResourceShareFeatureSet = exports.PermissionVersionsLimitExceededException = exports.PermissionStatus = exports.PermissionLimitExceededException = exports.PermissionAlreadyExistsException = exports.MalformedPolicyTemplateException = exports.InvalidPolicyException = exports.PermissionType = exports.PermissionFeatureSet = 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;
3
+ exports.UnmatchedPolicyPermissionException = exports.InvalidResourceTypeException = exports.ReplacePermissionAssociationsWorkStatus = exports.PermissionTypeFilter = exports.MissingRequiredParameterException = exports.ResourceStatus = exports.ResourceRegionScope = exports.ResourceRegionScopeFilter = exports.ResourceOwner = exports.InvalidMaxResultsException = exports.ResourceArnNotFoundException = exports.InvalidNextTokenException = exports.TagPolicyViolationException = exports.TagLimitExceededException = exports.ResourceShareStatus = exports.ResourceShareFeatureSet = exports.PermissionVersionsLimitExceededException = exports.PermissionStatus = exports.PermissionLimitExceededException = exports.PermissionAlreadyExistsException = exports.MalformedPolicyTemplateException = exports.InvalidPolicyException = exports.PermissionType = exports.PermissionFeatureSet = 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
5
  exports.ResourceShareAssociationType = {
6
6
  PRINCIPAL: "PRINCIPAL",
@@ -306,6 +306,19 @@ exports.ResourceShareStatus = {
306
306
  FAILED: "FAILED",
307
307
  PENDING: "PENDING",
308
308
  };
309
+ class TagLimitExceededException extends RAMServiceException_1.RAMServiceException {
310
+ constructor(opts) {
311
+ super({
312
+ name: "TagLimitExceededException",
313
+ $fault: "client",
314
+ ...opts,
315
+ });
316
+ this.name = "TagLimitExceededException";
317
+ this.$fault = "client";
318
+ Object.setPrototypeOf(this, TagLimitExceededException.prototype);
319
+ }
320
+ }
321
+ exports.TagLimitExceededException = TagLimitExceededException;
309
322
  class TagPolicyViolationException extends RAMServiceException_1.RAMServiceException {
310
323
  constructor(opts) {
311
324
  super({
@@ -427,16 +440,3 @@ class UnmatchedPolicyPermissionException extends RAMServiceException_1.RAMServic
427
440
  }
428
441
  }
429
442
  exports.UnmatchedPolicyPermissionException = UnmatchedPolicyPermissionException;
430
- class TagLimitExceededException extends RAMServiceException_1.RAMServiceException {
431
- constructor(opts) {
432
- super({
433
- name: "TagLimitExceededException",
434
- $fault: "client",
435
- ...opts,
436
- });
437
- this.name = "TagLimitExceededException";
438
- this.$fault = "client";
439
- Object.setPrototypeOf(this, TagLimitExceededException.prototype);
440
- }
441
- }
442
- exports.TagLimitExceededException = TagLimitExceededException;
@@ -40,6 +40,7 @@ const se_AssociateResourceShareCommand = async (input, context) => {
40
40
  principals: (_) => (0, smithy_client_1._json)(_),
41
41
  resourceArns: (_) => (0, smithy_client_1._json)(_),
42
42
  resourceShareArn: [],
43
+ sources: (_) => (0, smithy_client_1._json)(_),
43
44
  }));
44
45
  return new protocol_http_1.HttpRequest({
45
46
  protocol,
@@ -139,6 +140,7 @@ const se_CreateResourceShareCommand = async (input, context) => {
139
140
  permissionArns: (_) => (0, smithy_client_1._json)(_),
140
141
  principals: (_) => (0, smithy_client_1._json)(_),
141
142
  resourceArns: (_) => (0, smithy_client_1._json)(_),
143
+ sources: (_) => (0, smithy_client_1._json)(_),
142
144
  tags: (_) => (0, smithy_client_1._json)(_),
143
145
  }));
144
146
  return new protocol_http_1.HttpRequest({
@@ -231,6 +233,7 @@ const se_DisassociateResourceShareCommand = async (input, context) => {
231
233
  principals: (_) => (0, smithy_client_1._json)(_),
232
234
  resourceArns: (_) => (0, smithy_client_1._json)(_),
233
235
  resourceShareArn: [],
236
+ sources: (_) => (0, smithy_client_1._json)(_),
234
237
  }));
235
238
  return new protocol_http_1.HttpRequest({
236
239
  protocol,
@@ -1171,6 +1174,9 @@ const de_CreateResourceShareCommandError = async (output, context) => {
1171
1174
  case "ServiceUnavailableException":
1172
1175
  case "com.amazonaws.ram#ServiceUnavailableException":
1173
1176
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1177
+ case "TagLimitExceededException":
1178
+ case "com.amazonaws.ram#TagLimitExceededException":
1179
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1174
1180
  case "TagPolicyViolationException":
1175
1181
  case "com.amazonaws.ram#TagPolicyViolationException":
1176
1182
  throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
@@ -283,6 +283,18 @@ export const ResourceShareStatus = {
283
283
  FAILED: "FAILED",
284
284
  PENDING: "PENDING",
285
285
  };
286
+ export class TagLimitExceededException extends __BaseException {
287
+ constructor(opts) {
288
+ super({
289
+ name: "TagLimitExceededException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ this.name = "TagLimitExceededException";
294
+ this.$fault = "client";
295
+ Object.setPrototypeOf(this, TagLimitExceededException.prototype);
296
+ }
297
+ }
286
298
  export class TagPolicyViolationException extends __BaseException {
287
299
  constructor(opts) {
288
300
  super({
@@ -397,15 +409,3 @@ export class UnmatchedPolicyPermissionException extends __BaseException {
397
409
  Object.setPrototypeOf(this, UnmatchedPolicyPermissionException.prototype);
398
410
  }
399
411
  }
400
- export class TagLimitExceededException extends __BaseException {
401
- constructor(opts) {
402
- super({
403
- name: "TagLimitExceededException",
404
- $fault: "client",
405
- ...opts,
406
- });
407
- this.name = "TagLimitExceededException";
408
- this.$fault = "client";
409
- Object.setPrototypeOf(this, TagLimitExceededException.prototype);
410
- }
411
- }
@@ -35,6 +35,7 @@ export const se_AssociateResourceShareCommand = async (input, context) => {
35
35
  principals: (_) => _json(_),
36
36
  resourceArns: (_) => _json(_),
37
37
  resourceShareArn: [],
38
+ sources: (_) => _json(_),
38
39
  }));
39
40
  return new __HttpRequest({
40
41
  protocol,
@@ -130,6 +131,7 @@ export const se_CreateResourceShareCommand = async (input, context) => {
130
131
  permissionArns: (_) => _json(_),
131
132
  principals: (_) => _json(_),
132
133
  resourceArns: (_) => _json(_),
134
+ sources: (_) => _json(_),
133
135
  tags: (_) => _json(_),
134
136
  }));
135
137
  return new __HttpRequest({
@@ -218,6 +220,7 @@ export const se_DisassociateResourceShareCommand = async (input, context) => {
218
220
  principals: (_) => _json(_),
219
221
  resourceArns: (_) => _json(_),
220
222
  resourceShareArn: [],
223
+ sources: (_) => _json(_),
221
224
  }));
222
225
  return new __HttpRequest({
223
226
  protocol,
@@ -1127,6 +1130,9 @@ const de_CreateResourceShareCommandError = async (output, context) => {
1127
1130
  case "ServiceUnavailableException":
1128
1131
  case "com.amazonaws.ram#ServiceUnavailableException":
1129
1132
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1133
+ case "TagLimitExceededException":
1134
+ case "com.amazonaws.ram#TagLimitExceededException":
1135
+ throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1130
1136
  case "TagPolicyViolationException":
1131
1137
  case "com.amazonaws.ram#TagPolicyViolationException":
1132
1138
  throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
@@ -41,6 +41,9 @@ export interface AssociateResourceShareCommandOutput extends AssociateResourceSh
41
41
  * "STRING_VALUE",
42
42
  * ],
43
43
  * clientToken: "STRING_VALUE",
44
+ * sources: [ // SourceArnOrAccountList
45
+ * "STRING_VALUE",
46
+ * ],
44
47
  * };
45
48
  * const command = new AssociateResourceShareCommand(input);
46
49
  * const response = await client.send(command);
@@ -56,6 +56,9 @@ export interface CreateResourceShareCommandOutput extends CreateResourceShareRes
56
56
  * permissionArns: [ // PermissionArnList
57
57
  * "STRING_VALUE",
58
58
  * ],
59
+ * sources: [ // SourceArnOrAccountList
60
+ * "STRING_VALUE",
61
+ * ],
59
62
  * };
60
63
  * const command = new CreateResourceShareCommand(input);
61
64
  * const response = await client.send(command);
@@ -122,6 +125,10 @@ export interface CreateResourceShareCommandOutput extends CreateResourceShareRes
122
125
  * @throws {@link ServiceUnavailableException} (server fault)
123
126
  * <p>The operation failed because the service isn't available. Try again later.</p>
124
127
  *
128
+ * @throws {@link TagLimitExceededException} (client fault)
129
+ * <p>The operation failed because it would exceed the limit for tags for your
130
+ * Amazon Web Services account.</p>
131
+ *
125
132
  * @throws {@link TagPolicyViolationException} (client fault)
126
133
  * <p>The operation failed because the specified tag key is a reserved word and can't be
127
134
  * used.</p>
@@ -40,6 +40,9 @@ export interface DisassociateResourceShareCommandOutput extends DisassociateReso
40
40
  * "STRING_VALUE",
41
41
  * ],
42
42
  * clientToken: "STRING_VALUE",
43
+ * sources: [ // SourceArnOrAccountList
44
+ * "STRING_VALUE",
45
+ * ],
43
46
  * };
44
47
  * const command = new DisassociateResourceShareCommand(input);
45
48
  * const response = await client.send(command);
@@ -385,6 +385,11 @@ export interface AssociateResourceShareRequest {
385
385
  * error.</p>
386
386
  */
387
387
  clientToken?: string;
388
+ /**
389
+ * <p>Specifies from which source accounts the service principal
390
+ * has access to the resources in this resource share.</p>
391
+ */
392
+ sources?: string[];
388
393
  }
389
394
  /**
390
395
  * @public
@@ -1137,6 +1142,11 @@ export interface CreateResourceShareRequest {
1137
1142
  * each resource type included in the resource share.</p>
1138
1143
  */
1139
1144
  permissionArns?: string[];
1145
+ /**
1146
+ * <p>Specifies from which source accounts the service principal
1147
+ * has access to the resources in this resource share.</p>
1148
+ */
1149
+ sources?: string[];
1140
1150
  }
1141
1151
  /**
1142
1152
  * @public
@@ -1270,6 +1280,19 @@ export interface CreateResourceShareResponse {
1270
1280
  */
1271
1281
  clientToken?: string;
1272
1282
  }
1283
+ /**
1284
+ * @public
1285
+ * <p>The operation failed because it would exceed the limit for tags for your
1286
+ * Amazon Web Services account.</p>
1287
+ */
1288
+ export declare class TagLimitExceededException extends __BaseException {
1289
+ readonly name: "TagLimitExceededException";
1290
+ readonly $fault: "client";
1291
+ /**
1292
+ * @internal
1293
+ */
1294
+ constructor(opts: __ExceptionOptionType<TagLimitExceededException, __BaseException>);
1295
+ }
1273
1296
  /**
1274
1297
  * @public
1275
1298
  * <p>The operation failed because the specified tag key is a reserved word and can't be
@@ -1488,6 +1511,11 @@ export interface DisassociateResourceShareRequest {
1488
1511
  * error.</p>
1489
1512
  */
1490
1513
  clientToken?: string;
1514
+ /**
1515
+ * <p>Specifies from which source accounts the
1516
+ * service principal no longer has access to the resources in this resource share.</p>
1517
+ */
1518
+ sources?: string[];
1491
1519
  }
1492
1520
  /**
1493
1521
  * @public
@@ -1703,7 +1731,7 @@ export interface GetResourceShareAssociationsRequest {
1703
1731
  /**
1704
1732
  * <p>Specifies the ID of the principal whose resource shares you want to retrieve. This can be an
1705
1733
  * Amazon Web Services account ID, an organization ID, an organizational unit ID, or the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of an
1706
- * individual IAM user or role.</p>
1734
+ * individual IAM role or user.</p>
1707
1735
  * <p>You cannot specify this parameter if the association type is
1708
1736
  * <code>RESOURCE</code>.</p>
1709
1737
  */
@@ -3177,19 +3205,6 @@ export interface SetDefaultPermissionVersionResponse {
3177
3205
  */
3178
3206
  clientToken?: string;
3179
3207
  }
3180
- /**
3181
- * @public
3182
- * <p>The operation failed because it would exceed the limit for tags for your
3183
- * Amazon Web Services account.</p>
3184
- */
3185
- export declare class TagLimitExceededException extends __BaseException {
3186
- readonly name: "TagLimitExceededException";
3187
- readonly $fault: "client";
3188
- /**
3189
- * @internal
3190
- */
3191
- constructor(opts: __ExceptionOptionType<TagLimitExceededException, __BaseException>);
3192
- }
3193
3208
  /**
3194
3209
  * @public
3195
3210
  */
@@ -143,6 +143,7 @@ export interface AssociateResourceShareRequest {
143
143
  resourceArns?: string[];
144
144
  principals?: string[];
145
145
  clientToken?: string;
146
+ sources?: string[];
146
147
  }
147
148
  export interface AssociateResourceShareResponse {
148
149
  resourceShareAssociations?: ResourceShareAssociation[];
@@ -329,6 +330,7 @@ export interface CreateResourceShareRequest {
329
330
  allowExternalPrincipals?: boolean;
330
331
  clientToken?: string;
331
332
  permissionArns?: string[];
333
+ sources?: string[];
332
334
  }
333
335
  export declare const ResourceShareFeatureSet: {
334
336
  readonly CREATED_FROM_POLICY: "CREATED_FROM_POLICY";
@@ -362,6 +364,13 @@ export interface CreateResourceShareResponse {
362
364
  resourceShare?: ResourceShare;
363
365
  clientToken?: string;
364
366
  }
367
+ export declare class TagLimitExceededException extends __BaseException {
368
+ readonly name: "TagLimitExceededException";
369
+ readonly $fault: "client";
370
+ constructor(
371
+ opts: __ExceptionOptionType<TagLimitExceededException, __BaseException>
372
+ );
373
+ }
365
374
  export declare class TagPolicyViolationException extends __BaseException {
366
375
  readonly name: "TagPolicyViolationException";
367
376
  readonly $fault: "client";
@@ -401,6 +410,7 @@ export interface DisassociateResourceShareRequest {
401
410
  resourceArns?: string[];
402
411
  principals?: string[];
403
412
  clientToken?: string;
413
+ sources?: string[];
404
414
  }
405
415
  export interface DisassociateResourceShareResponse {
406
416
  resourceShareAssociations?: ResourceShareAssociation[];
@@ -751,13 +761,6 @@ export interface SetDefaultPermissionVersionResponse {
751
761
  returnValue?: boolean;
752
762
  clientToken?: string;
753
763
  }
754
- export declare class TagLimitExceededException extends __BaseException {
755
- readonly name: "TagLimitExceededException";
756
- readonly $fault: "client";
757
- constructor(
758
- opts: __ExceptionOptionType<TagLimitExceededException, __BaseException>
759
- );
760
- }
761
764
  export interface TagResourceRequest {
762
765
  resourceShareArn?: string;
763
766
  tags: Tag[] | undefined;
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.370.0",
4
+ "version": "3.373.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",