@aws-sdk/client-sso-admin 3.128.0 → 3.132.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/CHANGELOG.md +35 -0
- package/README.md +11 -15
- package/dist-cjs/SSOAdmin.js +90 -0
- package/dist-cjs/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/GetPermissionsBoundaryForPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/PutPermissionsBoundaryToPermissionSetCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +20 -1
- package/dist-cjs/models/models_0.js +99 -17
- package/dist-cjs/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +484 -2
- package/dist-es/SSOAdmin.js +90 -0
- package/dist-es/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.js +39 -0
- package/dist-es/commands/DeletePermissionsBoundaryFromPermissionSetCommand.js +39 -0
- package/dist-es/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.js +39 -0
- package/dist-es/commands/GetPermissionsBoundaryForPermissionSetCommand.js +39 -0
- package/dist-es/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.js +39 -0
- package/dist-es/commands/PutPermissionsBoundaryToPermissionSetCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +20 -1
- package/dist-es/models/models_0.js +70 -15
- package/dist-es/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +571 -0
- package/dist-types/SSOAdmin.d.ts +46 -11
- package/dist-types/SSOAdminClient.d.ts +9 -10
- package/dist-types/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/AttachManagedPolicyToPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/DeletePermissionsBoundaryFromPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/DetachManagedPolicyFromPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/GetPermissionsBoundaryForPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/ListManagedPoliciesInPermissionSetCommand.d.ts +1 -1
- package/dist-types/commands/PutPermissionsBoundaryToPermissionSetCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +244 -25
- package/dist-types/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/SSOAdmin.d.ts +30 -0
- package/dist-types/ts3.4/SSOAdminClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePermissionsBoundaryFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPermissionsBoundaryForPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPermissionsBoundaryToPermissionSetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +148 -14
- package/dist-types/ts3.4/pagination/ListCustomerManagedPolicyReferencesInPermissionSetPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.132.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.131.0...v3.132.0) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-sso-admin:** AWS SSO now supports attaching customer managed policies and a permissions boundary to your permission sets. This release adds new API operations to manage and view the customer managed policies and the permissions boundary for a given permission set. ([e65c9b2](https://github.com/aws/aws-sdk-js-v3/commit/e65c9b2e1203291d68d0fdb11d1b467d83e37cf5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-admin
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** update client endpoints as of 2022-07-14 ([93c74f4](https://github.com/aws/aws-sdk-js-v3/commit/93c74f43be2841c5918e2e1ae7aee4671c7c05b6))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-sso-admin
|
package/README.md
CHANGED
|
@@ -9,14 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript SSOAdmin Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>
|
|
13
|
-
access to multiple Amazon Web Services accounts and business applications. This guide provides information on
|
|
14
|
-
SSO operations which could be used for access management of Amazon Web Services accounts. For information about
|
|
15
|
-
Amazon Web Services SSO features, see the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">Amazon Web Services Single Sign-On User Guide</a>.</p>
|
|
16
|
-
<p>Many operations in the SSO APIs rely on identifiers for users and groups, known as
|
|
17
|
-
principals. For more information about how to work with principals and principal IDs in Amazon Web Services SSO,
|
|
18
|
-
see the <a href="https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/welcome.html">Amazon Web Services SSO Identity Store API
|
|
19
|
-
Reference</a>.</p>
|
|
12
|
+
<p></p>
|
|
20
13
|
|
|
21
14
|
## Installing
|
|
22
15
|
|
|
@@ -33,16 +26,19 @@ using your favorite package manager:
|
|
|
33
26
|
|
|
34
27
|
The AWS SDK is modulized by clients and commands.
|
|
35
28
|
To send a request, you only need to import the `SSOAdminClient` and
|
|
36
|
-
the commands you need, for example `
|
|
29
|
+
the commands you need, for example `AttachCustomerManagedPolicyReferenceToPermissionSetCommand`:
|
|
37
30
|
|
|
38
31
|
```js
|
|
39
32
|
// ES5 example
|
|
40
|
-
const {
|
|
33
|
+
const {
|
|
34
|
+
SSOAdminClient,
|
|
35
|
+
AttachCustomerManagedPolicyReferenceToPermissionSetCommand,
|
|
36
|
+
} = require("@aws-sdk/client-sso-admin");
|
|
41
37
|
```
|
|
42
38
|
|
|
43
39
|
```ts
|
|
44
40
|
// ES6+ example
|
|
45
|
-
import { SSOAdminClient,
|
|
41
|
+
import { SSOAdminClient, AttachCustomerManagedPolicyReferenceToPermissionSetCommand } from "@aws-sdk/client-sso-admin";
|
|
46
42
|
```
|
|
47
43
|
|
|
48
44
|
### Usage
|
|
@@ -61,7 +57,7 @@ const client = new SSOAdminClient({ region: "REGION" });
|
|
|
61
57
|
const params = {
|
|
62
58
|
/** input parameters */
|
|
63
59
|
};
|
|
64
|
-
const command = new
|
|
60
|
+
const command = new AttachCustomerManagedPolicyReferenceToPermissionSetCommand(params);
|
|
65
61
|
```
|
|
66
62
|
|
|
67
63
|
#### Async/await
|
|
@@ -140,7 +136,7 @@ const client = new AWS.SSOAdmin({ region: "REGION" });
|
|
|
140
136
|
|
|
141
137
|
// async/await.
|
|
142
138
|
try {
|
|
143
|
-
const data = await client.
|
|
139
|
+
const data = await client.attachCustomerManagedPolicyReferenceToPermissionSet(params);
|
|
144
140
|
// process data.
|
|
145
141
|
} catch (error) {
|
|
146
142
|
// error handling.
|
|
@@ -148,7 +144,7 @@ try {
|
|
|
148
144
|
|
|
149
145
|
// Promises.
|
|
150
146
|
client
|
|
151
|
-
.
|
|
147
|
+
.attachCustomerManagedPolicyReferenceToPermissionSet(params)
|
|
152
148
|
.then((data) => {
|
|
153
149
|
// process data.
|
|
154
150
|
})
|
|
@@ -157,7 +153,7 @@ client
|
|
|
157
153
|
});
|
|
158
154
|
|
|
159
155
|
// callbacks.
|
|
160
|
-
client.
|
|
156
|
+
client.attachCustomerManagedPolicyReferenceToPermissionSet(params, (err, data) => {
|
|
161
157
|
// process err and data.
|
|
162
158
|
});
|
|
163
159
|
```
|
package/dist-cjs/SSOAdmin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SSOAdmin = void 0;
|
|
4
|
+
const AttachCustomerManagedPolicyReferenceToPermissionSetCommand_1 = require("./commands/AttachCustomerManagedPolicyReferenceToPermissionSetCommand");
|
|
4
5
|
const AttachManagedPolicyToPermissionSetCommand_1 = require("./commands/AttachManagedPolicyToPermissionSetCommand");
|
|
5
6
|
const CreateAccountAssignmentCommand_1 = require("./commands/CreateAccountAssignmentCommand");
|
|
6
7
|
const CreateInstanceAccessControlAttributeConfigurationCommand_1 = require("./commands/CreateInstanceAccessControlAttributeConfigurationCommand");
|
|
@@ -8,18 +9,22 @@ const CreatePermissionSetCommand_1 = require("./commands/CreatePermissionSetComm
|
|
|
8
9
|
const DeleteAccountAssignmentCommand_1 = require("./commands/DeleteAccountAssignmentCommand");
|
|
9
10
|
const DeleteInlinePolicyFromPermissionSetCommand_1 = require("./commands/DeleteInlinePolicyFromPermissionSetCommand");
|
|
10
11
|
const DeleteInstanceAccessControlAttributeConfigurationCommand_1 = require("./commands/DeleteInstanceAccessControlAttributeConfigurationCommand");
|
|
12
|
+
const DeletePermissionsBoundaryFromPermissionSetCommand_1 = require("./commands/DeletePermissionsBoundaryFromPermissionSetCommand");
|
|
11
13
|
const DeletePermissionSetCommand_1 = require("./commands/DeletePermissionSetCommand");
|
|
12
14
|
const DescribeAccountAssignmentCreationStatusCommand_1 = require("./commands/DescribeAccountAssignmentCreationStatusCommand");
|
|
13
15
|
const DescribeAccountAssignmentDeletionStatusCommand_1 = require("./commands/DescribeAccountAssignmentDeletionStatusCommand");
|
|
14
16
|
const DescribeInstanceAccessControlAttributeConfigurationCommand_1 = require("./commands/DescribeInstanceAccessControlAttributeConfigurationCommand");
|
|
15
17
|
const DescribePermissionSetCommand_1 = require("./commands/DescribePermissionSetCommand");
|
|
16
18
|
const DescribePermissionSetProvisioningStatusCommand_1 = require("./commands/DescribePermissionSetProvisioningStatusCommand");
|
|
19
|
+
const DetachCustomerManagedPolicyReferenceFromPermissionSetCommand_1 = require("./commands/DetachCustomerManagedPolicyReferenceFromPermissionSetCommand");
|
|
17
20
|
const DetachManagedPolicyFromPermissionSetCommand_1 = require("./commands/DetachManagedPolicyFromPermissionSetCommand");
|
|
18
21
|
const GetInlinePolicyForPermissionSetCommand_1 = require("./commands/GetInlinePolicyForPermissionSetCommand");
|
|
22
|
+
const GetPermissionsBoundaryForPermissionSetCommand_1 = require("./commands/GetPermissionsBoundaryForPermissionSetCommand");
|
|
19
23
|
const ListAccountAssignmentCreationStatusCommand_1 = require("./commands/ListAccountAssignmentCreationStatusCommand");
|
|
20
24
|
const ListAccountAssignmentDeletionStatusCommand_1 = require("./commands/ListAccountAssignmentDeletionStatusCommand");
|
|
21
25
|
const ListAccountAssignmentsCommand_1 = require("./commands/ListAccountAssignmentsCommand");
|
|
22
26
|
const ListAccountsForProvisionedPermissionSetCommand_1 = require("./commands/ListAccountsForProvisionedPermissionSetCommand");
|
|
27
|
+
const ListCustomerManagedPolicyReferencesInPermissionSetCommand_1 = require("./commands/ListCustomerManagedPolicyReferencesInPermissionSetCommand");
|
|
23
28
|
const ListInstancesCommand_1 = require("./commands/ListInstancesCommand");
|
|
24
29
|
const ListManagedPoliciesInPermissionSetCommand_1 = require("./commands/ListManagedPoliciesInPermissionSetCommand");
|
|
25
30
|
const ListPermissionSetProvisioningStatusCommand_1 = require("./commands/ListPermissionSetProvisioningStatusCommand");
|
|
@@ -28,12 +33,27 @@ const ListPermissionSetsProvisionedToAccountCommand_1 = require("./commands/List
|
|
|
28
33
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
29
34
|
const ProvisionPermissionSetCommand_1 = require("./commands/ProvisionPermissionSetCommand");
|
|
30
35
|
const PutInlinePolicyToPermissionSetCommand_1 = require("./commands/PutInlinePolicyToPermissionSetCommand");
|
|
36
|
+
const PutPermissionsBoundaryToPermissionSetCommand_1 = require("./commands/PutPermissionsBoundaryToPermissionSetCommand");
|
|
31
37
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
32
38
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
33
39
|
const UpdateInstanceAccessControlAttributeConfigurationCommand_1 = require("./commands/UpdateInstanceAccessControlAttributeConfigurationCommand");
|
|
34
40
|
const UpdatePermissionSetCommand_1 = require("./commands/UpdatePermissionSetCommand");
|
|
35
41
|
const SSOAdminClient_1 = require("./SSOAdminClient");
|
|
36
42
|
class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
43
|
+
attachCustomerManagedPolicyReferenceToPermissionSet(args, optionsOrCb, cb) {
|
|
44
|
+
const command = new AttachCustomerManagedPolicyReferenceToPermissionSetCommand_1.AttachCustomerManagedPolicyReferenceToPermissionSetCommand(args);
|
|
45
|
+
if (typeof optionsOrCb === "function") {
|
|
46
|
+
this.send(command, optionsOrCb);
|
|
47
|
+
}
|
|
48
|
+
else if (typeof cb === "function") {
|
|
49
|
+
if (typeof optionsOrCb !== "object")
|
|
50
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return this.send(command, optionsOrCb);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
37
57
|
attachManagedPolicyToPermissionSet(args, optionsOrCb, cb) {
|
|
38
58
|
const command = new AttachManagedPolicyToPermissionSetCommand_1.AttachManagedPolicyToPermissionSetCommand(args);
|
|
39
59
|
if (typeof optionsOrCb === "function") {
|
|
@@ -132,6 +152,20 @@ class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
|
132
152
|
return this.send(command, optionsOrCb);
|
|
133
153
|
}
|
|
134
154
|
}
|
|
155
|
+
deletePermissionsBoundaryFromPermissionSet(args, optionsOrCb, cb) {
|
|
156
|
+
const command = new DeletePermissionsBoundaryFromPermissionSetCommand_1.DeletePermissionsBoundaryFromPermissionSetCommand(args);
|
|
157
|
+
if (typeof optionsOrCb === "function") {
|
|
158
|
+
this.send(command, optionsOrCb);
|
|
159
|
+
}
|
|
160
|
+
else if (typeof cb === "function") {
|
|
161
|
+
if (typeof optionsOrCb !== "object")
|
|
162
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
135
169
|
deletePermissionSet(args, optionsOrCb, cb) {
|
|
136
170
|
const command = new DeletePermissionSetCommand_1.DeletePermissionSetCommand(args);
|
|
137
171
|
if (typeof optionsOrCb === "function") {
|
|
@@ -216,6 +250,20 @@ class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
|
216
250
|
return this.send(command, optionsOrCb);
|
|
217
251
|
}
|
|
218
252
|
}
|
|
253
|
+
detachCustomerManagedPolicyReferenceFromPermissionSet(args, optionsOrCb, cb) {
|
|
254
|
+
const command = new DetachCustomerManagedPolicyReferenceFromPermissionSetCommand_1.DetachCustomerManagedPolicyReferenceFromPermissionSetCommand(args);
|
|
255
|
+
if (typeof optionsOrCb === "function") {
|
|
256
|
+
this.send(command, optionsOrCb);
|
|
257
|
+
}
|
|
258
|
+
else if (typeof cb === "function") {
|
|
259
|
+
if (typeof optionsOrCb !== "object")
|
|
260
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return this.send(command, optionsOrCb);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
219
267
|
detachManagedPolicyFromPermissionSet(args, optionsOrCb, cb) {
|
|
220
268
|
const command = new DetachManagedPolicyFromPermissionSetCommand_1.DetachManagedPolicyFromPermissionSetCommand(args);
|
|
221
269
|
if (typeof optionsOrCb === "function") {
|
|
@@ -244,6 +292,20 @@ class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
|
244
292
|
return this.send(command, optionsOrCb);
|
|
245
293
|
}
|
|
246
294
|
}
|
|
295
|
+
getPermissionsBoundaryForPermissionSet(args, optionsOrCb, cb) {
|
|
296
|
+
const command = new GetPermissionsBoundaryForPermissionSetCommand_1.GetPermissionsBoundaryForPermissionSetCommand(args);
|
|
297
|
+
if (typeof optionsOrCb === "function") {
|
|
298
|
+
this.send(command, optionsOrCb);
|
|
299
|
+
}
|
|
300
|
+
else if (typeof cb === "function") {
|
|
301
|
+
if (typeof optionsOrCb !== "object")
|
|
302
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
247
309
|
listAccountAssignmentCreationStatus(args, optionsOrCb, cb) {
|
|
248
310
|
const command = new ListAccountAssignmentCreationStatusCommand_1.ListAccountAssignmentCreationStatusCommand(args);
|
|
249
311
|
if (typeof optionsOrCb === "function") {
|
|
@@ -300,6 +362,20 @@ class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
|
300
362
|
return this.send(command, optionsOrCb);
|
|
301
363
|
}
|
|
302
364
|
}
|
|
365
|
+
listCustomerManagedPolicyReferencesInPermissionSet(args, optionsOrCb, cb) {
|
|
366
|
+
const command = new ListCustomerManagedPolicyReferencesInPermissionSetCommand_1.ListCustomerManagedPolicyReferencesInPermissionSetCommand(args);
|
|
367
|
+
if (typeof optionsOrCb === "function") {
|
|
368
|
+
this.send(command, optionsOrCb);
|
|
369
|
+
}
|
|
370
|
+
else if (typeof cb === "function") {
|
|
371
|
+
if (typeof optionsOrCb !== "object")
|
|
372
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
373
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
return this.send(command, optionsOrCb);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
303
379
|
listInstances(args, optionsOrCb, cb) {
|
|
304
380
|
const command = new ListInstancesCommand_1.ListInstancesCommand(args);
|
|
305
381
|
if (typeof optionsOrCb === "function") {
|
|
@@ -412,6 +488,20 @@ class SSOAdmin extends SSOAdminClient_1.SSOAdminClient {
|
|
|
412
488
|
return this.send(command, optionsOrCb);
|
|
413
489
|
}
|
|
414
490
|
}
|
|
491
|
+
putPermissionsBoundaryToPermissionSet(args, optionsOrCb, cb) {
|
|
492
|
+
const command = new PutPermissionsBoundaryToPermissionSetCommand_1.PutPermissionsBoundaryToPermissionSetCommand(args);
|
|
493
|
+
if (typeof optionsOrCb === "function") {
|
|
494
|
+
this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
else if (typeof cb === "function") {
|
|
497
|
+
if (typeof optionsOrCb !== "object")
|
|
498
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return this.send(command, optionsOrCb);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
415
505
|
tagResource(args, optionsOrCb, cb) {
|
|
416
506
|
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
417
507
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachCustomerManagedPolicyReferenceToPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class AttachCustomerManagedPolicyReferenceToPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "AttachCustomerManagedPolicyReferenceToPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.AttachCustomerManagedPolicyReferenceToPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.AttachCustomerManagedPolicyReferenceToPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1AttachCustomerManagedPolicyReferenceToPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.AttachCustomerManagedPolicyReferenceToPermissionSetCommand = AttachCustomerManagedPolicyReferenceToPermissionSetCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePermissionsBoundaryFromPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DeletePermissionsBoundaryFromPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "DeletePermissionsBoundaryFromPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeletePermissionsBoundaryFromPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeletePermissionsBoundaryFromPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeletePermissionsBoundaryFromPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeletePermissionsBoundaryFromPermissionSetCommand = DeletePermissionsBoundaryFromPermissionSetCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DetachCustomerManagedPolicyReferenceFromPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "DetachCustomerManagedPolicyReferenceFromPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DetachCustomerManagedPolicyReferenceFromPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DetachCustomerManagedPolicyReferenceFromPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DetachCustomerManagedPolicyReferenceFromPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DetachCustomerManagedPolicyReferenceFromPermissionSetCommand = DetachCustomerManagedPolicyReferenceFromPermissionSetCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPermissionsBoundaryForPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetPermissionsBoundaryForPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "GetPermissionsBoundaryForPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetPermissionsBoundaryForPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetPermissionsBoundaryForPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetPermissionsBoundaryForPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetPermissionsBoundaryForPermissionSetCommand = GetPermissionsBoundaryForPermissionSetCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCustomerManagedPolicyReferencesInPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListCustomerManagedPolicyReferencesInPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "ListCustomerManagedPolicyReferencesInPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListCustomerManagedPolicyReferencesInPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListCustomerManagedPolicyReferencesInPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListCustomerManagedPolicyReferencesInPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListCustomerManagedPolicyReferencesInPermissionSetCommand = ListCustomerManagedPolicyReferencesInPermissionSetCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutPermissionsBoundaryToPermissionSetCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class PutPermissionsBoundaryToPermissionSetCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SSOAdminClient";
|
|
18
|
+
const commandName = "PutPermissionsBoundaryToPermissionSetCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutPermissionsBoundaryToPermissionSetRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.PutPermissionsBoundaryToPermissionSetResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1PutPermissionsBoundaryToPermissionSetCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutPermissionsBoundaryToPermissionSetCommand = PutPermissionsBoundaryToPermissionSetCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AttachCustomerManagedPolicyReferenceToPermissionSetCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./AttachManagedPolicyToPermissionSetCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateAccountAssignmentCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateInstanceAccessControlAttributeConfigurationCommand"), exports);
|
|
@@ -9,17 +10,21 @@ tslib_1.__exportStar(require("./DeleteAccountAssignmentCommand"), exports);
|
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteInlinePolicyFromPermissionSetCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteInstanceAccessControlAttributeConfigurationCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeletePermissionSetCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DeletePermissionsBoundaryFromPermissionSetCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DescribeAccountAssignmentCreationStatusCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DescribeAccountAssignmentDeletionStatusCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./DescribeInstanceAccessControlAttributeConfigurationCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./DescribePermissionSetCommand"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./DescribePermissionSetProvisioningStatusCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DetachCustomerManagedPolicyReferenceFromPermissionSetCommand"), exports);
|
|
17
20
|
tslib_1.__exportStar(require("./DetachManagedPolicyFromPermissionSetCommand"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./GetInlinePolicyForPermissionSetCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetPermissionsBoundaryForPermissionSetCommand"), exports);
|
|
19
23
|
tslib_1.__exportStar(require("./ListAccountAssignmentCreationStatusCommand"), exports);
|
|
20
24
|
tslib_1.__exportStar(require("./ListAccountAssignmentDeletionStatusCommand"), exports);
|
|
21
25
|
tslib_1.__exportStar(require("./ListAccountAssignmentsCommand"), exports);
|
|
22
26
|
tslib_1.__exportStar(require("./ListAccountsForProvisionedPermissionSetCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListCustomerManagedPolicyReferencesInPermissionSetCommand"), exports);
|
|
23
28
|
tslib_1.__exportStar(require("./ListInstancesCommand"), exports);
|
|
24
29
|
tslib_1.__exportStar(require("./ListManagedPoliciesInPermissionSetCommand"), exports);
|
|
25
30
|
tslib_1.__exportStar(require("./ListPermissionSetProvisioningStatusCommand"), exports);
|
|
@@ -28,6 +33,7 @@ tslib_1.__exportStar(require("./ListPermissionSetsProvisionedToAccountCommand"),
|
|
|
28
33
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
29
34
|
tslib_1.__exportStar(require("./ProvisionPermissionSetCommand"), exports);
|
|
30
35
|
tslib_1.__exportStar(require("./PutInlinePolicyToPermissionSetCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./PutPermissionsBoundaryToPermissionSetCommand"), exports);
|
|
31
37
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
32
38
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
33
39
|
tslib_1.__exportStar(require("./UpdateInstanceAccessControlAttributeConfigurationCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -2,7 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
-
const regionHash = {
|
|
5
|
+
const regionHash = {
|
|
6
|
+
"us-gov-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "sso.us-gov-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
signingRegion: "us-gov-east-1",
|
|
14
|
+
},
|
|
15
|
+
"us-gov-west-1": {
|
|
16
|
+
variants: [
|
|
17
|
+
{
|
|
18
|
+
hostname: "sso.us-gov-west-1.amazonaws.com",
|
|
19
|
+
tags: [],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
signingRegion: "us-gov-west-1",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
6
25
|
const partitionHash = {
|
|
7
26
|
aws: {
|
|
8
27
|
regions: [
|