@aws-sdk/client-ram 3.478.0 → 3.481.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 (141) hide show
  1. package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +18 -41
  2. package/dist-cjs/commands/AssociateResourceShareCommand.js +18 -41
  3. package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +18 -41
  4. package/dist-cjs/commands/CreatePermissionCommand.js +18 -41
  5. package/dist-cjs/commands/CreatePermissionVersionCommand.js +18 -41
  6. package/dist-cjs/commands/CreateResourceShareCommand.js +18 -41
  7. package/dist-cjs/commands/DeletePermissionCommand.js +18 -41
  8. package/dist-cjs/commands/DeletePermissionVersionCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteResourceShareCommand.js +18 -41
  10. package/dist-cjs/commands/DisassociateResourceShareCommand.js +18 -41
  11. package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +18 -41
  12. package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +18 -41
  13. package/dist-cjs/commands/GetPermissionCommand.js +18 -41
  14. package/dist-cjs/commands/GetResourcePoliciesCommand.js +18 -41
  15. package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +18 -41
  16. package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +18 -41
  17. package/dist-cjs/commands/GetResourceSharesCommand.js +18 -41
  18. package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +18 -41
  19. package/dist-cjs/commands/ListPermissionAssociationsCommand.js +18 -41
  20. package/dist-cjs/commands/ListPermissionVersionsCommand.js +18 -41
  21. package/dist-cjs/commands/ListPermissionsCommand.js +18 -41
  22. package/dist-cjs/commands/ListPrincipalsCommand.js +18 -41
  23. package/dist-cjs/commands/ListReplacePermissionAssociationsWorkCommand.js +18 -41
  24. package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +18 -41
  25. package/dist-cjs/commands/ListResourceTypesCommand.js +18 -41
  26. package/dist-cjs/commands/ListResourcesCommand.js +18 -41
  27. package/dist-cjs/commands/PromotePermissionCreatedFromPolicyCommand.js +18 -41
  28. package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +18 -41
  29. package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +18 -41
  30. package/dist-cjs/commands/ReplacePermissionAssociationsCommand.js +18 -41
  31. package/dist-cjs/commands/SetDefaultPermissionVersionCommand.js +18 -41
  32. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  33. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  34. package/dist-cjs/commands/UpdateResourceShareCommand.js +18 -41
  35. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  36. package/dist-es/commands/AcceptResourceShareInvitationCommand.js +18 -41
  37. package/dist-es/commands/AssociateResourceShareCommand.js +18 -41
  38. package/dist-es/commands/AssociateResourceSharePermissionCommand.js +18 -41
  39. package/dist-es/commands/CreatePermissionCommand.js +18 -41
  40. package/dist-es/commands/CreatePermissionVersionCommand.js +18 -41
  41. package/dist-es/commands/CreateResourceShareCommand.js +18 -41
  42. package/dist-es/commands/DeletePermissionCommand.js +18 -41
  43. package/dist-es/commands/DeletePermissionVersionCommand.js +18 -41
  44. package/dist-es/commands/DeleteResourceShareCommand.js +18 -41
  45. package/dist-es/commands/DisassociateResourceShareCommand.js +18 -41
  46. package/dist-es/commands/DisassociateResourceSharePermissionCommand.js +18 -41
  47. package/dist-es/commands/EnableSharingWithAwsOrganizationCommand.js +18 -41
  48. package/dist-es/commands/GetPermissionCommand.js +18 -41
  49. package/dist-es/commands/GetResourcePoliciesCommand.js +18 -41
  50. package/dist-es/commands/GetResourceShareAssociationsCommand.js +18 -41
  51. package/dist-es/commands/GetResourceShareInvitationsCommand.js +18 -41
  52. package/dist-es/commands/GetResourceSharesCommand.js +18 -41
  53. package/dist-es/commands/ListPendingInvitationResourcesCommand.js +18 -41
  54. package/dist-es/commands/ListPermissionAssociationsCommand.js +18 -41
  55. package/dist-es/commands/ListPermissionVersionsCommand.js +18 -41
  56. package/dist-es/commands/ListPermissionsCommand.js +18 -41
  57. package/dist-es/commands/ListPrincipalsCommand.js +18 -41
  58. package/dist-es/commands/ListReplacePermissionAssociationsWorkCommand.js +18 -41
  59. package/dist-es/commands/ListResourceSharePermissionsCommand.js +18 -41
  60. package/dist-es/commands/ListResourceTypesCommand.js +18 -41
  61. package/dist-es/commands/ListResourcesCommand.js +18 -41
  62. package/dist-es/commands/PromotePermissionCreatedFromPolicyCommand.js +18 -41
  63. package/dist-es/commands/PromoteResourceShareCreatedFromPolicyCommand.js +18 -41
  64. package/dist-es/commands/RejectResourceShareInvitationCommand.js +18 -41
  65. package/dist-es/commands/ReplacePermissionAssociationsCommand.js +18 -41
  66. package/dist-es/commands/SetDefaultPermissionVersionCommand.js +18 -41
  67. package/dist-es/commands/TagResourceCommand.js +18 -41
  68. package/dist-es/commands/UntagResourceCommand.js +18 -41
  69. package/dist-es/commands/UpdateResourceShareCommand.js +18 -41
  70. package/dist-es/endpoint/EndpointParameters.js +6 -0
  71. package/dist-types/commands/AcceptResourceShareInvitationCommand.d.ts +6 -21
  72. package/dist-types/commands/AssociateResourceShareCommand.d.ts +6 -21
  73. package/dist-types/commands/AssociateResourceSharePermissionCommand.d.ts +6 -21
  74. package/dist-types/commands/CreatePermissionCommand.d.ts +6 -21
  75. package/dist-types/commands/CreatePermissionVersionCommand.d.ts +6 -21
  76. package/dist-types/commands/CreateResourceShareCommand.d.ts +6 -21
  77. package/dist-types/commands/DeletePermissionCommand.d.ts +6 -21
  78. package/dist-types/commands/DeletePermissionVersionCommand.d.ts +6 -21
  79. package/dist-types/commands/DeleteResourceShareCommand.d.ts +6 -21
  80. package/dist-types/commands/DisassociateResourceShareCommand.d.ts +6 -21
  81. package/dist-types/commands/DisassociateResourceSharePermissionCommand.d.ts +6 -21
  82. package/dist-types/commands/EnableSharingWithAwsOrganizationCommand.d.ts +6 -21
  83. package/dist-types/commands/GetPermissionCommand.d.ts +6 -21
  84. package/dist-types/commands/GetResourcePoliciesCommand.d.ts +6 -21
  85. package/dist-types/commands/GetResourceShareAssociationsCommand.d.ts +6 -21
  86. package/dist-types/commands/GetResourceShareInvitationsCommand.d.ts +6 -21
  87. package/dist-types/commands/GetResourceSharesCommand.d.ts +6 -21
  88. package/dist-types/commands/ListPendingInvitationResourcesCommand.d.ts +6 -21
  89. package/dist-types/commands/ListPermissionAssociationsCommand.d.ts +6 -21
  90. package/dist-types/commands/ListPermissionVersionsCommand.d.ts +6 -21
  91. package/dist-types/commands/ListPermissionsCommand.d.ts +6 -21
  92. package/dist-types/commands/ListPrincipalsCommand.d.ts +6 -21
  93. package/dist-types/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +6 -21
  94. package/dist-types/commands/ListResourceSharePermissionsCommand.d.ts +6 -21
  95. package/dist-types/commands/ListResourceTypesCommand.d.ts +6 -21
  96. package/dist-types/commands/ListResourcesCommand.d.ts +6 -21
  97. package/dist-types/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +6 -21
  98. package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +6 -21
  99. package/dist-types/commands/RejectResourceShareInvitationCommand.d.ts +6 -21
  100. package/dist-types/commands/ReplacePermissionAssociationsCommand.d.ts +6 -21
  101. package/dist-types/commands/SetDefaultPermissionVersionCommand.d.ts +6 -21
  102. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  103. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  104. package/dist-types/commands/UpdateResourceShareCommand.d.ts +6 -21
  105. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  106. package/dist-types/ts3.4/commands/AcceptResourceShareInvitationCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/AssociateResourceShareCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/commands/AssociateResourceSharePermissionCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/CreatePermissionCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/CreatePermissionVersionCommand.d.ts +12 -24
  111. package/dist-types/ts3.4/commands/CreateResourceShareCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/DeletePermissionCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/commands/DeletePermissionVersionCommand.d.ts +12 -24
  114. package/dist-types/ts3.4/commands/DeleteResourceShareCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/DisassociateResourceShareCommand.d.ts +12 -24
  116. package/dist-types/ts3.4/commands/DisassociateResourceSharePermissionCommand.d.ts +12 -24
  117. package/dist-types/ts3.4/commands/EnableSharingWithAwsOrganizationCommand.d.ts +12 -24
  118. package/dist-types/ts3.4/commands/GetPermissionCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +14 -23
  120. package/dist-types/ts3.4/commands/GetResourceShareAssociationsCommand.d.ts +12 -24
  121. package/dist-types/ts3.4/commands/GetResourceShareInvitationsCommand.d.ts +12 -24
  122. package/dist-types/ts3.4/commands/GetResourceSharesCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/ListPendingInvitationResourcesCommand.d.ts +12 -24
  124. package/dist-types/ts3.4/commands/ListPermissionAssociationsCommand.d.ts +12 -24
  125. package/dist-types/ts3.4/commands/ListPermissionVersionsCommand.d.ts +12 -24
  126. package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/ListPrincipalsCommand.d.ts +14 -23
  128. package/dist-types/ts3.4/commands/ListReplacePermissionAssociationsWorkCommand.d.ts +12 -24
  129. package/dist-types/ts3.4/commands/ListResourceSharePermissionsCommand.d.ts +12 -24
  130. package/dist-types/ts3.4/commands/ListResourceTypesCommand.d.ts +14 -23
  131. package/dist-types/ts3.4/commands/ListResourcesCommand.d.ts +14 -23
  132. package/dist-types/ts3.4/commands/PromotePermissionCreatedFromPolicyCommand.d.ts +12 -24
  133. package/dist-types/ts3.4/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +12 -24
  134. package/dist-types/ts3.4/commands/RejectResourceShareInvitationCommand.d.ts +12 -24
  135. package/dist-types/ts3.4/commands/ReplacePermissionAssociationsCommand.d.ts +12 -24
  136. package/dist-types/ts3.4/commands/SetDefaultPermissionVersionCommand.d.ts +12 -24
  137. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  138. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  139. package/dist-types/ts3.4/commands/UpdateResourceShareCommand.d.ts +14 -23
  140. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  141. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ReplacePermissionAssociationsCommand, se_ReplacePermissionAssociationsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ReplacePermissionAssociationsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ReplacePermissionAssociationsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RAMClient";
