@aws-sdk/client-ram 3.47.1 → 3.50.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/RAM.js +15 -0
  3. package/dist-cjs/commands/ListPermissionVersionsCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +14 -2
  6. package/dist-cjs/pagination/ListPermissionVersionsPaginator.js +35 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +124 -1
  9. package/dist-es/RAM.js +15 -0
  10. package/dist-es/commands/ListPermissionVersionsCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +8 -0
  13. package/dist-es/pagination/ListPermissionVersionsPaginator.js +74 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +138 -0
  16. package/dist-types/RAM.d.ts +7 -0
  17. package/dist-types/RAMClient.d.ts +3 -2
  18. package/dist-types/commands/ListPermissionVersionsCommand.d.ts +35 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +57 -1
  21. package/dist-types/pagination/ListPermissionVersionsPaginator.d.ts +4 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/package.json +39 -33
  25. package/dist-types/ts3.4/RAM.d.ts +0 -125
  26. package/dist-types/ts3.4/RAMClient.d.ts +0 -97
  27. package/dist-types/ts3.4/commands/AcceptResourceShareInvitationCommand.d.ts +0 -17
  28. package/dist-types/ts3.4/commands/AssociateResourceShareCommand.d.ts +0 -17
  29. package/dist-types/ts3.4/commands/AssociateResourceSharePermissionCommand.d.ts +0 -17
  30. package/dist-types/ts3.4/commands/CreateResourceShareCommand.d.ts +0 -17
  31. package/dist-types/ts3.4/commands/DeleteResourceShareCommand.d.ts +0 -17
  32. package/dist-types/ts3.4/commands/DisassociateResourceShareCommand.d.ts +0 -17
  33. package/dist-types/ts3.4/commands/DisassociateResourceSharePermissionCommand.d.ts +0 -17
  34. package/dist-types/ts3.4/commands/EnableSharingWithAwsOrganizationCommand.d.ts +0 -17
  35. package/dist-types/ts3.4/commands/GetPermissionCommand.d.ts +0 -17
  36. package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +0 -17
  37. package/dist-types/ts3.4/commands/GetResourceShareAssociationsCommand.d.ts +0 -17
  38. package/dist-types/ts3.4/commands/GetResourceShareInvitationsCommand.d.ts +0 -17
  39. package/dist-types/ts3.4/commands/GetResourceSharesCommand.d.ts +0 -17
  40. package/dist-types/ts3.4/commands/ListPendingInvitationResourcesCommand.d.ts +0 -17
  41. package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +0 -17
  42. package/dist-types/ts3.4/commands/ListPrincipalsCommand.d.ts +0 -17
  43. package/dist-types/ts3.4/commands/ListResourceSharePermissionsCommand.d.ts +0 -17
  44. package/dist-types/ts3.4/commands/ListResourceTypesCommand.d.ts +0 -17
  45. package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +0 -17
  46. package/dist-types/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +0 -17
  47. package/dist-types/ts3.4/commands/RejectResourceShareInvitationCommand.d.ts +0 -17
  48. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -17
  49. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -17
  50. package/dist-types/ts3.4/commands/UpdateResourceShareCommand.d.ts +0 -17
  51. package/dist-types/ts3.4/commands/index.d.ts +0 -24
  52. package/dist-types/ts3.4/endpoints.d.ts +0 -2
  53. package/dist-types/ts3.4/index.d.ts +0 -5
  54. package/dist-types/ts3.4/models/index.d.ts +0 -1
  55. package/dist-types/ts3.4/models/models_0.d.ts +0 -908
  56. package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +0 -4
  57. package/dist-types/ts3.4/pagination/GetResourceShareAssociationsPaginator.d.ts +0 -4
  58. package/dist-types/ts3.4/pagination/GetResourceShareInvitationsPaginator.d.ts +0 -4
  59. package/dist-types/ts3.4/pagination/GetResourceSharesPaginator.d.ts +0 -4
  60. package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -6
  61. package/dist-types/ts3.4/pagination/ListPendingInvitationResourcesPaginator.d.ts +0 -4
  62. package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +0 -4
  63. package/dist-types/ts3.4/pagination/ListPrincipalsPaginator.d.ts +0 -4
  64. package/dist-types/ts3.4/pagination/ListResourceSharePermissionsPaginator.d.ts +0 -4
  65. package/dist-types/ts3.4/pagination/ListResourceTypesPaginator.d.ts +0 -4
  66. package/dist-types/ts3.4/pagination/ListResourcesPaginator.d.ts +0 -4
  67. package/dist-types/ts3.4/pagination/index.d.ts +0 -11
  68. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -74
  69. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
  70. package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
  71. package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
  72. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
@@ -411,6 +411,30 @@ export var serializeAws_restJson1ListPermissionsCommand = function (input, conte
411
411
  }
412
412
  });
413
413
  }); };
414
+ export var serializeAws_restJson1ListPermissionVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
415
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
416
+ return __generator(this, function (_c) {
417
+ switch (_c.label) {
418
+ case 0: return [4, context.endpoint()];
419
+ case 1:
420
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
421
+ headers = {
422
+ "content-type": "application/json",
423
+ };
424
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listpermissionversions";
425
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.permissionArn !== undefined && input.permissionArn !== null && { permissionArn: input.permissionArn })));
426
+ return [2, new __HttpRequest({
427
+ protocol: protocol,
428
+ hostname: hostname,
429
+ port: port,
430
+ method: "POST",
431
+ headers: headers,
432
+ path: resolvedPath,
433
+ body: body,
434
+ })];
435
+ }
436
+ });
437
+ }); };
414
438
  export var serializeAws_restJson1ListPrincipalsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
