@aws-sdk/client-mpa 3.975.0 → 3.980.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 +21 -13
- package/dist-es/MPA.js +15 -1
- package/dist-types/MPA.d.ts +43 -1
- package/dist-types/ts3.4/MPA.d.ts +47 -1
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -1179,6 +1179,18 @@ class UpdateApprovalTeamCommand extends smithyClient.Command
|
|
|
1179
1179
|
.build() {
|
|
1180
1180
|
}
|
|
1181
1181
|
|
|
1182
|
+
const paginateListApprovalTeams = core.createPaginator(MPAClient, ListApprovalTeamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1183
|
+
|
|
1184
|
+
const paginateListIdentitySources = core.createPaginator(MPAClient, ListIdentitySourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1185
|
+
|
|
1186
|
+
const paginateListPolicies = core.createPaginator(MPAClient, ListPoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1187
|
+
|
|
1188
|
+
const paginateListPolicyVersions = core.createPaginator(MPAClient, ListPolicyVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1189
|
+
|
|
1190
|
+
const paginateListResourcePolicies = core.createPaginator(MPAClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1191
|
+
|
|
1192
|
+
const paginateListSessions = core.createPaginator(MPAClient, ListSessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1193
|
+
|
|
1182
1194
|
const commands = {
|
|
1183
1195
|
CancelSessionCommand,
|
|
1184
1196
|
CreateApprovalTeamCommand,
|
|
@@ -1202,21 +1214,17 @@ const commands = {
|
|
|
1202
1214
|
UntagResourceCommand,
|
|
1203
1215
|
UpdateApprovalTeamCommand,
|
|
1204
1216
|
};
|
|
1217
|
+
const paginators = {
|
|
1218
|
+
paginateListApprovalTeams,
|
|
1219
|
+
paginateListIdentitySources,
|
|
1220
|
+
paginateListPolicies,
|
|
1221
|
+
paginateListPolicyVersions,
|
|
1222
|
+
paginateListResourcePolicies,
|
|
1223
|
+
paginateListSessions,
|
|
1224
|
+
};
|
|
1205
1225
|
class MPA extends MPAClient {
|
|
1206
1226
|
}
|
|
1207
|
-
smithyClient.createAggregatedClient(commands, MPA);
|
|
1208
|
-
|
|
1209
|
-
const paginateListApprovalTeams = core.createPaginator(MPAClient, ListApprovalTeamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1210
|
-
|
|
1211
|
-
const paginateListIdentitySources = core.createPaginator(MPAClient, ListIdentitySourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1212
|
-
|
|
1213
|
-
const paginateListPolicies = core.createPaginator(MPAClient, ListPoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1214
|
-
|
|
1215
|
-
const paginateListPolicyVersions = core.createPaginator(MPAClient, ListPolicyVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1216
|
-
|
|
1217
|
-
const paginateListResourcePolicies = core.createPaginator(MPAClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1218
|
-
|
|
1219
|
-
const paginateListSessions = core.createPaginator(MPAClient, ListSessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1227
|
+
smithyClient.createAggregatedClient(commands, MPA, { paginators });
|
|
1220
1228
|
|
|
1221
1229
|
const ActionCompletionStrategy = {
|
|
1222
1230
|
AUTO_COMPLETION_UPON_APPROVAL: "AUTO_COMPLETION_UPON_APPROVAL",
|
package/dist-es/MPA.js
CHANGED
|
@@ -21,6 +21,12 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
21
21
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
22
22
|
import { UpdateApprovalTeamCommand, } from "./commands/UpdateApprovalTeamCommand";
|
|
23
23
|
import { MPAClient } from "./MPAClient";
|
|
24
|
+
import { paginateListApprovalTeams } from "./pagination/ListApprovalTeamsPaginator";
|
|
25
|
+
import { paginateListIdentitySources } from "./pagination/ListIdentitySourcesPaginator";
|
|
26
|
+
import { paginateListPolicies } from "./pagination/ListPoliciesPaginator";
|
|
27
|
+
import { paginateListPolicyVersions } from "./pagination/ListPolicyVersionsPaginator";
|
|
28
|
+
import { paginateListResourcePolicies } from "./pagination/ListResourcePoliciesPaginator";
|
|
29
|
+
import { paginateListSessions } from "./pagination/ListSessionsPaginator";
|
|
24
30
|
const commands = {
|
|
25
31
|
CancelSessionCommand,
|
|
26
32
|
CreateApprovalTeamCommand,
|
|
@@ -44,6 +50,14 @@ const commands = {
|
|
|
44
50
|
UntagResourceCommand,
|
|
45
51
|
UpdateApprovalTeamCommand,
|
|
46
52
|
};
|
|
53
|
+
const paginators = {
|
|
54
|
+
paginateListApprovalTeams,
|
|
55
|
+
paginateListIdentitySources,
|
|
56
|
+
paginateListPolicies,
|
|
57
|
+
paginateListPolicyVersions,
|
|
58
|
+
paginateListResourcePolicies,
|
|
59
|
+
paginateListSessions,
|
|
60
|
+
};
|
|
47
61
|
export class MPA extends MPAClient {
|
|
48
62
|
}
|
|
49
|
-
createAggregatedClient(commands, MPA);
|
|
63
|
+
createAggregatedClient(commands, MPA, { paginators });
|
package/dist-types/MPA.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { CancelSessionCommandInput, CancelSessionCommandOutput } from "./commands/CancelSessionCommand";
|
|
3
3
|
import { CreateApprovalTeamCommandInput, CreateApprovalTeamCommandOutput } from "./commands/CreateApprovalTeamCommand";
|
|
4
4
|
import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
|
|
@@ -151,6 +151,48 @@ export interface MPA {
|
|
|
151
151
|
updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApprovalTeamCommandOutput>;
|
|
152
152
|
updateApprovalTeam(args: UpdateApprovalTeamCommandInput, cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void): void;
|
|
153
153
|
updateApprovalTeam(args: UpdateApprovalTeamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void): void;
|
|
154
|
+
/**
|
|
155
|
+
* @see {@link ListApprovalTeamsCommand}
|
|
156
|
+
* @param args - command input.
|
|
157
|
+
* @param paginationConfig - optional pagination config.
|
|
158
|
+
* @returns AsyncIterable of {@link ListApprovalTeamsCommandOutput}.
|
|
159
|
+
*/
|
|
160
|
+
paginateListApprovalTeams(args?: ListApprovalTeamsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListApprovalTeamsCommandOutput>;
|
|
161
|
+
/**
|
|
162
|
+
* @see {@link ListIdentitySourcesCommand}
|
|
163
|
+
* @param args - command input.
|
|
164
|
+
* @param paginationConfig - optional pagination config.
|
|
165
|
+
* @returns AsyncIterable of {@link ListIdentitySourcesCommandOutput}.
|
|
166
|
+
*/
|
|
167
|
+
paginateListIdentitySources(args?: ListIdentitySourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIdentitySourcesCommandOutput>;
|
|
168
|
+
/**
|
|
169
|
+
* @see {@link ListPoliciesCommand}
|
|
170
|
+
* @param args - command input.
|
|
171
|
+
* @param paginationConfig - optional pagination config.
|
|
172
|
+
* @returns AsyncIterable of {@link ListPoliciesCommandOutput}.
|
|
173
|
+
*/
|
|
174
|
+
paginateListPolicies(args?: ListPoliciesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPoliciesCommandOutput>;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link ListPolicyVersionsCommand}
|
|
177
|
+
* @param args - command input.
|
|
178
|
+
* @param paginationConfig - optional pagination config.
|
|
179
|
+
* @returns AsyncIterable of {@link ListPolicyVersionsCommandOutput}.
|
|
180
|
+
*/
|
|
181
|
+
paginateListPolicyVersions(args: ListPolicyVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPolicyVersionsCommandOutput>;
|
|
182
|
+
/**
|
|
183
|
+
* @see {@link ListResourcePoliciesCommand}
|
|
184
|
+
* @param args - command input.
|
|
185
|
+
* @param paginationConfig - optional pagination config.
|
|
186
|
+
* @returns AsyncIterable of {@link ListResourcePoliciesCommandOutput}.
|
|
187
|
+
*/
|
|
188
|
+
paginateListResourcePolicies(args: ListResourcePoliciesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcePoliciesCommandOutput>;
|
|
189
|
+
/**
|
|
190
|
+
* @see {@link ListSessionsCommand}
|
|
191
|
+
* @param args - command input.
|
|
192
|
+
* @param paginationConfig - optional pagination config.
|
|
193
|
+
* @returns AsyncIterable of {@link ListSessionsCommandOutput}.
|
|
194
|
+
*/
|
|
195
|
+
paginateListSessions(args: ListSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSessionsCommandOutput>;
|
|
154
196
|
}
|
|
155
197
|
/**
|
|
156
198
|
* <p>Multi-party approval is a capability of <a href="http://aws.amazon.com/organizations">Organizations</a> that allows you to protect a predefined list of operations through a distributed approval process. Use Multi-party approval to establish approval workflows and transform security processes into team-based decisions.</p> <p> <b>When to use Multi-party approval</b>:</p> <ul> <li> <p>You need to align with the Zero Trust principle of "never trust, always verify"</p> </li> <li> <p>You need to make sure that the right humans have access to the right things in the right way</p> </li> <li> <p>You need distributed decision-making for sensitive or critical operations</p> </li> <li> <p>You need to protect against unintended operations on sensitive or critical resources</p> </li> <li> <p>You need formal reviews and approvals for auditing or compliance reasons</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/what-is.html">What is Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
CancelSessionCommandInput,
|
|
4
8
|
CancelSessionCommandOutput,
|
|
@@ -367,5 +371,47 @@ export interface MPA {
|
|
|
367
371
|
options: __HttpHandlerOptions,
|
|
368
372
|
cb: (err: any, data?: UpdateApprovalTeamCommandOutput) => void
|
|
369
373
|
): void;
|
|
374
|
+
paginateListApprovalTeams(
|
|
375
|
+
args?: ListApprovalTeamsCommandInput,
|
|
376
|
+
paginationConfig?: Pick<
|
|
377
|
+
PaginationConfiguration,
|
|
378
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
379
|
+
>
|
|
380
|
+
): Paginator<ListApprovalTeamsCommandOutput>;
|
|
381
|
+
paginateListIdentitySources(
|
|
382
|
+
args?: ListIdentitySourcesCommandInput,
|
|
383
|
+
paginationConfig?: Pick<
|
|
384
|
+
PaginationConfiguration,
|
|
385
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
386
|
+
>
|
|
387
|
+
): Paginator<ListIdentitySourcesCommandOutput>;
|
|
388
|
+
paginateListPolicies(
|
|
389
|
+
args?: ListPoliciesCommandInput,
|
|
390
|
+
paginationConfig?: Pick<
|
|
391
|
+
PaginationConfiguration,
|
|
392
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
393
|
+
>
|
|
394
|
+
): Paginator<ListPoliciesCommandOutput>;
|
|
395
|
+
paginateListPolicyVersions(
|
|
396
|
+
args: ListPolicyVersionsCommandInput,
|
|
397
|
+
paginationConfig?: Pick<
|
|
398
|
+
PaginationConfiguration,
|
|
399
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
400
|
+
>
|
|
401
|
+
): Paginator<ListPolicyVersionsCommandOutput>;
|
|
402
|
+
paginateListResourcePolicies(
|
|
403
|
+
args: ListResourcePoliciesCommandInput,
|
|
404
|
+
paginationConfig?: Pick<
|
|
405
|
+
PaginationConfiguration,
|
|
406
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
407
|
+
>
|
|
408
|
+
): Paginator<ListResourcePoliciesCommandOutput>;
|
|
409
|
+
paginateListSessions(
|
|
410
|
+
args: ListSessionsCommandInput,
|
|
411
|
+
paginationConfig?: Pick<
|
|
412
|
+
PaginationConfiguration,
|
|
413
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
414
|
+
>
|
|
415
|
+
): Paginator<ListSessionsCommandOutput>;
|
|
370
416
|
}
|
|
371
417
|
export declare class MPA extends MPAClient implements MPA {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mpa",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mpa Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-mpa",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|