@aws-sdk/client-directory-service 3.489.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/DirectoryService.js +1 -145
- package/dist-cjs/DirectoryServiceClient.js +1 -43
- package/dist-cjs/commands/AcceptSharedDirectoryCommand.js +1 -29
- package/dist-cjs/commands/AddIpRoutesCommand.js +1 -28
- package/dist-cjs/commands/AddRegionCommand.js +1 -28
- package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -28
- package/dist-cjs/commands/CancelSchemaExtensionCommand.js +1 -28
- package/dist-cjs/commands/ConnectDirectoryCommand.js +1 -29
- package/dist-cjs/commands/CreateAliasCommand.js +1 -28
- package/dist-cjs/commands/CreateComputerCommand.js +1 -29
- package/dist-cjs/commands/CreateConditionalForwarderCommand.js +1 -28
- package/dist-cjs/commands/CreateDirectoryCommand.js +1 -29
- package/dist-cjs/commands/CreateLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/CreateMicrosoftADCommand.js +1 -29
- package/dist-cjs/commands/CreateSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateTrustCommand.js +1 -29
- package/dist-cjs/commands/DeleteConditionalForwarderCommand.js +1 -28
- package/dist-cjs/commands/DeleteDirectoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteLogSubscriptionCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotCommand.js +1 -28
- package/dist-cjs/commands/DeleteTrustCommand.js +1 -28
- package/dist-cjs/commands/DeregisterCertificateCommand.js +1 -28
- package/dist-cjs/commands/DeregisterEventTopicCommand.js +1 -28
- package/dist-cjs/commands/DescribeCertificateCommand.js +1 -28
- package/dist-cjs/commands/DescribeClientAuthenticationSettingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeConditionalForwardersCommand.js +1 -28
- package/dist-cjs/commands/DescribeDirectoriesCommand.js +1 -29
- package/dist-cjs/commands/DescribeDomainControllersCommand.js +1 -28
- package/dist-cjs/commands/DescribeEventTopicsCommand.js +1 -28
- package/dist-cjs/commands/DescribeLDAPSSettingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSettingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSharedDirectoriesCommand.js +1 -29
- package/dist-cjs/commands/DescribeSnapshotsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTrustsCommand.js +1 -28
- package/dist-cjs/commands/DescribeUpdateDirectoryCommand.js +1 -28
- package/dist-cjs/commands/DisableClientAuthenticationCommand.js +1 -28
- package/dist-cjs/commands/DisableLDAPSCommand.js +1 -28
- package/dist-cjs/commands/DisableRadiusCommand.js +1 -28
- package/dist-cjs/commands/DisableSsoCommand.js +1 -29
- package/dist-cjs/commands/EnableClientAuthenticationCommand.js +1 -28
- package/dist-cjs/commands/EnableLDAPSCommand.js +1 -28
- package/dist-cjs/commands/EnableRadiusCommand.js +1 -29
- package/dist-cjs/commands/EnableSsoCommand.js +1 -29
- package/dist-cjs/commands/GetDirectoryLimitsCommand.js +1 -28
- package/dist-cjs/commands/GetSnapshotLimitsCommand.js +1 -28
- package/dist-cjs/commands/ListCertificatesCommand.js +1 -28
- package/dist-cjs/commands/ListIpRoutesCommand.js +1 -28
- package/dist-cjs/commands/ListLogSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/ListSchemaExtensionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RegisterCertificateCommand.js +1 -28
- package/dist-cjs/commands/RegisterEventTopicCommand.js +1 -28
- package/dist-cjs/commands/RejectSharedDirectoryCommand.js +1 -28
- package/dist-cjs/commands/RemoveIpRoutesCommand.js +1 -28
- package/dist-cjs/commands/RemoveRegionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -28
- package/dist-cjs/commands/ResetUserPasswordCommand.js +1 -29
- package/dist-cjs/commands/RestoreFromSnapshotCommand.js +1 -28
- package/dist-cjs/commands/ShareDirectoryCommand.js +1 -29
- package/dist-cjs/commands/StartSchemaExtensionCommand.js +1 -28
- package/dist-cjs/commands/UnshareDirectoryCommand.js +1 -28
- package/dist-cjs/commands/UpdateConditionalForwarderCommand.js +1 -28
- package/dist-cjs/commands/UpdateDirectorySetupCommand.js +1 -28
- package/dist-cjs/commands/UpdateNumberOfDomainControllersCommand.js +1 -28
- package/dist-cjs/commands/UpdateRadiusCommand.js +1 -29
- package/dist-cjs/commands/UpdateSettingsCommand.js +1 -28
- package/dist-cjs/commands/UpdateTrustCommand.js +1 -28
- package/dist-cjs/commands/VerifyTrustCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -70
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6973 -11
- package/dist-cjs/models/DirectoryServiceServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -839
- package/dist-cjs/pagination/DescribeClientAuthenticationSettingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDirectoriesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDomainControllersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeLDAPSSettingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSharedDirectoriesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTrustsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeUpdateDirectoryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListCertificatesPaginator.js +1 -7
- package/dist-cjs/pagination/ListIpRoutesPaginator.js +1 -7
- package/dist-cjs/pagination/ListLogSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSchemaExtensionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -18
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4426
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4426 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_RegisterCertificateCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemaExtensionsCommand = exports.se_ListLogSubscriptionsCommand = exports.se_ListIpRoutesCommand = exports.se_ListCertificatesCommand = exports.se_GetSnapshotLimitsCommand = exports.se_GetDirectoryLimitsCommand = exports.se_EnableSsoCommand = exports.se_EnableRadiusCommand = exports.se_EnableLDAPSCommand = exports.se_EnableClientAuthenticationCommand = exports.se_DisableSsoCommand = exports.se_DisableRadiusCommand = exports.se_DisableLDAPSCommand = exports.se_DisableClientAuthenticationCommand = exports.se_DescribeUpdateDirectoryCommand = exports.se_DescribeTrustsCommand = exports.se_DescribeSnapshotsCommand = exports.se_DescribeSharedDirectoriesCommand = exports.se_DescribeSettingsCommand = exports.se_DescribeRegionsCommand = exports.se_DescribeLDAPSSettingsCommand = exports.se_DescribeEventTopicsCommand = exports.se_DescribeDomainControllersCommand = exports.se_DescribeDirectoriesCommand = exports.se_DescribeConditionalForwardersCommand = exports.se_DescribeClientAuthenticationSettingsCommand = exports.se_DescribeCertificateCommand = exports.se_DeregisterEventTopicCommand = exports.se_DeregisterCertificateCommand = exports.se_DeleteTrustCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteLogSubscriptionCommand = exports.se_DeleteDirectoryCommand = exports.se_DeleteConditionalForwarderCommand = exports.se_CreateTrustCommand = exports.se_CreateSnapshotCommand = exports.se_CreateMicrosoftADCommand = exports.se_CreateLogSubscriptionCommand = exports.se_CreateDirectoryCommand = exports.se_CreateConditionalForwarderCommand = exports.se_CreateComputerCommand = exports.se_CreateAliasCommand = exports.se_ConnectDirectoryCommand = exports.se_CancelSchemaExtensionCommand = exports.se_AddTagsToResourceCommand = exports.se_AddRegionCommand = exports.se_AddIpRoutesCommand = exports.se_AcceptSharedDirectoryCommand = void 0;
|
|
4
|
-
exports.de_DescribeTrustsCommand = exports.de_DescribeSnapshotsCommand = exports.de_DescribeSharedDirectoriesCommand = exports.de_DescribeSettingsCommand = exports.de_DescribeRegionsCommand = exports.de_DescribeLDAPSSettingsCommand = exports.de_DescribeEventTopicsCommand = exports.de_DescribeDomainControllersCommand = exports.de_DescribeDirectoriesCommand = exports.de_DescribeConditionalForwardersCommand = exports.de_DescribeClientAuthenticationSettingsCommand = exports.de_DescribeCertificateCommand = exports.de_DeregisterEventTopicCommand = exports.de_DeregisterCertificateCommand = exports.de_DeleteTrustCommand = exports.de_DeleteSnapshotCommand = exports.de_DeleteLogSubscriptionCommand = exports.de_DeleteDirectoryCommand = exports.de_DeleteConditionalForwarderCommand = exports.de_CreateTrustCommand = exports.de_CreateSnapshotCommand = exports.de_CreateMicrosoftADCommand = exports.de_CreateLogSubscriptionCommand = exports.de_CreateDirectoryCommand = exports.de_CreateConditionalForwarderCommand = exports.de_CreateComputerCommand = exports.de_CreateAliasCommand = exports.de_ConnectDirectoryCommand = exports.de_CancelSchemaExtensionCommand = exports.de_AddTagsToResourceCommand = exports.de_AddRegionCommand = exports.de_AddIpRoutesCommand = exports.de_AcceptSharedDirectoryCommand = exports.se_VerifyTrustCommand = exports.se_UpdateTrustCommand = exports.se_UpdateSettingsCommand = exports.se_UpdateRadiusCommand = exports.se_UpdateNumberOfDomainControllersCommand = exports.se_UpdateDirectorySetupCommand = exports.se_UpdateConditionalForwarderCommand = exports.se_UnshareDirectoryCommand = exports.se_StartSchemaExtensionCommand = exports.se_ShareDirectoryCommand = exports.se_RestoreFromSnapshotCommand = exports.se_ResetUserPasswordCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_RemoveRegionCommand = exports.se_RemoveIpRoutesCommand = exports.se_RejectSharedDirectoryCommand = exports.se_RegisterEventTopicCommand = void 0;
|
|
5
|
-
exports.de_VerifyTrustCommand = exports.de_UpdateTrustCommand = exports.de_UpdateSettingsCommand = exports.de_UpdateRadiusCommand = exports.de_UpdateNumberOfDomainControllersCommand = exports.de_UpdateDirectorySetupCommand = exports.de_UpdateConditionalForwarderCommand = exports.de_UnshareDirectoryCommand = exports.de_StartSchemaExtensionCommand = exports.de_ShareDirectoryCommand = exports.de_RestoreFromSnapshotCommand = exports.de_ResetUserPasswordCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RemoveRegionCommand = exports.de_RemoveIpRoutesCommand = exports.de_RejectSharedDirectoryCommand = exports.de_RegisterEventTopicCommand = exports.de_RegisterCertificateCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemaExtensionsCommand = exports.de_ListLogSubscriptionsCommand = exports.de_ListIpRoutesCommand = exports.de_ListCertificatesCommand = exports.de_GetSnapshotLimitsCommand = exports.de_GetDirectoryLimitsCommand = exports.de_EnableSsoCommand = exports.de_EnableRadiusCommand = exports.de_EnableLDAPSCommand = exports.de_EnableClientAuthenticationCommand = exports.de_DisableSsoCommand = exports.de_DisableRadiusCommand = exports.de_DisableLDAPSCommand = exports.de_DisableClientAuthenticationCommand = exports.de_DescribeUpdateDirectoryCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const DirectoryServiceServiceException_1 = require("../models/DirectoryServiceServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_AcceptSharedDirectoryCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("AcceptSharedDirectory");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_AcceptSharedDirectoryCommand = se_AcceptSharedDirectoryCommand;
|
|
17
|
-
const se_AddIpRoutesCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("AddIpRoutes");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_AddIpRoutesCommand = se_AddIpRoutesCommand;
|
|
24
|
-
const se_AddRegionCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("AddRegion");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_AddRegionCommand = se_AddRegionCommand;
|
|
31
|
-
const se_AddTagsToResourceCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("AddTagsToResource");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
|
|
38
|
-
const se_CancelSchemaExtensionCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("CancelSchemaExtension");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_CancelSchemaExtensionCommand = se_CancelSchemaExtensionCommand;
|
|
45
|
-
const se_ConnectDirectoryCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("ConnectDirectory");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_ConnectDirectoryCommand = se_ConnectDirectoryCommand;
|
|
52
|
-
const se_CreateAliasCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("CreateAlias");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_CreateAliasCommand = se_CreateAliasCommand;
|
|
59
|
-
const se_CreateComputerCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("CreateComputer");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateComputerCommand = se_CreateComputerCommand;
|
|
66
|
-
const se_CreateConditionalForwarderCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateConditionalForwarder");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_CreateConditionalForwarderCommand = se_CreateConditionalForwarderCommand;
|
|
73
|
-
const se_CreateDirectoryCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("CreateDirectory");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_CreateDirectoryCommand = se_CreateDirectoryCommand;
|
|
80
|
-
const se_CreateLogSubscriptionCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("CreateLogSubscription");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_CreateLogSubscriptionCommand = se_CreateLogSubscriptionCommand;
|
|
87
|
-
const se_CreateMicrosoftADCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("CreateMicrosoftAD");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_CreateMicrosoftADCommand = se_CreateMicrosoftADCommand;
|
|
94
|
-
const se_CreateSnapshotCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("CreateSnapshot");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
|
|
101
|
-
const se_CreateTrustCommand = async (input, context) => {
|
|
102
|
-
const headers = sharedHeaders("CreateTrust");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
-
};
|
|
107
|
-
exports.se_CreateTrustCommand = se_CreateTrustCommand;
|
|
108
|
-
const se_DeleteConditionalForwarderCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DeleteConditionalForwarder");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
exports.se_DeleteConditionalForwarderCommand = se_DeleteConditionalForwarderCommand;
|
|
115
|
-
const se_DeleteDirectoryCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("DeleteDirectory");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
exports.se_DeleteDirectoryCommand = se_DeleteDirectoryCommand;
|
|
122
|
-
const se_DeleteLogSubscriptionCommand = async (input, context) => {
|
|
123
|
-
const headers = sharedHeaders("DeleteLogSubscription");
|
|
124
|
-
let body;
|
|
125
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
-
};
|
|
128
|
-
exports.se_DeleteLogSubscriptionCommand = se_DeleteLogSubscriptionCommand;
|
|
129
|
-
const se_DeleteSnapshotCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("DeleteSnapshot");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
exports.se_DeleteSnapshotCommand = se_DeleteSnapshotCommand;
|
|
136
|
-
const se_DeleteTrustCommand = async (input, context) => {
|
|
137
|
-
const headers = sharedHeaders("DeleteTrust");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
exports.se_DeleteTrustCommand = se_DeleteTrustCommand;
|
|
143
|
-
const se_DeregisterCertificateCommand = async (input, context) => {
|
|
144
|
-
const headers = sharedHeaders("DeregisterCertificate");
|
|
145
|
-
let body;
|
|
146
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
-
};
|
|
149
|
-
exports.se_DeregisterCertificateCommand = se_DeregisterCertificateCommand;
|
|
150
|
-
const se_DeregisterEventTopicCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DeregisterEventTopic");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
exports.se_DeregisterEventTopicCommand = se_DeregisterEventTopicCommand;
|
|
157
|
-
const se_DescribeCertificateCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("DescribeCertificate");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
164
|
-
const se_DescribeClientAuthenticationSettingsCommand = async (input, context) => {
|
|
165
|
-
const headers = sharedHeaders("DescribeClientAuthenticationSettings");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
-
};
|
|
170
|
-
exports.se_DescribeClientAuthenticationSettingsCommand = se_DescribeClientAuthenticationSettingsCommand;
|
|
171
|
-
const se_DescribeConditionalForwardersCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("DescribeConditionalForwarders");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
exports.se_DescribeConditionalForwardersCommand = se_DescribeConditionalForwardersCommand;
|
|
178
|
-
const se_DescribeDirectoriesCommand = async (input, context) => {
|
|
179
|
-
const headers = sharedHeaders("DescribeDirectories");
|
|
180
|
-
let body;
|
|
181
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
|
-
};
|
|
184
|
-
exports.se_DescribeDirectoriesCommand = se_DescribeDirectoriesCommand;
|
|
185
|
-
const se_DescribeDomainControllersCommand = async (input, context) => {
|
|
186
|
-
const headers = sharedHeaders("DescribeDomainControllers");
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
|
-
};
|
|
191
|
-
exports.se_DescribeDomainControllersCommand = se_DescribeDomainControllersCommand;
|
|
192
|
-
const se_DescribeEventTopicsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DescribeEventTopics");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
exports.se_DescribeEventTopicsCommand = se_DescribeEventTopicsCommand;
|
|
199
|
-
const se_DescribeLDAPSSettingsCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("DescribeLDAPSSettings");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
exports.se_DescribeLDAPSSettingsCommand = se_DescribeLDAPSSettingsCommand;
|
|
206
|
-
const se_DescribeRegionsCommand = async (input, context) => {
|
|
207
|
-
const headers = sharedHeaders("DescribeRegions");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
|
-
};
|
|
212
|
-
exports.se_DescribeRegionsCommand = se_DescribeRegionsCommand;
|
|
213
|
-
const se_DescribeSettingsCommand = async (input, context) => {
|
|
214
|
-
const headers = sharedHeaders("DescribeSettings");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
-
};
|
|
219
|
-
exports.se_DescribeSettingsCommand = se_DescribeSettingsCommand;
|
|
220
|
-
const se_DescribeSharedDirectoriesCommand = async (input, context) => {
|
|
221
|
-
const headers = sharedHeaders("DescribeSharedDirectories");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
|
-
};
|
|
226
|
-
exports.se_DescribeSharedDirectoriesCommand = se_DescribeSharedDirectoriesCommand;
|
|
227
|
-
const se_DescribeSnapshotsCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("DescribeSnapshots");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
exports.se_DescribeSnapshotsCommand = se_DescribeSnapshotsCommand;
|
|
234
|
-
const se_DescribeTrustsCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("DescribeTrusts");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
exports.se_DescribeTrustsCommand = se_DescribeTrustsCommand;
|
|
241
|
-
const se_DescribeUpdateDirectoryCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("DescribeUpdateDirectory");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
exports.se_DescribeUpdateDirectoryCommand = se_DescribeUpdateDirectoryCommand;
|
|
248
|
-
const se_DisableClientAuthenticationCommand = async (input, context) => {
|
|
249
|
-
const headers = sharedHeaders("DisableClientAuthentication");
|
|
250
|
-
let body;
|
|
251
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
exports.se_DisableClientAuthenticationCommand = se_DisableClientAuthenticationCommand;
|
|
255
|
-
const se_DisableLDAPSCommand = async (input, context) => {
|
|
256
|
-
const headers = sharedHeaders("DisableLDAPS");
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
-
};
|
|
261
|
-
exports.se_DisableLDAPSCommand = se_DisableLDAPSCommand;
|
|
262
|
-
const se_DisableRadiusCommand = async (input, context) => {
|
|
263
|
-
const headers = sharedHeaders("DisableRadius");
|
|
264
|
-
let body;
|
|
265
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
-
};
|
|
268
|
-
exports.se_DisableRadiusCommand = se_DisableRadiusCommand;
|
|
269
|
-
const se_DisableSsoCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("DisableSso");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
exports.se_DisableSsoCommand = se_DisableSsoCommand;
|
|
276
|
-
const se_EnableClientAuthenticationCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("EnableClientAuthentication");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
exports.se_EnableClientAuthenticationCommand = se_EnableClientAuthenticationCommand;
|
|
283
|
-
const se_EnableLDAPSCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("EnableLDAPS");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
exports.se_EnableLDAPSCommand = se_EnableLDAPSCommand;
|
|
290
|
-
const se_EnableRadiusCommand = async (input, context) => {
|
|
291
|
-
const headers = sharedHeaders("EnableRadius");
|
|
292
|
-
let body;
|
|
293
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
294
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
-
};
|
|
296
|
-
exports.se_EnableRadiusCommand = se_EnableRadiusCommand;
|
|
297
|
-
const se_EnableSsoCommand = async (input, context) => {
|
|
298
|
-
const headers = sharedHeaders("EnableSso");
|
|
299
|
-
let body;
|
|
300
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
exports.se_EnableSsoCommand = se_EnableSsoCommand;
|
|
304
|
-
const se_GetDirectoryLimitsCommand = async (input, context) => {
|
|
305
|
-
const headers = sharedHeaders("GetDirectoryLimits");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
308
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
|
-
};
|
|
310
|
-
exports.se_GetDirectoryLimitsCommand = se_GetDirectoryLimitsCommand;
|
|
311
|
-
const se_GetSnapshotLimitsCommand = async (input, context) => {
|
|
312
|
-
const headers = sharedHeaders("GetSnapshotLimits");
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
315
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
316
|
-
};
|
|
317
|
-
exports.se_GetSnapshotLimitsCommand = se_GetSnapshotLimitsCommand;
|
|
318
|
-
const se_ListCertificatesCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("ListCertificates");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
|
|
325
|
-
const se_ListIpRoutesCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("ListIpRoutes");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
exports.se_ListIpRoutesCommand = se_ListIpRoutesCommand;
|
|
332
|
-
const se_ListLogSubscriptionsCommand = async (input, context) => {
|
|
333
|
-
const headers = sharedHeaders("ListLogSubscriptions");
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
-
};
|
|
338
|
-
exports.se_ListLogSubscriptionsCommand = se_ListLogSubscriptionsCommand;
|
|
339
|
-
const se_ListSchemaExtensionsCommand = async (input, context) => {
|
|
340
|
-
const headers = sharedHeaders("ListSchemaExtensions");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
exports.se_ListSchemaExtensionsCommand = se_ListSchemaExtensionsCommand;
|
|
346
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
347
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
350
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
|
-
};
|
|
352
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
353
|
-
const se_RegisterCertificateCommand = async (input, context) => {
|
|
354
|
-
const headers = sharedHeaders("RegisterCertificate");
|
|
355
|
-
let body;
|
|
356
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
357
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
-
};
|
|
359
|
-
exports.se_RegisterCertificateCommand = se_RegisterCertificateCommand;
|
|
360
|
-
const se_RegisterEventTopicCommand = async (input, context) => {
|
|
361
|
-
const headers = sharedHeaders("RegisterEventTopic");
|
|
362
|
-
let body;
|
|
363
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
364
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
-
};
|
|
366
|
-
exports.se_RegisterEventTopicCommand = se_RegisterEventTopicCommand;
|
|
367
|
-
const se_RejectSharedDirectoryCommand = async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("RejectSharedDirectory");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
-
};
|
|
373
|
-
exports.se_RejectSharedDirectoryCommand = se_RejectSharedDirectoryCommand;
|
|
374
|
-
const se_RemoveIpRoutesCommand = async (input, context) => {
|
|
375
|
-
const headers = sharedHeaders("RemoveIpRoutes");
|
|
376
|
-
let body;
|
|
377
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
378
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
-
};
|
|
380
|
-
exports.se_RemoveIpRoutesCommand = se_RemoveIpRoutesCommand;
|
|
381
|
-
const se_RemoveRegionCommand = async (input, context) => {
|
|
382
|
-
const headers = sharedHeaders("RemoveRegion");
|
|
383
|
-
let body;
|
|
384
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
385
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
|
-
};
|
|
387
|
-
exports.se_RemoveRegionCommand = se_RemoveRegionCommand;
|
|
388
|
-
const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
|
-
};
|
|
394
|
-
exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
|
|
395
|
-
const se_ResetUserPasswordCommand = async (input, context) => {
|
|
396
|
-
const headers = sharedHeaders("ResetUserPassword");
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
399
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
|
-
};
|
|
401
|
-
exports.se_ResetUserPasswordCommand = se_ResetUserPasswordCommand;
|
|
402
|
-
const se_RestoreFromSnapshotCommand = async (input, context) => {
|
|
403
|
-
const headers = sharedHeaders("RestoreFromSnapshot");
|
|
404
|
-
let body;
|
|
405
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
406
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
|
-
};
|
|
408
|
-
exports.se_RestoreFromSnapshotCommand = se_RestoreFromSnapshotCommand;
|
|
409
|
-
const se_ShareDirectoryCommand = async (input, context) => {
|
|
410
|
-
const headers = sharedHeaders("ShareDirectory");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
-
};
|
|
415
|
-
exports.se_ShareDirectoryCommand = se_ShareDirectoryCommand;
|
|
416
|
-
const se_StartSchemaExtensionCommand = async (input, context) => {
|
|
417
|
-
const headers = sharedHeaders("StartSchemaExtension");
|
|
418
|
-
let body;
|
|
419
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
420
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
|
-
};
|
|
422
|
-
exports.se_StartSchemaExtensionCommand = se_StartSchemaExtensionCommand;
|
|
423
|
-
const se_UnshareDirectoryCommand = async (input, context) => {
|
|
424
|
-
const headers = sharedHeaders("UnshareDirectory");
|
|
425
|
-
let body;
|
|
426
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
427
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
-
};
|
|
429
|
-
exports.se_UnshareDirectoryCommand = se_UnshareDirectoryCommand;
|
|
430
|
-
const se_UpdateConditionalForwarderCommand = async (input, context) => {
|
|
431
|
-
const headers = sharedHeaders("UpdateConditionalForwarder");
|
|
432
|
-
let body;
|
|
433
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
|
-
};
|
|
436
|
-
exports.se_UpdateConditionalForwarderCommand = se_UpdateConditionalForwarderCommand;
|
|
437
|
-
const se_UpdateDirectorySetupCommand = async (input, context) => {
|
|
438
|
-
const headers = sharedHeaders("UpdateDirectorySetup");
|
|
439
|
-
let body;
|
|
440
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
441
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
442
|
-
};
|
|
443
|
-
exports.se_UpdateDirectorySetupCommand = se_UpdateDirectorySetupCommand;
|
|
444
|
-
const se_UpdateNumberOfDomainControllersCommand = async (input, context) => {
|
|
445
|
-
const headers = sharedHeaders("UpdateNumberOfDomainControllers");
|
|
446
|
-
let body;
|
|
447
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
448
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
|
-
};
|
|
450
|
-
exports.se_UpdateNumberOfDomainControllersCommand = se_UpdateNumberOfDomainControllersCommand;
|
|
451
|
-
const se_UpdateRadiusCommand = async (input, context) => {
|
|
452
|
-
const headers = sharedHeaders("UpdateRadius");
|
|
453
|
-
let body;
|
|
454
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
455
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
456
|
-
};
|
|
457
|
-
exports.se_UpdateRadiusCommand = se_UpdateRadiusCommand;
|
|
458
|
-
const se_UpdateSettingsCommand = async (input, context) => {
|
|
459
|
-
const headers = sharedHeaders("UpdateSettings");
|
|
460
|
-
let body;
|
|
461
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
462
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
463
|
-
};
|
|
464
|
-
exports.se_UpdateSettingsCommand = se_UpdateSettingsCommand;
|
|
465
|
-
const se_UpdateTrustCommand = async (input, context) => {
|
|
466
|
-
const headers = sharedHeaders("UpdateTrust");
|
|
467
|
-
let body;
|
|
468
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
469
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
470
|
-
};
|
|
471
|
-
exports.se_UpdateTrustCommand = se_UpdateTrustCommand;
|
|
472
|
-
const se_VerifyTrustCommand = async (input, context) => {
|
|
473
|
-
const headers = sharedHeaders("VerifyTrust");
|
|
474
|
-
let body;
|
|
475
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
476
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
|
-
};
|
|
478
|
-
exports.se_VerifyTrustCommand = se_VerifyTrustCommand;
|
|
479
|
-
const de_AcceptSharedDirectoryCommand = async (output, context) => {
|
|
480
|
-
if (output.statusCode >= 300) {
|
|
481
|
-
return de_AcceptSharedDirectoryCommandError(output, context);
|
|
482
|
-
}
|
|
483
|
-
const data = await parseBody(output.body, context);
|
|
484
|
-
let contents = {};
|
|
485
|
-
contents = de_AcceptSharedDirectoryResult(data, context);
|
|
486
|
-
const response = {
|
|
487
|
-
$metadata: deserializeMetadata(output),
|
|
488
|
-
...contents,
|
|
489
|
-
};
|
|
490
|
-
return response;
|
|
491
|
-
};
|
|
492
|
-
exports.de_AcceptSharedDirectoryCommand = de_AcceptSharedDirectoryCommand;
|
|
493
|
-
const de_AcceptSharedDirectoryCommandError = async (output, context) => {
|
|
494
|
-
const parsedOutput = {
|
|
495
|
-
...output,
|
|
496
|
-
body: await parseErrorBody(output.body, context),
|
|
497
|
-
};
|
|
498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
|
-
switch (errorCode) {
|
|
500
|
-
case "ClientException":
|
|
501
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
502
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
503
|
-
case "DirectoryAlreadySharedException":
|
|
504
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
505
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
506
|
-
case "EntityDoesNotExistException":
|
|
507
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
508
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
509
|
-
case "InvalidParameterException":
|
|
510
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
511
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
512
|
-
case "ServiceException":
|
|
513
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
514
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
515
|
-
default:
|
|
516
|
-
const parsedBody = parsedOutput.body;
|
|
517
|
-
return throwDefaultError({
|
|
518
|
-
output,
|
|
519
|
-
parsedBody,
|
|
520
|
-
errorCode,
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
const de_AddIpRoutesCommand = async (output, context) => {
|
|
525
|
-
if (output.statusCode >= 300) {
|
|
526
|
-
return de_AddIpRoutesCommandError(output, context);
|
|
527
|
-
}
|
|
528
|
-
const data = await parseBody(output.body, context);
|
|
529
|
-
let contents = {};
|
|
530
|
-
contents = (0, smithy_client_1._json)(data);
|
|
531
|
-
const response = {
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
...contents,
|
|
534
|
-
};
|
|
535
|
-
return response;
|
|
536
|
-
};
|
|
537
|
-
exports.de_AddIpRoutesCommand = de_AddIpRoutesCommand;
|
|
538
|
-
const de_AddIpRoutesCommandError = async (output, context) => {
|
|
539
|
-
const parsedOutput = {
|
|
540
|
-
...output,
|
|
541
|
-
body: await parseErrorBody(output.body, context),
|
|
542
|
-
};
|
|
543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
|
-
switch (errorCode) {
|
|
545
|
-
case "ClientException":
|
|
546
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
547
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
548
|
-
case "DirectoryUnavailableException":
|
|
549
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
550
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
551
|
-
case "EntityAlreadyExistsException":
|
|
552
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
553
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
554
|
-
case "EntityDoesNotExistException":
|
|
555
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
556
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
557
|
-
case "InvalidParameterException":
|
|
558
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
559
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
560
|
-
case "IpRouteLimitExceededException":
|
|
561
|
-
case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
|
|
562
|
-
throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ServiceException":
|
|
564
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
565
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const de_AddRegionCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_AddRegionCommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data = await parseBody(output.body, context);
|
|
580
|
-
let contents = {};
|
|
581
|
-
contents = (0, smithy_client_1._json)(data);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents,
|
|
585
|
-
};
|
|
586
|
-
return response;
|
|
587
|
-
};
|
|
588
|
-
exports.de_AddRegionCommand = de_AddRegionCommand;
|
|
589
|
-
const de_AddRegionCommandError = async (output, context) => {
|
|
590
|
-
const parsedOutput = {
|
|
591
|
-
...output,
|
|
592
|
-
body: await parseErrorBody(output.body, context),
|
|
593
|
-
};
|
|
594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
-
switch (errorCode) {
|
|
596
|
-
case "AccessDeniedException":
|
|
597
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
598
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ClientException":
|
|
600
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
601
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
602
|
-
case "DirectoryAlreadyInRegionException":
|
|
603
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
|
|
604
|
-
throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
|
|
605
|
-
case "DirectoryDoesNotExistException":
|
|
606
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
607
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
608
|
-
case "DirectoryUnavailableException":
|
|
609
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
610
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
611
|
-
case "EntityDoesNotExistException":
|
|
612
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
613
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
614
|
-
case "InvalidParameterException":
|
|
615
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
616
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
617
|
-
case "RegionLimitExceededException":
|
|
618
|
-
case "com.amazonaws.directoryservice#RegionLimitExceededException":
|
|
619
|
-
throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ServiceException":
|
|
621
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
622
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
623
|
-
case "UnsupportedOperationException":
|
|
624
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
625
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
const de_AddTagsToResourceCommand = async (output, context) => {
|
|
636
|
-
if (output.statusCode >= 300) {
|
|
637
|
-
return de_AddTagsToResourceCommandError(output, context);
|
|
638
|
-
}
|
|
639
|
-
const data = await parseBody(output.body, context);
|
|
640
|
-
let contents = {};
|
|
641
|
-
contents = (0, smithy_client_1._json)(data);
|
|
642
|
-
const response = {
|
|
643
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
-
...contents,
|
|
645
|
-
};
|
|
646
|
-
return response;
|
|
647
|
-
};
|
|
648
|
-
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
649
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
650
|
-
const parsedOutput = {
|
|
651
|
-
...output,
|
|
652
|
-
body: await parseErrorBody(output.body, context),
|
|
653
|
-
};
|
|
654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
-
switch (errorCode) {
|
|
656
|
-
case "ClientException":
|
|
657
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
658
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
659
|
-
case "EntityDoesNotExistException":
|
|
660
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
661
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InvalidParameterException":
|
|
663
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
664
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ServiceException":
|
|
666
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
667
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
668
|
-
case "TagLimitExceededException":
|
|
669
|
-
case "com.amazonaws.directoryservice#TagLimitExceededException":
|
|
670
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
const de_CancelSchemaExtensionCommand = async (output, context) => {
|
|
681
|
-
if (output.statusCode >= 300) {
|
|
682
|
-
return de_CancelSchemaExtensionCommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const data = await parseBody(output.body, context);
|
|
685
|
-
let contents = {};
|
|
686
|
-
contents = (0, smithy_client_1._json)(data);
|
|
687
|
-
const response = {
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
...contents,
|
|
690
|
-
};
|
|
691
|
-
return response;
|
|
692
|
-
};
|
|
693
|
-
exports.de_CancelSchemaExtensionCommand = de_CancelSchemaExtensionCommand;
|
|
694
|
-
const de_CancelSchemaExtensionCommandError = async (output, context) => {
|
|
695
|
-
const parsedOutput = {
|
|
696
|
-
...output,
|
|
697
|
-
body: await parseErrorBody(output.body, context),
|
|
698
|
-
};
|
|
699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
-
switch (errorCode) {
|
|
701
|
-
case "ClientException":
|
|
702
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
703
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
704
|
-
case "EntityDoesNotExistException":
|
|
705
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
706
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ServiceException":
|
|
708
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
709
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
710
|
-
default:
|
|
711
|
-
const parsedBody = parsedOutput.body;
|
|
712
|
-
return throwDefaultError({
|
|
713
|
-
output,
|
|
714
|
-
parsedBody,
|
|
715
|
-
errorCode,
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
const de_ConnectDirectoryCommand = async (output, context) => {
|
|
720
|
-
if (output.statusCode >= 300) {
|
|
721
|
-
return de_ConnectDirectoryCommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const data = await parseBody(output.body, context);
|
|
724
|
-
let contents = {};
|
|
725
|
-
contents = (0, smithy_client_1._json)(data);
|
|
726
|
-
const response = {
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
...contents,
|
|
729
|
-
};
|
|
730
|
-
return response;
|
|
731
|
-
};
|
|
732
|
-
exports.de_ConnectDirectoryCommand = de_ConnectDirectoryCommand;
|
|
733
|
-
const de_ConnectDirectoryCommandError = async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context),
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "ClientException":
|
|
741
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
742
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
743
|
-
case "DirectoryLimitExceededException":
|
|
744
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
745
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
746
|
-
case "InvalidParameterException":
|
|
747
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
748
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ServiceException":
|
|
750
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
751
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
752
|
-
default:
|
|
753
|
-
const parsedBody = parsedOutput.body;
|
|
754
|
-
return throwDefaultError({
|
|
755
|
-
output,
|
|
756
|
-
parsedBody,
|
|
757
|
-
errorCode,
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
const de_CreateAliasCommand = async (output, context) => {
|
|
762
|
-
if (output.statusCode >= 300) {
|
|
763
|
-
return de_CreateAliasCommandError(output, context);
|
|
764
|
-
}
|
|
765
|
-
const data = await parseBody(output.body, context);
|
|
766
|
-
let contents = {};
|
|
767
|
-
contents = (0, smithy_client_1._json)(data);
|
|
768
|
-
const response = {
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
...contents,
|
|
771
|
-
};
|
|
772
|
-
return response;
|
|
773
|
-
};
|
|
774
|
-
exports.de_CreateAliasCommand = de_CreateAliasCommand;
|
|
775
|
-
const de_CreateAliasCommandError = async (output, context) => {
|
|
776
|
-
const parsedOutput = {
|
|
777
|
-
...output,
|
|
778
|
-
body: await parseErrorBody(output.body, context),
|
|
779
|
-
};
|
|
780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
|
-
switch (errorCode) {
|
|
782
|
-
case "ClientException":
|
|
783
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
784
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
785
|
-
case "EntityAlreadyExistsException":
|
|
786
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
787
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
788
|
-
case "EntityDoesNotExistException":
|
|
789
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
790
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
791
|
-
case "InvalidParameterException":
|
|
792
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
793
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
794
|
-
case "ServiceException":
|
|
795
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
796
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
797
|
-
default:
|
|
798
|
-
const parsedBody = parsedOutput.body;
|
|
799
|
-
return throwDefaultError({
|
|
800
|
-
output,
|
|
801
|
-
parsedBody,
|
|
802
|
-
errorCode,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
const de_CreateComputerCommand = async (output, context) => {
|
|
807
|
-
if (output.statusCode >= 300) {
|
|
808
|
-
return de_CreateComputerCommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const data = await parseBody(output.body, context);
|
|
811
|
-
let contents = {};
|
|
812
|
-
contents = (0, smithy_client_1._json)(data);
|
|
813
|
-
const response = {
|
|
814
|
-
$metadata: deserializeMetadata(output),
|
|
815
|
-
...contents,
|
|
816
|
-
};
|
|
817
|
-
return response;
|
|
818
|
-
};
|
|
819
|
-
exports.de_CreateComputerCommand = de_CreateComputerCommand;
|
|
820
|
-
const de_CreateComputerCommandError = async (output, context) => {
|
|
821
|
-
const parsedOutput = {
|
|
822
|
-
...output,
|
|
823
|
-
body: await parseErrorBody(output.body, context),
|
|
824
|
-
};
|
|
825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
-
switch (errorCode) {
|
|
827
|
-
case "AuthenticationFailedException":
|
|
828
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
829
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ClientException":
|
|
831
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
832
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
833
|
-
case "DirectoryUnavailableException":
|
|
834
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
835
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
836
|
-
case "EntityAlreadyExistsException":
|
|
837
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
838
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
839
|
-
case "EntityDoesNotExistException":
|
|
840
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
841
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
842
|
-
case "InvalidParameterException":
|
|
843
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
844
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ServiceException":
|
|
846
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
847
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
848
|
-
case "UnsupportedOperationException":
|
|
849
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
850
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode,
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
|
-
const de_CreateConditionalForwarderCommand = async (output, context) => {
|
|
861
|
-
if (output.statusCode >= 300) {
|
|
862
|
-
return de_CreateConditionalForwarderCommandError(output, context);
|
|
863
|
-
}
|
|
864
|
-
const data = await parseBody(output.body, context);
|
|
865
|
-
let contents = {};
|
|
866
|
-
contents = (0, smithy_client_1._json)(data);
|
|
867
|
-
const response = {
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
...contents,
|
|
870
|
-
};
|
|
871
|
-
return response;
|
|
872
|
-
};
|
|
873
|
-
exports.de_CreateConditionalForwarderCommand = de_CreateConditionalForwarderCommand;
|
|
874
|
-
const de_CreateConditionalForwarderCommandError = async (output, context) => {
|
|
875
|
-
const parsedOutput = {
|
|
876
|
-
...output,
|
|
877
|
-
body: await parseErrorBody(output.body, context),
|
|
878
|
-
};
|
|
879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
-
switch (errorCode) {
|
|
881
|
-
case "ClientException":
|
|
882
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
883
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
884
|
-
case "DirectoryUnavailableException":
|
|
885
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
886
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
887
|
-
case "EntityAlreadyExistsException":
|
|
888
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
889
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
890
|
-
case "EntityDoesNotExistException":
|
|
891
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
892
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
893
|
-
case "InvalidParameterException":
|
|
894
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
895
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ServiceException":
|
|
897
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
898
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
899
|
-
case "UnsupportedOperationException":
|
|
900
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
901
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
const de_CreateDirectoryCommand = async (output, context) => {
|
|
912
|
-
if (output.statusCode >= 300) {
|
|
913
|
-
return de_CreateDirectoryCommandError(output, context);
|
|
914
|
-
}
|
|
915
|
-
const data = await parseBody(output.body, context);
|
|
916
|
-
let contents = {};
|
|
917
|
-
contents = (0, smithy_client_1._json)(data);
|
|
918
|
-
const response = {
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
...contents,
|
|
921
|
-
};
|
|
922
|
-
return response;
|
|
923
|
-
};
|
|
924
|
-
exports.de_CreateDirectoryCommand = de_CreateDirectoryCommand;
|
|
925
|
-
const de_CreateDirectoryCommandError = async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "ClientException":
|
|
933
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
934
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
935
|
-
case "DirectoryLimitExceededException":
|
|
936
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
937
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
938
|
-
case "InvalidParameterException":
|
|
939
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
940
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ServiceException":
|
|
942
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
943
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
944
|
-
default:
|
|
945
|
-
const parsedBody = parsedOutput.body;
|
|
946
|
-
return throwDefaultError({
|
|
947
|
-
output,
|
|
948
|
-
parsedBody,
|
|
949
|
-
errorCode,
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
const de_CreateLogSubscriptionCommand = async (output, context) => {
|
|
954
|
-
if (output.statusCode >= 300) {
|
|
955
|
-
return de_CreateLogSubscriptionCommandError(output, context);
|
|
956
|
-
}
|
|
957
|
-
const data = await parseBody(output.body, context);
|
|
958
|
-
let contents = {};
|
|
959
|
-
contents = (0, smithy_client_1._json)(data);
|
|
960
|
-
const response = {
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
...contents,
|
|
963
|
-
};
|
|
964
|
-
return response;
|
|
965
|
-
};
|
|
966
|
-
exports.de_CreateLogSubscriptionCommand = de_CreateLogSubscriptionCommand;
|
|
967
|
-
const de_CreateLogSubscriptionCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "ClientException":
|
|
975
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
976
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
977
|
-
case "EntityAlreadyExistsException":
|
|
978
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
979
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
980
|
-
case "EntityDoesNotExistException":
|
|
981
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
982
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
983
|
-
case "InsufficientPermissionsException":
|
|
984
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
985
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ServiceException":
|
|
987
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
988
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
989
|
-
case "UnsupportedOperationException":
|
|
990
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
991
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
992
|
-
default:
|
|
993
|
-
const parsedBody = parsedOutput.body;
|
|
994
|
-
return throwDefaultError({
|
|
995
|
-
output,
|
|
996
|
-
parsedBody,
|
|
997
|
-
errorCode,
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
const de_CreateMicrosoftADCommand = async (output, context) => {
|
|
1002
|
-
if (output.statusCode >= 300) {
|
|
1003
|
-
return de_CreateMicrosoftADCommandError(output, context);
|
|
1004
|
-
}
|
|
1005
|
-
const data = await parseBody(output.body, context);
|
|
1006
|
-
let contents = {};
|
|
1007
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1008
|
-
const response = {
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
...contents,
|
|
1011
|
-
};
|
|
1012
|
-
return response;
|
|
1013
|
-
};
|
|
1014
|
-
exports.de_CreateMicrosoftADCommand = de_CreateMicrosoftADCommand;
|
|
1015
|
-
const de_CreateMicrosoftADCommandError = async (output, context) => {
|
|
1016
|
-
const parsedOutput = {
|
|
1017
|
-
...output,
|
|
1018
|
-
body: await parseErrorBody(output.body, context),
|
|
1019
|
-
};
|
|
1020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
|
-
switch (errorCode) {
|
|
1022
|
-
case "ClientException":
|
|
1023
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1024
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "DirectoryLimitExceededException":
|
|
1026
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
1027
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "InvalidParameterException":
|
|
1029
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1030
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ServiceException":
|
|
1032
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1033
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "UnsupportedOperationException":
|
|
1035
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1036
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
return throwDefaultError({
|
|
1040
|
-
output,
|
|
1041
|
-
parsedBody,
|
|
1042
|
-
errorCode,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
const de_CreateSnapshotCommand = async (output, context) => {
|
|
1047
|
-
if (output.statusCode >= 300) {
|
|
1048
|
-
return de_CreateSnapshotCommandError(output, context);
|
|
1049
|
-
}
|
|
1050
|
-
const data = await parseBody(output.body, context);
|
|
1051
|
-
let contents = {};
|
|
1052
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1053
|
-
const response = {
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
...contents,
|
|
1056
|
-
};
|
|
1057
|
-
return response;
|
|
1058
|
-
};
|
|
1059
|
-
exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
|
|
1060
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context),
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "ClientException":
|
|
1068
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1069
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "EntityDoesNotExistException":
|
|
1071
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1072
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "InvalidParameterException":
|
|
1074
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1075
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ServiceException":
|
|
1077
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1078
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "SnapshotLimitExceededException":
|
|
1080
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
1081
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
const de_CreateTrustCommand = async (output, context) => {
|
|
1092
|
-
if (output.statusCode >= 300) {
|
|
1093
|
-
return de_CreateTrustCommandError(output, context);
|
|
1094
|
-
}
|
|
1095
|
-
const data = await parseBody(output.body, context);
|
|
1096
|
-
let contents = {};
|
|
1097
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1098
|
-
const response = {
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
...contents,
|
|
1101
|
-
};
|
|
1102
|
-
return response;
|
|
1103
|
-
};
|
|
1104
|
-
exports.de_CreateTrustCommand = de_CreateTrustCommand;
|
|
1105
|
-
const de_CreateTrustCommandError = async (output, context) => {
|
|
1106
|
-
const parsedOutput = {
|
|
1107
|
-
...output,
|
|
1108
|
-
body: await parseErrorBody(output.body, context),
|
|
1109
|
-
};
|
|
1110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
-
switch (errorCode) {
|
|
1112
|
-
case "ClientException":
|
|
1113
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1114
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "EntityAlreadyExistsException":
|
|
1116
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
1117
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "EntityDoesNotExistException":
|
|
1119
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1120
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "InvalidParameterException":
|
|
1122
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1123
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ServiceException":
|
|
1125
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1126
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "UnsupportedOperationException":
|
|
1128
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1129
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1130
|
-
default:
|
|
1131
|
-
const parsedBody = parsedOutput.body;
|
|
1132
|
-
return throwDefaultError({
|
|
1133
|
-
output,
|
|
1134
|
-
parsedBody,
|
|
1135
|
-
errorCode,
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
};
|
|
1139
|
-
const de_DeleteConditionalForwarderCommand = async (output, context) => {
|
|
1140
|
-
if (output.statusCode >= 300) {
|
|
1141
|
-
return de_DeleteConditionalForwarderCommandError(output, context);
|
|
1142
|
-
}
|
|
1143
|
-
const data = await parseBody(output.body, context);
|
|
1144
|
-
let contents = {};
|
|
1145
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1146
|
-
const response = {
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
...contents,
|
|
1149
|
-
};
|
|
1150
|
-
return response;
|
|
1151
|
-
};
|
|
1152
|
-
exports.de_DeleteConditionalForwarderCommand = de_DeleteConditionalForwarderCommand;
|
|
1153
|
-
const de_DeleteConditionalForwarderCommandError = async (output, context) => {
|
|
1154
|
-
const parsedOutput = {
|
|
1155
|
-
...output,
|
|
1156
|
-
body: await parseErrorBody(output.body, context),
|
|
1157
|
-
};
|
|
1158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
-
switch (errorCode) {
|
|
1160
|
-
case "ClientException":
|
|
1161
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1162
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "DirectoryUnavailableException":
|
|
1164
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1165
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "EntityDoesNotExistException":
|
|
1167
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1168
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidParameterException":
|
|
1170
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1171
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ServiceException":
|
|
1173
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1174
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "UnsupportedOperationException":
|
|
1176
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1177
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode,
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
const de_DeleteDirectoryCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode >= 300) {
|
|
1189
|
-
return de_DeleteDirectoryCommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const data = await parseBody(output.body, context);
|
|
1192
|
-
let contents = {};
|
|
1193
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1194
|
-
const response = {
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
...contents,
|
|
1197
|
-
};
|
|
1198
|
-
return response;
|
|
1199
|
-
};
|
|
1200
|
-
exports.de_DeleteDirectoryCommand = de_DeleteDirectoryCommand;
|
|
1201
|
-
const de_DeleteDirectoryCommandError = async (output, context) => {
|
|
1202
|
-
const parsedOutput = {
|
|
1203
|
-
...output,
|
|
1204
|
-
body: await parseErrorBody(output.body, context),
|
|
1205
|
-
};
|
|
1206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
-
switch (errorCode) {
|
|
1208
|
-
case "ClientException":
|
|
1209
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1210
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "EntityDoesNotExistException":
|
|
1212
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1213
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ServiceException":
|
|
1215
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1216
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1217
|
-
default:
|
|
1218
|
-
const parsedBody = parsedOutput.body;
|
|
1219
|
-
return throwDefaultError({
|
|
1220
|
-
output,
|
|
1221
|
-
parsedBody,
|
|
1222
|
-
errorCode,
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
|
-
const de_DeleteLogSubscriptionCommand = async (output, context) => {
|
|
1227
|
-
if (output.statusCode >= 300) {
|
|
1228
|
-
return de_DeleteLogSubscriptionCommandError(output, context);
|
|
1229
|
-
}
|
|
1230
|
-
const data = await parseBody(output.body, context);
|
|
1231
|
-
let contents = {};
|
|
1232
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1233
|
-
const response = {
|
|
1234
|
-
$metadata: deserializeMetadata(output),
|
|
1235
|
-
...contents,
|
|
1236
|
-
};
|
|
1237
|
-
return response;
|
|
1238
|
-
};
|
|
1239
|
-
exports.de_DeleteLogSubscriptionCommand = de_DeleteLogSubscriptionCommand;
|
|
1240
|
-
const de_DeleteLogSubscriptionCommandError = async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context),
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "ClientException":
|
|
1248
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1249
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "EntityDoesNotExistException":
|
|
1251
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1252
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ServiceException":
|
|
1254
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1255
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "UnsupportedOperationException":
|
|
1257
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1258
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode,
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
const de_DeleteSnapshotCommand = async (output, context) => {
|
|
1269
|
-
if (output.statusCode >= 300) {
|
|
1270
|
-
return de_DeleteSnapshotCommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const data = await parseBody(output.body, context);
|
|
1273
|
-
let contents = {};
|
|
1274
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1275
|
-
const response = {
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
...contents,
|
|
1278
|
-
};
|
|
1279
|
-
return response;
|
|
1280
|
-
};
|
|
1281
|
-
exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
|
|
1282
|
-
const de_DeleteSnapshotCommandError = async (output, context) => {
|
|
1283
|
-
const parsedOutput = {
|
|
1284
|
-
...output,
|
|
1285
|
-
body: await parseErrorBody(output.body, context),
|
|
1286
|
-
};
|
|
1287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
-
switch (errorCode) {
|
|
1289
|
-
case "ClientException":
|
|
1290
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1291
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "EntityDoesNotExistException":
|
|
1293
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1294
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InvalidParameterException":
|
|
1296
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1297
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ServiceException":
|
|
1299
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1300
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1301
|
-
default:
|
|
1302
|
-
const parsedBody = parsedOutput.body;
|
|
1303
|
-
return throwDefaultError({
|
|
1304
|
-
output,
|
|
1305
|
-
parsedBody,
|
|
1306
|
-
errorCode,
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
};
|
|
1310
|
-
const de_DeleteTrustCommand = async (output, context) => {
|
|
1311
|
-
if (output.statusCode >= 300) {
|
|
1312
|
-
return de_DeleteTrustCommandError(output, context);
|
|
1313
|
-
}
|
|
1314
|
-
const data = await parseBody(output.body, context);
|
|
1315
|
-
let contents = {};
|
|
1316
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1317
|
-
const response = {
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
...contents,
|
|
1320
|
-
};
|
|
1321
|
-
return response;
|
|
1322
|
-
};
|
|
1323
|
-
exports.de_DeleteTrustCommand = de_DeleteTrustCommand;
|
|
1324
|
-
const de_DeleteTrustCommandError = async (output, context) => {
|
|
1325
|
-
const parsedOutput = {
|
|
1326
|
-
...output,
|
|
1327
|
-
body: await parseErrorBody(output.body, context),
|
|
1328
|
-
};
|
|
1329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
-
switch (errorCode) {
|
|
1331
|
-
case "ClientException":
|
|
1332
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1333
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "EntityDoesNotExistException":
|
|
1335
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1336
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InvalidParameterException":
|
|
1338
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1339
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ServiceException":
|
|
1341
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1342
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "UnsupportedOperationException":
|
|
1344
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1345
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1346
|
-
default:
|
|
1347
|
-
const parsedBody = parsedOutput.body;
|
|
1348
|
-
return throwDefaultError({
|
|
1349
|
-
output,
|
|
1350
|
-
parsedBody,
|
|
1351
|
-
errorCode,
|
|
1352
|
-
});
|
|
1353
|
-
}
|
|
1354
|
-
};
|
|
1355
|
-
const de_DeregisterCertificateCommand = async (output, context) => {
|
|
1356
|
-
if (output.statusCode >= 300) {
|
|
1357
|
-
return de_DeregisterCertificateCommandError(output, context);
|
|
1358
|
-
}
|
|
1359
|
-
const data = await parseBody(output.body, context);
|
|
1360
|
-
let contents = {};
|
|
1361
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1362
|
-
const response = {
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
...contents,
|
|
1365
|
-
};
|
|
1366
|
-
return response;
|
|
1367
|
-
};
|
|
1368
|
-
exports.de_DeregisterCertificateCommand = de_DeregisterCertificateCommand;
|
|
1369
|
-
const de_DeregisterCertificateCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "CertificateDoesNotExistException":
|
|
1377
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
1378
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "CertificateInUseException":
|
|
1380
|
-
case "com.amazonaws.directoryservice#CertificateInUseException":
|
|
1381
|
-
throw await de_CertificateInUseExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ClientException":
|
|
1383
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1384
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "DirectoryDoesNotExistException":
|
|
1386
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1387
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "DirectoryUnavailableException":
|
|
1389
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1390
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1391
|
-
case "InvalidParameterException":
|
|
1392
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1393
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1394
|
-
case "ServiceException":
|
|
1395
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1396
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1397
|
-
case "UnsupportedOperationException":
|
|
1398
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1399
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1400
|
-
default:
|
|
1401
|
-
const parsedBody = parsedOutput.body;
|
|
1402
|
-
return throwDefaultError({
|
|
1403
|
-
output,
|
|
1404
|
-
parsedBody,
|
|
1405
|
-
errorCode,
|
|
1406
|
-
});
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
const de_DeregisterEventTopicCommand = async (output, context) => {
|
|
1410
|
-
if (output.statusCode >= 300) {
|
|
1411
|
-
return de_DeregisterEventTopicCommandError(output, context);
|
|
1412
|
-
}
|
|
1413
|
-
const data = await parseBody(output.body, context);
|
|
1414
|
-
let contents = {};
|
|
1415
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1416
|
-
const response = {
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1418
|
-
...contents,
|
|
1419
|
-
};
|
|
1420
|
-
return response;
|
|
1421
|
-
};
|
|
1422
|
-
exports.de_DeregisterEventTopicCommand = de_DeregisterEventTopicCommand;
|
|
1423
|
-
const de_DeregisterEventTopicCommandError = async (output, context) => {
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context),
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "ClientException":
|
|
1431
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1432
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "EntityDoesNotExistException":
|
|
1434
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1435
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "InvalidParameterException":
|
|
1437
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1438
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ServiceException":
|
|
1440
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1441
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode,
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
const de_DescribeCertificateCommand = async (output, context) => {
|
|
1452
|
-
if (output.statusCode >= 300) {
|
|
1453
|
-
return de_DescribeCertificateCommandError(output, context);
|
|
1454
|
-
}
|
|
1455
|
-
const data = await parseBody(output.body, context);
|
|
1456
|
-
let contents = {};
|
|
1457
|
-
contents = de_DescribeCertificateResult(data, context);
|
|
1458
|
-
const response = {
|
|
1459
|
-
$metadata: deserializeMetadata(output),
|
|
1460
|
-
...contents,
|
|
1461
|
-
};
|
|
1462
|
-
return response;
|
|
1463
|
-
};
|
|
1464
|
-
exports.de_DescribeCertificateCommand = de_DescribeCertificateCommand;
|
|
1465
|
-
const de_DescribeCertificateCommandError = async (output, context) => {
|
|
1466
|
-
const parsedOutput = {
|
|
1467
|
-
...output,
|
|
1468
|
-
body: await parseErrorBody(output.body, context),
|
|
1469
|
-
};
|
|
1470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
-
switch (errorCode) {
|
|
1472
|
-
case "CertificateDoesNotExistException":
|
|
1473
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
1474
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ClientException":
|
|
1476
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1477
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "DirectoryDoesNotExistException":
|
|
1479
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1480
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "InvalidParameterException":
|
|
1482
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1483
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ServiceException":
|
|
1485
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1486
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "UnsupportedOperationException":
|
|
1488
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1489
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1490
|
-
default:
|
|
1491
|
-
const parsedBody = parsedOutput.body;
|
|
1492
|
-
return throwDefaultError({
|
|
1493
|
-
output,
|
|
1494
|
-
parsedBody,
|
|
1495
|
-
errorCode,
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
|
-
const de_DescribeClientAuthenticationSettingsCommand = async (output, context) => {
|
|
1500
|
-
if (output.statusCode >= 300) {
|
|
1501
|
-
return de_DescribeClientAuthenticationSettingsCommandError(output, context);
|
|
1502
|
-
}
|
|
1503
|
-
const data = await parseBody(output.body, context);
|
|
1504
|
-
let contents = {};
|
|
1505
|
-
contents = de_DescribeClientAuthenticationSettingsResult(data, context);
|
|
1506
|
-
const response = {
|
|
1507
|
-
$metadata: deserializeMetadata(output),
|
|
1508
|
-
...contents,
|
|
1509
|
-
};
|
|
1510
|
-
return response;
|
|
1511
|
-
};
|
|
1512
|
-
exports.de_DescribeClientAuthenticationSettingsCommand = de_DescribeClientAuthenticationSettingsCommand;
|
|
1513
|
-
const de_DescribeClientAuthenticationSettingsCommandError = async (output, context) => {
|
|
1514
|
-
const parsedOutput = {
|
|
1515
|
-
...output,
|
|
1516
|
-
body: await parseErrorBody(output.body, context),
|
|
1517
|
-
};
|
|
1518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
-
switch (errorCode) {
|
|
1520
|
-
case "AccessDeniedException":
|
|
1521
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1522
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ClientException":
|
|
1524
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1525
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "DirectoryDoesNotExistException":
|
|
1527
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1528
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "InvalidParameterException":
|
|
1530
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1531
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ServiceException":
|
|
1533
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1534
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "UnsupportedOperationException":
|
|
1536
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1537
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
const de_DescribeConditionalForwardersCommand = async (output, context) => {
|
|
1548
|
-
if (output.statusCode >= 300) {
|
|
1549
|
-
return de_DescribeConditionalForwardersCommandError(output, context);
|
|
1550
|
-
}
|
|
1551
|
-
const data = await parseBody(output.body, context);
|
|
1552
|
-
let contents = {};
|
|
1553
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1554
|
-
const response = {
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
...contents,
|
|
1557
|
-
};
|
|
1558
|
-
return response;
|
|
1559
|
-
};
|
|
1560
|
-
exports.de_DescribeConditionalForwardersCommand = de_DescribeConditionalForwardersCommand;
|
|
1561
|
-
const de_DescribeConditionalForwardersCommandError = async (output, context) => {
|
|
1562
|
-
const parsedOutput = {
|
|
1563
|
-
...output,
|
|
1564
|
-
body: await parseErrorBody(output.body, context),
|
|
1565
|
-
};
|
|
1566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
-
switch (errorCode) {
|
|
1568
|
-
case "ClientException":
|
|
1569
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1570
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "DirectoryUnavailableException":
|
|
1572
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1573
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "EntityDoesNotExistException":
|
|
1575
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1576
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "InvalidParameterException":
|
|
1578
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1579
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ServiceException":
|
|
1581
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1582
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "UnsupportedOperationException":
|
|
1584
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1585
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1586
|
-
default:
|
|
1587
|
-
const parsedBody = parsedOutput.body;
|
|
1588
|
-
return throwDefaultError({
|
|
1589
|
-
output,
|
|
1590
|
-
parsedBody,
|
|
1591
|
-
errorCode,
|
|
1592
|
-
});
|
|
1593
|
-
}
|
|
1594
|
-
};
|
|
1595
|
-
const de_DescribeDirectoriesCommand = async (output, context) => {
|
|
1596
|
-
if (output.statusCode >= 300) {
|
|
1597
|
-
return de_DescribeDirectoriesCommandError(output, context);
|
|
1598
|
-
}
|
|
1599
|
-
const data = await parseBody(output.body, context);
|
|
1600
|
-
let contents = {};
|
|
1601
|
-
contents = de_DescribeDirectoriesResult(data, context);
|
|
1602
|
-
const response = {
|
|
1603
|
-
$metadata: deserializeMetadata(output),
|
|
1604
|
-
...contents,
|
|
1605
|
-
};
|
|
1606
|
-
return response;
|
|
1607
|
-
};
|
|
1608
|
-
exports.de_DescribeDirectoriesCommand = de_DescribeDirectoriesCommand;
|
|
1609
|
-
const de_DescribeDirectoriesCommandError = async (output, context) => {
|
|
1610
|
-
const parsedOutput = {
|
|
1611
|
-
...output,
|
|
1612
|
-
body: await parseErrorBody(output.body, context),
|
|
1613
|
-
};
|
|
1614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
|
-
switch (errorCode) {
|
|
1616
|
-
case "ClientException":
|
|
1617
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1618
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "EntityDoesNotExistException":
|
|
1620
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1621
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "InvalidNextTokenException":
|
|
1623
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1624
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "InvalidParameterException":
|
|
1626
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1627
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ServiceException":
|
|
1629
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1630
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1631
|
-
default:
|
|
1632
|
-
const parsedBody = parsedOutput.body;
|
|
1633
|
-
return throwDefaultError({
|
|
1634
|
-
output,
|
|
1635
|
-
parsedBody,
|
|
1636
|
-
errorCode,
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
};
|
|
1640
|
-
const de_DescribeDomainControllersCommand = async (output, context) => {
|
|
1641
|
-
if (output.statusCode >= 300) {
|
|
1642
|
-
return de_DescribeDomainControllersCommandError(output, context);
|
|
1643
|
-
}
|
|
1644
|
-
const data = await parseBody(output.body, context);
|
|
1645
|
-
let contents = {};
|
|
1646
|
-
contents = de_DescribeDomainControllersResult(data, context);
|
|
1647
|
-
const response = {
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
...contents,
|
|
1650
|
-
};
|
|
1651
|
-
return response;
|
|
1652
|
-
};
|
|
1653
|
-
exports.de_DescribeDomainControllersCommand = de_DescribeDomainControllersCommand;
|
|
1654
|
-
const de_DescribeDomainControllersCommandError = async (output, context) => {
|
|
1655
|
-
const parsedOutput = {
|
|
1656
|
-
...output,
|
|
1657
|
-
body: await parseErrorBody(output.body, context),
|
|
1658
|
-
};
|
|
1659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
-
switch (errorCode) {
|
|
1661
|
-
case "ClientException":
|
|
1662
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1663
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "EntityDoesNotExistException":
|
|
1665
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1666
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InvalidNextTokenException":
|
|
1668
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1669
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "InvalidParameterException":
|
|
1671
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1672
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ServiceException":
|
|
1674
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1675
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "UnsupportedOperationException":
|
|
1677
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1678
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1679
|
-
default:
|
|
1680
|
-
const parsedBody = parsedOutput.body;
|
|
1681
|
-
return throwDefaultError({
|
|
1682
|
-
output,
|
|
1683
|
-
parsedBody,
|
|
1684
|
-
errorCode,
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
};
|
|
1688
|
-
const de_DescribeEventTopicsCommand = async (output, context) => {
|
|
1689
|
-
if (output.statusCode >= 300) {
|
|
1690
|
-
return de_DescribeEventTopicsCommandError(output, context);
|
|
1691
|
-
}
|
|
1692
|
-
const data = await parseBody(output.body, context);
|
|
1693
|
-
let contents = {};
|
|
1694
|
-
contents = de_DescribeEventTopicsResult(data, context);
|
|
1695
|
-
const response = {
|
|
1696
|
-
$metadata: deserializeMetadata(output),
|
|
1697
|
-
...contents,
|
|
1698
|
-
};
|
|
1699
|
-
return response;
|
|
1700
|
-
};
|
|
1701
|
-
exports.de_DescribeEventTopicsCommand = de_DescribeEventTopicsCommand;
|
|
1702
|
-
const de_DescribeEventTopicsCommandError = async (output, context) => {
|
|
1703
|
-
const parsedOutput = {
|
|
1704
|
-
...output,
|
|
1705
|
-
body: await parseErrorBody(output.body, context),
|
|
1706
|
-
};
|
|
1707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
|
-
switch (errorCode) {
|
|
1709
|
-
case "ClientException":
|
|
1710
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1711
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "EntityDoesNotExistException":
|
|
1713
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1714
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "InvalidParameterException":
|
|
1716
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1717
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ServiceException":
|
|
1719
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1720
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1721
|
-
default:
|
|
1722
|
-
const parsedBody = parsedOutput.body;
|
|
1723
|
-
return throwDefaultError({
|
|
1724
|
-
output,
|
|
1725
|
-
parsedBody,
|
|
1726
|
-
errorCode,
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
};
|
|
1730
|
-
const de_DescribeLDAPSSettingsCommand = async (output, context) => {
|
|
1731
|
-
if (output.statusCode >= 300) {
|
|
1732
|
-
return de_DescribeLDAPSSettingsCommandError(output, context);
|
|
1733
|
-
}
|
|
1734
|
-
const data = await parseBody(output.body, context);
|
|
1735
|
-
let contents = {};
|
|
1736
|
-
contents = de_DescribeLDAPSSettingsResult(data, context);
|
|
1737
|
-
const response = {
|
|
1738
|
-
$metadata: deserializeMetadata(output),
|
|
1739
|
-
...contents,
|
|
1740
|
-
};
|
|
1741
|
-
return response;
|
|
1742
|
-
};
|
|
1743
|
-
exports.de_DescribeLDAPSSettingsCommand = de_DescribeLDAPSSettingsCommand;
|
|
1744
|
-
const de_DescribeLDAPSSettingsCommandError = async (output, context) => {
|
|
1745
|
-
const parsedOutput = {
|
|
1746
|
-
...output,
|
|
1747
|
-
body: await parseErrorBody(output.body, context),
|
|
1748
|
-
};
|
|
1749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
|
-
switch (errorCode) {
|
|
1751
|
-
case "ClientException":
|
|
1752
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1753
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "DirectoryDoesNotExistException":
|
|
1755
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1756
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "InvalidNextTokenException":
|
|
1758
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1759
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "InvalidParameterException":
|
|
1761
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1762
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "ServiceException":
|
|
1764
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1765
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "UnsupportedOperationException":
|
|
1767
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1768
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody,
|
|
1774
|
-
errorCode,
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
};
|
|
1778
|
-
const de_DescribeRegionsCommand = async (output, context) => {
|
|
1779
|
-
if (output.statusCode >= 300) {
|
|
1780
|
-
return de_DescribeRegionsCommandError(output, context);
|
|
1781
|
-
}
|
|
1782
|
-
const data = await parseBody(output.body, context);
|
|
1783
|
-
let contents = {};
|
|
1784
|
-
contents = de_DescribeRegionsResult(data, context);
|
|
1785
|
-
const response = {
|
|
1786
|
-
$metadata: deserializeMetadata(output),
|
|
1787
|
-
...contents,
|
|
1788
|
-
};
|
|
1789
|
-
return response;
|
|
1790
|
-
};
|
|
1791
|
-
exports.de_DescribeRegionsCommand = de_DescribeRegionsCommand;
|
|
1792
|
-
const de_DescribeRegionsCommandError = async (output, context) => {
|
|
1793
|
-
const parsedOutput = {
|
|
1794
|
-
...output,
|
|
1795
|
-
body: await parseErrorBody(output.body, context),
|
|
1796
|
-
};
|
|
1797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1798
|
-
switch (errorCode) {
|
|
1799
|
-
case "AccessDeniedException":
|
|
1800
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "ClientException":
|
|
1803
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1804
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "DirectoryDoesNotExistException":
|
|
1806
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1807
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "InvalidNextTokenException":
|
|
1809
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1810
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "InvalidParameterException":
|
|
1812
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1813
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ServiceException":
|
|
1815
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1816
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "UnsupportedOperationException":
|
|
1818
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1819
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1820
|
-
default:
|
|
1821
|
-
const parsedBody = parsedOutput.body;
|
|
1822
|
-
return throwDefaultError({
|
|
1823
|
-
output,
|
|
1824
|
-
parsedBody,
|
|
1825
|
-
errorCode,
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
};
|
|
1829
|
-
const de_DescribeSettingsCommand = async (output, context) => {
|
|
1830
|
-
if (output.statusCode >= 300) {
|
|
1831
|
-
return de_DescribeSettingsCommandError(output, context);
|
|
1832
|
-
}
|
|
1833
|
-
const data = await parseBody(output.body, context);
|
|
1834
|
-
let contents = {};
|
|
1835
|
-
contents = de_DescribeSettingsResult(data, context);
|
|
1836
|
-
const response = {
|
|
1837
|
-
$metadata: deserializeMetadata(output),
|
|
1838
|
-
...contents,
|
|
1839
|
-
};
|
|
1840
|
-
return response;
|
|
1841
|
-
};
|
|
1842
|
-
exports.de_DescribeSettingsCommand = de_DescribeSettingsCommand;
|
|
1843
|
-
const de_DescribeSettingsCommandError = async (output, context) => {
|
|
1844
|
-
const parsedOutput = {
|
|
1845
|
-
...output,
|
|
1846
|
-
body: await parseErrorBody(output.body, context),
|
|
1847
|
-
};
|
|
1848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
|
-
switch (errorCode) {
|
|
1850
|
-
case "ClientException":
|
|
1851
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1852
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "DirectoryDoesNotExistException":
|
|
1854
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1855
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "InvalidNextTokenException":
|
|
1857
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1858
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "InvalidParameterException":
|
|
1860
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1861
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ServiceException":
|
|
1863
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1864
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "UnsupportedOperationException":
|
|
1866
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1867
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1868
|
-
default:
|
|
1869
|
-
const parsedBody = parsedOutput.body;
|
|
1870
|
-
return throwDefaultError({
|
|
1871
|
-
output,
|
|
1872
|
-
parsedBody,
|
|
1873
|
-
errorCode,
|
|
1874
|
-
});
|
|
1875
|
-
}
|
|
1876
|
-
};
|
|
1877
|
-
const de_DescribeSharedDirectoriesCommand = async (output, context) => {
|
|
1878
|
-
if (output.statusCode >= 300) {
|
|
1879
|
-
return de_DescribeSharedDirectoriesCommandError(output, context);
|
|
1880
|
-
}
|
|
1881
|
-
const data = await parseBody(output.body, context);
|
|
1882
|
-
let contents = {};
|
|
1883
|
-
contents = de_DescribeSharedDirectoriesResult(data, context);
|
|
1884
|
-
const response = {
|
|
1885
|
-
$metadata: deserializeMetadata(output),
|
|
1886
|
-
...contents,
|
|
1887
|
-
};
|
|
1888
|
-
return response;
|
|
1889
|
-
};
|
|
1890
|
-
exports.de_DescribeSharedDirectoriesCommand = de_DescribeSharedDirectoriesCommand;
|
|
1891
|
-
const de_DescribeSharedDirectoriesCommandError = async (output, context) => {
|
|
1892
|
-
const parsedOutput = {
|
|
1893
|
-
...output,
|
|
1894
|
-
body: await parseErrorBody(output.body, context),
|
|
1895
|
-
};
|
|
1896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
|
-
switch (errorCode) {
|
|
1898
|
-
case "ClientException":
|
|
1899
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1900
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "EntityDoesNotExistException":
|
|
1902
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1903
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "InvalidNextTokenException":
|
|
1905
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1906
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "InvalidParameterException":
|
|
1908
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1909
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceException":
|
|
1911
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1912
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "UnsupportedOperationException":
|
|
1914
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1915
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1916
|
-
default:
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode,
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
};
|
|
1925
|
-
const de_DescribeSnapshotsCommand = async (output, context) => {
|
|
1926
|
-
if (output.statusCode >= 300) {
|
|
1927
|
-
return de_DescribeSnapshotsCommandError(output, context);
|
|
1928
|
-
}
|
|
1929
|
-
const data = await parseBody(output.body, context);
|
|
1930
|
-
let contents = {};
|
|
1931
|
-
contents = de_DescribeSnapshotsResult(data, context);
|
|
1932
|
-
const response = {
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
...contents,
|
|
1935
|
-
};
|
|
1936
|
-
return response;
|
|
1937
|
-
};
|
|
1938
|
-
exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
|
|
1939
|
-
const de_DescribeSnapshotsCommandError = async (output, context) => {
|
|
1940
|
-
const parsedOutput = {
|
|
1941
|
-
...output,
|
|
1942
|
-
body: await parseErrorBody(output.body, context),
|
|
1943
|
-
};
|
|
1944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
|
-
switch (errorCode) {
|
|
1946
|
-
case "ClientException":
|
|
1947
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1948
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "EntityDoesNotExistException":
|
|
1950
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1951
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "InvalidNextTokenException":
|
|
1953
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1954
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "InvalidParameterException":
|
|
1956
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1957
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ServiceException":
|
|
1959
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1960
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode,
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
const de_DescribeTrustsCommand = async (output, context) => {
|
|
1971
|
-
if (output.statusCode >= 300) {
|
|
1972
|
-
return de_DescribeTrustsCommandError(output, context);
|
|
1973
|
-
}
|
|
1974
|
-
const data = await parseBody(output.body, context);
|
|
1975
|
-
let contents = {};
|
|
1976
|
-
contents = de_DescribeTrustsResult(data, context);
|
|
1977
|
-
const response = {
|
|
1978
|
-
$metadata: deserializeMetadata(output),
|
|
1979
|
-
...contents,
|
|
1980
|
-
};
|
|
1981
|
-
return response;
|
|
1982
|
-
};
|
|
1983
|
-
exports.de_DescribeTrustsCommand = de_DescribeTrustsCommand;
|
|
1984
|
-
const de_DescribeTrustsCommandError = async (output, context) => {
|
|
1985
|
-
const parsedOutput = {
|
|
1986
|
-
...output,
|
|
1987
|
-
body: await parseErrorBody(output.body, context),
|
|
1988
|
-
};
|
|
1989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
|
-
switch (errorCode) {
|
|
1991
|
-
case "ClientException":
|
|
1992
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1993
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "EntityDoesNotExistException":
|
|
1995
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1996
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "InvalidNextTokenException":
|
|
1998
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
1999
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "InvalidParameterException":
|
|
2001
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2002
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ServiceException":
|
|
2004
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2005
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "UnsupportedOperationException":
|
|
2007
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2008
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2009
|
-
default:
|
|
2010
|
-
const parsedBody = parsedOutput.body;
|
|
2011
|
-
return throwDefaultError({
|
|
2012
|
-
output,
|
|
2013
|
-
parsedBody,
|
|
2014
|
-
errorCode,
|
|
2015
|
-
});
|
|
2016
|
-
}
|
|
2017
|
-
};
|
|
2018
|
-
const de_DescribeUpdateDirectoryCommand = async (output, context) => {
|
|
2019
|
-
if (output.statusCode >= 300) {
|
|
2020
|
-
return de_DescribeUpdateDirectoryCommandError(output, context);
|
|
2021
|
-
}
|
|
2022
|
-
const data = await parseBody(output.body, context);
|
|
2023
|
-
let contents = {};
|
|
2024
|
-
contents = de_DescribeUpdateDirectoryResult(data, context);
|
|
2025
|
-
const response = {
|
|
2026
|
-
$metadata: deserializeMetadata(output),
|
|
2027
|
-
...contents,
|
|
2028
|
-
};
|
|
2029
|
-
return response;
|
|
2030
|
-
};
|
|
2031
|
-
exports.de_DescribeUpdateDirectoryCommand = de_DescribeUpdateDirectoryCommand;
|
|
2032
|
-
const de_DescribeUpdateDirectoryCommandError = async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context),
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "AccessDeniedException":
|
|
2040
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "ClientException":
|
|
2043
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2044
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "DirectoryDoesNotExistException":
|
|
2046
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2047
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "InvalidNextTokenException":
|
|
2049
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2050
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "InvalidParameterException":
|
|
2052
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2053
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ServiceException":
|
|
2055
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2056
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2057
|
-
default:
|
|
2058
|
-
const parsedBody = parsedOutput.body;
|
|
2059
|
-
return throwDefaultError({
|
|
2060
|
-
output,
|
|
2061
|
-
parsedBody,
|
|
2062
|
-
errorCode,
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
};
|
|
2066
|
-
const de_DisableClientAuthenticationCommand = async (output, context) => {
|
|
2067
|
-
if (output.statusCode >= 300) {
|
|
2068
|
-
return de_DisableClientAuthenticationCommandError(output, context);
|
|
2069
|
-
}
|
|
2070
|
-
const data = await parseBody(output.body, context);
|
|
2071
|
-
let contents = {};
|
|
2072
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2073
|
-
const response = {
|
|
2074
|
-
$metadata: deserializeMetadata(output),
|
|
2075
|
-
...contents,
|
|
2076
|
-
};
|
|
2077
|
-
return response;
|
|
2078
|
-
};
|
|
2079
|
-
exports.de_DisableClientAuthenticationCommand = de_DisableClientAuthenticationCommand;
|
|
2080
|
-
const de_DisableClientAuthenticationCommandError = async (output, context) => {
|
|
2081
|
-
const parsedOutput = {
|
|
2082
|
-
...output,
|
|
2083
|
-
body: await parseErrorBody(output.body, context),
|
|
2084
|
-
};
|
|
2085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
-
switch (errorCode) {
|
|
2087
|
-
case "AccessDeniedException":
|
|
2088
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2089
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ClientException":
|
|
2091
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2092
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "DirectoryDoesNotExistException":
|
|
2094
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2095
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InvalidClientAuthStatusException":
|
|
2097
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
2098
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ServiceException":
|
|
2100
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2101
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "UnsupportedOperationException":
|
|
2103
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2104
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2105
|
-
default:
|
|
2106
|
-
const parsedBody = parsedOutput.body;
|
|
2107
|
-
return throwDefaultError({
|
|
2108
|
-
output,
|
|
2109
|
-
parsedBody,
|
|
2110
|
-
errorCode,
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
2114
|
-
const de_DisableLDAPSCommand = async (output, context) => {
|
|
2115
|
-
if (output.statusCode >= 300) {
|
|
2116
|
-
return de_DisableLDAPSCommandError(output, context);
|
|
2117
|
-
}
|
|
2118
|
-
const data = await parseBody(output.body, context);
|
|
2119
|
-
let contents = {};
|
|
2120
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2121
|
-
const response = {
|
|
2122
|
-
$metadata: deserializeMetadata(output),
|
|
2123
|
-
...contents,
|
|
2124
|
-
};
|
|
2125
|
-
return response;
|
|
2126
|
-
};
|
|
2127
|
-
exports.de_DisableLDAPSCommand = de_DisableLDAPSCommand;
|
|
2128
|
-
const de_DisableLDAPSCommandError = async (output, context) => {
|
|
2129
|
-
const parsedOutput = {
|
|
2130
|
-
...output,
|
|
2131
|
-
body: await parseErrorBody(output.body, context),
|
|
2132
|
-
};
|
|
2133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
|
-
switch (errorCode) {
|
|
2135
|
-
case "ClientException":
|
|
2136
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2137
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "DirectoryDoesNotExistException":
|
|
2139
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2140
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "DirectoryUnavailableException":
|
|
2142
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2143
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "InvalidLDAPSStatusException":
|
|
2145
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
2146
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "InvalidParameterException":
|
|
2148
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2149
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ServiceException":
|
|
2151
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2152
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "UnsupportedOperationException":
|
|
2154
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2155
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2156
|
-
default:
|
|
2157
|
-
const parsedBody = parsedOutput.body;
|
|
2158
|
-
return throwDefaultError({
|
|
2159
|
-
output,
|
|
2160
|
-
parsedBody,
|
|
2161
|
-
errorCode,
|
|
2162
|
-
});
|
|
2163
|
-
}
|
|
2164
|
-
};
|
|
2165
|
-
const de_DisableRadiusCommand = async (output, context) => {
|
|
2166
|
-
if (output.statusCode >= 300) {
|
|
2167
|
-
return de_DisableRadiusCommandError(output, context);
|
|
2168
|
-
}
|
|
2169
|
-
const data = await parseBody(output.body, context);
|
|
2170
|
-
let contents = {};
|
|
2171
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2172
|
-
const response = {
|
|
2173
|
-
$metadata: deserializeMetadata(output),
|
|
2174
|
-
...contents,
|
|
2175
|
-
};
|
|
2176
|
-
return response;
|
|
2177
|
-
};
|
|
2178
|
-
exports.de_DisableRadiusCommand = de_DisableRadiusCommand;
|
|
2179
|
-
const de_DisableRadiusCommandError = async (output, context) => {
|
|
2180
|
-
const parsedOutput = {
|
|
2181
|
-
...output,
|
|
2182
|
-
body: await parseErrorBody(output.body, context),
|
|
2183
|
-
};
|
|
2184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
|
-
switch (errorCode) {
|
|
2186
|
-
case "ClientException":
|
|
2187
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2188
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "EntityDoesNotExistException":
|
|
2190
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2191
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ServiceException":
|
|
2193
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2194
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2195
|
-
default:
|
|
2196
|
-
const parsedBody = parsedOutput.body;
|
|
2197
|
-
return throwDefaultError({
|
|
2198
|
-
output,
|
|
2199
|
-
parsedBody,
|
|
2200
|
-
errorCode,
|
|
2201
|
-
});
|
|
2202
|
-
}
|
|
2203
|
-
};
|
|
2204
|
-
const de_DisableSsoCommand = async (output, context) => {
|
|
2205
|
-
if (output.statusCode >= 300) {
|
|
2206
|
-
return de_DisableSsoCommandError(output, context);
|
|
2207
|
-
}
|
|
2208
|
-
const data = await parseBody(output.body, context);
|
|
2209
|
-
let contents = {};
|
|
2210
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2211
|
-
const response = {
|
|
2212
|
-
$metadata: deserializeMetadata(output),
|
|
2213
|
-
...contents,
|
|
2214
|
-
};
|
|
2215
|
-
return response;
|
|
2216
|
-
};
|
|
2217
|
-
exports.de_DisableSsoCommand = de_DisableSsoCommand;
|
|
2218
|
-
const de_DisableSsoCommandError = async (output, context) => {
|
|
2219
|
-
const parsedOutput = {
|
|
2220
|
-
...output,
|
|
2221
|
-
body: await parseErrorBody(output.body, context),
|
|
2222
|
-
};
|
|
2223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
-
switch (errorCode) {
|
|
2225
|
-
case "AuthenticationFailedException":
|
|
2226
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2227
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ClientException":
|
|
2229
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2230
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "EntityDoesNotExistException":
|
|
2232
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2233
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "InsufficientPermissionsException":
|
|
2235
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2236
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ServiceException":
|
|
2238
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2239
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2240
|
-
default:
|
|
2241
|
-
const parsedBody = parsedOutput.body;
|
|
2242
|
-
return throwDefaultError({
|
|
2243
|
-
output,
|
|
2244
|
-
parsedBody,
|
|
2245
|
-
errorCode,
|
|
2246
|
-
});
|
|
2247
|
-
}
|
|
2248
|
-
};
|
|
2249
|
-
const de_EnableClientAuthenticationCommand = async (output, context) => {
|
|
2250
|
-
if (output.statusCode >= 300) {
|
|
2251
|
-
return de_EnableClientAuthenticationCommandError(output, context);
|
|
2252
|
-
}
|
|
2253
|
-
const data = await parseBody(output.body, context);
|
|
2254
|
-
let contents = {};
|
|
2255
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2256
|
-
const response = {
|
|
2257
|
-
$metadata: deserializeMetadata(output),
|
|
2258
|
-
...contents,
|
|
2259
|
-
};
|
|
2260
|
-
return response;
|
|
2261
|
-
};
|
|
2262
|
-
exports.de_EnableClientAuthenticationCommand = de_EnableClientAuthenticationCommand;
|
|
2263
|
-
const de_EnableClientAuthenticationCommandError = async (output, context) => {
|
|
2264
|
-
const parsedOutput = {
|
|
2265
|
-
...output,
|
|
2266
|
-
body: await parseErrorBody(output.body, context),
|
|
2267
|
-
};
|
|
2268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
|
-
switch (errorCode) {
|
|
2270
|
-
case "AccessDeniedException":
|
|
2271
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2272
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ClientException":
|
|
2274
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2275
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "DirectoryDoesNotExistException":
|
|
2277
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2278
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "InvalidClientAuthStatusException":
|
|
2280
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
2281
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "NoAvailableCertificateException":
|
|
2283
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
2284
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ServiceException":
|
|
2286
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2287
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "UnsupportedOperationException":
|
|
2289
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2290
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode,
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
};
|
|
2300
|
-
const de_EnableLDAPSCommand = async (output, context) => {
|
|
2301
|
-
if (output.statusCode >= 300) {
|
|
2302
|
-
return de_EnableLDAPSCommandError(output, context);
|
|
2303
|
-
}
|
|
2304
|
-
const data = await parseBody(output.body, context);
|
|
2305
|
-
let contents = {};
|
|
2306
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2307
|
-
const response = {
|
|
2308
|
-
$metadata: deserializeMetadata(output),
|
|
2309
|
-
...contents,
|
|
2310
|
-
};
|
|
2311
|
-
return response;
|
|
2312
|
-
};
|
|
2313
|
-
exports.de_EnableLDAPSCommand = de_EnableLDAPSCommand;
|
|
2314
|
-
const de_EnableLDAPSCommandError = async (output, context) => {
|
|
2315
|
-
const parsedOutput = {
|
|
2316
|
-
...output,
|
|
2317
|
-
body: await parseErrorBody(output.body, context),
|
|
2318
|
-
};
|
|
2319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
|
-
switch (errorCode) {
|
|
2321
|
-
case "ClientException":
|
|
2322
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2323
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "DirectoryDoesNotExistException":
|
|
2325
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2326
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "DirectoryUnavailableException":
|
|
2328
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2329
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "InvalidLDAPSStatusException":
|
|
2331
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
2332
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "InvalidParameterException":
|
|
2334
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2335
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "NoAvailableCertificateException":
|
|
2337
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
2338
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ServiceException":
|
|
2340
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2341
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "UnsupportedOperationException":
|
|
2343
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2344
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2345
|
-
default:
|
|
2346
|
-
const parsedBody = parsedOutput.body;
|
|
2347
|
-
return throwDefaultError({
|
|
2348
|
-
output,
|
|
2349
|
-
parsedBody,
|
|
2350
|
-
errorCode,
|
|
2351
|
-
});
|
|
2352
|
-
}
|
|
2353
|
-
};
|
|
2354
|
-
const de_EnableRadiusCommand = async (output, context) => {
|
|
2355
|
-
if (output.statusCode >= 300) {
|
|
2356
|
-
return de_EnableRadiusCommandError(output, context);
|
|
2357
|
-
}
|
|
2358
|
-
const data = await parseBody(output.body, context);
|
|
2359
|
-
let contents = {};
|
|
2360
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2361
|
-
const response = {
|
|
2362
|
-
$metadata: deserializeMetadata(output),
|
|
2363
|
-
...contents,
|
|
2364
|
-
};
|
|
2365
|
-
return response;
|
|
2366
|
-
};
|
|
2367
|
-
exports.de_EnableRadiusCommand = de_EnableRadiusCommand;
|
|
2368
|
-
const de_EnableRadiusCommandError = async (output, context) => {
|
|
2369
|
-
const parsedOutput = {
|
|
2370
|
-
...output,
|
|
2371
|
-
body: await parseErrorBody(output.body, context),
|
|
2372
|
-
};
|
|
2373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
-
switch (errorCode) {
|
|
2375
|
-
case "ClientException":
|
|
2376
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2377
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2378
|
-
case "EntityAlreadyExistsException":
|
|
2379
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2380
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2381
|
-
case "EntityDoesNotExistException":
|
|
2382
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2383
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "InvalidParameterException":
|
|
2385
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2386
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "ServiceException":
|
|
2388
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2389
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2390
|
-
default:
|
|
2391
|
-
const parsedBody = parsedOutput.body;
|
|
2392
|
-
return throwDefaultError({
|
|
2393
|
-
output,
|
|
2394
|
-
parsedBody,
|
|
2395
|
-
errorCode,
|
|
2396
|
-
});
|
|
2397
|
-
}
|
|
2398
|
-
};
|
|
2399
|
-
const de_EnableSsoCommand = async (output, context) => {
|
|
2400
|
-
if (output.statusCode >= 300) {
|
|
2401
|
-
return de_EnableSsoCommandError(output, context);
|
|
2402
|
-
}
|
|
2403
|
-
const data = await parseBody(output.body, context);
|
|
2404
|
-
let contents = {};
|
|
2405
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2406
|
-
const response = {
|
|
2407
|
-
$metadata: deserializeMetadata(output),
|
|
2408
|
-
...contents,
|
|
2409
|
-
};
|
|
2410
|
-
return response;
|
|
2411
|
-
};
|
|
2412
|
-
exports.de_EnableSsoCommand = de_EnableSsoCommand;
|
|
2413
|
-
const de_EnableSsoCommandError = async (output, context) => {
|
|
2414
|
-
const parsedOutput = {
|
|
2415
|
-
...output,
|
|
2416
|
-
body: await parseErrorBody(output.body, context),
|
|
2417
|
-
};
|
|
2418
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
|
-
switch (errorCode) {
|
|
2420
|
-
case "AuthenticationFailedException":
|
|
2421
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2422
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ClientException":
|
|
2424
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2425
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "EntityDoesNotExistException":
|
|
2427
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2428
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "InsufficientPermissionsException":
|
|
2430
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2431
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ServiceException":
|
|
2433
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2434
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
};
|
|
2444
|
-
const de_GetDirectoryLimitsCommand = async (output, context) => {
|
|
2445
|
-
if (output.statusCode >= 300) {
|
|
2446
|
-
return de_GetDirectoryLimitsCommandError(output, context);
|
|
2447
|
-
}
|
|
2448
|
-
const data = await parseBody(output.body, context);
|
|
2449
|
-
let contents = {};
|
|
2450
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2451
|
-
const response = {
|
|
2452
|
-
$metadata: deserializeMetadata(output),
|
|
2453
|
-
...contents,
|
|
2454
|
-
};
|
|
2455
|
-
return response;
|
|
2456
|
-
};
|
|
2457
|
-
exports.de_GetDirectoryLimitsCommand = de_GetDirectoryLimitsCommand;
|
|
2458
|
-
const de_GetDirectoryLimitsCommandError = async (output, context) => {
|
|
2459
|
-
const parsedOutput = {
|
|
2460
|
-
...output,
|
|
2461
|
-
body: await parseErrorBody(output.body, context),
|
|
2462
|
-
};
|
|
2463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
|
-
switch (errorCode) {
|
|
2465
|
-
case "ClientException":
|
|
2466
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2467
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "EntityDoesNotExistException":
|
|
2469
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2470
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ServiceException":
|
|
2472
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2473
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2474
|
-
default:
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody,
|
|
2479
|
-
errorCode,
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
};
|
|
2483
|
-
const de_GetSnapshotLimitsCommand = async (output, context) => {
|
|
2484
|
-
if (output.statusCode >= 300) {
|
|
2485
|
-
return de_GetSnapshotLimitsCommandError(output, context);
|
|
2486
|
-
}
|
|
2487
|
-
const data = await parseBody(output.body, context);
|
|
2488
|
-
let contents = {};
|
|
2489
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2490
|
-
const response = {
|
|
2491
|
-
$metadata: deserializeMetadata(output),
|
|
2492
|
-
...contents,
|
|
2493
|
-
};
|
|
2494
|
-
return response;
|
|
2495
|
-
};
|
|
2496
|
-
exports.de_GetSnapshotLimitsCommand = de_GetSnapshotLimitsCommand;
|
|
2497
|
-
const de_GetSnapshotLimitsCommandError = async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context),
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "ClientException":
|
|
2505
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2506
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "EntityDoesNotExistException":
|
|
2508
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2509
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ServiceException":
|
|
2511
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2512
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2513
|
-
default:
|
|
2514
|
-
const parsedBody = parsedOutput.body;
|
|
2515
|
-
return throwDefaultError({
|
|
2516
|
-
output,
|
|
2517
|
-
parsedBody,
|
|
2518
|
-
errorCode,
|
|
2519
|
-
});
|
|
2520
|
-
}
|
|
2521
|
-
};
|
|
2522
|
-
const de_ListCertificatesCommand = async (output, context) => {
|
|
2523
|
-
if (output.statusCode >= 300) {
|
|
2524
|
-
return de_ListCertificatesCommandError(output, context);
|
|
2525
|
-
}
|
|
2526
|
-
const data = await parseBody(output.body, context);
|
|
2527
|
-
let contents = {};
|
|
2528
|
-
contents = de_ListCertificatesResult(data, context);
|
|
2529
|
-
const response = {
|
|
2530
|
-
$metadata: deserializeMetadata(output),
|
|
2531
|
-
...contents,
|
|
2532
|
-
};
|
|
2533
|
-
return response;
|
|
2534
|
-
};
|
|
2535
|
-
exports.de_ListCertificatesCommand = de_ListCertificatesCommand;
|
|
2536
|
-
const de_ListCertificatesCommandError = async (output, context) => {
|
|
2537
|
-
const parsedOutput = {
|
|
2538
|
-
...output,
|
|
2539
|
-
body: await parseErrorBody(output.body, context),
|
|
2540
|
-
};
|
|
2541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2542
|
-
switch (errorCode) {
|
|
2543
|
-
case "ClientException":
|
|
2544
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2545
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "DirectoryDoesNotExistException":
|
|
2547
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2548
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "InvalidNextTokenException":
|
|
2550
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2551
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "InvalidParameterException":
|
|
2553
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2554
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "ServiceException":
|
|
2556
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2557
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "UnsupportedOperationException":
|
|
2559
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2560
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2561
|
-
default:
|
|
2562
|
-
const parsedBody = parsedOutput.body;
|
|
2563
|
-
return throwDefaultError({
|
|
2564
|
-
output,
|
|
2565
|
-
parsedBody,
|
|
2566
|
-
errorCode,
|
|
2567
|
-
});
|
|
2568
|
-
}
|
|
2569
|
-
};
|
|
2570
|
-
const de_ListIpRoutesCommand = async (output, context) => {
|
|
2571
|
-
if (output.statusCode >= 300) {
|
|
2572
|
-
return de_ListIpRoutesCommandError(output, context);
|
|
2573
|
-
}
|
|
2574
|
-
const data = await parseBody(output.body, context);
|
|
2575
|
-
let contents = {};
|
|
2576
|
-
contents = de_ListIpRoutesResult(data, context);
|
|
2577
|
-
const response = {
|
|
2578
|
-
$metadata: deserializeMetadata(output),
|
|
2579
|
-
...contents,
|
|
2580
|
-
};
|
|
2581
|
-
return response;
|
|
2582
|
-
};
|
|
2583
|
-
exports.de_ListIpRoutesCommand = de_ListIpRoutesCommand;
|
|
2584
|
-
const de_ListIpRoutesCommandError = async (output, context) => {
|
|
2585
|
-
const parsedOutput = {
|
|
2586
|
-
...output,
|
|
2587
|
-
body: await parseErrorBody(output.body, context),
|
|
2588
|
-
};
|
|
2589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
-
switch (errorCode) {
|
|
2591
|
-
case "ClientException":
|
|
2592
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2593
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "EntityDoesNotExistException":
|
|
2595
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2596
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2597
|
-
case "InvalidNextTokenException":
|
|
2598
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2599
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "InvalidParameterException":
|
|
2601
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2602
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ServiceException":
|
|
2604
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2605
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2606
|
-
default:
|
|
2607
|
-
const parsedBody = parsedOutput.body;
|
|
2608
|
-
return throwDefaultError({
|
|
2609
|
-
output,
|
|
2610
|
-
parsedBody,
|
|
2611
|
-
errorCode,
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
|
-
const de_ListLogSubscriptionsCommand = async (output, context) => {
|
|
2616
|
-
if (output.statusCode >= 300) {
|
|
2617
|
-
return de_ListLogSubscriptionsCommandError(output, context);
|
|
2618
|
-
}
|
|
2619
|
-
const data = await parseBody(output.body, context);
|
|
2620
|
-
let contents = {};
|
|
2621
|
-
contents = de_ListLogSubscriptionsResult(data, context);
|
|
2622
|
-
const response = {
|
|
2623
|
-
$metadata: deserializeMetadata(output),
|
|
2624
|
-
...contents,
|
|
2625
|
-
};
|
|
2626
|
-
return response;
|
|
2627
|
-
};
|
|
2628
|
-
exports.de_ListLogSubscriptionsCommand = de_ListLogSubscriptionsCommand;
|
|
2629
|
-
const de_ListLogSubscriptionsCommandError = async (output, context) => {
|
|
2630
|
-
const parsedOutput = {
|
|
2631
|
-
...output,
|
|
2632
|
-
body: await parseErrorBody(output.body, context),
|
|
2633
|
-
};
|
|
2634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
|
-
switch (errorCode) {
|
|
2636
|
-
case "ClientException":
|
|
2637
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2638
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2639
|
-
case "EntityDoesNotExistException":
|
|
2640
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2641
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2642
|
-
case "InvalidNextTokenException":
|
|
2643
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2644
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "ServiceException":
|
|
2646
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2647
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2648
|
-
default:
|
|
2649
|
-
const parsedBody = parsedOutput.body;
|
|
2650
|
-
return throwDefaultError({
|
|
2651
|
-
output,
|
|
2652
|
-
parsedBody,
|
|
2653
|
-
errorCode,
|
|
2654
|
-
});
|
|
2655
|
-
}
|
|
2656
|
-
};
|
|
2657
|
-
const de_ListSchemaExtensionsCommand = async (output, context) => {
|
|
2658
|
-
if (output.statusCode >= 300) {
|
|
2659
|
-
return de_ListSchemaExtensionsCommandError(output, context);
|
|
2660
|
-
}
|
|
2661
|
-
const data = await parseBody(output.body, context);
|
|
2662
|
-
let contents = {};
|
|
2663
|
-
contents = de_ListSchemaExtensionsResult(data, context);
|
|
2664
|
-
const response = {
|
|
2665
|
-
$metadata: deserializeMetadata(output),
|
|
2666
|
-
...contents,
|
|
2667
|
-
};
|
|
2668
|
-
return response;
|
|
2669
|
-
};
|
|
2670
|
-
exports.de_ListSchemaExtensionsCommand = de_ListSchemaExtensionsCommand;
|
|
2671
|
-
const de_ListSchemaExtensionsCommandError = async (output, context) => {
|
|
2672
|
-
const parsedOutput = {
|
|
2673
|
-
...output,
|
|
2674
|
-
body: await parseErrorBody(output.body, context),
|
|
2675
|
-
};
|
|
2676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
-
switch (errorCode) {
|
|
2678
|
-
case "ClientException":
|
|
2679
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2680
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "EntityDoesNotExistException":
|
|
2682
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2683
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "InvalidNextTokenException":
|
|
2685
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2686
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "ServiceException":
|
|
2688
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2689
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode,
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
2698
|
-
};
|
|
2699
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2700
|
-
if (output.statusCode >= 300) {
|
|
2701
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2702
|
-
}
|
|
2703
|
-
const data = await parseBody(output.body, context);
|
|
2704
|
-
let contents = {};
|
|
2705
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2706
|
-
const response = {
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
...contents,
|
|
2709
|
-
};
|
|
2710
|
-
return response;
|
|
2711
|
-
};
|
|
2712
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2713
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2714
|
-
const parsedOutput = {
|
|
2715
|
-
...output,
|
|
2716
|
-
body: await parseErrorBody(output.body, context),
|
|
2717
|
-
};
|
|
2718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
-
switch (errorCode) {
|
|
2720
|
-
case "ClientException":
|
|
2721
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2722
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "EntityDoesNotExistException":
|
|
2724
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2725
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "InvalidNextTokenException":
|
|
2727
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2728
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "InvalidParameterException":
|
|
2730
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2731
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ServiceException":
|
|
2733
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2734
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2735
|
-
default:
|
|
2736
|
-
const parsedBody = parsedOutput.body;
|
|
2737
|
-
return throwDefaultError({
|
|
2738
|
-
output,
|
|
2739
|
-
parsedBody,
|
|
2740
|
-
errorCode,
|
|
2741
|
-
});
|
|
2742
|
-
}
|
|
2743
|
-
};
|
|
2744
|
-
const de_RegisterCertificateCommand = async (output, context) => {
|
|
2745
|
-
if (output.statusCode >= 300) {
|
|
2746
|
-
return de_RegisterCertificateCommandError(output, context);
|
|
2747
|
-
}
|
|
2748
|
-
const data = await parseBody(output.body, context);
|
|
2749
|
-
let contents = {};
|
|
2750
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2751
|
-
const response = {
|
|
2752
|
-
$metadata: deserializeMetadata(output),
|
|
2753
|
-
...contents,
|
|
2754
|
-
};
|
|
2755
|
-
return response;
|
|
2756
|
-
};
|
|
2757
|
-
exports.de_RegisterCertificateCommand = de_RegisterCertificateCommand;
|
|
2758
|
-
const de_RegisterCertificateCommandError = async (output, context) => {
|
|
2759
|
-
const parsedOutput = {
|
|
2760
|
-
...output,
|
|
2761
|
-
body: await parseErrorBody(output.body, context),
|
|
2762
|
-
};
|
|
2763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
|
-
switch (errorCode) {
|
|
2765
|
-
case "CertificateAlreadyExistsException":
|
|
2766
|
-
case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
|
|
2767
|
-
throw await de_CertificateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "CertificateLimitExceededException":
|
|
2769
|
-
case "com.amazonaws.directoryservice#CertificateLimitExceededException":
|
|
2770
|
-
throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "ClientException":
|
|
2772
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2773
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2774
|
-
case "DirectoryDoesNotExistException":
|
|
2775
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2776
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2777
|
-
case "DirectoryUnavailableException":
|
|
2778
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2779
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "InvalidCertificateException":
|
|
2781
|
-
case "com.amazonaws.directoryservice#InvalidCertificateException":
|
|
2782
|
-
throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "InvalidParameterException":
|
|
2784
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2785
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ServiceException":
|
|
2787
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2788
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "UnsupportedOperationException":
|
|
2790
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2791
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2792
|
-
default:
|
|
2793
|
-
const parsedBody = parsedOutput.body;
|
|
2794
|
-
return throwDefaultError({
|
|
2795
|
-
output,
|
|
2796
|
-
parsedBody,
|
|
2797
|
-
errorCode,
|
|
2798
|
-
});
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
2801
|
-
const de_RegisterEventTopicCommand = async (output, context) => {
|
|
2802
|
-
if (output.statusCode >= 300) {
|
|
2803
|
-
return de_RegisterEventTopicCommandError(output, context);
|
|
2804
|
-
}
|
|
2805
|
-
const data = await parseBody(output.body, context);
|
|
2806
|
-
let contents = {};
|
|
2807
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2808
|
-
const response = {
|
|
2809
|
-
$metadata: deserializeMetadata(output),
|
|
2810
|
-
...contents,
|
|
2811
|
-
};
|
|
2812
|
-
return response;
|
|
2813
|
-
};
|
|
2814
|
-
exports.de_RegisterEventTopicCommand = de_RegisterEventTopicCommand;
|
|
2815
|
-
const de_RegisterEventTopicCommandError = async (output, context) => {
|
|
2816
|
-
const parsedOutput = {
|
|
2817
|
-
...output,
|
|
2818
|
-
body: await parseErrorBody(output.body, context),
|
|
2819
|
-
};
|
|
2820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
|
-
switch (errorCode) {
|
|
2822
|
-
case "ClientException":
|
|
2823
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2824
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "EntityDoesNotExistException":
|
|
2826
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2827
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "InvalidParameterException":
|
|
2829
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2830
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ServiceException":
|
|
2832
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2833
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode,
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
};
|
|
2843
|
-
const de_RejectSharedDirectoryCommand = async (output, context) => {
|
|
2844
|
-
if (output.statusCode >= 300) {
|
|
2845
|
-
return de_RejectSharedDirectoryCommandError(output, context);
|
|
2846
|
-
}
|
|
2847
|
-
const data = await parseBody(output.body, context);
|
|
2848
|
-
let contents = {};
|
|
2849
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2850
|
-
const response = {
|
|
2851
|
-
$metadata: deserializeMetadata(output),
|
|
2852
|
-
...contents,
|
|
2853
|
-
};
|
|
2854
|
-
return response;
|
|
2855
|
-
};
|
|
2856
|
-
exports.de_RejectSharedDirectoryCommand = de_RejectSharedDirectoryCommand;
|
|
2857
|
-
const de_RejectSharedDirectoryCommandError = async (output, context) => {
|
|
2858
|
-
const parsedOutput = {
|
|
2859
|
-
...output,
|
|
2860
|
-
body: await parseErrorBody(output.body, context),
|
|
2861
|
-
};
|
|
2862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
|
-
switch (errorCode) {
|
|
2864
|
-
case "ClientException":
|
|
2865
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2866
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2867
|
-
case "DirectoryAlreadySharedException":
|
|
2868
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
2869
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
2870
|
-
case "EntityDoesNotExistException":
|
|
2871
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2872
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2873
|
-
case "InvalidParameterException":
|
|
2874
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2875
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2876
|
-
case "ServiceException":
|
|
2877
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2878
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2879
|
-
default:
|
|
2880
|
-
const parsedBody = parsedOutput.body;
|
|
2881
|
-
return throwDefaultError({
|
|
2882
|
-
output,
|
|
2883
|
-
parsedBody,
|
|
2884
|
-
errorCode,
|
|
2885
|
-
});
|
|
2886
|
-
}
|
|
2887
|
-
};
|
|
2888
|
-
const de_RemoveIpRoutesCommand = async (output, context) => {
|
|
2889
|
-
if (output.statusCode >= 300) {
|
|
2890
|
-
return de_RemoveIpRoutesCommandError(output, context);
|
|
2891
|
-
}
|
|
2892
|
-
const data = await parseBody(output.body, context);
|
|
2893
|
-
let contents = {};
|
|
2894
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2895
|
-
const response = {
|
|
2896
|
-
$metadata: deserializeMetadata(output),
|
|
2897
|
-
...contents,
|
|
2898
|
-
};
|
|
2899
|
-
return response;
|
|
2900
|
-
};
|
|
2901
|
-
exports.de_RemoveIpRoutesCommand = de_RemoveIpRoutesCommand;
|
|
2902
|
-
const de_RemoveIpRoutesCommandError = async (output, context) => {
|
|
2903
|
-
const parsedOutput = {
|
|
2904
|
-
...output,
|
|
2905
|
-
body: await parseErrorBody(output.body, context),
|
|
2906
|
-
};
|
|
2907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2908
|
-
switch (errorCode) {
|
|
2909
|
-
case "ClientException":
|
|
2910
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2911
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "DirectoryUnavailableException":
|
|
2913
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2914
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2915
|
-
case "EntityDoesNotExistException":
|
|
2916
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2917
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "InvalidParameterException":
|
|
2919
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2920
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "ServiceException":
|
|
2922
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2923
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2924
|
-
default:
|
|
2925
|
-
const parsedBody = parsedOutput.body;
|
|
2926
|
-
return throwDefaultError({
|
|
2927
|
-
output,
|
|
2928
|
-
parsedBody,
|
|
2929
|
-
errorCode,
|
|
2930
|
-
});
|
|
2931
|
-
}
|
|
2932
|
-
};
|
|
2933
|
-
const de_RemoveRegionCommand = async (output, context) => {
|
|
2934
|
-
if (output.statusCode >= 300) {
|
|
2935
|
-
return de_RemoveRegionCommandError(output, context);
|
|
2936
|
-
}
|
|
2937
|
-
const data = await parseBody(output.body, context);
|
|
2938
|
-
let contents = {};
|
|
2939
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2940
|
-
const response = {
|
|
2941
|
-
$metadata: deserializeMetadata(output),
|
|
2942
|
-
...contents,
|
|
2943
|
-
};
|
|
2944
|
-
return response;
|
|
2945
|
-
};
|
|
2946
|
-
exports.de_RemoveRegionCommand = de_RemoveRegionCommand;
|
|
2947
|
-
const de_RemoveRegionCommandError = async (output, context) => {
|
|
2948
|
-
const parsedOutput = {
|
|
2949
|
-
...output,
|
|
2950
|
-
body: await parseErrorBody(output.body, context),
|
|
2951
|
-
};
|
|
2952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
switch (errorCode) {
|
|
2954
|
-
case "AccessDeniedException":
|
|
2955
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2956
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ClientException":
|
|
2958
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2959
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "DirectoryDoesNotExistException":
|
|
2961
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2962
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "DirectoryUnavailableException":
|
|
2964
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2965
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "ServiceException":
|
|
2967
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2968
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "UnsupportedOperationException":
|
|
2970
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2971
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2972
|
-
default:
|
|
2973
|
-
const parsedBody = parsedOutput.body;
|
|
2974
|
-
return throwDefaultError({
|
|
2975
|
-
output,
|
|
2976
|
-
parsedBody,
|
|
2977
|
-
errorCode,
|
|
2978
|
-
});
|
|
2979
|
-
}
|
|
2980
|
-
};
|
|
2981
|
-
const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
2982
|
-
if (output.statusCode >= 300) {
|
|
2983
|
-
return de_RemoveTagsFromResourceCommandError(output, context);
|
|
2984
|
-
}
|
|
2985
|
-
const data = await parseBody(output.body, context);
|
|
2986
|
-
let contents = {};
|
|
2987
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2988
|
-
const response = {
|
|
2989
|
-
$metadata: deserializeMetadata(output),
|
|
2990
|
-
...contents,
|
|
2991
|
-
};
|
|
2992
|
-
return response;
|
|
2993
|
-
};
|
|
2994
|
-
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
2995
|
-
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
2996
|
-
const parsedOutput = {
|
|
2997
|
-
...output,
|
|
2998
|
-
body: await parseErrorBody(output.body, context),
|
|
2999
|
-
};
|
|
3000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3001
|
-
switch (errorCode) {
|
|
3002
|
-
case "ClientException":
|
|
3003
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3004
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3005
|
-
case "EntityDoesNotExistException":
|
|
3006
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3007
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "InvalidParameterException":
|
|
3009
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3010
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "ServiceException":
|
|
3012
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3013
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3014
|
-
default:
|
|
3015
|
-
const parsedBody = parsedOutput.body;
|
|
3016
|
-
return throwDefaultError({
|
|
3017
|
-
output,
|
|
3018
|
-
parsedBody,
|
|
3019
|
-
errorCode,
|
|
3020
|
-
});
|
|
3021
|
-
}
|
|
3022
|
-
};
|
|
3023
|
-
const de_ResetUserPasswordCommand = async (output, context) => {
|
|
3024
|
-
if (output.statusCode >= 300) {
|
|
3025
|
-
return de_ResetUserPasswordCommandError(output, context);
|
|
3026
|
-
}
|
|
3027
|
-
const data = await parseBody(output.body, context);
|
|
3028
|
-
let contents = {};
|
|
3029
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3030
|
-
const response = {
|
|
3031
|
-
$metadata: deserializeMetadata(output),
|
|
3032
|
-
...contents,
|
|
3033
|
-
};
|
|
3034
|
-
return response;
|
|
3035
|
-
};
|
|
3036
|
-
exports.de_ResetUserPasswordCommand = de_ResetUserPasswordCommand;
|
|
3037
|
-
const de_ResetUserPasswordCommandError = async (output, context) => {
|
|
3038
|
-
const parsedOutput = {
|
|
3039
|
-
...output,
|
|
3040
|
-
body: await parseErrorBody(output.body, context),
|
|
3041
|
-
};
|
|
3042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
-
switch (errorCode) {
|
|
3044
|
-
case "ClientException":
|
|
3045
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3046
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "DirectoryUnavailableException":
|
|
3048
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3049
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "EntityDoesNotExistException":
|
|
3051
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3052
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "InvalidPasswordException":
|
|
3054
|
-
case "com.amazonaws.directoryservice#InvalidPasswordException":
|
|
3055
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ServiceException":
|
|
3057
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3058
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "UnsupportedOperationException":
|
|
3060
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3061
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3062
|
-
case "UserDoesNotExistException":
|
|
3063
|
-
case "com.amazonaws.directoryservice#UserDoesNotExistException":
|
|
3064
|
-
throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
|
|
3065
|
-
default:
|
|
3066
|
-
const parsedBody = parsedOutput.body;
|
|
3067
|
-
return throwDefaultError({
|
|
3068
|
-
output,
|
|
3069
|
-
parsedBody,
|
|
3070
|
-
errorCode,
|
|
3071
|
-
});
|
|
3072
|
-
}
|
|
3073
|
-
};
|
|
3074
|
-
const de_RestoreFromSnapshotCommand = async (output, context) => {
|
|
3075
|
-
if (output.statusCode >= 300) {
|
|
3076
|
-
return de_RestoreFromSnapshotCommandError(output, context);
|
|
3077
|
-
}
|
|
3078
|
-
const data = await parseBody(output.body, context);
|
|
3079
|
-
let contents = {};
|
|
3080
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3081
|
-
const response = {
|
|
3082
|
-
$metadata: deserializeMetadata(output),
|
|
3083
|
-
...contents,
|
|
3084
|
-
};
|
|
3085
|
-
return response;
|
|
3086
|
-
};
|
|
3087
|
-
exports.de_RestoreFromSnapshotCommand = de_RestoreFromSnapshotCommand;
|
|
3088
|
-
const de_RestoreFromSnapshotCommandError = async (output, context) => {
|
|
3089
|
-
const parsedOutput = {
|
|
3090
|
-
...output,
|
|
3091
|
-
body: await parseErrorBody(output.body, context),
|
|
3092
|
-
};
|
|
3093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
-
switch (errorCode) {
|
|
3095
|
-
case "ClientException":
|
|
3096
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3097
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "EntityDoesNotExistException":
|
|
3099
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3100
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "InvalidParameterException":
|
|
3102
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3103
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "ServiceException":
|
|
3105
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3106
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3107
|
-
default:
|
|
3108
|
-
const parsedBody = parsedOutput.body;
|
|
3109
|
-
return throwDefaultError({
|
|
3110
|
-
output,
|
|
3111
|
-
parsedBody,
|
|
3112
|
-
errorCode,
|
|
3113
|
-
});
|
|
3114
|
-
}
|
|
3115
|
-
};
|
|
3116
|
-
const de_ShareDirectoryCommand = async (output, context) => {
|
|
3117
|
-
if (output.statusCode >= 300) {
|
|
3118
|
-
return de_ShareDirectoryCommandError(output, context);
|
|
3119
|
-
}
|
|
3120
|
-
const data = await parseBody(output.body, context);
|
|
3121
|
-
let contents = {};
|
|
3122
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3123
|
-
const response = {
|
|
3124
|
-
$metadata: deserializeMetadata(output),
|
|
3125
|
-
...contents,
|
|
3126
|
-
};
|
|
3127
|
-
return response;
|
|
3128
|
-
};
|
|
3129
|
-
exports.de_ShareDirectoryCommand = de_ShareDirectoryCommand;
|
|
3130
|
-
const de_ShareDirectoryCommandError = async (output, context) => {
|
|
3131
|
-
const parsedOutput = {
|
|
3132
|
-
...output,
|
|
3133
|
-
body: await parseErrorBody(output.body, context),
|
|
3134
|
-
};
|
|
3135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
|
-
switch (errorCode) {
|
|
3137
|
-
case "AccessDeniedException":
|
|
3138
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "ClientException":
|
|
3141
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3142
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "DirectoryAlreadySharedException":
|
|
3144
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
3145
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "EntityDoesNotExistException":
|
|
3147
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3148
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "InvalidParameterException":
|
|
3150
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3151
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "InvalidTargetException":
|
|
3153
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
3154
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
3155
|
-
case "OrganizationsException":
|
|
3156
|
-
case "com.amazonaws.directoryservice#OrganizationsException":
|
|
3157
|
-
throw await de_OrganizationsExceptionRes(parsedOutput, context);
|
|
3158
|
-
case "ServiceException":
|
|
3159
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3160
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "ShareLimitExceededException":
|
|
3162
|
-
case "com.amazonaws.directoryservice#ShareLimitExceededException":
|
|
3163
|
-
throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "UnsupportedOperationException":
|
|
3165
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3166
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3167
|
-
default:
|
|
3168
|
-
const parsedBody = parsedOutput.body;
|
|
3169
|
-
return throwDefaultError({
|
|
3170
|
-
output,
|
|
3171
|
-
parsedBody,
|
|
3172
|
-
errorCode,
|
|
3173
|
-
});
|
|
3174
|
-
}
|
|
3175
|
-
};
|
|
3176
|
-
const de_StartSchemaExtensionCommand = async (output, context) => {
|
|
3177
|
-
if (output.statusCode >= 300) {
|
|
3178
|
-
return de_StartSchemaExtensionCommandError(output, context);
|
|
3179
|
-
}
|
|
3180
|
-
const data = await parseBody(output.body, context);
|
|
3181
|
-
let contents = {};
|
|
3182
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3183
|
-
const response = {
|
|
3184
|
-
$metadata: deserializeMetadata(output),
|
|
3185
|
-
...contents,
|
|
3186
|
-
};
|
|
3187
|
-
return response;
|
|
3188
|
-
};
|
|
3189
|
-
exports.de_StartSchemaExtensionCommand = de_StartSchemaExtensionCommand;
|
|
3190
|
-
const de_StartSchemaExtensionCommandError = async (output, context) => {
|
|
3191
|
-
const parsedOutput = {
|
|
3192
|
-
...output,
|
|
3193
|
-
body: await parseErrorBody(output.body, context),
|
|
3194
|
-
};
|
|
3195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3196
|
-
switch (errorCode) {
|
|
3197
|
-
case "ClientException":
|
|
3198
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3199
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "DirectoryUnavailableException":
|
|
3201
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3202
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "EntityDoesNotExistException":
|
|
3204
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3205
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3206
|
-
case "InvalidParameterException":
|
|
3207
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3208
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3209
|
-
case "ServiceException":
|
|
3210
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3211
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "SnapshotLimitExceededException":
|
|
3213
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
3214
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
3215
|
-
default:
|
|
3216
|
-
const parsedBody = parsedOutput.body;
|
|
3217
|
-
return throwDefaultError({
|
|
3218
|
-
output,
|
|
3219
|
-
parsedBody,
|
|
3220
|
-
errorCode,
|
|
3221
|
-
});
|
|
3222
|
-
}
|
|
3223
|
-
};
|
|
3224
|
-
const de_UnshareDirectoryCommand = async (output, context) => {
|
|
3225
|
-
if (output.statusCode >= 300) {
|
|
3226
|
-
return de_UnshareDirectoryCommandError(output, context);
|
|
3227
|
-
}
|
|
3228
|
-
const data = await parseBody(output.body, context);
|
|
3229
|
-
let contents = {};
|
|
3230
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3231
|
-
const response = {
|
|
3232
|
-
$metadata: deserializeMetadata(output),
|
|
3233
|
-
...contents,
|
|
3234
|
-
};
|
|
3235
|
-
return response;
|
|
3236
|
-
};
|
|
3237
|
-
exports.de_UnshareDirectoryCommand = de_UnshareDirectoryCommand;
|
|
3238
|
-
const de_UnshareDirectoryCommandError = async (output, context) => {
|
|
3239
|
-
const parsedOutput = {
|
|
3240
|
-
...output,
|
|
3241
|
-
body: await parseErrorBody(output.body, context),
|
|
3242
|
-
};
|
|
3243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3244
|
-
switch (errorCode) {
|
|
3245
|
-
case "ClientException":
|
|
3246
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3247
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "DirectoryNotSharedException":
|
|
3249
|
-
case "com.amazonaws.directoryservice#DirectoryNotSharedException":
|
|
3250
|
-
throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
|
|
3251
|
-
case "EntityDoesNotExistException":
|
|
3252
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3253
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3254
|
-
case "InvalidTargetException":
|
|
3255
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
3256
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
3257
|
-
case "ServiceException":
|
|
3258
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3259
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3260
|
-
default:
|
|
3261
|
-
const parsedBody = parsedOutput.body;
|
|
3262
|
-
return throwDefaultError({
|
|
3263
|
-
output,
|
|
3264
|
-
parsedBody,
|
|
3265
|
-
errorCode,
|
|
3266
|
-
});
|
|
3267
|
-
}
|
|
3268
|
-
};
|
|
3269
|
-
const de_UpdateConditionalForwarderCommand = async (output, context) => {
|
|
3270
|
-
if (output.statusCode >= 300) {
|
|
3271
|
-
return de_UpdateConditionalForwarderCommandError(output, context);
|
|
3272
|
-
}
|
|
3273
|
-
const data = await parseBody(output.body, context);
|
|
3274
|
-
let contents = {};
|
|
3275
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3276
|
-
const response = {
|
|
3277
|
-
$metadata: deserializeMetadata(output),
|
|
3278
|
-
...contents,
|
|
3279
|
-
};
|
|
3280
|
-
return response;
|
|
3281
|
-
};
|
|
3282
|
-
exports.de_UpdateConditionalForwarderCommand = de_UpdateConditionalForwarderCommand;
|
|
3283
|
-
const de_UpdateConditionalForwarderCommandError = async (output, context) => {
|
|
3284
|
-
const parsedOutput = {
|
|
3285
|
-
...output,
|
|
3286
|
-
body: await parseErrorBody(output.body, context),
|
|
3287
|
-
};
|
|
3288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3289
|
-
switch (errorCode) {
|
|
3290
|
-
case "ClientException":
|
|
3291
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3292
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3293
|
-
case "DirectoryUnavailableException":
|
|
3294
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3295
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3296
|
-
case "EntityDoesNotExistException":
|
|
3297
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3298
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3299
|
-
case "InvalidParameterException":
|
|
3300
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3301
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "ServiceException":
|
|
3303
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3304
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "UnsupportedOperationException":
|
|
3306
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3307
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3308
|
-
default:
|
|
3309
|
-
const parsedBody = parsedOutput.body;
|
|
3310
|
-
return throwDefaultError({
|
|
3311
|
-
output,
|
|
3312
|
-
parsedBody,
|
|
3313
|
-
errorCode,
|
|
3314
|
-
});
|
|
3315
|
-
}
|
|
3316
|
-
};
|
|
3317
|
-
const de_UpdateDirectorySetupCommand = async (output, context) => {
|
|
3318
|
-
if (output.statusCode >= 300) {
|
|
3319
|
-
return de_UpdateDirectorySetupCommandError(output, context);
|
|
3320
|
-
}
|
|
3321
|
-
const data = await parseBody(output.body, context);
|
|
3322
|
-
let contents = {};
|
|
3323
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3324
|
-
const response = {
|
|
3325
|
-
$metadata: deserializeMetadata(output),
|
|
3326
|
-
...contents,
|
|
3327
|
-
};
|
|
3328
|
-
return response;
|
|
3329
|
-
};
|
|
3330
|
-
exports.de_UpdateDirectorySetupCommand = de_UpdateDirectorySetupCommand;
|
|
3331
|
-
const de_UpdateDirectorySetupCommandError = async (output, context) => {
|
|
3332
|
-
const parsedOutput = {
|
|
3333
|
-
...output,
|
|
3334
|
-
body: await parseErrorBody(output.body, context),
|
|
3335
|
-
};
|
|
3336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
|
-
switch (errorCode) {
|
|
3338
|
-
case "AccessDeniedException":
|
|
3339
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3340
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3341
|
-
case "ClientException":
|
|
3342
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3343
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3344
|
-
case "DirectoryDoesNotExistException":
|
|
3345
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3346
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3347
|
-
case "DirectoryInDesiredStateException":
|
|
3348
|
-
case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
|
|
3349
|
-
throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "DirectoryUnavailableException":
|
|
3351
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3352
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "InvalidParameterException":
|
|
3354
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3355
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "ServiceException":
|
|
3357
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3358
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "SnapshotLimitExceededException":
|
|
3360
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
3361
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "UnsupportedOperationException":
|
|
3363
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3364
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3365
|
-
default:
|
|
3366
|
-
const parsedBody = parsedOutput.body;
|
|
3367
|
-
return throwDefaultError({
|
|
3368
|
-
output,
|
|
3369
|
-
parsedBody,
|
|
3370
|
-
errorCode,
|
|
3371
|
-
});
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
const de_UpdateNumberOfDomainControllersCommand = async (output, context) => {
|
|
3375
|
-
if (output.statusCode >= 300) {
|
|
3376
|
-
return de_UpdateNumberOfDomainControllersCommandError(output, context);
|
|
3377
|
-
}
|
|
3378
|
-
const data = await parseBody(output.body, context);
|
|
3379
|
-
let contents = {};
|
|
3380
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3381
|
-
const response = {
|
|
3382
|
-
$metadata: deserializeMetadata(output),
|
|
3383
|
-
...contents,
|
|
3384
|
-
};
|
|
3385
|
-
return response;
|
|
3386
|
-
};
|
|
3387
|
-
exports.de_UpdateNumberOfDomainControllersCommand = de_UpdateNumberOfDomainControllersCommand;
|
|
3388
|
-
const de_UpdateNumberOfDomainControllersCommandError = async (output, context) => {
|
|
3389
|
-
const parsedOutput = {
|
|
3390
|
-
...output,
|
|
3391
|
-
body: await parseErrorBody(output.body, context),
|
|
3392
|
-
};
|
|
3393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3394
|
-
switch (errorCode) {
|
|
3395
|
-
case "ClientException":
|
|
3396
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3397
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "DirectoryUnavailableException":
|
|
3399
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3400
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3401
|
-
case "DomainControllerLimitExceededException":
|
|
3402
|
-
case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
|
|
3403
|
-
throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "EntityDoesNotExistException":
|
|
3405
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3406
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "InvalidParameterException":
|
|
3408
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3409
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3410
|
-
case "ServiceException":
|
|
3411
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3412
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3413
|
-
case "UnsupportedOperationException":
|
|
3414
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3415
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3416
|
-
default:
|
|
3417
|
-
const parsedBody = parsedOutput.body;
|
|
3418
|
-
return throwDefaultError({
|
|
3419
|
-
output,
|
|
3420
|
-
parsedBody,
|
|
3421
|
-
errorCode,
|
|
3422
|
-
});
|
|
3423
|
-
}
|
|
3424
|
-
};
|
|
3425
|
-
const de_UpdateRadiusCommand = async (output, context) => {
|
|
3426
|
-
if (output.statusCode >= 300) {
|
|
3427
|
-
return de_UpdateRadiusCommandError(output, context);
|
|
3428
|
-
}
|
|
3429
|
-
const data = await parseBody(output.body, context);
|
|
3430
|
-
let contents = {};
|
|
3431
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3432
|
-
const response = {
|
|
3433
|
-
$metadata: deserializeMetadata(output),
|
|
3434
|
-
...contents,
|
|
3435
|
-
};
|
|
3436
|
-
return response;
|
|
3437
|
-
};
|
|
3438
|
-
exports.de_UpdateRadiusCommand = de_UpdateRadiusCommand;
|
|
3439
|
-
const de_UpdateRadiusCommandError = async (output, context) => {
|
|
3440
|
-
const parsedOutput = {
|
|
3441
|
-
...output,
|
|
3442
|
-
body: await parseErrorBody(output.body, context),
|
|
3443
|
-
};
|
|
3444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3445
|
-
switch (errorCode) {
|
|
3446
|
-
case "ClientException":
|
|
3447
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3448
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "EntityDoesNotExistException":
|
|
3450
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3451
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "InvalidParameterException":
|
|
3453
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3454
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ServiceException":
|
|
3456
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3457
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3458
|
-
default:
|
|
3459
|
-
const parsedBody = parsedOutput.body;
|
|
3460
|
-
return throwDefaultError({
|
|
3461
|
-
output,
|
|
3462
|
-
parsedBody,
|
|
3463
|
-
errorCode,
|
|
3464
|
-
});
|
|
3465
|
-
}
|
|
3466
|
-
};
|
|
3467
|
-
const de_UpdateSettingsCommand = async (output, context) => {
|
|
3468
|
-
if (output.statusCode >= 300) {
|
|
3469
|
-
return de_UpdateSettingsCommandError(output, context);
|
|
3470
|
-
}
|
|
3471
|
-
const data = await parseBody(output.body, context);
|
|
3472
|
-
let contents = {};
|
|
3473
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3474
|
-
const response = {
|
|
3475
|
-
$metadata: deserializeMetadata(output),
|
|
3476
|
-
...contents,
|
|
3477
|
-
};
|
|
3478
|
-
return response;
|
|
3479
|
-
};
|
|
3480
|
-
exports.de_UpdateSettingsCommand = de_UpdateSettingsCommand;
|
|
3481
|
-
const de_UpdateSettingsCommandError = async (output, context) => {
|
|
3482
|
-
const parsedOutput = {
|
|
3483
|
-
...output,
|
|
3484
|
-
body: await parseErrorBody(output.body, context),
|
|
3485
|
-
};
|
|
3486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
-
switch (errorCode) {
|
|
3488
|
-
case "ClientException":
|
|
3489
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3490
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "DirectoryDoesNotExistException":
|
|
3492
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3493
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "DirectoryUnavailableException":
|
|
3495
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3496
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "IncompatibleSettingsException":
|
|
3498
|
-
case "com.amazonaws.directoryservice#IncompatibleSettingsException":
|
|
3499
|
-
throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "InvalidParameterException":
|
|
3501
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3502
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ServiceException":
|
|
3504
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3505
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "UnsupportedOperationException":
|
|
3507
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3508
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "UnsupportedSettingsException":
|
|
3510
|
-
case "com.amazonaws.directoryservice#UnsupportedSettingsException":
|
|
3511
|
-
throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
|
|
3512
|
-
default:
|
|
3513
|
-
const parsedBody = parsedOutput.body;
|
|
3514
|
-
return throwDefaultError({
|
|
3515
|
-
output,
|
|
3516
|
-
parsedBody,
|
|
3517
|
-
errorCode,
|
|
3518
|
-
});
|
|
3519
|
-
}
|
|
3520
|
-
};
|
|
3521
|
-
const de_UpdateTrustCommand = async (output, context) => {
|
|
3522
|
-
if (output.statusCode >= 300) {
|
|
3523
|
-
return de_UpdateTrustCommandError(output, context);
|
|
3524
|
-
}
|
|
3525
|
-
const data = await parseBody(output.body, context);
|
|
3526
|
-
let contents = {};
|
|
3527
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3528
|
-
const response = {
|
|
3529
|
-
$metadata: deserializeMetadata(output),
|
|
3530
|
-
...contents,
|
|
3531
|
-
};
|
|
3532
|
-
return response;
|
|
3533
|
-
};
|
|
3534
|
-
exports.de_UpdateTrustCommand = de_UpdateTrustCommand;
|
|
3535
|
-
const de_UpdateTrustCommandError = async (output, context) => {
|
|
3536
|
-
const parsedOutput = {
|
|
3537
|
-
...output,
|
|
3538
|
-
body: await parseErrorBody(output.body, context),
|
|
3539
|
-
};
|
|
3540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
|
-
switch (errorCode) {
|
|
3542
|
-
case "ClientException":
|
|
3543
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3544
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3545
|
-
case "EntityDoesNotExistException":
|
|
3546
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3547
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3548
|
-
case "InvalidParameterException":
|
|
3549
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3550
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "ServiceException":
|
|
3552
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3553
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode,
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3562
|
-
};
|
|
3563
|
-
const de_VerifyTrustCommand = async (output, context) => {
|
|
3564
|
-
if (output.statusCode >= 300) {
|
|
3565
|
-
return de_VerifyTrustCommandError(output, context);
|
|
3566
|
-
}
|
|
3567
|
-
const data = await parseBody(output.body, context);
|
|
3568
|
-
let contents = {};
|
|
3569
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3570
|
-
const response = {
|
|
3571
|
-
$metadata: deserializeMetadata(output),
|
|
3572
|
-
...contents,
|
|
3573
|
-
};
|
|
3574
|
-
return response;
|
|
3575
|
-
};
|
|
3576
|
-
exports.de_VerifyTrustCommand = de_VerifyTrustCommand;
|
|
3577
|
-
const de_VerifyTrustCommandError = async (output, context) => {
|
|
3578
|
-
const parsedOutput = {
|
|
3579
|
-
...output,
|
|
3580
|
-
body: await parseErrorBody(output.body, context),
|
|
3581
|
-
};
|
|
3582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3583
|
-
switch (errorCode) {
|
|
3584
|
-
case "ClientException":
|
|
3585
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3586
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "EntityDoesNotExistException":
|
|
3588
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3589
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "InvalidParameterException":
|
|
3591
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3592
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ServiceException":
|
|
3594
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3595
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "UnsupportedOperationException":
|
|
3597
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3598
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3599
|
-
default:
|
|
3600
|
-
const parsedBody = parsedOutput.body;
|
|
3601
|
-
return throwDefaultError({
|
|
3602
|
-
output,
|
|
3603
|
-
parsedBody,
|
|
3604
|
-
errorCode,
|
|
3605
|
-
});
|
|
3606
|
-
}
|
|
3607
|
-
};
|
|
3608
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3609
|
-
const body = parsedOutput.body;
|
|
3610
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3611
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3612
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3613
|
-
...deserialized,
|
|
3614
|
-
});
|
|
3615
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3616
|
-
};
|
|
3617
|
-
const de_AuthenticationFailedExceptionRes = async (parsedOutput, context) => {
|
|
3618
|
-
const body = parsedOutput.body;
|
|
3619
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3620
|
-
const exception = new models_0_1.AuthenticationFailedException({
|
|
3621
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3622
|
-
...deserialized,
|
|
3623
|
-
});
|
|
3624
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3625
|
-
};
|
|
3626
|
-
const de_CertificateAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3627
|
-
const body = parsedOutput.body;
|
|
3628
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3629
|
-
const exception = new models_0_1.CertificateAlreadyExistsException({
|
|
3630
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3631
|
-
...deserialized,
|
|
3632
|
-
});
|
|
3633
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3634
|
-
};
|
|
3635
|
-
const de_CertificateDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
3636
|
-
const body = parsedOutput.body;
|
|
3637
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3638
|
-
const exception = new models_0_1.CertificateDoesNotExistException({
|
|
3639
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3640
|
-
...deserialized,
|
|
3641
|
-
});
|
|
3642
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3643
|
-
};
|
|
3644
|
-
const de_CertificateInUseExceptionRes = async (parsedOutput, context) => {
|
|
3645
|
-
const body = parsedOutput.body;
|
|
3646
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3647
|
-
const exception = new models_0_1.CertificateInUseException({
|
|
3648
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3649
|
-
...deserialized,
|
|
3650
|
-
});
|
|
3651
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3652
|
-
};
|
|
3653
|
-
const de_CertificateLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3654
|
-
const body = parsedOutput.body;
|
|
3655
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3656
|
-
const exception = new models_0_1.CertificateLimitExceededException({
|
|
3657
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3658
|
-
...deserialized,
|
|
3659
|
-
});
|
|
3660
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3661
|
-
};
|
|
3662
|
-
const de_ClientExceptionRes = async (parsedOutput, context) => {
|
|
3663
|
-
const body = parsedOutput.body;
|
|
3664
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3665
|
-
const exception = new models_0_1.ClientException({
|
|
3666
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3667
|
-
...deserialized,
|
|
3668
|
-
});
|
|
3669
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3670
|
-
};
|
|
3671
|
-
const de_DirectoryAlreadyInRegionExceptionRes = async (parsedOutput, context) => {
|
|
3672
|
-
const body = parsedOutput.body;
|
|
3673
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3674
|
-
const exception = new models_0_1.DirectoryAlreadyInRegionException({
|
|
3675
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3676
|
-
...deserialized,
|
|
3677
|
-
});
|
|
3678
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3679
|
-
};
|
|
3680
|
-
const de_DirectoryAlreadySharedExceptionRes = async (parsedOutput, context) => {
|
|
3681
|
-
const body = parsedOutput.body;
|
|
3682
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3683
|
-
const exception = new models_0_1.DirectoryAlreadySharedException({
|
|
3684
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3685
|
-
...deserialized,
|
|
3686
|
-
});
|
|
3687
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3688
|
-
};
|
|
3689
|
-
const de_DirectoryDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
3690
|
-
const body = parsedOutput.body;
|
|
3691
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3692
|
-
const exception = new models_0_1.DirectoryDoesNotExistException({
|
|
3693
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3694
|
-
...deserialized,
|
|
3695
|
-
});
|
|
3696
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3697
|
-
};
|
|
3698
|
-
const de_DirectoryInDesiredStateExceptionRes = async (parsedOutput, context) => {
|
|
3699
|
-
const body = parsedOutput.body;
|
|
3700
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3701
|
-
const exception = new models_0_1.DirectoryInDesiredStateException({
|
|
3702
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3703
|
-
...deserialized,
|
|
3704
|
-
});
|
|
3705
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3706
|
-
};
|
|
3707
|
-
const de_DirectoryLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3708
|
-
const body = parsedOutput.body;
|
|
3709
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3710
|
-
const exception = new models_0_1.DirectoryLimitExceededException({
|
|
3711
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3712
|
-
...deserialized,
|
|
3713
|
-
});
|
|
3714
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3715
|
-
};
|
|
3716
|
-
const de_DirectoryNotSharedExceptionRes = async (parsedOutput, context) => {
|
|
3717
|
-
const body = parsedOutput.body;
|
|
3718
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3719
|
-
const exception = new models_0_1.DirectoryNotSharedException({
|
|
3720
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3721
|
-
...deserialized,
|
|
3722
|
-
});
|
|
3723
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3724
|
-
};
|
|
3725
|
-
const de_DirectoryUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3726
|
-
const body = parsedOutput.body;
|
|
3727
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3728
|
-
const exception = new models_0_1.DirectoryUnavailableException({
|
|
3729
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3730
|
-
...deserialized,
|
|
3731
|
-
});
|
|
3732
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3733
|
-
};
|
|
3734
|
-
const de_DomainControllerLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3735
|
-
const body = parsedOutput.body;
|
|
3736
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3737
|
-
const exception = new models_0_1.DomainControllerLimitExceededException({
|
|
3738
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3739
|
-
...deserialized,
|
|
3740
|
-
});
|
|
3741
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3742
|
-
};
|
|
3743
|
-
const de_EntityAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3744
|
-
const body = parsedOutput.body;
|
|
3745
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3746
|
-
const exception = new models_0_1.EntityAlreadyExistsException({
|
|
3747
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3748
|
-
...deserialized,
|
|
3749
|
-
});
|
|
3750
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3751
|
-
};
|
|
3752
|
-
const de_EntityDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
3753
|
-
const body = parsedOutput.body;
|
|
3754
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3755
|
-
const exception = new models_0_1.EntityDoesNotExistException({
|
|
3756
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3757
|
-
...deserialized,
|
|
3758
|
-
});
|
|
3759
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3760
|
-
};
|
|
3761
|
-
const de_IncompatibleSettingsExceptionRes = async (parsedOutput, context) => {
|
|
3762
|
-
const body = parsedOutput.body;
|
|
3763
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3764
|
-
const exception = new models_0_1.IncompatibleSettingsException({
|
|
3765
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3766
|
-
...deserialized,
|
|
3767
|
-
});
|
|
3768
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3769
|
-
};
|
|
3770
|
-
const de_InsufficientPermissionsExceptionRes = async (parsedOutput, context) => {
|
|
3771
|
-
const body = parsedOutput.body;
|
|
3772
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3773
|
-
const exception = new models_0_1.InsufficientPermissionsException({
|
|
3774
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3775
|
-
...deserialized,
|
|
3776
|
-
});
|
|
3777
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3778
|
-
};
|
|
3779
|
-
const de_InvalidCertificateExceptionRes = async (parsedOutput, context) => {
|
|
3780
|
-
const body = parsedOutput.body;
|
|
3781
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3782
|
-
const exception = new models_0_1.InvalidCertificateException({
|
|
3783
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3784
|
-
...deserialized,
|
|
3785
|
-
});
|
|
3786
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3787
|
-
};
|
|
3788
|
-
const de_InvalidClientAuthStatusExceptionRes = async (parsedOutput, context) => {
|
|
3789
|
-
const body = parsedOutput.body;
|
|
3790
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3791
|
-
const exception = new models_0_1.InvalidClientAuthStatusException({
|
|
3792
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3793
|
-
...deserialized,
|
|
3794
|
-
});
|
|
3795
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3796
|
-
};
|
|
3797
|
-
const de_InvalidLDAPSStatusExceptionRes = async (parsedOutput, context) => {
|
|
3798
|
-
const body = parsedOutput.body;
|
|
3799
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3800
|
-
const exception = new models_0_1.InvalidLDAPSStatusException({
|
|
3801
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3802
|
-
...deserialized,
|
|
3803
|
-
});
|
|
3804
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3805
|
-
};
|
|
3806
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
3807
|
-
const body = parsedOutput.body;
|
|
3808
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3809
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
3810
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3811
|
-
...deserialized,
|
|
3812
|
-
});
|
|
3813
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3814
|
-
};
|
|
3815
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
3816
|
-
const body = parsedOutput.body;
|
|
3817
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3818
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
3819
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3820
|
-
...deserialized,
|
|
3821
|
-
});
|
|
3822
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3823
|
-
};
|
|
3824
|
-
const de_InvalidPasswordExceptionRes = async (parsedOutput, context) => {
|
|
3825
|
-
const body = parsedOutput.body;
|
|
3826
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3827
|
-
const exception = new models_0_1.InvalidPasswordException({
|
|
3828
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3829
|
-
...deserialized,
|
|
3830
|
-
});
|
|
3831
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3832
|
-
};
|
|
3833
|
-
const de_InvalidTargetExceptionRes = async (parsedOutput, context) => {
|
|
3834
|
-
const body = parsedOutput.body;
|
|
3835
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3836
|
-
const exception = new models_0_1.InvalidTargetException({
|
|
3837
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3838
|
-
...deserialized,
|
|
3839
|
-
});
|
|
3840
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3841
|
-
};
|
|
3842
|
-
const de_IpRouteLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3843
|
-
const body = parsedOutput.body;
|
|
3844
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3845
|
-
const exception = new models_0_1.IpRouteLimitExceededException({
|
|
3846
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3847
|
-
...deserialized,
|
|
3848
|
-
});
|
|
3849
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3850
|
-
};
|
|
3851
|
-
const de_NoAvailableCertificateExceptionRes = async (parsedOutput, context) => {
|
|
3852
|
-
const body = parsedOutput.body;
|
|
3853
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3854
|
-
const exception = new models_0_1.NoAvailableCertificateException({
|
|
3855
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3856
|
-
...deserialized,
|
|
3857
|
-
});
|
|
3858
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3859
|
-
};
|
|
3860
|
-
const de_OrganizationsExceptionRes = async (parsedOutput, context) => {
|
|
3861
|
-
const body = parsedOutput.body;
|
|
3862
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3863
|
-
const exception = new models_0_1.OrganizationsException({
|
|
3864
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3865
|
-
...deserialized,
|
|
3866
|
-
});
|
|
3867
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3868
|
-
};
|
|
3869
|
-
const de_RegionLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3870
|
-
const body = parsedOutput.body;
|
|
3871
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3872
|
-
const exception = new models_0_1.RegionLimitExceededException({
|
|
3873
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3874
|
-
...deserialized,
|
|
3875
|
-
});
|
|
3876
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3877
|
-
};
|
|
3878
|
-
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
3879
|
-
const body = parsedOutput.body;
|
|
3880
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3881
|
-
const exception = new models_0_1.ServiceException({
|
|
3882
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3883
|
-
...deserialized,
|
|
3884
|
-
});
|
|
3885
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3886
|
-
};
|
|
3887
|
-
const de_ShareLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3888
|
-
const body = parsedOutput.body;
|
|
3889
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3890
|
-
const exception = new models_0_1.ShareLimitExceededException({
|
|
3891
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3892
|
-
...deserialized,
|
|
3893
|
-
});
|
|
3894
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3895
|
-
};
|
|
3896
|
-
const de_SnapshotLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3897
|
-
const body = parsedOutput.body;
|
|
3898
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3899
|
-
const exception = new models_0_1.SnapshotLimitExceededException({
|
|
3900
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3901
|
-
...deserialized,
|
|
3902
|
-
});
|
|
3903
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3904
|
-
};
|
|
3905
|
-
const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3906
|
-
const body = parsedOutput.body;
|
|
3907
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3908
|
-
const exception = new models_0_1.TagLimitExceededException({
|
|
3909
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3910
|
-
...deserialized,
|
|
3911
|
-
});
|
|
3912
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3913
|
-
};
|
|
3914
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3915
|
-
const body = parsedOutput.body;
|
|
3916
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3917
|
-
const exception = new models_0_1.UnsupportedOperationException({
|
|
3918
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3919
|
-
...deserialized,
|
|
3920
|
-
});
|
|
3921
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3922
|
-
};
|
|
3923
|
-
const de_UnsupportedSettingsExceptionRes = async (parsedOutput, context) => {
|
|
3924
|
-
const body = parsedOutput.body;
|
|
3925
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3926
|
-
const exception = new models_0_1.UnsupportedSettingsException({
|
|
3927
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3928
|
-
...deserialized,
|
|
3929
|
-
});
|
|
3930
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3931
|
-
};
|
|
3932
|
-
const de_UserDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
3933
|
-
const body = parsedOutput.body;
|
|
3934
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3935
|
-
const exception = new models_0_1.UserDoesNotExistException({
|
|
3936
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3937
|
-
...deserialized,
|
|
3938
|
-
});
|
|
3939
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3940
|
-
};
|
|
3941
|
-
const de_AcceptSharedDirectoryResult = (output, context) => {
|
|
3942
|
-
return (0, smithy_client_1.take)(output, {
|
|
3943
|
-
SharedDirectory: (_) => de_SharedDirectory(_, context),
|
|
3944
|
-
});
|
|
3945
|
-
};
|
|
3946
|
-
const de_Certificate = (output, context) => {
|
|
3947
|
-
return (0, smithy_client_1.take)(output, {
|
|
3948
|
-
CertificateId: smithy_client_1.expectString,
|
|
3949
|
-
ClientCertAuthSettings: smithy_client_1._json,
|
|
3950
|
-
CommonName: smithy_client_1.expectString,
|
|
3951
|
-
ExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3952
|
-
RegisteredDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3953
|
-
State: smithy_client_1.expectString,
|
|
3954
|
-
StateReason: smithy_client_1.expectString,
|
|
3955
|
-
Type: smithy_client_1.expectString,
|
|
3956
|
-
});
|
|
3957
|
-
};
|
|
3958
|
-
const de_CertificateInfo = (output, context) => {
|
|
3959
|
-
return (0, smithy_client_1.take)(output, {
|
|
3960
|
-
CertificateId: smithy_client_1.expectString,
|
|
3961
|
-
CommonName: smithy_client_1.expectString,
|
|
3962
|
-
ExpiryDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3963
|
-
State: smithy_client_1.expectString,
|
|
3964
|
-
Type: smithy_client_1.expectString,
|
|
3965
|
-
});
|
|
3966
|
-
};
|
|
3967
|
-
const de_CertificatesInfo = (output, context) => {
|
|
3968
|
-
const retVal = (output || [])
|
|
3969
|
-
.filter((e) => e != null)
|
|
3970
|
-
.map((entry) => {
|
|
3971
|
-
return de_CertificateInfo(entry, context);
|
|
3972
|
-
});
|
|
3973
|
-
return retVal;
|
|
3974
|
-
};
|
|
3975
|
-
const de_ClientAuthenticationSettingInfo = (output, context) => {
|
|
3976
|
-
return (0, smithy_client_1.take)(output, {
|
|
3977
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3978
|
-
Status: smithy_client_1.expectString,
|
|
3979
|
-
Type: smithy_client_1.expectString,
|
|
3980
|
-
});
|
|
3981
|
-
};
|
|
3982
|
-
const de_ClientAuthenticationSettingsInfo = (output, context) => {
|
|
3983
|
-
const retVal = (output || [])
|
|
3984
|
-
.filter((e) => e != null)
|
|
3985
|
-
.map((entry) => {
|
|
3986
|
-
return de_ClientAuthenticationSettingInfo(entry, context);
|
|
3987
|
-
});
|
|
3988
|
-
return retVal;
|
|
3989
|
-
};
|
|
3990
|
-
const de_DescribeCertificateResult = (output, context) => {
|
|
3991
|
-
return (0, smithy_client_1.take)(output, {
|
|
3992
|
-
Certificate: (_) => de_Certificate(_, context),
|
|
3993
|
-
});
|
|
3994
|
-
};
|
|
3995
|
-
const de_DescribeClientAuthenticationSettingsResult = (output, context) => {
|
|
3996
|
-
return (0, smithy_client_1.take)(output, {
|
|
3997
|
-
ClientAuthenticationSettingsInfo: (_) => de_ClientAuthenticationSettingsInfo(_, context),
|
|
3998
|
-
NextToken: smithy_client_1.expectString,
|
|
3999
|
-
});
|
|
4000
|
-
};
|
|
4001
|
-
const de_DescribeDirectoriesResult = (output, context) => {
|
|
4002
|
-
return (0, smithy_client_1.take)(output, {
|
|
4003
|
-
DirectoryDescriptions: (_) => de_DirectoryDescriptions(_, context),
|
|
4004
|
-
NextToken: smithy_client_1.expectString,
|
|
4005
|
-
});
|
|
4006
|
-
};
|
|
4007
|
-
const de_DescribeDomainControllersResult = (output, context) => {
|
|
4008
|
-
return (0, smithy_client_1.take)(output, {
|
|
4009
|
-
DomainControllers: (_) => de_DomainControllers(_, context),
|
|
4010
|
-
NextToken: smithy_client_1.expectString,
|
|
4011
|
-
});
|
|
4012
|
-
};
|
|
4013
|
-
const de_DescribeEventTopicsResult = (output, context) => {
|
|
4014
|
-
return (0, smithy_client_1.take)(output, {
|
|
4015
|
-
EventTopics: (_) => de_EventTopics(_, context),
|
|
4016
|
-
});
|
|
4017
|
-
};
|
|
4018
|
-
const de_DescribeLDAPSSettingsResult = (output, context) => {
|
|
4019
|
-
return (0, smithy_client_1.take)(output, {
|
|
4020
|
-
LDAPSSettingsInfo: (_) => de_LDAPSSettingsInfo(_, context),
|
|
4021
|
-
NextToken: smithy_client_1.expectString,
|
|
4022
|
-
});
|
|
4023
|
-
};
|
|
4024
|
-
const de_DescribeRegionsResult = (output, context) => {
|
|
4025
|
-
return (0, smithy_client_1.take)(output, {
|
|
4026
|
-
NextToken: smithy_client_1.expectString,
|
|
4027
|
-
RegionsDescription: (_) => de_RegionsDescription(_, context),
|
|
4028
|
-
});
|
|
4029
|
-
};
|
|
4030
|
-
const de_DescribeSettingsResult = (output, context) => {
|
|
4031
|
-
return (0, smithy_client_1.take)(output, {
|
|
4032
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4033
|
-
NextToken: smithy_client_1.expectString,
|
|
4034
|
-
SettingEntries: (_) => de_SettingEntries(_, context),
|
|
4035
|
-
});
|
|
4036
|
-
};
|
|
4037
|
-
const de_DescribeSharedDirectoriesResult = (output, context) => {
|
|
4038
|
-
return (0, smithy_client_1.take)(output, {
|
|
4039
|
-
NextToken: smithy_client_1.expectString,
|
|
4040
|
-
SharedDirectories: (_) => de_SharedDirectories(_, context),
|
|
4041
|
-
});
|
|
4042
|
-
};
|
|
4043
|
-
const de_DescribeSnapshotsResult = (output, context) => {
|
|
4044
|
-
return (0, smithy_client_1.take)(output, {
|
|
4045
|
-
NextToken: smithy_client_1.expectString,
|
|
4046
|
-
Snapshots: (_) => de_Snapshots(_, context),
|
|
4047
|
-
});
|
|
4048
|
-
};
|
|
4049
|
-
const de_DescribeTrustsResult = (output, context) => {
|
|
4050
|
-
return (0, smithy_client_1.take)(output, {
|
|
4051
|
-
NextToken: smithy_client_1.expectString,
|
|
4052
|
-
Trusts: (_) => de_Trusts(_, context),
|
|
4053
|
-
});
|
|
4054
|
-
};
|
|
4055
|
-
const de_DescribeUpdateDirectoryResult = (output, context) => {
|
|
4056
|
-
return (0, smithy_client_1.take)(output, {
|
|
4057
|
-
NextToken: smithy_client_1.expectString,
|
|
4058
|
-
UpdateActivities: (_) => de_UpdateActivities(_, context),
|
|
4059
|
-
});
|
|
4060
|
-
};
|
|
4061
|
-
const de_DirectoryDescription = (output, context) => {
|
|
4062
|
-
return (0, smithy_client_1.take)(output, {
|
|
4063
|
-
AccessUrl: smithy_client_1.expectString,
|
|
4064
|
-
Alias: smithy_client_1.expectString,
|
|
4065
|
-
ConnectSettings: smithy_client_1._json,
|
|
4066
|
-
Description: smithy_client_1.expectString,
|
|
4067
|
-
DesiredNumberOfDomainControllers: smithy_client_1.expectInt32,
|
|
4068
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4069
|
-
DnsIpAddrs: smithy_client_1._json,
|
|
4070
|
-
Edition: smithy_client_1.expectString,
|
|
4071
|
-
LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4072
|
-
Name: smithy_client_1.expectString,
|
|
4073
|
-
OsVersion: smithy_client_1.expectString,
|
|
4074
|
-
OwnerDirectoryDescription: smithy_client_1._json,
|
|
4075
|
-
RadiusSettings: smithy_client_1._json,
|
|
4076
|
-
RadiusStatus: smithy_client_1.expectString,
|
|
4077
|
-
RegionsInfo: smithy_client_1._json,
|
|
4078
|
-
ShareMethod: smithy_client_1.expectString,
|
|
4079
|
-
ShareNotes: smithy_client_1.expectString,
|
|
4080
|
-
ShareStatus: smithy_client_1.expectString,
|
|
4081
|
-
ShortName: smithy_client_1.expectString,
|
|
4082
|
-
Size: smithy_client_1.expectString,
|
|
4083
|
-
SsoEnabled: smithy_client_1.expectBoolean,
|
|
4084
|
-
Stage: smithy_client_1.expectString,
|
|
4085
|
-
StageLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4086
|
-
StageReason: smithy_client_1.expectString,
|
|
4087
|
-
Type: smithy_client_1.expectString,
|
|
4088
|
-
VpcSettings: smithy_client_1._json,
|
|
4089
|
-
});
|
|
4090
|
-
};
|
|
4091
|
-
const de_DirectoryDescriptions = (output, context) => {
|
|
4092
|
-
const retVal = (output || [])
|
|
4093
|
-
.filter((e) => e != null)
|
|
4094
|
-
.map((entry) => {
|
|
4095
|
-
return de_DirectoryDescription(entry, context);
|
|
4096
|
-
});
|
|
4097
|
-
return retVal;
|
|
4098
|
-
};
|
|
4099
|
-
const de_DomainController = (output, context) => {
|
|
4100
|
-
return (0, smithy_client_1.take)(output, {
|
|
4101
|
-
AvailabilityZone: smithy_client_1.expectString,
|
|
4102
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4103
|
-
DnsIpAddr: smithy_client_1.expectString,
|
|
4104
|
-
DomainControllerId: smithy_client_1.expectString,
|
|
4105
|
-
LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4106
|
-
Status: smithy_client_1.expectString,
|
|
4107
|
-
StatusLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4108
|
-
StatusReason: smithy_client_1.expectString,
|
|
4109
|
-
SubnetId: smithy_client_1.expectString,
|
|
4110
|
-
VpcId: smithy_client_1.expectString,
|
|
4111
|
-
});
|
|
4112
|
-
};
|
|
4113
|
-
const de_DomainControllers = (output, context) => {
|
|
4114
|
-
const retVal = (output || [])
|
|
4115
|
-
.filter((e) => e != null)
|
|
4116
|
-
.map((entry) => {
|
|
4117
|
-
return de_DomainController(entry, context);
|
|
4118
|
-
});
|
|
4119
|
-
return retVal;
|
|
4120
|
-
};
|
|
4121
|
-
const de_EventTopic = (output, context) => {
|
|
4122
|
-
return (0, smithy_client_1.take)(output, {
|
|
4123
|
-
CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4124
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4125
|
-
Status: smithy_client_1.expectString,
|
|
4126
|
-
TopicArn: smithy_client_1.expectString,
|
|
4127
|
-
TopicName: smithy_client_1.expectString,
|
|
4128
|
-
});
|
|
4129
|
-
};
|
|
4130
|
-
const de_EventTopics = (output, context) => {
|
|
4131
|
-
const retVal = (output || [])
|
|
4132
|
-
.filter((e) => e != null)
|
|
4133
|
-
.map((entry) => {
|
|
4134
|
-
return de_EventTopic(entry, context);
|
|
4135
|
-
});
|
|
4136
|
-
return retVal;
|
|
4137
|
-
};
|
|
4138
|
-
const de_IpRouteInfo = (output, context) => {
|
|
4139
|
-
return (0, smithy_client_1.take)(output, {
|
|
4140
|
-
AddedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4141
|
-
CidrIp: smithy_client_1.expectString,
|
|
4142
|
-
Description: smithy_client_1.expectString,
|
|
4143
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4144
|
-
IpRouteStatusMsg: smithy_client_1.expectString,
|
|
4145
|
-
IpRouteStatusReason: smithy_client_1.expectString,
|
|
4146
|
-
});
|
|
4147
|
-
};
|
|
4148
|
-
const de_IpRoutesInfo = (output, context) => {
|
|
4149
|
-
const retVal = (output || [])
|
|
4150
|
-
.filter((e) => e != null)
|
|
4151
|
-
.map((entry) => {
|
|
4152
|
-
return de_IpRouteInfo(entry, context);
|
|
4153
|
-
});
|
|
4154
|
-
return retVal;
|
|
4155
|
-
};
|
|
4156
|
-
const de_LDAPSSettingInfo = (output, context) => {
|
|
4157
|
-
return (0, smithy_client_1.take)(output, {
|
|
4158
|
-
LDAPSStatus: smithy_client_1.expectString,
|
|
4159
|
-
LDAPSStatusReason: smithy_client_1.expectString,
|
|
4160
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4161
|
-
});
|
|
4162
|
-
};
|
|
4163
|
-
const de_LDAPSSettingsInfo = (output, context) => {
|
|
4164
|
-
const retVal = (output || [])
|
|
4165
|
-
.filter((e) => e != null)
|
|
4166
|
-
.map((entry) => {
|
|
4167
|
-
return de_LDAPSSettingInfo(entry, context);
|
|
4168
|
-
});
|
|
4169
|
-
return retVal;
|
|
4170
|
-
};
|
|
4171
|
-
const de_ListCertificatesResult = (output, context) => {
|
|
4172
|
-
return (0, smithy_client_1.take)(output, {
|
|
4173
|
-
CertificatesInfo: (_) => de_CertificatesInfo(_, context),
|
|
4174
|
-
NextToken: smithy_client_1.expectString,
|
|
4175
|
-
});
|
|
4176
|
-
};
|
|
4177
|
-
const de_ListIpRoutesResult = (output, context) => {
|
|
4178
|
-
return (0, smithy_client_1.take)(output, {
|
|
4179
|
-
IpRoutesInfo: (_) => de_IpRoutesInfo(_, context),
|
|
4180
|
-
NextToken: smithy_client_1.expectString,
|
|
4181
|
-
});
|
|
4182
|
-
};
|
|
4183
|
-
const de_ListLogSubscriptionsResult = (output, context) => {
|
|
4184
|
-
return (0, smithy_client_1.take)(output, {
|
|
4185
|
-
LogSubscriptions: (_) => de_LogSubscriptions(_, context),
|
|
4186
|
-
NextToken: smithy_client_1.expectString,
|
|
4187
|
-
});
|
|
4188
|
-
};
|
|
4189
|
-
const de_ListSchemaExtensionsResult = (output, context) => {
|
|
4190
|
-
return (0, smithy_client_1.take)(output, {
|
|
4191
|
-
NextToken: smithy_client_1.expectString,
|
|
4192
|
-
SchemaExtensionsInfo: (_) => de_SchemaExtensionsInfo(_, context),
|
|
4193
|
-
});
|
|
4194
|
-
};
|
|
4195
|
-
const de_LogSubscription = (output, context) => {
|
|
4196
|
-
return (0, smithy_client_1.take)(output, {
|
|
4197
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4198
|
-
LogGroupName: smithy_client_1.expectString,
|
|
4199
|
-
SubscriptionCreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4200
|
-
});
|
|
4201
|
-
};
|
|
4202
|
-
const de_LogSubscriptions = (output, context) => {
|
|
4203
|
-
const retVal = (output || [])
|
|
4204
|
-
.filter((e) => e != null)
|
|
4205
|
-
.map((entry) => {
|
|
4206
|
-
return de_LogSubscription(entry, context);
|
|
4207
|
-
});
|
|
4208
|
-
return retVal;
|
|
4209
|
-
};
|
|
4210
|
-
const de_RegionDescription = (output, context) => {
|
|
4211
|
-
return (0, smithy_client_1.take)(output, {
|
|
4212
|
-
DesiredNumberOfDomainControllers: smithy_client_1.expectInt32,
|
|
4213
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4214
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4215
|
-
LaunchTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4216
|
-
RegionName: smithy_client_1.expectString,
|
|
4217
|
-
RegionType: smithy_client_1.expectString,
|
|
4218
|
-
Status: smithy_client_1.expectString,
|
|
4219
|
-
StatusLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4220
|
-
VpcSettings: smithy_client_1._json,
|
|
4221
|
-
});
|
|
4222
|
-
};
|
|
4223
|
-
const de_RegionsDescription = (output, context) => {
|
|
4224
|
-
const retVal = (output || [])
|
|
4225
|
-
.filter((e) => e != null)
|
|
4226
|
-
.map((entry) => {
|
|
4227
|
-
return de_RegionDescription(entry, context);
|
|
4228
|
-
});
|
|
4229
|
-
return retVal;
|
|
4230
|
-
};
|
|
4231
|
-
const de_SchemaExtensionInfo = (output, context) => {
|
|
4232
|
-
return (0, smithy_client_1.take)(output, {
|
|
4233
|
-
Description: smithy_client_1.expectString,
|
|
4234
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4235
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4236
|
-
SchemaExtensionId: smithy_client_1.expectString,
|
|
4237
|
-
SchemaExtensionStatus: smithy_client_1.expectString,
|
|
4238
|
-
SchemaExtensionStatusReason: smithy_client_1.expectString,
|
|
4239
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4240
|
-
});
|
|
4241
|
-
};
|
|
4242
|
-
const de_SchemaExtensionsInfo = (output, context) => {
|
|
4243
|
-
const retVal = (output || [])
|
|
4244
|
-
.filter((e) => e != null)
|
|
4245
|
-
.map((entry) => {
|
|
4246
|
-
return de_SchemaExtensionInfo(entry, context);
|
|
4247
|
-
});
|
|
4248
|
-
return retVal;
|
|
4249
|
-
};
|
|
4250
|
-
const de_SettingEntries = (output, context) => {
|
|
4251
|
-
const retVal = (output || [])
|
|
4252
|
-
.filter((e) => e != null)
|
|
4253
|
-
.map((entry) => {
|
|
4254
|
-
return de_SettingEntry(entry, context);
|
|
4255
|
-
});
|
|
4256
|
-
return retVal;
|
|
4257
|
-
};
|
|
4258
|
-
const de_SettingEntry = (output, context) => {
|
|
4259
|
-
return (0, smithy_client_1.take)(output, {
|
|
4260
|
-
AllowedValues: smithy_client_1.expectString,
|
|
4261
|
-
AppliedValue: smithy_client_1.expectString,
|
|
4262
|
-
DataType: smithy_client_1.expectString,
|
|
4263
|
-
LastRequestedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4264
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4265
|
-
Name: smithy_client_1.expectString,
|
|
4266
|
-
RequestDetailedStatus: smithy_client_1._json,
|
|
4267
|
-
RequestStatus: smithy_client_1.expectString,
|
|
4268
|
-
RequestStatusMessage: smithy_client_1.expectString,
|
|
4269
|
-
RequestedValue: smithy_client_1.expectString,
|
|
4270
|
-
Type: smithy_client_1.expectString,
|
|
4271
|
-
});
|
|
4272
|
-
};
|
|
4273
|
-
const de_SharedDirectories = (output, context) => {
|
|
4274
|
-
const retVal = (output || [])
|
|
4275
|
-
.filter((e) => e != null)
|
|
4276
|
-
.map((entry) => {
|
|
4277
|
-
return de_SharedDirectory(entry, context);
|
|
4278
|
-
});
|
|
4279
|
-
return retVal;
|
|
4280
|
-
};
|
|
4281
|
-
const de_SharedDirectory = (output, context) => {
|
|
4282
|
-
return (0, smithy_client_1.take)(output, {
|
|
4283
|
-
CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4284
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4285
|
-
OwnerAccountId: smithy_client_1.expectString,
|
|
4286
|
-
OwnerDirectoryId: smithy_client_1.expectString,
|
|
4287
|
-
ShareMethod: smithy_client_1.expectString,
|
|
4288
|
-
ShareNotes: smithy_client_1.expectString,
|
|
4289
|
-
ShareStatus: smithy_client_1.expectString,
|
|
4290
|
-
SharedAccountId: smithy_client_1.expectString,
|
|
4291
|
-
SharedDirectoryId: smithy_client_1.expectString,
|
|
4292
|
-
});
|
|
4293
|
-
};
|
|
4294
|
-
const de_Snapshot = (output, context) => {
|
|
4295
|
-
return (0, smithy_client_1.take)(output, {
|
|
4296
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4297
|
-
Name: smithy_client_1.expectString,
|
|
4298
|
-
SnapshotId: smithy_client_1.expectString,
|
|
4299
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4300
|
-
Status: smithy_client_1.expectString,
|
|
4301
|
-
Type: smithy_client_1.expectString,
|
|
4302
|
-
});
|
|
4303
|
-
};
|
|
4304
|
-
const de_Snapshots = (output, context) => {
|
|
4305
|
-
const retVal = (output || [])
|
|
4306
|
-
.filter((e) => e != null)
|
|
4307
|
-
.map((entry) => {
|
|
4308
|
-
return de_Snapshot(entry, context);
|
|
4309
|
-
});
|
|
4310
|
-
return retVal;
|
|
4311
|
-
};
|
|
4312
|
-
const de_Trust = (output, context) => {
|
|
4313
|
-
return (0, smithy_client_1.take)(output, {
|
|
4314
|
-
CreatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4315
|
-
DirectoryId: smithy_client_1.expectString,
|
|
4316
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4317
|
-
RemoteDomainName: smithy_client_1.expectString,
|
|
4318
|
-
SelectiveAuth: smithy_client_1.expectString,
|
|
4319
|
-
StateLastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4320
|
-
TrustDirection: smithy_client_1.expectString,
|
|
4321
|
-
TrustId: smithy_client_1.expectString,
|
|
4322
|
-
TrustState: smithy_client_1.expectString,
|
|
4323
|
-
TrustStateReason: smithy_client_1.expectString,
|
|
4324
|
-
TrustType: smithy_client_1.expectString,
|
|
4325
|
-
});
|
|
4326
|
-
};
|
|
4327
|
-
const de_Trusts = (output, context) => {
|
|
4328
|
-
const retVal = (output || [])
|
|
4329
|
-
.filter((e) => e != null)
|
|
4330
|
-
.map((entry) => {
|
|
4331
|
-
return de_Trust(entry, context);
|
|
4332
|
-
});
|
|
4333
|
-
return retVal;
|
|
4334
|
-
};
|
|
4335
|
-
const de_UpdateActivities = (output, context) => {
|
|
4336
|
-
const retVal = (output || [])
|
|
4337
|
-
.filter((e) => e != null)
|
|
4338
|
-
.map((entry) => {
|
|
4339
|
-
return de_UpdateInfoEntry(entry, context);
|
|
4340
|
-
});
|
|
4341
|
-
return retVal;
|
|
4342
|
-
};
|
|
4343
|
-
const de_UpdateInfoEntry = (output, context) => {
|
|
4344
|
-
return (0, smithy_client_1.take)(output, {
|
|
4345
|
-
InitiatedBy: smithy_client_1.expectString,
|
|
4346
|
-
LastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4347
|
-
NewValue: smithy_client_1._json,
|
|
4348
|
-
PreviousValue: smithy_client_1._json,
|
|
4349
|
-
Region: smithy_client_1.expectString,
|
|
4350
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4351
|
-
Status: smithy_client_1.expectString,
|
|
4352
|
-
StatusReason: smithy_client_1.expectString,
|
|
4353
|
-
});
|
|
4354
|
-
};
|
|
4355
|
-
const deserializeMetadata = (output) => ({
|
|
4356
|
-
httpStatusCode: output.statusCode,
|
|
4357
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4358
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4359
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4360
|
-
});
|
|
4361
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4362
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(DirectoryServiceServiceException_1.DirectoryServiceServiceException);
|
|
4363
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4364
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4365
|
-
const contents = {
|
|
4366
|
-
protocol,
|
|
4367
|
-
hostname,
|
|
4368
|
-
port,
|
|
4369
|
-
method: "POST",
|
|
4370
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4371
|
-
headers,
|
|
4372
|
-
};
|
|
4373
|
-
if (resolvedHostname !== undefined) {
|
|
4374
|
-
contents.hostname = resolvedHostname;
|
|
4375
|
-
}
|
|
4376
|
-
if (body !== undefined) {
|
|
4377
|
-
contents.body = body;
|
|
4378
|
-
}
|
|
4379
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4380
|
-
};
|
|
4381
|
-
function sharedHeaders(operation) {
|
|
4382
|
-
return {
|
|
4383
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4384
|
-
"x-amz-target": `DirectoryService_20150416.${operation}`,
|
|
4385
|
-
};
|
|
4386
|
-
}
|
|
4387
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4388
|
-
if (encoded.length) {
|
|
4389
|
-
return JSON.parse(encoded);
|
|
4390
|
-
}
|
|
4391
|
-
return {};
|
|
4392
|
-
});
|
|
4393
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4394
|
-
const value = await parseBody(errorBody, context);
|
|
4395
|
-
value.message = value.message ?? value.Message;
|
|
4396
|
-
return value;
|
|
4397
|
-
};
|
|
4398
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4399
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4400
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4401
|
-
let cleanValue = rawValue;
|
|
4402
|
-
if (typeof cleanValue === "number") {
|
|
4403
|
-
cleanValue = cleanValue.toString();
|
|
4404
|
-
}
|
|
4405
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4406
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4407
|
-
}
|
|
4408
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4409
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4410
|
-
}
|
|
4411
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4412
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4413
|
-
}
|
|
4414
|
-
return cleanValue;
|
|
4415
|
-
};
|
|
4416
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4417
|
-
if (headerKey !== undefined) {
|
|
4418
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4419
|
-
}
|
|
4420
|
-
if (data.code !== undefined) {
|
|
4421
|
-
return sanitizeErrorCode(data.code);
|
|
4422
|
-
}
|
|
4423
|
-
if (data["__type"] !== undefined) {
|
|
4424
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4425
|
-
}
|
|
4426
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|