415
439
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
416
440
  return __generator(this, function (_c) {
@@ -2438,6 +2462,120 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
2438
2462
  }
2439
2463
  });
2440
2464
  }); };
2465
+ export var deserializeAws_restJson1ListPermissionVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2466
+ var contents, data, _a, _b;
2467
+ return __generator(this, function (_c) {
2468
+ switch (_c.label) {
2469
+ case 0:
2470
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2471
+ return [2, deserializeAws_restJson1ListPermissionVersionsCommandError(output, context)];
2472
+ }
2473
+ contents = {
2474
+ $metadata: deserializeMetadata(output),
2475
+ nextToken: undefined,
2476
+ permissions: undefined,
2477
+ };
2478
+ _a = __expectNonNull;
2479
+ _b = __expectObject;
2480
+ return [4, parseBody(output.body, context)];
2481
+ case 1:
2482
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2483
+ if (data.nextToken !== undefined && data.nextToken !== null) {
2484
+ contents.nextToken = __expectString(data.nextToken);
2485
+ }
2486
+ if (data.permissions !== undefined && data.permissions !== null) {
2487
+ contents.permissions = deserializeAws_restJson1ResourceSharePermissionList(data.permissions, context);
2488
+ }
2489
+ return [2, Promise.resolve(contents)];
2490
+ }
2491
+ });
2492
+ }); };
2493
+ var deserializeAws_restJson1ListPermissionVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2494
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
2495
+ var _k;
2496
+ return __generator(this, function (_l) {
2497
+ switch (_l.label) {
2498
+ case 0:
2499
+ _a = [__assign({}, output)];
2500
+ _k = {};
2501
+ return [4, parseBody(output.body, context)];
2502
+ case 1:
2503
+ parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
2504
+ errorCode = "UnknownError";
2505
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2506
+ _b = errorCode;
2507
+ switch (_b) {
2508
+ case "InvalidNextTokenException": return [3, 2];
2509
+ case "com.amazonaws.ram#InvalidNextTokenException": return [3, 2];
2510
+ case "InvalidParameterException": return [3, 4];
2511
+ case "com.amazonaws.ram#InvalidParameterException": return [3, 4];
2512
+ case "MalformedArnException": return [3, 6];
2513
+ case "com.amazonaws.ram#MalformedArnException": return [3, 6];
2514
+ case "OperationNotPermittedException": return [3, 8];
2515
+ case "com.amazonaws.ram#OperationNotPermittedException": return [3, 8];
2516
+ case "ServerInternalException": return [3, 10];
2517
+ case "com.amazonaws.ram#ServerInternalException": return [3, 10];
2518
+ case "ServiceUnavailableException": return [3, 12];
2519
+ case "com.amazonaws.ram#ServiceUnavailableException": return [3, 12];
2520
+ case "UnknownResourceException": return [3, 14];
2521
+ case "com.amazonaws.ram#UnknownResourceException": return [3, 14];
2522
+ }
2523
+ return [3, 16];
2524
+ case 2:
2525
+ _c = [{}];
2526
+ return [4, deserializeAws_restJson1InvalidNextTokenExceptionResponse(parsedOutput, context)];
2527
+ case 3:
2528
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2529
+ return [3, 17];
2530
+ case 4:
2531
+ _d = [{}];
2532
+ return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
2533
+ case 5:
2534
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2535
+ return [3, 17];
2536
+ case 6:
2537
+ _e = [{}];
2538
+ return [4, deserializeAws_restJson1MalformedArnExceptionResponse(parsedOutput, context)];
2539
+ case 7:
2540
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2541
+ return [3, 17];
2542
+ case 8:
2543
+ _f = [{}];
2544
+ return [4, deserializeAws_restJson1OperationNotPermittedExceptionResponse(parsedOutput, context)];
2545
+ case 9:
2546
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2547
+ return [3, 17];
2548
+ case 10:
2549
+ _g = [{}];
2550
+ return [4, deserializeAws_restJson1ServerInternalExceptionResponse(parsedOutput, context)];
2551
+ case 11:
2552
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2553
+ return [3, 17];
2554
+ case 12:
2555
+ _h = [{}];
2556
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
2557
+ case 13:
2558
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2559
+ return [3, 17];
2560
+ case 14:
2561
+ _j = [{}];
2562
+ return [4, deserializeAws_restJson1UnknownResourceExceptionResponse(parsedOutput, context)];
2563
+ case 15:
2564
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2565
+ return [3, 17];
2566
+ case 16:
2567
+ parsedBody = parsedOutput.body;
2568
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2569
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2570
+ _l.label = 17;
2571
+ case 17:
2572
+ message = response.message || response.Message || errorCode;
2573
+ response.message = message;
2574
+ delete response.Message;
2575
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2576
+ }
2577
+ });
2578
+ }); };
2441
2579
  export var deserializeAws_restJson1ListPrincipalsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2442
2580
  var contents, data, _a, _b;
