@aws-sdk/client-mpa 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1068 -1220
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/MPAClient.js +2 -0
- package/dist-es/commands/CancelSessionCommand.js +3 -9
- package/dist-es/commands/CreateApprovalTeamCommand.js +3 -10
- package/dist-es/commands/CreateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/DeleteIdentitySourceCommand.js +3 -9
- package/dist-es/commands/DeleteInactiveApprovalTeamVersionCommand.js +3 -9
- package/dist-es/commands/GetApprovalTeamCommand.js +3 -10
- package/dist-es/commands/GetIdentitySourceCommand.js +3 -9
- package/dist-es/commands/GetPolicyVersionCommand.js +3 -10
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -10
- package/dist-es/commands/GetSessionCommand.js +3 -10
- package/dist-es/commands/ListApprovalTeamsCommand.js +3 -10
- package/dist-es/commands/ListIdentitySourcesCommand.js +3 -9
- package/dist-es/commands/ListPoliciesCommand.js +3 -9
- package/dist-es/commands/ListPolicyVersionsCommand.js +3 -9
- package/dist-es/commands/ListResourcePoliciesCommand.js +3 -9
- package/dist-es/commands/ListSessionsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/StartActiveApprovalTeamDeletionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateApprovalTeamCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -104
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +999 -0
- package/dist-types/MPAClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +16 -64
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +117 -0
- package/dist-types/ts3.4/MPAClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -55
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +124 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -931
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -191
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -257
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { MPAServiceException as __BaseException } from "./MPAServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -17,22 +16,6 @@ export class AccessDeniedException extends __BaseException {
|
|
|
17
16
|
export const ActionCompletionStrategy = {
|
|
18
17
|
AUTO_COMPLETION_UPON_APPROVAL: "AUTO_COMPLETION_UPON_APPROVAL",
|
|
19
18
|
};
|
|
20
|
-
export var ApprovalStrategy;
|
|
21
|
-
(function (ApprovalStrategy) {
|
|
22
|
-
ApprovalStrategy.visit = (value, visitor) => {
|
|
23
|
-
if (value.MofN !== undefined)
|
|
24
|
-
return visitor.MofN(value.MofN);
|
|
25
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
26
|
-
};
|
|
27
|
-
})(ApprovalStrategy || (ApprovalStrategy = {}));
|
|
28
|
-
export var ApprovalStrategyResponse;
|
|
29
|
-
(function (ApprovalStrategyResponse) {
|
|
30
|
-
ApprovalStrategyResponse.visit = (value, visitor) => {
|
|
31
|
-
if (value.MofN !== undefined)
|
|
32
|
-
return visitor.MofN(value.MofN);
|
|
33
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
34
|
-
};
|
|
35
|
-
})(ApprovalStrategyResponse || (ApprovalStrategyResponse = {}));
|
|
36
19
|
export class ConflictException extends __BaseException {
|
|
37
20
|
name = "ConflictException";
|
|
38
21
|
$fault = "client";
|
|
@@ -169,14 +152,6 @@ export class InvalidParameterException extends __BaseException {
|
|
|
169
152
|
export const IdentitySourceType = {
|
|
170
153
|
IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER",
|
|
171
154
|
};
|
|
172
|
-
export var IdentitySourceParametersForGet;
|
|
173
|
-
(function (IdentitySourceParametersForGet) {
|
|
174
|
-
IdentitySourceParametersForGet.visit = (value, visitor) => {
|
|
175
|
-
if (value.IamIdentityCenter !== undefined)
|
|
176
|
-
return visitor.IamIdentityCenter(value.IamIdentityCenter);
|
|
177
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
178
|
-
};
|
|
179
|
-
})(IdentitySourceParametersForGet || (IdentitySourceParametersForGet = {}));
|
|
180
155
|
export const IdentitySourceStatus = {
|
|
181
156
|
ACTIVE: "ACTIVE",
|
|
182
157
|
CREATING: "CREATING",
|
|
@@ -189,14 +164,6 @@ export const IdentitySourceStatusCode = {
|
|
|
189
164
|
IDC_INSTANCE_NOT_FOUND: "IDC_INSTANCE_NOT_FOUND",
|
|
190
165
|
IDC_INSTANCE_NOT_VALID: "IDC_INSTANCE_NOT_VALID",
|
|
191
166
|
};
|
|
192
|
-
export var IdentitySourceParametersForList;
|
|
193
|
-
(function (IdentitySourceParametersForList) {
|
|
194
|
-
IdentitySourceParametersForList.visit = (value, visitor) => {
|
|
195
|
-
if (value.IamIdentityCenter !== undefined)
|
|
196
|
-
return visitor.IamIdentityCenter(value.IamIdentityCenter);
|
|
197
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
198
|
-
};
|
|
199
|
-
})(IdentitySourceParametersForList || (IdentitySourceParametersForList = {}));
|
|
200
167
|
export const SessionResponse = {
|
|
201
168
|
APPROVED: "APPROVED",
|
|
202
169
|
NO_RESPONSE: "NO_RESPONSE",
|
|
@@ -254,74 +221,3 @@ export class TooManyTagsException extends __BaseException {
|
|
|
254
221
|
this.ResourceName = opts.ResourceName;
|
|
255
222
|
}
|
|
256
223
|
}
|
|
257
|
-
export const CreateApprovalTeamRequestFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
...(obj.ApprovalStrategy && { ApprovalStrategy: obj.ApprovalStrategy }),
|
|
260
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
261
|
-
...(obj.Tags && { Tags: SENSITIVE_STRING }),
|
|
262
|
-
});
|
|
263
|
-
export const GetApprovalTeamResponseFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
...(obj.ApprovalStrategy && { ApprovalStrategy: obj.ApprovalStrategy }),
|
|
266
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
267
|
-
...(obj.PendingUpdate && { PendingUpdate: obj.PendingUpdate }),
|
|
268
|
-
});
|
|
269
|
-
export const ListApprovalTeamsResponseApprovalTeamFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
...(obj.ApprovalStrategy && { ApprovalStrategy: obj.ApprovalStrategy }),
|
|
272
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
273
|
-
});
|
|
274
|
-
export const ListApprovalTeamsResponseFilterSensitiveLog = (obj) => ({
|
|
275
|
-
...obj,
|
|
276
|
-
...(obj.ApprovalTeams && {
|
|
277
|
-
ApprovalTeams: obj.ApprovalTeams.map((item) => ListApprovalTeamsResponseApprovalTeamFilterSensitiveLog(item)),
|
|
278
|
-
}),
|
|
279
|
-
});
|
|
280
|
-
export const UpdateApprovalTeamRequestFilterSensitiveLog = (obj) => ({
|
|
281
|
-
...obj,
|
|
282
|
-
...(obj.ApprovalStrategy && { ApprovalStrategy: obj.ApprovalStrategy }),
|
|
283
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
284
|
-
});
|
|
285
|
-
export const PolicyVersionFilterSensitiveLog = (obj) => ({
|
|
286
|
-
...obj,
|
|
287
|
-
...(obj.Document && { Document: SENSITIVE_STRING }),
|
|
288
|
-
});
|
|
289
|
-
export const GetPolicyVersionResponseFilterSensitiveLog = (obj) => ({
|
|
290
|
-
...obj,
|
|
291
|
-
...(obj.PolicyVersion && { PolicyVersion: PolicyVersionFilterSensitiveLog(obj.PolicyVersion) }),
|
|
292
|
-
});
|
|
293
|
-
export const GetResourcePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
294
|
-
...obj,
|
|
295
|
-
...(obj.PolicyDocument && { PolicyDocument: SENSITIVE_STRING }),
|
|
296
|
-
});
|
|
297
|
-
export const CreateIdentitySourceRequestFilterSensitiveLog = (obj) => ({
|
|
298
|
-
...obj,
|
|
299
|
-
...(obj.Tags && { Tags: SENSITIVE_STRING }),
|
|
300
|
-
});
|
|
301
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
302
|
-
...obj,
|
|
303
|
-
...(obj.Tags && { Tags: SENSITIVE_STRING }),
|
|
304
|
-
});
|
|
305
|
-
export const GetSessionResponseFilterSensitiveLog = (obj) => ({
|
|
306
|
-
...obj,
|
|
307
|
-
...(obj.ApprovalStrategy && { ApprovalStrategy: obj.ApprovalStrategy }),
|
|
308
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
309
|
-
...(obj.Metadata && { Metadata: SENSITIVE_STRING }),
|
|
310
|
-
...(obj.RequesterComment && { RequesterComment: SENSITIVE_STRING }),
|
|
311
|
-
});
|
|
312
|
-
export const ListSessionsResponseSessionFilterSensitiveLog = (obj) => ({
|
|
313
|
-
...obj,
|
|
314
|
-
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
315
|
-
});
|
|
316
|
-
export const ListSessionsResponseFilterSensitiveLog = (obj) => ({
|
|
317
|
-
...obj,
|
|
318
|
-
...(obj.Sessions && { Sessions: obj.Sessions.map((item) => ListSessionsResponseSessionFilterSensitiveLog(item)) }),
|
|
319
|
-
});
|
|
320
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
321
|
-
...obj,
|
|
322
|
-
...(obj.Tags && { Tags: SENSITIVE_STRING }),
|
|
323
|
-
});
|
|
324
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
325
|
-
...obj,
|
|
326
|
-
...(obj.TagKeys && { TagKeys: SENSITIVE_STRING }),
|
|
327
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.mpa" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "MPA",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|