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