2443
2581
  return __generator(this, function (_c) {
@@ -14,6 +14,7 @@ import { GetResourceShareInvitationsCommandInput, GetResourceShareInvitationsCom
14
14
  import { GetResourceSharesCommandInput, GetResourceSharesCommandOutput } from "./commands/GetResourceSharesCommand";
15
15
  import { ListPendingInvitationResourcesCommandInput, ListPendingInvitationResourcesCommandOutput } from "./commands/ListPendingInvitationResourcesCommand";
16
16
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
17
+ import { ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput } from "./commands/ListPermissionVersionsCommand";
17
18
  import { ListPrincipalsCommandInput, ListPrincipalsCommandOutput } from "./commands/ListPrincipalsCommand";
18
19
  import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
19
20
  import { ListResourceSharePermissionsCommandInput, ListResourceSharePermissionsCommandOutput } from "./commands/ListResourceSharePermissionsCommand";
@@ -169,6 +170,12 @@ export declare class RAM extends RAMClient {
169
170
  listPermissions(args: ListPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPermissionsCommandOutput>;
170
171
  listPermissions(args: ListPermissionsCommandInput, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
171
172
  listPermissions(args: ListPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
173
+ /**
174
+ * <p>Lists the available versions of the specified RAM permission.</p>
175
+ */
176
+ listPermissionVersions(args: ListPermissionVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPermissionVersionsCommandOutput>;
177
+ listPermissionVersions(args: ListPermissionVersionsCommandInput, cb: (err: any, data?: ListPermissionVersionsCommandOutput) => void): void;
178
+ listPermissionVersions(args: ListPermissionVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionVersionsCommandOutput) => void): void;
172
179
  /**
173
180
  * <p>Lists the principals that you are sharing resources with or that are sharing resources
174
181
  * with you.</p>
@@ -21,6 +21,7 @@ import { GetResourceShareInvitationsCommandInput, GetResourceShareInvitationsCom
21
21
  import { GetResourceSharesCommandInput, GetResourceSharesCommandOutput } from "./commands/GetResourceSharesCommand";
22
22
  import { ListPendingInvitationResourcesCommandInput, ListPendingInvitationResourcesCommandOutput } from "./commands/ListPendingInvitationResourcesCommand";
23
23
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
24
+ import { ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput } from "./commands/ListPermissionVersionsCommand";
24
25
  import { ListPrincipalsCommandInput, ListPrincipalsCommandOutput } from "./commands/ListPrincipalsCommand";
25
26
  import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
26
27
  import { ListResourceSharePermissionsCommandInput, ListResourceSharePermissionsCommandOutput } from "./commands/ListResourceSharePermissionsCommand";
@@ -30,8 +31,8 @@ import { RejectResourceShareInvitationCommandInput, RejectResourceShareInvitatio
30
31
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
32
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
32
33
  import { UpdateResourceShareCommandInput, UpdateResourceShareCommandOutput } from "./commands/UpdateResourceShareCommand";
33
- export declare type ServiceInputTypes = AcceptResourceShareInvitationCommandInput | AssociateResourceShareCommandInput | AssociateResourceSharePermissionCommandInput | CreateResourceShareCommandInput | DeleteResourceShareCommandInput | DisassociateResourceShareCommandInput | DisassociateResourceSharePermissionCommandInput | EnableSharingWithAwsOrganizationCommandInput | GetPermissionCommandInput | GetResourcePoliciesCommandInput | GetResourceShareAssociationsCommandInput | GetResourceShareInvitationsCommandInput | GetResourceSharesCommandInput | ListPendingInvitationResourcesCommandInput | ListPermissionsCommandInput | ListPrincipalsCommandInput | ListResourceSharePermissionsCommandInput | ListResourceTypesCommandInput | ListResourcesCommandInput | PromoteResourceShareCreatedFromPolicyCommandInput | RejectResourceShareInvitationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateResourceShareCommandInput;
34
- export declare type ServiceOutputTypes = AcceptResourceShareInvitationCommandOutput | AssociateResourceShareCommandOutput | AssociateResourceSharePermissionCommandOutput | CreateResourceShareCommandOutput | DeleteResourceShareCommandOutput | DisassociateResourceShareCommandOutput | DisassociateResourceSharePermissionCommandOutput | EnableSharingWithAwsOrganizationCommandOutput | GetPermissionCommandOutput | GetResourcePoliciesCommandOutput | GetResourceShareAssociationsCommandOutput | GetResourceShareInvitationsCommandOutput | GetResourceSharesCommandOutput | ListPendingInvitationResourcesCommandOutput | ListPermissionsCommandOutput | ListPrincipalsCommandOutput | ListResourceSharePermissionsCommandOutput | ListResourceTypesCommandOutput | ListResourcesCommandOutput | PromoteResourceShareCreatedFromPolicyCommandOutput | RejectResourceShareInvitationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateResourceShareCommandOutput;
34
+ export declare type ServiceInputTypes = AcceptResourceShareInvitationCommandInput | AssociateResourceShareCommandInput | AssociateResourceSharePermissionCommandInput | CreateResourceShareCommandInput | DeleteResourceShareCommandInput | DisassociateResourceShareCommandInput | DisassociateResourceSharePermissionCommandInput | EnableSharingWithAwsOrganizationCommandInput | GetPermissionCommandInput | GetResourcePoliciesCommandInput | GetResourceShareAssociationsCommandInput | GetResourceShareInvitationsCommandInput | GetResourceSharesCommandInput | ListPendingInvitationResourcesCommandInput | ListPermissionVersionsCommandInput | ListPermissionsCommandInput | ListPrincipalsCommandInput | ListResourceSharePermissionsCommandInput | ListResourceTypesCommandInput | ListResourcesCommandInput | PromoteResourceShareCreatedFromPolicyCommandInput | RejectResourceShareInvitationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateResourceShareCommandInput;
35
+ export declare type ServiceOutputTypes = AcceptResourceShareInvitationCommandOutput | AssociateResourceShareCommandOutput | AssociateResourceSharePermissionCommandOutput | CreateResourceShareCommandOutput | DeleteResourceShareCommandOutput | DisassociateResourceShareCommandOutput | DisassociateResourceSharePermissionCommandOutput | EnableSharingWithAwsOrganizationCommandOutput | GetPermissionCommandOutput | GetResourcePoliciesCommandOutput | GetResourceShareAssociationsCommandOutput | GetResourceShareInvitationsCommandOutput | GetResourceSharesCommandOutput | ListPendingInvitationResourcesCommandOutput | ListPermissionVersionsCommandOutput | ListPermissionsCommandOutput | ListPrincipalsCommandOutput | ListResourceSharePermissionsCommandOutput | ListResourceTypesCommandOutput | ListResourcesCommandOutput | PromoteResourceShareCreatedFromPolicyCommandOutput | RejectResourceShareInvitationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateResourceShareCommandOutput;
35
36
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
36
37
  /**
37
38
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ListPermissionVersionsRequest, ListPermissionVersionsResponse } from "../models/models_0";
4
+ import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
5
+ export interface ListPermissionVersionsCommandInput extends ListPermissionVersionsRequest {
6
+ }
7
+ export interface ListPermissionVersionsCommandOutput extends ListPermissionVersionsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Lists the available versions of the specified RAM permission.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { RAMClient, ListPermissionVersionsCommand } from "@aws-sdk/client-ram"; // ES Modules import
15
+ * // const { RAMClient, ListPermissionVersionsCommand } = require("@aws-sdk/client-ram"); // CommonJS import
16
+ * const client = new RAMClient(config);
17
+ * const command = new ListPermissionVersionsCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link ListPermissionVersionsCommandInput} for command's `input` shape.
22
+ * @see {@link ListPermissionVersionsCommandOutput} for command's `response` shape.
23
+ * @see {@link RAMClientResolvedConfig | config} for RAMClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class ListPermissionVersionsCommand extends $Command<ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput, RAMClientResolvedConfig> {
27
+ readonly input: ListPermissionVersionsCommandInput;
28
+ constructor(input: ListPermissionVersionsCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -12,6 +12,7 @@ export * from "./GetResourceShareAssociationsCommand";
12
12
  export * from "./GetResourceShareInvitationsCommand";
13
13
  export * from "./GetResourceSharesCommand";
14
14
  export * from "./ListPendingInvitationResourcesCommand";
15
+ export * from "./ListPermissionVersionsCommand";
15
16
  export * from "./ListPermissionsCommand";
16
17
  export * from "./ListPrincipalsCommand";
17
18
  export * from "./ListResourceSharePermissionsCommand";
@@ -414,7 +414,9 @@ export interface AssociateResourceSharePermissionRequest {
414
414
  clientToken?: string;
415
415
  /**
416
416
  * <p>Specifies the version of the RAM permission to associate with the resource share. If you don't
417
- * specify this parameter, the operation uses the version designated as the default.</p>
417
+ * specify this parameter, the operation uses the version designated as the default. You
418
+ * can use the <a>ListPermissionVersions</a> operation to discover the available
419
+ * versions of a permission.</p>
418
420
  */
419
421
  permissionVersion?: number;
420
422
  }
@@ -1541,6 +1543,60 @@ export declare namespace ListPermissionsResponse {
1541
1543
  */
1542
1544
  const filterSensitiveLog: (obj: ListPermissionsResponse) => any;
1543
1545
  }
1546
+ export interface ListPermissionVersionsRequest {
1547
+ /**
1548
+ * <p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resoure Name (ARN)</a> of the RAM permission whose versions you want to list. You
1549
+ * can use the <code>permissionVersion</code> parameter on the <a>AssociateResourceSharePermission</a> operation to specify a non-default
1550
+ * version to attach.</p>
1551
+ */
1552
+ permissionArn: string | undefined;
1553
+ /**
1554
+ * <p>Specifies that you want to receive the next page of results. Valid
1555
+ * only if you received a <code>NextToken</code> response in the previous request. If you
1556
+ * did, it indicates that more output is available. Set this parameter to the value
1557
+ * provided by the previous call's <code>NextToken</code> response to request the
1558
+ * next page of results.</p>
1559
+ */
1560
+ nextToken?: string;
1561
+ /**
1562
+ * <p>Specifies the total number of results that you want included on each page
1563
+ * of the response. If you do not include this parameter, it defaults to a value that is
1564
+ * specific to the operation. If additional items exist beyond the number you specify, the
1565
+ * <code>NextToken</code> response element is returned with a value (not null).
1566
+ * Include the specified value as the <code>NextToken</code> request parameter in the next
1567
+ * call to the operation to get the next part of the results. Note that the service might
1568
+ * return fewer results than the maximum even when there are more results available. You
1569
+ * should check <code>NextToken</code> after every operation to ensure that you receive all
1570
+ * of the results.</p>
1571
+ */
1572
+ maxResults?: number;
1573
+ }
1574
+ export declare namespace ListPermissionVersionsRequest {
1575
+ /**
1576
+ * @internal
1577
+ */
1578
+ const filterSensitiveLog: (obj: ListPermissionVersionsRequest) => any;
1579
+ }
1580
+ export interface ListPermissionVersionsResponse {
1581
+ /**
1582
+ * <p>An array of objects that contain details for each of the available versions.</p>
1583
+ */
1584
+ permissions?: ResourceSharePermissionSummary[];
1585
+ /**
1586
+ * <p>If present, this value indicates that more output is available than
1587
+ * is included in the current response. Use this value in the <code>NextToken</code>
1588
+ * request parameter in a subsequent call to the operation to get the next part of the
1589
+ * output. You should repeat this until the <code>NextToken</code> response element comes
1590
+ * back as <code>null</code>. This indicates that this is the last page of results.</p>
1591
+ */
1592
+ nextToken?: string;
1593
+ }
1594
+ export declare namespace ListPermissionVersionsResponse {
1595
+ /**
1596
+ * @internal
1597
+ */
1598
+ const filterSensitiveLog: (obj: ListPermissionVersionsResponse) => any;
1599
+ }
1544
1600
  export interface ListPrincipalsRequest {
1545
1601
  /**
1546
1602
  * <p>Specifies that you want to list information for only resource shares that match the
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput } from "../commands/ListPermissionVersionsCommand";
3
+ import { RAMPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListPermissionVersions(config: RAMPaginationConfiguration, input: ListPermissionVersionsCommandInput, ...additionalArguments: any): Paginator<ListPermissionVersionsCommandOutput>;
@@ -4,6 +4,7 @@ export * from "./GetResourceShareInvitationsPaginator";
4
4
  export * from "./GetResourceSharesPaginator";
5
5
  export * from "./Interfaces";
6
6
  export * from "./ListPendingInvitationResourcesPaginator";
7
+ export * from "./ListPermissionVersionsPaginator";
7
8
  export * from "./ListPermissionsPaginator";
8
9
  export * from "./ListPrincipalsPaginator";
9
10
  export * from "./ListResourceSharePermissionsPaginator";
@@ -15,6 +15,7 @@ import { GetResourceShareInvitationsCommandInput, GetResourceShareInvitationsCom
15
15
  import { GetResourceSharesCommandInput, GetResourceSharesCommandOutput } from "../commands/GetResourceSharesCommand";
16
16
  import { ListPendingInvitationResourcesCommandInput, ListPendingInvitationResourcesCommandOutput } from "../commands/ListPendingInvitationResourcesCommand";
17
17
  import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "../commands/ListPermissionsCommand";
18
+ import { ListPermissionVersionsCommandInput, ListPermissionVersionsCommandOutput } from "../commands/ListPermissionVersionsCommand";
18
19
  import { ListPrincipalsCommandInput, ListPrincipalsCommandOutput } from "../commands/ListPrincipalsCommand";
19
20
  import { ListResourcesCommandInput, ListResourcesCommandOutput } from "../commands/ListResourcesCommand";
20
21
  import { ListResourceSharePermissionsCommandInput, ListResourceSharePermissionsCommandOutput } from "../commands/ListResourceSharePermissionsCommand";
@@ -39,6 +40,7 @@ export declare const serializeAws_restJson1GetResourceShareInvitationsCommand: (
39
40
  export declare const serializeAws_restJson1GetResourceSharesCommand: (input: GetResourceSharesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
41
  export declare const serializeAws_restJson1ListPendingInvitationResourcesCommand: (input: ListPendingInvitationResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
41
42
  export declare const serializeAws_restJson1ListPermissionsCommand: (input: ListPermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
+ export declare const serializeAws_restJson1ListPermissionVersionsCommand: (input: ListPermissionVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
42
44
  export declare const serializeAws_restJson1ListPrincipalsCommand: (input: ListPrincipalsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
45
  export declare const serializeAws_restJson1ListResourcesCommand: (input: ListResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
46
  export declare const serializeAws_restJson1ListResourceSharePermissionsCommand: (input: ListResourceSharePermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -63,6 +65,7 @@ export declare const deserializeAws_restJson1GetResourceShareInvitationsCommand:
63
65
  export declare const deserializeAws_restJson1GetResourceSharesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourceSharesCommandOutput>;
64
66
  export declare const deserializeAws_restJson1ListPendingInvitationResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPendingInvitationResourcesCommandOutput>;
65
67
  export declare const deserializeAws_restJson1ListPermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPermissionsCommandOutput>;
68
+ export declare const deserializeAws_restJson1ListPermissionVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPermissionVersionsCommandOutput>;
66
69
  export declare const deserializeAws_restJson1ListPrincipalsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListPrincipalsCommandOutput>;
67
70
  export declare const deserializeAws_restJson1ListResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListResourcesCommandOutput>;
68
71
  export declare const deserializeAws_restJson1ListResourceSharePermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListResourceSharePermissionsCommandOutput>;
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.47.1",
4
+ "version": "3.50.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,41 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.47.1",
22
- "@aws-sdk/config-resolver": "3.47.1",
23
- "@aws-sdk/credential-provider-node": "3.47.1",
24
- "@aws-sdk/fetch-http-handler": "3.47.1",
25
- "@aws-sdk/hash-node": "3.47.1",
26
- "@aws-sdk/invalid-dependency": "3.47.1",
27
- "@aws-sdk/middleware-content-length": "3.47.1",
28
- "@aws-sdk/middleware-host-header": "3.47.1",
29
- "@aws-sdk/middleware-logger": "3.47.1",
30
- "@aws-sdk/middleware-retry": "3.47.1",
31
- "@aws-sdk/middleware-serde": "3.47.1",
32
- "@aws-sdk/middleware-signing": "3.47.1",
33
- "@aws-sdk/middleware-stack": "3.47.1",
34
- "@aws-sdk/middleware-user-agent": "3.47.1",
35
- "@aws-sdk/node-config-provider": "3.47.1",
36
- "@aws-sdk/node-http-handler": "3.47.1",
37
- "@aws-sdk/protocol-http": "3.47.1",
38
- "@aws-sdk/smithy-client": "3.47.1",
39
- "@aws-sdk/types": "3.47.1",
40
- "@aws-sdk/url-parser": "3.47.1",
41
- "@aws-sdk/util-base64-browser": "3.47.1",
42
- "@aws-sdk/util-base64-node": "3.47.1",
43
- "@aws-sdk/util-body-length-browser": "3.47.1",
44
- "@aws-sdk/util-body-length-node": "3.47.1",
45
- "@aws-sdk/util-defaults-mode-browser": "3.47.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.47.1",
47
- "@aws-sdk/util-user-agent-browser": "3.47.1",
48
- "@aws-sdk/util-user-agent-node": "3.47.1",
49
- "@aws-sdk/util-utf8-browser": "3.47.1",
50
- "@aws-sdk/util-utf8-node": "3.47.1",
21
+ "@aws-sdk/client-sts": "3.50.0",
22
+ "@aws-sdk/config-resolver": "3.50.0",
23
+ "@aws-sdk/credential-provider-node": "3.50.0",
24
+ "@aws-sdk/fetch-http-handler": "3.50.0",
25
+ "@aws-sdk/hash-node": "3.50.0",
26
+ "@aws-sdk/invalid-dependency": "3.50.0",
27
+ "@aws-sdk/middleware-content-length": "3.50.0",
28
+ "@aws-sdk/middleware-host-header": "3.50.0",
29
+ "@aws-sdk/middleware-logger": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.50.0",
31
+ "@aws-sdk/middleware-serde": "3.50.0",
32
+ "@aws-sdk/middleware-signing": "3.50.0",
33
+ "@aws-sdk/middleware-stack": "3.50.0",
34
+ "@aws-sdk/middleware-user-agent": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.50.0",
36
+ "@aws-sdk/node-http-handler": "3.50.0",
37
+ "@aws-sdk/protocol-http": "3.50.0",
38
+ "@aws-sdk/smithy-client": "3.50.0",
39
+ "@aws-sdk/types": "3.50.0",
40
+ "@aws-sdk/url-parser": "3.50.0",
41
+ "@aws-sdk/util-base64-browser": "3.49.0",
42
+ "@aws-sdk/util-base64-node": "3.49.0",
43
+ "@aws-sdk/util-body-length-browser": "3.49.0",
44
+ "@aws-sdk/util-body-length-node": "3.49.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.50.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.50.0",
49
+ "@aws-sdk/util-utf8-browser": "3.49.0",
50
+ "@aws-sdk/util-utf8-node": "3.49.0",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
- "@types/node": "^12.7.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.49.0",
55
+ "@tsconfig/recommended": "1.0.1",
56
+ "@types/node": "^12.7.5",
57
+ "concurrently": "7.0.0",
58
+ "downlevel-dts": "0.7.0",
59
+ "rimraf": "3.0.2",
60
+ "typedoc": "0.19.2",
61
+ "typescript": "~4.3.5"
56
62
  },
57
63
  "engines": {
58
64
  "node": ">=12.0.0"
@@ -1,125 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
- import { AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput } from "./commands/AcceptResourceShareInvitationCommand";
3
- import { AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput } from "./commands/AssociateResourceShareCommand";
4
- import { AssociateResourceSharePermissionCommandInput, AssociateResourceSharePermissionCommandOutput } from "./commands/AssociateResourceSharePermissionCommand";
5
- import { CreateResourceShareCommandInput, CreateResourceShareCommandOutput } from "./commands/CreateResourceShareCommand";
6
- import { DeleteResourceShareCommandInput, DeleteResourceShareCommandOutput } from "./commands/DeleteResourceShareCommand";
7
- import { DisassociateResourceShareCommandInput, DisassociateResourceShareCommandOutput } from "./commands/DisassociateResourceShareCommand";
8
- import { DisassociateResourceSharePermissionCommandInput, DisassociateResourceSharePermissionCommandOutput } from "./commands/DisassociateResourceSharePermissionCommand";
9
- import { EnableSharingWithAwsOrganizationCommandInput, EnableSharingWithAwsOrganizationCommandOutput } from "./commands/EnableSharingWithAwsOrganizationCommand";
10
- import { GetPermissionCommandInput, GetPermissionCommandOutput } from "./commands/GetPermissionCommand";
11
- import { GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput } from "./commands/GetResourcePoliciesCommand";
12
- import { GetResourceShareAssociationsCommandInput, GetResourceShareAssociationsCommandOutput } from "./commands/GetResourceShareAssociationsCommand";
13
- import { GetResourceShareInvitationsCommandInput, GetResourceShareInvitationsCommandOutput } from "./commands/GetResourceShareInvitationsCommand";
14
- import { GetResourceSharesCommandInput, GetResourceSharesCommandOutput } from "./commands/GetResourceSharesCommand";
15
- import { ListPendingInvitationResourcesCommandInput, ListPendingInvitationResourcesCommandOutput } from "./commands/ListPendingInvitationResourcesCommand";
16
- import { ListPermissionsCommandInput, ListPermissionsCommandOutput } from "./commands/ListPermissionsCommand";
17
- import { ListPrincipalsCommandInput, ListPrincipalsCommandOutput } from "./commands/ListPrincipalsCommand";
18
- import { ListResourcesCommandInput, ListResourcesCommandOutput } from "./commands/ListResourcesCommand";
19
- import { ListResourceSharePermissionsCommandInput, ListResourceSharePermissionsCommandOutput } from "./commands/ListResourceSharePermissionsCommand";
20
- import { ListResourceTypesCommandInput, ListResourceTypesCommandOutput } from "./commands/ListResourceTypesCommand";
21
- import { PromoteResourceShareCreatedFromPolicyCommandInput, PromoteResourceShareCreatedFromPolicyCommandOutput } from "./commands/PromoteResourceShareCreatedFromPolicyCommand";
22
- import { RejectResourceShareInvitationCommandInput, RejectResourceShareInvitationCommandOutput } from "./commands/RejectResourceShareInvitationCommand";
23
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
25
- import { UpdateResourceShareCommandInput, UpdateResourceShareCommandOutput } from "./commands/UpdateResourceShareCommand";
26
- import { RAMClient } from "./RAMClient";
27
-
28
- export declare class RAM extends RAMClient {
29
-
30
- acceptResourceShareInvitation(args: AcceptResourceShareInvitationCommandInput, options?: __HttpHandlerOptions): Promise<AcceptResourceShareInvitationCommandOutput>;
31
- acceptResourceShareInvitation(args: AcceptResourceShareInvitationCommandInput, cb: (err: any, data?: AcceptResourceShareInvitationCommandOutput) => void): void;
32
- acceptResourceShareInvitation(args: AcceptResourceShareInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptResourceShareInvitationCommandOutput) => void): void;
33
-
34
- associateResourceShare(args: AssociateResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<AssociateResourceShareCommandOutput>;
35
- associateResourceShare(args: AssociateResourceShareCommandInput, cb: (err: any, data?: AssociateResourceShareCommandOutput) => void): void;
36
- associateResourceShare(args: AssociateResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateResourceShareCommandOutput) => void): void;
37
-
38
- associateResourceSharePermission(args: AssociateResourceSharePermissionCommandInput, options?: __HttpHandlerOptions): Promise<AssociateResourceSharePermissionCommandOutput>;
39
- associateResourceSharePermission(args: AssociateResourceSharePermissionCommandInput, cb: (err: any, data?: AssociateResourceSharePermissionCommandOutput) => void): void;
40
- associateResourceSharePermission(args: AssociateResourceSharePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateResourceSharePermissionCommandOutput) => void): void;
41
-
42
- createResourceShare(args: CreateResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<CreateResourceShareCommandOutput>;
43
- createResourceShare(args: CreateResourceShareCommandInput, cb: (err: any, data?: CreateResourceShareCommandOutput) => void): void;
44
- createResourceShare(args: CreateResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateResourceShareCommandOutput) => void): void;
45
-
46
- deleteResourceShare(args: DeleteResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourceShareCommandOutput>;
47
- deleteResourceShare(args: DeleteResourceShareCommandInput, cb: (err: any, data?: DeleteResourceShareCommandOutput) => void): void;
48
- deleteResourceShare(args: DeleteResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourceShareCommandOutput) => void): void;
49
-
50
- disassociateResourceShare(args: DisassociateResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateResourceShareCommandOutput>;
51
- disassociateResourceShare(args: DisassociateResourceShareCommandInput, cb: (err: any, data?: DisassociateResourceShareCommandOutput) => void): void;
52
- disassociateResourceShare(args: DisassociateResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateResourceShareCommandOutput) => void): void;
53
-
54
- disassociateResourceSharePermission(args: DisassociateResourceSharePermissionCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateResourceSharePermissionCommandOutput>;
55
- disassociateResourceSharePermission(args: DisassociateResourceSharePermissionCommandInput, cb: (err: any, data?: DisassociateResourceSharePermissionCommandOutput) => void): void;
56
- disassociateResourceSharePermission(args: DisassociateResourceSharePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateResourceSharePermissionCommandOutput) => void): void;
57
-
58
- enableSharingWithAwsOrganization(args: EnableSharingWithAwsOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<EnableSharingWithAwsOrganizationCommandOutput>;
59
- enableSharingWithAwsOrganization(args: EnableSharingWithAwsOrganizationCommandInput, cb: (err: any, data?: EnableSharingWithAwsOrganizationCommandOutput) => void): void;
60
- enableSharingWithAwsOrganization(args: EnableSharingWithAwsOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableSharingWithAwsOrganizationCommandOutput) => void): void;
61
-
62
- getPermission(args: GetPermissionCommandInput, options?: __HttpHandlerOptions): Promise<GetPermissionCommandOutput>;
63
- getPermission(args: GetPermissionCommandInput, cb: (err: any, data?: GetPermissionCommandOutput) => void): void;
64
- getPermission(args: GetPermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPermissionCommandOutput) => void): void;
65
-
66
- getResourcePolicies(args: GetResourcePoliciesCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePoliciesCommandOutput>;
67
- getResourcePolicies(args: GetResourcePoliciesCommandInput, cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void): void;
68
- getResourcePolicies(args: GetResourcePoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void): void;
69
-
70
- getResourceShareAssociations(args: GetResourceShareAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceShareAssociationsCommandOutput>;
71
- getResourceShareAssociations(args: GetResourceShareAssociationsCommandInput, cb: (err: any, data?: GetResourceShareAssociationsCommandOutput) => void): void;
72
- getResourceShareAssociations(args: GetResourceShareAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceShareAssociationsCommandOutput) => void): void;
73
-
74
- getResourceShareInvitations(args: GetResourceShareInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceShareInvitationsCommandOutput>;
75
- getResourceShareInvitations(args: GetResourceShareInvitationsCommandInput, cb: (err: any, data?: GetResourceShareInvitationsCommandOutput) => void): void;
76
- getResourceShareInvitations(args: GetResourceShareInvitationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceShareInvitationsCommandOutput) => void): void;
77
-
78
- getResourceShares(args: GetResourceSharesCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceSharesCommandOutput>;
79
- getResourceShares(args: GetResourceSharesCommandInput, cb: (err: any, data?: GetResourceSharesCommandOutput) => void): void;
80
- getResourceShares(args: GetResourceSharesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceSharesCommandOutput) => void): void;
81
-
82
- listPendingInvitationResources(args: ListPendingInvitationResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListPendingInvitationResourcesCommandOutput>;
83
- listPendingInvitationResources(args: ListPendingInvitationResourcesCommandInput, cb: (err: any, data?: ListPendingInvitationResourcesCommandOutput) => void): void;
84
- listPendingInvitationResources(args: ListPendingInvitationResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPendingInvitationResourcesCommandOutput) => void): void;
85
-
86
- listPermissions(args: ListPermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPermissionsCommandOutput>;
87
- listPermissions(args: ListPermissionsCommandInput, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
88
- listPermissions(args: ListPermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPermissionsCommandOutput) => void): void;
89
-
90
- listPrincipals(args: ListPrincipalsCommandInput, options?: __HttpHandlerOptions): Promise<ListPrincipalsCommandOutput>;
91
- listPrincipals(args: ListPrincipalsCommandInput, cb: (err: any, data?: ListPrincipalsCommandOutput) => void): void;
92
- listPrincipals(args: ListPrincipalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPrincipalsCommandOutput) => void): void;
93
-
94
- listResources(args: ListResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourcesCommandOutput>;
95
- listResources(args: ListResourcesCommandInput, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
96
- listResources(args: ListResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourcesCommandOutput) => void): void;
97
-
98
- listResourceSharePermissions(args: ListResourceSharePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<ListResourceSharePermissionsCommandOutput>;
99
- listResourceSharePermissions(args: ListResourceSharePermissionsCommandInput, cb: (err: any, data?: ListResourceSharePermissionsCommandOutput) => void): void;
100
- listResourceSharePermissions(args: ListResourceSharePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceSharePermissionsCommandOutput) => void): void;
101
-
102
- listResourceTypes(args: ListResourceTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListResourceTypesCommandOutput>;
103
- listResourceTypes(args: ListResourceTypesCommandInput, cb: (err: any, data?: ListResourceTypesCommandOutput) => void): void;
104
- listResourceTypes(args: ListResourceTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceTypesCommandOutput) => void): void;
105
-
106
- promoteResourceShareCreatedFromPolicy(args: PromoteResourceShareCreatedFromPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PromoteResourceShareCreatedFromPolicyCommandOutput>;
107
- promoteResourceShareCreatedFromPolicy(args: PromoteResourceShareCreatedFromPolicyCommandInput, cb: (err: any, data?: PromoteResourceShareCreatedFromPolicyCommandOutput) => void): void;
108
- promoteResourceShareCreatedFromPolicy(args: PromoteResourceShareCreatedFromPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PromoteResourceShareCreatedFromPolicyCommandOutput) => void): void;
109
-
110
- rejectResourceShareInvitation(args: RejectResourceShareInvitationCommandInput, options?: __HttpHandlerOptions): Promise<RejectResourceShareInvitationCommandOutput>;
111
- rejectResourceShareInvitation(args: RejectResourceShareInvitationCommandInput, cb: (err: any, data?: RejectResourceShareInvitationCommandOutput) => void): void;
112
- rejectResourceShareInvitation(args: RejectResourceShareInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RejectResourceShareInvitationCommandOutput) => void): void;
113
-
114
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
115
- tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
116
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
117
-
118
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
119
- untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
120
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
121
-
122
- updateResourceShare(args: UpdateResourceShareCommandInput, options?: __HttpHandlerOptions): Promise<UpdateResourceShareCommandOutput>;
123
- updateResourceShare(args: UpdateResourceShareCommandInput, cb: (err: any, data?: UpdateResourceShareCommandOutput) => void): void;
124
- updateResourceShare(args: UpdateResourceShareCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResourceShareCommandOutput) => void): void;
125
- }