@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,1947 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { MPAServiceException as __BaseException } from "./MPAServiceException";
3
+ /**
4
+ * <p>You do not have sufficient access to perform this action. Check your permissions, and try again.</p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * <p>Message for the <code>AccessDeniedException</code> error.</p>
12
+ * @public
13
+ */
14
+ Message: string | undefined;
15
+ /**
16
+ * @internal
17
+ */
18
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
19
+ }
20
+ /**
21
+ * @public
22
+ * @enum
23
+ */
24
+ export declare const ActionCompletionStrategy: {
25
+ readonly AUTO_COMPLETION_UPON_APPROVAL: "AUTO_COMPLETION_UPON_APPROVAL";
26
+ };
27
+ /**
28
+ * @public
29
+ */
30
+ export type ActionCompletionStrategy = (typeof ActionCompletionStrategy)[keyof typeof ActionCompletionStrategy];
31
+ /**
32
+ * <p>Strategy for how an approval team grants approval.</p>
33
+ * @public
34
+ */
35
+ export interface MofNApprovalStrategy {
36
+ /**
37
+ * <p>Minimum number of approvals (M) required for a total number of approvers (N).</p>
38
+ * @public
39
+ */
40
+ MinApprovalsRequired: number | undefined;
41
+ }
42
+ /**
43
+ * <p>Strategy for how an approval team grants approval.</p>
44
+ * @public
45
+ */
46
+ export type ApprovalStrategy = ApprovalStrategy.MofNMember | ApprovalStrategy.$UnknownMember;
47
+ /**
48
+ * @public
49
+ */
50
+ export declare namespace ApprovalStrategy {
51
+ /**
52
+ * <p>Minimum number of approvals (M) required for a total number of approvers (N).</p>
53
+ * @public
54
+ */
55
+ interface MofNMember {
56
+ MofN: MofNApprovalStrategy;
57
+ $unknown?: never;
58
+ }
59
+ /**
60
+ * @public
61
+ */
62
+ interface $UnknownMember {
63
+ MofN?: never;
64
+ $unknown: [string, any];
65
+ }
66
+ interface Visitor<T> {
67
+ MofN: (value: MofNApprovalStrategy) => T;
68
+ _: (name: string, value: any) => T;
69
+ }
70
+ const visit: <T>(value: ApprovalStrategy, visitor: Visitor<T>) => T;
71
+ }
72
+ /**
73
+ * <p>Contains details for how an approval team grants approval.</p>
74
+ * @public
75
+ */
76
+ export type ApprovalStrategyResponse = ApprovalStrategyResponse.MofNMember | ApprovalStrategyResponse.$UnknownMember;
77
+ /**
78
+ * @public
79
+ */
80
+ export declare namespace ApprovalStrategyResponse {
81
+ /**
82
+ * <p>Minimum number of approvals (M) required for a total number of approvers (N).</p>
83
+ * @public
84
+ */
85
+ interface MofNMember {
86
+ MofN: MofNApprovalStrategy;
87
+ $unknown?: never;
88
+ }
89
+ /**
90
+ * @public
91
+ */
92
+ interface $UnknownMember {
93
+ MofN?: never;
94
+ $unknown: [string, any];
95
+ }
96
+ interface Visitor<T> {
97
+ MofN: (value: MofNApprovalStrategy) => T;
98
+ _: (name: string, value: any) => T;
99
+ }
100
+ const visit: <T>(value: ApprovalStrategyResponse, visitor: Visitor<T>) => T;
101
+ }
102
+ /**
103
+ * <p>The request cannot be completed because it conflicts with the current state of a resource.</p>
104
+ * @public
105
+ */
106
+ export declare class ConflictException extends __BaseException {
107
+ readonly name: "ConflictException";
108
+ readonly $fault: "client";
109
+ /**
110
+ * <p>Message for the <code>ConflictException</code> error.</p>
111
+ * @public
112
+ */
113
+ Message: string | undefined;
114
+ /**
115
+ * @internal
116
+ */
117
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
118
+ }
119
+ /**
120
+ * <p>Contains details for an approver.</p>
121
+ * @public
122
+ */
123
+ export interface ApprovalTeamRequestApprover {
124
+ /**
125
+ * <p>ID for the user.</p>
126
+ * @public
127
+ */
128
+ PrimaryIdentityId: string | undefined;
129
+ /**
130
+ * <p>Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.</p>
131
+ * @public
132
+ */
133
+ PrimaryIdentitySourceArn: string | undefined;
134
+ }
135
+ /**
136
+ * <p>Contains the Amazon Resource Name (ARN) for a policy. Policies define what operations a team that 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>
137
+ * @public
138
+ */
139
+ export interface PolicyReference {
140
+ /**
141
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
142
+ * @public
143
+ */
144
+ PolicyArn: string | undefined;
145
+ }
146
+ /**
147
+ * @public
148
+ */
149
+ export interface CreateApprovalTeamRequest {
150
+ /**
151
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.</p> <note> <p> <b>What is idempotency?</b> </p> <p>When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.</p> <p> <i>Idempotency</i> ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.</p> </note>
152
+ * @public
153
+ */
154
+ ClientToken?: string | undefined;
155
+ /**
156
+ * <p>An <code>ApprovalStrategy</code> object. Contains details for how the team grants approval.</p>
157
+ * @public
158
+ */
159
+ ApprovalStrategy: ApprovalStrategy | undefined;
160
+ /**
161
+ * <p>An array of <code>ApprovalTeamRequesterApprovers</code> objects. Contains details for the approvers in the team.</p>
162
+ * @public
163
+ */
164
+ Approvers: ApprovalTeamRequestApprover[] | undefined;
165
+ /**
166
+ * <p>Description for the team.</p>
167
+ * @public
168
+ */
169
+ Description: string | undefined;
170
+ /**
171
+ * <p>An array of <code>PolicyReference</code> objects. Contains a list of policies that 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>
172
+ * @public
173
+ */
174
+ Policies: PolicyReference[] | undefined;
175
+ /**
176
+ * <p>Name of the team.</p>
177
+ * @public
178
+ */
179
+ Name: string | undefined;
180
+ /**
181
+ * <p>Tags you want to attach to the team.</p>
182
+ * @public
183
+ */
184
+ Tags?: Record<string, string> | undefined;
185
+ }
186
+ /**
187
+ * @public
188
+ */
189
+ export interface CreateApprovalTeamResponse {
190
+ /**
191
+ * <p>Timestamp when the team was created.</p>
192
+ * @public
193
+ */
194
+ CreationTime?: Date | undefined;
195
+ /**
196
+ * <p>Amazon Resource Name (ARN) for the team that was created.</p>
197
+ * @public
198
+ */
199
+ Arn?: string | undefined;
200
+ /**
201
+ * <p>Name of the team that was created.</p>
202
+ * @public
203
+ */
204
+ Name?: string | undefined;
205
+ /**
206
+ * <p>Version ID for the team that was created. When a team is updated, the version ID changes.</p>
207
+ * @public
208
+ */
209
+ VersionId?: string | undefined;
210
+ }
211
+ /**
212
+ * <p>The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.</p>
213
+ * @public
214
+ */
215
+ export declare class InternalServerException extends __BaseException {
216
+ readonly name: "InternalServerException";
217
+ readonly $fault: "server";
218
+ $retryable: {};
219
+ /**
220
+ * <p>Message for the <code>InternalServerException</code> error.</p>
221
+ * @public
222
+ */
223
+ Message: string | undefined;
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
228
+ }
229
+ /**
230
+ * <p>The request exceeds the service quota for your account. Request a quota increase or reduce your request size.</p>
231
+ * @public
232
+ */
233
+ export declare class ServiceQuotaExceededException extends __BaseException {
234
+ readonly name: "ServiceQuotaExceededException";
235
+ readonly $fault: "client";
236
+ /**
237
+ * <p>Message for the <code>ServiceQuotaExceededException</code> error.</p>
238
+ * @public
239
+ */
240
+ Message: string | undefined;
241
+ /**
242
+ * @internal
243
+ */
244
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
245
+ }
246
+ /**
247
+ * <p>The request was denied due to request throttling.</p>
248
+ * @public
249
+ */
250
+ export declare class ThrottlingException extends __BaseException {
251
+ readonly name: "ThrottlingException";
252
+ readonly $fault: "client";
253
+ /**
254
+ * <p>Message for the <code>ThrottlingException</code> error.</p>
255
+ * @public
256
+ */
257
+ Message: string | undefined;
258
+ /**
259
+ * @internal
260
+ */
261
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
262
+ }
263
+ /**
264
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
265
+ * @public
266
+ */
267
+ export declare class ValidationException extends __BaseException {
268
+ readonly name: "ValidationException";
269
+ readonly $fault: "client";
270
+ /**
271
+ * <p>Message for the <code>ValidationException</code> error.</p>
272
+ * @public
273
+ */
274
+ Message: string | undefined;
275
+ /**
276
+ * @internal
277
+ */
278
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
279
+ }
280
+ /**
281
+ * @public
282
+ */
283
+ export interface DeleteInactiveApprovalTeamVersionRequest {
284
+ /**
285
+ * <p>Amaazon Resource Name (ARN) for the team.</p>
286
+ * @public
287
+ */
288
+ Arn: string | undefined;
289
+ /**
290
+ * <p>Version ID for the team.</p>
291
+ * @public
292
+ */
293
+ VersionId: string | undefined;
294
+ }
295
+ /**
296
+ * @public
297
+ */
298
+ export interface DeleteInactiveApprovalTeamVersionResponse {
299
+ }
300
+ /**
301
+ * <p>The specified resource doesn't exist. Check the resource ID, and try again.</p>
302
+ * @public
303
+ */
304
+ export declare class ResourceNotFoundException extends __BaseException {
305
+ readonly name: "ResourceNotFoundException";
306
+ readonly $fault: "client";
307
+ /**
308
+ * <p>Message for the <code>ResourceNotFoundException</code> error.</p>
309
+ * @public
310
+ */
311
+ Message: string | undefined;
312
+ /**
313
+ * @internal
314
+ */
315
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
316
+ }
317
+ /**
318
+ * @public
319
+ */
320
+ export interface GetApprovalTeamRequest {
321
+ /**
322
+ * <p>Amazon Resource Name (ARN) for the team.</p>
323
+ * @public
324
+ */
325
+ Arn: string | undefined;
326
+ }
327
+ /**
328
+ * @public
329
+ * @enum
330
+ */
331
+ export declare const IdentityStatus: {
332
+ readonly ACCEPTED: "ACCEPTED";
333
+ readonly INVALID: "INVALID";
334
+ readonly PENDING: "PENDING";
335
+ readonly REJECTED: "REJECTED";
336
+ };
337
+ /**
338
+ * @public
339
+ */
340
+ export type IdentityStatus = (typeof IdentityStatus)[keyof typeof IdentityStatus];
341
+ /**
342
+ * <p>Contains details for an approver.</p>
343
+ * @public
344
+ */
345
+ export interface GetApprovalTeamResponseApprover {
346
+ /**
347
+ * <p>ID for the approver.</p>
348
+ * @public
349
+ */
350
+ ApproverId?: string | undefined;
351
+ /**
352
+ * <p>Timestamp when the approver responded to an approval team invitation.</p>
353
+ * @public
354
+ */
355
+ ResponseTime?: Date | undefined;
356
+ /**
357
+ * <p>ID for the user.</p>
358
+ * @public
359
+ */
360
+ PrimaryIdentityId?: string | undefined;
361
+ /**
362
+ * <p>Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.</p>
363
+ * @public
364
+ */
365
+ PrimaryIdentitySourceArn?: string | undefined;
366
+ /**
367
+ * <p>Status for the identity source. For example, if an approver has accepted a team invitation with a user authentication method managed by the identity source.</p>
368
+ * @public
369
+ */
370
+ PrimaryIdentityStatus?: IdentityStatus | undefined;
371
+ }
372
+ /**
373
+ * @public
374
+ * @enum
375
+ */
376
+ export declare const ApprovalTeamStatus: {
377
+ readonly ACTIVE: "ACTIVE";
378
+ readonly DELETING: "DELETING";
379
+ readonly INACTIVE: "INACTIVE";
380
+ readonly PENDING: "PENDING";
381
+ };
382
+ /**
383
+ * @public
384
+ */
385
+ export type ApprovalTeamStatus = (typeof ApprovalTeamStatus)[keyof typeof ApprovalTeamStatus];
386
+ /**
387
+ * @public
388
+ * @enum
389
+ */
390
+ export declare const ApprovalTeamStatusCode: {
391
+ readonly DELETE_FAILED_APPROVAL: "DELETE_FAILED_APPROVAL";
392
+ readonly DELETE_FAILED_VALIDATION: "DELETE_FAILED_VALIDATION";
393
+ readonly DELETE_PENDING_APPROVAL: "DELETE_PENDING_APPROVAL";
394
+ readonly FAILED_ACTIVATION: "FAILED_ACTIVATION";
395
+ readonly FAILED_VALIDATION: "FAILED_VALIDATION";
396
+ readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
397
+ readonly UPDATE_FAILED_ACTIVATION: "UPDATE_FAILED_ACTIVATION";
398
+ readonly UPDATE_FAILED_APPROVAL: "UPDATE_FAILED_APPROVAL";
399
+ readonly UPDATE_FAILED_VALIDATION: "UPDATE_FAILED_VALIDATION";
400
+ readonly UPDATE_PENDING_ACTIVATION: "UPDATE_PENDING_ACTIVATION";
401
+ readonly UPDATE_PENDING_APPROVAL: "UPDATE_PENDING_APPROVAL";
402
+ readonly VALIDATING: "VALIDATING";
403
+ };
404
+ /**
405
+ * @public
406
+ */
407
+ export type ApprovalTeamStatusCode = (typeof ApprovalTeamStatusCode)[keyof typeof ApprovalTeamStatusCode];
408
+ /**
409
+ * <p>Contains details for the pending updates for an approval team, if applicable.</p>
410
+ * @public
411
+ */
412
+ export interface PendingUpdate {
413
+ /**
414
+ * <p>Version ID for the team.</p>
415
+ * @public
416
+ */
417
+ VersionId?: string | undefined;
418
+ /**
419
+ * <p>Description for the team.</p>
420
+ * @public
421
+ */
422
+ Description?: string | undefined;
423
+ /**
424
+ * <p>An <code>ApprovalStrategyResponse</code> object. Contains details for how the team grants approval.</p>
425
+ * @public
426
+ */
427
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
428
+ /**
429
+ * <p>Total number of approvers in the team.</p>
430
+ * @public
431
+ */
432
+ NumberOfApprovers?: number | undefined;
433
+ /**
434
+ * <p>Status for the team. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
435
+ * @public
436
+ */
437
+ Status?: ApprovalTeamStatus | undefined;
438
+ /**
439
+ * <p>Status code for the update. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
440
+ * @public
441
+ */
442
+ StatusCode?: ApprovalTeamStatusCode | undefined;
443
+ /**
444
+ * <p>Message describing the status for the team.</p>
445
+ * @public
446
+ */
447
+ StatusMessage?: string | undefined;
448
+ /**
449
+ * <p>An array of <code>GetApprovalTeamResponseApprover </code> objects. Contains details for the approvers in the team.</p>
450
+ * @public
451
+ */
452
+ Approvers?: GetApprovalTeamResponseApprover[] | undefined;
453
+ /**
454
+ * <p>Timestamp when the update request was initiated.</p>
455
+ * @public
456
+ */
457
+ UpdateInitiationTime?: Date | undefined;
458
+ }
459
+ /**
460
+ * @public
461
+ */
462
+ export interface GetApprovalTeamResponse {
463
+ /**
464
+ * <p>Timestamp when the team was created.</p>
465
+ * @public
466
+ */
467
+ CreationTime?: Date | undefined;
468
+ /**
469
+ * <p>An <code>ApprovalStrategyResponse</code> object. Contains details for how the team grants approval.</p>
470
+ * @public
471
+ */
472
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
473
+ /**
474
+ * <p>Total number of approvers in the team.</p>
475
+ * @public
476
+ */
477
+ NumberOfApprovers?: number | undefined;
478
+ /**
479
+ * <p>An array of <code>GetApprovalTeamResponseApprover </code> objects. Contains details for the approvers in the team.</p>
480
+ * @public
481
+ */
482
+ Approvers?: GetApprovalTeamResponseApprover[] | undefined;
483
+ /**
484
+ * <p>Amazon Resource Name (ARN) for the team.</p>
485
+ * @public
486
+ */
487
+ Arn?: string | undefined;
488
+ /**
489
+ * <p>Description for the team.</p>
490
+ * @public
491
+ */
492
+ Description?: string | undefined;
493
+ /**
494
+ * <p>Name of the approval team.</p>
495
+ * @public
496
+ */
497
+ Name?: string | undefined;
498
+ /**
499
+ * <p>Status for the team. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
500
+ * @public
501
+ */
502
+ Status?: ApprovalTeamStatus | undefined;
503
+ /**
504
+ * <p>Status code for the approval team. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
505
+ * @public
506
+ */
507
+ StatusCode?: ApprovalTeamStatusCode | undefined;
508
+ /**
509
+ * <p>Message describing the status for the team.</p>
510
+ * @public
511
+ */
512
+ StatusMessage?: string | undefined;
513
+ /**
514
+ * <p>Amazon Resource Name (ARN) for the session.</p>
515
+ * @public
516
+ */
517
+ UpdateSessionArn?: string | undefined;
518
+ /**
519
+ * <p>Version ID for the team.</p>
520
+ * @public
521
+ */
522
+ VersionId?: string | undefined;
523
+ /**
524
+ * <p>An array of <code>PolicyReference</code> objects. Contains a list of policies that 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>
525
+ * @public
526
+ */
527
+ Policies?: PolicyReference[] | undefined;
528
+ /**
529
+ * <p>Timestamp when the team was last updated.</p>
530
+ * @public
531
+ */
532
+ LastUpdateTime?: Date | undefined;
533
+ /**
534
+ * <p>A <code>PendingUpdate</code> object. Contains details for the pending updates for the team, if applicable.</p>
535
+ * @public
536
+ */
537
+ PendingUpdate?: PendingUpdate | undefined;
538
+ }
539
+ /**
540
+ * @public
541
+ */
542
+ export interface ListApprovalTeamsRequest {
543
+ /**
544
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
545
+ * @public
546
+ */
547
+ MaxResults?: number | undefined;
548
+ /**
549
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
550
+ * @public
551
+ */
552
+ NextToken?: string | undefined;
553
+ }
554
+ /**
555
+ * <p>Contains details for an approval team</p>
556
+ * @public
557
+ */
558
+ export interface ListApprovalTeamsResponseApprovalTeam {
559
+ /**
560
+ * <p>Timestamp when the team was created.</p>
561
+ * @public
562
+ */
563
+ CreationTime?: Date | undefined;
564
+ /**
565
+ * <p>An <code>ApprovalStrategyResponse</code> object. Contains details for how an approval team grants approval.</p>
566
+ * @public
567
+ */
568
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
569
+ /**
570
+ * <p>Total number of approvers in the team.</p>
571
+ * @public
572
+ */
573
+ NumberOfApprovers?: number | undefined;
574
+ /**
575
+ * <p>Amazon Resource Name (ARN) for the team.</p>
576
+ * @public
577
+ */
578
+ Arn?: string | undefined;
579
+ /**
580
+ * <p>Name of the team.</p>
581
+ * @public
582
+ */
583
+ Name?: string | undefined;
584
+ /**
585
+ * <p>Description for the team.</p>
586
+ * @public
587
+ */
588
+ Description?: string | undefined;
589
+ /**
590
+ * <p>Status for the team. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
591
+ * @public
592
+ */
593
+ Status?: ApprovalTeamStatus | undefined;
594
+ /**
595
+ * <p>Status code for the team. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Team health</a> in the <i>Multi-party approval User Guide</i>.</p>
596
+ * @public
597
+ */
598
+ StatusCode?: ApprovalTeamStatusCode | undefined;
599
+ /**
600
+ * <p>Message describing the status for the team.</p>
601
+ * @public
602
+ */
603
+ StatusMessage?: string | undefined;
604
+ }
605
+ /**
606
+ * @public
607
+ */
608
+ export interface ListApprovalTeamsResponse {
609
+ /**
610
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
611
+ * @public
612
+ */
613
+ NextToken?: string | undefined;
614
+ /**
615
+ * <p>An array of <code>ListApprovalTeamsResponseApprovalTeam</code> objects. Contains details for approval teams.</p>
616
+ * @public
617
+ */
618
+ ApprovalTeams?: ListApprovalTeamsResponseApprovalTeam[] | undefined;
619
+ }
620
+ /**
621
+ * @public
622
+ */
623
+ export interface StartActiveApprovalTeamDeletionRequest {
624
+ /**
625
+ * <p>Number of days between when the team approves the delete request and when the team is deleted.</p>
626
+ * @public
627
+ */
628
+ PendingWindowDays?: number | undefined;
629
+ /**
630
+ * <p>Amazon Resource Name (ARN) for the team.</p>
631
+ * @public
632
+ */
633
+ Arn: string | undefined;
634
+ }
635
+ /**
636
+ * @public
637
+ */
638
+ export interface StartActiveApprovalTeamDeletionResponse {
639
+ /**
640
+ * <p>Timestamp when the deletion process is scheduled to complete.</p>
641
+ * @public
642
+ */
643
+ DeletionCompletionTime?: Date | undefined;
644
+ /**
645
+ * <p>Timestamp when the deletion process was initiated.</p>
646
+ * @public
647
+ */
648
+ DeletionStartTime?: Date | undefined;
649
+ }
650
+ /**
651
+ * @public
652
+ */
653
+ export interface UpdateApprovalTeamRequest {
654
+ /**
655
+ * <p>An <code>ApprovalStrategy</code> object. Contains details for how the team grants approval.</p>
656
+ * @public
657
+ */
658
+ ApprovalStrategy?: ApprovalStrategy | undefined;
659
+ /**
660
+ * <p>An array of <code>ApprovalTeamRequestApprover</code> objects. Contains details for the approvers in the team.</p>
661
+ * @public
662
+ */
663
+ Approvers?: ApprovalTeamRequestApprover[] | undefined;
664
+ /**
665
+ * <p>Description for the team.</p>
666
+ * @public
667
+ */
668
+ Description?: string | undefined;
669
+ /**
670
+ * <p>Amazon Resource Name (ARN) for the team.</p>
671
+ * @public
672
+ */
673
+ Arn: string | undefined;
674
+ }
675
+ /**
676
+ * @public
677
+ */
678
+ export interface UpdateApprovalTeamResponse {
679
+ /**
680
+ * <p>Version ID for the team that was created. When an approval team is updated, the version ID changes.</p>
681
+ * @public
682
+ */
683
+ VersionId?: string | undefined;
684
+ }
685
+ /**
686
+ * @public
687
+ */
688
+ export interface GetPolicyVersionRequest {
689
+ /**
690
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
691
+ * @public
692
+ */
693
+ PolicyVersionArn: string | undefined;
694
+ }
695
+ /**
696
+ * @public
697
+ * @enum
698
+ */
699
+ export declare const PolicyType: {
700
+ readonly AWS_MANAGED: "AWS_MANAGED";
701
+ readonly AWS_RAM: "AWS_RAM";
702
+ };
703
+ /**
704
+ * @public
705
+ */
706
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
707
+ /**
708
+ * @public
709
+ * @enum
710
+ */
711
+ export declare const PolicyStatus: {
712
+ readonly ATTACHABLE: "ATTACHABLE";
713
+ readonly DEPRECATED: "DEPRECATED";
714
+ };
715
+ /**
716
+ * @public
717
+ */
718
+ export type PolicyStatus = (typeof PolicyStatus)[keyof typeof PolicyStatus];
719
+ /**
720
+ * <p>Contains details for the version of a policy. Policies define what operations a team that 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>
721
+ * @public
722
+ */
723
+ export interface PolicyVersion {
724
+ /**
725
+ * <p>Amazon Resource Name (ARN) for the team.</p>
726
+ * @public
727
+ */
728
+ Arn: string | undefined;
729
+ /**
730
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
731
+ * @public
732
+ */
733
+ PolicyArn: string | undefined;
734
+ /**
735
+ * <p>Verison ID</p>
736
+ * @public
737
+ */
738
+ VersionId: number | undefined;
739
+ /**
740
+ * <p>The type of policy.</p>
741
+ * @public
742
+ */
743
+ PolicyType: PolicyType | undefined;
744
+ /**
745
+ * <p>Determines if the specified policy is the default for the team.</p>
746
+ * @public
747
+ */
748
+ IsDefault: boolean | undefined;
749
+ /**
750
+ * <p>Name of the policy.</p>
751
+ * @public
752
+ */
753
+ Name: string | undefined;
754
+ /**
755
+ * <p>Status for the policy. For example, if the policy is <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_attach-policy.html">attachable</a> or <a href="https://docs.aws.amazon.com/access_policies_managed-deprecated.html">deprecated</a>.</p>
756
+ * @public
757
+ */
758
+ Status: PolicyStatus | undefined;
759
+ /**
760
+ * <p>Timestamp when the policy was created.</p>
761
+ * @public
762
+ */
763
+ CreationTime: Date | undefined;
764
+ /**
765
+ * <p>Timestamp when the policy was last updated.</p>
766
+ * @public
767
+ */
768
+ LastUpdatedTime: Date | undefined;
769
+ /**
770
+ * <p>Document that contains the policy contents.</p>
771
+ * @public
772
+ */
773
+ Document: string | undefined;
774
+ }
775
+ /**
776
+ * @public
777
+ */
778
+ export interface GetPolicyVersionResponse {
779
+ /**
780
+ * <p>A <code>PolicyVersion</code> object. Contains details for the version of the policy. 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>
781
+ * @public
782
+ */
783
+ PolicyVersion: PolicyVersion | undefined;
784
+ }
785
+ /**
786
+ * @public
787
+ */
788
+ export interface GetResourcePolicyRequest {
789
+ /**
790
+ * <p>Amazon Resource Name (ARN) for the resource.</p>
791
+ * @public
792
+ */
793
+ ResourceArn: string | undefined;
794
+ /**
795
+ * <p>Name of the policy.</p>
796
+ * @public
797
+ */
798
+ PolicyName: string | undefined;
799
+ /**
800
+ * <p>The type of policy.</p>
801
+ * @public
802
+ */
803
+ PolicyType: PolicyType | undefined;
804
+ }
805
+ /**
806
+ * @public
807
+ */
808
+ export interface GetResourcePolicyResponse {
809
+ /**
810
+ * <p>Amazon Resource Name (ARN) for the resource.</p>
811
+ * @public
812
+ */
813
+ ResourceArn: string | undefined;
814
+ /**
815
+ * <p>The type of policy</p>
816
+ * @public
817
+ */
818
+ PolicyType: PolicyType | undefined;
819
+ /**
820
+ * <p>Amazon Resource Name (ARN) for the policy version.</p>
821
+ * @public
822
+ */
823
+ PolicyVersionArn?: string | undefined;
824
+ /**
825
+ * <p>Name of the policy.</p>
826
+ * @public
827
+ */
828
+ PolicyName: string | undefined;
829
+ /**
830
+ * <p>Document that contains the contents for the policy.</p>
831
+ * @public
832
+ */
833
+ PolicyDocument: string | undefined;
834
+ }
835
+ /**
836
+ * <p>The request contains an invalid parameter value.</p>
837
+ * @public
838
+ */
839
+ export declare class InvalidParameterException extends __BaseException {
840
+ readonly name: "InvalidParameterException";
841
+ readonly $fault: "client";
842
+ /**
843
+ * <p>Message for the <code>InvalidParameterException</code> error.</p>
844
+ * @public
845
+ */
846
+ Message: string | undefined;
847
+ /**
848
+ * @internal
849
+ */
850
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
851
+ }
852
+ /**
853
+ * <p>IAM Identity Center credentials. For more information see, <a href="http://aws.amazon.com/identity-center/">IAM Identity Center</a> .</p>
854
+ * @public
855
+ */
856
+ export interface IamIdentityCenter {
857
+ /**
858
+ * <p>Amazon Resource Name (ARN) for the IAM Identity Center instance.</p>
859
+ * @public
860
+ */
861
+ InstanceArn: string | undefined;
862
+ /**
863
+ * <p>Amazon Web Services Region where the IAM Identity Center instance is located.</p>
864
+ * @public
865
+ */
866
+ Region: string | undefined;
867
+ }
868
+ /**
869
+ * <p>Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.</p>
870
+ * @public
871
+ */
872
+ export interface IdentitySourceParameters {
873
+ /**
874
+ * <p>IAM Identity Center credentials.</p>
875
+ * @public
876
+ */
877
+ IamIdentityCenter?: IamIdentityCenter | undefined;
878
+ }
879
+ /**
880
+ * @public
881
+ */
882
+ export interface CreateIdentitySourceRequest {
883
+ /**
884
+ * <p>A <code> IdentitySourceParameters</code> object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.</p>
885
+ * @public
886
+ */
887
+ IdentitySourceParameters: IdentitySourceParameters | undefined;
888
+ /**
889
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.</p> <note> <p> <b>What is idempotency?</b> </p> <p>When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.</p> <p> <i>Idempotency</i> ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.</p> </note>
890
+ * @public
891
+ */
892
+ ClientToken?: string | undefined;
893
+ /**
894
+ * <p>Tag you want to attach to the identity source.</p>
895
+ * @public
896
+ */
897
+ Tags?: Record<string, string> | undefined;
898
+ }
899
+ /**
900
+ * @public
901
+ * @enum
902
+ */
903
+ export declare const IdentitySourceType: {
904
+ readonly IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER";
905
+ };
906
+ /**
907
+ * @public
908
+ */
909
+ export type IdentitySourceType = (typeof IdentitySourceType)[keyof typeof IdentitySourceType];
910
+ /**
911
+ * @public
912
+ */
913
+ export interface CreateIdentitySourceResponse {
914
+ /**
915
+ * <p>The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.</p>
916
+ * @public
917
+ */
918
+ IdentitySourceType?: IdentitySourceType | undefined;
919
+ /**
920
+ * <p>Amazon Resource Name (ARN) for the identity source that was created.</p>
921
+ * @public
922
+ */
923
+ IdentitySourceArn?: string | undefined;
924
+ /**
925
+ * <p>Timestamp when the identity source was created.</p>
926
+ * @public
927
+ */
928
+ CreationTime?: Date | undefined;
929
+ }
930
+ /**
931
+ * @public
932
+ */
933
+ export interface DeleteIdentitySourceRequest {
934
+ /**
935
+ * <p>Amazon Resource Name (ARN) for identity source.</p>
936
+ * @public
937
+ */
938
+ IdentitySourceArn: string | undefined;
939
+ }
940
+ /**
941
+ * @public
942
+ */
943
+ export interface GetIdentitySourceRequest {
944
+ /**
945
+ * <p>Amazon Resource Name (ARN) for the identity source.</p>
946
+ * @public
947
+ */
948
+ IdentitySourceArn: string | undefined;
949
+ }
950
+ /**
951
+ * <p>IAM Identity Center credentials. For more information see, <a href="http://aws.amazon.com/identity-center/">IAM Identity Center</a> .</p>
952
+ * @public
953
+ */
954
+ export interface IamIdentityCenterForGet {
955
+ /**
956
+ * <p>Amazon Resource Name (ARN) for the IAM Identity Center instance.</p>
957
+ * @public
958
+ */
959
+ InstanceArn?: string | undefined;
960
+ /**
961
+ * <p>URL for the approval portal associated with the IAM Identity Center instance.</p>
962
+ * @public
963
+ */
964
+ ApprovalPortalUrl?: string | undefined;
965
+ /**
966
+ * <p>Amazon Web Services Region where the IAM Identity Center instance is located.</p>
967
+ * @public
968
+ */
969
+ Region?: string | undefined;
970
+ }
971
+ /**
972
+ * <p>Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity source</a> in the <i>Multi-party approval User Guide</i>.</p>
973
+ * @public
974
+ */
975
+ export type IdentitySourceParametersForGet = IdentitySourceParametersForGet.IamIdentityCenterMember | IdentitySourceParametersForGet.$UnknownMember;
976
+ /**
977
+ * @public
978
+ */
979
+ export declare namespace IdentitySourceParametersForGet {
980
+ /**
981
+ * <p>IAM Identity Center credentials.</p>
982
+ * @public
983
+ */
984
+ interface IamIdentityCenterMember {
985
+ IamIdentityCenter: IamIdentityCenterForGet;
986
+ $unknown?: never;
987
+ }
988
+ /**
989
+ * @public
990
+ */
991
+ interface $UnknownMember {
992
+ IamIdentityCenter?: never;
993
+ $unknown: [string, any];
994
+ }
995
+ interface Visitor<T> {
996
+ IamIdentityCenter: (value: IamIdentityCenterForGet) => T;
997
+ _: (name: string, value: any) => T;
998
+ }
999
+ const visit: <T>(value: IdentitySourceParametersForGet, visitor: Visitor<T>) => T;
1000
+ }
1001
+ /**
1002
+ * @public
1003
+ * @enum
1004
+ */
1005
+ export declare const IdentitySourceStatus: {
1006
+ readonly ACTIVE: "ACTIVE";
1007
+ readonly CREATING: "CREATING";
1008
+ readonly DELETING: "DELETING";
1009
+ readonly ERROR: "ERROR";
1010
+ };
1011
+ /**
1012
+ * @public
1013
+ */
1014
+ export type IdentitySourceStatus = (typeof IdentitySourceStatus)[keyof typeof IdentitySourceStatus];
1015
+ /**
1016
+ * @public
1017
+ * @enum
1018
+ */
1019
+ export declare const IdentitySourceStatusCode: {
1020
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
1021
+ readonly DELETION_FAILED: "DELETION_FAILED";
1022
+ readonly IDC_INSTANCE_NOT_FOUND: "IDC_INSTANCE_NOT_FOUND";
1023
+ readonly IDC_INSTANCE_NOT_VALID: "IDC_INSTANCE_NOT_VALID";
1024
+ };
1025
+ /**
1026
+ * @public
1027
+ */
1028
+ export type IdentitySourceStatusCode = (typeof IdentitySourceStatusCode)[keyof typeof IdentitySourceStatusCode];
1029
+ /**
1030
+ * @public
1031
+ */
1032
+ export interface GetIdentitySourceResponse {
1033
+ /**
1034
+ * <p>The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.</p>
1035
+ * @public
1036
+ */
1037
+ IdentitySourceType?: IdentitySourceType | undefined;
1038
+ /**
1039
+ * <p>A <code> IdentitySourceParameters</code> object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.</p>
1040
+ * @public
1041
+ */
1042
+ IdentitySourceParameters?: IdentitySourceParametersForGet | undefined;
1043
+ /**
1044
+ * <p>Amazon Resource Name (ARN) for the identity source.</p>
1045
+ * @public
1046
+ */
1047
+ IdentitySourceArn?: string | undefined;
1048
+ /**
1049
+ * <p>Timestamp when the identity source was created.</p>
1050
+ * @public
1051
+ */
1052
+ CreationTime?: Date | undefined;
1053
+ /**
1054
+ * <p>Status for the identity source. For example, if the identity source is <code>ACTIVE</code>.</p>
1055
+ * @public
1056
+ */
1057
+ Status?: IdentitySourceStatus | undefined;
1058
+ /**
1059
+ * <p>Status code of the identity source.</p>
1060
+ * @public
1061
+ */
1062
+ StatusCode?: IdentitySourceStatusCode | undefined;
1063
+ /**
1064
+ * <p>Message describing the status for the identity source.</p>
1065
+ * @public
1066
+ */
1067
+ StatusMessage?: string | undefined;
1068
+ }
1069
+ /**
1070
+ * @public
1071
+ */
1072
+ export interface ListIdentitySourcesRequest {
1073
+ /**
1074
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
1075
+ * @public
1076
+ */
1077
+ MaxResults?: number | undefined;
1078
+ /**
1079
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1080
+ * @public
1081
+ */
1082
+ NextToken?: string | undefined;
1083
+ }
1084
+ /**
1085
+ * <p>IAM Identity Center credentials. For more information see, <a href="http://aws.amazon.com/identity-center/">IAM Identity Center</a> .</p>
1086
+ * @public
1087
+ */
1088
+ export interface IamIdentityCenterForList {
1089
+ /**
1090
+ * <p>Amazon Resource Name (ARN) for the IAM Identity Center instance.</p>
1091
+ * @public
1092
+ */
1093
+ InstanceArn?: string | undefined;
1094
+ /**
1095
+ * <p>URL for the approval portal associated with the IAM Identity Center instance.</p>
1096
+ * @public
1097
+ */
1098
+ ApprovalPortalUrl?: string | undefined;
1099
+ /**
1100
+ * <p>Amazon Web Services Region where the IAM Identity Center instance is located.</p>
1101
+ * @public
1102
+ */
1103
+ Region?: string | undefined;
1104
+ }
1105
+ /**
1106
+ * <p>Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity source</a> in the <i>Multi-party approval User Guide</i>.</p>
1107
+ * @public
1108
+ */
1109
+ export type IdentitySourceParametersForList = IdentitySourceParametersForList.IamIdentityCenterMember | IdentitySourceParametersForList.$UnknownMember;
1110
+ /**
1111
+ * @public
1112
+ */
1113
+ export declare namespace IdentitySourceParametersForList {
1114
+ /**
1115
+ * <p>IAM Identity Center credentials.</p>
1116
+ * @public
1117
+ */
1118
+ interface IamIdentityCenterMember {
1119
+ IamIdentityCenter: IamIdentityCenterForList;
1120
+ $unknown?: never;
1121
+ }
1122
+ /**
1123
+ * @public
1124
+ */
1125
+ interface $UnknownMember {
1126
+ IamIdentityCenter?: never;
1127
+ $unknown: [string, any];
1128
+ }
1129
+ interface Visitor<T> {
1130
+ IamIdentityCenter: (value: IamIdentityCenterForList) => T;
1131
+ _: (name: string, value: any) => T;
1132
+ }
1133
+ const visit: <T>(value: IdentitySourceParametersForList, visitor: Visitor<T>) => T;
1134
+ }
1135
+ /**
1136
+ * <p>Contains details for an identity source. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-concepts.html">Identity source</a> in the <i>Multi-party approval User Guide</i>.</p>
1137
+ * @public
1138
+ */
1139
+ export interface IdentitySourceForList {
1140
+ /**
1141
+ * <p>The type of resource that provided identities to the identity source. For example, an IAM Identity Center instance.</p>
1142
+ * @public
1143
+ */
1144
+ IdentitySourceType?: IdentitySourceType | undefined;
1145
+ /**
1146
+ * <p>A <code>IdentitySourceParametersForList</code> object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.</p>
1147
+ * @public
1148
+ */
1149
+ IdentitySourceParameters?: IdentitySourceParametersForList | undefined;
1150
+ /**
1151
+ * <p>Amazon Resource Name (ARN) for the identity source.</p>
1152
+ * @public
1153
+ */
1154
+ IdentitySourceArn?: string | undefined;
1155
+ /**
1156
+ * <p>Timestamp when the identity source was created.</p>
1157
+ * @public
1158
+ */
1159
+ CreationTime?: Date | undefined;
1160
+ /**
1161
+ * <p>Status for the identity source. For example, if the identity source is <code>ACTIVE</code>.</p>
1162
+ * @public
1163
+ */
1164
+ Status?: IdentitySourceStatus | undefined;
1165
+ /**
1166
+ * <p>Status code of the identity source.</p>
1167
+ * @public
1168
+ */
1169
+ StatusCode?: IdentitySourceStatusCode | undefined;
1170
+ /**
1171
+ * <p>Message describing the status for the identity source.</p>
1172
+ * @public
1173
+ */
1174
+ StatusMessage?: string | undefined;
1175
+ }
1176
+ /**
1177
+ * @public
1178
+ */
1179
+ export interface ListIdentitySourcesResponse {
1180
+ /**
1181
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1182
+ * @public
1183
+ */
1184
+ NextToken?: string | undefined;
1185
+ /**
1186
+ * <p>A <code>IdentitySources</code>. Contains details for identity sources.</p>
1187
+ * @public
1188
+ */
1189
+ IdentitySources?: IdentitySourceForList[] | undefined;
1190
+ }
1191
+ /**
1192
+ * @public
1193
+ */
1194
+ export interface ListPoliciesRequest {
1195
+ /**
1196
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
1197
+ * @public
1198
+ */
1199
+ MaxResults?: number | undefined;
1200
+ /**
1201
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1202
+ * @public
1203
+ */
1204
+ NextToken?: string | undefined;
1205
+ }
1206
+ /**
1207
+ * <p>Contains details for a policy. Policies define what operations a team that 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>
1208
+ * @public
1209
+ */
1210
+ export interface Policy {
1211
+ /**
1212
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
1213
+ * @public
1214
+ */
1215
+ Arn: string | undefined;
1216
+ /**
1217
+ * <p>Determines if the specified policy is the default for the team.</p>
1218
+ * @public
1219
+ */
1220
+ DefaultVersion: number | undefined;
1221
+ /**
1222
+ * <p>The type of policy.</p>
1223
+ * @public
1224
+ */
1225
+ PolicyType: PolicyType | undefined;
1226
+ /**
1227
+ * <p>Name of the policy.</p>
1228
+ * @public
1229
+ */
1230
+ Name: string | undefined;
1231
+ }
1232
+ /**
1233
+ * @public
1234
+ */
1235
+ export interface ListPoliciesResponse {
1236
+ /**
1237
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1238
+ * @public
1239
+ */
1240
+ NextToken?: string | undefined;
1241
+ /**
1242
+ * <p>An array of <code>Policy</code> objects. Contains a list of policies that 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>
1243
+ * @public
1244
+ */
1245
+ Policies?: Policy[] | undefined;
1246
+ }
1247
+ /**
1248
+ * @public
1249
+ */
1250
+ export interface ListPolicyVersionsRequest {
1251
+ /**
1252
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
1253
+ * @public
1254
+ */
1255
+ MaxResults?: number | undefined;
1256
+ /**
1257
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1258
+ * @public
1259
+ */
1260
+ NextToken?: string | undefined;
1261
+ /**
1262
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
1263
+ * @public
1264
+ */
1265
+ PolicyArn: string | undefined;
1266
+ }
1267
+ /**
1268
+ * <p>Contains details for the version of a policy. Policies define what operations a team that 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>
1269
+ * @public
1270
+ */
1271
+ export interface PolicyVersionSummary {
1272
+ /**
1273
+ * <p>Amazon Resource Name (ARN) for the team.</p>
1274
+ * @public
1275
+ */
1276
+ Arn: string | undefined;
1277
+ /**
1278
+ * <p>Amazon Resource Name (ARN) for the policy.</p>
1279
+ * @public
1280
+ */
1281
+ PolicyArn: string | undefined;
1282
+ /**
1283
+ * <p>Version ID for the policy.</p>
1284
+ * @public
1285
+ */
1286
+ VersionId: number | undefined;
1287
+ /**
1288
+ * <p>The type of policy.</p>
1289
+ * @public
1290
+ */
1291
+ PolicyType: PolicyType | undefined;
1292
+ /**
1293
+ * <p>Determines if the specified policy is the default for the team.</p>
1294
+ * @public
1295
+ */
1296
+ IsDefault: boolean | undefined;
1297
+ /**
1298
+ * <p>Name of the policy</p>
1299
+ * @public
1300
+ */
1301
+ Name: string | undefined;
1302
+ /**
1303
+ * <p>Status for the policy. For example, if the policy is <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_attach-policy.html">attachable</a> or <a href="https://docs.aws.amazon.com/access_policies_managed-deprecated.html">deprecated</a>.</p>
1304
+ * @public
1305
+ */
1306
+ Status: PolicyStatus | undefined;
1307
+ /**
1308
+ * <p>Timestamp when the policy was created.</p>
1309
+ * @public
1310
+ */
1311
+ CreationTime: Date | undefined;
1312
+ /**
1313
+ * <p>Timestamp when the policy was last updated.</p>
1314
+ * @public
1315
+ */
1316
+ LastUpdatedTime: Date | undefined;
1317
+ }
1318
+ /**
1319
+ * @public
1320
+ */
1321
+ export interface ListPolicyVersionsResponse {
1322
+ /**
1323
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1324
+ * @public
1325
+ */
1326
+ NextToken?: string | undefined;
1327
+ /**
1328
+ * <p>An array of <code>PolicyVersionSummary</code> objects. Contains details for the version of the policies that 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>
1329
+ * @public
1330
+ */
1331
+ PolicyVersions?: PolicyVersionSummary[] | undefined;
1332
+ }
1333
+ /**
1334
+ * @public
1335
+ */
1336
+ export interface ListResourcePoliciesRequest {
1337
+ /**
1338
+ * <p>Amazon Resource Name (ARN) for the resource.</p>
1339
+ * @public
1340
+ */
1341
+ ResourceArn: string | undefined;
1342
+ /**
1343
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
1344
+ * @public
1345
+ */
1346
+ MaxResults?: number | undefined;
1347
+ /**
1348
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1349
+ * @public
1350
+ */
1351
+ NextToken?: string | undefined;
1352
+ }
1353
+ /**
1354
+ * <p>Contains details about a policy for a resource.</p>
1355
+ * @public
1356
+ */
1357
+ export interface ListResourcePoliciesResponseResourcePolicy {
1358
+ /**
1359
+ * <p>Amazon Resource Name (ARN) for policy.</p>
1360
+ * @public
1361
+ */
1362
+ PolicyArn?: string | undefined;
1363
+ /**
1364
+ * <p>The type of policy.</p>
1365
+ * @public
1366
+ */
1367
+ PolicyType?: PolicyType | undefined;
1368
+ /**
1369
+ * <p>Name of the policy.</p>
1370
+ * @public
1371
+ */
1372
+ PolicyName?: string | undefined;
1373
+ }
1374
+ /**
1375
+ * @public
1376
+ */
1377
+ export interface ListResourcePoliciesResponse {
1378
+ /**
1379
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1380
+ * @public
1381
+ */
1382
+ NextToken?: string | undefined;
1383
+ /**
1384
+ * <p>An array of <code>ListResourcePoliciesResponseResourcePolicy</code> objects. Contains details about the policy for the resource.</p>
1385
+ * @public
1386
+ */
1387
+ ResourcePolicies?: ListResourcePoliciesResponseResourcePolicy[] | undefined;
1388
+ }
1389
+ /**
1390
+ * @public
1391
+ */
1392
+ export interface ListTagsForResourceRequest {
1393
+ /**
1394
+ * <p>Amazon Resource Name (ARN) for the resource.</p>
1395
+ * @public
1396
+ */
1397
+ ResourceArn: string | undefined;
1398
+ }
1399
+ /**
1400
+ * @public
1401
+ */
1402
+ export interface ListTagsForResourceResponse {
1403
+ /**
1404
+ * <p>Tags attached to the resource.</p>
1405
+ * @public
1406
+ */
1407
+ Tags?: Record<string, string> | undefined;
1408
+ }
1409
+ /**
1410
+ * @public
1411
+ */
1412
+ export interface CancelSessionRequest {
1413
+ /**
1414
+ * <p>Amazon Resource Name (ARN) for the session.</p>
1415
+ * @public
1416
+ */
1417
+ SessionArn: string | undefined;
1418
+ }
1419
+ /**
1420
+ * @public
1421
+ */
1422
+ export interface CancelSessionResponse {
1423
+ }
1424
+ /**
1425
+ * @public
1426
+ */
1427
+ export interface GetSessionRequest {
1428
+ /**
1429
+ * <p>Amazon Resource Name (ARN) for the session.</p>
1430
+ * @public
1431
+ */
1432
+ SessionArn: string | undefined;
1433
+ }
1434
+ /**
1435
+ * @public
1436
+ * @enum
1437
+ */
1438
+ export declare const SessionResponse: {
1439
+ readonly APPROVED: "APPROVED";
1440
+ readonly NO_RESPONSE: "NO_RESPONSE";
1441
+ readonly REJECTED: "REJECTED";
1442
+ };
1443
+ /**
1444
+ * @public
1445
+ */
1446
+ export type SessionResponse = (typeof SessionResponse)[keyof typeof SessionResponse];
1447
+ /**
1448
+ * <p>Contains details for an approver response in an approval session.</p>
1449
+ * @public
1450
+ */
1451
+ export interface GetSessionResponseApproverResponse {
1452
+ /**
1453
+ * <p>ID for the approver.</p>
1454
+ * @public
1455
+ */
1456
+ ApproverId?: string | undefined;
1457
+ /**
1458
+ * <p>Amazon Resource Name (ARN) for the identity source. The identity source manages the user authentication for approvers.</p>
1459
+ * @public
1460
+ */
1461
+ IdentitySourceArn?: string | undefined;
1462
+ /**
1463
+ * <p>ID for the identity source. The identity source manages the user authentication for approvers.</p>
1464
+ * @public
1465
+ */
1466
+ IdentityId?: string | undefined;
1467
+ /**
1468
+ * <p>Response to the operation request.</p>
1469
+ * @public
1470
+ */
1471
+ Response?: SessionResponse | undefined;
1472
+ /**
1473
+ * <p>Timestamp when a approver responded to the operation request.</p>
1474
+ * @public
1475
+ */
1476
+ ResponseTime?: Date | undefined;
1477
+ }
1478
+ /**
1479
+ * @public
1480
+ * @enum
1481
+ */
1482
+ export declare const SessionExecutionStatus: {
1483
+ readonly EXECUTED: "EXECUTED";
1484
+ readonly FAILED: "FAILED";
1485
+ readonly PENDING: "PENDING";
1486
+ };
1487
+ /**
1488
+ * @public
1489
+ */
1490
+ export type SessionExecutionStatus = (typeof SessionExecutionStatus)[keyof typeof SessionExecutionStatus];
1491
+ /**
1492
+ * @public
1493
+ * @enum
1494
+ */
1495
+ export declare const SessionStatus: {
1496
+ readonly APPROVED: "APPROVED";
1497
+ readonly CANCELLED: "CANCELLED";
1498
+ readonly CREATING: "CREATING";
1499
+ readonly FAILED: "FAILED";
1500
+ readonly PENDING: "PENDING";
1501
+ };
1502
+ /**
1503
+ * @public
1504
+ */
1505
+ export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
1506
+ /**
1507
+ * @public
1508
+ * @enum
1509
+ */
1510
+ export declare const SessionStatusCode: {
1511
+ readonly CONFIGURATION_CHANGED: "CONFIGURATION_CHANGED";
1512
+ readonly EXPIRED: "EXPIRED";
1513
+ readonly REJECTED: "REJECTED";
1514
+ };
1515
+ /**
1516
+ * @public
1517
+ */
1518
+ export type SessionStatusCode = (typeof SessionStatusCode)[keyof typeof SessionStatusCode];
1519
+ /**
1520
+ * @public
1521
+ */
1522
+ export interface GetSessionResponse {
1523
+ /**
1524
+ * <p>Amazon Resource Name (ARN) for the session.</p>
1525
+ * @public
1526
+ */
1527
+ SessionArn?: string | undefined;
1528
+ /**
1529
+ * <p>Amazon Resource Name (ARN) for the approval team.</p>
1530
+ * @public
1531
+ */
1532
+ ApprovalTeamArn?: string | undefined;
1533
+ /**
1534
+ * <p>Name of the approval team.</p>
1535
+ * @public
1536
+ */
1537
+ ApprovalTeamName?: string | undefined;
1538
+ /**
1539
+ * <p>Amazon Resource Name (ARN) for the protected operation.</p>
1540
+ * @public
1541
+ */
1542
+ ProtectedResourceArn?: string | undefined;
1543
+ /**
1544
+ * <p>An <code>ApprovalStrategyResponse</code> object. Contains details for how the team grants approval</p>
1545
+ * @public
1546
+ */
1547
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
1548
+ /**
1549
+ * <p>Total number of approvers in the session.</p>
1550
+ * @public
1551
+ */
1552
+ NumberOfApprovers?: number | undefined;
1553
+ /**
1554
+ * <p>Timestamp when the session was initiated.</p>
1555
+ * @public
1556
+ */
1557
+ InitiationTime?: Date | undefined;
1558
+ /**
1559
+ * <p>Timestamp when the session will expire.</p>
1560
+ * @public
1561
+ */
1562
+ ExpirationTime?: Date | undefined;
1563
+ /**
1564
+ * <p>Timestamp when the session completed.</p>
1565
+ * @public
1566
+ */
1567
+ CompletionTime?: Date | undefined;
1568
+ /**
1569
+ * <p>Description for the session.</p>
1570
+ * @public
1571
+ */
1572
+ Description?: string | undefined;
1573
+ /**
1574
+ * <p>Metadata for the session.</p>
1575
+ * @public
1576
+ */
1577
+ Metadata?: Record<string, string> | undefined;
1578
+ /**
1579
+ * <p>Status for the session. For example, if the team has approved the requested operation.</p>
1580
+ * @public
1581
+ */
1582
+ Status?: SessionStatus | undefined;
1583
+ /**
1584
+ * <p>Status code of the session.</p>
1585
+ * @public
1586
+ */
1587
+ StatusCode?: SessionStatusCode | undefined;
1588
+ /**
1589
+ * <p>Message describing the status for session.</p>
1590
+ * @public
1591
+ */
1592
+ StatusMessage?: string | undefined;
1593
+ /**
1594
+ * <p>Status for the protected operation. For example, if the operation is <code>PENDING</code>.</p>
1595
+ * @public
1596
+ */
1597
+ ExecutionStatus?: SessionExecutionStatus | undefined;
1598
+ /**
1599
+ * <p>Name of the protected operation.</p>
1600
+ * @public
1601
+ */
1602
+ ActionName?: string | undefined;
1603
+ /**
1604
+ * <p> <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services">Service principal</a> for the service associated with the protected operation.</p>
1605
+ * @public
1606
+ */
1607
+ RequesterServicePrincipal?: string | undefined;
1608
+ /**
1609
+ * <p> <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html#intro-structure-request">IAM principal</a> that made the operation request.</p>
1610
+ * @public
1611
+ */
1612
+ RequesterPrincipalArn?: string | undefined;
1613
+ /**
1614
+ * <p>ID for the account that made the operation request.</p>
1615
+ * @public
1616
+ */
1617
+ RequesterAccountId?: string | undefined;
1618
+ /**
1619
+ * <p>Amazon Web Services Region where the operation request originated.</p>
1620
+ * @public
1621
+ */
1622
+ RequesterRegion?: string | undefined;
1623
+ /**
1624
+ * <p>Message from the account that made the operation request</p>
1625
+ * @public
1626
+ */
1627
+ RequesterComment?: string | undefined;
1628
+ /**
1629
+ * <p>Strategy for executing the protected operation. <code>AUTO_COMPLETION_UPON_APPROVAL</code> means the operation is automatically executed using the requester's permissions, if approved.</p>
1630
+ * @public
1631
+ */
1632
+ ActionCompletionStrategy?: ActionCompletionStrategy | undefined;
1633
+ /**
1634
+ * <p>An array of <code>GetSessionResponseApproverResponse</code> objects. Contains details for approver responses in the session.</p>
1635
+ * @public
1636
+ */
1637
+ ApproverResponses?: GetSessionResponseApproverResponse[] | undefined;
1638
+ }
1639
+ /**
1640
+ * @public
1641
+ * @enum
1642
+ */
1643
+ export declare const FilterField: {
1644
+ readonly ACTION_NAME: "ActionName";
1645
+ readonly APPROVAL_TEAM_NAME: "ApprovalTeamName";
1646
+ readonly INITIATION_TIME: "InitiationTime";
1647
+ readonly SESSION_STATUS: "SessionStatus";
1648
+ readonly VOTE: "Vote";
1649
+ readonly VOTING_TIME: "VotingTime";
1650
+ };
1651
+ /**
1652
+ * @public
1653
+ */
1654
+ export type FilterField = (typeof FilterField)[keyof typeof FilterField];
1655
+ /**
1656
+ * @public
1657
+ * @enum
1658
+ */
1659
+ export declare const Operator: {
1660
+ readonly BETWEEN: "BETWEEN";
1661
+ readonly CONTAINS: "CONTAINS";
1662
+ readonly DOES_NOT_CONTAIN: "NOT_CONTAINS";
1663
+ readonly EQUALS: "EQ";
1664
+ readonly GREATER_THAN: "GT";
1665
+ readonly GREATER_THAN_OR_EQUAL_TO: "GTE";
1666
+ readonly LESS_THAN: "LT";
1667
+ readonly LESS_THAN_OR_EQUAL_TO: "LTE";
1668
+ readonly NOT_EQUALS: "NE";
1669
+ };
1670
+ /**
1671
+ * @public
1672
+ */
1673
+ export type Operator = (typeof Operator)[keyof typeof Operator];
1674
+ /**
1675
+ * <p>Contains the filter to apply to requests. You can specify up to 10 filters for a request.</p>
1676
+ * @public
1677
+ */
1678
+ export interface Filter {
1679
+ /**
1680
+ * <p>Name of the filter to use.</p> <note> <p> <b>Supported filters</b> </p> <p>The supported filters for <a>ListSessions</a> are: <code>ActionName</code>, <code>SessionStatus</code>, and <code>InitationTime</code>.</p> </note>
1681
+ * @public
1682
+ */
1683
+ FieldName?: FilterField | undefined;
1684
+ /**
1685
+ * <p>Operator to use for filtering.</p> <ul> <li> <p> <code>EQ</code>: Equal to the specified value</p> </li> <li> <p> <code>NE</code>: Not equal to the specified value</p> </li> <li> <p> <code>GT</code>: Greater than the specified value</p> </li> <li> <p> <code>LT</code>: Less than the specified value</p> </li> <li> <p> <code>GTE</code>: Greater than or equal to the specified value</p> </li> <li> <p> <code>LTE</code>: Less than or equal to the specified value</p> </li> <li> <p> <code>CONTAINS</code>: Contains the specified value</p> </li> <li> <p> <code>NOT_CONTAINS</code>: Does not contain the specified value</p> </li> <li> <p> <code>BETWEEN</code>: Between two values, inclusive of the specified values.</p> </li> </ul> <note> <p> <b>Supported operators for each filter</b>:</p> <ul> <li> <p> <code>ActionName</code>: <code>EQ</code> | <code>NE</code> | <code>CONTAINS</code> | <code>NOT_CONTAINS</code> </p> </li> <li> <p> <code>SessionStatus</code>: <code>EQ</code> | <code>NE</code> </p> </li> <li> <p> <code>InitiationTime</code>: <code>GT</code> | <code>LT</code> | <code>GTE</code> | <code>LTE</code> | <code>BETWEEN</code> </p> </li> </ul> </note>
1686
+ * @public
1687
+ */
1688
+ Operator?: Operator | undefined;
1689
+ /**
1690
+ * <p>Value to use for filtering. For the <code>BETWEEN</code> operator, specify values in the format <code>a AND b</code> (<code>AND</code> is case-insensitive).</p>
1691
+ * @public
1692
+ */
1693
+ Value?: string | undefined;
1694
+ }
1695
+ /**
1696
+ * @public
1697
+ */
1698
+ export interface ListSessionsRequest {
1699
+ /**
1700
+ * <p>Amazon Resource Name (ARN) for the approval team.</p>
1701
+ * @public
1702
+ */
1703
+ ApprovalTeamArn: string | undefined;
1704
+ /**
1705
+ * <p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p>
1706
+ * @public
1707
+ */
1708
+ MaxResults?: number | undefined;
1709
+ /**
1710
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1711
+ * @public
1712
+ */
1713
+ NextToken?: string | undefined;
1714
+ /**
1715
+ * <p>An array of <code>Filter</code> objects. Contains the filter to apply when listing sessions.</p>
1716
+ * @public
1717
+ */
1718
+ Filters?: Filter[] | undefined;
1719
+ }
1720
+ /**
1721
+ * <p>Contains details for an approval session. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-health.html">Session</a> in the <i>Multi-party approval User Guide</i> </p>
1722
+ * @public
1723
+ */
1724
+ export interface ListSessionsResponseSession {
1725
+ /**
1726
+ * <p>Amazon Resource Name (ARN) for the session.</p>
1727
+ * @public
1728
+ */
1729
+ SessionArn?: string | undefined;
1730
+ /**
1731
+ * <p>Name of the approval team.</p>
1732
+ * @public
1733
+ */
1734
+ ApprovalTeamName?: string | undefined;
1735
+ /**
1736
+ * <p>Amazon Resource Name (ARN) for the approval team.</p>
1737
+ * @public
1738
+ */
1739
+ ApprovalTeamArn?: string | undefined;
1740
+ /**
1741
+ * <p>Timestamp when the session was initiated.</p>
1742
+ * @public
1743
+ */
1744
+ InitiationTime?: Date | undefined;
1745
+ /**
1746
+ * <p>Timestamp when the session was expire.</p>
1747
+ * @public
1748
+ */
1749
+ ExpirationTime?: Date | undefined;
1750
+ /**
1751
+ * <p>Timestamp when the session was completed.</p>
1752
+ * @public
1753
+ */
1754
+ CompletionTime?: Date | undefined;
1755
+ /**
1756
+ * <p>Description for the team.</p>
1757
+ * @public
1758
+ */
1759
+ Description?: string | undefined;
1760
+ /**
1761
+ * <p>Name of the protected operation.</p>
1762
+ * @public
1763
+ */
1764
+ ActionName?: string | undefined;
1765
+ /**
1766
+ * <p>Amazon Resource Name (ARN) for the protected operation.</p>
1767
+ * @public
1768
+ */
1769
+ ProtectedResourceArn?: string | undefined;
1770
+ /**
1771
+ * <p> <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services">Service principal</a> for the service associated with the protected operation.</p>
1772
+ * @public
1773
+ */
1774
+ RequesterServicePrincipal?: string | undefined;
1775
+ /**
1776
+ * <p> <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html#intro-structure-request">IAM principal</a> that made the operation request.</p>
1777
+ * @public
1778
+ */
1779
+ RequesterPrincipalArn?: string | undefined;
1780
+ /**
1781
+ * <p>Amazon Web Services Region where the operation request originated.</p>
1782
+ * @public
1783
+ */
1784
+ RequesterRegion?: string | undefined;
1785
+ /**
1786
+ * <p>ID for the account that made the operation request.</p>
1787
+ * @public
1788
+ */
1789
+ RequesterAccountId?: string | undefined;
1790
+ /**
1791
+ * <p>Status for the protected operation. For example, if the operation is <code>PENDING</code>.</p>
1792
+ * @public
1793
+ */
1794
+ Status?: SessionStatus | undefined;
1795
+ /**
1796
+ * <p>Status code of the session.</p>
1797
+ * @public
1798
+ */
1799
+ StatusCode?: SessionStatusCode | undefined;
1800
+ /**
1801
+ * <p>Message describing the status for session.</p>
1802
+ * @public
1803
+ */
1804
+ StatusMessage?: string | undefined;
1805
+ /**
1806
+ * <p>Strategy for executing the protected operation. <code>AUTO_COMPLETION_UPON_APPROVAL</code> means the operation is executed automatically using the requester's permissions, if approved.</p>
1807
+ * @public
1808
+ */
1809
+ ActionCompletionStrategy?: ActionCompletionStrategy | undefined;
1810
+ }
1811
+ /**
1812
+ * @public
1813
+ */
1814
+ export interface ListSessionsResponse {
1815
+ /**
1816
+ * <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a next call to the operation to get more output. You can repeat this until the <code>NextToken</code> response element returns <code>null</code>.</p>
1817
+ * @public
1818
+ */
1819
+ NextToken?: string | undefined;
1820
+ /**
1821
+ * <p>An array of <code>ListSessionsResponseSession</code> objects. Contains details for the sessions.</p>
1822
+ * @public
1823
+ */
1824
+ Sessions?: ListSessionsResponseSession[] | undefined;
1825
+ }
1826
+ /**
1827
+ * @public
1828
+ */
1829
+ export interface TagResourceRequest {
1830
+ /**
1831
+ * <p>Amazon Resource Name (ARN) for the resource you want to tag.</p>
1832
+ * @public
1833
+ */
1834
+ ResourceArn: string | undefined;
1835
+ /**
1836
+ * <p>Tags that you have added to the specified resource.</p>
1837
+ * @public
1838
+ */
1839
+ Tags: Record<string, string> | undefined;
1840
+ }
1841
+ /**
1842
+ * @public
1843
+ */
1844
+ export interface TagResourceResponse {
1845
+ }
1846
+ /**
1847
+ * <p>The request exceeds the maximum number of tags allowed for this resource. Remove some tags, and try again.</p>
1848
+ * @public
1849
+ */
1850
+ export declare class TooManyTagsException extends __BaseException {
1851
+ readonly name: "TooManyTagsException";
1852
+ readonly $fault: "client";
1853
+ /**
1854
+ * <p>Message for the <code>TooManyTagsException</code> error.</p>
1855
+ * @public
1856
+ */
1857
+ Message: string | undefined;
1858
+ /**
1859
+ * <p>Name of the resource for the <code>TooManyTagsException</code> error.</p>
1860
+ * @public
1861
+ */
1862
+ ResourceName?: string | undefined;
1863
+ /**
1864
+ * @internal
1865
+ */
1866
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
1867
+ }
1868
+ /**
1869
+ * @public
1870
+ */
1871
+ export interface UntagResourceRequest {
1872
+ /**
1873
+ * <p>Amazon Resource Name (ARN) for the resource you want to untag.</p>
1874
+ * @public
1875
+ */
1876
+ ResourceArn: string | undefined;
1877
+ /**
1878
+ * <p>Array of tag key-value pairs that you want to untag.</p>
1879
+ * @public
1880
+ */
1881
+ TagKeys: string[] | undefined;
1882
+ }
1883
+ /**
1884
+ * @public
1885
+ */
1886
+ export interface UntagResourceResponse {
1887
+ }
1888
+ /**
1889
+ * @internal
1890
+ */
1891
+ export declare const CreateApprovalTeamRequestFilterSensitiveLog: (obj: CreateApprovalTeamRequest) => any;
1892
+ /**
1893
+ * @internal
1894
+ */
1895
+ export declare const GetApprovalTeamResponseFilterSensitiveLog: (obj: GetApprovalTeamResponse) => any;
1896
+ /**
1897
+ * @internal
1898
+ */
1899
+ export declare const ListApprovalTeamsResponseApprovalTeamFilterSensitiveLog: (obj: ListApprovalTeamsResponseApprovalTeam) => any;
1900
+ /**
1901
+ * @internal
1902
+ */
1903
+ export declare const ListApprovalTeamsResponseFilterSensitiveLog: (obj: ListApprovalTeamsResponse) => any;
1904
+ /**
1905
+ * @internal
1906
+ */
1907
+ export declare const UpdateApprovalTeamRequestFilterSensitiveLog: (obj: UpdateApprovalTeamRequest) => any;
1908
+ /**
1909
+ * @internal
1910
+ */
1911
+ export declare const PolicyVersionFilterSensitiveLog: (obj: PolicyVersion) => any;
1912
+ /**
1913
+ * @internal
1914
+ */
1915
+ export declare const GetPolicyVersionResponseFilterSensitiveLog: (obj: GetPolicyVersionResponse) => any;
1916
+ /**
1917
+ * @internal
1918
+ */
1919
+ export declare const GetResourcePolicyResponseFilterSensitiveLog: (obj: GetResourcePolicyResponse) => any;
1920
+ /**
1921
+ * @internal
1922
+ */
1923
+ export declare const CreateIdentitySourceRequestFilterSensitiveLog: (obj: CreateIdentitySourceRequest) => any;
1924
+ /**
1925
+ * @internal
1926
+ */
1927
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
1928
+ /**
1929
+ * @internal
1930
+ */
1931
+ export declare const GetSessionResponseFilterSensitiveLog: (obj: GetSessionResponse) => any;
1932
+ /**
1933
+ * @internal
1934
+ */
1935
+ export declare const ListSessionsResponseSessionFilterSensitiveLog: (obj: ListSessionsResponseSession) => any;
1936
+ /**
1937
+ * @internal
1938
+ */
1939
+ export declare const ListSessionsResponseFilterSensitiveLog: (obj: ListSessionsResponse) => any;
1940
+ /**
1941
+ * @internal
1942
+ */
1943
+ export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
1944
+ /**
1945
+ * @internal
1946
+ */
1947
+ export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;