26
- const commandName = "ReplacePermissionAssociationsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonResourceSharing",
35
- operation: "ReplacePermissionAssociations",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ReplacePermissionAssociationsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ReplacePermissionAssociationsCommand(output, context);
46
- }
7
+ export class ReplacePermissionAssociationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonResourceSharing", "ReplacePermissionAssociations", {})
19
+ .n("RAMClient", "ReplacePermissionAssociationsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ReplacePermissionAssociationsCommand)
22
+ .de(de_ReplacePermissionAssociationsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_SetDefaultPermissionVersionCommand, se_SetDefaultPermissionVersionCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SetDefaultPermissionVersionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SetDefaultPermissionVersionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RAMClient";
26
- const commandName = "SetDefaultPermissionVersionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonResourceSharing",
35
- operation: "SetDefaultPermissionVersion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SetDefaultPermissionVersionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SetDefaultPermissionVersionCommand(output, context);
46
- }
7
+ export class SetDefaultPermissionVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonResourceSharing", "SetDefaultPermissionVersion", {})
19
+ .n("RAMClient", "SetDefaultPermissionVersionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SetDefaultPermissionVersionCommand)
22
+ .de(de_SetDefaultPermissionVersionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RAMClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonResourceSharing",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonResourceSharing", "TagResource", {})
19
+ .n("RAMClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RAMClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonResourceSharing",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonResourceSharing", "UntagResource", {})
19
+ .n("RAMClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateResourceShareCommand, se_UpdateResourceShareCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateResourceShareCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateResourceShareCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RAMClient";
26
- const commandName = "UpdateResourceShareCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonResourceSharing",
35
- operation: "UpdateResourceShare",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateResourceShareCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateResourceShareCommand(output, context);
46
- }
7
+ export class UpdateResourceShareCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonResourceSharing", "UpdateResourceShare", {})
19
+ .n("RAMClient", "UpdateResourceShareCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateResourceShareCommand)
22
+ .de(de_UpdateResourceShareCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "ram",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AcceptResourceShareInvitationRequest, AcceptResourceShareInvitationResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AcceptResourceShareInvitationCommandInput extends AcceptResourc
21
20
  */
22
21
  export interface AcceptResourceShareInvitationCommandOutput extends AcceptResourceShareInvitationResponse, __MetadataBearer {
23
22
  }
23
+ declare const AcceptResourceShareInvitationCommand_base: {
24
+ new (input: AcceptResourceShareInvitationCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Accepts an invitation to a resource share from another Amazon Web Services account. After you accept the
@@ -113,23 +116,5 @@ export interface AcceptResourceShareInvitationCommandOutput extends AcceptResour
113
116
  * <p>Base exception class for all service exceptions from RAM service.</p>
114
117
  *
115
118
  */
116
- export declare class AcceptResourceShareInvitationCommand extends $Command<AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput, RAMClientResolvedConfig> {
117
- readonly input: AcceptResourceShareInvitationCommandInput;
118
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
119
- /**
120
- * @public
121
- */
122
- constructor(input: AcceptResourceShareInvitationCommandInput);
123
- /**
124
- * @internal
125
- */
126
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AcceptResourceShareInvitationCommandInput, AcceptResourceShareInvitationCommandOutput>;
127
- /**
128
- * @internal
129
- */
130
- private serialize;
131
- /**
132
- * @internal
133
- */
134
- private deserialize;
119
+ export declare class AcceptResourceShareInvitationCommand extends AcceptResourceShareInvitationCommand_base {
135
120
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AssociateResourceShareRequest, AssociateResourceShareResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateResourceShareCommandInput extends AssociateResourceSha
21
20
  */
22
21
  export interface AssociateResourceShareCommandOutput extends AssociateResourceShareResponse, __MetadataBearer {
23
22
  }
23
+ declare const AssociateResourceShareCommand_base: {
24
+ new (input: AssociateResourceShareCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds the specified list of principals and list of resources to a resource share. Principals that
@@ -117,23 +120,5 @@ export interface AssociateResourceShareCommandOutput extends AssociateResourceSh
117
120
  * <p>Base exception class for all service exceptions from RAM service.</p>
118
121
  *
119
122
  */
120
- export declare class AssociateResourceShareCommand extends $Command<AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput, RAMClientResolvedConfig> {
121
- readonly input: AssociateResourceShareCommandInput;
122
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
123
- /**
124
- * @public
125
- */
126
- constructor(input: AssociateResourceShareCommandInput);
127
- /**
128
- * @internal
129
- */
130
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateResourceShareCommandInput, AssociateResourceShareCommandOutput>;
131
- /**
132
- * @internal
133
- */
134
- private serialize;
135
- /**
136
- * @internal
137
- */
138
- private deserialize;
123
+ export declare class AssociateResourceShareCommand extends AssociateResourceShareCommand_base {
139
124
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AssociateResourceSharePermissionRequest, AssociateResourceSharePermissionResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateResourceSharePermissionCommandInput extends AssociateR
21
20
  */
22
21
  export interface AssociateResourceSharePermissionCommandOutput extends AssociateResourceSharePermissionResponse, __MetadataBearer {
23
22
  }
23
+ declare const AssociateResourceSharePermissionCommand_base: {
24
+ new (input: AssociateResourceSharePermissionCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateResourceSharePermissionCommandInput, AssociateResourceSharePermissionCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds or replaces the RAM permission for a resource type included in a resource share. You can
@@ -82,23 +85,5 @@ export interface AssociateResourceSharePermissionCommandOutput extends Associate
82
85
  * <p>Base exception class for all service exceptions from RAM service.</p>
83
86
  *
84
87
  */
85
- export declare class AssociateResourceSharePermissionCommand extends $Command<AssociateResourceSharePermissionCommandInput, AssociateResourceSharePermissionCommandOutput, RAMClientResolvedConfig> {
86
- readonly input: AssociateResourceSharePermissionCommandInput;
87
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
88
- /**
89
- * @public
90
- */
91
- constructor(input: AssociateResourceSharePermissionCommandInput);
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateResourceSharePermissionCommandInput, AssociateResourceSharePermissionCommandOutput>;
96
- /**
97
- * @internal
98
- */
99
- private serialize;
100
- /**
101
- * @internal
102
- */
103
- private deserialize;
88
+ export declare class AssociateResourceSharePermissionCommand extends AssociateResourceSharePermissionCommand_base {
104
89
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreatePermissionRequest, CreatePermissionResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreatePermissionCommandInput extends CreatePermissionRequest {
21
20
  */
22
21
  export interface CreatePermissionCommandOutput extends CreatePermissionResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreatePermissionCommand_base: {
24
+ new (input: CreatePermissionCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePermissionCommandInput, CreatePermissionCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a customer managed permission for a specified resource type that you can attach to resource shares.
@@ -116,23 +119,5 @@ export interface CreatePermissionCommandOutput extends CreatePermissionResponse,
116
119
  * <p>Base exception class for all service exceptions from RAM service.</p>
117
120
  *
118
121
  */
119
- export declare class CreatePermissionCommand extends $Command<CreatePermissionCommandInput, CreatePermissionCommandOutput, RAMClientResolvedConfig> {
120
- readonly input: CreatePermissionCommandInput;
121
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
122
- /**
123
- * @public
124
- */
125
- constructor(input: CreatePermissionCommandInput);
126
- /**
127
- * @internal
128
- */
129
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePermissionCommandInput, CreatePermissionCommandOutput>;
130
- /**
131
- * @internal
132
- */
133
- private serialize;
134
- /**
135
- * @internal
136
- */
137
- private deserialize;
122
+ export declare class CreatePermissionCommand extends CreatePermissionCommand_base {
138
123
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreatePermissionVersionRequest, CreatePermissionVersionResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreatePermissionVersionCommandInput extends CreatePermissionVer
21
20
  */
22
21
  export interface CreatePermissionVersionCommandOutput extends CreatePermissionVersionResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreatePermissionVersionCommand_base: {
24
+ new (input: CreatePermissionVersionCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePermissionVersionCommandInput, CreatePermissionVersionCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a new version of the specified customer managed permission. The new version is automatically set as
@@ -114,23 +117,5 @@ export interface CreatePermissionVersionCommandOutput extends CreatePermissionVe
114
117
  * <p>Base exception class for all service exceptions from RAM service.</p>
115
118
  *
116
119
  */
117
- export declare class CreatePermissionVersionCommand extends $Command<CreatePermissionVersionCommandInput, CreatePermissionVersionCommandOutput, RAMClientResolvedConfig> {
118
- readonly input: CreatePermissionVersionCommandInput;
119
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
120
- /**
121
- * @public
122
- */
123
- constructor(input: CreatePermissionVersionCommandInput);
124
- /**
125
- * @internal
126
- */
127
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePermissionVersionCommandInput, CreatePermissionVersionCommandOutput>;
128
- /**
129
- * @internal
130
- */
131
- private serialize;
132
- /**
133
- * @internal
134
- */
135
- private deserialize;
120
+ export declare class CreatePermissionVersionCommand extends CreatePermissionVersionCommand_base {
136
121
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateResourceShareRequest, CreateResourceShareResponse } from "../models/models_0";
5
4
  import { RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateResourceShareCommandInput extends CreateResourceShareRequ
21
20
  */
22
21
  export interface CreateResourceShareCommandOutput extends CreateResourceShareResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateResourceShareCommand_base: {
24
+ new (input: CreateResourceShareCommandInput): import("@smithy/smithy-client").CommandImpl<CreateResourceShareCommandInput, CreateResourceShareCommandOutput, RAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a resource share. You can provide a list of the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> for the resources that you
@@ -140,23 +143,5 @@ export interface CreateResourceShareCommandOutput extends CreateResourceShareRes
140
143
  * <p>Base exception class for all service exceptions from RAM service.</p>
141
144
  *
142
145
  */
143
- export declare class CreateResourceShareCommand extends $Command<CreateResourceShareCommandInput, CreateResourceShareCommandOutput, RAMClientResolvedConfig> {
144
- readonly input: CreateResourceShareCommandInput;
145
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
146
- /**
147
- * @public
148
- */
149
- constructor(input: CreateResourceShareCommandInput);
150
- /**
151
- * @internal
152
- */
153
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateResourceShareCommandInput, CreateResourceShareCommandOutput>;
154
- /**
155
- * @internal
156
- */
157
- private serialize;
158
- /**
159
- * @internal
160
- */
161
- private deserialize;
146
+ export declare class CreateResourceShareCommand extends CreateResourceShareCommand_base {
162
147
  }