@aws-sdk/client-ram 3.315.0 → 3.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -5
- package/dist-cjs/RAM.js +47 -350
- package/dist-cjs/commands/CreatePermissionCommand.js +45 -0
- package/dist-cjs/commands/CreatePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionCommand.js +45 -0
- package/dist-cjs/commands/DeletePermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/ListPermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +45 -0
- package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +45 -0
- package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +45 -0
- package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +45 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +104 -1
- package/dist-cjs/pagination/ListPermissionAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListReplacePermissionAssociationsWorkPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +976 -129
- package/dist-es/RAM.js +47 -350
- package/dist-es/commands/CreatePermissionCommand.js +41 -0
- package/dist-es/commands/CreatePermissionVersionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionCommand.js +41 -0
- package/dist-es/commands/DeletePermissionVersionCommand.js +41 -0
- package/dist-es/commands/ListPermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +41 -0
- package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +41 -0
- package/dist-es/commands/ReplacePermissionAssociationsCommand.js +41 -0
- package/dist-es/commands/SetDefaultPermissionVersionCommand.js +41 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +97 -0
- package/dist-es/pagination/ListPermissionAssociationsPaginator.js +25 -0
- package/dist-es/pagination/ListReplacePermissionAssociationsWorkPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +949 -121
- package/dist-types/RAM.d.ts +114 -113
- package/dist-types/RAMClient.d.ts +15 -7
- package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/AssociateResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +9 -7
- package/dist-types/commands/CreatePermissionCommand.d.ts +109 -0
- package/dist-types/commands/CreatePermissionVersionCommand.d.ts +106 -0
- package/dist-types/commands/CreateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DeletePermissionCommand.d.ts +91 -0
- package/dist-types/commands/DeletePermissionVersionCommand.d.ts +96 -0
- package/dist-types/commands/DeleteResourceShareCommand.d.ts +19 -14
- package/dist-types/commands/DisassociateResourceShareCommand.d.ts +19 -13
- package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +14 -11
- package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +14 -11
- package/dist-types/commands/GetPermissionCommand.d.ts +9 -7
- package/dist-types/commands/GetResourcePoliciesCommand.d.ts +10 -6
- package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +13 -8
- package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +14 -8
- package/dist-types/commands/GetResourceSharesCommand.d.ts +11 -6
- package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +15 -9
- package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +91 -0
- package/dist-types/commands/ListPermissionVersionsCommand.d.ts +11 -7
- package/dist-types/commands/ListPermissionsCommand.d.ts +9 -5
- package/dist-types/commands/ListPrincipalsCommand.d.ts +10 -6
- package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +84 -0
- package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +11 -7
- package/dist-types/commands/ListResourceTypesCommand.d.ts +7 -4
- package/dist-types/commands/ListResourcesCommand.d.ts +11 -7
- package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +119 -0
- package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +34 -14
- package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +16 -12
- package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +108 -0
- package/dist-types/commands/SetDefaultPermissionVersionCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +17 -11
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -5
- package/dist-types/commands/UpdateResourceShareCommand.d.ts +13 -11
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1286 -195
- package/dist-types/pagination/ListPermissionAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/RAM.d.ts +167 -1
- package/dist-types/ts3.4/RAMClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreatePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeletePermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListPermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ReplacePermissionAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SetDefaultPermissionVersionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +234 -19
- package/dist-types/ts3.4/pagination/ListPermissionAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReplacePermissionAssociationsWorkPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -11,11 +11,10 @@ AWS SDK for JavaScript RAM Client for Node.js, Browser and React Native.
|
|
|
11
11
|
|
|
12
12
|
<p>This is the <i>Resource Access Manager API Reference</i>. This documentation provides
|
|
13
13
|
descriptions and syntax for each of the actions and data types in RAM. RAM is a
|
|
14
|
-
service that helps you securely share your Amazon Web Services resources
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
with
|
|
18
|
-
can also share resources with individual Identity and Access Management (IAM) roles an users. </p>
|
|
14
|
+
service that helps you securely share your Amazon Web Services resources to other Amazon Web Services accounts. If
|
|
15
|
+
you use Organizations to manage your accounts, then you can share your resources with your
|
|
16
|
+
entire organization or to organizational units (OUs). For supported resource types, you
|
|
17
|
+
can also share resources with individual Identity and Access Management (IAM) roles and users. </p>
|
|
19
18
|
<p>To learn more about RAM, see the following resources:</p>
|
|
20
19
|
<ul>
|
|
21
20
|
<li>
|
|
@@ -249,6 +248,22 @@ AssociateResourceSharePermission
|
|
|
249
248
|
|
|
250
249
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/associateresourcesharepermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/associateresourcesharepermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/associateresourcesharepermissioncommandoutput.html)
|
|
251
250
|
|
|
251
|
+
</details>
|
|
252
|
+
<details>
|
|
253
|
+
<summary>
|
|
254
|
+
CreatePermission
|
|
255
|
+
</summary>
|
|
256
|
+
|
|
257
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/createpermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createpermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createpermissioncommandoutput.html)
|
|
258
|
+
|
|
259
|
+
</details>
|
|
260
|
+
<details>
|
|
261
|
+
<summary>
|
|
262
|
+
CreatePermissionVersion
|
|
263
|
+
</summary>
|
|
264
|
+
|
|
265
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/createpermissionversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createpermissionversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createpermissionversioncommandoutput.html)
|
|
266
|
+
|
|
252
267
|
</details>
|
|
253
268
|
<details>
|
|
254
269
|
<summary>
|
|
@@ -257,6 +272,22 @@ CreateResourceShare
|
|
|
257
272
|
|
|
258
273
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/createresourcesharecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createresourcesharecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/createresourcesharecommandoutput.html)
|
|
259
274
|
|
|
275
|
+
</details>
|
|
276
|
+
<details>
|
|
277
|
+
<summary>
|
|
278
|
+
DeletePermission
|
|
279
|
+
</summary>
|
|
280
|
+
|
|
281
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/deletepermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/deletepermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/deletepermissioncommandoutput.html)
|
|
282
|
+
|
|
283
|
+
</details>
|
|
284
|
+
<details>
|
|
285
|
+
<summary>
|
|
286
|
+
DeletePermissionVersion
|
|
287
|
+
</summary>
|
|
288
|
+
|
|
289
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/deletepermissionversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/deletepermissionversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/deletepermissionversioncommandoutput.html)
|
|
290
|
+
|
|
260
291
|
</details>
|
|
261
292
|
<details>
|
|
262
293
|
<summary>
|
|
@@ -337,6 +368,14 @@ ListPendingInvitationResources
|
|
|
337
368
|
|
|
338
369
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/listpendinginvitationresourcescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listpendinginvitationresourcescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listpendinginvitationresourcescommandoutput.html)
|
|
339
370
|
|
|
371
|
+
</details>
|
|
372
|
+
<details>
|
|
373
|
+
<summary>
|
|
374
|
+
ListPermissionAssociations
|
|
375
|
+
</summary>
|
|
376
|
+
|
|
377
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/listpermissionassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listpermissionassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listpermissionassociationscommandoutput.html)
|
|
378
|
+
|
|
340
379
|
</details>
|
|
341
380
|
<details>
|
|
342
381
|
<summary>
|
|
@@ -361,6 +400,14 @@ ListPrincipals
|
|
|
361
400
|
|
|
362
401
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/listprincipalscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listprincipalscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listprincipalscommandoutput.html)
|
|
363
402
|
|
|
403
|
+
</details>
|
|
404
|
+
<details>
|
|
405
|
+
<summary>
|
|
406
|
+
ListReplacePermissionAssociationsWork
|
|
407
|
+
</summary>
|
|
408
|
+
|
|
409
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/listreplacepermissionassociationsworkcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listreplacepermissionassociationsworkcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listreplacepermissionassociationsworkcommandoutput.html)
|
|
410
|
+
|
|
364
411
|
</details>
|
|
365
412
|
<details>
|
|
366
413
|
<summary>
|
|
@@ -385,6 +432,14 @@ ListResourceTypes
|
|
|
385
432
|
|
|
386
433
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/listresourcetypescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listresourcetypescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/listresourcetypescommandoutput.html)
|
|
387
434
|
|
|
435
|
+
</details>
|
|
436
|
+
<details>
|
|
437
|
+
<summary>
|
|
438
|
+
PromotePermissionCreatedFromPolicy
|
|
439
|
+
</summary>
|
|
440
|
+
|
|
441
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/promotepermissioncreatedfrompolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/promotepermissioncreatedfrompolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/promotepermissioncreatedfrompolicycommandoutput.html)
|
|
442
|
+
|
|
388
443
|
</details>
|
|
389
444
|
<details>
|
|
390
445
|
<summary>
|
|
@@ -401,6 +456,22 @@ RejectResourceShareInvitation
|
|
|
401
456
|
|
|
402
457
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/rejectresourceshareinvitationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/rejectresourceshareinvitationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/rejectresourceshareinvitationcommandoutput.html)
|
|
403
458
|
|
|
459
|
+
</details>
|
|
460
|
+
<details>
|
|
461
|
+
<summary>
|
|
462
|
+
ReplacePermissionAssociations
|
|
463
|
+
</summary>
|
|
464
|
+
|
|
465
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/replacepermissionassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/replacepermissionassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/replacepermissionassociationscommandoutput.html)
|
|
466
|
+
|
|
467
|
+
</details>
|
|
468
|
+
<details>
|
|
469
|
+
<summary>
|
|
470
|
+
SetDefaultPermissionVersion
|
|
471
|
+
</summary>
|
|
472
|
+
|
|
473
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/classes/setdefaultpermissionversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/setdefaultpermissionversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ram/interfaces/setdefaultpermissionversioncommandoutput.html)
|
|
474
|
+
|
|
404
475
|
</details>
|
|
405
476
|
<details>
|
|
406
477
|
<summary>
|
package/dist-cjs/RAM.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RAM = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AcceptResourceShareInvitationCommand_1 = require("./commands/AcceptResourceShareInvitationCommand");
|
|
5
6
|
const AssociateResourceShareCommand_1 = require("./commands/AssociateResourceShareCommand");
|
|
6
7
|
const AssociateResourceSharePermissionCommand_1 = require("./commands/AssociateResourceSharePermissionCommand");
|
|
8
|
+
const CreatePermissionCommand_1 = require("./commands/CreatePermissionCommand");
|
|
9
|
+
const CreatePermissionVersionCommand_1 = require("./commands/CreatePermissionVersionCommand");
|
|
7
10
|
const CreateResourceShareCommand_1 = require("./commands/CreateResourceShareCommand");
|
|
11
|
+
const DeletePermissionCommand_1 = require("./commands/DeletePermissionCommand");
|
|
12
|
+
const DeletePermissionVersionCommand_1 = require("./commands/DeletePermissionVersionCommand");
|
|
8
13
|
const DeleteResourceShareCommand_1 = require("./commands/DeleteResourceShareCommand");
|
|
9
14
|
const DisassociateResourceShareCommand_1 = require("./commands/DisassociateResourceShareCommand");
|
|
10
15
|
const DisassociateResourceSharePermissionCommand_1 = require("./commands/DisassociateResourceSharePermissionCommand");
|
|
@@ -15,368 +20,60 @@ const GetResourceShareAssociationsCommand_1 = require("./commands/GetResourceSha
|
|
|
15
20
|
const GetResourceShareInvitationsCommand_1 = require("./commands/GetResourceShareInvitationsCommand");
|
|
16
21
|
const GetResourceSharesCommand_1 = require("./commands/GetResourceSharesCommand");
|
|
17
22
|
const ListPendingInvitationResourcesCommand_1 = require("./commands/ListPendingInvitationResourcesCommand");
|
|
23
|
+
const ListPermissionAssociationsCommand_1 = require("./commands/ListPermissionAssociationsCommand");
|
|
18
24
|
const ListPermissionsCommand_1 = require("./commands/ListPermissionsCommand");
|
|
19
25
|
const ListPermissionVersionsCommand_1 = require("./commands/ListPermissionVersionsCommand");
|
|
20
26
|
const ListPrincipalsCommand_1 = require("./commands/ListPrincipalsCommand");
|
|
27
|
+
const ListReplacePermissionAssociationsWorkCommand_1 = require("./commands/ListReplacePermissionAssociationsWorkCommand");
|
|
21
28
|
const ListResourcesCommand_1 = require("./commands/ListResourcesCommand");
|
|
22
29
|
const ListResourceSharePermissionsCommand_1 = require("./commands/ListResourceSharePermissionsCommand");
|
|
23
30
|
const ListResourceTypesCommand_1 = require("./commands/ListResourceTypesCommand");
|
|
31
|
+
const PromotePermissionCreatedFromPolicyCommand_1 = require("./commands/PromotePermissionCreatedFromPolicyCommand");
|
|
24
32
|
const PromoteResourceShareCreatedFromPolicyCommand_1 = require("./commands/PromoteResourceShareCreatedFromPolicyCommand");
|
|
25
33
|
const RejectResourceShareInvitationCommand_1 = require("./commands/RejectResourceShareInvitationCommand");
|
|
34
|
+
const ReplacePermissionAssociationsCommand_1 = require("./commands/ReplacePermissionAssociationsCommand");
|
|
35
|
+
const SetDefaultPermissionVersionCommand_1 = require("./commands/SetDefaultPermissionVersionCommand");
|
|
26
36
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
27
37
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
28
38
|
const UpdateResourceShareCommand_1 = require("./commands/UpdateResourceShareCommand");
|
|
29
39
|
const RAMClient_1 = require("./RAMClient");
|
|
40
|
+
const commands = {
|
|
41
|
+
AcceptResourceShareInvitationCommand: AcceptResourceShareInvitationCommand_1.AcceptResourceShareInvitationCommand,
|
|
42
|
+
AssociateResourceShareCommand: AssociateResourceShareCommand_1.AssociateResourceShareCommand,
|
|
43
|
+
AssociateResourceSharePermissionCommand: AssociateResourceSharePermissionCommand_1.AssociateResourceSharePermissionCommand,
|
|
44
|
+
CreatePermissionCommand: CreatePermissionCommand_1.CreatePermissionCommand,
|
|
45
|
+
CreatePermissionVersionCommand: CreatePermissionVersionCommand_1.CreatePermissionVersionCommand,
|
|
46
|
+
CreateResourceShareCommand: CreateResourceShareCommand_1.CreateResourceShareCommand,
|
|
47
|
+
DeletePermissionCommand: DeletePermissionCommand_1.DeletePermissionCommand,
|
|
48
|
+
DeletePermissionVersionCommand: DeletePermissionVersionCommand_1.DeletePermissionVersionCommand,
|
|
49
|
+
DeleteResourceShareCommand: DeleteResourceShareCommand_1.DeleteResourceShareCommand,
|
|
50
|
+
DisassociateResourceShareCommand: DisassociateResourceShareCommand_1.DisassociateResourceShareCommand,
|
|
51
|
+
DisassociateResourceSharePermissionCommand: DisassociateResourceSharePermissionCommand_1.DisassociateResourceSharePermissionCommand,
|
|
52
|
+
EnableSharingWithAwsOrganizationCommand: EnableSharingWithAwsOrganizationCommand_1.EnableSharingWithAwsOrganizationCommand,
|
|
53
|
+
GetPermissionCommand: GetPermissionCommand_1.GetPermissionCommand,
|
|
54
|
+
GetResourcePoliciesCommand: GetResourcePoliciesCommand_1.GetResourcePoliciesCommand,
|
|
55
|
+
GetResourceShareAssociationsCommand: GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand,
|
|
56
|
+
GetResourceShareInvitationsCommand: GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand,
|
|
57
|
+
GetResourceSharesCommand: GetResourceSharesCommand_1.GetResourceSharesCommand,
|
|
58
|
+
ListPendingInvitationResourcesCommand: ListPendingInvitationResourcesCommand_1.ListPendingInvitationResourcesCommand,
|
|
59
|
+
ListPermissionAssociationsCommand: ListPermissionAssociationsCommand_1.ListPermissionAssociationsCommand,
|
|
60
|
+
ListPermissionsCommand: ListPermissionsCommand_1.ListPermissionsCommand,
|
|
61
|
+
ListPermissionVersionsCommand: ListPermissionVersionsCommand_1.ListPermissionVersionsCommand,
|
|
62
|
+
ListPrincipalsCommand: ListPrincipalsCommand_1.ListPrincipalsCommand,
|
|
63
|
+
ListReplacePermissionAssociationsWorkCommand: ListReplacePermissionAssociationsWorkCommand_1.ListReplacePermissionAssociationsWorkCommand,
|
|
64
|
+
ListResourcesCommand: ListResourcesCommand_1.ListResourcesCommand,
|
|
65
|
+
ListResourceSharePermissionsCommand: ListResourceSharePermissionsCommand_1.ListResourceSharePermissionsCommand,
|
|
66
|
+
ListResourceTypesCommand: ListResourceTypesCommand_1.ListResourceTypesCommand,
|
|
67
|
+
PromotePermissionCreatedFromPolicyCommand: PromotePermissionCreatedFromPolicyCommand_1.PromotePermissionCreatedFromPolicyCommand,
|
|
68
|
+
PromoteResourceShareCreatedFromPolicyCommand: PromoteResourceShareCreatedFromPolicyCommand_1.PromoteResourceShareCreatedFromPolicyCommand,
|
|
69
|
+
RejectResourceShareInvitationCommand: RejectResourceShareInvitationCommand_1.RejectResourceShareInvitationCommand,
|
|
70
|
+
ReplacePermissionAssociationsCommand: ReplacePermissionAssociationsCommand_1.ReplacePermissionAssociationsCommand,
|
|
71
|
+
SetDefaultPermissionVersionCommand: SetDefaultPermissionVersionCommand_1.SetDefaultPermissionVersionCommand,
|
|
72
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
73
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
74
|
+
UpdateResourceShareCommand: UpdateResourceShareCommand_1.UpdateResourceShareCommand,
|
|
75
|
+
};
|
|
30
76
|
class RAM extends RAMClient_1.RAMClient {
|
|
31
|
-
acceptResourceShareInvitation(args, optionsOrCb, cb) {
|
|
32
|
-
const command = new AcceptResourceShareInvitationCommand_1.AcceptResourceShareInvitationCommand(args);
|
|
33
|
-
if (typeof optionsOrCb === "function") {
|
|
34
|
-
this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
else if (typeof cb === "function") {
|
|
37
|
-
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
associateResourceShare(args, optionsOrCb, cb) {
|
|
46
|
-
const command = new AssociateResourceShareCommand_1.AssociateResourceShareCommand(args);
|
|
47
|
-
if (typeof optionsOrCb === "function") {
|
|
48
|
-
this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof cb === "function") {
|
|
51
|
-
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
associateResourceSharePermission(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new AssociateResourceSharePermissionCommand_1.AssociateResourceSharePermissionCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
createResourceShare(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new CreateResourceShareCommand_1.CreateResourceShareCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
deleteResourceShare(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new DeleteResourceShareCommand_1.DeleteResourceShareCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
disassociateResourceShare(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new DisassociateResourceShareCommand_1.DisassociateResourceShareCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
disassociateResourceSharePermission(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new DisassociateResourceSharePermissionCommand_1.DisassociateResourceSharePermissionCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
enableSharingWithAwsOrganization(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new EnableSharingWithAwsOrganizationCommand_1.EnableSharingWithAwsOrganizationCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
getPermission(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new GetPermissionCommand_1.GetPermissionCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
getResourcePolicies(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
getResourceShareAssociations(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new GetResourceShareAssociationsCommand_1.GetResourceShareAssociationsCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
getResourceShareInvitations(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new GetResourceShareInvitationsCommand_1.GetResourceShareInvitationsCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
getResourceShares(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new GetResourceSharesCommand_1.GetResourceSharesCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
listPendingInvitationResources(args, optionsOrCb, cb) {
|
|
214
|
-
const command = new ListPendingInvitationResourcesCommand_1.ListPendingInvitationResourcesCommand(args);
|
|
215
|
-
if (typeof optionsOrCb === "function") {
|
|
216
|
-
this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
else if (typeof cb === "function") {
|
|
219
|
-
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
221
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
return this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
listPermissions(args, optionsOrCb, cb) {
|
|
228
|
-
const command = new ListPermissionsCommand_1.ListPermissionsCommand(args);
|
|
229
|
-
if (typeof optionsOrCb === "function") {
|
|
230
|
-
this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
else if (typeof cb === "function") {
|
|
233
|
-
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
return this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
listPermissionVersions(args, optionsOrCb, cb) {
|
|
242
|
-
const command = new ListPermissionVersionsCommand_1.ListPermissionVersionsCommand(args);
|
|
243
|
-
if (typeof optionsOrCb === "function") {
|
|
244
|
-
this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
else if (typeof cb === "function") {
|
|
247
|
-
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
return this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
listPrincipals(args, optionsOrCb, cb) {
|
|
256
|
-
const command = new ListPrincipalsCommand_1.ListPrincipalsCommand(args);
|
|
257
|
-
if (typeof optionsOrCb === "function") {
|
|
258
|
-
this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
else if (typeof cb === "function") {
|
|
261
|
-
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
return this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
listResources(args, optionsOrCb, cb) {
|
|
270
|
-
const command = new ListResourcesCommand_1.ListResourcesCommand(args);
|
|
271
|
-
if (typeof optionsOrCb === "function") {
|
|
272
|
-
this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
277
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
return this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
listResourceSharePermissions(args, optionsOrCb, cb) {
|
|
284
|
-
const command = new ListResourceSharePermissionsCommand_1.ListResourceSharePermissionsCommand(args);
|
|
285
|
-
if (typeof optionsOrCb === "function") {
|
|
286
|
-
this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
else if (typeof cb === "function") {
|
|
289
|
-
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
291
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
return this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
listResourceTypes(args, optionsOrCb, cb) {
|
|
298
|
-
const command = new ListResourceTypesCommand_1.ListResourceTypesCommand(args);
|
|
299
|
-
if (typeof optionsOrCb === "function") {
|
|
300
|
-
this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
else if (typeof cb === "function") {
|
|
303
|
-
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
return this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
promoteResourceShareCreatedFromPolicy(args, optionsOrCb, cb) {
|
|
312
|
-
const command = new PromoteResourceShareCreatedFromPolicyCommand_1.PromoteResourceShareCreatedFromPolicyCommand(args);
|
|
313
|
-
if (typeof optionsOrCb === "function") {
|
|
314
|
-
this.send(command, optionsOrCb);
|
|
315
|
-
}
|
|
316
|
-
else if (typeof cb === "function") {
|
|
317
|
-
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
return this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
rejectResourceShareInvitation(args, optionsOrCb, cb) {
|
|
326
|
-
const command = new RejectResourceShareInvitationCommand_1.RejectResourceShareInvitationCommand(args);
|
|
327
|
-
if (typeof optionsOrCb === "function") {
|
|
328
|
-
this.send(command, optionsOrCb);
|
|
329
|
-
}
|
|
330
|
-
else if (typeof cb === "function") {
|
|
331
|
-
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
333
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
return this.send(command, optionsOrCb);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
tagResource(args, optionsOrCb, cb) {
|
|
340
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
341
|
-
if (typeof optionsOrCb === "function") {
|
|
342
|
-
this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
else if (typeof cb === "function") {
|
|
345
|
-
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
return this.send(command, optionsOrCb);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
untagResource(args, optionsOrCb, cb) {
|
|
354
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
355
|
-
if (typeof optionsOrCb === "function") {
|
|
356
|
-
this.send(command, optionsOrCb);
|
|
357
|
-
}
|
|
358
|
-
else if (typeof cb === "function") {
|
|
359
|
-
if (typeof optionsOrCb !== "object")
|
|
360
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
361
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
return this.send(command, optionsOrCb);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
updateResourceShare(args, optionsOrCb, cb) {
|
|
368
|
-
const command = new UpdateResourceShareCommand_1.UpdateResourceShareCommand(args);
|
|
369
|
-
if (typeof optionsOrCb === "function") {
|
|
370
|
-
this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
else if (typeof cb === "function") {
|
|
373
|
-
if (typeof optionsOrCb !== "object")
|
|
374
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
375
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return this.send(command, optionsOrCb);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
77
|
}
|
|
382
78
|
exports.RAM = RAM;
|
|
79
|
+
(0, smithy_client_1.createAggregatedClient)(commands, RAM);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePermissionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreatePermissionCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePermissionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RAMClient";
|
|
27
|
+
const commandName = "CreatePermissionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_CreatePermissionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_CreatePermissionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreatePermissionCommand = CreatePermissionCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePermissionVersionCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreatePermissionVersionCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePermissionVersionCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RAMClient";
|
|
27
|
+
const commandName = "CreatePermissionVersionCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_CreatePermissionVersionCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_CreatePermissionVersionCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CreatePermissionVersionCommand = CreatePermissionVersionCommand;
|