@aws-sdk/client-organizations 3.490.0 → 3.495.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 +1 -121
- package/dist-cjs/OrganizationsClient.js +1 -43
- package/dist-cjs/commands/AcceptHandshakeCommand.js +1 -29
- package/dist-cjs/commands/AttachPolicyCommand.js +1 -28
- package/dist-cjs/commands/CancelHandshakeCommand.js +1 -29
- package/dist-cjs/commands/CloseAccountCommand.js +1 -28
- package/dist-cjs/commands/CreateAccountCommand.js +1 -29
- package/dist-cjs/commands/CreateGovCloudAccountCommand.js +1 -29
- package/dist-cjs/commands/CreateOrganizationCommand.js +1 -29
- package/dist-cjs/commands/CreateOrganizationalUnitCommand.js +1 -28
- package/dist-cjs/commands/CreatePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeclineHandshakeCommand.js +1 -29
- package/dist-cjs/commands/DeleteOrganizationCommand.js +1 -28
- package/dist-cjs/commands/DeleteOrganizationalUnitCommand.js +1 -28
- package/dist-cjs/commands/DeletePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeregisterDelegatedAdministratorCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountCommand.js +1 -29
- package/dist-cjs/commands/DescribeCreateAccountStatusCommand.js +1 -29
- package/dist-cjs/commands/DescribeEffectivePolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeHandshakeCommand.js +1 -29
- package/dist-cjs/commands/DescribeOrganizationCommand.js +1 -29
- package/dist-cjs/commands/DescribeOrganizationalUnitCommand.js +1 -28
- package/dist-cjs/commands/DescribePolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DetachPolicyCommand.js +1 -28
- package/dist-cjs/commands/DisableAWSServiceAccessCommand.js +1 -28
- package/dist-cjs/commands/DisablePolicyTypeCommand.js +1 -28
- package/dist-cjs/commands/EnableAWSServiceAccessCommand.js +1 -28
- package/dist-cjs/commands/EnableAllFeaturesCommand.js +1 -29
- package/dist-cjs/commands/EnablePolicyTypeCommand.js +1 -28
- package/dist-cjs/commands/InviteAccountToOrganizationCommand.js +1 -29
- package/dist-cjs/commands/LeaveOrganizationCommand.js +1 -28
- package/dist-cjs/commands/ListAWSServiceAccessForOrganizationCommand.js +1 -28
- package/dist-cjs/commands/ListAccountsCommand.js +1 -29
- package/dist-cjs/commands/ListAccountsForParentCommand.js +1 -29
- package/dist-cjs/commands/ListChildrenCommand.js +1 -28
- package/dist-cjs/commands/ListCreateAccountStatusCommand.js +1 -29
- package/dist-cjs/commands/ListDelegatedAdministratorsCommand.js +1 -29
- package/dist-cjs/commands/ListDelegatedServicesForAccountCommand.js +1 -28
- package/dist-cjs/commands/ListHandshakesForAccountCommand.js +1 -29
- package/dist-cjs/commands/ListHandshakesForOrganizationCommand.js +1 -29
- package/dist-cjs/commands/ListOrganizationalUnitsForParentCommand.js +1 -28
- package/dist-cjs/commands/ListParentsCommand.js +1 -28
- package/dist-cjs/commands/ListPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListPoliciesForTargetCommand.js +1 -28
- package/dist-cjs/commands/ListRootsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTargetsForPolicyCommand.js +1 -28
- package/dist-cjs/commands/MoveAccountCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/RegisterDelegatedAdministratorCommand.js +1 -28
- package/dist-cjs/commands/RemoveAccountFromOrganizationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateOrganizationalUnitCommand.js +1 -28
- package/dist-cjs/commands/UpdatePolicyCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -58
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6618 -11
- package/dist-cjs/models/OrganizationsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -1002
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAWSServiceAccessForOrganizationPaginator.js +1 -7
- package/dist-cjs/pagination/ListAccountsForParentPaginator.js +1 -7
- package/dist-cjs/pagination/ListAccountsPaginator.js +1 -7
- package/dist-cjs/pagination/ListChildrenPaginator.js +1 -7
- package/dist-cjs/pagination/ListCreateAccountStatusPaginator.js +1 -7
- package/dist-cjs/pagination/ListDelegatedAdministratorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDelegatedServicesForAccountPaginator.js +1 -7
- package/dist-cjs/pagination/ListHandshakesForAccountPaginator.js +1 -7
- package/dist-cjs/pagination/ListHandshakesForOrganizationPaginator.js +1 -7
- package/dist-cjs/pagination/ListOrganizationalUnitsForParentPaginator.js +1 -7
- package/dist-cjs/pagination/ListParentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPoliciesForTargetPaginator.js +1 -7
- package/dist-cjs/pagination/ListPoliciesPaginator.js +1 -7
- package/dist-cjs/pagination/ListRootsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListTargetsForPolicyPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -20
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4048
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4048 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_RegisterDelegatedAdministratorCommand = exports.se_PutResourcePolicyCommand = exports.se_MoveAccountCommand = exports.se_ListTargetsForPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRootsCommand = exports.se_ListPoliciesForTargetCommand = exports.se_ListPoliciesCommand = exports.se_ListParentsCommand = exports.se_ListOrganizationalUnitsForParentCommand = exports.se_ListHandshakesForOrganizationCommand = exports.se_ListHandshakesForAccountCommand = exports.se_ListDelegatedServicesForAccountCommand = exports.se_ListDelegatedAdministratorsCommand = exports.se_ListCreateAccountStatusCommand = exports.se_ListChildrenCommand = exports.se_ListAWSServiceAccessForOrganizationCommand = exports.se_ListAccountsForParentCommand = exports.se_ListAccountsCommand = exports.se_LeaveOrganizationCommand = exports.se_InviteAccountToOrganizationCommand = exports.se_EnablePolicyTypeCommand = exports.se_EnableAWSServiceAccessCommand = exports.se_EnableAllFeaturesCommand = exports.se_DisablePolicyTypeCommand = exports.se_DisableAWSServiceAccessCommand = exports.se_DetachPolicyCommand = exports.se_DescribeResourcePolicyCommand = exports.se_DescribePolicyCommand = exports.se_DescribeOrganizationalUnitCommand = exports.se_DescribeOrganizationCommand = exports.se_DescribeHandshakeCommand = exports.se_DescribeEffectivePolicyCommand = exports.se_DescribeCreateAccountStatusCommand = exports.se_DescribeAccountCommand = exports.se_DeregisterDelegatedAdministratorCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeletePolicyCommand = exports.se_DeleteOrganizationalUnitCommand = exports.se_DeleteOrganizationCommand = exports.se_DeclineHandshakeCommand = exports.se_CreatePolicyCommand = exports.se_CreateOrganizationalUnitCommand = exports.se_CreateOrganizationCommand = exports.se_CreateGovCloudAccountCommand = exports.se_CreateAccountCommand = exports.se_CloseAccountCommand = exports.se_CancelHandshakeCommand = exports.se_AttachPolicyCommand = exports.se_AcceptHandshakeCommand = void 0;
|
|
4
|
-
exports.de_ListRootsCommand = exports.de_ListPoliciesForTargetCommand = exports.de_ListPoliciesCommand = exports.de_ListParentsCommand = exports.de_ListOrganizationalUnitsForParentCommand = exports.de_ListHandshakesForOrganizationCommand = exports.de_ListHandshakesForAccountCommand = exports.de_ListDelegatedServicesForAccountCommand = exports.de_ListDelegatedAdministratorsCommand = exports.de_ListCreateAccountStatusCommand = exports.de_ListChildrenCommand = exports.de_ListAWSServiceAccessForOrganizationCommand = exports.de_ListAccountsForParentCommand = exports.de_ListAccountsCommand = exports.de_LeaveOrganizationCommand = exports.de_InviteAccountToOrganizationCommand = exports.de_EnablePolicyTypeCommand = exports.de_EnableAWSServiceAccessCommand = exports.de_EnableAllFeaturesCommand = exports.de_DisablePolicyTypeCommand = exports.de_DisableAWSServiceAccessCommand = exports.de_DetachPolicyCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribePolicyCommand = exports.de_DescribeOrganizationalUnitCommand = exports.de_DescribeOrganizationCommand = exports.de_DescribeHandshakeCommand = exports.de_DescribeEffectivePolicyCommand = exports.de_DescribeCreateAccountStatusCommand = exports.de_DescribeAccountCommand = exports.de_DeregisterDelegatedAdministratorCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeletePolicyCommand = exports.de_DeleteOrganizationalUnitCommand = exports.de_DeleteOrganizationCommand = exports.de_DeclineHandshakeCommand = exports.de_CreatePolicyCommand = exports.de_CreateOrganizationalUnitCommand = exports.de_CreateOrganizationCommand = exports.de_CreateGovCloudAccountCommand = exports.de_CreateAccountCommand = exports.de_CloseAccountCommand = exports.de_CancelHandshakeCommand = exports.de_AttachPolicyCommand = exports.de_AcceptHandshakeCommand = exports.se_UpdatePolicyCommand = exports.se_UpdateOrganizationalUnitCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveAccountFromOrganizationCommand = void 0;
|
|
5
|
-
exports.de_UpdatePolicyCommand = exports.de_UpdateOrganizationalUnitCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveAccountFromOrganizationCommand = exports.de_RegisterDelegatedAdministratorCommand = exports.de_PutResourcePolicyCommand = exports.de_MoveAccountCommand = exports.de_ListTargetsForPolicyCommand = exports.de_ListTagsForResourceCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const OrganizationsServiceException_1 = require("../models/OrganizationsServiceException");
|
|
10
|
-
const se_AcceptHandshakeCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("AcceptHandshake");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_AcceptHandshakeCommand = se_AcceptHandshakeCommand;
|
|
17
|
-
const se_AttachPolicyCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("AttachPolicy");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_AttachPolicyCommand = se_AttachPolicyCommand;
|
|
24
|
-
const se_CancelHandshakeCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CancelHandshake");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CancelHandshakeCommand = se_CancelHandshakeCommand;
|
|
31
|
-
const se_CloseAccountCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CloseAccount");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_CloseAccountCommand = se_CloseAccountCommand;
|
|
38
|
-
const se_CreateAccountCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CreateAccount");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CreateAccountCommand = se_CreateAccountCommand;
|
|
45
|
-
const se_CreateGovCloudAccountCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("CreateGovCloudAccount");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_CreateGovCloudAccountCommand = se_CreateGovCloudAccountCommand;
|
|
52
|
-
const se_CreateOrganizationCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateOrganization");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateOrganizationCommand = se_CreateOrganizationCommand;
|
|
59
|
-
const se_CreateOrganizationalUnitCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("CreateOrganizationalUnit");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateOrganizationalUnitCommand = se_CreateOrganizationalUnitCommand;
|
|
66
|
-
const se_CreatePolicyCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreatePolicy");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_CreatePolicyCommand = se_CreatePolicyCommand;
|
|
73
|
-
const se_DeclineHandshakeCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeclineHandshake");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_DeclineHandshakeCommand = se_DeclineHandshakeCommand;
|
|
80
|
-
const se_DeleteOrganizationCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("DeleteOrganization");
|
|
82
|
-
const body = "{}";
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DeleteOrganizationCommand = se_DeleteOrganizationCommand;
|
|
86
|
-
const se_DeleteOrganizationalUnitCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DeleteOrganizationalUnit");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_DeleteOrganizationalUnitCommand = se_DeleteOrganizationalUnitCommand;
|
|
93
|
-
const se_DeletePolicyCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DeletePolicy");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
|
|
100
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
102
|
-
const body = "{}";
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
106
|
-
const se_DeregisterDelegatedAdministratorCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("DeregisterDelegatedAdministrator");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_DeregisterDelegatedAdministratorCommand = se_DeregisterDelegatedAdministratorCommand;
|
|
113
|
-
const se_DescribeAccountCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("DescribeAccount");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_DescribeAccountCommand = se_DescribeAccountCommand;
|
|
120
|
-
const se_DescribeCreateAccountStatusCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DescribeCreateAccountStatus");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_DescribeCreateAccountStatusCommand = se_DescribeCreateAccountStatusCommand;
|
|
127
|
-
const se_DescribeEffectivePolicyCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("DescribeEffectivePolicy");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_DescribeEffectivePolicyCommand = se_DescribeEffectivePolicyCommand;
|
|
134
|
-
const se_DescribeHandshakeCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("DescribeHandshake");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_DescribeHandshakeCommand = se_DescribeHandshakeCommand;
|
|
141
|
-
const se_DescribeOrganizationCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("DescribeOrganization");
|
|
143
|
-
const body = "{}";
|
|
144
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
145
|
-
};
|
|
146
|
-
exports.se_DescribeOrganizationCommand = se_DescribeOrganizationCommand;
|
|
147
|
-
const se_DescribeOrganizationalUnitCommand = async (input, context) => {
|
|
148
|
-
const headers = sharedHeaders("DescribeOrganizationalUnit");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
151
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
152
|
-
};
|
|
153
|
-
exports.se_DescribeOrganizationalUnitCommand = se_DescribeOrganizationalUnitCommand;
|
|
154
|
-
const se_DescribePolicyCommand = async (input, context) => {
|
|
155
|
-
const headers = sharedHeaders("DescribePolicy");
|
|
156
|
-
let body;
|
|
157
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
158
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
|
-
};
|
|
160
|
-
exports.se_DescribePolicyCommand = se_DescribePolicyCommand;
|
|
161
|
-
const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
162
|
-
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
163
|
-
const body = "{}";
|
|
164
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
|
-
};
|
|
166
|
-
exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
167
|
-
const se_DetachPolicyCommand = async (input, context) => {
|
|
168
|
-
const headers = sharedHeaders("DetachPolicy");
|
|
169
|
-
let body;
|
|
170
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
171
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
|
-
};
|
|
173
|
-
exports.se_DetachPolicyCommand = se_DetachPolicyCommand;
|
|
174
|
-
const se_DisableAWSServiceAccessCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DisableAWSServiceAccess");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
exports.se_DisableAWSServiceAccessCommand = se_DisableAWSServiceAccessCommand;
|
|
181
|
-
const se_DisablePolicyTypeCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("DisablePolicyType");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
exports.se_DisablePolicyTypeCommand = se_DisablePolicyTypeCommand;
|
|
188
|
-
const se_EnableAllFeaturesCommand = async (input, context) => {
|
|
189
|
-
const headers = sharedHeaders("EnableAllFeatures");
|
|
190
|
-
let body;
|
|
191
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
192
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
-
};
|
|
194
|
-
exports.se_EnableAllFeaturesCommand = se_EnableAllFeaturesCommand;
|
|
195
|
-
const se_EnableAWSServiceAccessCommand = async (input, context) => {
|
|
196
|
-
const headers = sharedHeaders("EnableAWSServiceAccess");
|
|
197
|
-
let body;
|
|
198
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
199
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
200
|
-
};
|
|
201
|
-
exports.se_EnableAWSServiceAccessCommand = se_EnableAWSServiceAccessCommand;
|
|
202
|
-
const se_EnablePolicyTypeCommand = async (input, context) => {
|
|
203
|
-
const headers = sharedHeaders("EnablePolicyType");
|
|
204
|
-
let body;
|
|
205
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
-
};
|
|
208
|
-
exports.se_EnablePolicyTypeCommand = se_EnablePolicyTypeCommand;
|
|
209
|
-
const se_InviteAccountToOrganizationCommand = async (input, context) => {
|
|
210
|
-
const headers = sharedHeaders("InviteAccountToOrganization");
|
|
211
|
-
let body;
|
|
212
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
213
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
|
-
};
|
|
215
|
-
exports.se_InviteAccountToOrganizationCommand = se_InviteAccountToOrganizationCommand;
|
|
216
|
-
const se_LeaveOrganizationCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("LeaveOrganization");
|
|
218
|
-
const body = "{}";
|
|
219
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
|
-
};
|
|
221
|
-
exports.se_LeaveOrganizationCommand = se_LeaveOrganizationCommand;
|
|
222
|
-
const se_ListAccountsCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("ListAccounts");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
229
|
-
const se_ListAccountsForParentCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("ListAccountsForParent");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
exports.se_ListAccountsForParentCommand = se_ListAccountsForParentCommand;
|
|
236
|
-
const se_ListAWSServiceAccessForOrganizationCommand = async (input, context) => {
|
|
237
|
-
const headers = sharedHeaders("ListAWSServiceAccessForOrganization");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
240
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
|
-
};
|
|
242
|
-
exports.se_ListAWSServiceAccessForOrganizationCommand = se_ListAWSServiceAccessForOrganizationCommand;
|
|
243
|
-
const se_ListChildrenCommand = async (input, context) => {
|
|
244
|
-
const headers = sharedHeaders("ListChildren");
|
|
245
|
-
let body;
|
|
246
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
-
};
|
|
249
|
-
exports.se_ListChildrenCommand = se_ListChildrenCommand;
|
|
250
|
-
const se_ListCreateAccountStatusCommand = async (input, context) => {
|
|
251
|
-
const headers = sharedHeaders("ListCreateAccountStatus");
|
|
252
|
-
let body;
|
|
253
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
254
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
|
-
};
|
|
256
|
-
exports.se_ListCreateAccountStatusCommand = se_ListCreateAccountStatusCommand;
|
|
257
|
-
const se_ListDelegatedAdministratorsCommand = async (input, context) => {
|
|
258
|
-
const headers = sharedHeaders("ListDelegatedAdministrators");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
exports.se_ListDelegatedAdministratorsCommand = se_ListDelegatedAdministratorsCommand;
|
|
264
|
-
const se_ListDelegatedServicesForAccountCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("ListDelegatedServicesForAccount");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
exports.se_ListDelegatedServicesForAccountCommand = se_ListDelegatedServicesForAccountCommand;
|
|
271
|
-
const se_ListHandshakesForAccountCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("ListHandshakesForAccount");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
exports.se_ListHandshakesForAccountCommand = se_ListHandshakesForAccountCommand;
|
|
278
|
-
const se_ListHandshakesForOrganizationCommand = async (input, context) => {
|
|
279
|
-
const headers = sharedHeaders("ListHandshakesForOrganization");
|
|
280
|
-
let body;
|
|
281
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
282
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
-
};
|
|
284
|
-
exports.se_ListHandshakesForOrganizationCommand = se_ListHandshakesForOrganizationCommand;
|
|
285
|
-
const se_ListOrganizationalUnitsForParentCommand = async (input, context) => {
|
|
286
|
-
const headers = sharedHeaders("ListOrganizationalUnitsForParent");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
289
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
290
|
-
};
|
|
291
|
-
exports.se_ListOrganizationalUnitsForParentCommand = se_ListOrganizationalUnitsForParentCommand;
|
|
292
|
-
const se_ListParentsCommand = async (input, context) => {
|
|
293
|
-
const headers = sharedHeaders("ListParents");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
exports.se_ListParentsCommand = se_ListParentsCommand;
|
|
299
|
-
const se_ListPoliciesCommand = async (input, context) => {
|
|
300
|
-
const headers = sharedHeaders("ListPolicies");
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
303
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
304
|
-
};
|
|
305
|
-
exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
|
|
306
|
-
const se_ListPoliciesForTargetCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("ListPoliciesForTarget");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
exports.se_ListPoliciesForTargetCommand = se_ListPoliciesForTargetCommand;
|
|
313
|
-
const se_ListRootsCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("ListRoots");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
exports.se_ListRootsCommand = se_ListRootsCommand;
|
|
320
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
321
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
324
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
325
|
-
};
|
|
326
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
327
|
-
const se_ListTargetsForPolicyCommand = async (input, context) => {
|
|
328
|
-
const headers = sharedHeaders("ListTargetsForPolicy");
|
|
329
|
-
let body;
|
|
330
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
331
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
|
-
};
|
|
333
|
-
exports.se_ListTargetsForPolicyCommand = se_ListTargetsForPolicyCommand;
|
|
334
|
-
const se_MoveAccountCommand = async (input, context) => {
|
|
335
|
-
const headers = sharedHeaders("MoveAccount");
|
|
336
|
-
let body;
|
|
337
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
338
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
|
-
};
|
|
340
|
-
exports.se_MoveAccountCommand = se_MoveAccountCommand;
|
|
341
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
342
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
343
|
-
let body;
|
|
344
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
345
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
-
};
|
|
347
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
348
|
-
const se_RegisterDelegatedAdministratorCommand = async (input, context) => {
|
|
349
|
-
const headers = sharedHeaders("RegisterDelegatedAdministrator");
|
|
350
|
-
let body;
|
|
351
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
352
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
|
-
};
|
|
354
|
-
exports.se_RegisterDelegatedAdministratorCommand = se_RegisterDelegatedAdministratorCommand;
|
|
355
|
-
const se_RemoveAccountFromOrganizationCommand = async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("RemoveAccountFromOrganization");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
exports.se_RemoveAccountFromOrganizationCommand = se_RemoveAccountFromOrganizationCommand;
|
|
362
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
363
|
-
const headers = sharedHeaders("TagResource");
|
|
364
|
-
let body;
|
|
365
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
-
};
|
|
368
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
369
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
370
|
-
const headers = sharedHeaders("UntagResource");
|
|
371
|
-
let body;
|
|
372
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
373
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
|
-
};
|
|
375
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
376
|
-
const se_UpdateOrganizationalUnitCommand = async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("UpdateOrganizationalUnit");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
|
-
};
|
|
382
|
-
exports.se_UpdateOrganizationalUnitCommand = se_UpdateOrganizationalUnitCommand;
|
|
383
|
-
const se_UpdatePolicyCommand = async (input, context) => {
|
|
384
|
-
const headers = sharedHeaders("UpdatePolicy");
|
|
385
|
-
let body;
|
|
386
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
-
};
|
|
389
|
-
exports.se_UpdatePolicyCommand = se_UpdatePolicyCommand;
|
|
390
|
-
const de_AcceptHandshakeCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode >= 300) {
|
|
392
|
-
return de_AcceptHandshakeCommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const data = await parseBody(output.body, context);
|
|
395
|
-
let contents = {};
|
|
396
|
-
contents = de_AcceptHandshakeResponse(data, context);
|
|
397
|
-
const response = {
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
...contents,
|
|
400
|
-
};
|
|
401
|
-
return response;
|
|
402
|
-
};
|
|
403
|
-
exports.de_AcceptHandshakeCommand = de_AcceptHandshakeCommand;
|
|
404
|
-
const de_AcceptHandshakeCommandError = async (output, context) => {
|
|
405
|
-
const parsedOutput = {
|
|
406
|
-
...output,
|
|
407
|
-
body: await parseErrorBody(output.body, context),
|
|
408
|
-
};
|
|
409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
-
switch (errorCode) {
|
|
411
|
-
case "AWSOrganizationsNotInUseException":
|
|
412
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
413
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
414
|
-
case "AccessDeniedException":
|
|
415
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
417
|
-
case "AccessDeniedForDependencyException":
|
|
418
|
-
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
419
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
420
|
-
case "ConcurrentModificationException":
|
|
421
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
422
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
423
|
-
case "HandshakeAlreadyInStateException":
|
|
424
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
425
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
426
|
-
case "HandshakeConstraintViolationException":
|
|
427
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
428
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
429
|
-
case "HandshakeNotFoundException":
|
|
430
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
431
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
432
|
-
case "InvalidHandshakeTransitionException":
|
|
433
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
434
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InvalidInputException":
|
|
436
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
437
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
438
|
-
case "ServiceException":
|
|
439
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
440
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
441
|
-
case "TooManyRequestsException":
|
|
442
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
443
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
444
|
-
default:
|
|
445
|
-
const parsedBody = parsedOutput.body;
|
|
446
|
-
return throwDefaultError({
|
|
447
|
-
output,
|
|
448
|
-
parsedBody,
|
|
449
|
-
errorCode,
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
const de_AttachPolicyCommand = async (output, context) => {
|
|
454
|
-
if (output.statusCode >= 300) {
|
|
455
|
-
return de_AttachPolicyCommandError(output, context);
|
|
456
|
-
}
|
|
457
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
458
|
-
const response = {
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
};
|
|
461
|
-
return response;
|
|
462
|
-
};
|
|
463
|
-
exports.de_AttachPolicyCommand = de_AttachPolicyCommand;
|
|
464
|
-
const de_AttachPolicyCommandError = async (output, context) => {
|
|
465
|
-
const parsedOutput = {
|
|
466
|
-
...output,
|
|
467
|
-
body: await parseErrorBody(output.body, context),
|
|
468
|
-
};
|
|
469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
|
-
switch (errorCode) {
|
|
471
|
-
case "AWSOrganizationsNotInUseException":
|
|
472
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
473
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
474
|
-
case "AccessDeniedException":
|
|
475
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
476
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
477
|
-
case "ConcurrentModificationException":
|
|
478
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
479
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ConstraintViolationException":
|
|
481
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
482
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
483
|
-
case "DuplicatePolicyAttachmentException":
|
|
484
|
-
case "com.amazonaws.organizations#DuplicatePolicyAttachmentException":
|
|
485
|
-
throw await de_DuplicatePolicyAttachmentExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidInputException":
|
|
487
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
488
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
489
|
-
case "PolicyChangesInProgressException":
|
|
490
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
491
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
492
|
-
case "PolicyNotFoundException":
|
|
493
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
494
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
495
|
-
case "PolicyTypeNotEnabledException":
|
|
496
|
-
case "com.amazonaws.organizations#PolicyTypeNotEnabledException":
|
|
497
|
-
throw await de_PolicyTypeNotEnabledExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ServiceException":
|
|
499
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
500
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
501
|
-
case "TargetNotFoundException":
|
|
502
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
503
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
504
|
-
case "TooManyRequestsException":
|
|
505
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
506
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
507
|
-
case "UnsupportedAPIEndpointException":
|
|
508
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
509
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
510
|
-
default:
|
|
511
|
-
const parsedBody = parsedOutput.body;
|
|
512
|
-
return throwDefaultError({
|
|
513
|
-
output,
|
|
514
|
-
parsedBody,
|
|
515
|
-
errorCode,
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
const de_CancelHandshakeCommand = async (output, context) => {
|
|
520
|
-
if (output.statusCode >= 300) {
|
|
521
|
-
return de_CancelHandshakeCommandError(output, context);
|
|
522
|
-
}
|
|
523
|
-
const data = await parseBody(output.body, context);
|
|
524
|
-
let contents = {};
|
|
525
|
-
contents = de_CancelHandshakeResponse(data, context);
|
|
526
|
-
const response = {
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
...contents,
|
|
529
|
-
};
|
|
530
|
-
return response;
|
|
531
|
-
};
|
|
532
|
-
exports.de_CancelHandshakeCommand = de_CancelHandshakeCommand;
|
|
533
|
-
const de_CancelHandshakeCommandError = async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context),
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "AccessDeniedException":
|
|
541
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ConcurrentModificationException":
|
|
544
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
545
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
546
|
-
case "HandshakeAlreadyInStateException":
|
|
547
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
548
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
549
|
-
case "HandshakeNotFoundException":
|
|
550
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
551
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
552
|
-
case "InvalidHandshakeTransitionException":
|
|
553
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
554
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
555
|
-
case "InvalidInputException":
|
|
556
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
557
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
558
|
-
case "ServiceException":
|
|
559
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
560
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
561
|
-
case "TooManyRequestsException":
|
|
562
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
563
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
564
|
-
default:
|
|
565
|
-
const parsedBody = parsedOutput.body;
|
|
566
|
-
return throwDefaultError({
|
|
567
|
-
output,
|
|
568
|
-
parsedBody,
|
|
569
|
-
errorCode,
|
|
570
|
-
});
|
|
571
|
-
}
|
|
572
|
-
};
|
|
573
|
-
const de_CloseAccountCommand = async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_CloseAccountCommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
578
|
-
const response = {
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
581
|
-
return response;
|
|
582
|
-
};
|
|
583
|
-
exports.de_CloseAccountCommand = de_CloseAccountCommand;
|
|
584
|
-
const de_CloseAccountCommandError = async (output, context) => {
|
|
585
|
-
const parsedOutput = {
|
|
586
|
-
...output,
|
|
587
|
-
body: await parseErrorBody(output.body, context),
|
|
588
|
-
};
|
|
589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
-
switch (errorCode) {
|
|
591
|
-
case "AWSOrganizationsNotInUseException":
|
|
592
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
593
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
594
|
-
case "AccessDeniedException":
|
|
595
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "AccountAlreadyClosedException":
|
|
598
|
-
case "com.amazonaws.organizations#AccountAlreadyClosedException":
|
|
599
|
-
throw await de_AccountAlreadyClosedExceptionRes(parsedOutput, context);
|
|
600
|
-
case "AccountNotFoundException":
|
|
601
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
602
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ConcurrentModificationException":
|
|
604
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
605
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ConflictException":
|
|
607
|
-
case "com.amazonaws.organizations#ConflictException":
|
|
608
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ConstraintViolationException":
|
|
610
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
611
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
612
|
-
case "InvalidInputException":
|
|
613
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
614
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ServiceException":
|
|
616
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
617
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
618
|
-
case "TooManyRequestsException":
|
|
619
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
620
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
621
|
-
case "UnsupportedAPIEndpointException":
|
|
622
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
623
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
624
|
-
default:
|
|
625
|
-
const parsedBody = parsedOutput.body;
|
|
626
|
-
return throwDefaultError({
|
|
627
|
-
output,
|
|
628
|
-
parsedBody,
|
|
629
|
-
errorCode,
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
};
|
|
633
|
-
const de_CreateAccountCommand = async (output, context) => {
|
|
634
|
-
if (output.statusCode >= 300) {
|
|
635
|
-
return de_CreateAccountCommandError(output, context);
|
|
636
|
-
}
|
|
637
|
-
const data = await parseBody(output.body, context);
|
|
638
|
-
let contents = {};
|
|
639
|
-
contents = de_CreateAccountResponse(data, context);
|
|
640
|
-
const response = {
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
...contents,
|
|
643
|
-
};
|
|
644
|
-
return response;
|
|
645
|
-
};
|
|
646
|
-
exports.de_CreateAccountCommand = de_CreateAccountCommand;
|
|
647
|
-
const de_CreateAccountCommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "AWSOrganizationsNotInUseException":
|
|
655
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
656
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
657
|
-
case "AccessDeniedException":
|
|
658
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ConcurrentModificationException":
|
|
661
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
662
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ConstraintViolationException":
|
|
664
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
665
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
666
|
-
case "FinalizingOrganizationException":
|
|
667
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
668
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
669
|
-
case "InvalidInputException":
|
|
670
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
671
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ServiceException":
|
|
673
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
674
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
675
|
-
case "TooManyRequestsException":
|
|
676
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
677
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
678
|
-
case "UnsupportedAPIEndpointException":
|
|
679
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
680
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
681
|
-
default:
|
|
682
|
-
const parsedBody = parsedOutput.body;
|
|
683
|
-
return throwDefaultError({
|
|
684
|
-
output,
|
|
685
|
-
parsedBody,
|
|
686
|
-
errorCode,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
const de_CreateGovCloudAccountCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CreateGovCloudAccountCommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await parseBody(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = de_CreateGovCloudAccountResponse(data, context);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents,
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
};
|
|
703
|
-
exports.de_CreateGovCloudAccountCommand = de_CreateGovCloudAccountCommand;
|
|
704
|
-
const de_CreateGovCloudAccountCommandError = async (output, context) => {
|
|
705
|
-
const parsedOutput = {
|
|
706
|
-
...output,
|
|
707
|
-
body: await parseErrorBody(output.body, context),
|
|
708
|
-
};
|
|
709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
710
|
-
switch (errorCode) {
|
|
711
|
-
case "AWSOrganizationsNotInUseException":
|
|
712
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
713
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
714
|
-
case "AccessDeniedException":
|
|
715
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ConcurrentModificationException":
|
|
718
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
719
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ConstraintViolationException":
|
|
721
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
722
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
723
|
-
case "FinalizingOrganizationException":
|
|
724
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
725
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
726
|
-
case "InvalidInputException":
|
|
727
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
728
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
729
|
-
case "ServiceException":
|
|
730
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
731
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
732
|
-
case "TooManyRequestsException":
|
|
733
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
734
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
735
|
-
case "UnsupportedAPIEndpointException":
|
|
736
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
737
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
738
|
-
default:
|
|
739
|
-
const parsedBody = parsedOutput.body;
|
|
740
|
-
return throwDefaultError({
|
|
741
|
-
output,
|
|
742
|
-
parsedBody,
|
|
743
|
-
errorCode,
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
const de_CreateOrganizationCommand = async (output, context) => {
|
|
748
|
-
if (output.statusCode >= 300) {
|
|
749
|
-
return de_CreateOrganizationCommandError(output, context);
|
|
750
|
-
}
|
|
751
|
-
const data = await parseBody(output.body, context);
|
|
752
|
-
let contents = {};
|
|
753
|
-
contents = (0, smithy_client_1._json)(data);
|
|
754
|
-
const response = {
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
...contents,
|
|
757
|
-
};
|
|
758
|
-
return response;
|
|
759
|
-
};
|
|
760
|
-
exports.de_CreateOrganizationCommand = de_CreateOrganizationCommand;
|
|
761
|
-
const de_CreateOrganizationCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "AccessDeniedException":
|
|
769
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
770
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
771
|
-
case "AccessDeniedForDependencyException":
|
|
772
|
-
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
773
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
774
|
-
case "AlreadyInOrganizationException":
|
|
775
|
-
case "com.amazonaws.organizations#AlreadyInOrganizationException":
|
|
776
|
-
throw await de_AlreadyInOrganizationExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ConcurrentModificationException":
|
|
778
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
779
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ConstraintViolationException":
|
|
781
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
782
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
783
|
-
case "InvalidInputException":
|
|
784
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
785
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ServiceException":
|
|
787
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
788
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
789
|
-
case "TooManyRequestsException":
|
|
790
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
791
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
792
|
-
default:
|
|
793
|
-
const parsedBody = parsedOutput.body;
|
|
794
|
-
return throwDefaultError({
|
|
795
|
-
output,
|
|
796
|
-
parsedBody,
|
|
797
|
-
errorCode,
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
const de_CreateOrganizationalUnitCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode >= 300) {
|
|
803
|
-
return de_CreateOrganizationalUnitCommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const data = await parseBody(output.body, context);
|
|
806
|
-
let contents = {};
|
|
807
|
-
contents = (0, smithy_client_1._json)(data);
|
|
808
|
-
const response = {
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
...contents,
|
|
811
|
-
};
|
|
812
|
-
return response;
|
|
813
|
-
};
|
|
814
|
-
exports.de_CreateOrganizationalUnitCommand = de_CreateOrganizationalUnitCommand;
|
|
815
|
-
const de_CreateOrganizationalUnitCommandError = async (output, context) => {
|
|
816
|
-
const parsedOutput = {
|
|
817
|
-
...output,
|
|
818
|
-
body: await parseErrorBody(output.body, context),
|
|
819
|
-
};
|
|
820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
-
switch (errorCode) {
|
|
822
|
-
case "AWSOrganizationsNotInUseException":
|
|
823
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
824
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
825
|
-
case "AccessDeniedException":
|
|
826
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ConcurrentModificationException":
|
|
829
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
830
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ConstraintViolationException":
|
|
832
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
833
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
834
|
-
case "DuplicateOrganizationalUnitException":
|
|
835
|
-
case "com.amazonaws.organizations#DuplicateOrganizationalUnitException":
|
|
836
|
-
throw await de_DuplicateOrganizationalUnitExceptionRes(parsedOutput, context);
|
|
837
|
-
case "InvalidInputException":
|
|
838
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
839
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
840
|
-
case "ParentNotFoundException":
|
|
841
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
842
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ServiceException":
|
|
844
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
845
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
846
|
-
case "TooManyRequestsException":
|
|
847
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
848
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
849
|
-
default:
|
|
850
|
-
const parsedBody = parsedOutput.body;
|
|
851
|
-
return throwDefaultError({
|
|
852
|
-
output,
|
|
853
|
-
parsedBody,
|
|
854
|
-
errorCode,
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
const de_CreatePolicyCommand = async (output, context) => {
|
|
859
|
-
if (output.statusCode >= 300) {
|
|
860
|
-
return de_CreatePolicyCommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const data = await parseBody(output.body, context);
|
|
863
|
-
let contents = {};
|
|
864
|
-
contents = (0, smithy_client_1._json)(data);
|
|
865
|
-
const response = {
|
|
866
|
-
$metadata: deserializeMetadata(output),
|
|
867
|
-
...contents,
|
|
868
|
-
};
|
|
869
|
-
return response;
|
|
870
|
-
};
|
|
871
|
-
exports.de_CreatePolicyCommand = de_CreatePolicyCommand;
|
|
872
|
-
const de_CreatePolicyCommandError = async (output, context) => {
|
|
873
|
-
const parsedOutput = {
|
|
874
|
-
...output,
|
|
875
|
-
body: await parseErrorBody(output.body, context),
|
|
876
|
-
};
|
|
877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
|
-
switch (errorCode) {
|
|
879
|
-
case "AWSOrganizationsNotInUseException":
|
|
880
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
881
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
882
|
-
case "AccessDeniedException":
|
|
883
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
884
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ConcurrentModificationException":
|
|
886
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
887
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ConstraintViolationException":
|
|
889
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
890
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
891
|
-
case "DuplicatePolicyException":
|
|
892
|
-
case "com.amazonaws.organizations#DuplicatePolicyException":
|
|
893
|
-
throw await de_DuplicatePolicyExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InvalidInputException":
|
|
895
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
896
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
897
|
-
case "MalformedPolicyDocumentException":
|
|
898
|
-
case "com.amazonaws.organizations#MalformedPolicyDocumentException":
|
|
899
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
900
|
-
case "PolicyTypeNotAvailableForOrganizationException":
|
|
901
|
-
case "com.amazonaws.organizations#PolicyTypeNotAvailableForOrganizationException":
|
|
902
|
-
throw await de_PolicyTypeNotAvailableForOrganizationExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ServiceException":
|
|
904
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
905
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
906
|
-
case "TooManyRequestsException":
|
|
907
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
908
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
909
|
-
case "UnsupportedAPIEndpointException":
|
|
910
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
911
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
912
|
-
default:
|
|
913
|
-
const parsedBody = parsedOutput.body;
|
|
914
|
-
return throwDefaultError({
|
|
915
|
-
output,
|
|
916
|
-
parsedBody,
|
|
917
|
-
errorCode,
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
const de_DeclineHandshakeCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode >= 300) {
|
|
923
|
-
return de_DeclineHandshakeCommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const data = await parseBody(output.body, context);
|
|
926
|
-
let contents = {};
|
|
927
|
-
contents = de_DeclineHandshakeResponse(data, context);
|
|
928
|
-
const response = {
|
|
929
|
-
$metadata: deserializeMetadata(output),
|
|
930
|
-
...contents,
|
|
931
|
-
};
|
|
932
|
-
return response;
|
|
933
|
-
};
|
|
934
|
-
exports.de_DeclineHandshakeCommand = de_DeclineHandshakeCommand;
|
|
935
|
-
const de_DeclineHandshakeCommandError = async (output, context) => {
|
|
936
|
-
const parsedOutput = {
|
|
937
|
-
...output,
|
|
938
|
-
body: await parseErrorBody(output.body, context),
|
|
939
|
-
};
|
|
940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
|
-
switch (errorCode) {
|
|
942
|
-
case "AccessDeniedException":
|
|
943
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
944
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ConcurrentModificationException":
|
|
946
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
947
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
948
|
-
case "HandshakeAlreadyInStateException":
|
|
949
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
950
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
951
|
-
case "HandshakeNotFoundException":
|
|
952
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
953
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
954
|
-
case "InvalidHandshakeTransitionException":
|
|
955
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
956
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
957
|
-
case "InvalidInputException":
|
|
958
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
959
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ServiceException":
|
|
961
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
962
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
963
|
-
case "TooManyRequestsException":
|
|
964
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
965
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
966
|
-
default:
|
|
967
|
-
const parsedBody = parsedOutput.body;
|
|
968
|
-
return throwDefaultError({
|
|
969
|
-
output,
|
|
970
|
-
parsedBody,
|
|
971
|
-
errorCode,
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
const de_DeleteOrganizationCommand = async (output, context) => {
|
|
976
|
-
if (output.statusCode >= 300) {
|
|
977
|
-
return de_DeleteOrganizationCommandError(output, context);
|
|
978
|
-
}
|
|
979
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
980
|
-
const response = {
|
|
981
|
-
$metadata: deserializeMetadata(output),
|
|
982
|
-
};
|
|
983
|
-
return response;
|
|
984
|
-
};
|
|
985
|
-
exports.de_DeleteOrganizationCommand = de_DeleteOrganizationCommand;
|
|
986
|
-
const de_DeleteOrganizationCommandError = async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "AWSOrganizationsNotInUseException":
|
|
994
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
995
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
996
|
-
case "AccessDeniedException":
|
|
997
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
998
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ConcurrentModificationException":
|
|
1000
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1001
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "InvalidInputException":
|
|
1003
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1004
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "OrganizationNotEmptyException":
|
|
1006
|
-
case "com.amazonaws.organizations#OrganizationNotEmptyException":
|
|
1007
|
-
throw await de_OrganizationNotEmptyExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ServiceException":
|
|
1009
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1010
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "TooManyRequestsException":
|
|
1012
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1013
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1014
|
-
default:
|
|
1015
|
-
const parsedBody = parsedOutput.body;
|
|
1016
|
-
return throwDefaultError({
|
|
1017
|
-
output,
|
|
1018
|
-
parsedBody,
|
|
1019
|
-
errorCode,
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
1023
|
-
const de_DeleteOrganizationalUnitCommand = async (output, context) => {
|
|
1024
|
-
if (output.statusCode >= 300) {
|
|
1025
|
-
return de_DeleteOrganizationalUnitCommandError(output, context);
|
|
1026
|
-
}
|
|
1027
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1028
|
-
const response = {
|
|
1029
|
-
$metadata: deserializeMetadata(output),
|
|
1030
|
-
};
|
|
1031
|
-
return response;
|
|
1032
|
-
};
|
|
1033
|
-
exports.de_DeleteOrganizationalUnitCommand = de_DeleteOrganizationalUnitCommand;
|
|
1034
|
-
const de_DeleteOrganizationalUnitCommandError = async (output, context) => {
|
|
1035
|
-
const parsedOutput = {
|
|
1036
|
-
...output,
|
|
1037
|
-
body: await parseErrorBody(output.body, context),
|
|
1038
|
-
};
|
|
1039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
-
switch (errorCode) {
|
|
1041
|
-
case "AWSOrganizationsNotInUseException":
|
|
1042
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1043
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "AccessDeniedException":
|
|
1045
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1046
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ConcurrentModificationException":
|
|
1048
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1049
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidInputException":
|
|
1051
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1052
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "OrganizationalUnitNotEmptyException":
|
|
1054
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotEmptyException":
|
|
1055
|
-
throw await de_OrganizationalUnitNotEmptyExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "OrganizationalUnitNotFoundException":
|
|
1057
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
1058
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ServiceException":
|
|
1060
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1061
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "TooManyRequestsException":
|
|
1063
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1064
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
const de_DeletePolicyCommand = async (output, context) => {
|
|
1075
|
-
if (output.statusCode >= 300) {
|
|
1076
|
-
return de_DeletePolicyCommandError(output, context);
|
|
1077
|
-
}
|
|
1078
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1079
|
-
const response = {
|
|
1080
|
-
$metadata: deserializeMetadata(output),
|
|
1081
|
-
};
|
|
1082
|
-
return response;
|
|
1083
|
-
};
|
|
1084
|
-
exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
|
|
1085
|
-
const de_DeletePolicyCommandError = async (output, context) => {
|
|
1086
|
-
const parsedOutput = {
|
|
1087
|
-
...output,
|
|
1088
|
-
body: await parseErrorBody(output.body, context),
|
|
1089
|
-
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
-
switch (errorCode) {
|
|
1092
|
-
case "AWSOrganizationsNotInUseException":
|
|
1093
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1094
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "AccessDeniedException":
|
|
1096
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1097
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ConcurrentModificationException":
|
|
1099
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1100
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "InvalidInputException":
|
|
1102
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1103
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "PolicyInUseException":
|
|
1105
|
-
case "com.amazonaws.organizations#PolicyInUseException":
|
|
1106
|
-
throw await de_PolicyInUseExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "PolicyNotFoundException":
|
|
1108
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
1109
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ServiceException":
|
|
1111
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1112
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "TooManyRequestsException":
|
|
1114
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1115
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "UnsupportedAPIEndpointException":
|
|
1117
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1118
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1119
|
-
default:
|
|
1120
|
-
const parsedBody = parsedOutput.body;
|
|
1121
|
-
return throwDefaultError({
|
|
1122
|
-
output,
|
|
1123
|
-
parsedBody,
|
|
1124
|
-
errorCode,
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1129
|
-
if (output.statusCode >= 300) {
|
|
1130
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1131
|
-
}
|
|
1132
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1133
|
-
const response = {
|
|
1134
|
-
$metadata: deserializeMetadata(output),
|
|
1135
|
-
};
|
|
1136
|
-
return response;
|
|
1137
|
-
};
|
|
1138
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
1139
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1140
|
-
const parsedOutput = {
|
|
1141
|
-
...output,
|
|
1142
|
-
body: await parseErrorBody(output.body, context),
|
|
1143
|
-
};
|
|
1144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
-
switch (errorCode) {
|
|
1146
|
-
case "AWSOrganizationsNotInUseException":
|
|
1147
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1148
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "AccessDeniedException":
|
|
1150
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ConcurrentModificationException":
|
|
1153
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1154
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ConstraintViolationException":
|
|
1156
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1157
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ResourcePolicyNotFoundException":
|
|
1159
|
-
case "com.amazonaws.organizations#ResourcePolicyNotFoundException":
|
|
1160
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ServiceException":
|
|
1162
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1163
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "TooManyRequestsException":
|
|
1165
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1166
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "UnsupportedAPIEndpointException":
|
|
1168
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1169
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1170
|
-
default:
|
|
1171
|
-
const parsedBody = parsedOutput.body;
|
|
1172
|
-
return throwDefaultError({
|
|
1173
|
-
output,
|
|
1174
|
-
parsedBody,
|
|
1175
|
-
errorCode,
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
const de_DeregisterDelegatedAdministratorCommand = async (output, context) => {
|
|
1180
|
-
if (output.statusCode >= 300) {
|
|
1181
|
-
return de_DeregisterDelegatedAdministratorCommandError(output, context);
|
|
1182
|
-
}
|
|
1183
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1184
|
-
const response = {
|
|
1185
|
-
$metadata: deserializeMetadata(output),
|
|
1186
|
-
};
|
|
1187
|
-
return response;
|
|
1188
|
-
};
|
|
1189
|
-
exports.de_DeregisterDelegatedAdministratorCommand = de_DeregisterDelegatedAdministratorCommand;
|
|
1190
|
-
const de_DeregisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context),
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "AWSOrganizationsNotInUseException":
|
|
1198
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1199
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "AccountNotFoundException":
|
|
1204
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
1205
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "AccountNotRegisteredException":
|
|
1207
|
-
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
1208
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ConcurrentModificationException":
|
|
1210
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1211
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "ConstraintViolationException":
|
|
1213
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1214
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "InvalidInputException":
|
|
1216
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1217
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ServiceException":
|
|
1219
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1220
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "TooManyRequestsException":
|
|
1222
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1223
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "UnsupportedAPIEndpointException":
|
|
1225
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1226
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1227
|
-
default:
|
|
1228
|
-
const parsedBody = parsedOutput.body;
|
|
1229
|
-
return throwDefaultError({
|
|
1230
|
-
output,
|
|
1231
|
-
parsedBody,
|
|
1232
|
-
errorCode,
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
|
-
const de_DescribeAccountCommand = async (output, context) => {
|
|
1237
|
-
if (output.statusCode >= 300) {
|
|
1238
|
-
return de_DescribeAccountCommandError(output, context);
|
|
1239
|
-
}
|
|
1240
|
-
const data = await parseBody(output.body, context);
|
|
1241
|
-
let contents = {};
|
|
1242
|
-
contents = de_DescribeAccountResponse(data, context);
|
|
1243
|
-
const response = {
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
...contents,
|
|
1246
|
-
};
|
|
1247
|
-
return response;
|
|
1248
|
-
};
|
|
1249
|
-
exports.de_DescribeAccountCommand = de_DescribeAccountCommand;
|
|
1250
|
-
const de_DescribeAccountCommandError = async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context),
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "AWSOrganizationsNotInUseException":
|
|
1258
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1259
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "AccessDeniedException":
|
|
1261
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "AccountNotFoundException":
|
|
1264
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
1265
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "InvalidInputException":
|
|
1267
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1268
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ServiceException":
|
|
1270
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1271
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "TooManyRequestsException":
|
|
1273
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1274
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode,
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
};
|
|
1284
|
-
const de_DescribeCreateAccountStatusCommand = async (output, context) => {
|
|
1285
|
-
if (output.statusCode >= 300) {
|
|
1286
|
-
return de_DescribeCreateAccountStatusCommandError(output, context);
|
|
1287
|
-
}
|
|
1288
|
-
const data = await parseBody(output.body, context);
|
|
1289
|
-
let contents = {};
|
|
1290
|
-
contents = de_DescribeCreateAccountStatusResponse(data, context);
|
|
1291
|
-
const response = {
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
...contents,
|
|
1294
|
-
};
|
|
1295
|
-
return response;
|
|
1296
|
-
};
|
|
1297
|
-
exports.de_DescribeCreateAccountStatusCommand = de_DescribeCreateAccountStatusCommand;
|
|
1298
|
-
const de_DescribeCreateAccountStatusCommandError = async (output, context) => {
|
|
1299
|
-
const parsedOutput = {
|
|
1300
|
-
...output,
|
|
1301
|
-
body: await parseErrorBody(output.body, context),
|
|
1302
|
-
};
|
|
1303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
-
switch (errorCode) {
|
|
1305
|
-
case "AWSOrganizationsNotInUseException":
|
|
1306
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1307
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1308
|
-
case "AccessDeniedException":
|
|
1309
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "CreateAccountStatusNotFoundException":
|
|
1312
|
-
case "com.amazonaws.organizations#CreateAccountStatusNotFoundException":
|
|
1313
|
-
throw await de_CreateAccountStatusNotFoundExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "InvalidInputException":
|
|
1315
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1316
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ServiceException":
|
|
1318
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1319
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "TooManyRequestsException":
|
|
1321
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1322
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "UnsupportedAPIEndpointException":
|
|
1324
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1325
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1326
|
-
default:
|
|
1327
|
-
const parsedBody = parsedOutput.body;
|
|
1328
|
-
return throwDefaultError({
|
|
1329
|
-
output,
|
|
1330
|
-
parsedBody,
|
|
1331
|
-
errorCode,
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
};
|
|
1335
|
-
const de_DescribeEffectivePolicyCommand = async (output, context) => {
|
|
1336
|
-
if (output.statusCode >= 300) {
|
|
1337
|
-
return de_DescribeEffectivePolicyCommandError(output, context);
|
|
1338
|
-
}
|
|
1339
|
-
const data = await parseBody(output.body, context);
|
|
1340
|
-
let contents = {};
|
|
1341
|
-
contents = de_DescribeEffectivePolicyResponse(data, context);
|
|
1342
|
-
const response = {
|
|
1343
|
-
$metadata: deserializeMetadata(output),
|
|
1344
|
-
...contents,
|
|
1345
|
-
};
|
|
1346
|
-
return response;
|
|
1347
|
-
};
|
|
1348
|
-
exports.de_DescribeEffectivePolicyCommand = de_DescribeEffectivePolicyCommand;
|
|
1349
|
-
const de_DescribeEffectivePolicyCommandError = async (output, context) => {
|
|
1350
|
-
const parsedOutput = {
|
|
1351
|
-
...output,
|
|
1352
|
-
body: await parseErrorBody(output.body, context),
|
|
1353
|
-
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
-
switch (errorCode) {
|
|
1356
|
-
case "AWSOrganizationsNotInUseException":
|
|
1357
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1358
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "AccessDeniedException":
|
|
1360
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "ConstraintViolationException":
|
|
1363
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1364
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "EffectivePolicyNotFoundException":
|
|
1366
|
-
case "com.amazonaws.organizations#EffectivePolicyNotFoundException":
|
|
1367
|
-
throw await de_EffectivePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InvalidInputException":
|
|
1369
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1370
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ServiceException":
|
|
1372
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1373
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "TargetNotFoundException":
|
|
1375
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
1376
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "TooManyRequestsException":
|
|
1378
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1379
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "UnsupportedAPIEndpointException":
|
|
1381
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1382
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1383
|
-
default:
|
|
1384
|
-
const parsedBody = parsedOutput.body;
|
|
1385
|
-
return throwDefaultError({
|
|
1386
|
-
output,
|
|
1387
|
-
parsedBody,
|
|
1388
|
-
errorCode,
|
|
1389
|
-
});
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
|
-
const de_DescribeHandshakeCommand = async (output, context) => {
|
|
1393
|
-
if (output.statusCode >= 300) {
|
|
1394
|
-
return de_DescribeHandshakeCommandError(output, context);
|
|
1395
|
-
}
|
|
1396
|
-
const data = await parseBody(output.body, context);
|
|
1397
|
-
let contents = {};
|
|
1398
|
-
contents = de_DescribeHandshakeResponse(data, context);
|
|
1399
|
-
const response = {
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
...contents,
|
|
1402
|
-
};
|
|
1403
|
-
return response;
|
|
1404
|
-
};
|
|
1405
|
-
exports.de_DescribeHandshakeCommand = de_DescribeHandshakeCommand;
|
|
1406
|
-
const de_DescribeHandshakeCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "AccessDeniedException":
|
|
1414
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ConcurrentModificationException":
|
|
1417
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1418
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "HandshakeNotFoundException":
|
|
1420
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
1421
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "InvalidInputException":
|
|
1423
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1424
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ServiceException":
|
|
1426
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1427
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "TooManyRequestsException":
|
|
1429
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1430
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1431
|
-
default:
|
|
1432
|
-
const parsedBody = parsedOutput.body;
|
|
1433
|
-
return throwDefaultError({
|
|
1434
|
-
output,
|
|
1435
|
-
parsedBody,
|
|
1436
|
-
errorCode,
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
const de_DescribeOrganizationCommand = async (output, context) => {
|
|
1441
|
-
if (output.statusCode >= 300) {
|
|
1442
|
-
return de_DescribeOrganizationCommandError(output, context);
|
|
1443
|
-
}
|
|
1444
|
-
const data = await parseBody(output.body, context);
|
|
1445
|
-
let contents = {};
|
|
1446
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1447
|
-
const response = {
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
...contents,
|
|
1450
|
-
};
|
|
1451
|
-
return response;
|
|
1452
|
-
};
|
|
1453
|
-
exports.de_DescribeOrganizationCommand = de_DescribeOrganizationCommand;
|
|
1454
|
-
const de_DescribeOrganizationCommandError = async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context),
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "AWSOrganizationsNotInUseException":
|
|
1462
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1463
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "AccessDeniedException":
|
|
1465
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ConcurrentModificationException":
|
|
1468
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1469
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ServiceException":
|
|
1471
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1472
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "TooManyRequestsException":
|
|
1474
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1475
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode,
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
};
|
|
1485
|
-
const de_DescribeOrganizationalUnitCommand = async (output, context) => {
|
|
1486
|
-
if (output.statusCode >= 300) {
|
|
1487
|
-
return de_DescribeOrganizationalUnitCommandError(output, context);
|
|
1488
|
-
}
|
|
1489
|
-
const data = await parseBody(output.body, context);
|
|
1490
|
-
let contents = {};
|
|
1491
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1492
|
-
const response = {
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
...contents,
|
|
1495
|
-
};
|
|
1496
|
-
return response;
|
|
1497
|
-
};
|
|
1498
|
-
exports.de_DescribeOrganizationalUnitCommand = de_DescribeOrganizationalUnitCommand;
|
|
1499
|
-
const de_DescribeOrganizationalUnitCommandError = async (output, context) => {
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "AWSOrganizationsNotInUseException":
|
|
1507
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1508
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "AccessDeniedException":
|
|
1510
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "InvalidInputException":
|
|
1513
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1514
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "OrganizationalUnitNotFoundException":
|
|
1516
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
1517
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ServiceException":
|
|
1519
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1520
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "TooManyRequestsException":
|
|
1522
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1523
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody,
|
|
1529
|
-
errorCode,
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
const de_DescribePolicyCommand = async (output, context) => {
|
|
1534
|
-
if (output.statusCode >= 300) {
|
|
1535
|
-
return de_DescribePolicyCommandError(output, context);
|
|
1536
|
-
}
|
|
1537
|
-
const data = await parseBody(output.body, context);
|
|
1538
|
-
let contents = {};
|
|
1539
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1540
|
-
const response = {
|
|
1541
|
-
$metadata: deserializeMetadata(output),
|
|
1542
|
-
...contents,
|
|
1543
|
-
};
|
|
1544
|
-
return response;
|
|
1545
|
-
};
|
|
1546
|
-
exports.de_DescribePolicyCommand = de_DescribePolicyCommand;
|
|
1547
|
-
const de_DescribePolicyCommandError = async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context),
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "AWSOrganizationsNotInUseException":
|
|
1555
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1556
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "AccessDeniedException":
|
|
1558
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "InvalidInputException":
|
|
1561
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1562
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "PolicyNotFoundException":
|
|
1564
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
1565
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ServiceException":
|
|
1567
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1568
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "TooManyRequestsException":
|
|
1570
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1571
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "UnsupportedAPIEndpointException":
|
|
1573
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1574
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1575
|
-
default:
|
|
1576
|
-
const parsedBody = parsedOutput.body;
|
|
1577
|
-
return throwDefaultError({
|
|
1578
|
-
output,
|
|
1579
|
-
parsedBody,
|
|
1580
|
-
errorCode,
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
};
|
|
1584
|
-
const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
1585
|
-
if (output.statusCode >= 300) {
|
|
1586
|
-
return de_DescribeResourcePolicyCommandError(output, context);
|
|
1587
|
-
}
|
|
1588
|
-
const data = await parseBody(output.body, context);
|
|
1589
|
-
let contents = {};
|
|
1590
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1591
|
-
const response = {
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
...contents,
|
|
1594
|
-
};
|
|
1595
|
-
return response;
|
|
1596
|
-
};
|
|
1597
|
-
exports.de_DescribeResourcePolicyCommand = de_DescribeResourcePolicyCommand;
|
|
1598
|
-
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context),
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "AWSOrganizationsNotInUseException":
|
|
1606
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1607
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "AccessDeniedException":
|
|
1609
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1610
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ConstraintViolationException":
|
|
1612
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1613
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ResourcePolicyNotFoundException":
|
|
1615
|
-
case "com.amazonaws.organizations#ResourcePolicyNotFoundException":
|
|
1616
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ServiceException":
|
|
1618
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1619
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "TooManyRequestsException":
|
|
1621
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1622
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "UnsupportedAPIEndpointException":
|
|
1624
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1625
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode,
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
};
|
|
1635
|
-
const de_DetachPolicyCommand = async (output, context) => {
|
|
1636
|
-
if (output.statusCode >= 300) {
|
|
1637
|
-
return de_DetachPolicyCommandError(output, context);
|
|
1638
|
-
}
|
|
1639
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1640
|
-
const response = {
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
};
|
|
1643
|
-
return response;
|
|
1644
|
-
};
|
|
1645
|
-
exports.de_DetachPolicyCommand = de_DetachPolicyCommand;
|
|
1646
|
-
const de_DetachPolicyCommandError = async (output, context) => {
|
|
1647
|
-
const parsedOutput = {
|
|
1648
|
-
...output,
|
|
1649
|
-
body: await parseErrorBody(output.body, context),
|
|
1650
|
-
};
|
|
1651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
|
-
switch (errorCode) {
|
|
1653
|
-
case "AWSOrganizationsNotInUseException":
|
|
1654
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1655
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "AccessDeniedException":
|
|
1657
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1658
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ConcurrentModificationException":
|
|
1660
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1661
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ConstraintViolationException":
|
|
1663
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1664
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "InvalidInputException":
|
|
1666
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1667
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "PolicyChangesInProgressException":
|
|
1669
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
1670
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "PolicyNotAttachedException":
|
|
1672
|
-
case "com.amazonaws.organizations#PolicyNotAttachedException":
|
|
1673
|
-
throw await de_PolicyNotAttachedExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "PolicyNotFoundException":
|
|
1675
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
1676
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1677
|
-
case "ServiceException":
|
|
1678
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1679
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "TargetNotFoundException":
|
|
1681
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
1682
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1683
|
-
case "TooManyRequestsException":
|
|
1684
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1685
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "UnsupportedAPIEndpointException":
|
|
1687
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1688
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1689
|
-
default:
|
|
1690
|
-
const parsedBody = parsedOutput.body;
|
|
1691
|
-
return throwDefaultError({
|
|
1692
|
-
output,
|
|
1693
|
-
parsedBody,
|
|
1694
|
-
errorCode,
|
|
1695
|
-
});
|
|
1696
|
-
}
|
|
1697
|
-
};
|
|
1698
|
-
const de_DisableAWSServiceAccessCommand = async (output, context) => {
|
|
1699
|
-
if (output.statusCode >= 300) {
|
|
1700
|
-
return de_DisableAWSServiceAccessCommandError(output, context);
|
|
1701
|
-
}
|
|
1702
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1703
|
-
const response = {
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
};
|
|
1706
|
-
return response;
|
|
1707
|
-
};
|
|
1708
|
-
exports.de_DisableAWSServiceAccessCommand = de_DisableAWSServiceAccessCommand;
|
|
1709
|
-
const de_DisableAWSServiceAccessCommandError = async (output, context) => {
|
|
1710
|
-
const parsedOutput = {
|
|
1711
|
-
...output,
|
|
1712
|
-
body: await parseErrorBody(output.body, context),
|
|
1713
|
-
};
|
|
1714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1715
|
-
switch (errorCode) {
|
|
1716
|
-
case "AWSOrganizationsNotInUseException":
|
|
1717
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1718
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "AccessDeniedException":
|
|
1720
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ConcurrentModificationException":
|
|
1723
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1724
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ConstraintViolationException":
|
|
1726
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1727
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "InvalidInputException":
|
|
1729
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1730
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ServiceException":
|
|
1732
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1733
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "TooManyRequestsException":
|
|
1735
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1736
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "UnsupportedAPIEndpointException":
|
|
1738
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1739
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody,
|
|
1745
|
-
errorCode,
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
|
-
const de_DisablePolicyTypeCommand = async (output, context) => {
|
|
1750
|
-
if (output.statusCode >= 300) {
|
|
1751
|
-
return de_DisablePolicyTypeCommandError(output, context);
|
|
1752
|
-
}
|
|
1753
|
-
const data = await parseBody(output.body, context);
|
|
1754
|
-
let contents = {};
|
|
1755
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1756
|
-
const response = {
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
...contents,
|
|
1759
|
-
};
|
|
1760
|
-
return response;
|
|
1761
|
-
};
|
|
1762
|
-
exports.de_DisablePolicyTypeCommand = de_DisablePolicyTypeCommand;
|
|
1763
|
-
const de_DisablePolicyTypeCommandError = async (output, context) => {
|
|
1764
|
-
const parsedOutput = {
|
|
1765
|
-
...output,
|
|
1766
|
-
body: await parseErrorBody(output.body, context),
|
|
1767
|
-
};
|
|
1768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
|
-
switch (errorCode) {
|
|
1770
|
-
case "AWSOrganizationsNotInUseException":
|
|
1771
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1772
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "AccessDeniedException":
|
|
1774
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ConcurrentModificationException":
|
|
1777
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1778
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ConstraintViolationException":
|
|
1780
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1781
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "InvalidInputException":
|
|
1783
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1784
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "PolicyChangesInProgressException":
|
|
1786
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
1787
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "PolicyTypeNotEnabledException":
|
|
1789
|
-
case "com.amazonaws.organizations#PolicyTypeNotEnabledException":
|
|
1790
|
-
throw await de_PolicyTypeNotEnabledExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "RootNotFoundException":
|
|
1792
|
-
case "com.amazonaws.organizations#RootNotFoundException":
|
|
1793
|
-
throw await de_RootNotFoundExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "ServiceException":
|
|
1795
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1796
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "TooManyRequestsException":
|
|
1798
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1799
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "UnsupportedAPIEndpointException":
|
|
1801
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1802
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1803
|
-
default:
|
|
1804
|
-
const parsedBody = parsedOutput.body;
|
|
1805
|
-
return throwDefaultError({
|
|
1806
|
-
output,
|
|
1807
|
-
parsedBody,
|
|
1808
|
-
errorCode,
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
};
|
|
1812
|
-
const de_EnableAllFeaturesCommand = async (output, context) => {
|
|
1813
|
-
if (output.statusCode >= 300) {
|
|
1814
|
-
return de_EnableAllFeaturesCommandError(output, context);
|
|
1815
|
-
}
|
|
1816
|
-
const data = await parseBody(output.body, context);
|
|
1817
|
-
let contents = {};
|
|
1818
|
-
contents = de_EnableAllFeaturesResponse(data, context);
|
|
1819
|
-
const response = {
|
|
1820
|
-
$metadata: deserializeMetadata(output),
|
|
1821
|
-
...contents,
|
|
1822
|
-
};
|
|
1823
|
-
return response;
|
|
1824
|
-
};
|
|
1825
|
-
exports.de_EnableAllFeaturesCommand = de_EnableAllFeaturesCommand;
|
|
1826
|
-
const de_EnableAllFeaturesCommandError = async (output, context) => {
|
|
1827
|
-
const parsedOutput = {
|
|
1828
|
-
...output,
|
|
1829
|
-
body: await parseErrorBody(output.body, context),
|
|
1830
|
-
};
|
|
1831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
|
-
switch (errorCode) {
|
|
1833
|
-
case "AWSOrganizationsNotInUseException":
|
|
1834
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1835
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "AccessDeniedException":
|
|
1837
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ConcurrentModificationException":
|
|
1840
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1841
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "HandshakeConstraintViolationException":
|
|
1843
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
1844
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "InvalidInputException":
|
|
1846
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1847
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ServiceException":
|
|
1849
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1850
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "TooManyRequestsException":
|
|
1852
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1853
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1854
|
-
default:
|
|
1855
|
-
const parsedBody = parsedOutput.body;
|
|
1856
|
-
return throwDefaultError({
|
|
1857
|
-
output,
|
|
1858
|
-
parsedBody,
|
|
1859
|
-
errorCode,
|
|
1860
|
-
});
|
|
1861
|
-
}
|
|
1862
|
-
};
|
|
1863
|
-
const de_EnableAWSServiceAccessCommand = async (output, context) => {
|
|
1864
|
-
if (output.statusCode >= 300) {
|
|
1865
|
-
return de_EnableAWSServiceAccessCommandError(output, context);
|
|
1866
|
-
}
|
|
1867
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1868
|
-
const response = {
|
|
1869
|
-
$metadata: deserializeMetadata(output),
|
|
1870
|
-
};
|
|
1871
|
-
return response;
|
|
1872
|
-
};
|
|
1873
|
-
exports.de_EnableAWSServiceAccessCommand = de_EnableAWSServiceAccessCommand;
|
|
1874
|
-
const de_EnableAWSServiceAccessCommandError = async (output, context) => {
|
|
1875
|
-
const parsedOutput = {
|
|
1876
|
-
...output,
|
|
1877
|
-
body: await parseErrorBody(output.body, context),
|
|
1878
|
-
};
|
|
1879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
|
-
switch (errorCode) {
|
|
1881
|
-
case "AWSOrganizationsNotInUseException":
|
|
1882
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1883
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "AccessDeniedException":
|
|
1885
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ConcurrentModificationException":
|
|
1888
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1889
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ConstraintViolationException":
|
|
1891
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1892
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "InvalidInputException":
|
|
1894
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1895
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ServiceException":
|
|
1897
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1898
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "TooManyRequestsException":
|
|
1900
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1901
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "UnsupportedAPIEndpointException":
|
|
1903
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1904
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode,
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
const de_EnablePolicyTypeCommand = async (output, context) => {
|
|
1915
|
-
if (output.statusCode >= 300) {
|
|
1916
|
-
return de_EnablePolicyTypeCommandError(output, context);
|
|
1917
|
-
}
|
|
1918
|
-
const data = await parseBody(output.body, context);
|
|
1919
|
-
let contents = {};
|
|
1920
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1921
|
-
const response = {
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
...contents,
|
|
1924
|
-
};
|
|
1925
|
-
return response;
|
|
1926
|
-
};
|
|
1927
|
-
exports.de_EnablePolicyTypeCommand = de_EnablePolicyTypeCommand;
|
|
1928
|
-
const de_EnablePolicyTypeCommandError = async (output, context) => {
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context),
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "AWSOrganizationsNotInUseException":
|
|
1936
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1937
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "AccessDeniedException":
|
|
1939
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1940
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "ConcurrentModificationException":
|
|
1942
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1943
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ConstraintViolationException":
|
|
1945
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1946
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "InvalidInputException":
|
|
1948
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1949
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "PolicyChangesInProgressException":
|
|
1951
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
1952
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "PolicyTypeAlreadyEnabledException":
|
|
1954
|
-
case "com.amazonaws.organizations#PolicyTypeAlreadyEnabledException":
|
|
1955
|
-
throw await de_PolicyTypeAlreadyEnabledExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "PolicyTypeNotAvailableForOrganizationException":
|
|
1957
|
-
case "com.amazonaws.organizations#PolicyTypeNotAvailableForOrganizationException":
|
|
1958
|
-
throw await de_PolicyTypeNotAvailableForOrganizationExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "RootNotFoundException":
|
|
1960
|
-
case "com.amazonaws.organizations#RootNotFoundException":
|
|
1961
|
-
throw await de_RootNotFoundExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ServiceException":
|
|
1963
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1964
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "TooManyRequestsException":
|
|
1966
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1967
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "UnsupportedAPIEndpointException":
|
|
1969
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1970
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1971
|
-
default:
|
|
1972
|
-
const parsedBody = parsedOutput.body;
|
|
1973
|
-
return throwDefaultError({
|
|
1974
|
-
output,
|
|
1975
|
-
parsedBody,
|
|
1976
|
-
errorCode,
|
|
1977
|
-
});
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
const de_InviteAccountToOrganizationCommand = async (output, context) => {
|
|
1981
|
-
if (output.statusCode >= 300) {
|
|
1982
|
-
return de_InviteAccountToOrganizationCommandError(output, context);
|
|
1983
|
-
}
|
|
1984
|
-
const data = await parseBody(output.body, context);
|
|
1985
|
-
let contents = {};
|
|
1986
|
-
contents = de_InviteAccountToOrganizationResponse(data, context);
|
|
1987
|
-
const response = {
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
...contents,
|
|
1990
|
-
};
|
|
1991
|
-
return response;
|
|
1992
|
-
};
|
|
1993
|
-
exports.de_InviteAccountToOrganizationCommand = de_InviteAccountToOrganizationCommand;
|
|
1994
|
-
const de_InviteAccountToOrganizationCommandError = async (output, context) => {
|
|
1995
|
-
const parsedOutput = {
|
|
1996
|
-
...output,
|
|
1997
|
-
body: await parseErrorBody(output.body, context),
|
|
1998
|
-
};
|
|
1999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2000
|
-
switch (errorCode) {
|
|
2001
|
-
case "AWSOrganizationsNotInUseException":
|
|
2002
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2003
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "AccessDeniedException":
|
|
2005
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2006
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "AccountOwnerNotVerifiedException":
|
|
2008
|
-
case "com.amazonaws.organizations#AccountOwnerNotVerifiedException":
|
|
2009
|
-
throw await de_AccountOwnerNotVerifiedExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ConcurrentModificationException":
|
|
2011
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2012
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ConstraintViolationException":
|
|
2014
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2015
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "DuplicateHandshakeException":
|
|
2017
|
-
case "com.amazonaws.organizations#DuplicateHandshakeException":
|
|
2018
|
-
throw await de_DuplicateHandshakeExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "FinalizingOrganizationException":
|
|
2020
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
2021
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "HandshakeConstraintViolationException":
|
|
2023
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
2024
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "InvalidInputException":
|
|
2026
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2027
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ServiceException":
|
|
2029
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2030
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "TooManyRequestsException":
|
|
2032
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2033
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2034
|
-
default:
|
|
2035
|
-
const parsedBody = parsedOutput.body;
|
|
2036
|
-
return throwDefaultError({
|
|
2037
|
-
output,
|
|
2038
|
-
parsedBody,
|
|
2039
|
-
errorCode,
|
|
2040
|
-
});
|
|
2041
|
-
}
|
|
2042
|
-
};
|
|
2043
|
-
const de_LeaveOrganizationCommand = async (output, context) => {
|
|
2044
|
-
if (output.statusCode >= 300) {
|
|
2045
|
-
return de_LeaveOrganizationCommandError(output, context);
|
|
2046
|
-
}
|
|
2047
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2048
|
-
const response = {
|
|
2049
|
-
$metadata: deserializeMetadata(output),
|
|
2050
|
-
};
|
|
2051
|
-
return response;
|
|
2052
|
-
};
|
|
2053
|
-
exports.de_LeaveOrganizationCommand = de_LeaveOrganizationCommand;
|
|
2054
|
-
const de_LeaveOrganizationCommandError = async (output, context) => {
|
|
2055
|
-
const parsedOutput = {
|
|
2056
|
-
...output,
|
|
2057
|
-
body: await parseErrorBody(output.body, context),
|
|
2058
|
-
};
|
|
2059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
-
switch (errorCode) {
|
|
2061
|
-
case "AWSOrganizationsNotInUseException":
|
|
2062
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2063
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "AccessDeniedException":
|
|
2065
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2066
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "AccountNotFoundException":
|
|
2068
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2069
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2070
|
-
case "ConcurrentModificationException":
|
|
2071
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2072
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ConstraintViolationException":
|
|
2074
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2075
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "InvalidInputException":
|
|
2077
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2078
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "MasterCannotLeaveOrganizationException":
|
|
2080
|
-
case "com.amazonaws.organizations#MasterCannotLeaveOrganizationException":
|
|
2081
|
-
throw await de_MasterCannotLeaveOrganizationExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "ServiceException":
|
|
2083
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2084
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "TooManyRequestsException":
|
|
2086
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2087
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode,
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
|
-
const de_ListAccountsCommand = async (output, context) => {
|
|
2098
|
-
if (output.statusCode >= 300) {
|
|
2099
|
-
return de_ListAccountsCommandError(output, context);
|
|
2100
|
-
}
|
|
2101
|
-
const data = await parseBody(output.body, context);
|
|
2102
|
-
let contents = {};
|
|
2103
|
-
contents = de_ListAccountsResponse(data, context);
|
|
2104
|
-
const response = {
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
...contents,
|
|
2107
|
-
};
|
|
2108
|
-
return response;
|
|
2109
|
-
};
|
|
2110
|
-
exports.de_ListAccountsCommand = de_ListAccountsCommand;
|
|
2111
|
-
const de_ListAccountsCommandError = async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context),
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "AWSOrganizationsNotInUseException":
|
|
2119
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2120
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "AccessDeniedException":
|
|
2122
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "InvalidInputException":
|
|
2125
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2126
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ServiceException":
|
|
2128
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2129
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "TooManyRequestsException":
|
|
2131
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2132
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2133
|
-
default:
|
|
2134
|
-
const parsedBody = parsedOutput.body;
|
|
2135
|
-
return throwDefaultError({
|
|
2136
|
-
output,
|
|
2137
|
-
parsedBody,
|
|
2138
|
-
errorCode,
|
|
2139
|
-
});
|
|
2140
|
-
}
|
|
2141
|
-
};
|
|
2142
|
-
const de_ListAccountsForParentCommand = async (output, context) => {
|
|
2143
|
-
if (output.statusCode >= 300) {
|
|
2144
|
-
return de_ListAccountsForParentCommandError(output, context);
|
|
2145
|
-
}
|
|
2146
|
-
const data = await parseBody(output.body, context);
|
|
2147
|
-
let contents = {};
|
|
2148
|
-
contents = de_ListAccountsForParentResponse(data, context);
|
|
2149
|
-
const response = {
|
|
2150
|
-
$metadata: deserializeMetadata(output),
|
|
2151
|
-
...contents,
|
|
2152
|
-
};
|
|
2153
|
-
return response;
|
|
2154
|
-
};
|
|
2155
|
-
exports.de_ListAccountsForParentCommand = de_ListAccountsForParentCommand;
|
|
2156
|
-
const de_ListAccountsForParentCommandError = async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context),
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "AWSOrganizationsNotInUseException":
|
|
2164
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2165
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "AccessDeniedException":
|
|
2167
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2168
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "InvalidInputException":
|
|
2170
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2171
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ParentNotFoundException":
|
|
2173
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
2174
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "ServiceException":
|
|
2176
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2177
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "TooManyRequestsException":
|
|
2179
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2180
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2181
|
-
default:
|
|
2182
|
-
const parsedBody = parsedOutput.body;
|
|
2183
|
-
return throwDefaultError({
|
|
2184
|
-
output,
|
|
2185
|
-
parsedBody,
|
|
2186
|
-
errorCode,
|
|
2187
|
-
});
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
|
-
const de_ListAWSServiceAccessForOrganizationCommand = async (output, context) => {
|
|
2191
|
-
if (output.statusCode >= 300) {
|
|
2192
|
-
return de_ListAWSServiceAccessForOrganizationCommandError(output, context);
|
|
2193
|
-
}
|
|
2194
|
-
const data = await parseBody(output.body, context);
|
|
2195
|
-
let contents = {};
|
|
2196
|
-
contents = de_ListAWSServiceAccessForOrganizationResponse(data, context);
|
|
2197
|
-
const response = {
|
|
2198
|
-
$metadata: deserializeMetadata(output),
|
|
2199
|
-
...contents,
|
|
2200
|
-
};
|
|
2201
|
-
return response;
|
|
2202
|
-
};
|
|
2203
|
-
exports.de_ListAWSServiceAccessForOrganizationCommand = de_ListAWSServiceAccessForOrganizationCommand;
|
|
2204
|
-
const de_ListAWSServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
2205
|
-
const parsedOutput = {
|
|
2206
|
-
...output,
|
|
2207
|
-
body: await parseErrorBody(output.body, context),
|
|
2208
|
-
};
|
|
2209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2210
|
-
switch (errorCode) {
|
|
2211
|
-
case "AWSOrganizationsNotInUseException":
|
|
2212
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2213
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "AccessDeniedException":
|
|
2215
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ConstraintViolationException":
|
|
2218
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2219
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "InvalidInputException":
|
|
2221
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2222
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ServiceException":
|
|
2224
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2225
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "TooManyRequestsException":
|
|
2227
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2228
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "UnsupportedAPIEndpointException":
|
|
2230
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2231
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2232
|
-
default:
|
|
2233
|
-
const parsedBody = parsedOutput.body;
|
|
2234
|
-
return throwDefaultError({
|
|
2235
|
-
output,
|
|
2236
|
-
parsedBody,
|
|
2237
|
-
errorCode,
|
|
2238
|
-
});
|
|
2239
|
-
}
|
|
2240
|
-
};
|
|
2241
|
-
const de_ListChildrenCommand = async (output, context) => {
|
|
2242
|
-
if (output.statusCode >= 300) {
|
|
2243
|
-
return de_ListChildrenCommandError(output, context);
|
|
2244
|
-
}
|
|
2245
|
-
const data = await parseBody(output.body, context);
|
|
2246
|
-
let contents = {};
|
|
2247
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2248
|
-
const response = {
|
|
2249
|
-
$metadata: deserializeMetadata(output),
|
|
2250
|
-
...contents,
|
|
2251
|
-
};
|
|
2252
|
-
return response;
|
|
2253
|
-
};
|
|
2254
|
-
exports.de_ListChildrenCommand = de_ListChildrenCommand;
|
|
2255
|
-
const de_ListChildrenCommandError = async (output, context) => {
|
|
2256
|
-
const parsedOutput = {
|
|
2257
|
-
...output,
|
|
2258
|
-
body: await parseErrorBody(output.body, context),
|
|
2259
|
-
};
|
|
2260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2261
|
-
switch (errorCode) {
|
|
2262
|
-
case "AWSOrganizationsNotInUseException":
|
|
2263
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2264
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2265
|
-
case "AccessDeniedException":
|
|
2266
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2267
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2268
|
-
case "InvalidInputException":
|
|
2269
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2270
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2271
|
-
case "ParentNotFoundException":
|
|
2272
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
2273
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
2274
|
-
case "ServiceException":
|
|
2275
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2276
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "TooManyRequestsException":
|
|
2278
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2279
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2280
|
-
default:
|
|
2281
|
-
const parsedBody = parsedOutput.body;
|
|
2282
|
-
return throwDefaultError({
|
|
2283
|
-
output,
|
|
2284
|
-
parsedBody,
|
|
2285
|
-
errorCode,
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
|
-
};
|
|
2289
|
-
const de_ListCreateAccountStatusCommand = async (output, context) => {
|
|
2290
|
-
if (output.statusCode >= 300) {
|
|
2291
|
-
return de_ListCreateAccountStatusCommandError(output, context);
|
|
2292
|
-
}
|
|
2293
|
-
const data = await parseBody(output.body, context);
|
|
2294
|
-
let contents = {};
|
|
2295
|
-
contents = de_ListCreateAccountStatusResponse(data, context);
|
|
2296
|
-
const response = {
|
|
2297
|
-
$metadata: deserializeMetadata(output),
|
|
2298
|
-
...contents,
|
|
2299
|
-
};
|
|
2300
|
-
return response;
|
|
2301
|
-
};
|
|
2302
|
-
exports.de_ListCreateAccountStatusCommand = de_ListCreateAccountStatusCommand;
|
|
2303
|
-
const de_ListCreateAccountStatusCommandError = async (output, context) => {
|
|
2304
|
-
const parsedOutput = {
|
|
2305
|
-
...output,
|
|
2306
|
-
body: await parseErrorBody(output.body, context),
|
|
2307
|
-
};
|
|
2308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
|
-
switch (errorCode) {
|
|
2310
|
-
case "AWSOrganizationsNotInUseException":
|
|
2311
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2312
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "AccessDeniedException":
|
|
2314
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "InvalidInputException":
|
|
2317
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2318
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ServiceException":
|
|
2320
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2321
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "TooManyRequestsException":
|
|
2323
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2324
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "UnsupportedAPIEndpointException":
|
|
2326
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2327
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2328
|
-
default:
|
|
2329
|
-
const parsedBody = parsedOutput.body;
|
|
2330
|
-
return throwDefaultError({
|
|
2331
|
-
output,
|
|
2332
|
-
parsedBody,
|
|
2333
|
-
errorCode,
|
|
2334
|
-
});
|
|
2335
|
-
}
|
|
2336
|
-
};
|
|
2337
|
-
const de_ListDelegatedAdministratorsCommand = async (output, context) => {
|
|
2338
|
-
if (output.statusCode >= 300) {
|
|
2339
|
-
return de_ListDelegatedAdministratorsCommandError(output, context);
|
|
2340
|
-
}
|
|
2341
|
-
const data = await parseBody(output.body, context);
|
|
2342
|
-
let contents = {};
|
|
2343
|
-
contents = de_ListDelegatedAdministratorsResponse(data, context);
|
|
2344
|
-
const response = {
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
...contents,
|
|
2347
|
-
};
|
|
2348
|
-
return response;
|
|
2349
|
-
};
|
|
2350
|
-
exports.de_ListDelegatedAdministratorsCommand = de_ListDelegatedAdministratorsCommand;
|
|
2351
|
-
const de_ListDelegatedAdministratorsCommandError = async (output, context) => {
|
|
2352
|
-
const parsedOutput = {
|
|
2353
|
-
...output,
|
|
2354
|
-
body: await parseErrorBody(output.body, context),
|
|
2355
|
-
};
|
|
2356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
|
-
switch (errorCode) {
|
|
2358
|
-
case "AWSOrganizationsNotInUseException":
|
|
2359
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2360
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "AccessDeniedException":
|
|
2362
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "ConstraintViolationException":
|
|
2365
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2366
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "InvalidInputException":
|
|
2368
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2369
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "ServiceException":
|
|
2371
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2372
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "TooManyRequestsException":
|
|
2374
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2375
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "UnsupportedAPIEndpointException":
|
|
2377
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2378
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2379
|
-
default:
|
|
2380
|
-
const parsedBody = parsedOutput.body;
|
|
2381
|
-
return throwDefaultError({
|
|
2382
|
-
output,
|
|
2383
|
-
parsedBody,
|
|
2384
|
-
errorCode,
|
|
2385
|
-
});
|
|
2386
|
-
}
|
|
2387
|
-
};
|
|
2388
|
-
const de_ListDelegatedServicesForAccountCommand = async (output, context) => {
|
|
2389
|
-
if (output.statusCode >= 300) {
|
|
2390
|
-
return de_ListDelegatedServicesForAccountCommandError(output, context);
|
|
2391
|
-
}
|
|
2392
|
-
const data = await parseBody(output.body, context);
|
|
2393
|
-
let contents = {};
|
|
2394
|
-
contents = de_ListDelegatedServicesForAccountResponse(data, context);
|
|
2395
|
-
const response = {
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
...contents,
|
|
2398
|
-
};
|
|
2399
|
-
return response;
|
|
2400
|
-
};
|
|
2401
|
-
exports.de_ListDelegatedServicesForAccountCommand = de_ListDelegatedServicesForAccountCommand;
|
|
2402
|
-
const de_ListDelegatedServicesForAccountCommandError = async (output, context) => {
|
|
2403
|
-
const parsedOutput = {
|
|
2404
|
-
...output,
|
|
2405
|
-
body: await parseErrorBody(output.body, context),
|
|
2406
|
-
};
|
|
2407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
|
-
switch (errorCode) {
|
|
2409
|
-
case "AWSOrganizationsNotInUseException":
|
|
2410
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2411
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "AccessDeniedException":
|
|
2413
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "AccountNotFoundException":
|
|
2416
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2417
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "AccountNotRegisteredException":
|
|
2419
|
-
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
2420
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "ConstraintViolationException":
|
|
2422
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2423
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "InvalidInputException":
|
|
2425
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2426
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ServiceException":
|
|
2428
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2429
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "TooManyRequestsException":
|
|
2431
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2432
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "UnsupportedAPIEndpointException":
|
|
2434
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2435
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2436
|
-
default:
|
|
2437
|
-
const parsedBody = parsedOutput.body;
|
|
2438
|
-
return throwDefaultError({
|
|
2439
|
-
output,
|
|
2440
|
-
parsedBody,
|
|
2441
|
-
errorCode,
|
|
2442
|
-
});
|
|
2443
|
-
}
|
|
2444
|
-
};
|
|
2445
|
-
const de_ListHandshakesForAccountCommand = async (output, context) => {
|
|
2446
|
-
if (output.statusCode >= 300) {
|
|
2447
|
-
return de_ListHandshakesForAccountCommandError(output, context);
|
|
2448
|
-
}
|
|
2449
|
-
const data = await parseBody(output.body, context);
|
|
2450
|
-
let contents = {};
|
|
2451
|
-
contents = de_ListHandshakesForAccountResponse(data, context);
|
|
2452
|
-
const response = {
|
|
2453
|
-
$metadata: deserializeMetadata(output),
|
|
2454
|
-
...contents,
|
|
2455
|
-
};
|
|
2456
|
-
return response;
|
|
2457
|
-
};
|
|
2458
|
-
exports.de_ListHandshakesForAccountCommand = de_ListHandshakesForAccountCommand;
|
|
2459
|
-
const de_ListHandshakesForAccountCommandError = async (output, context) => {
|
|
2460
|
-
const parsedOutput = {
|
|
2461
|
-
...output,
|
|
2462
|
-
body: await parseErrorBody(output.body, context),
|
|
2463
|
-
};
|
|
2464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
|
-
switch (errorCode) {
|
|
2466
|
-
case "AccessDeniedException":
|
|
2467
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "ConcurrentModificationException":
|
|
2470
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2471
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "InvalidInputException":
|
|
2473
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2474
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "ServiceException":
|
|
2476
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2477
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "TooManyRequestsException":
|
|
2479
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2480
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2481
|
-
default:
|
|
2482
|
-
const parsedBody = parsedOutput.body;
|
|
2483
|
-
return throwDefaultError({
|
|
2484
|
-
output,
|
|
2485
|
-
parsedBody,
|
|
2486
|
-
errorCode,
|
|
2487
|
-
});
|
|
2488
|
-
}
|
|
2489
|
-
};
|
|
2490
|
-
const de_ListHandshakesForOrganizationCommand = async (output, context) => {
|
|
2491
|
-
if (output.statusCode >= 300) {
|
|
2492
|
-
return de_ListHandshakesForOrganizationCommandError(output, context);
|
|
2493
|
-
}
|
|
2494
|
-
const data = await parseBody(output.body, context);
|
|
2495
|
-
let contents = {};
|
|
2496
|
-
contents = de_ListHandshakesForOrganizationResponse(data, context);
|
|
2497
|
-
const response = {
|
|
2498
|
-
$metadata: deserializeMetadata(output),
|
|
2499
|
-
...contents,
|
|
2500
|
-
};
|
|
2501
|
-
return response;
|
|
2502
|
-
};
|
|
2503
|
-
exports.de_ListHandshakesForOrganizationCommand = de_ListHandshakesForOrganizationCommand;
|
|
2504
|
-
const de_ListHandshakesForOrganizationCommandError = async (output, context) => {
|
|
2505
|
-
const parsedOutput = {
|
|
2506
|
-
...output,
|
|
2507
|
-
body: await parseErrorBody(output.body, context),
|
|
2508
|
-
};
|
|
2509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
|
-
switch (errorCode) {
|
|
2511
|
-
case "AWSOrganizationsNotInUseException":
|
|
2512
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2513
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "AccessDeniedException":
|
|
2515
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ConcurrentModificationException":
|
|
2518
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2519
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "InvalidInputException":
|
|
2521
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2522
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "ServiceException":
|
|
2524
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2525
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "TooManyRequestsException":
|
|
2527
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2528
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2529
|
-
default:
|
|
2530
|
-
const parsedBody = parsedOutput.body;
|
|
2531
|
-
return throwDefaultError({
|
|
2532
|
-
output,
|
|
2533
|
-
parsedBody,
|
|
2534
|
-
errorCode,
|
|
2535
|
-
});
|
|
2536
|
-
}
|
|
2537
|
-
};
|
|
2538
|
-
const de_ListOrganizationalUnitsForParentCommand = async (output, context) => {
|
|
2539
|
-
if (output.statusCode >= 300) {
|
|
2540
|
-
return de_ListOrganizationalUnitsForParentCommandError(output, context);
|
|
2541
|
-
}
|
|
2542
|
-
const data = await parseBody(output.body, context);
|
|
2543
|
-
let contents = {};
|
|
2544
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2545
|
-
const response = {
|
|
2546
|
-
$metadata: deserializeMetadata(output),
|
|
2547
|
-
...contents,
|
|
2548
|
-
};
|
|
2549
|
-
return response;
|
|
2550
|
-
};
|
|
2551
|
-
exports.de_ListOrganizationalUnitsForParentCommand = de_ListOrganizationalUnitsForParentCommand;
|
|
2552
|
-
const de_ListOrganizationalUnitsForParentCommandError = async (output, context) => {
|
|
2553
|
-
const parsedOutput = {
|
|
2554
|
-
...output,
|
|
2555
|
-
body: await parseErrorBody(output.body, context),
|
|
2556
|
-
};
|
|
2557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
|
-
switch (errorCode) {
|
|
2559
|
-
case "AWSOrganizationsNotInUseException":
|
|
2560
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2561
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "AccessDeniedException":
|
|
2563
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2564
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "InvalidInputException":
|
|
2566
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2567
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ParentNotFoundException":
|
|
2569
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
2570
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "ServiceException":
|
|
2572
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2573
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "TooManyRequestsException":
|
|
2575
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2576
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2577
|
-
default:
|
|
2578
|
-
const parsedBody = parsedOutput.body;
|
|
2579
|
-
return throwDefaultError({
|
|
2580
|
-
output,
|
|
2581
|
-
parsedBody,
|
|
2582
|
-
errorCode,
|
|
2583
|
-
});
|
|
2584
|
-
}
|
|
2585
|
-
};
|
|
2586
|
-
const de_ListParentsCommand = async (output, context) => {
|
|
2587
|
-
if (output.statusCode >= 300) {
|
|
2588
|
-
return de_ListParentsCommandError(output, context);
|
|
2589
|
-
}
|
|
2590
|
-
const data = await parseBody(output.body, context);
|
|
2591
|
-
let contents = {};
|
|
2592
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2593
|
-
const response = {
|
|
2594
|
-
$metadata: deserializeMetadata(output),
|
|
2595
|
-
...contents,
|
|
2596
|
-
};
|
|
2597
|
-
return response;
|
|
2598
|
-
};
|
|
2599
|
-
exports.de_ListParentsCommand = de_ListParentsCommand;
|
|
2600
|
-
const de_ListParentsCommandError = async (output, context) => {
|
|
2601
|
-
const parsedOutput = {
|
|
2602
|
-
...output,
|
|
2603
|
-
body: await parseErrorBody(output.body, context),
|
|
2604
|
-
};
|
|
2605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
|
-
switch (errorCode) {
|
|
2607
|
-
case "AWSOrganizationsNotInUseException":
|
|
2608
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2609
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "AccessDeniedException":
|
|
2611
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2612
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ChildNotFoundException":
|
|
2614
|
-
case "com.amazonaws.organizations#ChildNotFoundException":
|
|
2615
|
-
throw await de_ChildNotFoundExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "InvalidInputException":
|
|
2617
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2618
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "ServiceException":
|
|
2620
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2621
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "TooManyRequestsException":
|
|
2623
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2624
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2625
|
-
default:
|
|
2626
|
-
const parsedBody = parsedOutput.body;
|
|
2627
|
-
return throwDefaultError({
|
|
2628
|
-
output,
|
|
2629
|
-
parsedBody,
|
|
2630
|
-
errorCode,
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
};
|
|
2634
|
-
const de_ListPoliciesCommand = async (output, context) => {
|
|
2635
|
-
if (output.statusCode >= 300) {
|
|
2636
|
-
return de_ListPoliciesCommandError(output, context);
|
|
2637
|
-
}
|
|
2638
|
-
const data = await parseBody(output.body, context);
|
|
2639
|
-
let contents = {};
|
|
2640
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2641
|
-
const response = {
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
...contents,
|
|
2644
|
-
};
|
|
2645
|
-
return response;
|
|
2646
|
-
};
|
|
2647
|
-
exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
|
|
2648
|
-
const de_ListPoliciesCommandError = async (output, context) => {
|
|
2649
|
-
const parsedOutput = {
|
|
2650
|
-
...output,
|
|
2651
|
-
body: await parseErrorBody(output.body, context),
|
|
2652
|
-
};
|
|
2653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
|
-
switch (errorCode) {
|
|
2655
|
-
case "AWSOrganizationsNotInUseException":
|
|
2656
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2657
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "AccessDeniedException":
|
|
2659
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2661
|
-
case "InvalidInputException":
|
|
2662
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2663
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "ServiceException":
|
|
2665
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2666
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "TooManyRequestsException":
|
|
2668
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2669
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "UnsupportedAPIEndpointException":
|
|
2671
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2672
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2673
|
-
default:
|
|
2674
|
-
const parsedBody = parsedOutput.body;
|
|
2675
|
-
return throwDefaultError({
|
|
2676
|
-
output,
|
|
2677
|
-
parsedBody,
|
|
2678
|
-
errorCode,
|
|
2679
|
-
});
|
|
2680
|
-
}
|
|
2681
|
-
};
|
|
2682
|
-
const de_ListPoliciesForTargetCommand = async (output, context) => {
|
|
2683
|
-
if (output.statusCode >= 300) {
|
|
2684
|
-
return de_ListPoliciesForTargetCommandError(output, context);
|
|
2685
|
-
}
|
|
2686
|
-
const data = await parseBody(output.body, context);
|
|
2687
|
-
let contents = {};
|
|
2688
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2689
|
-
const response = {
|
|
2690
|
-
$metadata: deserializeMetadata(output),
|
|
2691
|
-
...contents,
|
|
2692
|
-
};
|
|
2693
|
-
return response;
|
|
2694
|
-
};
|
|
2695
|
-
exports.de_ListPoliciesForTargetCommand = de_ListPoliciesForTargetCommand;
|
|
2696
|
-
const de_ListPoliciesForTargetCommandError = async (output, context) => {
|
|
2697
|
-
const parsedOutput = {
|
|
2698
|
-
...output,
|
|
2699
|
-
body: await parseErrorBody(output.body, context),
|
|
2700
|
-
};
|
|
2701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
-
switch (errorCode) {
|
|
2703
|
-
case "AWSOrganizationsNotInUseException":
|
|
2704
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2705
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "AccessDeniedException":
|
|
2707
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2708
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "InvalidInputException":
|
|
2710
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2711
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ServiceException":
|
|
2713
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2714
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "TargetNotFoundException":
|
|
2716
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
2717
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "TooManyRequestsException":
|
|
2719
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2720
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "UnsupportedAPIEndpointException":
|
|
2722
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2723
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2724
|
-
default:
|
|
2725
|
-
const parsedBody = parsedOutput.body;
|
|
2726
|
-
return throwDefaultError({
|
|
2727
|
-
output,
|
|
2728
|
-
parsedBody,
|
|
2729
|
-
errorCode,
|
|
2730
|
-
});
|
|
2731
|
-
}
|
|
2732
|
-
};
|
|
2733
|
-
const de_ListRootsCommand = async (output, context) => {
|
|
2734
|
-
if (output.statusCode >= 300) {
|
|
2735
|
-
return de_ListRootsCommandError(output, context);
|
|
2736
|
-
}
|
|
2737
|
-
const data = await parseBody(output.body, context);
|
|
2738
|
-
let contents = {};
|
|
2739
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2740
|
-
const response = {
|
|
2741
|
-
$metadata: deserializeMetadata(output),
|
|
2742
|
-
...contents,
|
|
2743
|
-
};
|
|
2744
|
-
return response;
|
|
2745
|
-
};
|
|
2746
|
-
exports.de_ListRootsCommand = de_ListRootsCommand;
|
|
2747
|
-
const de_ListRootsCommandError = async (output, context) => {
|
|
2748
|
-
const parsedOutput = {
|
|
2749
|
-
...output,
|
|
2750
|
-
body: await parseErrorBody(output.body, context),
|
|
2751
|
-
};
|
|
2752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2753
|
-
switch (errorCode) {
|
|
2754
|
-
case "AWSOrganizationsNotInUseException":
|
|
2755
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2756
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "AccessDeniedException":
|
|
2758
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "InvalidInputException":
|
|
2761
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2762
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ServiceException":
|
|
2764
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2765
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "TooManyRequestsException":
|
|
2767
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2768
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode,
|
|
2775
|
-
});
|
|
2776
|
-
}
|
|
2777
|
-
};
|
|
2778
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2779
|
-
if (output.statusCode >= 300) {
|
|
2780
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2781
|
-
}
|
|
2782
|
-
const data = await parseBody(output.body, context);
|
|
2783
|
-
let contents = {};
|
|
2784
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2785
|
-
const response = {
|
|
2786
|
-
$metadata: deserializeMetadata(output),
|
|
2787
|
-
...contents,
|
|
2788
|
-
};
|
|
2789
|
-
return response;
|
|
2790
|
-
};
|
|
2791
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2792
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2793
|
-
const parsedOutput = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseErrorBody(output.body, context),
|
|
2796
|
-
};
|
|
2797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2798
|
-
switch (errorCode) {
|
|
2799
|
-
case "AWSOrganizationsNotInUseException":
|
|
2800
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2801
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "AccessDeniedException":
|
|
2803
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2805
|
-
case "InvalidInputException":
|
|
2806
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2807
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "ServiceException":
|
|
2809
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2810
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "TargetNotFoundException":
|
|
2812
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
2813
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "TooManyRequestsException":
|
|
2815
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2816
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2817
|
-
default:
|
|
2818
|
-
const parsedBody = parsedOutput.body;
|
|
2819
|
-
return throwDefaultError({
|
|
2820
|
-
output,
|
|
2821
|
-
parsedBody,
|
|
2822
|
-
errorCode,
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
2825
|
-
};
|
|
2826
|
-
const de_ListTargetsForPolicyCommand = async (output, context) => {
|
|
2827
|
-
if (output.statusCode >= 300) {
|
|
2828
|
-
return de_ListTargetsForPolicyCommandError(output, context);
|
|
2829
|
-
}
|
|
2830
|
-
const data = await parseBody(output.body, context);
|
|
2831
|
-
let contents = {};
|
|
2832
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2833
|
-
const response = {
|
|
2834
|
-
$metadata: deserializeMetadata(output),
|
|
2835
|
-
...contents,
|
|
2836
|
-
};
|
|
2837
|
-
return response;
|
|
2838
|
-
};
|
|
2839
|
-
exports.de_ListTargetsForPolicyCommand = de_ListTargetsForPolicyCommand;
|
|
2840
|
-
const de_ListTargetsForPolicyCommandError = async (output, context) => {
|
|
2841
|
-
const parsedOutput = {
|
|
2842
|
-
...output,
|
|
2843
|
-
body: await parseErrorBody(output.body, context),
|
|
2844
|
-
};
|
|
2845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
|
-
switch (errorCode) {
|
|
2847
|
-
case "AWSOrganizationsNotInUseException":
|
|
2848
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2849
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "AccessDeniedException":
|
|
2851
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2852
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "InvalidInputException":
|
|
2854
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2855
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2856
|
-
case "PolicyNotFoundException":
|
|
2857
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
2858
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2859
|
-
case "ServiceException":
|
|
2860
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2861
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2862
|
-
case "TooManyRequestsException":
|
|
2863
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2864
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2865
|
-
case "UnsupportedAPIEndpointException":
|
|
2866
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2867
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2868
|
-
default:
|
|
2869
|
-
const parsedBody = parsedOutput.body;
|
|
2870
|
-
return throwDefaultError({
|
|
2871
|
-
output,
|
|
2872
|
-
parsedBody,
|
|
2873
|
-
errorCode,
|
|
2874
|
-
});
|
|
2875
|
-
}
|
|
2876
|
-
};
|
|
2877
|
-
const de_MoveAccountCommand = async (output, context) => {
|
|
2878
|
-
if (output.statusCode >= 300) {
|
|
2879
|
-
return de_MoveAccountCommandError(output, context);
|
|
2880
|
-
}
|
|
2881
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2882
|
-
const response = {
|
|
2883
|
-
$metadata: deserializeMetadata(output),
|
|
2884
|
-
};
|
|
2885
|
-
return response;
|
|
2886
|
-
};
|
|
2887
|
-
exports.de_MoveAccountCommand = de_MoveAccountCommand;
|
|
2888
|
-
const de_MoveAccountCommandError = async (output, context) => {
|
|
2889
|
-
const parsedOutput = {
|
|
2890
|
-
...output,
|
|
2891
|
-
body: await parseErrorBody(output.body, context),
|
|
2892
|
-
};
|
|
2893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2894
|
-
switch (errorCode) {
|
|
2895
|
-
case "AWSOrganizationsNotInUseException":
|
|
2896
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2897
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "AccessDeniedException":
|
|
2899
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2900
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "AccountNotFoundException":
|
|
2902
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2903
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "ConcurrentModificationException":
|
|
2905
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2906
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2907
|
-
case "DestinationParentNotFoundException":
|
|
2908
|
-
case "com.amazonaws.organizations#DestinationParentNotFoundException":
|
|
2909
|
-
throw await de_DestinationParentNotFoundExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "DuplicateAccountException":
|
|
2911
|
-
case "com.amazonaws.organizations#DuplicateAccountException":
|
|
2912
|
-
throw await de_DuplicateAccountExceptionRes(parsedOutput, context);
|
|
2913
|
-
case "InvalidInputException":
|
|
2914
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2915
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2916
|
-
case "ServiceException":
|
|
2917
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2918
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "SourceParentNotFoundException":
|
|
2920
|
-
case "com.amazonaws.organizations#SourceParentNotFoundException":
|
|
2921
|
-
throw await de_SourceParentNotFoundExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "TooManyRequestsException":
|
|
2923
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2924
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2925
|
-
default:
|
|
2926
|
-
const parsedBody = parsedOutput.body;
|
|
2927
|
-
return throwDefaultError({
|
|
2928
|
-
output,
|
|
2929
|
-
parsedBody,
|
|
2930
|
-
errorCode,
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
};
|
|
2934
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
2935
|
-
if (output.statusCode >= 300) {
|
|
2936
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
2937
|
-
}
|
|
2938
|
-
const data = await parseBody(output.body, context);
|
|
2939
|
-
let contents = {};
|
|
2940
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2941
|
-
const response = {
|
|
2942
|
-
$metadata: deserializeMetadata(output),
|
|
2943
|
-
...contents,
|
|
2944
|
-
};
|
|
2945
|
-
return response;
|
|
2946
|
-
};
|
|
2947
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
2948
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
2949
|
-
const parsedOutput = {
|
|
2950
|
-
...output,
|
|
2951
|
-
body: await parseErrorBody(output.body, context),
|
|
2952
|
-
};
|
|
2953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2954
|
-
switch (errorCode) {
|
|
2955
|
-
case "AWSOrganizationsNotInUseException":
|
|
2956
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2957
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "AccessDeniedException":
|
|
2959
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2961
|
-
case "ConcurrentModificationException":
|
|
2962
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2963
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2964
|
-
case "ConstraintViolationException":
|
|
2965
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2966
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "InvalidInputException":
|
|
2968
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2969
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "ServiceException":
|
|
2971
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2972
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "TooManyRequestsException":
|
|
2974
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2975
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "UnsupportedAPIEndpointException":
|
|
2977
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2978
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2979
|
-
default:
|
|
2980
|
-
const parsedBody = parsedOutput.body;
|
|
2981
|
-
return throwDefaultError({
|
|
2982
|
-
output,
|
|
2983
|
-
parsedBody,
|
|
2984
|
-
errorCode,
|
|
2985
|
-
});
|
|
2986
|
-
}
|
|
2987
|
-
};
|
|
2988
|
-
const de_RegisterDelegatedAdministratorCommand = async (output, context) => {
|
|
2989
|
-
if (output.statusCode >= 300) {
|
|
2990
|
-
return de_RegisterDelegatedAdministratorCommandError(output, context);
|
|
2991
|
-
}
|
|
2992
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2993
|
-
const response = {
|
|
2994
|
-
$metadata: deserializeMetadata(output),
|
|
2995
|
-
};
|
|
2996
|
-
return response;
|
|
2997
|
-
};
|
|
2998
|
-
exports.de_RegisterDelegatedAdministratorCommand = de_RegisterDelegatedAdministratorCommand;
|
|
2999
|
-
const de_RegisterDelegatedAdministratorCommandError = async (output, context) => {
|
|
3000
|
-
const parsedOutput = {
|
|
3001
|
-
...output,
|
|
3002
|
-
body: await parseErrorBody(output.body, context),
|
|
3003
|
-
};
|
|
3004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
-
switch (errorCode) {
|
|
3006
|
-
case "AWSOrganizationsNotInUseException":
|
|
3007
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3008
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "AccessDeniedException":
|
|
3010
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "AccountAlreadyRegisteredException":
|
|
3013
|
-
case "com.amazonaws.organizations#AccountAlreadyRegisteredException":
|
|
3014
|
-
throw await de_AccountAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "AccountNotFoundException":
|
|
3016
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3017
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "ConcurrentModificationException":
|
|
3019
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3020
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ConstraintViolationException":
|
|
3022
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3023
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "InvalidInputException":
|
|
3025
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3026
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ServiceException":
|
|
3028
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3029
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "TooManyRequestsException":
|
|
3031
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3032
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "UnsupportedAPIEndpointException":
|
|
3034
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3035
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3036
|
-
default:
|
|
3037
|
-
const parsedBody = parsedOutput.body;
|
|
3038
|
-
return throwDefaultError({
|
|
3039
|
-
output,
|
|
3040
|
-
parsedBody,
|
|
3041
|
-
errorCode,
|
|
3042
|
-
});
|
|
3043
|
-
}
|
|
3044
|
-
};
|
|
3045
|
-
const de_RemoveAccountFromOrganizationCommand = async (output, context) => {
|
|
3046
|
-
if (output.statusCode >= 300) {
|
|
3047
|
-
return de_RemoveAccountFromOrganizationCommandError(output, context);
|
|
3048
|
-
}
|
|
3049
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3050
|
-
const response = {
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3053
|
-
return response;
|
|
3054
|
-
};
|
|
3055
|
-
exports.de_RemoveAccountFromOrganizationCommand = de_RemoveAccountFromOrganizationCommand;
|
|
3056
|
-
const de_RemoveAccountFromOrganizationCommandError = async (output, context) => {
|
|
3057
|
-
const parsedOutput = {
|
|
3058
|
-
...output,
|
|
3059
|
-
body: await parseErrorBody(output.body, context),
|
|
3060
|
-
};
|
|
3061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3062
|
-
switch (errorCode) {
|
|
3063
|
-
case "AWSOrganizationsNotInUseException":
|
|
3064
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3065
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "AccessDeniedException":
|
|
3067
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "AccountNotFoundException":
|
|
3070
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3071
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "ConcurrentModificationException":
|
|
3073
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3074
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "ConstraintViolationException":
|
|
3076
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3077
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "InvalidInputException":
|
|
3079
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3080
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "MasterCannotLeaveOrganizationException":
|
|
3082
|
-
case "com.amazonaws.organizations#MasterCannotLeaveOrganizationException":
|
|
3083
|
-
throw await de_MasterCannotLeaveOrganizationExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ServiceException":
|
|
3085
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3086
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "TooManyRequestsException":
|
|
3088
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3089
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3090
|
-
default:
|
|
3091
|
-
const parsedBody = parsedOutput.body;
|
|
3092
|
-
return throwDefaultError({
|
|
3093
|
-
output,
|
|
3094
|
-
parsedBody,
|
|
3095
|
-
errorCode,
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
};
|
|
3099
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3100
|
-
if (output.statusCode >= 300) {
|
|
3101
|
-
return de_TagResourceCommandError(output, context);
|
|
3102
|
-
}
|
|
3103
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3104
|
-
const response = {
|
|
3105
|
-
$metadata: deserializeMetadata(output),
|
|
3106
|
-
};
|
|
3107
|
-
return response;
|
|
3108
|
-
};
|
|
3109
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3110
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3111
|
-
const parsedOutput = {
|
|
3112
|
-
...output,
|
|
3113
|
-
body: await parseErrorBody(output.body, context),
|
|
3114
|
-
};
|
|
3115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
|
-
switch (errorCode) {
|
|
3117
|
-
case "AWSOrganizationsNotInUseException":
|
|
3118
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3119
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "AccessDeniedException":
|
|
3121
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ConcurrentModificationException":
|
|
3124
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3125
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ConstraintViolationException":
|
|
3127
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3128
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "InvalidInputException":
|
|
3130
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3131
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "ServiceException":
|
|
3133
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3134
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "TargetNotFoundException":
|
|
3136
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
3137
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "TooManyRequestsException":
|
|
3139
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode,
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
};
|
|
3150
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3151
|
-
if (output.statusCode >= 300) {
|
|
3152
|
-
return de_UntagResourceCommandError(output, context);
|
|
3153
|
-
}
|
|
3154
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3155
|
-
const response = {
|
|
3156
|
-
$metadata: deserializeMetadata(output),
|
|
3157
|
-
};
|
|
3158
|
-
return response;
|
|
3159
|
-
};
|
|
3160
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3161
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3162
|
-
const parsedOutput = {
|
|
3163
|
-
...output,
|
|
3164
|
-
body: await parseErrorBody(output.body, context),
|
|
3165
|
-
};
|
|
3166
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3167
|
-
switch (errorCode) {
|
|
3168
|
-
case "AWSOrganizationsNotInUseException":
|
|
3169
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3170
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "AccessDeniedException":
|
|
3172
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3173
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "ConcurrentModificationException":
|
|
3175
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3176
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "ConstraintViolationException":
|
|
3178
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3179
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "InvalidInputException":
|
|
3181
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3182
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "ServiceException":
|
|
3184
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3185
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "TargetNotFoundException":
|
|
3187
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
3188
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "TooManyRequestsException":
|
|
3190
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3191
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3192
|
-
default:
|
|
3193
|
-
const parsedBody = parsedOutput.body;
|
|
3194
|
-
return throwDefaultError({
|
|
3195
|
-
output,
|
|
3196
|
-
parsedBody,
|
|
3197
|
-
errorCode,
|
|
3198
|
-
});
|
|
3199
|
-
}
|
|
3200
|
-
};
|
|
3201
|
-
const de_UpdateOrganizationalUnitCommand = async (output, context) => {
|
|
3202
|
-
if (output.statusCode >= 300) {
|
|
3203
|
-
return de_UpdateOrganizationalUnitCommandError(output, context);
|
|
3204
|
-
}
|
|
3205
|
-
const data = await parseBody(output.body, context);
|
|
3206
|
-
let contents = {};
|
|
3207
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3208
|
-
const response = {
|
|
3209
|
-
$metadata: deserializeMetadata(output),
|
|
3210
|
-
...contents,
|
|
3211
|
-
};
|
|
3212
|
-
return response;
|
|
3213
|
-
};
|
|
3214
|
-
exports.de_UpdateOrganizationalUnitCommand = de_UpdateOrganizationalUnitCommand;
|
|
3215
|
-
const de_UpdateOrganizationalUnitCommandError = async (output, context) => {
|
|
3216
|
-
const parsedOutput = {
|
|
3217
|
-
...output,
|
|
3218
|
-
body: await parseErrorBody(output.body, context),
|
|
3219
|
-
};
|
|
3220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3221
|
-
switch (errorCode) {
|
|
3222
|
-
case "AWSOrganizationsNotInUseException":
|
|
3223
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3224
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "AccessDeniedException":
|
|
3226
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3227
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "ConcurrentModificationException":
|
|
3229
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3230
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3231
|
-
case "DuplicateOrganizationalUnitException":
|
|
3232
|
-
case "com.amazonaws.organizations#DuplicateOrganizationalUnitException":
|
|
3233
|
-
throw await de_DuplicateOrganizationalUnitExceptionRes(parsedOutput, context);
|
|
3234
|
-
case "InvalidInputException":
|
|
3235
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3236
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3237
|
-
case "OrganizationalUnitNotFoundException":
|
|
3238
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
3239
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
3240
|
-
case "ServiceException":
|
|
3241
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3242
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3243
|
-
case "TooManyRequestsException":
|
|
3244
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3245
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3246
|
-
default:
|
|
3247
|
-
const parsedBody = parsedOutput.body;
|
|
3248
|
-
return throwDefaultError({
|
|
3249
|
-
output,
|
|
3250
|
-
parsedBody,
|
|
3251
|
-
errorCode,
|
|
3252
|
-
});
|
|
3253
|
-
}
|
|
3254
|
-
};
|
|
3255
|
-
const de_UpdatePolicyCommand = async (output, context) => {
|
|
3256
|
-
if (output.statusCode >= 300) {
|
|
3257
|
-
return de_UpdatePolicyCommandError(output, context);
|
|
3258
|
-
}
|
|
3259
|
-
const data = await parseBody(output.body, context);
|
|
3260
|
-
let contents = {};
|
|
3261
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3262
|
-
const response = {
|
|
3263
|
-
$metadata: deserializeMetadata(output),
|
|
3264
|
-
...contents,
|
|
3265
|
-
};
|
|
3266
|
-
return response;
|
|
3267
|
-
};
|
|
3268
|
-
exports.de_UpdatePolicyCommand = de_UpdatePolicyCommand;
|
|
3269
|
-
const de_UpdatePolicyCommandError = async (output, context) => {
|
|
3270
|
-
const parsedOutput = {
|
|
3271
|
-
...output,
|
|
3272
|
-
body: await parseErrorBody(output.body, context),
|
|
3273
|
-
};
|
|
3274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3275
|
-
switch (errorCode) {
|
|
3276
|
-
case "AWSOrganizationsNotInUseException":
|
|
3277
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3278
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "AccessDeniedException":
|
|
3280
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3281
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "ConcurrentModificationException":
|
|
3283
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3284
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "ConstraintViolationException":
|
|
3286
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3287
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "DuplicatePolicyException":
|
|
3289
|
-
case "com.amazonaws.organizations#DuplicatePolicyException":
|
|
3290
|
-
throw await de_DuplicatePolicyExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "InvalidInputException":
|
|
3292
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3293
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3294
|
-
case "MalformedPolicyDocumentException":
|
|
3295
|
-
case "com.amazonaws.organizations#MalformedPolicyDocumentException":
|
|
3296
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
3297
|
-
case "PolicyChangesInProgressException":
|
|
3298
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
3299
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
3300
|
-
case "PolicyNotFoundException":
|
|
3301
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
3302
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "ServiceException":
|
|
3304
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3305
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "TooManyRequestsException":
|
|
3307
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3308
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "UnsupportedAPIEndpointException":
|
|
3310
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3311
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3312
|
-
default:
|
|
3313
|
-
const parsedBody = parsedOutput.body;
|
|
3314
|
-
return throwDefaultError({
|
|
3315
|
-
output,
|
|
3316
|
-
parsedBody,
|
|
3317
|
-
errorCode,
|
|
3318
|
-
});
|
|
3319
|
-
}
|
|
3320
|
-
};
|
|
3321
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3322
|
-
const body = parsedOutput.body;
|
|
3323
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3324
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3326
|
-
...deserialized,
|
|
3327
|
-
});
|
|
3328
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3329
|
-
};
|
|
3330
|
-
const de_AccessDeniedForDependencyExceptionRes = async (parsedOutput, context) => {
|
|
3331
|
-
const body = parsedOutput.body;
|
|
3332
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3333
|
-
const exception = new models_0_1.AccessDeniedForDependencyException({
|
|
3334
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3335
|
-
...deserialized,
|
|
3336
|
-
});
|
|
3337
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3338
|
-
};
|
|
3339
|
-
const de_AccountAlreadyClosedExceptionRes = async (parsedOutput, context) => {
|
|
3340
|
-
const body = parsedOutput.body;
|
|
3341
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3342
|
-
const exception = new models_0_1.AccountAlreadyClosedException({
|
|
3343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3344
|
-
...deserialized,
|
|
3345
|
-
});
|
|
3346
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3347
|
-
};
|
|
3348
|
-
const de_AccountAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
3349
|
-
const body = parsedOutput.body;
|
|
3350
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3351
|
-
const exception = new models_0_1.AccountAlreadyRegisteredException({
|
|
3352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3353
|
-
...deserialized,
|
|
3354
|
-
});
|
|
3355
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3356
|
-
};
|
|
3357
|
-
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3358
|
-
const body = parsedOutput.body;
|
|
3359
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3360
|
-
const exception = new models_0_1.AccountNotFoundException({
|
|
3361
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3362
|
-
...deserialized,
|
|
3363
|
-
});
|
|
3364
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3365
|
-
};
|
|
3366
|
-
const de_AccountNotRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
3367
|
-
const body = parsedOutput.body;
|
|
3368
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3369
|
-
const exception = new models_0_1.AccountNotRegisteredException({
|
|
3370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3371
|
-
...deserialized,
|
|
3372
|
-
});
|
|
3373
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3374
|
-
};
|
|
3375
|
-
const de_AccountOwnerNotVerifiedExceptionRes = async (parsedOutput, context) => {
|
|
3376
|
-
const body = parsedOutput.body;
|
|
3377
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3378
|
-
const exception = new models_0_1.AccountOwnerNotVerifiedException({
|
|
3379
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3380
|
-
...deserialized,
|
|
3381
|
-
});
|
|
3382
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3383
|
-
};
|
|
3384
|
-
const de_AlreadyInOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3385
|
-
const body = parsedOutput.body;
|
|
3386
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3387
|
-
const exception = new models_0_1.AlreadyInOrganizationException({
|
|
3388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3389
|
-
...deserialized,
|
|
3390
|
-
});
|
|
3391
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3392
|
-
};
|
|
3393
|
-
const de_AWSOrganizationsNotInUseExceptionRes = async (parsedOutput, context) => {
|
|
3394
|
-
const body = parsedOutput.body;
|
|
3395
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3396
|
-
const exception = new models_0_1.AWSOrganizationsNotInUseException({
|
|
3397
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3398
|
-
...deserialized,
|
|
3399
|
-
});
|
|
3400
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3401
|
-
};
|
|
3402
|
-
const de_ChildNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3403
|
-
const body = parsedOutput.body;
|
|
3404
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3405
|
-
const exception = new models_0_1.ChildNotFoundException({
|
|
3406
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3407
|
-
...deserialized,
|
|
3408
|
-
});
|
|
3409
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3410
|
-
};
|
|
3411
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
3412
|
-
const body = parsedOutput.body;
|
|
3413
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3414
|
-
const exception = new models_0_1.ConcurrentModificationException({
|
|
3415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3416
|
-
...deserialized,
|
|
3417
|
-
});
|
|
3418
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3419
|
-
};
|
|
3420
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3421
|
-
const body = parsedOutput.body;
|
|
3422
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3423
|
-
const exception = new models_0_1.ConflictException({
|
|
3424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3425
|
-
...deserialized,
|
|
3426
|
-
});
|
|
3427
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3428
|
-
};
|
|
3429
|
-
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
3430
|
-
const body = parsedOutput.body;
|
|
3431
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3432
|
-
const exception = new models_0_1.ConstraintViolationException({
|
|
3433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3434
|
-
...deserialized,
|
|
3435
|
-
});
|
|
3436
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3437
|
-
};
|
|
3438
|
-
const de_CreateAccountStatusNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3439
|
-
const body = parsedOutput.body;
|
|
3440
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3441
|
-
const exception = new models_0_1.CreateAccountStatusNotFoundException({
|
|
3442
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3443
|
-
...deserialized,
|
|
3444
|
-
});
|
|
3445
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3446
|
-
};
|
|
3447
|
-
const de_DestinationParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3448
|
-
const body = parsedOutput.body;
|
|
3449
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3450
|
-
const exception = new models_0_1.DestinationParentNotFoundException({
|
|
3451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3452
|
-
...deserialized,
|
|
3453
|
-
});
|
|
3454
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3455
|
-
};
|
|
3456
|
-
const de_DuplicateAccountExceptionRes = async (parsedOutput, context) => {
|
|
3457
|
-
const body = parsedOutput.body;
|
|
3458
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3459
|
-
const exception = new models_0_1.DuplicateAccountException({
|
|
3460
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3461
|
-
...deserialized,
|
|
3462
|
-
});
|
|
3463
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3464
|
-
};
|
|
3465
|
-
const de_DuplicateHandshakeExceptionRes = async (parsedOutput, context) => {
|
|
3466
|
-
const body = parsedOutput.body;
|
|
3467
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3468
|
-
const exception = new models_0_1.DuplicateHandshakeException({
|
|
3469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3470
|
-
...deserialized,
|
|
3471
|
-
});
|
|
3472
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3473
|
-
};
|
|
3474
|
-
const de_DuplicateOrganizationalUnitExceptionRes = async (parsedOutput, context) => {
|
|
3475
|
-
const body = parsedOutput.body;
|
|
3476
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3477
|
-
const exception = new models_0_1.DuplicateOrganizationalUnitException({
|
|
3478
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3479
|
-
...deserialized,
|
|
3480
|
-
});
|
|
3481
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3482
|
-
};
|
|
3483
|
-
const de_DuplicatePolicyAttachmentExceptionRes = async (parsedOutput, context) => {
|
|
3484
|
-
const body = parsedOutput.body;
|
|
3485
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3486
|
-
const exception = new models_0_1.DuplicatePolicyAttachmentException({
|
|
3487
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3488
|
-
...deserialized,
|
|
3489
|
-
});
|
|
3490
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3491
|
-
};
|
|
3492
|
-
const de_DuplicatePolicyExceptionRes = async (parsedOutput, context) => {
|
|
3493
|
-
const body = parsedOutput.body;
|
|
3494
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3495
|
-
const exception = new models_0_1.DuplicatePolicyException({
|
|
3496
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3497
|
-
...deserialized,
|
|
3498
|
-
});
|
|
3499
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3500
|
-
};
|
|
3501
|
-
const de_EffectivePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3502
|
-
const body = parsedOutput.body;
|
|
3503
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3504
|
-
const exception = new models_0_1.EffectivePolicyNotFoundException({
|
|
3505
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3506
|
-
...deserialized,
|
|
3507
|
-
});
|
|
3508
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3509
|
-
};
|
|
3510
|
-
const de_FinalizingOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3511
|
-
const body = parsedOutput.body;
|
|
3512
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3513
|
-
const exception = new models_0_1.FinalizingOrganizationException({
|
|
3514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3515
|
-
...deserialized,
|
|
3516
|
-
});
|
|
3517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3518
|
-
};
|
|
3519
|
-
const de_HandshakeAlreadyInStateExceptionRes = async (parsedOutput, context) => {
|
|
3520
|
-
const body = parsedOutput.body;
|
|
3521
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3522
|
-
const exception = new models_0_1.HandshakeAlreadyInStateException({
|
|
3523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3524
|
-
...deserialized,
|
|
3525
|
-
});
|
|
3526
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3527
|
-
};
|
|
3528
|
-
const de_HandshakeConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
3529
|
-
const body = parsedOutput.body;
|
|
3530
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3531
|
-
const exception = new models_0_1.HandshakeConstraintViolationException({
|
|
3532
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3533
|
-
...deserialized,
|
|
3534
|
-
});
|
|
3535
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3536
|
-
};
|
|
3537
|
-
const de_HandshakeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3538
|
-
const body = parsedOutput.body;
|
|
3539
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3540
|
-
const exception = new models_0_1.HandshakeNotFoundException({
|
|
3541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3542
|
-
...deserialized,
|
|
3543
|
-
});
|
|
3544
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3545
|
-
};
|
|
3546
|
-
const de_InvalidHandshakeTransitionExceptionRes = async (parsedOutput, context) => {
|
|
3547
|
-
const body = parsedOutput.body;
|
|
3548
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3549
|
-
const exception = new models_0_1.InvalidHandshakeTransitionException({
|
|
3550
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3551
|
-
...deserialized,
|
|
3552
|
-
});
|
|
3553
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3554
|
-
};
|
|
3555
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
3556
|
-
const body = parsedOutput.body;
|
|
3557
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3558
|
-
const exception = new models_0_1.InvalidInputException({
|
|
3559
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3560
|
-
...deserialized,
|
|
3561
|
-
});
|
|
3562
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3563
|
-
};
|
|
3564
|
-
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3565
|
-
const body = parsedOutput.body;
|
|
3566
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3567
|
-
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
3568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3569
|
-
...deserialized,
|
|
3570
|
-
});
|
|
3571
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3572
|
-
};
|
|
3573
|
-
const de_MasterCannotLeaveOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3574
|
-
const body = parsedOutput.body;
|
|
3575
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3576
|
-
const exception = new models_0_1.MasterCannotLeaveOrganizationException({
|
|
3577
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3578
|
-
...deserialized,
|
|
3579
|
-
});
|
|
3580
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3581
|
-
};
|
|
3582
|
-
const de_OrganizationalUnitNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
3583
|
-
const body = parsedOutput.body;
|
|
3584
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3585
|
-
const exception = new models_0_1.OrganizationalUnitNotEmptyException({
|
|
3586
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3587
|
-
...deserialized,
|
|
3588
|
-
});
|
|
3589
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3590
|
-
};
|
|
3591
|
-
const de_OrganizationalUnitNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3592
|
-
const body = parsedOutput.body;
|
|
3593
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3594
|
-
const exception = new models_0_1.OrganizationalUnitNotFoundException({
|
|
3595
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3596
|
-
...deserialized,
|
|
3597
|
-
});
|
|
3598
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3599
|
-
};
|
|
3600
|
-
const de_OrganizationNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
3601
|
-
const body = parsedOutput.body;
|
|
3602
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3603
|
-
const exception = new models_0_1.OrganizationNotEmptyException({
|
|
3604
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3605
|
-
...deserialized,
|
|
3606
|
-
});
|
|
3607
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3608
|
-
};
|
|
3609
|
-
const de_ParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3610
|
-
const body = parsedOutput.body;
|
|
3611
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3612
|
-
const exception = new models_0_1.ParentNotFoundException({
|
|
3613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3614
|
-
...deserialized,
|
|
3615
|
-
});
|
|
3616
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3617
|
-
};
|
|
3618
|
-
const de_PolicyChangesInProgressExceptionRes = async (parsedOutput, context) => {
|
|
3619
|
-
const body = parsedOutput.body;
|
|
3620
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3621
|
-
const exception = new models_0_1.PolicyChangesInProgressException({
|
|
3622
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3623
|
-
...deserialized,
|
|
3624
|
-
});
|
|
3625
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3626
|
-
};
|
|
3627
|
-
const de_PolicyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3628
|
-
const body = parsedOutput.body;
|
|
3629
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3630
|
-
const exception = new models_0_1.PolicyInUseException({
|
|
3631
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3632
|
-
...deserialized,
|
|
3633
|
-
});
|
|
3634
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3635
|
-
};
|
|
3636
|
-
const de_PolicyNotAttachedExceptionRes = async (parsedOutput, context) => {
|
|
3637
|
-
const body = parsedOutput.body;
|
|
3638
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3639
|
-
const exception = new models_0_1.PolicyNotAttachedException({
|
|
3640
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3641
|
-
...deserialized,
|
|
3642
|
-
});
|
|
3643
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3644
|
-
};
|
|
3645
|
-
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3646
|
-
const body = parsedOutput.body;
|
|
3647
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3648
|
-
const exception = new models_0_1.PolicyNotFoundException({
|
|
3649
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3650
|
-
...deserialized,
|
|
3651
|
-
});
|
|
3652
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3653
|
-
};
|
|
3654
|
-
const de_PolicyTypeAlreadyEnabledExceptionRes = async (parsedOutput, context) => {
|
|
3655
|
-
const body = parsedOutput.body;
|
|
3656
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3657
|
-
const exception = new models_0_1.PolicyTypeAlreadyEnabledException({
|
|
3658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3659
|
-
...deserialized,
|
|
3660
|
-
});
|
|
3661
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3662
|
-
};
|
|
3663
|
-
const de_PolicyTypeNotAvailableForOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
3664
|
-
const body = parsedOutput.body;
|
|
3665
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3666
|
-
const exception = new models_0_1.PolicyTypeNotAvailableForOrganizationException({
|
|
3667
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3668
|
-
...deserialized,
|
|
3669
|
-
});
|
|
3670
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3671
|
-
};
|
|
3672
|
-
const de_PolicyTypeNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
3673
|
-
const body = parsedOutput.body;
|
|
3674
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3675
|
-
const exception = new models_0_1.PolicyTypeNotEnabledException({
|
|
3676
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3677
|
-
...deserialized,
|
|
3678
|
-
});
|
|
3679
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3680
|
-
};
|
|
3681
|
-
const de_ResourcePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3682
|
-
const body = parsedOutput.body;
|
|
3683
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3684
|
-
const exception = new models_0_1.ResourcePolicyNotFoundException({
|
|
3685
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3686
|
-
...deserialized,
|
|
3687
|
-
});
|
|
3688
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3689
|
-
};
|
|
3690
|
-
const de_RootNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3691
|
-
const body = parsedOutput.body;
|
|
3692
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3693
|
-
const exception = new models_0_1.RootNotFoundException({
|
|
3694
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3695
|
-
...deserialized,
|
|
3696
|
-
});
|
|
3697
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3698
|
-
};
|
|
3699
|
-
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
3700
|
-
const body = parsedOutput.body;
|
|
3701
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3702
|
-
const exception = new models_0_1.ServiceException({
|
|
3703
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3704
|
-
...deserialized,
|
|
3705
|
-
});
|
|
3706
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3707
|
-
};
|
|
3708
|
-
const de_SourceParentNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3709
|
-
const body = parsedOutput.body;
|
|
3710
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3711
|
-
const exception = new models_0_1.SourceParentNotFoundException({
|
|
3712
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3713
|
-
...deserialized,
|
|
3714
|
-
});
|
|
3715
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3716
|
-
};
|
|
3717
|
-
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3718
|
-
const body = parsedOutput.body;
|
|
3719
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3720
|
-
const exception = new models_0_1.TargetNotFoundException({
|
|
3721
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3722
|
-
...deserialized,
|
|
3723
|
-
});
|
|
3724
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3725
|
-
};
|
|
3726
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
3727
|
-
const body = parsedOutput.body;
|
|
3728
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3729
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
3730
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3731
|
-
...deserialized,
|
|
3732
|
-
});
|
|
3733
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3734
|
-
};
|
|
3735
|
-
const de_UnsupportedAPIEndpointExceptionRes = async (parsedOutput, context) => {
|
|
3736
|
-
const body = parsedOutput.body;
|
|
3737
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3738
|
-
const exception = new models_0_1.UnsupportedAPIEndpointException({
|
|
3739
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3740
|
-
...deserialized,
|
|
3741
|
-
});
|
|
3742
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3743
|
-
};
|
|
3744
|
-
const de_AcceptHandshakeResponse = (output, context) => {
|
|
3745
|
-
return (0, smithy_client_1.take)(output, {
|
|
3746
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3747
|
-
});
|
|
3748
|
-
};
|
|
3749
|
-
const de_Account = (output, context) => {
|
|
3750
|
-
return (0, smithy_client_1.take)(output, {
|
|
3751
|
-
Arn: smithy_client_1.expectString,
|
|
3752
|
-
Email: smithy_client_1.expectString,
|
|
3753
|
-
Id: smithy_client_1.expectString,
|
|
3754
|
-
JoinedMethod: smithy_client_1.expectString,
|
|
3755
|
-
JoinedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3756
|
-
Name: smithy_client_1.expectString,
|
|
3757
|
-
Status: smithy_client_1.expectString,
|
|
3758
|
-
});
|
|
3759
|
-
};
|
|
3760
|
-
const de_Accounts = (output, context) => {
|
|
3761
|
-
const retVal = (output || [])
|
|
3762
|
-
.filter((e) => e != null)
|
|
3763
|
-
.map((entry) => {
|
|
3764
|
-
return de_Account(entry, context);
|
|
3765
|
-
});
|
|
3766
|
-
return retVal;
|
|
3767
|
-
};
|
|
3768
|
-
const de_CancelHandshakeResponse = (output, context) => {
|
|
3769
|
-
return (0, smithy_client_1.take)(output, {
|
|
3770
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3771
|
-
});
|
|
3772
|
-
};
|
|
3773
|
-
const de_CreateAccountResponse = (output, context) => {
|
|
3774
|
-
return (0, smithy_client_1.take)(output, {
|
|
3775
|
-
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3776
|
-
});
|
|
3777
|
-
};
|
|
3778
|
-
const de_CreateAccountStatus = (output, context) => {
|
|
3779
|
-
return (0, smithy_client_1.take)(output, {
|
|
3780
|
-
AccountId: smithy_client_1.expectString,
|
|
3781
|
-
AccountName: smithy_client_1.expectString,
|
|
3782
|
-
CompletedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3783
|
-
FailureReason: smithy_client_1.expectString,
|
|
3784
|
-
GovCloudAccountId: smithy_client_1.expectString,
|
|
3785
|
-
Id: smithy_client_1.expectString,
|
|
3786
|
-
RequestedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3787
|
-
State: smithy_client_1.expectString,
|
|
3788
|
-
});
|
|
3789
|
-
};
|
|
3790
|
-
const de_CreateAccountStatuses = (output, context) => {
|
|
3791
|
-
const retVal = (output || [])
|
|
3792
|
-
.filter((e) => e != null)
|
|
3793
|
-
.map((entry) => {
|
|
3794
|
-
return de_CreateAccountStatus(entry, context);
|
|
3795
|
-
});
|
|
3796
|
-
return retVal;
|
|
3797
|
-
};
|
|
3798
|
-
const de_CreateGovCloudAccountResponse = (output, context) => {
|
|
3799
|
-
return (0, smithy_client_1.take)(output, {
|
|
3800
|
-
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3801
|
-
});
|
|
3802
|
-
};
|
|
3803
|
-
const de_DeclineHandshakeResponse = (output, context) => {
|
|
3804
|
-
return (0, smithy_client_1.take)(output, {
|
|
3805
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3806
|
-
});
|
|
3807
|
-
};
|
|
3808
|
-
const de_DelegatedAdministrator = (output, context) => {
|
|
3809
|
-
return (0, smithy_client_1.take)(output, {
|
|
3810
|
-
Arn: smithy_client_1.expectString,
|
|
3811
|
-
DelegationEnabledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3812
|
-
Email: smithy_client_1.expectString,
|
|
3813
|
-
Id: smithy_client_1.expectString,
|
|
3814
|
-
JoinedMethod: smithy_client_1.expectString,
|
|
3815
|
-
JoinedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3816
|
-
Name: smithy_client_1.expectString,
|
|
3817
|
-
Status: smithy_client_1.expectString,
|
|
3818
|
-
});
|
|
3819
|
-
};
|
|
3820
|
-
const de_DelegatedAdministrators = (output, context) => {
|
|
3821
|
-
const retVal = (output || [])
|
|
3822
|
-
.filter((e) => e != null)
|
|
3823
|
-
.map((entry) => {
|
|
3824
|
-
return de_DelegatedAdministrator(entry, context);
|
|
3825
|
-
});
|
|
3826
|
-
return retVal;
|
|
3827
|
-
};
|
|
3828
|
-
const de_DelegatedService = (output, context) => {
|
|
3829
|
-
return (0, smithy_client_1.take)(output, {
|
|
3830
|
-
DelegationEnabledDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3831
|
-
ServicePrincipal: smithy_client_1.expectString,
|
|
3832
|
-
});
|
|
3833
|
-
};
|
|
3834
|
-
const de_DelegatedServices = (output, context) => {
|
|
3835
|
-
const retVal = (output || [])
|
|
3836
|
-
.filter((e) => e != null)
|
|
3837
|
-
.map((entry) => {
|
|
3838
|
-
return de_DelegatedService(entry, context);
|
|
3839
|
-
});
|
|
3840
|
-
return retVal;
|
|
3841
|
-
};
|
|
3842
|
-
const de_DescribeAccountResponse = (output, context) => {
|
|
3843
|
-
return (0, smithy_client_1.take)(output, {
|
|
3844
|
-
Account: (_) => de_Account(_, context),
|
|
3845
|
-
});
|
|
3846
|
-
};
|
|
3847
|
-
const de_DescribeCreateAccountStatusResponse = (output, context) => {
|
|
3848
|
-
return (0, smithy_client_1.take)(output, {
|
|
3849
|
-
CreateAccountStatus: (_) => de_CreateAccountStatus(_, context),
|
|
3850
|
-
});
|
|
3851
|
-
};
|
|
3852
|
-
const de_DescribeEffectivePolicyResponse = (output, context) => {
|
|
3853
|
-
return (0, smithy_client_1.take)(output, {
|
|
3854
|
-
EffectivePolicy: (_) => de_EffectivePolicy(_, context),
|
|
3855
|
-
});
|
|
3856
|
-
};
|
|
3857
|
-
const de_DescribeHandshakeResponse = (output, context) => {
|
|
3858
|
-
return (0, smithy_client_1.take)(output, {
|
|
3859
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3860
|
-
});
|
|
3861
|
-
};
|
|
3862
|
-
const de_EffectivePolicy = (output, context) => {
|
|
3863
|
-
return (0, smithy_client_1.take)(output, {
|
|
3864
|
-
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3865
|
-
PolicyContent: smithy_client_1.expectString,
|
|
3866
|
-
PolicyType: smithy_client_1.expectString,
|
|
3867
|
-
TargetId: smithy_client_1.expectString,
|
|
3868
|
-
});
|
|
3869
|
-
};
|
|
3870
|
-
const de_EnableAllFeaturesResponse = (output, context) => {
|
|
3871
|
-
return (0, smithy_client_1.take)(output, {
|
|
3872
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3873
|
-
});
|
|
3874
|
-
};
|
|
3875
|
-
const de_EnabledServicePrincipal = (output, context) => {
|
|
3876
|
-
return (0, smithy_client_1.take)(output, {
|
|
3877
|
-
DateEnabled: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3878
|
-
ServicePrincipal: smithy_client_1.expectString,
|
|
3879
|
-
});
|
|
3880
|
-
};
|
|
3881
|
-
const de_EnabledServicePrincipals = (output, context) => {
|
|
3882
|
-
const retVal = (output || [])
|
|
3883
|
-
.filter((e) => e != null)
|
|
3884
|
-
.map((entry) => {
|
|
3885
|
-
return de_EnabledServicePrincipal(entry, context);
|
|
3886
|
-
});
|
|
3887
|
-
return retVal;
|
|
3888
|
-
};
|
|
3889
|
-
const de_Handshake = (output, context) => {
|
|
3890
|
-
return (0, smithy_client_1.take)(output, {
|
|
3891
|
-
Action: smithy_client_1.expectString,
|
|
3892
|
-
Arn: smithy_client_1.expectString,
|
|
3893
|
-
ExpirationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3894
|
-
Id: smithy_client_1.expectString,
|
|
3895
|
-
Parties: smithy_client_1._json,
|
|
3896
|
-
RequestedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3897
|
-
Resources: (_) => de_HandshakeResources(_, context),
|
|
3898
|
-
State: smithy_client_1.expectString,
|
|
3899
|
-
});
|
|
3900
|
-
};
|
|
3901
|
-
const de_HandshakeResource = (output, context) => {
|
|
3902
|
-
return (0, smithy_client_1.take)(output, {
|
|
3903
|
-
Resources: (_) => de_HandshakeResources(_, context),
|
|
3904
|
-
Type: smithy_client_1.expectString,
|
|
3905
|
-
Value: smithy_client_1.expectString,
|
|
3906
|
-
});
|
|
3907
|
-
};
|
|
3908
|
-
const de_HandshakeResources = (output, context) => {
|
|
3909
|
-
const retVal = (output || [])
|
|
3910
|
-
.filter((e) => e != null)
|
|
3911
|
-
.map((entry) => {
|
|
3912
|
-
return de_HandshakeResource(entry, context);
|
|
3913
|
-
});
|
|
3914
|
-
return retVal;
|
|
3915
|
-
};
|
|
3916
|
-
const de_Handshakes = (output, context) => {
|
|
3917
|
-
const retVal = (output || [])
|
|
3918
|
-
.filter((e) => e != null)
|
|
3919
|
-
.map((entry) => {
|
|
3920
|
-
return de_Handshake(entry, context);
|
|
3921
|
-
});
|
|
3922
|
-
return retVal;
|
|
3923
|
-
};
|
|
3924
|
-
const de_InviteAccountToOrganizationResponse = (output, context) => {
|
|
3925
|
-
return (0, smithy_client_1.take)(output, {
|
|
3926
|
-
Handshake: (_) => de_Handshake(_, context),
|
|
3927
|
-
});
|
|
3928
|
-
};
|
|
3929
|
-
const de_ListAccountsForParentResponse = (output, context) => {
|
|
3930
|
-
return (0, smithy_client_1.take)(output, {
|
|
3931
|
-
Accounts: (_) => de_Accounts(_, context),
|
|
3932
|
-
NextToken: smithy_client_1.expectString,
|
|
3933
|
-
});
|
|
3934
|
-
};
|
|
3935
|
-
const de_ListAccountsResponse = (output, context) => {
|
|
3936
|
-
return (0, smithy_client_1.take)(output, {
|
|
3937
|
-
Accounts: (_) => de_Accounts(_, context),
|
|
3938
|
-
NextToken: smithy_client_1.expectString,
|
|
3939
|
-
});
|
|
3940
|
-
};
|
|
3941
|
-
const de_ListAWSServiceAccessForOrganizationResponse = (output, context) => {
|
|
3942
|
-
return (0, smithy_client_1.take)(output, {
|
|
3943
|
-
EnabledServicePrincipals: (_) => de_EnabledServicePrincipals(_, context),
|
|
3944
|
-
NextToken: smithy_client_1.expectString,
|
|
3945
|
-
});
|
|
3946
|
-
};
|
|
3947
|
-
const de_ListCreateAccountStatusResponse = (output, context) => {
|
|
3948
|
-
return (0, smithy_client_1.take)(output, {
|
|
3949
|
-
CreateAccountStatuses: (_) => de_CreateAccountStatuses(_, context),
|
|
3950
|
-
NextToken: smithy_client_1.expectString,
|
|
3951
|
-
});
|
|
3952
|
-
};
|
|
3953
|
-
const de_ListDelegatedAdministratorsResponse = (output, context) => {
|
|
3954
|
-
return (0, smithy_client_1.take)(output, {
|
|
3955
|
-
DelegatedAdministrators: (_) => de_DelegatedAdministrators(_, context),
|
|
3956
|
-
NextToken: smithy_client_1.expectString,
|
|
3957
|
-
});
|
|
3958
|
-
};
|
|
3959
|
-
const de_ListDelegatedServicesForAccountResponse = (output, context) => {
|
|
3960
|
-
return (0, smithy_client_1.take)(output, {
|
|
3961
|
-
DelegatedServices: (_) => de_DelegatedServices(_, context),
|
|
3962
|
-
NextToken: smithy_client_1.expectString,
|
|
3963
|
-
});
|
|
3964
|
-
};
|
|
3965
|
-
const de_ListHandshakesForAccountResponse = (output, context) => {
|
|
3966
|
-
return (0, smithy_client_1.take)(output, {
|
|
3967
|
-
Handshakes: (_) => de_Handshakes(_, context),
|
|
3968
|
-
NextToken: smithy_client_1.expectString,
|
|
3969
|
-
});
|
|
3970
|
-
};
|
|
3971
|
-
const de_ListHandshakesForOrganizationResponse = (output, context) => {
|
|
3972
|
-
return (0, smithy_client_1.take)(output, {
|
|
3973
|
-
Handshakes: (_) => de_Handshakes(_, context),
|
|
3974
|
-
NextToken: smithy_client_1.expectString,
|
|
3975
|
-
});
|
|
3976
|
-
};
|
|
3977
|
-
const deserializeMetadata = (output) => ({
|
|
3978
|
-
httpStatusCode: output.statusCode,
|
|
3979
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3980
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3981
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3982
|
-
});
|
|
3983
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3984
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(OrganizationsServiceException_1.OrganizationsServiceException);
|
|
3985
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3986
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3987
|
-
const contents = {
|
|
3988
|
-
protocol,
|
|
3989
|
-
hostname,
|
|
3990
|
-
port,
|
|
3991
|
-
method: "POST",
|
|
3992
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3993
|
-
headers,
|
|
3994
|
-
};
|
|
3995
|
-
if (resolvedHostname !== undefined) {
|
|
3996
|
-
contents.hostname = resolvedHostname;
|
|
3997
|
-
}
|
|
3998
|
-
if (body !== undefined) {
|
|
3999
|
-
contents.body = body;
|
|
4000
|
-
}
|
|
4001
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4002
|
-
};
|
|
4003
|
-
function sharedHeaders(operation) {
|
|
4004
|
-
return {
|
|
4005
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4006
|
-
"x-amz-target": `AWSOrganizationsV20161128.${operation}`,
|
|
4007
|
-
};
|
|
4008
|
-
}
|
|
4009
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4010
|
-
if (encoded.length) {
|
|
4011
|
-
return JSON.parse(encoded);
|
|
4012
|
-
}
|
|
4013
|
-
return {};
|
|
4014
|
-
});
|
|
4015
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4016
|
-
const value = await parseBody(errorBody, context);
|
|
4017
|
-
value.message = value.message ?? value.Message;
|
|
4018
|
-
return value;
|
|
4019
|
-
};
|
|
4020
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4021
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4022
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4023
|
-
let cleanValue = rawValue;
|
|
4024
|
-
if (typeof cleanValue === "number") {
|
|
4025
|
-
cleanValue = cleanValue.toString();
|
|
4026
|
-
}
|
|
4027
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4028
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4029
|
-
}
|
|
4030
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4031
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4032
|
-
}
|
|
4033
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4034
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4035
|
-
}
|
|
4036
|
-
return cleanValue;
|
|
4037
|
-
};
|
|
4038
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4039
|
-
if (headerKey !== undefined) {
|
|
4040
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4041
|
-
}
|
|
4042
|
-
if (data.code !== undefined) {
|
|
4043
|
-
return sanitizeErrorCode(data.code);
|
|
4044
|
-
}
|
|
4045
|
-
if (data["__type"] !== undefined) {
|
|
4046
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4047
|
-
}
|
|
4048
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|