@aws-sdk/client-organizations 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/Organizations.js +217 -210
- package/dist-es/OrganizationsClient.js +28 -22
- package/dist-es/commands/AcceptHandshakeCommand.js +28 -21
- package/dist-es/commands/AttachPolicyCommand.js +29 -22
- package/dist-es/commands/CancelHandshakeCommand.js +28 -21
- package/dist-es/commands/CloseAccountCommand.js +29 -22
- package/dist-es/commands/CreateAccountCommand.js +28 -21
- package/dist-es/commands/CreateGovCloudAccountCommand.js +28 -21
- package/dist-es/commands/CreateOrganizationCommand.js +28 -21
- package/dist-es/commands/CreateOrganizationalUnitCommand.js +28 -21
- package/dist-es/commands/CreatePolicyCommand.js +28 -21
- package/dist-es/commands/DeclineHandshakeCommand.js +28 -21
- package/dist-es/commands/DeleteOrganizationCommand.js +30 -23
- package/dist-es/commands/DeleteOrganizationalUnitCommand.js +29 -22
- package/dist-es/commands/DeletePolicyCommand.js +29 -22
- package/dist-es/commands/DeregisterDelegatedAdministratorCommand.js +29 -22
- package/dist-es/commands/DescribeAccountCommand.js +28 -21
- package/dist-es/commands/DescribeCreateAccountStatusCommand.js +28 -21
- package/dist-es/commands/DescribeEffectivePolicyCommand.js +28 -21
- package/dist-es/commands/DescribeHandshakeCommand.js +28 -21
- package/dist-es/commands/DescribeOrganizationCommand.js +29 -22
- package/dist-es/commands/DescribeOrganizationalUnitCommand.js +28 -21
- package/dist-es/commands/DescribePolicyCommand.js +28 -21
- package/dist-es/commands/DetachPolicyCommand.js +29 -22
- package/dist-es/commands/DisableAWSServiceAccessCommand.js +29 -22
- package/dist-es/commands/DisablePolicyTypeCommand.js +28 -21
- package/dist-es/commands/EnableAWSServiceAccessCommand.js +29 -22
- package/dist-es/commands/EnableAllFeaturesCommand.js +28 -21
- package/dist-es/commands/EnablePolicyTypeCommand.js +28 -21
- package/dist-es/commands/InviteAccountToOrganizationCommand.js +28 -21
- package/dist-es/commands/LeaveOrganizationCommand.js +30 -23
- package/dist-es/commands/ListAWSServiceAccessForOrganizationCommand.js +28 -21
- package/dist-es/commands/ListAccountsCommand.js +28 -21
- package/dist-es/commands/ListAccountsForParentCommand.js +28 -21
- package/dist-es/commands/ListChildrenCommand.js +28 -21
- package/dist-es/commands/ListCreateAccountStatusCommand.js +28 -21
- package/dist-es/commands/ListDelegatedAdministratorsCommand.js +28 -21
- package/dist-es/commands/ListDelegatedServicesForAccountCommand.js +28 -21
- package/dist-es/commands/ListHandshakesForAccountCommand.js +28 -21
- package/dist-es/commands/ListHandshakesForOrganizationCommand.js +28 -21
- package/dist-es/commands/ListOrganizationalUnitsForParentCommand.js +28 -21
- package/dist-es/commands/ListParentsCommand.js +28 -21
- package/dist-es/commands/ListPoliciesCommand.js +28 -21
- package/dist-es/commands/ListPoliciesForTargetCommand.js +28 -21
- package/dist-es/commands/ListRootsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTargetsForPolicyCommand.js +28 -21
- package/dist-es/commands/MoveAccountCommand.js +29 -22
- package/dist-es/commands/RegisterDelegatedAdministratorCommand.js +29 -22
- package/dist-es/commands/RemoveAccountFromOrganizationCommand.js +29 -22
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateOrganizationalUnitCommand.js +28 -21
- package/dist-es/commands/UpdatePolicyCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/OrganizationsServiceException.js +10 -5
- package/dist-es/models/models_0.js +720 -964
- package/dist-es/pagination/ListAWSServiceAccessForOrganizationPaginator.js +68 -25
- package/dist-es/pagination/ListAccountsForParentPaginator.js +68 -25
- package/dist-es/pagination/ListAccountsPaginator.js +68 -25
- package/dist-es/pagination/ListChildrenPaginator.js +68 -25
- package/dist-es/pagination/ListCreateAccountStatusPaginator.js +68 -25
- package/dist-es/pagination/ListDelegatedAdministratorsPaginator.js +68 -25
- package/dist-es/pagination/ListDelegatedServicesForAccountPaginator.js +68 -25
- package/dist-es/pagination/ListHandshakesForAccountPaginator.js +68 -25
- package/dist-es/pagination/ListHandshakesForOrganizationPaginator.js +68 -25
- package/dist-es/pagination/ListOrganizationalUnitsForParentPaginator.js +68 -25
- package/dist-es/pagination/ListParentsPaginator.js +68 -25
- package/dist-es/pagination/ListPoliciesForTargetPaginator.js +68 -25
- package/dist-es/pagination/ListPoliciesPaginator.js +68 -25
- package/dist-es/pagination/ListRootsPaginator.js +68 -25
- package/dist-es/pagination/ListTagsForResourcePaginator.js +67 -24
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +5453 -4139
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var OrganizationsClient = (function (_super) {
|
|
13
|
+
__extends(OrganizationsClient, _super);
|
|
14
|
+
function OrganizationsClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
OrganizationsClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return OrganizationsClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { OrganizationsClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AcceptHandshakeRequestFilterSensitiveLog, AcceptHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AcceptHandshakeCommand, serializeAws_json1_1AcceptHandshakeCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AcceptHandshakeCommand = (function (_super) {
|
|
7
|
+
__extends(AcceptHandshakeCommand, _super);
|
|
8
|
+
function AcceptHandshakeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AcceptHandshakeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "AcceptHandshakeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AcceptHandshakeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AcceptHandshakeResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AcceptHandshakeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AcceptHandshakeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AcceptHandshakeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AcceptHandshakeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AcceptHandshakeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AcceptHandshakeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AttachPolicyRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1AttachPolicyCommand, serializeAws_json1_1AttachPolicyCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AttachPolicyCommand = (function (_super) {
|
|
7
|
+
__extends(AttachPolicyCommand, _super);
|
|
8
|
+
function AttachPolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AttachPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "AttachPolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AttachPolicyRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AttachPolicyCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1AttachPolicyCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AttachPolicyCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1AttachPolicyCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AttachPolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AttachPolicyCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelHandshakeRequestFilterSensitiveLog, CancelHandshakeResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CancelHandshakeCommand, serializeAws_json1_1CancelHandshakeCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CancelHandshakeCommand = (function (_super) {
|
|
7
|
+
__extends(CancelHandshakeCommand, _super);
|
|
8
|
+
function CancelHandshakeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CancelHandshakeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CancelHandshakeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CancelHandshakeRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CancelHandshakeResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CancelHandshakeCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CancelHandshakeCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CancelHandshakeCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CancelHandshakeCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CancelHandshakeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CancelHandshakeCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CloseAccountRequestFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CloseAccountCommand, serializeAws_json1_1CloseAccountCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CloseAccountCommand = (function (_super) {
|
|
7
|
+
__extends(CloseAccountCommand, _super);
|
|
8
|
+
function CloseAccountCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CloseAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CloseAccountCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CloseAccountRequestFilterSensitiveLog,
|
|
21
|
-
outputFilterSensitiveLog: (output)
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CloseAccountCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CloseAccountCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CloseAccountCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CloseAccountCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CloseAccountCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CloseAccountCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateAccountRequestFilterSensitiveLog, CreateAccountResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateAccountCommand, serializeAws_json1_1CreateAccountCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateAccountCommand = (function (_super) {
|
|
7
|
+
__extends(CreateAccountCommand, _super);
|
|
8
|
+
function CreateAccountCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CreateAccountCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateAccountRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateAccountResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateAccountCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateAccountCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateAccountCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateAccountCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateAccountCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateAccountCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateGovCloudAccountRequestFilterSensitiveLog, CreateGovCloudAccountResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateGovCloudAccountCommand, serializeAws_json1_1CreateGovCloudAccountCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateGovCloudAccountCommand = (function (_super) {
|
|
7
|
+
__extends(CreateGovCloudAccountCommand, _super);
|
|
8
|
+
function CreateGovCloudAccountCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateGovCloudAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CreateGovCloudAccountCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateGovCloudAccountRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateGovCloudAccountResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateGovCloudAccountCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateGovCloudAccountCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateGovCloudAccountCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateGovCloudAccountCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateGovCloudAccountCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateGovCloudAccountCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateOrganizationRequestFilterSensitiveLog, CreateOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateOrganizationCommand, serializeAws_json1_1CreateOrganizationCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateOrganizationCommand = (function (_super) {
|
|
7
|
+
__extends(CreateOrganizationCommand, _super);
|
|
8
|
+
function CreateOrganizationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CreateOrganizationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateOrganizationRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateOrganizationResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateOrganizationCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateOrganizationCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateOrganizationCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateOrganizationCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateOrganizationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateOrganizationCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateOrganizationalUnitRequestFilterSensitiveLog, CreateOrganizationalUnitResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateOrganizationalUnitCommand, serializeAws_json1_1CreateOrganizationalUnitCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateOrganizationalUnitCommand = (function (_super) {
|
|
7
|
+
__extends(CreateOrganizationalUnitCommand, _super);
|
|
8
|
+
function CreateOrganizationalUnitCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateOrganizationalUnitCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CreateOrganizationalUnitCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateOrganizationalUnitRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateOrganizationalUnitResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateOrganizationalUnitCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateOrganizationalUnitCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateOrganizationalUnitCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateOrganizationalUnitCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateOrganizationalUnitCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateOrganizationalUnitCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreatePolicyRequestFilterSensitiveLog, CreatePolicyResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreatePolicyCommand, serializeAws_json1_1CreatePolicyCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreatePolicyCommand = (function (_super) {
|
|
7
|
+
__extends(CreatePolicyCommand, _super);
|
|
8
|
+
function CreatePolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreatePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "OrganizationsClient";
|
|
18
|
+
var commandName = "CreatePolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreatePolicyRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreatePolicyResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreatePolicyCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreatePolicyCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreatePolicyCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreatePolicyCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreatePolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreatePolicyCommand };
|