@aws-sdk/client-organizations 3.216.0 → 3.222.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/Organizations.js +45 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +45 -0
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +16 -16
- package/dist-cjs/models/models_0.js +42 -3
- package/dist-cjs/protocols/Aws_json1_1.js +234 -3
- package/dist-es/Organizations.js +45 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +41 -0
- package/dist-es/commands/DescribeResourcePolicyCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +16 -16
- package/dist-es/models/models_0.js +33 -0
- package/dist-es/protocols/Aws_json1_1.js +226 -1
- package/dist-types/Organizations.d.ts +31 -7
- package/dist-types/OrganizationsClient.d.ts +5 -2
- package/dist-types/commands/AcceptHandshakeCommand.d.ts +1 -1
- package/dist-types/commands/CloseAccountCommand.d.ts +3 -3
- package/dist-types/commands/CreateAccountCommand.d.ts +2 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +37 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +38 -0
- package/dist-types/commands/EnableAWSServiceAccessCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +99 -4
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Organizations.d.ts +51 -0
- package/dist-types/ts3.4/OrganizationsClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +49 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +29 -28
|
@@ -14,6 +14,7 @@ const DeclineHandshakeCommand_1 = require("./commands/DeclineHandshakeCommand");
|
|
|
14
14
|
const DeleteOrganizationalUnitCommand_1 = require("./commands/DeleteOrganizationalUnitCommand");
|
|
15
15
|
const DeleteOrganizationCommand_1 = require("./commands/DeleteOrganizationCommand");
|
|
16
16
|
const DeletePolicyCommand_1 = require("./commands/DeletePolicyCommand");
|
|
17
|
+
const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
|
|
17
18
|
const DeregisterDelegatedAdministratorCommand_1 = require("./commands/DeregisterDelegatedAdministratorCommand");
|
|
18
19
|
const DescribeAccountCommand_1 = require("./commands/DescribeAccountCommand");
|
|
19
20
|
const DescribeCreateAccountStatusCommand_1 = require("./commands/DescribeCreateAccountStatusCommand");
|
|
@@ -22,6 +23,7 @@ const DescribeHandshakeCommand_1 = require("./commands/DescribeHandshakeCommand"
|
|
|
22
23
|
const DescribeOrganizationalUnitCommand_1 = require("./commands/DescribeOrganizationalUnitCommand");
|
|
23
24
|
const DescribeOrganizationCommand_1 = require("./commands/DescribeOrganizationCommand");
|
|
24
25
|
const DescribePolicyCommand_1 = require("./commands/DescribePolicyCommand");
|
|
26
|
+
const DescribeResourcePolicyCommand_1 = require("./commands/DescribeResourcePolicyCommand");
|
|
25
27
|
const DetachPolicyCommand_1 = require("./commands/DetachPolicyCommand");
|
|
26
28
|
const DisableAWSServiceAccessCommand_1 = require("./commands/DisableAWSServiceAccessCommand");
|
|
27
29
|
const DisablePolicyTypeCommand_1 = require("./commands/DisablePolicyTypeCommand");
|
|
@@ -47,6 +49,7 @@ const ListRootsCommand_1 = require("./commands/ListRootsCommand");
|
|
|
47
49
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
48
50
|
const ListTargetsForPolicyCommand_1 = require("./commands/ListTargetsForPolicyCommand");
|
|
49
51
|
const MoveAccountCommand_1 = require("./commands/MoveAccountCommand");
|
|
52
|
+
const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
|
|
50
53
|
const RegisterDelegatedAdministratorCommand_1 = require("./commands/RegisterDelegatedAdministratorCommand");
|
|
51
54
|
const RemoveAccountFromOrganizationCommand_1 = require("./commands/RemoveAccountFromOrganizationCommand");
|
|
52
55
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -237,6 +240,20 @@ class Organizations extends OrganizationsClient_1.OrganizationsClient {
|
|
|
237
240
|
return this.send(command, optionsOrCb);
|
|
238
241
|
}
|
|
239
242
|
}
|
|
243
|
+
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
244
|
+
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
245
|
+
if (typeof optionsOrCb === "function") {
|
|
246
|
+
this.send(command, optionsOrCb);
|
|
247
|
+
}
|
|
248
|
+
else if (typeof cb === "function") {
|
|
249
|
+
if (typeof optionsOrCb !== "object")
|
|
250
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
251
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
return this.send(command, optionsOrCb);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
240
257
|
deregisterDelegatedAdministrator(args, optionsOrCb, cb) {
|
|
241
258
|
const command = new DeregisterDelegatedAdministratorCommand_1.DeregisterDelegatedAdministratorCommand(args);
|
|
242
259
|
if (typeof optionsOrCb === "function") {
|
|
@@ -349,6 +366,20 @@ class Organizations extends OrganizationsClient_1.OrganizationsClient {
|
|
|
349
366
|
return this.send(command, optionsOrCb);
|
|
350
367
|
}
|
|
351
368
|
}
|
|
369
|
+
describeResourcePolicy(args, optionsOrCb, cb) {
|
|
370
|
+
const command = new DescribeResourcePolicyCommand_1.DescribeResourcePolicyCommand(args);
|
|
371
|
+
if (typeof optionsOrCb === "function") {
|
|
372
|
+
this.send(command, optionsOrCb);
|
|
373
|
+
}
|
|
374
|
+
else if (typeof cb === "function") {
|
|
375
|
+
if (typeof optionsOrCb !== "object")
|
|
376
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
return this.send(command, optionsOrCb);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
352
383
|
detachPolicy(args, optionsOrCb, cb) {
|
|
353
384
|
const command = new DetachPolicyCommand_1.DetachPolicyCommand(args);
|
|
354
385
|
if (typeof optionsOrCb === "function") {
|
|
@@ -699,6 +730,20 @@ class Organizations extends OrganizationsClient_1.OrganizationsClient {
|
|
|
699
730
|
return this.send(command, optionsOrCb);
|
|
700
731
|
}
|
|
701
732
|
}
|
|
733
|
+
putResourcePolicy(args, optionsOrCb, cb) {
|
|
734
|
+
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
735
|
+
if (typeof optionsOrCb === "function") {
|
|
736
|
+
this.send(command, optionsOrCb);
|
|
737
|
+
}
|
|
738
|
+
else if (typeof cb === "function") {
|
|
739
|
+
if (typeof optionsOrCb !== "object")
|
|
740
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
741
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
return this.send(command, optionsOrCb);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
702
747
|
registerDelegatedAdministrator(args, optionsOrCb, cb) {
|
|
703
748
|
const command = new RegisterDelegatedAdministratorCommand_1.RegisterDelegatedAdministratorCommand(args);
|
|
704
749
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteResourcePolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DeleteResourcePolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
static getEndpointParameterInstructions() {
|
|
14
|
+
return {
|
|
15
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
+
Region: { type: "builtInParams", name: "region" },
|
|
18
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "OrganizationsClient";
|
|
27
|
+
const commandName = "DeleteResourcePolicyCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (input) => input,
|
|
33
|
+
outputFilterSensitiveLog: (output) => output,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DeleteResourcePolicyCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteResourcePolicyCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeResourcePolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DescribeResourcePolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OrganizationsClient";
|
|
28
|
+
const commandName = "DescribeResourcePolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (input) => input,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DescribeResourcePolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1DescribeResourcePolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeResourcePolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeResourcePolicyCommand = DescribeResourcePolicyCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutResourcePolicyCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class PutResourcePolicyCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "OrganizationsClient";
|
|
28
|
+
const commandName = "PutResourcePolicyCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.PutResourcePolicyRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.PutResourcePolicyResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1PutResourcePolicyCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1PutResourcePolicyCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./DeclineHandshakeCommand"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./DeleteOrganizationCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./DeleteOrganizationalUnitCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./DeletePolicyCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DeregisterDelegatedAdministratorCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./DescribeAccountCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./DescribeCreateAccountStatusCommand"), exports);
|
|
@@ -22,6 +23,7 @@ tslib_1.__exportStar(require("./DescribeHandshakeCommand"), exports);
|
|
|
22
23
|
tslib_1.__exportStar(require("./DescribeOrganizationCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./DescribeOrganizationalUnitCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./DescribePolicyCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./DescribeResourcePolicyCommand"), exports);
|
|
25
27
|
tslib_1.__exportStar(require("./DetachPolicyCommand"), exports);
|
|
26
28
|
tslib_1.__exportStar(require("./DisableAWSServiceAccessCommand"), exports);
|
|
27
29
|
tslib_1.__exportStar(require("./DisablePolicyTypeCommand"), exports);
|
|
@@ -47,6 +49,7 @@ tslib_1.__exportStar(require("./ListRootsCommand"), exports);
|
|
|
47
49
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
48
50
|
tslib_1.__exportStar(require("./ListTargetsForPolicyCommand"), exports);
|
|
49
51
|
tslib_1.__exportStar(require("./MoveAccountCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
|
|
50
53
|
tslib_1.__exportStar(require("./RegisterDelegatedAdministratorCommand"), exports);
|
|
51
54
|
tslib_1.__exportStar(require("./RemoveAccountFromOrganizationCommand"), exports);
|
|
52
55
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -6,7 +6,7 @@ exports.ruleSet = {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
Region: {
|
|
8
8
|
builtIn: "AWS::Region",
|
|
9
|
-
required:
|
|
9
|
+
required: true,
|
|
10
10
|
documentation: "The AWS region used to dispatch the request.",
|
|
11
11
|
type: "String",
|
|
12
12
|
},
|
|
@@ -203,8 +203,8 @@ exports.ruleSet = {
|
|
|
203
203
|
authSchemes: [
|
|
204
204
|
{
|
|
205
205
|
name: "sigv4",
|
|
206
|
-
signingName: "organizations",
|
|
207
206
|
signingRegion: "us-east-1",
|
|
207
|
+
signingName: "organizations",
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
210
|
},
|
|
@@ -263,8 +263,8 @@ exports.ruleSet = {
|
|
|
263
263
|
authSchemes: [
|
|
264
264
|
{
|
|
265
265
|
name: "sigv4",
|
|
266
|
-
signingName: "organizations",
|
|
267
266
|
signingRegion: "us-east-1",
|
|
267
|
+
signingName: "organizations",
|
|
268
268
|
},
|
|
269
269
|
],
|
|
270
270
|
},
|
|
@@ -323,8 +323,8 @@ exports.ruleSet = {
|
|
|
323
323
|
authSchemes: [
|
|
324
324
|
{
|
|
325
325
|
name: "sigv4",
|
|
326
|
-
signingName: "organizations",
|
|
327
326
|
signingRegion: "us-east-1",
|
|
327
|
+
signingName: "organizations",
|
|
328
328
|
},
|
|
329
329
|
],
|
|
330
330
|
},
|
|
@@ -349,8 +349,8 @@ exports.ruleSet = {
|
|
|
349
349
|
authSchemes: [
|
|
350
350
|
{
|
|
351
351
|
name: "sigv4",
|
|
352
|
-
signingName: "organizations",
|
|
353
352
|
signingRegion: "us-east-1",
|
|
353
|
+
signingName: "organizations",
|
|
354
354
|
},
|
|
355
355
|
],
|
|
356
356
|
},
|
|
@@ -446,8 +446,8 @@ exports.ruleSet = {
|
|
|
446
446
|
authSchemes: [
|
|
447
447
|
{
|
|
448
448
|
name: "sigv4",
|
|
449
|
-
signingName: "organizations",
|
|
450
449
|
signingRegion: "cn-northwest-1",
|
|
450
|
+
signingName: "organizations",
|
|
451
451
|
},
|
|
452
452
|
],
|
|
453
453
|
},
|
|
@@ -506,8 +506,8 @@ exports.ruleSet = {
|
|
|
506
506
|
authSchemes: [
|
|
507
507
|
{
|
|
508
508
|
name: "sigv4",
|
|
509
|
-
signingName: "organizations",
|
|
510
509
|
signingRegion: "cn-northwest-1",
|
|
510
|
+
signingName: "organizations",
|
|
511
511
|
},
|
|
512
512
|
],
|
|
513
513
|
},
|
|
@@ -566,8 +566,8 @@ exports.ruleSet = {
|
|
|
566
566
|
authSchemes: [
|
|
567
567
|
{
|
|
568
568
|
name: "sigv4",
|
|
569
|
-
signingName: "organizations",
|
|
570
569
|
signingRegion: "cn-northwest-1",
|
|
570
|
+
signingName: "organizations",
|
|
571
571
|
},
|
|
572
572
|
],
|
|
573
573
|
},
|
|
@@ -592,8 +592,8 @@ exports.ruleSet = {
|
|
|
592
592
|
authSchemes: [
|
|
593
593
|
{
|
|
594
594
|
name: "sigv4",
|
|
595
|
-
signingName: "organizations",
|
|
596
595
|
signingRegion: "cn-northwest-1",
|
|
596
|
+
signingName: "organizations",
|
|
597
597
|
},
|
|
598
598
|
],
|
|
599
599
|
},
|
|
@@ -689,8 +689,8 @@ exports.ruleSet = {
|
|
|
689
689
|
authSchemes: [
|
|
690
690
|
{
|
|
691
691
|
name: "sigv4",
|
|
692
|
-
signingName: "organizations",
|
|
693
692
|
signingRegion: "us-gov-west-1",
|
|
693
|
+
signingName: "organizations",
|
|
694
694
|
},
|
|
695
695
|
],
|
|
696
696
|
},
|
|
@@ -749,8 +749,8 @@ exports.ruleSet = {
|
|
|
749
749
|
authSchemes: [
|
|
750
750
|
{
|
|
751
751
|
name: "sigv4",
|
|
752
|
-
signingName: "organizations",
|
|
753
752
|
signingRegion: "us-gov-west-1",
|
|
753
|
+
signingName: "organizations",
|
|
754
754
|
},
|
|
755
755
|
],
|
|
756
756
|
},
|
|
@@ -809,8 +809,8 @@ exports.ruleSet = {
|
|
|
809
809
|
authSchemes: [
|
|
810
810
|
{
|
|
811
811
|
name: "sigv4",
|
|
812
|
-
signingName: "organizations",
|
|
813
812
|
signingRegion: "us-gov-west-1",
|
|
813
|
+
signingName: "organizations",
|
|
814
814
|
},
|
|
815
815
|
],
|
|
816
816
|
},
|
|
@@ -835,8 +835,8 @@ exports.ruleSet = {
|
|
|
835
835
|
authSchemes: [
|
|
836
836
|
{
|
|
837
837
|
name: "sigv4",
|
|
838
|
-
signingName: "organizations",
|
|
839
838
|
signingRegion: "us-gov-west-1",
|
|
839
|
+
signingName: "organizations",
|
|
840
840
|
},
|
|
841
841
|
],
|
|
842
842
|
},
|
|
@@ -1092,8 +1092,8 @@ exports.ruleSet = {
|
|
|
1092
1092
|
authSchemes: [
|
|
1093
1093
|
{
|
|
1094
1094
|
name: "sigv4",
|
|
1095
|
-
signingName: "organizations",
|
|
1096
1095
|
signingRegion: "us-east-1",
|
|
1096
|
+
signingName: "organizations",
|
|
1097
1097
|
},
|
|
1098
1098
|
],
|
|
1099
1099
|
},
|
|
@@ -1119,8 +1119,8 @@ exports.ruleSet = {
|
|
|
1119
1119
|
authSchemes: [
|
|
1120
1120
|
{
|
|
1121
1121
|
name: "sigv4",
|
|
1122
|
-
signingName: "organizations",
|
|
1123
1122
|
signingRegion: "cn-northwest-1",
|
|
1123
|
+
signingName: "organizations",
|
|
1124
1124
|
},
|
|
1125
1125
|
],
|
|
1126
1126
|
},
|
|
@@ -1146,8 +1146,8 @@ exports.ruleSet = {
|
|
|
1146
1146
|
authSchemes: [
|
|
1147
1147
|
{
|
|
1148
1148
|
name: "sigv4",
|
|
1149
|
-
signingName: "organizations",
|
|
1150
1149
|
signingRegion: "us-gov-west-1",
|
|
1150
|
+
signingName: "organizations",
|
|
1151
1151
|
},
|
|
1152
1152
|
],
|
|
1153
1153
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OrganizationalUnitNotFoundException = exports.OrganizationalUnitNotEmptyException = exports.OrganizationNotEmptyException = exports.PolicyTypeNotAvailableForOrganizationException = exports.MalformedPolicyDocumentException = exports.DuplicatePolicyException = exports.ParentNotFoundException = exports.DuplicateOrganizationalUnitException = exports.PolicyType = exports.PolicyTypeStatus = exports.OrganizationFeatureSet = exports.FinalizingOrganizationException = exports.CreateAccountState = exports.CreateAccountFailureReason = exports.IAMUserAccessToBilling = exports.ConflictException = exports.UnsupportedAPIEndpointException = exports.TargetNotFoundException = exports.PolicyTypeNotEnabledException = exports.PolicyNotFoundException = exports.PolicyChangesInProgressException = exports.DuplicatePolicyAttachmentException = exports.ConstraintViolationException = exports.ConstraintViolationExceptionReason = exports.AlreadyInOrganizationException = exports.AccountOwnerNotVerifiedException = exports.AccountNotRegisteredException = exports.AccountNotFoundException = exports.AccountAlreadyRegisteredException = exports.AccountAlreadyClosedException = exports.AccountStatus = exports.AccountJoinedMethod = exports.TooManyRequestsException = exports.ServiceException = exports.InvalidInputException = exports.InvalidInputExceptionReason = exports.InvalidHandshakeTransitionException = exports.HandshakeNotFoundException = exports.HandshakeConstraintViolationException = exports.HandshakeConstraintViolationExceptionReason = exports.HandshakeAlreadyInStateException = exports.ConcurrentModificationException = exports.AWSOrganizationsNotInUseException = exports.AccessDeniedForDependencyException = exports.AccessDeniedForDependencyExceptionReason = exports.AccessDeniedException = exports.HandshakeState = exports.HandshakeResourceType = exports.HandshakePartyType = exports.ActionType = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.ListHandshakesForOrganizationResponseFilterSensitiveLog = exports.ListHandshakesForAccountResponseFilterSensitiveLog = exports.InviteAccountToOrganizationResponseFilterSensitiveLog = exports.EnableAllFeaturesResponseFilterSensitiveLog = exports.DescribeHandshakeResponseFilterSensitiveLog = exports.DeclineHandshakeResponseFilterSensitiveLog = exports.CancelHandshakeResponseFilterSensitiveLog = exports.AcceptHandshakeResponseFilterSensitiveLog = exports.HandshakeFilterSensitiveLog = exports.HandshakeResourceFilterSensitiveLog = exports.UpdatePolicyResponseFilterSensitiveLog = exports.UpdatePolicyRequestFilterSensitiveLog = exports.UpdateOrganizationalUnitResponseFilterSensitiveLog = exports.UpdateOrganizationalUnitRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemoveAccountFromOrganizationRequestFilterSensitiveLog = exports.RegisterDelegatedAdministratorRequestFilterSensitiveLog = exports.MoveAccountRequestFilterSensitiveLog = exports.ListTargetsForPolicyResponseFilterSensitiveLog = exports.PolicyTargetSummaryFilterSensitiveLog = exports.ListTargetsForPolicyRequestFilterSensitiveLog = void 0;
|
|
4
|
+
exports.EffectivePolicyFilterSensitiveLog = exports.DescribeEffectivePolicyRequestFilterSensitiveLog = exports.DescribeCreateAccountStatusResponseFilterSensitiveLog = exports.DescribeCreateAccountStatusRequestFilterSensitiveLog = exports.DescribeAccountResponseFilterSensitiveLog = exports.DescribeAccountRequestFilterSensitiveLog = exports.DeregisterDelegatedAdministratorRequestFilterSensitiveLog = exports.DeletePolicyRequestFilterSensitiveLog = exports.DeleteOrganizationalUnitRequestFilterSensitiveLog = exports.DeclineHandshakeRequestFilterSensitiveLog = exports.CreatePolicyResponseFilterSensitiveLog = exports.PolicyFilterSensitiveLog = exports.PolicySummaryFilterSensitiveLog = exports.CreatePolicyRequestFilterSensitiveLog = exports.CreateOrganizationalUnitResponseFilterSensitiveLog = exports.OrganizationalUnitFilterSensitiveLog = exports.CreateOrganizationalUnitRequestFilterSensitiveLog = exports.CreateOrganizationResponseFilterSensitiveLog = exports.OrganizationFilterSensitiveLog = exports.PolicyTypeSummaryFilterSensitiveLog = exports.CreateOrganizationRequestFilterSensitiveLog = exports.CreateGovCloudAccountResponseFilterSensitiveLog = exports.CreateGovCloudAccountRequestFilterSensitiveLog = exports.CreateAccountResponseFilterSensitiveLog = exports.CreateAccountStatusFilterSensitiveLog = exports.CreateAccountRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CloseAccountRequestFilterSensitiveLog = exports.CancelHandshakeRequestFilterSensitiveLog = exports.AttachPolicyRequestFilterSensitiveLog = exports.AccountFilterSensitiveLog = exports.HandshakePartyFilterSensitiveLog = exports.AcceptHandshakeRequestFilterSensitiveLog = exports.SourceParentNotFoundException = exports.DuplicateAccountException = exports.DestinationParentNotFoundException = exports.TargetType = exports.ParentType = exports.ChildNotFoundException = exports.ChildType = exports.MasterCannotLeaveOrganizationException = exports.DuplicateHandshakeException = exports.PolicyTypeAlreadyEnabledException = exports.RootNotFoundException = exports.PolicyNotAttachedException = exports.EffectivePolicyNotFoundException = exports.EffectivePolicyType = exports.CreateAccountStatusNotFoundException = exports.ResourcePolicyNotFoundException = exports.PolicyInUseException = void 0;
|
|
5
|
+
exports.ListPoliciesForTargetResponseFilterSensitiveLog = exports.ListPoliciesForTargetRequestFilterSensitiveLog = exports.ListPoliciesResponseFilterSensitiveLog = exports.ListPoliciesRequestFilterSensitiveLog = exports.ListParentsResponseFilterSensitiveLog = exports.ParentFilterSensitiveLog = exports.ListParentsRequestFilterSensitiveLog = exports.ListOrganizationalUnitsForParentResponseFilterSensitiveLog = exports.ListOrganizationalUnitsForParentRequestFilterSensitiveLog = exports.ListHandshakesForOrganizationRequestFilterSensitiveLog = exports.ListHandshakesForAccountRequestFilterSensitiveLog = exports.HandshakeFilterFilterSensitiveLog = exports.ListDelegatedServicesForAccountResponseFilterSensitiveLog = exports.DelegatedServiceFilterSensitiveLog = exports.ListDelegatedServicesForAccountRequestFilterSensitiveLog = exports.ListDelegatedAdministratorsResponseFilterSensitiveLog = exports.DelegatedAdministratorFilterSensitiveLog = exports.ListDelegatedAdministratorsRequestFilterSensitiveLog = exports.ListCreateAccountStatusResponseFilterSensitiveLog = exports.ListCreateAccountStatusRequestFilterSensitiveLog = exports.ListChildrenResponseFilterSensitiveLog = exports.ChildFilterSensitiveLog = exports.ListChildrenRequestFilterSensitiveLog = exports.ListAWSServiceAccessForOrganizationResponseFilterSensitiveLog = exports.EnabledServicePrincipalFilterSensitiveLog = exports.ListAWSServiceAccessForOrganizationRequestFilterSensitiveLog = exports.ListAccountsForParentResponseFilterSensitiveLog = exports.ListAccountsForParentRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.InviteAccountToOrganizationRequestFilterSensitiveLog = exports.EnablePolicyTypeResponseFilterSensitiveLog = exports.EnablePolicyTypeRequestFilterSensitiveLog = exports.EnableAWSServiceAccessRequestFilterSensitiveLog = exports.EnableAllFeaturesRequestFilterSensitiveLog = exports.DisablePolicyTypeResponseFilterSensitiveLog = exports.RootFilterSensitiveLog = exports.DisablePolicyTypeRequestFilterSensitiveLog = exports.DisableAWSServiceAccessRequestFilterSensitiveLog = exports.DetachPolicyRequestFilterSensitiveLog = exports.DescribeResourcePolicyResponseFilterSensitiveLog = exports.ResourcePolicyFilterSensitiveLog = exports.ResourcePolicySummaryFilterSensitiveLog = exports.DescribePolicyResponseFilterSensitiveLog = exports.DescribePolicyRequestFilterSensitiveLog = exports.DescribeOrganizationalUnitResponseFilterSensitiveLog = exports.DescribeOrganizationalUnitRequestFilterSensitiveLog = exports.DescribeOrganizationResponseFilterSensitiveLog = exports.DescribeHandshakeRequestFilterSensitiveLog = exports.DescribeEffectivePolicyResponseFilterSensitiveLog = void 0;
|
|
6
|
+
exports.ListHandshakesForOrganizationResponseFilterSensitiveLog = exports.ListHandshakesForAccountResponseFilterSensitiveLog = exports.InviteAccountToOrganizationResponseFilterSensitiveLog = exports.EnableAllFeaturesResponseFilterSensitiveLog = exports.DescribeHandshakeResponseFilterSensitiveLog = exports.DeclineHandshakeResponseFilterSensitiveLog = exports.CancelHandshakeResponseFilterSensitiveLog = exports.AcceptHandshakeResponseFilterSensitiveLog = exports.HandshakeFilterSensitiveLog = exports.HandshakeResourceFilterSensitiveLog = exports.UpdatePolicyResponseFilterSensitiveLog = exports.UpdatePolicyRequestFilterSensitiveLog = exports.UpdateOrganizationalUnitResponseFilterSensitiveLog = exports.UpdateOrganizationalUnitRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RemoveAccountFromOrganizationRequestFilterSensitiveLog = exports.RegisterDelegatedAdministratorRequestFilterSensitiveLog = exports.PutResourcePolicyResponseFilterSensitiveLog = exports.PutResourcePolicyRequestFilterSensitiveLog = exports.MoveAccountRequestFilterSensitiveLog = exports.ListTargetsForPolicyResponseFilterSensitiveLog = exports.PolicyTargetSummaryFilterSensitiveLog = exports.ListTargetsForPolicyRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListRootsResponseFilterSensitiveLog = exports.ListRootsRequestFilterSensitiveLog = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const OrganizationsServiceException_1 = require("./OrganizationsServiceException");
|
|
9
9
|
var ActionType;
|
|
@@ -184,6 +184,7 @@ var InvalidInputExceptionReason;
|
|
|
184
184
|
InvalidInputExceptionReason["INVALID_PARTY_TYPE_TARGET"] = "INVALID_PARTY_TYPE_TARGET";
|
|
185
185
|
InvalidInputExceptionReason["INVALID_PATTERN"] = "INVALID_PATTERN";
|
|
186
186
|
InvalidInputExceptionReason["INVALID_PATTERN_TARGET_ID"] = "INVALID_PATTERN_TARGET_ID";
|
|
187
|
+
InvalidInputExceptionReason["INVALID_RESOURCE_POLICY_JSON"] = "INVALID_RESOURCE_POLICY_JSON";
|
|
187
188
|
InvalidInputExceptionReason["INVALID_ROLE_NAME"] = "INVALID_ROLE_NAME";
|
|
188
189
|
InvalidInputExceptionReason["INVALID_SYNTAX_ORGANIZATION"] = "INVALID_SYNTAX_ORGANIZATION_ARN";
|
|
189
190
|
InvalidInputExceptionReason["INVALID_SYNTAX_POLICY"] = "INVALID_SYNTAX_POLICY_ID";
|
|
@@ -196,6 +197,9 @@ var InvalidInputExceptionReason;
|
|
|
196
197
|
InvalidInputExceptionReason["MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS"] = "MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS";
|
|
197
198
|
InvalidInputExceptionReason["TARGET_NOT_SUPPORTED"] = "TARGET_NOT_SUPPORTED";
|
|
198
199
|
InvalidInputExceptionReason["UNRECOGNIZED_SERVICE_PRINCIPAL"] = "UNRECOGNIZED_SERVICE_PRINCIPAL";
|
|
200
|
+
InvalidInputExceptionReason["UNSUPPORTED_ACTION_IN_RESOURCE_POLICY"] = "UNSUPPORTED_ACTION_IN_RESOURCE_POLICY";
|
|
201
|
+
InvalidInputExceptionReason["UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY"] = "UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY";
|
|
202
|
+
InvalidInputExceptionReason["UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY"] = "UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY";
|
|
199
203
|
})(InvalidInputExceptionReason = exports.InvalidInputExceptionReason || (exports.InvalidInputExceptionReason = {}));
|
|
200
204
|
class InvalidInputException extends OrganizationsServiceException_1.OrganizationsServiceException {
|
|
201
205
|
constructor(opts) {
|
|
@@ -506,6 +510,7 @@ var CreateAccountFailureReason;
|
|
|
506
510
|
CreateAccountFailureReason["MISSING_PAYMENT_INSTRUMENT"] = "MISSING_PAYMENT_INSTRUMENT";
|
|
507
511
|
CreateAccountFailureReason["PENDING_BUSINESS_VALIDATIONv"] = "PENDING_BUSINESS_VALIDATION";
|
|
508
512
|
CreateAccountFailureReason["UNKNOWN_BUSINESS_VALIDATION"] = "UNKNOWN_BUSINESS_VALIDATION";
|
|
513
|
+
CreateAccountFailureReason["UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED"] = "UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED";
|
|
509
514
|
})(CreateAccountFailureReason = exports.CreateAccountFailureReason || (exports.CreateAccountFailureReason = {}));
|
|
510
515
|
var CreateAccountState;
|
|
511
516
|
(function (CreateAccountState) {
|
|
@@ -671,6 +676,20 @@ class PolicyInUseException extends OrganizationsServiceException_1.Organizations
|
|
|
671
676
|
}
|
|
672
677
|
}
|
|
673
678
|
exports.PolicyInUseException = PolicyInUseException;
|
|
679
|
+
class ResourcePolicyNotFoundException extends OrganizationsServiceException_1.OrganizationsServiceException {
|
|
680
|
+
constructor(opts) {
|
|
681
|
+
super({
|
|
682
|
+
name: "ResourcePolicyNotFoundException",
|
|
683
|
+
$fault: "client",
|
|
684
|
+
...opts,
|
|
685
|
+
});
|
|
686
|
+
this.name = "ResourcePolicyNotFoundException";
|
|
687
|
+
this.$fault = "client";
|
|
688
|
+
Object.setPrototypeOf(this, ResourcePolicyNotFoundException.prototype);
|
|
689
|
+
this.Message = opts.Message;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
exports.ResourcePolicyNotFoundException = ResourcePolicyNotFoundException;
|
|
674
693
|
class CreateAccountStatusNotFoundException extends OrganizationsServiceException_1.OrganizationsServiceException {
|
|
675
694
|
constructor(opts) {
|
|
676
695
|
super({
|
|
@@ -1028,6 +1047,18 @@ const DescribePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
|
1028
1047
|
...obj,
|
|
1029
1048
|
});
|
|
1030
1049
|
exports.DescribePolicyResponseFilterSensitiveLog = DescribePolicyResponseFilterSensitiveLog;
|
|
1050
|
+
const ResourcePolicySummaryFilterSensitiveLog = (obj) => ({
|
|
1051
|
+
...obj,
|
|
1052
|
+
});
|
|
1053
|
+
exports.ResourcePolicySummaryFilterSensitiveLog = ResourcePolicySummaryFilterSensitiveLog;
|
|
1054
|
+
const ResourcePolicyFilterSensitiveLog = (obj) => ({
|
|
1055
|
+
...obj,
|
|
1056
|
+
});
|
|
1057
|
+
exports.ResourcePolicyFilterSensitiveLog = ResourcePolicyFilterSensitiveLog;
|
|
1058
|
+
const DescribeResourcePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
1059
|
+
...obj,
|
|
1060
|
+
});
|
|
1061
|
+
exports.DescribeResourcePolicyResponseFilterSensitiveLog = DescribeResourcePolicyResponseFilterSensitiveLog;
|
|
1031
1062
|
const DetachPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
1032
1063
|
...obj,
|
|
1033
1064
|
});
|
|
@@ -1232,6 +1263,14 @@ const MoveAccountRequestFilterSensitiveLog = (obj) => ({
|
|
|
1232
1263
|
...obj,
|
|
1233
1264
|
});
|
|
1234
1265
|
exports.MoveAccountRequestFilterSensitiveLog = MoveAccountRequestFilterSensitiveLog;
|
|
1266
|
+
const PutResourcePolicyRequestFilterSensitiveLog = (obj) => ({
|
|
1267
|
+
...obj,
|
|
1268
|
+
});
|
|
1269
|
+
exports.PutResourcePolicyRequestFilterSensitiveLog = PutResourcePolicyRequestFilterSensitiveLog;
|
|
1270
|
+
const PutResourcePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
1271
|
+
...obj,
|
|
1272
|
+
});
|
|
1273
|
+
exports.PutResourcePolicyResponseFilterSensitiveLog = PutResourcePolicyResponseFilterSensitiveLog;
|
|
1235
1274
|
const RegisterDelegatedAdministratorRequestFilterSensitiveLog = (obj) => ({
|
|
1236
1275
|
...obj,
|
|
1237
1276
|
});
|