@aws-sdk/client-mpa 3.831.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 (195) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +373 -0
  3. package/dist-cjs/MPA.js +53 -0
  4. package/dist-cjs/MPAClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CancelSessionCommand.js +26 -0
  8. package/dist-cjs/commands/CreateApprovalTeamCommand.js +27 -0
  9. package/dist-cjs/commands/CreateIdentitySourceCommand.js +27 -0
  10. package/dist-cjs/commands/DeleteIdentitySourceCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteInactiveApprovalTeamVersionCommand.js +26 -0
  12. package/dist-cjs/commands/GetApprovalTeamCommand.js +27 -0
  13. package/dist-cjs/commands/GetIdentitySourceCommand.js +26 -0
  14. package/dist-cjs/commands/GetPolicyVersionCommand.js +27 -0
  15. package/dist-cjs/commands/GetResourcePolicyCommand.js +27 -0
  16. package/dist-cjs/commands/GetSessionCommand.js +27 -0
  17. package/dist-cjs/commands/ListApprovalTeamsCommand.js +27 -0
  18. package/dist-cjs/commands/ListIdentitySourcesCommand.js +26 -0
  19. package/dist-cjs/commands/ListPoliciesCommand.js +26 -0
  20. package/dist-cjs/commands/ListPolicyVersionsCommand.js +26 -0
  21. package/dist-cjs/commands/ListResourcePoliciesCommand.js +26 -0
  22. package/dist-cjs/commands/ListSessionsCommand.js +27 -0
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +27 -0
  24. package/dist-cjs/commands/StartActiveApprovalTeamDeletionCommand.js +26 -0
  25. package/dist-cjs/commands/TagResourceCommand.js +27 -0
  26. package/dist-cjs/commands/UntagResourceCommand.js +27 -0
  27. package/dist-cjs/commands/UpdateApprovalTeamCommand.js +27 -0
  28. package/dist-cjs/commands/index.js +24 -0
  29. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  30. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  31. package/dist-cjs/endpoint/ruleset.js +7 -0
  32. package/dist-cjs/extensionConfiguration.js +2 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/MPAServiceException.js +12 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +354 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListApprovalTeamsPaginator.js +7 -0
  39. package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +7 -0
  40. package/dist-cjs/pagination/ListPoliciesPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListPolicyVersionsPaginator.js +7 -0
  42. package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +7 -0
  43. package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
  44. package/dist-cjs/pagination/index.js +10 -0
  45. package/dist-cjs/protocols/Aws_restJson1.js +976 -0
  46. package/dist-cjs/runtimeConfig.browser.js +39 -0
  47. package/dist-cjs/runtimeConfig.js +56 -0
  48. package/dist-cjs/runtimeConfig.native.js +15 -0
  49. package/dist-cjs/runtimeConfig.shared.js +34 -0
  50. package/dist-cjs/runtimeExtensions.js +13 -0
  51. package/dist-es/MPA.js +49 -0
  52. package/dist-es/MPAClient.js +48 -0
  53. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  54. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  55. package/dist-es/commands/CancelSessionCommand.js +22 -0
  56. package/dist-es/commands/CreateApprovalTeamCommand.js +23 -0
  57. package/dist-es/commands/CreateIdentitySourceCommand.js +23 -0
  58. package/dist-es/commands/DeleteIdentitySourceCommand.js +22 -0
  59. package/dist-es/commands/DeleteInactiveApprovalTeamVersionCommand.js +22 -0
  60. package/dist-es/commands/GetApprovalTeamCommand.js +23 -0
  61. package/dist-es/commands/GetIdentitySourceCommand.js +22 -0
  62. package/dist-es/commands/GetPolicyVersionCommand.js +23 -0
  63. package/dist-es/commands/GetResourcePolicyCommand.js +23 -0
  64. package/dist-es/commands/GetSessionCommand.js +23 -0
  65. package/dist-es/commands/ListApprovalTeamsCommand.js +23 -0
  66. package/dist-es/commands/ListIdentitySourcesCommand.js +22 -0
  67. package/dist-es/commands/ListPoliciesCommand.js +22 -0
  68. package/dist-es/commands/ListPolicyVersionsCommand.js +22 -0
  69. package/dist-es/commands/ListResourcePoliciesCommand.js +22 -0
  70. package/dist-es/commands/ListSessionsCommand.js +23 -0
  71. package/dist-es/commands/ListTagsForResourceCommand.js +23 -0
  72. package/dist-es/commands/StartActiveApprovalTeamDeletionCommand.js +22 -0
  73. package/dist-es/commands/TagResourceCommand.js +23 -0
  74. package/dist-es/commands/UntagResourceCommand.js +23 -0
  75. package/dist-es/commands/UpdateApprovalTeamCommand.js +23 -0
  76. package/dist-es/commands/index.js +21 -0
  77. package/dist-es/endpoint/EndpointParameters.js +11 -0
  78. package/dist-es/endpoint/endpointResolver.js +14 -0
  79. package/dist-es/endpoint/ruleset.js +4 -0
  80. package/dist-es/extensionConfiguration.js +1 -0
  81. package/dist-es/index.js +6 -0
  82. package/dist-es/models/MPAServiceException.js +8 -0
  83. package/dist-es/models/index.js +1 -0
  84. package/dist-es/models/models_0.js +327 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListApprovalTeamsPaginator.js +4 -0
  87. package/dist-es/pagination/ListIdentitySourcesPaginator.js +4 -0
  88. package/dist-es/pagination/ListPoliciesPaginator.js +4 -0
  89. package/dist-es/pagination/ListPolicyVersionsPaginator.js +4 -0
  90. package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
  91. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  92. package/dist-es/pagination/index.js +7 -0
  93. package/dist-es/protocols/Aws_restJson1.js +931 -0
  94. package/dist-es/runtimeConfig.browser.js +34 -0
  95. package/dist-es/runtimeConfig.js +51 -0
  96. package/dist-es/runtimeConfig.native.js +11 -0
  97. package/dist-es/runtimeConfig.shared.js +30 -0
  98. package/dist-es/runtimeExtensions.js +9 -0
  99. package/dist-types/MPA.d.ts +160 -0
  100. package/dist-types/MPAClient.d.ts +208 -0
  101. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  102. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  103. package/dist-types/commands/CancelSessionCommand.d.ts +88 -0
  104. package/dist-types/commands/CreateApprovalTeamCommand.d.ts +114 -0
  105. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +98 -0
  106. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +85 -0
  107. package/dist-types/commands/DeleteInactiveApprovalTeamVersionCommand.d.ts +89 -0
  108. package/dist-types/commands/GetApprovalTeamCommand.d.ts +139 -0
  109. package/dist-types/commands/GetIdentitySourceCommand.d.ts +99 -0
  110. package/dist-types/commands/GetPolicyVersionCommand.d.ts +98 -0
  111. package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
  112. package/dist-types/commands/GetSessionCommand.d.ts +123 -0
  113. package/dist-types/commands/ListApprovalTeamsCommand.d.ts +102 -0
  114. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +102 -0
  115. package/dist-types/commands/ListPoliciesCommand.d.ts +93 -0
  116. package/dist-types/commands/ListPolicyVersionsCommand.d.ts +102 -0
  117. package/dist-types/commands/ListResourcePoliciesCommand.d.ts +96 -0
  118. package/dist-types/commands/ListSessionsCommand.d.ts +117 -0
  119. package/dist-types/commands/ListTagsForResourceCommand.d.ts +89 -0
  120. package/dist-types/commands/StartActiveApprovalTeamDeletionCommand.d.ts +92 -0
  121. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  122. package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
  123. package/dist-types/commands/UpdateApprovalTeamCommand.d.ts +105 -0
  124. package/dist-types/commands/index.d.ts +21 -0
  125. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  126. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  127. package/dist-types/endpoint/ruleset.d.ts +2 -0
  128. package/dist-types/extensionConfiguration.d.ts +9 -0
  129. package/dist-types/index.d.ts +14 -0
  130. package/dist-types/models/MPAServiceException.d.ts +14 -0
  131. package/dist-types/models/index.d.ts +1 -0
  132. package/dist-types/models/models_0.d.ts +1947 -0
  133. package/dist-types/pagination/Interfaces.d.ts +8 -0
  134. package/dist-types/pagination/ListApprovalTeamsPaginator.d.ts +7 -0
  135. package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
  136. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  137. package/dist-types/pagination/ListPolicyVersionsPaginator.d.ts +7 -0
  138. package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
  139. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  140. package/dist-types/pagination/index.d.ts +7 -0
  141. package/dist-types/protocols/Aws_restJson1.d.ts +191 -0
  142. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  143. package/dist-types/runtimeConfig.d.ts +50 -0
  144. package/dist-types/runtimeConfig.native.d.ts +49 -0
  145. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  146. package/dist-types/runtimeExtensions.d.ts +17 -0
  147. package/dist-types/ts3.4/MPA.d.ts +371 -0
  148. package/dist-types/ts3.4/MPAClient.d.ts +242 -0
  149. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  150. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +46 -0
  151. package/dist-types/ts3.4/commands/CancelSessionCommand.d.ts +50 -0
  152. package/dist-types/ts3.4/commands/CreateApprovalTeamCommand.d.ts +51 -0
  153. package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +51 -0
  154. package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +46 -0
  155. package/dist-types/ts3.4/commands/DeleteInactiveApprovalTeamVersionCommand.d.ts +51 -0
  156. package/dist-types/ts3.4/commands/GetApprovalTeamCommand.d.ts +50 -0
  157. package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +51 -0
  158. package/dist-types/ts3.4/commands/GetPolicyVersionCommand.d.ts +50 -0
  159. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  160. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  161. package/dist-types/ts3.4/commands/ListApprovalTeamsCommand.d.ts +51 -0
  162. package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +51 -0
  163. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +47 -0
  164. package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +51 -0
  165. package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +51 -0
  166. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  167. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  168. package/dist-types/ts3.4/commands/StartActiveApprovalTeamDeletionCommand.d.ts +51 -0
  169. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  170. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  171. package/dist-types/ts3.4/commands/UpdateApprovalTeamCommand.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  173. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +42 -0
  174. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  175. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  176. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  177. package/dist-types/ts3.4/index.d.ts +9 -0
  178. package/dist-types/ts3.4/models/MPAServiceException.d.ts +9 -0
  179. package/dist-types/ts3.4/models/index.d.ts +1 -0
  180. package/dist-types/ts3.4/models/models_0.d.ts +645 -0
  181. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  182. package/dist-types/ts3.4/pagination/ListApprovalTeamsPaginator.d.ts +11 -0
  183. package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
  184. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  185. package/dist-types/ts3.4/pagination/ListPolicyVersionsPaginator.d.ts +11 -0
  186. package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
  187. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  189. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +257 -0
  190. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  191. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  192. package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
  193. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  194. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  195. package/package.json +101 -0
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListPoliciesRequest, ListPoliciesResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPoliciesCommand}.
14
+ */
15
+ export interface ListPoliciesCommandInput extends ListPoliciesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPoliciesCommand}.
21
+ */
22
+ export interface ListPoliciesCommandOutput extends ListPoliciesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListPoliciesCommand_base: {
25
+ new (input: ListPoliciesCommandInput): import("@smithy/smithy-client").CommandImpl<ListPoliciesCommandInput, ListPoliciesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListPoliciesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPoliciesCommandInput, ListPoliciesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of policies. Policies define the permissions for team resources.</p> <p>The protected operation for a service integration might require specific permissions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html">How other services work with Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, ListPoliciesCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, ListPoliciesCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // ListPoliciesRequest
38
+ * MaxResults: Number("int"),
39
+ * NextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListPoliciesCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListPoliciesResponse
44
+ * // NextToken: "STRING_VALUE",
45
+ * // Policies: [ // Policies
46
+ * // { // Policy
47
+ * // Arn: "STRING_VALUE", // required
48
+ * // DefaultVersion: Number("int"), // required
49
+ * // PolicyType: "AWS_MANAGED" || "AWS_RAM", // required
50
+ * // Name: "STRING_VALUE", // required
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListPoliciesCommandInput - {@link ListPoliciesCommandInput}
58
+ * @returns {@link ListPoliciesCommandOutput}
59
+ * @see {@link ListPoliciesCommandInput} for command's `input` shape.
60
+ * @see {@link ListPoliciesCommandOutput} for command's `response` shape.
61
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied due to request throttling.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
74
+ *
75
+ * @throws {@link MPAServiceException}
76
+ * <p>Base exception class for all service exceptions from MPA service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class ListPoliciesCommand extends ListPoliciesCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: ListPoliciesRequest;
86
+ output: ListPoliciesResponse;
87
+ };
88
+ sdk: {
89
+ input: ListPoliciesCommandInput;
90
+ output: ListPoliciesCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListPolicyVersionsRequest, ListPolicyVersionsResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPolicyVersionsCommand}.
14
+ */
15
+ export interface ListPolicyVersionsCommandInput extends ListPolicyVersionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPolicyVersionsCommand}.
21
+ */
22
+ export interface ListPolicyVersionsCommandOutput extends ListPolicyVersionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListPolicyVersionsCommand_base: {
25
+ new (input: ListPolicyVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPolicyVersionsCommandInput, ListPolicyVersionsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListPolicyVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPolicyVersionsCommandInput, ListPolicyVersionsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of the versions for policies. Policies define the permissions for team resources.</p> <p>The protected operation for a service integration might require specific permissions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html">How other services work with Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, ListPolicyVersionsCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, ListPolicyVersionsCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // ListPolicyVersionsRequest
38
+ * MaxResults: Number("int"),
39
+ * NextToken: "STRING_VALUE",
40
+ * PolicyArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ListPolicyVersionsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListPolicyVersionsResponse
45
+ * // NextToken: "STRING_VALUE",
46
+ * // PolicyVersions: [ // PolicyVersions
47
+ * // { // PolicyVersionSummary
48
+ * // Arn: "STRING_VALUE", // required
49
+ * // PolicyArn: "STRING_VALUE", // required
50
+ * // VersionId: Number("int"), // required
51
+ * // PolicyType: "AWS_MANAGED" || "AWS_RAM", // required
52
+ * // IsDefault: true || false, // required
53
+ * // Name: "STRING_VALUE", // required
54
+ * // Status: "ATTACHABLE" || "DEPRECATED", // required
55
+ * // CreationTime: new Date("TIMESTAMP"), // required
56
+ * // LastUpdatedTime: new Date("TIMESTAMP"), // required
57
+ * // },
58
+ * // ],
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param ListPolicyVersionsCommandInput - {@link ListPolicyVersionsCommandInput}
64
+ * @returns {@link ListPolicyVersionsCommandOutput}
65
+ * @see {@link ListPolicyVersionsCommandInput} for command's `input` shape.
66
+ * @see {@link ListPolicyVersionsCommandOutput} for command's `response` shape.
67
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
68
+ *
69
+ * @throws {@link AccessDeniedException} (client fault)
70
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
71
+ *
72
+ * @throws {@link InternalServerException} (server fault)
73
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
74
+ *
75
+ * @throws {@link ResourceNotFoundException} (client fault)
76
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The request was denied due to request throttling.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
83
+ *
84
+ * @throws {@link MPAServiceException}
85
+ * <p>Base exception class for all service exceptions from MPA service.</p>
86
+ *
87
+ *
88
+ * @public
89
+ */
90
+ export declare class ListPolicyVersionsCommand extends ListPolicyVersionsCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: ListPolicyVersionsRequest;
95
+ output: ListPolicyVersionsResponse;
96
+ };
97
+ sdk: {
98
+ input: ListPolicyVersionsCommandInput;
99
+ output: ListPolicyVersionsCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListResourcePoliciesRequest, ListResourcePoliciesResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListResourcePoliciesCommand}.
14
+ */
15
+ export interface ListResourcePoliciesCommandInput extends ListResourcePoliciesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListResourcePoliciesCommand}.
21
+ */
22
+ export interface ListResourcePoliciesCommandOutput extends ListResourcePoliciesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListResourcePoliciesCommand_base: {
25
+ new (input: ListResourcePoliciesCommandInput): import("@smithy/smithy-client").CommandImpl<ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListResourcePoliciesCommandInput): import("@smithy/smithy-client").CommandImpl<ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of policies for a resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, ListResourcePoliciesCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, ListResourcePoliciesCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // ListResourcePoliciesRequest
38
+ * ResourceArn: "STRING_VALUE", // required
39
+ * MaxResults: Number("int"),
40
+ * NextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListResourcePoliciesCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListResourcePoliciesResponse
45
+ * // NextToken: "STRING_VALUE",
46
+ * // ResourcePolicies: [ // ListResourcePoliciesResponseResourcePolicies
47
+ * // { // ListResourcePoliciesResponseResourcePolicy
48
+ * // PolicyArn: "STRING_VALUE",
49
+ * // PolicyType: "AWS_MANAGED" || "AWS_RAM",
50
+ * // PolicyName: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListResourcePoliciesCommandInput - {@link ListResourcePoliciesCommandInput}
58
+ * @returns {@link ListResourcePoliciesCommandOutput}
59
+ * @see {@link ListResourcePoliciesCommandInput} for command's `input` shape.
60
+ * @see {@link ListResourcePoliciesCommandOutput} for command's `response` shape.
61
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The request was denied due to request throttling.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
77
+ *
78
+ * @throws {@link MPAServiceException}
79
+ * <p>Base exception class for all service exceptions from MPA service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class ListResourcePoliciesCommand extends ListResourcePoliciesCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: ListResourcePoliciesRequest;
89
+ output: ListResourcePoliciesResponse;
90
+ };
91
+ sdk: {
92
+ input: ListResourcePoliciesCommandInput;
93
+ output: ListResourcePoliciesCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -0,0 +1,117 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListSessionsRequest, ListSessionsResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListSessionsCommand}.
14
+ */
15
+ export interface ListSessionsCommandInput extends ListSessionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSessionsCommand}.
21
+ */
22
+ export interface ListSessionsCommandOutput extends ListSessionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListSessionsCommand_base: {
25
+ new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListSessionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListSessionsCommandInput, ListSessionsCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of approval sessions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Session</a> in the <i>Multi-party approval User Guide</i>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, ListSessionsCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, ListSessionsCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // ListSessionsRequest
38
+ * ApprovalTeamArn: "STRING_VALUE", // required
39
+ * MaxResults: Number("int"),
40
+ * NextToken: "STRING_VALUE",
41
+ * Filters: [ // Filters
42
+ * { // Filter
43
+ * FieldName: "ActionName" || "ApprovalTeamName" || "VotingTime" || "Vote" || "SessionStatus" || "InitiationTime",
44
+ * Operator: "EQ" || "NE" || "GT" || "LT" || "GTE" || "LTE" || "CONTAINS" || "NOT_CONTAINS" || "BETWEEN",
45
+ * Value: "STRING_VALUE",
46
+ * },
47
+ * ],
48
+ * };
49
+ * const command = new ListSessionsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListSessionsResponse
52
+ * // NextToken: "STRING_VALUE",
53
+ * // Sessions: [ // ListSessionsResponseSessions
54
+ * // { // ListSessionsResponseSession
55
+ * // SessionArn: "STRING_VALUE",
56
+ * // ApprovalTeamName: "STRING_VALUE",
57
+ * // ApprovalTeamArn: "STRING_VALUE",
58
+ * // InitiationTime: new Date("TIMESTAMP"),
59
+ * // ExpirationTime: new Date("TIMESTAMP"),
60
+ * // CompletionTime: new Date("TIMESTAMP"),
61
+ * // Description: "STRING_VALUE",
62
+ * // ActionName: "STRING_VALUE",
63
+ * // ProtectedResourceArn: "STRING_VALUE",
64
+ * // RequesterServicePrincipal: "STRING_VALUE",
65
+ * // RequesterPrincipalArn: "STRING_VALUE",
66
+ * // RequesterRegion: "STRING_VALUE",
67
+ * // RequesterAccountId: "STRING_VALUE",
68
+ * // Status: "PENDING" || "CANCELLED" || "APPROVED" || "FAILED" || "CREATING",
69
+ * // StatusCode: "REJECTED" || "EXPIRED" || "CONFIGURATION_CHANGED",
70
+ * // StatusMessage: "STRING_VALUE",
71
+ * // ActionCompletionStrategy: "AUTO_COMPLETION_UPON_APPROVAL",
72
+ * // },
73
+ * // ],
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param ListSessionsCommandInput - {@link ListSessionsCommandInput}
79
+ * @returns {@link ListSessionsCommandOutput}
80
+ * @see {@link ListSessionsCommandInput} for command's `input` shape.
81
+ * @see {@link ListSessionsCommandOutput} for command's `response` shape.
82
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
86
+ *
87
+ * @throws {@link InternalServerException} (server fault)
88
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
92
+ *
93
+ * @throws {@link ThrottlingException} (client fault)
94
+ * <p>The request was denied due to request throttling.</p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
98
+ *
99
+ * @throws {@link MPAServiceException}
100
+ * <p>Base exception class for all service exceptions from MPA service.</p>
101
+ *
102
+ *
103
+ * @public
104
+ */
105
+ export declare class ListSessionsCommand extends ListSessionsCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: ListSessionsRequest;
110
+ output: ListSessionsResponse;
111
+ };
112
+ sdk: {
113
+ input: ListSessionsCommandInput;
114
+ output: ListSessionsCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of the tags for a resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, ListTagsForResourceCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, ListTagsForResourceCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // ListTagsForResourceRequest
38
+ * ResourceArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListTagsForResourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListTagsForResourceResponse
43
+ * // Tags: { // Tags
44
+ * // "<keys>": "STRING_VALUE",
45
+ * // },
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
51
+ * @returns {@link ListTagsForResourceCommandOutput}
52
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
53
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
54
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <p>The request was denied due to request throttling.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
70
+ *
71
+ * @throws {@link MPAServiceException}
72
+ * <p>Base exception class for all service exceptions from MPA service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: ListTagsForResourceRequest;
82
+ output: ListTagsForResourceResponse;
83
+ };
84
+ sdk: {
85
+ input: ListTagsForResourceCommandInput;
86
+ output: ListTagsForResourceCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -0,0 +1,92 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { StartActiveApprovalTeamDeletionRequest, StartActiveApprovalTeamDeletionResponse } from "../models/models_0";
4
+ import { MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MPAClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartActiveApprovalTeamDeletionCommand}.
14
+ */
15
+ export interface StartActiveApprovalTeamDeletionCommandInput extends StartActiveApprovalTeamDeletionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartActiveApprovalTeamDeletionCommand}.
21
+ */
22
+ export interface StartActiveApprovalTeamDeletionCommandOutput extends StartActiveApprovalTeamDeletionResponse, __MetadataBearer {
23
+ }
24
+ declare const StartActiveApprovalTeamDeletionCommand_base: {
25
+ new (input: StartActiveApprovalTeamDeletionCommandInput): import("@smithy/smithy-client").CommandImpl<StartActiveApprovalTeamDeletionCommandInput, StartActiveApprovalTeamDeletionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartActiveApprovalTeamDeletionCommandInput): import("@smithy/smithy-client").CommandImpl<StartActiveApprovalTeamDeletionCommandInput, StartActiveApprovalTeamDeletionCommandOutput, MPAClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Starts the deletion process for an active approval team.</p> <note> <p> <b>Deletions require team approval</b> </p> <p>Requests to delete an active team must be approved by the team.</p> </note>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MPAClient, StartActiveApprovalTeamDeletionCommand } from "@aws-sdk/client-mpa"; // ES Modules import
35
+ * // const { MPAClient, StartActiveApprovalTeamDeletionCommand } = require("@aws-sdk/client-mpa"); // CommonJS import
36
+ * const client = new MPAClient(config);
37
+ * const input = { // StartActiveApprovalTeamDeletionRequest
38
+ * PendingWindowDays: Number("int"),
39
+ * Arn: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new StartActiveApprovalTeamDeletionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // StartActiveApprovalTeamDeletionResponse
44
+ * // DeletionCompletionTime: new Date("TIMESTAMP"),
45
+ * // DeletionStartTime: new Date("TIMESTAMP"),
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param StartActiveApprovalTeamDeletionCommandInput - {@link StartActiveApprovalTeamDeletionCommandInput}
51
+ * @returns {@link StartActiveApprovalTeamDeletionCommandOutput}
52
+ * @see {@link StartActiveApprovalTeamDeletionCommandInput} for command's `input` shape.
53
+ * @see {@link StartActiveApprovalTeamDeletionCommandOutput} for command's `response` shape.
54
+ * @see {@link MPAClientResolvedConfig | config} for MPAClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>The request cannot be completed because it conflicts with the current state of a resource.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
73
+ *
74
+ * @throws {@link MPAServiceException}
75
+ * <p>Base exception class for all service exceptions from MPA service.</p>
76
+ *
77
+ *
78
+ * @public
79
+ */
80
+ export declare class StartActiveApprovalTeamDeletionCommand extends StartActiveApprovalTeamDeletionCommand_base {
81
+ /** @internal type navigation helper, not in runtime. */
82
+ protected static __types: {
83
+ api: {
84
+ input: StartActiveApprovalTeamDeletionRequest;
85
+ output: StartActiveApprovalTeamDeletionResponse;
86
+ };
87
+ sdk: {
88
+ input: StartActiveApprovalTeamDeletionCommandInput;
89
+ output: StartActiveApprovalTeamDeletionCommandOutput;
90
+ };
91
+ };
92
+ }