@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,645 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { MPAServiceException as __BaseException } from "./MPAServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export declare const ActionCompletionStrategy: {
12
+ readonly AUTO_COMPLETION_UPON_APPROVAL: "AUTO_COMPLETION_UPON_APPROVAL";
13
+ };
14
+ export type ActionCompletionStrategy =
15
+ (typeof ActionCompletionStrategy)[keyof typeof ActionCompletionStrategy];
16
+ export interface MofNApprovalStrategy {
17
+ MinApprovalsRequired: number | undefined;
18
+ }
19
+ export type ApprovalStrategy =
20
+ | ApprovalStrategy.MofNMember
21
+ | ApprovalStrategy.$UnknownMember;
22
+ export declare namespace ApprovalStrategy {
23
+ interface MofNMember {
24
+ MofN: MofNApprovalStrategy;
25
+ $unknown?: never;
26
+ }
27
+ interface $UnknownMember {
28
+ MofN?: never;
29
+ $unknown: [string, any];
30
+ }
31
+ interface Visitor<T> {
32
+ MofN: (value: MofNApprovalStrategy) => T;
33
+ _: (name: string, value: any) => T;
34
+ }
35
+ const visit: <T>(value: ApprovalStrategy, visitor: Visitor<T>) => T;
36
+ }
37
+ export type ApprovalStrategyResponse =
38
+ | ApprovalStrategyResponse.MofNMember
39
+ | ApprovalStrategyResponse.$UnknownMember;
40
+ export declare namespace ApprovalStrategyResponse {
41
+ interface MofNMember {
42
+ MofN: MofNApprovalStrategy;
43
+ $unknown?: never;
44
+ }
45
+ interface $UnknownMember {
46
+ MofN?: never;
47
+ $unknown: [string, any];
48
+ }
49
+ interface Visitor<T> {
50
+ MofN: (value: MofNApprovalStrategy) => T;
51
+ _: (name: string, value: any) => T;
52
+ }
53
+ const visit: <T>(value: ApprovalStrategyResponse, visitor: Visitor<T>) => T;
54
+ }
55
+ export declare class ConflictException extends __BaseException {
56
+ readonly name: "ConflictException";
57
+ readonly $fault: "client";
58
+ Message: string | undefined;
59
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
60
+ }
61
+ export interface ApprovalTeamRequestApprover {
62
+ PrimaryIdentityId: string | undefined;
63
+ PrimaryIdentitySourceArn: string | undefined;
64
+ }
65
+ export interface PolicyReference {
66
+ PolicyArn: string | undefined;
67
+ }
68
+ export interface CreateApprovalTeamRequest {
69
+ ClientToken?: string | undefined;
70
+ ApprovalStrategy: ApprovalStrategy | undefined;
71
+ Approvers: ApprovalTeamRequestApprover[] | undefined;
72
+ Description: string | undefined;
73
+ Policies: PolicyReference[] | undefined;
74
+ Name: string | undefined;
75
+ Tags?: Record<string, string> | undefined;
76
+ }
77
+ export interface CreateApprovalTeamResponse {
78
+ CreationTime?: Date | undefined;
79
+ Arn?: string | undefined;
80
+ Name?: string | undefined;
81
+ VersionId?: string | undefined;
82
+ }
83
+ export declare class InternalServerException extends __BaseException {
84
+ readonly name: "InternalServerException";
85
+ readonly $fault: "server";
86
+ $retryable: {};
87
+ Message: string | undefined;
88
+ constructor(
89
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
90
+ );
91
+ }
92
+ export declare class ServiceQuotaExceededException extends __BaseException {
93
+ readonly name: "ServiceQuotaExceededException";
94
+ readonly $fault: "client";
95
+ Message: string | undefined;
96
+ constructor(
97
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
98
+ );
99
+ }
100
+ export declare class ThrottlingException extends __BaseException {
101
+ readonly name: "ThrottlingException";
102
+ readonly $fault: "client";
103
+ Message: string | undefined;
104
+ constructor(
105
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
106
+ );
107
+ }
108
+ export declare class ValidationException extends __BaseException {
109
+ readonly name: "ValidationException";
110
+ readonly $fault: "client";
111
+ Message: string | undefined;
112
+ constructor(
113
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
114
+ );
115
+ }
116
+ export interface DeleteInactiveApprovalTeamVersionRequest {
117
+ Arn: string | undefined;
118
+ VersionId: string | undefined;
119
+ }
120
+ export interface DeleteInactiveApprovalTeamVersionResponse {}
121
+ export declare class ResourceNotFoundException extends __BaseException {
122
+ readonly name: "ResourceNotFoundException";
123
+ readonly $fault: "client";
124
+ Message: string | undefined;
125
+ constructor(
126
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
127
+ );
128
+ }
129
+ export interface GetApprovalTeamRequest {
130
+ Arn: string | undefined;
131
+ }
132
+ export declare const IdentityStatus: {
133
+ readonly ACCEPTED: "ACCEPTED";
134
+ readonly INVALID: "INVALID";
135
+ readonly PENDING: "PENDING";
136
+ readonly REJECTED: "REJECTED";
137
+ };
138
+ export type IdentityStatus =
139
+ (typeof IdentityStatus)[keyof typeof IdentityStatus];
140
+ export interface GetApprovalTeamResponseApprover {
141
+ ApproverId?: string | undefined;
142
+ ResponseTime?: Date | undefined;
143
+ PrimaryIdentityId?: string | undefined;
144
+ PrimaryIdentitySourceArn?: string | undefined;
145
+ PrimaryIdentityStatus?: IdentityStatus | undefined;
146
+ }
147
+ export declare const ApprovalTeamStatus: {
148
+ readonly ACTIVE: "ACTIVE";
149
+ readonly DELETING: "DELETING";
150
+ readonly INACTIVE: "INACTIVE";
151
+ readonly PENDING: "PENDING";
152
+ };
153
+ export type ApprovalTeamStatus =
154
+ (typeof ApprovalTeamStatus)[keyof typeof ApprovalTeamStatus];
155
+ export declare const ApprovalTeamStatusCode: {
156
+ readonly DELETE_FAILED_APPROVAL: "DELETE_FAILED_APPROVAL";
157
+ readonly DELETE_FAILED_VALIDATION: "DELETE_FAILED_VALIDATION";
158
+ readonly DELETE_PENDING_APPROVAL: "DELETE_PENDING_APPROVAL";
159
+ readonly FAILED_ACTIVATION: "FAILED_ACTIVATION";
160
+ readonly FAILED_VALIDATION: "FAILED_VALIDATION";
161
+ readonly PENDING_ACTIVATION: "PENDING_ACTIVATION";
162
+ readonly UPDATE_FAILED_ACTIVATION: "UPDATE_FAILED_ACTIVATION";
163
+ readonly UPDATE_FAILED_APPROVAL: "UPDATE_FAILED_APPROVAL";
164
+ readonly UPDATE_FAILED_VALIDATION: "UPDATE_FAILED_VALIDATION";
165
+ readonly UPDATE_PENDING_ACTIVATION: "UPDATE_PENDING_ACTIVATION";
166
+ readonly UPDATE_PENDING_APPROVAL: "UPDATE_PENDING_APPROVAL";
167
+ readonly VALIDATING: "VALIDATING";
168
+ };
169
+ export type ApprovalTeamStatusCode =
170
+ (typeof ApprovalTeamStatusCode)[keyof typeof ApprovalTeamStatusCode];
171
+ export interface PendingUpdate {
172
+ VersionId?: string | undefined;
173
+ Description?: string | undefined;
174
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
175
+ NumberOfApprovers?: number | undefined;
176
+ Status?: ApprovalTeamStatus | undefined;
177
+ StatusCode?: ApprovalTeamStatusCode | undefined;
178
+ StatusMessage?: string | undefined;
179
+ Approvers?: GetApprovalTeamResponseApprover[] | undefined;
180
+ UpdateInitiationTime?: Date | undefined;
181
+ }
182
+ export interface GetApprovalTeamResponse {
183
+ CreationTime?: Date | undefined;
184
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
185
+ NumberOfApprovers?: number | undefined;
186
+ Approvers?: GetApprovalTeamResponseApprover[] | undefined;
187
+ Arn?: string | undefined;
188
+ Description?: string | undefined;
189
+ Name?: string | undefined;
190
+ Status?: ApprovalTeamStatus | undefined;
191
+ StatusCode?: ApprovalTeamStatusCode | undefined;
192
+ StatusMessage?: string | undefined;
193
+ UpdateSessionArn?: string | undefined;
194
+ VersionId?: string | undefined;
195
+ Policies?: PolicyReference[] | undefined;
196
+ LastUpdateTime?: Date | undefined;
197
+ PendingUpdate?: PendingUpdate | undefined;
198
+ }
199
+ export interface ListApprovalTeamsRequest {
200
+ MaxResults?: number | undefined;
201
+ NextToken?: string | undefined;
202
+ }
203
+ export interface ListApprovalTeamsResponseApprovalTeam {
204
+ CreationTime?: Date | undefined;
205
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
206
+ NumberOfApprovers?: number | undefined;
207
+ Arn?: string | undefined;
208
+ Name?: string | undefined;
209
+ Description?: string | undefined;
210
+ Status?: ApprovalTeamStatus | undefined;
211
+ StatusCode?: ApprovalTeamStatusCode | undefined;
212
+ StatusMessage?: string | undefined;
213
+ }
214
+ export interface ListApprovalTeamsResponse {
215
+ NextToken?: string | undefined;
216
+ ApprovalTeams?: ListApprovalTeamsResponseApprovalTeam[] | undefined;
217
+ }
218
+ export interface StartActiveApprovalTeamDeletionRequest {
219
+ PendingWindowDays?: number | undefined;
220
+ Arn: string | undefined;
221
+ }
222
+ export interface StartActiveApprovalTeamDeletionResponse {
223
+ DeletionCompletionTime?: Date | undefined;
224
+ DeletionStartTime?: Date | undefined;
225
+ }
226
+ export interface UpdateApprovalTeamRequest {
227
+ ApprovalStrategy?: ApprovalStrategy | undefined;
228
+ Approvers?: ApprovalTeamRequestApprover[] | undefined;
229
+ Description?: string | undefined;
230
+ Arn: string | undefined;
231
+ }
232
+ export interface UpdateApprovalTeamResponse {
233
+ VersionId?: string | undefined;
234
+ }
235
+ export interface GetPolicyVersionRequest {
236
+ PolicyVersionArn: string | undefined;
237
+ }
238
+ export declare const PolicyType: {
239
+ readonly AWS_MANAGED: "AWS_MANAGED";
240
+ readonly AWS_RAM: "AWS_RAM";
241
+ };
242
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
243
+ export declare const PolicyStatus: {
244
+ readonly ATTACHABLE: "ATTACHABLE";
245
+ readonly DEPRECATED: "DEPRECATED";
246
+ };
247
+ export type PolicyStatus = (typeof PolicyStatus)[keyof typeof PolicyStatus];
248
+ export interface PolicyVersion {
249
+ Arn: string | undefined;
250
+ PolicyArn: string | undefined;
251
+ VersionId: number | undefined;
252
+ PolicyType: PolicyType | undefined;
253
+ IsDefault: boolean | undefined;
254
+ Name: string | undefined;
255
+ Status: PolicyStatus | undefined;
256
+ CreationTime: Date | undefined;
257
+ LastUpdatedTime: Date | undefined;
258
+ Document: string | undefined;
259
+ }
260
+ export interface GetPolicyVersionResponse {
261
+ PolicyVersion: PolicyVersion | undefined;
262
+ }
263
+ export interface GetResourcePolicyRequest {
264
+ ResourceArn: string | undefined;
265
+ PolicyName: string | undefined;
266
+ PolicyType: PolicyType | undefined;
267
+ }
268
+ export interface GetResourcePolicyResponse {
269
+ ResourceArn: string | undefined;
270
+ PolicyType: PolicyType | undefined;
271
+ PolicyVersionArn?: string | undefined;
272
+ PolicyName: string | undefined;
273
+ PolicyDocument: string | undefined;
274
+ }
275
+ export declare class InvalidParameterException extends __BaseException {
276
+ readonly name: "InvalidParameterException";
277
+ readonly $fault: "client";
278
+ Message: string | undefined;
279
+ constructor(
280
+ opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
281
+ );
282
+ }
283
+ export interface IamIdentityCenter {
284
+ InstanceArn: string | undefined;
285
+ Region: string | undefined;
286
+ }
287
+ export interface IdentitySourceParameters {
288
+ IamIdentityCenter?: IamIdentityCenter | undefined;
289
+ }
290
+ export interface CreateIdentitySourceRequest {
291
+ IdentitySourceParameters: IdentitySourceParameters | undefined;
292
+ ClientToken?: string | undefined;
293
+ Tags?: Record<string, string> | undefined;
294
+ }
295
+ export declare const IdentitySourceType: {
296
+ readonly IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER";
297
+ };
298
+ export type IdentitySourceType =
299
+ (typeof IdentitySourceType)[keyof typeof IdentitySourceType];
300
+ export interface CreateIdentitySourceResponse {
301
+ IdentitySourceType?: IdentitySourceType | undefined;
302
+ IdentitySourceArn?: string | undefined;
303
+ CreationTime?: Date | undefined;
304
+ }
305
+ export interface DeleteIdentitySourceRequest {
306
+ IdentitySourceArn: string | undefined;
307
+ }
308
+ export interface GetIdentitySourceRequest {
309
+ IdentitySourceArn: string | undefined;
310
+ }
311
+ export interface IamIdentityCenterForGet {
312
+ InstanceArn?: string | undefined;
313
+ ApprovalPortalUrl?: string | undefined;
314
+ Region?: string | undefined;
315
+ }
316
+ export type IdentitySourceParametersForGet =
317
+ | IdentitySourceParametersForGet.IamIdentityCenterMember
318
+ | IdentitySourceParametersForGet.$UnknownMember;
319
+ export declare namespace IdentitySourceParametersForGet {
320
+ interface IamIdentityCenterMember {
321
+ IamIdentityCenter: IamIdentityCenterForGet;
322
+ $unknown?: never;
323
+ }
324
+ interface $UnknownMember {
325
+ IamIdentityCenter?: never;
326
+ $unknown: [string, any];
327
+ }
328
+ interface Visitor<T> {
329
+ IamIdentityCenter: (value: IamIdentityCenterForGet) => T;
330
+ _: (name: string, value: any) => T;
331
+ }
332
+ const visit: <T>(
333
+ value: IdentitySourceParametersForGet,
334
+ visitor: Visitor<T>
335
+ ) => T;
336
+ }
337
+ export declare const IdentitySourceStatus: {
338
+ readonly ACTIVE: "ACTIVE";
339
+ readonly CREATING: "CREATING";
340
+ readonly DELETING: "DELETING";
341
+ readonly ERROR: "ERROR";
342
+ };
343
+ export type IdentitySourceStatus =
344
+ (typeof IdentitySourceStatus)[keyof typeof IdentitySourceStatus];
345
+ export declare const IdentitySourceStatusCode: {
346
+ readonly ACCESS_DENIED: "ACCESS_DENIED";
347
+ readonly DELETION_FAILED: "DELETION_FAILED";
348
+ readonly IDC_INSTANCE_NOT_FOUND: "IDC_INSTANCE_NOT_FOUND";
349
+ readonly IDC_INSTANCE_NOT_VALID: "IDC_INSTANCE_NOT_VALID";
350
+ };
351
+ export type IdentitySourceStatusCode =
352
+ (typeof IdentitySourceStatusCode)[keyof typeof IdentitySourceStatusCode];
353
+ export interface GetIdentitySourceResponse {
354
+ IdentitySourceType?: IdentitySourceType | undefined;
355
+ IdentitySourceParameters?: IdentitySourceParametersForGet | undefined;
356
+ IdentitySourceArn?: string | undefined;
357
+ CreationTime?: Date | undefined;
358
+ Status?: IdentitySourceStatus | undefined;
359
+ StatusCode?: IdentitySourceStatusCode | undefined;
360
+ StatusMessage?: string | undefined;
361
+ }
362
+ export interface ListIdentitySourcesRequest {
363
+ MaxResults?: number | undefined;
364
+ NextToken?: string | undefined;
365
+ }
366
+ export interface IamIdentityCenterForList {
367
+ InstanceArn?: string | undefined;
368
+ ApprovalPortalUrl?: string | undefined;
369
+ Region?: string | undefined;
370
+ }
371
+ export type IdentitySourceParametersForList =
372
+ | IdentitySourceParametersForList.IamIdentityCenterMember
373
+ | IdentitySourceParametersForList.$UnknownMember;
374
+ export declare namespace IdentitySourceParametersForList {
375
+ interface IamIdentityCenterMember {
376
+ IamIdentityCenter: IamIdentityCenterForList;
377
+ $unknown?: never;
378
+ }
379
+ interface $UnknownMember {
380
+ IamIdentityCenter?: never;
381
+ $unknown: [string, any];
382
+ }
383
+ interface Visitor<T> {
384
+ IamIdentityCenter: (value: IamIdentityCenterForList) => T;
385
+ _: (name: string, value: any) => T;
386
+ }
387
+ const visit: <T>(
388
+ value: IdentitySourceParametersForList,
389
+ visitor: Visitor<T>
390
+ ) => T;
391
+ }
392
+ export interface IdentitySourceForList {
393
+ IdentitySourceType?: IdentitySourceType | undefined;
394
+ IdentitySourceParameters?: IdentitySourceParametersForList | undefined;
395
+ IdentitySourceArn?: string | undefined;
396
+ CreationTime?: Date | undefined;
397
+ Status?: IdentitySourceStatus | undefined;
398
+ StatusCode?: IdentitySourceStatusCode | undefined;
399
+ StatusMessage?: string | undefined;
400
+ }
401
+ export interface ListIdentitySourcesResponse {
402
+ NextToken?: string | undefined;
403
+ IdentitySources?: IdentitySourceForList[] | undefined;
404
+ }
405
+ export interface ListPoliciesRequest {
406
+ MaxResults?: number | undefined;
407
+ NextToken?: string | undefined;
408
+ }
409
+ export interface Policy {
410
+ Arn: string | undefined;
411
+ DefaultVersion: number | undefined;
412
+ PolicyType: PolicyType | undefined;
413
+ Name: string | undefined;
414
+ }
415
+ export interface ListPoliciesResponse {
416
+ NextToken?: string | undefined;
417
+ Policies?: Policy[] | undefined;
418
+ }
419
+ export interface ListPolicyVersionsRequest {
420
+ MaxResults?: number | undefined;
421
+ NextToken?: string | undefined;
422
+ PolicyArn: string | undefined;
423
+ }
424
+ export interface PolicyVersionSummary {
425
+ Arn: string | undefined;
426
+ PolicyArn: string | undefined;
427
+ VersionId: number | undefined;
428
+ PolicyType: PolicyType | undefined;
429
+ IsDefault: boolean | undefined;
430
+ Name: string | undefined;
431
+ Status: PolicyStatus | undefined;
432
+ CreationTime: Date | undefined;
433
+ LastUpdatedTime: Date | undefined;
434
+ }
435
+ export interface ListPolicyVersionsResponse {
436
+ NextToken?: string | undefined;
437
+ PolicyVersions?: PolicyVersionSummary[] | undefined;
438
+ }
439
+ export interface ListResourcePoliciesRequest {
440
+ ResourceArn: string | undefined;
441
+ MaxResults?: number | undefined;
442
+ NextToken?: string | undefined;
443
+ }
444
+ export interface ListResourcePoliciesResponseResourcePolicy {
445
+ PolicyArn?: string | undefined;
446
+ PolicyType?: PolicyType | undefined;
447
+ PolicyName?: string | undefined;
448
+ }
449
+ export interface ListResourcePoliciesResponse {
450
+ NextToken?: string | undefined;
451
+ ResourcePolicies?: ListResourcePoliciesResponseResourcePolicy[] | undefined;
452
+ }
453
+ export interface ListTagsForResourceRequest {
454
+ ResourceArn: string | undefined;
455
+ }
456
+ export interface ListTagsForResourceResponse {
457
+ Tags?: Record<string, string> | undefined;
458
+ }
459
+ export interface CancelSessionRequest {
460
+ SessionArn: string | undefined;
461
+ }
462
+ export interface CancelSessionResponse {}
463
+ export interface GetSessionRequest {
464
+ SessionArn: string | undefined;
465
+ }
466
+ export declare const SessionResponse: {
467
+ readonly APPROVED: "APPROVED";
468
+ readonly NO_RESPONSE: "NO_RESPONSE";
469
+ readonly REJECTED: "REJECTED";
470
+ };
471
+ export type SessionResponse =
472
+ (typeof SessionResponse)[keyof typeof SessionResponse];
473
+ export interface GetSessionResponseApproverResponse {
474
+ ApproverId?: string | undefined;
475
+ IdentitySourceArn?: string | undefined;
476
+ IdentityId?: string | undefined;
477
+ Response?: SessionResponse | undefined;
478
+ ResponseTime?: Date | undefined;
479
+ }
480
+ export declare const SessionExecutionStatus: {
481
+ readonly EXECUTED: "EXECUTED";
482
+ readonly FAILED: "FAILED";
483
+ readonly PENDING: "PENDING";
484
+ };
485
+ export type SessionExecutionStatus =
486
+ (typeof SessionExecutionStatus)[keyof typeof SessionExecutionStatus];
487
+ export declare const SessionStatus: {
488
+ readonly APPROVED: "APPROVED";
489
+ readonly CANCELLED: "CANCELLED";
490
+ readonly CREATING: "CREATING";
491
+ readonly FAILED: "FAILED";
492
+ readonly PENDING: "PENDING";
493
+ };
494
+ export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
495
+ export declare const SessionStatusCode: {
496
+ readonly CONFIGURATION_CHANGED: "CONFIGURATION_CHANGED";
497
+ readonly EXPIRED: "EXPIRED";
498
+ readonly REJECTED: "REJECTED";
499
+ };
500
+ export type SessionStatusCode =
501
+ (typeof SessionStatusCode)[keyof typeof SessionStatusCode];
502
+ export interface GetSessionResponse {
503
+ SessionArn?: string | undefined;
504
+ ApprovalTeamArn?: string | undefined;
505
+ ApprovalTeamName?: string | undefined;
506
+ ProtectedResourceArn?: string | undefined;
507
+ ApprovalStrategy?: ApprovalStrategyResponse | undefined;
508
+ NumberOfApprovers?: number | undefined;
509
+ InitiationTime?: Date | undefined;
510
+ ExpirationTime?: Date | undefined;
511
+ CompletionTime?: Date | undefined;
512
+ Description?: string | undefined;
513
+ Metadata?: Record<string, string> | undefined;
514
+ Status?: SessionStatus | undefined;
515
+ StatusCode?: SessionStatusCode | undefined;
516
+ StatusMessage?: string | undefined;
517
+ ExecutionStatus?: SessionExecutionStatus | undefined;
518
+ ActionName?: string | undefined;
519
+ RequesterServicePrincipal?: string | undefined;
520
+ RequesterPrincipalArn?: string | undefined;
521
+ RequesterAccountId?: string | undefined;
522
+ RequesterRegion?: string | undefined;
523
+ RequesterComment?: string | undefined;
524
+ ActionCompletionStrategy?: ActionCompletionStrategy | undefined;
525
+ ApproverResponses?: GetSessionResponseApproverResponse[] | undefined;
526
+ }
527
+ export declare const FilterField: {
528
+ readonly ACTION_NAME: "ActionName";
529
+ readonly APPROVAL_TEAM_NAME: "ApprovalTeamName";
530
+ readonly INITIATION_TIME: "InitiationTime";
531
+ readonly SESSION_STATUS: "SessionStatus";
532
+ readonly VOTE: "Vote";
533
+ readonly VOTING_TIME: "VotingTime";
534
+ };
535
+ export type FilterField = (typeof FilterField)[keyof typeof FilterField];
536
+ export declare const Operator: {
537
+ readonly BETWEEN: "BETWEEN";
538
+ readonly CONTAINS: "CONTAINS";
539
+ readonly DOES_NOT_CONTAIN: "NOT_CONTAINS";
540
+ readonly EQUALS: "EQ";
541
+ readonly GREATER_THAN: "GT";
542
+ readonly GREATER_THAN_OR_EQUAL_TO: "GTE";
543
+ readonly LESS_THAN: "LT";
544
+ readonly LESS_THAN_OR_EQUAL_TO: "LTE";
545
+ readonly NOT_EQUALS: "NE";
546
+ };
547
+ export type Operator = (typeof Operator)[keyof typeof Operator];
548
+ export interface Filter {
549
+ FieldName?: FilterField | undefined;
550
+ Operator?: Operator | undefined;
551
+ Value?: string | undefined;
552
+ }
553
+ export interface ListSessionsRequest {
554
+ ApprovalTeamArn: string | undefined;
555
+ MaxResults?: number | undefined;
556
+ NextToken?: string | undefined;
557
+ Filters?: Filter[] | undefined;
558
+ }
559
+ export interface ListSessionsResponseSession {
560
+ SessionArn?: string | undefined;
561
+ ApprovalTeamName?: string | undefined;
562
+ ApprovalTeamArn?: string | undefined;
563
+ InitiationTime?: Date | undefined;
564
+ ExpirationTime?: Date | undefined;
565
+ CompletionTime?: Date | undefined;
566
+ Description?: string | undefined;
567
+ ActionName?: string | undefined;
568
+ ProtectedResourceArn?: string | undefined;
569
+ RequesterServicePrincipal?: string | undefined;
570
+ RequesterPrincipalArn?: string | undefined;
571
+ RequesterRegion?: string | undefined;
572
+ RequesterAccountId?: string | undefined;
573
+ Status?: SessionStatus | undefined;
574
+ StatusCode?: SessionStatusCode | undefined;
575
+ StatusMessage?: string | undefined;
576
+ ActionCompletionStrategy?: ActionCompletionStrategy | undefined;
577
+ }
578
+ export interface ListSessionsResponse {
579
+ NextToken?: string | undefined;
580
+ Sessions?: ListSessionsResponseSession[] | undefined;
581
+ }
582
+ export interface TagResourceRequest {
583
+ ResourceArn: string | undefined;
584
+ Tags: Record<string, string> | undefined;
585
+ }
586
+ export interface TagResourceResponse {}
587
+ export declare class TooManyTagsException extends __BaseException {
588
+ readonly name: "TooManyTagsException";
589
+ readonly $fault: "client";
590
+ Message: string | undefined;
591
+ ResourceName?: string | undefined;
592
+ constructor(
593
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
594
+ );
595
+ }
596
+ export interface UntagResourceRequest {
597
+ ResourceArn: string | undefined;
598
+ TagKeys: string[] | undefined;
599
+ }
600
+ export interface UntagResourceResponse {}
601
+ export declare const CreateApprovalTeamRequestFilterSensitiveLog: (
602
+ obj: CreateApprovalTeamRequest
603
+ ) => any;
604
+ export declare const GetApprovalTeamResponseFilterSensitiveLog: (
605
+ obj: GetApprovalTeamResponse
606
+ ) => any;
607
+ export declare const ListApprovalTeamsResponseApprovalTeamFilterSensitiveLog: (
608
+ obj: ListApprovalTeamsResponseApprovalTeam
609
+ ) => any;
610
+ export declare const ListApprovalTeamsResponseFilterSensitiveLog: (
611
+ obj: ListApprovalTeamsResponse
612
+ ) => any;
613
+ export declare const UpdateApprovalTeamRequestFilterSensitiveLog: (
614
+ obj: UpdateApprovalTeamRequest
615
+ ) => any;
616
+ export declare const PolicyVersionFilterSensitiveLog: (
617
+ obj: PolicyVersion
618
+ ) => any;
619
+ export declare const GetPolicyVersionResponseFilterSensitiveLog: (
620
+ obj: GetPolicyVersionResponse
621
+ ) => any;
622
+ export declare const GetResourcePolicyResponseFilterSensitiveLog: (
623
+ obj: GetResourcePolicyResponse
624
+ ) => any;
625
+ export declare const CreateIdentitySourceRequestFilterSensitiveLog: (
626
+ obj: CreateIdentitySourceRequest
627
+ ) => any;
628
+ export declare const ListTagsForResourceResponseFilterSensitiveLog: (
629
+ obj: ListTagsForResourceResponse
630
+ ) => any;
631
+ export declare const GetSessionResponseFilterSensitiveLog: (
632
+ obj: GetSessionResponse
633
+ ) => any;
634
+ export declare const ListSessionsResponseSessionFilterSensitiveLog: (
635
+ obj: ListSessionsResponseSession
636
+ ) => any;
637
+ export declare const ListSessionsResponseFilterSensitiveLog: (
638
+ obj: ListSessionsResponse
639
+ ) => any;
640
+ export declare const TagResourceRequestFilterSensitiveLog: (
641
+ obj: TagResourceRequest
642
+ ) => any;
643
+ export declare const UntagResourceRequestFilterSensitiveLog: (
644
+ obj: UntagResourceRequest
645
+ ) => any;
@@ -0,0 +1,5 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { MPAClient } from "../MPAClient";
3
+ export interface MPAPaginationConfiguration extends PaginationConfiguration {
4
+ client: MPAClient;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListApprovalTeamsCommandInput,
4
+ ListApprovalTeamsCommandOutput,
5
+ } from "../commands/ListApprovalTeamsCommand";
6
+ import { MPAPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListApprovalTeams: (
8
+ config: MPAPaginationConfiguration,
9
+ input: ListApprovalTeamsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListApprovalTeamsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListIdentitySourcesCommandInput,
4
+ ListIdentitySourcesCommandOutput,
5
+ } from "../commands/ListIdentitySourcesCommand";
6
+ import { MPAPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListIdentitySources: (
8
+ config: MPAPaginationConfiguration,
9
+ input: ListIdentitySourcesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListIdentitySourcesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListPoliciesCommandInput,
4
+ ListPoliciesCommandOutput,
5
+ } from "../commands/ListPoliciesCommand";
6
+ import { MPAPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListPolicies: (
8
+ config: MPAPaginationConfiguration,
9
+ input: ListPoliciesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListPoliciesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListPolicyVersionsCommandInput,
4
+ ListPolicyVersionsCommandOutput,
5
+ } from "../commands/ListPolicyVersionsCommand";
6
+ import { MPAPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListPolicyVersions: (
8
+ config: MPAPaginationConfiguration,
9
+ input: ListPolicyVersionsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListPolicyVersionsCommandOutput>;