@aws-sdk/client-support 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AddAttachmentsToSetCommand.js +2 -2
- package/dist-cjs/commands/AddCommunicationToCaseCommand.js +2 -2
- package/dist-cjs/commands/CreateCaseCommand.js +2 -2
- package/dist-cjs/commands/DescribeAttachmentCommand.js +2 -2
- package/dist-cjs/commands/DescribeCasesCommand.js +2 -2
- package/dist-cjs/commands/DescribeCommunicationsCommand.js +2 -2
- package/dist-cjs/commands/DescribeServicesCommand.js +2 -2
- package/dist-cjs/commands/DescribeSeverityLevelsCommand.js +2 -2
- package/dist-cjs/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +2 -2
- package/dist-cjs/commands/DescribeTrustedAdvisorCheckResultCommand.js +2 -2
- package/dist-cjs/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +2 -2
- package/dist-cjs/commands/DescribeTrustedAdvisorChecksCommand.js +2 -2
- package/dist-cjs/commands/RefreshTrustedAdvisorCheckCommand.js +2 -2
- package/dist-cjs/commands/ResolveCaseCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +272 -296
- package/dist-es/commands/AddAttachmentsToSetCommand.js +3 -3
- package/dist-es/commands/AddCommunicationToCaseCommand.js +3 -3
- package/dist-es/commands/CreateCaseCommand.js +3 -3
- package/dist-es/commands/DescribeAttachmentCommand.js +3 -3
- package/dist-es/commands/DescribeCasesCommand.js +3 -3
- package/dist-es/commands/DescribeCommunicationsCommand.js +3 -3
- package/dist-es/commands/DescribeServicesCommand.js +3 -3
- package/dist-es/commands/DescribeSeverityLevelsCommand.js +3 -3
- package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +3 -3
- package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +3 -3
- package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +3 -3
- package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +3 -3
- package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +3 -3
- package/dist-es/commands/ResolveCaseCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +243 -267
- package/dist-types/protocols/Aws_json1_1.d.ts +112 -28
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +28 -28
- package/package.json +29 -29
|
@@ -1,165 +1,165 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_ResolveCaseCommand = exports.de_RefreshTrustedAdvisorCheckCommand = exports.de_DescribeTrustedAdvisorCheckSummariesCommand = exports.de_DescribeTrustedAdvisorChecksCommand = exports.de_DescribeTrustedAdvisorCheckResultCommand = exports.de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.de_DescribeSeverityLevelsCommand = exports.de_DescribeServicesCommand = exports.de_DescribeCommunicationsCommand = exports.de_DescribeCasesCommand = exports.de_DescribeAttachmentCommand = exports.de_CreateCaseCommand = exports.de_AddCommunicationToCaseCommand = exports.de_AddAttachmentsToSetCommand = exports.se_ResolveCaseCommand = exports.se_RefreshTrustedAdvisorCheckCommand = exports.se_DescribeTrustedAdvisorCheckSummariesCommand = exports.se_DescribeTrustedAdvisorChecksCommand = exports.se_DescribeTrustedAdvisorCheckResultCommand = exports.se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = exports.se_DescribeSeverityLevelsCommand = exports.se_DescribeServicesCommand = exports.se_DescribeCommunicationsCommand = exports.se_DescribeCasesCommand = exports.se_DescribeAttachmentCommand = exports.se_CreateCaseCommand = exports.se_AddCommunicationToCaseCommand = exports.se_AddAttachmentsToSetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SupportServiceException_1 = require("../models/SupportServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_AddAttachmentsToSetCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "AWSSupport_20130415.AddAttachmentsToSet",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_AddAttachmentsToSetRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_AddAttachmentsToSetCommand = se_AddAttachmentsToSetCommand;
|
|
18
|
+
const se_AddCommunicationToCaseCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "AWSSupport_20130415.AddCommunicationToCase",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_AddCommunicationToCaseRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_AddCommunicationToCaseCommand = se_AddCommunicationToCaseCommand;
|
|
28
|
+
const se_CreateCaseCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "AWSSupport_20130415.CreateCase",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_CreateCaseRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_CreateCaseCommand = se_CreateCaseCommand;
|
|
38
|
+
const se_DescribeAttachmentCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "AWSSupport_20130415.DescribeAttachment",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_DescribeAttachmentRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_DescribeAttachmentCommand = se_DescribeAttachmentCommand;
|
|
48
|
+
const se_DescribeCasesCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "AWSSupport_20130415.DescribeCases",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_DescribeCasesRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DescribeCasesCommand = se_DescribeCasesCommand;
|
|
58
|
+
const se_DescribeCommunicationsCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "AWSSupport_20130415.DescribeCommunications",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_DescribeCommunicationsRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_DescribeCommunicationsCommand = se_DescribeCommunicationsCommand;
|
|
68
|
+
const se_DescribeServicesCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AWSSupport_20130415.DescribeServices",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeServicesRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_DescribeServicesCommand = se_DescribeServicesCommand;
|
|
78
|
+
const se_DescribeSeverityLevelsCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "AWSSupport_20130415.DescribeSeverityLevels",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeSeverityLevelsRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DescribeSeverityLevelsCommand = se_DescribeSeverityLevelsCommand;
|
|
88
|
+
const se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckRefreshStatuses",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_DescribeTrustedAdvisorCheckRefreshStatusesRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = se_DescribeTrustedAdvisorCheckRefreshStatusesCommand;
|
|
98
|
+
const se_DescribeTrustedAdvisorCheckResultCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckResult",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_DescribeTrustedAdvisorCheckResultRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_DescribeTrustedAdvisorCheckResultCommand = se_DescribeTrustedAdvisorCheckResultCommand;
|
|
108
|
+
const se_DescribeTrustedAdvisorChecksCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorChecks",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_DescribeTrustedAdvisorChecksRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_DescribeTrustedAdvisorChecksCommand = se_DescribeTrustedAdvisorChecksCommand;
|
|
118
|
+
const se_DescribeTrustedAdvisorCheckSummariesCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckSummaries",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_DescribeTrustedAdvisorCheckSummariesRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_DescribeTrustedAdvisorCheckSummariesCommand = se_DescribeTrustedAdvisorCheckSummariesCommand;
|
|
128
|
+
const se_RefreshTrustedAdvisorCheckCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "AWSSupport_20130415.RefreshTrustedAdvisorCheck",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_RefreshTrustedAdvisorCheckRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_RefreshTrustedAdvisorCheckCommand = se_RefreshTrustedAdvisorCheckCommand;
|
|
138
|
+
const se_ResolveCaseCommand = async (input, context) => {
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/x-amz-json-1.1",
|
|
141
141
|
"x-amz-target": "AWSSupport_20130415.ResolveCase",
|
|
142
142
|
};
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify(se_ResolveCaseRequest(input, context));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
|
-
exports.
|
|
148
|
-
const
|
|
147
|
+
exports.se_ResolveCaseCommand = se_ResolveCaseCommand;
|
|
148
|
+
const de_AddAttachmentsToSetCommand = async (output, context) => {
|
|
149
149
|
if (output.statusCode >= 300) {
|
|
150
|
-
return
|
|
150
|
+
return de_AddAttachmentsToSetCommandError(output, context);
|
|
151
151
|
}
|
|
152
152
|
const data = await parseBody(output.body, context);
|
|
153
153
|
let contents = {};
|
|
154
|
-
contents =
|
|
154
|
+
contents = de_AddAttachmentsToSetResponse(data, context);
|
|
155
155
|
const response = {
|
|
156
156
|
$metadata: deserializeMetadata(output),
|
|
157
157
|
...contents,
|
|
158
158
|
};
|
|
159
159
|
return Promise.resolve(response);
|
|
160
160
|
};
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
161
|
+
exports.de_AddAttachmentsToSetCommand = de_AddAttachmentsToSetCommand;
|
|
162
|
+
const de_AddAttachmentsToSetCommandError = async (output, context) => {
|
|
163
163
|
const parsedOutput = {
|
|
164
164
|
...output,
|
|
165
165
|
body: await parseErrorBody(output.body, context),
|
|
@@ -168,19 +168,19 @@ const deserializeAws_json1_1AddAttachmentsToSetCommandError = async (output, con
|
|
|
168
168
|
switch (errorCode) {
|
|
169
169
|
case "AttachmentLimitExceeded":
|
|
170
170
|
case "com.amazonaws.support#AttachmentLimitExceeded":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_AttachmentLimitExceededRes(parsedOutput, context);
|
|
172
172
|
case "AttachmentSetExpired":
|
|
173
173
|
case "com.amazonaws.support#AttachmentSetExpired":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_AttachmentSetExpiredRes(parsedOutput, context);
|
|
175
175
|
case "AttachmentSetIdNotFound":
|
|
176
176
|
case "com.amazonaws.support#AttachmentSetIdNotFound":
|
|
177
|
-
throw await
|
|
177
|
+
throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
|
|
178
178
|
case "AttachmentSetSizeLimitExceeded":
|
|
179
179
|
case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
|
|
180
|
-
throw await
|
|
180
|
+
throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
|
|
181
181
|
case "InternalServerError":
|
|
182
182
|
case "com.amazonaws.support#InternalServerError":
|
|
183
|
-
throw await
|
|
183
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
184
184
|
default:
|
|
185
185
|
const parsedBody = parsedOutput.body;
|
|
186
186
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -191,21 +191,21 @@ const deserializeAws_json1_1AddAttachmentsToSetCommandError = async (output, con
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
const
|
|
194
|
+
const de_AddCommunicationToCaseCommand = async (output, context) => {
|
|
195
195
|
if (output.statusCode >= 300) {
|
|
196
|
-
return
|
|
196
|
+
return de_AddCommunicationToCaseCommandError(output, context);
|
|
197
197
|
}
|
|
198
198
|
const data = await parseBody(output.body, context);
|
|
199
199
|
let contents = {};
|
|
200
|
-
contents =
|
|
200
|
+
contents = de_AddCommunicationToCaseResponse(data, context);
|
|
201
201
|
const response = {
|
|
202
202
|
$metadata: deserializeMetadata(output),
|
|
203
203
|
...contents,
|
|
204
204
|
};
|
|
205
205
|
return Promise.resolve(response);
|
|
206
206
|
};
|
|
207
|
-
exports.
|
|
208
|
-
const
|
|
207
|
+
exports.de_AddCommunicationToCaseCommand = de_AddCommunicationToCaseCommand;
|
|
208
|
+
const de_AddCommunicationToCaseCommandError = async (output, context) => {
|
|
209
209
|
const parsedOutput = {
|
|
210
210
|
...output,
|
|
211
211
|
body: await parseErrorBody(output.body, context),
|
|
@@ -214,16 +214,16 @@ const deserializeAws_json1_1AddCommunicationToCaseCommandError = async (output,
|
|
|
214
214
|
switch (errorCode) {
|
|
215
215
|
case "AttachmentSetExpired":
|
|
216
216
|
case "com.amazonaws.support#AttachmentSetExpired":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_AttachmentSetExpiredRes(parsedOutput, context);
|
|
218
218
|
case "AttachmentSetIdNotFound":
|
|
219
219
|
case "com.amazonaws.support#AttachmentSetIdNotFound":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
|
|
221
221
|
case "CaseIdNotFound":
|
|
222
222
|
case "com.amazonaws.support#CaseIdNotFound":
|
|
223
|
-
throw await
|
|
223
|
+
throw await de_CaseIdNotFoundRes(parsedOutput, context);
|
|
224
224
|
case "InternalServerError":
|
|
225
225
|
case "com.amazonaws.support#InternalServerError":
|
|
226
|
-
throw await
|
|
226
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
227
227
|
default:
|
|
228
228
|
const parsedBody = parsedOutput.body;
|
|
229
229
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -234,21 +234,21 @@ const deserializeAws_json1_1AddCommunicationToCaseCommandError = async (output,
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
-
const
|
|
237
|
+
const de_CreateCaseCommand = async (output, context) => {
|
|
238
238
|
if (output.statusCode >= 300) {
|
|
239
|
-
return
|
|
239
|
+
return de_CreateCaseCommandError(output, context);
|
|
240
240
|
}
|
|
241
241
|
const data = await parseBody(output.body, context);
|
|
242
242
|
let contents = {};
|
|
243
|
-
contents =
|
|
243
|
+
contents = de_CreateCaseResponse(data, context);
|
|
244
244
|
const response = {
|
|
245
245
|
$metadata: deserializeMetadata(output),
|
|
246
246
|
...contents,
|
|
247
247
|
};
|
|
248
248
|
return Promise.resolve(response);
|
|
249
249
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
250
|
+
exports.de_CreateCaseCommand = de_CreateCaseCommand;
|
|
251
|
+
const de_CreateCaseCommandError = async (output, context) => {
|
|
252
252
|
const parsedOutput = {
|
|
253
253
|
...output,
|
|
254
254
|
body: await parseErrorBody(output.body, context),
|
|
@@ -257,16 +257,16 @@ const deserializeAws_json1_1CreateCaseCommandError = async (output, context) =>
|
|
|
257
257
|
switch (errorCode) {
|
|
258
258
|
case "AttachmentSetExpired":
|
|
259
259
|
case "com.amazonaws.support#AttachmentSetExpired":
|
|
260
|
-
throw await
|
|
260
|
+
throw await de_AttachmentSetExpiredRes(parsedOutput, context);
|
|
261
261
|
case "AttachmentSetIdNotFound":
|
|
262
262
|
case "com.amazonaws.support#AttachmentSetIdNotFound":
|
|
263
|
-
throw await
|
|
263
|
+
throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
|
|
264
264
|
case "CaseCreationLimitExceeded":
|
|
265
265
|
case "com.amazonaws.support#CaseCreationLimitExceeded":
|
|
266
|
-
throw await
|
|
266
|
+
throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
|
|
267
267
|
case "InternalServerError":
|
|
268
268
|
case "com.amazonaws.support#InternalServerError":
|
|
269
|
-
throw await
|
|
269
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
270
270
|
default:
|
|
271
271
|
const parsedBody = parsedOutput.body;
|
|
272
272
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -277,21 +277,21 @@ const deserializeAws_json1_1CreateCaseCommandError = async (output, context) =>
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
|
-
const
|
|
280
|
+
const de_DescribeAttachmentCommand = async (output, context) => {
|
|
281
281
|
if (output.statusCode >= 300) {
|
|
282
|
-
return
|
|
282
|
+
return de_DescribeAttachmentCommandError(output, context);
|
|
283
283
|
}
|
|
284
284
|
const data = await parseBody(output.body, context);
|
|
285
285
|
let contents = {};
|
|
286
|
-
contents =
|
|
286
|
+
contents = de_DescribeAttachmentResponse(data, context);
|
|
287
287
|
const response = {
|
|
288
288
|
$metadata: deserializeMetadata(output),
|
|
289
289
|
...contents,
|
|
290
290
|
};
|
|
291
291
|
return Promise.resolve(response);
|
|
292
292
|
};
|
|
293
|
-
exports.
|
|
294
|
-
const
|
|
293
|
+
exports.de_DescribeAttachmentCommand = de_DescribeAttachmentCommand;
|
|
294
|
+
const de_DescribeAttachmentCommandError = async (output, context) => {
|
|
295
295
|
const parsedOutput = {
|
|
296
296
|
...output,
|
|
297
297
|
body: await parseErrorBody(output.body, context),
|
|
@@ -300,13 +300,13 @@ const deserializeAws_json1_1DescribeAttachmentCommandError = async (output, cont
|
|
|
300
300
|
switch (errorCode) {
|
|
301
301
|
case "AttachmentIdNotFound":
|
|
302
302
|
case "com.amazonaws.support#AttachmentIdNotFound":
|
|
303
|
-
throw await
|
|
303
|
+
throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
|
|
304
304
|
case "DescribeAttachmentLimitExceeded":
|
|
305
305
|
case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
|
|
306
|
-
throw await
|
|
306
|
+
throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
|
|
307
307
|
case "InternalServerError":
|
|
308
308
|
case "com.amazonaws.support#InternalServerError":
|
|
309
|
-
throw await
|
|
309
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
310
310
|
default:
|
|
311
311
|
const parsedBody = parsedOutput.body;
|
|
312
312
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -317,21 +317,21 @@ const deserializeAws_json1_1DescribeAttachmentCommandError = async (output, cont
|
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
const
|
|
320
|
+
const de_DescribeCasesCommand = async (output, context) => {
|
|
321
321
|
if (output.statusCode >= 300) {
|
|
322
|
-
return
|
|
322
|
+
return de_DescribeCasesCommandError(output, context);
|
|
323
323
|
}
|
|
324
324
|
const data = await parseBody(output.body, context);
|
|
325
325
|
let contents = {};
|
|
326
|
-
contents =
|
|
326
|
+
contents = de_DescribeCasesResponse(data, context);
|
|
327
327
|
const response = {
|
|
328
328
|
$metadata: deserializeMetadata(output),
|
|
329
329
|
...contents,
|
|
330
330
|
};
|
|
331
331
|
return Promise.resolve(response);
|
|
332
332
|
};
|
|
333
|
-
exports.
|
|
334
|
-
const
|
|
333
|
+
exports.de_DescribeCasesCommand = de_DescribeCasesCommand;
|
|
334
|
+
const de_DescribeCasesCommandError = async (output, context) => {
|
|
335
335
|
const parsedOutput = {
|
|
336
336
|
...output,
|
|
337
337
|
body: await parseErrorBody(output.body, context),
|
|
@@ -340,10 +340,10 @@ const deserializeAws_json1_1DescribeCasesCommandError = async (output, context)
|
|
|
340
340
|
switch (errorCode) {
|
|
341
341
|
case "CaseIdNotFound":
|
|
342
342
|
case "com.amazonaws.support#CaseIdNotFound":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_CaseIdNotFoundRes(parsedOutput, context);
|
|
344
344
|
case "InternalServerError":
|
|
345
345
|
case "com.amazonaws.support#InternalServerError":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
347
347
|
default:
|
|
348
348
|
const parsedBody = parsedOutput.body;
|
|
349
349
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -354,21 +354,21 @@ const deserializeAws_json1_1DescribeCasesCommandError = async (output, context)
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
const
|
|
357
|
+
const de_DescribeCommunicationsCommand = async (output, context) => {
|
|
358
358
|
if (output.statusCode >= 300) {
|
|
359
|
-
return
|
|
359
|
+
return de_DescribeCommunicationsCommandError(output, context);
|
|
360
360
|
}
|
|
361
361
|
const data = await parseBody(output.body, context);
|
|
362
362
|
let contents = {};
|
|
363
|
-
contents =
|
|
363
|
+
contents = de_DescribeCommunicationsResponse(data, context);
|
|
364
364
|
const response = {
|
|
365
365
|
$metadata: deserializeMetadata(output),
|
|
366
366
|
...contents,
|
|
367
367
|
};
|
|
368
368
|
return Promise.resolve(response);
|
|
369
369
|
};
|
|
370
|
-
exports.
|
|
371
|
-
const
|
|
370
|
+
exports.de_DescribeCommunicationsCommand = de_DescribeCommunicationsCommand;
|
|
371
|
+
const de_DescribeCommunicationsCommandError = async (output, context) => {
|
|
372
372
|
const parsedOutput = {
|
|
373
373
|
...output,
|
|
374
374
|
body: await parseErrorBody(output.body, context),
|
|
@@ -377,10 +377,10 @@ const deserializeAws_json1_1DescribeCommunicationsCommandError = async (output,
|
|
|
377
377
|
switch (errorCode) {
|
|
378
378
|
case "CaseIdNotFound":
|
|
379
379
|
case "com.amazonaws.support#CaseIdNotFound":
|
|
380
|
-
throw await
|
|
380
|
+
throw await de_CaseIdNotFoundRes(parsedOutput, context);
|
|
381
381
|
case "InternalServerError":
|
|
382
382
|
case "com.amazonaws.support#InternalServerError":
|
|
383
|
-
throw await
|
|
383
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
384
384
|
default:
|
|
385
385
|
const parsedBody = parsedOutput.body;
|
|
386
386
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -391,21 +391,21 @@ const deserializeAws_json1_1DescribeCommunicationsCommandError = async (output,
|
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
const
|
|
394
|
+
const de_DescribeServicesCommand = async (output, context) => {
|
|
395
395
|
if (output.statusCode >= 300) {
|
|
396
|
-
return
|
|
396
|
+
return de_DescribeServicesCommandError(output, context);
|
|
397
397
|
}
|
|
398
398
|
const data = await parseBody(output.body, context);
|
|
399
399
|
let contents = {};
|
|
400
|
-
contents =
|
|
400
|
+
contents = de_DescribeServicesResponse(data, context);
|
|
401
401
|
const response = {
|
|
402
402
|
$metadata: deserializeMetadata(output),
|
|
403
403
|
...contents,
|
|
404
404
|
};
|
|
405
405
|
return Promise.resolve(response);
|
|
406
406
|
};
|
|
407
|
-
exports.
|
|
408
|
-
const
|
|
407
|
+
exports.de_DescribeServicesCommand = de_DescribeServicesCommand;
|
|
408
|
+
const de_DescribeServicesCommandError = async (output, context) => {
|
|
409
409
|
const parsedOutput = {
|
|
410
410
|
...output,
|
|
411
411
|
body: await parseErrorBody(output.body, context),
|
|
@@ -414,7 +414,7 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
414
414
|
switch (errorCode) {
|
|
415
415
|
case "InternalServerError":
|
|
416
416
|
case "com.amazonaws.support#InternalServerError":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
418
418
|
default:
|
|
419
419
|
const parsedBody = parsedOutput.body;
|
|
420
420
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -425,21 +425,21 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_DescribeSeverityLevelsCommand = async (output, context) => {
|
|
429
429
|
if (output.statusCode >= 300) {
|
|
430
|
-
return
|
|
430
|
+
return de_DescribeSeverityLevelsCommandError(output, context);
|
|
431
431
|
}
|
|
432
432
|
const data = await parseBody(output.body, context);
|
|
433
433
|
let contents = {};
|
|
434
|
-
contents =
|
|
434
|
+
contents = de_DescribeSeverityLevelsResponse(data, context);
|
|
435
435
|
const response = {
|
|
436
436
|
$metadata: deserializeMetadata(output),
|
|
437
437
|
...contents,
|
|
438
438
|
};
|
|
439
439
|
return Promise.resolve(response);
|
|
440
440
|
};
|
|
441
|
-
exports.
|
|
442
|
-
const
|
|
441
|
+
exports.de_DescribeSeverityLevelsCommand = de_DescribeSeverityLevelsCommand;
|
|
442
|
+
const de_DescribeSeverityLevelsCommandError = async (output, context) => {
|
|
443
443
|
const parsedOutput = {
|
|
444
444
|
...output,
|
|
445
445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -448,7 +448,7 @@ const deserializeAws_json1_1DescribeSeverityLevelsCommandError = async (output,
|
|
|
448
448
|
switch (errorCode) {
|
|
449
449
|
case "InternalServerError":
|
|
450
450
|
case "com.amazonaws.support#InternalServerError":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
452
452
|
default:
|
|
453
453
|
const parsedBody = parsedOutput.body;
|
|
454
454
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -459,21 +459,21 @@ const deserializeAws_json1_1DescribeSeverityLevelsCommandError = async (output,
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
const
|
|
462
|
+
const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
|
|
463
463
|
if (output.statusCode >= 300) {
|
|
464
|
-
return
|
|
464
|
+
return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
|
|
465
465
|
}
|
|
466
466
|
const data = await parseBody(output.body, context);
|
|
467
467
|
let contents = {};
|
|
468
|
-
contents =
|
|
468
|
+
contents = de_DescribeTrustedAdvisorCheckRefreshStatusesResponse(data, context);
|
|
469
469
|
const response = {
|
|
470
470
|
$metadata: deserializeMetadata(output),
|
|
471
471
|
...contents,
|
|
472
472
|
};
|
|
473
473
|
return Promise.resolve(response);
|
|
474
474
|
};
|
|
475
|
-
exports.
|
|
476
|
-
const
|
|
475
|
+
exports.de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = de_DescribeTrustedAdvisorCheckRefreshStatusesCommand;
|
|
476
|
+
const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output, context) => {
|
|
477
477
|
const parsedOutput = {
|
|
478
478
|
...output,
|
|
479
479
|
body: await parseErrorBody(output.body, context),
|
|
@@ -482,7 +482,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandErr
|
|
|
482
482
|
switch (errorCode) {
|
|
483
483
|
case "InternalServerError":
|
|
484
484
|
case "com.amazonaws.support#InternalServerError":
|
|
485
|
-
throw await
|
|
485
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
486
486
|
default:
|
|
487
487
|
const parsedBody = parsedOutput.body;
|
|
488
488
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -493,21 +493,21 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandErr
|
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
const
|
|
496
|
+
const de_DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
|
|
497
497
|
if (output.statusCode >= 300) {
|
|
498
|
-
return
|
|
498
|
+
return de_DescribeTrustedAdvisorCheckResultCommandError(output, context);
|
|
499
499
|
}
|
|
500
500
|
const data = await parseBody(output.body, context);
|
|
501
501
|
let contents = {};
|
|
502
|
-
contents =
|
|
502
|
+
contents = de_DescribeTrustedAdvisorCheckResultResponse(data, context);
|
|
503
503
|
const response = {
|
|
504
504
|
$metadata: deserializeMetadata(output),
|
|
505
505
|
...contents,
|
|
506
506
|
};
|
|
507
507
|
return Promise.resolve(response);
|
|
508
508
|
};
|
|
509
|
-
exports.
|
|
510
|
-
const
|
|
509
|
+
exports.de_DescribeTrustedAdvisorCheckResultCommand = de_DescribeTrustedAdvisorCheckResultCommand;
|
|
510
|
+
const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context) => {
|
|
511
511
|
const parsedOutput = {
|
|
512
512
|
...output,
|
|
513
513
|
body: await parseErrorBody(output.body, context),
|
|
@@ -516,7 +516,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = asyn
|
|
|
516
516
|
switch (errorCode) {
|
|
517
517
|
case "InternalServerError":
|
|
518
518
|
case "com.amazonaws.support#InternalServerError":
|
|
519
|
-
throw await
|
|
519
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
520
520
|
default:
|
|
521
521
|
const parsedBody = parsedOutput.body;
|
|
522
522
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -527,21 +527,21 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = asyn
|
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
const
|
|
530
|
+
const de_DescribeTrustedAdvisorChecksCommand = async (output, context) => {
|
|
531
531
|
if (output.statusCode >= 300) {
|
|
532
|
-
return
|
|
532
|
+
return de_DescribeTrustedAdvisorChecksCommandError(output, context);
|
|
533
533
|
}
|
|
534
534
|
const data = await parseBody(output.body, context);
|
|
535
535
|
let contents = {};
|
|
536
|
-
contents =
|
|
536
|
+
contents = de_DescribeTrustedAdvisorChecksResponse(data, context);
|
|
537
537
|
const response = {
|
|
538
538
|
$metadata: deserializeMetadata(output),
|
|
539
539
|
...contents,
|
|
540
540
|
};
|
|
541
541
|
return Promise.resolve(response);
|
|
542
542
|
};
|
|
543
|
-
exports.
|
|
544
|
-
const
|
|
543
|
+
exports.de_DescribeTrustedAdvisorChecksCommand = de_DescribeTrustedAdvisorChecksCommand;
|
|
544
|
+
const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
|
|
545
545
|
const parsedOutput = {
|
|
546
546
|
...output,
|
|
547
547
|
body: await parseErrorBody(output.body, context),
|
|
@@ -550,7 +550,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = async (ou
|
|
|
550
550
|
switch (errorCode) {
|
|
551
551
|
case "InternalServerError":
|
|
552
552
|
case "com.amazonaws.support#InternalServerError":
|
|
553
|
-
throw await
|
|
553
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
554
554
|
default:
|
|
555
555
|
const parsedBody = parsedOutput.body;
|
|
556
556
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -561,21 +561,21 @@ const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = async (ou
|
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
|
-
const
|
|
564
|
+
const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) => {
|
|
565
565
|
if (output.statusCode >= 300) {
|
|
566
|
-
return
|
|
566
|
+
return de_DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
|
|
567
567
|
}
|
|
568
568
|
const data = await parseBody(output.body, context);
|
|
569
569
|
let contents = {};
|
|
570
|
-
contents =
|
|
570
|
+
contents = de_DescribeTrustedAdvisorCheckSummariesResponse(data, context);
|
|
571
571
|
const response = {
|
|
572
572
|
$metadata: deserializeMetadata(output),
|
|
573
573
|
...contents,
|
|
574
574
|
};
|
|
575
575
|
return Promise.resolve(response);
|
|
576
576
|
};
|
|
577
|
-
exports.
|
|
578
|
-
const
|
|
577
|
+
exports.de_DescribeTrustedAdvisorCheckSummariesCommand = de_DescribeTrustedAdvisorCheckSummariesCommand;
|
|
578
|
+
const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, context) => {
|
|
579
579
|
const parsedOutput = {
|
|
580
580
|
...output,
|
|
581
581
|
body: await parseErrorBody(output.body, context),
|
|
@@ -584,7 +584,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = a
|
|
|
584
584
|
switch (errorCode) {
|
|
585
585
|
case "InternalServerError":
|
|
586
586
|
case "com.amazonaws.support#InternalServerError":
|
|
587
|
-
throw await
|
|
587
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
588
588
|
default:
|
|
589
589
|
const parsedBody = parsedOutput.body;
|
|
590
590
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -595,21 +595,21 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = a
|
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
const
|
|
598
|
+
const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
|
|
599
599
|
if (output.statusCode >= 300) {
|
|
600
|
-
return
|
|
600
|
+
return de_RefreshTrustedAdvisorCheckCommandError(output, context);
|
|
601
601
|
}
|
|
602
602
|
const data = await parseBody(output.body, context);
|
|
603
603
|
let contents = {};
|
|
604
|
-
contents =
|
|
604
|
+
contents = de_RefreshTrustedAdvisorCheckResponse(data, context);
|
|
605
605
|
const response = {
|
|
606
606
|
$metadata: deserializeMetadata(output),
|
|
607
607
|
...contents,
|
|
608
608
|
};
|
|
609
609
|
return Promise.resolve(response);
|
|
610
610
|
};
|
|
611
|
-
exports.
|
|
612
|
-
const
|
|
611
|
+
exports.de_RefreshTrustedAdvisorCheckCommand = de_RefreshTrustedAdvisorCheckCommand;
|
|
612
|
+
const de_RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
|
|
613
613
|
const parsedOutput = {
|
|
614
614
|
...output,
|
|
615
615
|
body: await parseErrorBody(output.body, context),
|
|
@@ -618,7 +618,7 @@ const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = async (outp
|
|
|
618
618
|
switch (errorCode) {
|
|
619
619
|
case "InternalServerError":
|
|
620
620
|
case "com.amazonaws.support#InternalServerError":
|
|
621
|
-
throw await
|
|
621
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
622
622
|
default:
|
|
623
623
|
const parsedBody = parsedOutput.body;
|
|
624
624
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -629,21 +629,21 @@ const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = async (outp
|
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
};
|
|
632
|
-
const
|
|
632
|
+
const de_ResolveCaseCommand = async (output, context) => {
|
|
633
633
|
if (output.statusCode >= 300) {
|
|
634
|
-
return
|
|
634
|
+
return de_ResolveCaseCommandError(output, context);
|
|
635
635
|
}
|
|
636
636
|
const data = await parseBody(output.body, context);
|
|
637
637
|
let contents = {};
|
|
638
|
-
contents =
|
|
638
|
+
contents = de_ResolveCaseResponse(data, context);
|
|
639
639
|
const response = {
|
|
640
640
|
$metadata: deserializeMetadata(output),
|
|
641
641
|
...contents,
|
|
642
642
|
};
|
|
643
643
|
return Promise.resolve(response);
|
|
644
644
|
};
|
|
645
|
-
exports.
|
|
646
|
-
const
|
|
645
|
+
exports.de_ResolveCaseCommand = de_ResolveCaseCommand;
|
|
646
|
+
const de_ResolveCaseCommandError = async (output, context) => {
|
|
647
647
|
const parsedOutput = {
|
|
648
648
|
...output,
|
|
649
649
|
body: await parseErrorBody(output.body, context),
|
|
@@ -652,10 +652,10 @@ const deserializeAws_json1_1ResolveCaseCommandError = async (output, context) =>
|
|
|
652
652
|
switch (errorCode) {
|
|
653
653
|
case "CaseIdNotFound":
|
|
654
654
|
case "com.amazonaws.support#CaseIdNotFound":
|
|
655
|
-
throw await
|
|
655
|
+
throw await de_CaseIdNotFoundRes(parsedOutput, context);
|
|
656
656
|
case "InternalServerError":
|
|
657
657
|
case "com.amazonaws.support#InternalServerError":
|
|
658
|
-
throw await
|
|
658
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
659
659
|
default:
|
|
660
660
|
const parsedBody = parsedOutput.body;
|
|
661
661
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -666,137 +666,133 @@ const deserializeAws_json1_1ResolveCaseCommandError = async (output, context) =>
|
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
|
-
const
|
|
669
|
+
const de_AttachmentIdNotFoundRes = async (parsedOutput, context) => {
|
|
670
670
|
const body = parsedOutput.body;
|
|
671
|
-
const deserialized =
|
|
671
|
+
const deserialized = de_AttachmentIdNotFound(body, context);
|
|
672
672
|
const exception = new models_0_1.AttachmentIdNotFound({
|
|
673
673
|
$metadata: deserializeMetadata(parsedOutput),
|
|
674
674
|
...deserialized,
|
|
675
675
|
});
|
|
676
676
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
677
677
|
};
|
|
678
|
-
const
|
|
678
|
+
const de_AttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
679
679
|
const body = parsedOutput.body;
|
|
680
|
-
const deserialized =
|
|
680
|
+
const deserialized = de_AttachmentLimitExceeded(body, context);
|
|
681
681
|
const exception = new models_0_1.AttachmentLimitExceeded({
|
|
682
682
|
$metadata: deserializeMetadata(parsedOutput),
|
|
683
683
|
...deserialized,
|
|
684
684
|
});
|
|
685
685
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
686
686
|
};
|
|
687
|
-
const
|
|
687
|
+
const de_AttachmentSetExpiredRes = async (parsedOutput, context) => {
|
|
688
688
|
const body = parsedOutput.body;
|
|
689
|
-
const deserialized =
|
|
689
|
+
const deserialized = de_AttachmentSetExpired(body, context);
|
|
690
690
|
const exception = new models_0_1.AttachmentSetExpired({
|
|
691
691
|
$metadata: deserializeMetadata(parsedOutput),
|
|
692
692
|
...deserialized,
|
|
693
693
|
});
|
|
694
694
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const de_AttachmentSetIdNotFoundRes = async (parsedOutput, context) => {
|
|
697
697
|
const body = parsedOutput.body;
|
|
698
|
-
const deserialized =
|
|
698
|
+
const deserialized = de_AttachmentSetIdNotFound(body, context);
|
|
699
699
|
const exception = new models_0_1.AttachmentSetIdNotFound({
|
|
700
700
|
$metadata: deserializeMetadata(parsedOutput),
|
|
701
701
|
...deserialized,
|
|
702
702
|
});
|
|
703
703
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
704
704
|
};
|
|
705
|
-
const
|
|
705
|
+
const de_AttachmentSetSizeLimitExceededRes = async (parsedOutput, context) => {
|
|
706
706
|
const body = parsedOutput.body;
|
|
707
|
-
const deserialized =
|
|
707
|
+
const deserialized = de_AttachmentSetSizeLimitExceeded(body, context);
|
|
708
708
|
const exception = new models_0_1.AttachmentSetSizeLimitExceeded({
|
|
709
709
|
$metadata: deserializeMetadata(parsedOutput),
|
|
710
710
|
...deserialized,
|
|
711
711
|
});
|
|
712
712
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
713
713
|
};
|
|
714
|
-
const
|
|
714
|
+
const de_CaseCreationLimitExceededRes = async (parsedOutput, context) => {
|
|
715
715
|
const body = parsedOutput.body;
|
|
716
|
-
const deserialized =
|
|
716
|
+
const deserialized = de_CaseCreationLimitExceeded(body, context);
|
|
717
717
|
const exception = new models_0_1.CaseCreationLimitExceeded({
|
|
718
718
|
$metadata: deserializeMetadata(parsedOutput),
|
|
719
719
|
...deserialized,
|
|
720
720
|
});
|
|
721
721
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
722
722
|
};
|
|
723
|
-
const
|
|
723
|
+
const de_CaseIdNotFoundRes = async (parsedOutput, context) => {
|
|
724
724
|
const body = parsedOutput.body;
|
|
725
|
-
const deserialized =
|
|
725
|
+
const deserialized = de_CaseIdNotFound(body, context);
|
|
726
726
|
const exception = new models_0_1.CaseIdNotFound({
|
|
727
727
|
$metadata: deserializeMetadata(parsedOutput),
|
|
728
728
|
...deserialized,
|
|
729
729
|
});
|
|
730
730
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
731
731
|
};
|
|
732
|
-
const
|
|
732
|
+
const de_DescribeAttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
733
733
|
const body = parsedOutput.body;
|
|
734
|
-
const deserialized =
|
|
734
|
+
const deserialized = de_DescribeAttachmentLimitExceeded(body, context);
|
|
735
735
|
const exception = new models_0_1.DescribeAttachmentLimitExceeded({
|
|
736
736
|
$metadata: deserializeMetadata(parsedOutput),
|
|
737
737
|
...deserialized,
|
|
738
738
|
});
|
|
739
739
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
740
740
|
};
|
|
741
|
-
const
|
|
741
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
742
742
|
const body = parsedOutput.body;
|
|
743
|
-
const deserialized =
|
|
743
|
+
const deserialized = de_InternalServerError(body, context);
|
|
744
744
|
const exception = new models_0_1.InternalServerError({
|
|
745
745
|
$metadata: deserializeMetadata(parsedOutput),
|
|
746
746
|
...deserialized,
|
|
747
747
|
});
|
|
748
748
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
749
749
|
};
|
|
750
|
-
const
|
|
750
|
+
const se_AddAttachmentsToSetRequest = (input, context) => {
|
|
751
751
|
return {
|
|
752
752
|
...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
|
|
753
|
-
...(input.attachments != null && { attachments:
|
|
753
|
+
...(input.attachments != null && { attachments: se_Attachments(input.attachments, context) }),
|
|
754
754
|
};
|
|
755
755
|
};
|
|
756
|
-
const
|
|
756
|
+
const se_AddCommunicationToCaseRequest = (input, context) => {
|
|
757
757
|
return {
|
|
758
758
|
...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
|
|
759
759
|
...(input.caseId != null && { caseId: input.caseId }),
|
|
760
|
-
...(input.ccEmailAddresses != null && {
|
|
761
|
-
ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
|
|
762
|
-
}),
|
|
760
|
+
...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
|
|
763
761
|
...(input.communicationBody != null && { communicationBody: input.communicationBody }),
|
|
764
762
|
};
|
|
765
763
|
};
|
|
766
|
-
const
|
|
764
|
+
const se_Attachment = (input, context) => {
|
|
767
765
|
return {
|
|
768
766
|
...(input.data != null && { data: context.base64Encoder(input.data) }),
|
|
769
767
|
...(input.fileName != null && { fileName: input.fileName }),
|
|
770
768
|
};
|
|
771
769
|
};
|
|
772
|
-
const
|
|
770
|
+
const se_Attachments = (input, context) => {
|
|
773
771
|
return input
|
|
774
772
|
.filter((e) => e != null)
|
|
775
773
|
.map((entry) => {
|
|
776
|
-
return
|
|
774
|
+
return se_Attachment(entry, context);
|
|
777
775
|
});
|
|
778
776
|
};
|
|
779
|
-
const
|
|
777
|
+
const se_CaseIdList = (input, context) => {
|
|
780
778
|
return input
|
|
781
779
|
.filter((e) => e != null)
|
|
782
780
|
.map((entry) => {
|
|
783
781
|
return entry;
|
|
784
782
|
});
|
|
785
783
|
};
|
|
786
|
-
const
|
|
784
|
+
const se_CcEmailAddressList = (input, context) => {
|
|
787
785
|
return input
|
|
788
786
|
.filter((e) => e != null)
|
|
789
787
|
.map((entry) => {
|
|
790
788
|
return entry;
|
|
791
789
|
});
|
|
792
790
|
};
|
|
793
|
-
const
|
|
791
|
+
const se_CreateCaseRequest = (input, context) => {
|
|
794
792
|
return {
|
|
795
793
|
...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
|
|
796
794
|
...(input.categoryCode != null && { categoryCode: input.categoryCode }),
|
|
797
|
-
...(input.ccEmailAddresses != null && {
|
|
798
|
-
ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
|
|
799
|
-
}),
|
|
795
|
+
...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
|
|
800
796
|
...(input.communicationBody != null && { communicationBody: input.communicationBody }),
|
|
801
797
|
...(input.issueType != null && { issueType: input.issueType }),
|
|
802
798
|
...(input.language != null && { language: input.language }),
|
|
@@ -805,16 +801,16 @@ const serializeAws_json1_1CreateCaseRequest = (input, context) => {
|
|
|
805
801
|
...(input.subject != null && { subject: input.subject }),
|
|
806
802
|
};
|
|
807
803
|
};
|
|
808
|
-
const
|
|
804
|
+
const se_DescribeAttachmentRequest = (input, context) => {
|
|
809
805
|
return {
|
|
810
806
|
...(input.attachmentId != null && { attachmentId: input.attachmentId }),
|
|
811
807
|
};
|
|
812
808
|
};
|
|
813
|
-
const
|
|
809
|
+
const se_DescribeCasesRequest = (input, context) => {
|
|
814
810
|
return {
|
|
815
811
|
...(input.afterTime != null && { afterTime: input.afterTime }),
|
|
816
812
|
...(input.beforeTime != null && { beforeTime: input.beforeTime }),
|
|
817
|
-
...(input.caseIdList != null && { caseIdList:
|
|
813
|
+
...(input.caseIdList != null && { caseIdList: se_CaseIdList(input.caseIdList, context) }),
|
|
818
814
|
...(input.displayId != null && { displayId: input.displayId }),
|
|
819
815
|
...(input.includeCommunications != null && { includeCommunications: input.includeCommunications }),
|
|
820
816
|
...(input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases }),
|
|
@@ -823,7 +819,7 @@ const serializeAws_json1_1DescribeCasesRequest = (input, context) => {
|
|
|
823
819
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
824
820
|
};
|
|
825
821
|
};
|
|
826
|
-
const
|
|
822
|
+
const se_DescribeCommunicationsRequest = (input, context) => {
|
|
827
823
|
return {
|
|
828
824
|
...(input.afterTime != null && { afterTime: input.afterTime }),
|
|
829
825
|
...(input.beforeTime != null && { beforeTime: input.beforeTime }),
|
|
@@ -832,58 +828,56 @@ const serializeAws_json1_1DescribeCommunicationsRequest = (input, context) => {
|
|
|
832
828
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
833
829
|
};
|
|
834
830
|
};
|
|
835
|
-
const
|
|
831
|
+
const se_DescribeServicesRequest = (input, context) => {
|
|
836
832
|
return {
|
|
837
833
|
...(input.language != null && { language: input.language }),
|
|
838
|
-
...(input.serviceCodeList != null && {
|
|
839
|
-
serviceCodeList: serializeAws_json1_1ServiceCodeList(input.serviceCodeList, context),
|
|
840
|
-
}),
|
|
834
|
+
...(input.serviceCodeList != null && { serviceCodeList: se_ServiceCodeList(input.serviceCodeList, context) }),
|
|
841
835
|
};
|
|
842
836
|
};
|
|
843
|
-
const
|
|
837
|
+
const se_DescribeSeverityLevelsRequest = (input, context) => {
|
|
844
838
|
return {
|
|
845
839
|
...(input.language != null && { language: input.language }),
|
|
846
840
|
};
|
|
847
841
|
};
|
|
848
|
-
const
|
|
842
|
+
const se_DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
|
|
849
843
|
return {
|
|
850
|
-
...(input.checkIds != null && { checkIds:
|
|
844
|
+
...(input.checkIds != null && { checkIds: se_StringList(input.checkIds, context) }),
|
|
851
845
|
};
|
|
852
846
|
};
|
|
853
|
-
const
|
|
847
|
+
const se_DescribeTrustedAdvisorCheckResultRequest = (input, context) => {
|
|
854
848
|
return {
|
|
855
849
|
...(input.checkId != null && { checkId: input.checkId }),
|
|
856
850
|
...(input.language != null && { language: input.language }),
|
|
857
851
|
};
|
|
858
852
|
};
|
|
859
|
-
const
|
|
853
|
+
const se_DescribeTrustedAdvisorChecksRequest = (input, context) => {
|
|
860
854
|
return {
|
|
861
855
|
...(input.language != null && { language: input.language }),
|
|
862
856
|
};
|
|
863
857
|
};
|
|
864
|
-
const
|
|
858
|
+
const se_DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
|
|
865
859
|
return {
|
|
866
|
-
...(input.checkIds != null && { checkIds:
|
|
860
|
+
...(input.checkIds != null && { checkIds: se_StringList(input.checkIds, context) }),
|
|
867
861
|
};
|
|
868
862
|
};
|
|
869
|
-
const
|
|
863
|
+
const se_RefreshTrustedAdvisorCheckRequest = (input, context) => {
|
|
870
864
|
return {
|
|
871
865
|
...(input.checkId != null && { checkId: input.checkId }),
|
|
872
866
|
};
|
|
873
867
|
};
|
|
874
|
-
const
|
|
868
|
+
const se_ResolveCaseRequest = (input, context) => {
|
|
875
869
|
return {
|
|
876
870
|
...(input.caseId != null && { caseId: input.caseId }),
|
|
877
871
|
};
|
|
878
872
|
};
|
|
879
|
-
const
|
|
873
|
+
const se_ServiceCodeList = (input, context) => {
|
|
880
874
|
return input
|
|
881
875
|
.filter((e) => e != null)
|
|
882
876
|
.map((entry) => {
|
|
883
877
|
return entry;
|
|
884
878
|
});
|
|
885
879
|
};
|
|
886
|
-
const
|
|
880
|
+
const se_StringList = (input, context) => {
|
|
887
881
|
return input.map((entry) => {
|
|
888
882
|
if (entry === null) {
|
|
889
883
|
return null;
|
|
@@ -891,81 +885,79 @@ const serializeAws_json1_1StringList = (input, context) => {
|
|
|
891
885
|
return entry;
|
|
892
886
|
});
|
|
893
887
|
};
|
|
894
|
-
const
|
|
888
|
+
const de_AddAttachmentsToSetResponse = (output, context) => {
|
|
895
889
|
return {
|
|
896
890
|
attachmentSetId: (0, smithy_client_1.expectString)(output.attachmentSetId),
|
|
897
891
|
expiryTime: (0, smithy_client_1.expectString)(output.expiryTime),
|
|
898
892
|
};
|
|
899
893
|
};
|
|
900
|
-
const
|
|
894
|
+
const de_AddCommunicationToCaseResponse = (output, context) => {
|
|
901
895
|
return {
|
|
902
896
|
result: (0, smithy_client_1.expectBoolean)(output.result),
|
|
903
897
|
};
|
|
904
898
|
};
|
|
905
|
-
const
|
|
899
|
+
const de_Attachment = (output, context) => {
|
|
906
900
|
return {
|
|
907
901
|
data: output.data != null ? context.base64Decoder(output.data) : undefined,
|
|
908
902
|
fileName: (0, smithy_client_1.expectString)(output.fileName),
|
|
909
903
|
};
|
|
910
904
|
};
|
|
911
|
-
const
|
|
905
|
+
const de_AttachmentDetails = (output, context) => {
|
|
912
906
|
return {
|
|
913
907
|
attachmentId: (0, smithy_client_1.expectString)(output.attachmentId),
|
|
914
908
|
fileName: (0, smithy_client_1.expectString)(output.fileName),
|
|
915
909
|
};
|
|
916
910
|
};
|
|
917
|
-
const
|
|
911
|
+
const de_AttachmentIdNotFound = (output, context) => {
|
|
918
912
|
return {
|
|
919
913
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
920
914
|
};
|
|
921
915
|
};
|
|
922
|
-
const
|
|
916
|
+
const de_AttachmentLimitExceeded = (output, context) => {
|
|
923
917
|
return {
|
|
924
918
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
925
919
|
};
|
|
926
920
|
};
|
|
927
|
-
const
|
|
921
|
+
const de_AttachmentSet = (output, context) => {
|
|
928
922
|
const retVal = (output || [])
|
|
929
923
|
.filter((e) => e != null)
|
|
930
924
|
.map((entry) => {
|
|
931
925
|
if (entry === null) {
|
|
932
926
|
return null;
|
|
933
927
|
}
|
|
934
|
-
return
|
|
928
|
+
return de_AttachmentDetails(entry, context);
|
|
935
929
|
});
|
|
936
930
|
return retVal;
|
|
937
931
|
};
|
|
938
|
-
const
|
|
932
|
+
const de_AttachmentSetExpired = (output, context) => {
|
|
939
933
|
return {
|
|
940
934
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
941
935
|
};
|
|
942
936
|
};
|
|
943
|
-
const
|
|
937
|
+
const de_AttachmentSetIdNotFound = (output, context) => {
|
|
944
938
|
return {
|
|
945
939
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
946
940
|
};
|
|
947
941
|
};
|
|
948
|
-
const
|
|
942
|
+
const de_AttachmentSetSizeLimitExceeded = (output, context) => {
|
|
949
943
|
return {
|
|
950
944
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
951
945
|
};
|
|
952
946
|
};
|
|
953
|
-
const
|
|
947
|
+
const de_CaseCreationLimitExceeded = (output, context) => {
|
|
954
948
|
return {
|
|
955
949
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
956
950
|
};
|
|
957
951
|
};
|
|
958
|
-
const
|
|
952
|
+
const de_CaseDetails = (output, context) => {
|
|
959
953
|
return {
|
|
960
954
|
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
961
955
|
categoryCode: (0, smithy_client_1.expectString)(output.categoryCode),
|
|
962
|
-
ccEmailAddresses: output.ccEmailAddresses != null
|
|
963
|
-
? deserializeAws_json1_1CcEmailAddressList(output.ccEmailAddresses, context)
|
|
964
|
-
: undefined,
|
|
956
|
+
ccEmailAddresses: output.ccEmailAddresses != null ? de_CcEmailAddressList(output.ccEmailAddresses, context) : undefined,
|
|
965
957
|
displayId: (0, smithy_client_1.expectString)(output.displayId),
|
|
966
958
|
language: (0, smithy_client_1.expectString)(output.language),
|
|
967
959
|
recentCommunications: output.recentCommunications != null
|
|
968
|
-
?
|
|
960
|
+
? de_RecentCaseCommunications(output.recentCommunications, context)
|
|
969
961
|
: undefined,
|
|
970
962
|
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
971
963
|
severityCode: (0, smithy_client_1.expectString)(output.severityCode),
|
|
@@ -975,40 +967,40 @@ const deserializeAws_json1_1CaseDetails = (output, context) => {
|
|
|
975
967
|
timeCreated: (0, smithy_client_1.expectString)(output.timeCreated),
|
|
976
968
|
};
|
|
977
969
|
};
|
|
978
|
-
const
|
|
970
|
+
const de_CaseIdNotFound = (output, context) => {
|
|
979
971
|
return {
|
|
980
972
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
981
973
|
};
|
|
982
974
|
};
|
|
983
|
-
const
|
|
975
|
+
const de_CaseList = (output, context) => {
|
|
984
976
|
const retVal = (output || [])
|
|
985
977
|
.filter((e) => e != null)
|
|
986
978
|
.map((entry) => {
|
|
987
979
|
if (entry === null) {
|
|
988
980
|
return null;
|
|
989
981
|
}
|
|
990
|
-
return
|
|
982
|
+
return de_CaseDetails(entry, context);
|
|
991
983
|
});
|
|
992
984
|
return retVal;
|
|
993
985
|
};
|
|
994
|
-
const
|
|
986
|
+
const de_Category = (output, context) => {
|
|
995
987
|
return {
|
|
996
988
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
997
989
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
998
990
|
};
|
|
999
991
|
};
|
|
1000
|
-
const
|
|
992
|
+
const de_CategoryList = (output, context) => {
|
|
1001
993
|
const retVal = (output || [])
|
|
1002
994
|
.filter((e) => e != null)
|
|
1003
995
|
.map((entry) => {
|
|
1004
996
|
if (entry === null) {
|
|
1005
997
|
return null;
|
|
1006
998
|
}
|
|
1007
|
-
return
|
|
999
|
+
return de_Category(entry, context);
|
|
1008
1000
|
});
|
|
1009
1001
|
return retVal;
|
|
1010
1002
|
};
|
|
1011
|
-
const
|
|
1003
|
+
const de_CcEmailAddressList = (output, context) => {
|
|
1012
1004
|
const retVal = (output || [])
|
|
1013
1005
|
.filter((e) => e != null)
|
|
1014
1006
|
.map((entry) => {
|
|
@@ -1019,153 +1011,141 @@ const deserializeAws_json1_1CcEmailAddressList = (output, context) => {
|
|
|
1019
1011
|
});
|
|
1020
1012
|
return retVal;
|
|
1021
1013
|
};
|
|
1022
|
-
const
|
|
1014
|
+
const de_Communication = (output, context) => {
|
|
1023
1015
|
return {
|
|
1024
|
-
attachmentSet: output.attachmentSet != null ?
|
|
1016
|
+
attachmentSet: output.attachmentSet != null ? de_AttachmentSet(output.attachmentSet, context) : undefined,
|
|
1025
1017
|
body: (0, smithy_client_1.expectString)(output.body),
|
|
1026
1018
|
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
1027
1019
|
submittedBy: (0, smithy_client_1.expectString)(output.submittedBy),
|
|
1028
1020
|
timeCreated: (0, smithy_client_1.expectString)(output.timeCreated),
|
|
1029
1021
|
};
|
|
1030
1022
|
};
|
|
1031
|
-
const
|
|
1023
|
+
const de_CommunicationList = (output, context) => {
|
|
1032
1024
|
const retVal = (output || [])
|
|
1033
1025
|
.filter((e) => e != null)
|
|
1034
1026
|
.map((entry) => {
|
|
1035
1027
|
if (entry === null) {
|
|
1036
1028
|
return null;
|
|
1037
1029
|
}
|
|
1038
|
-
return
|
|
1030
|
+
return de_Communication(entry, context);
|
|
1039
1031
|
});
|
|
1040
1032
|
return retVal;
|
|
1041
1033
|
};
|
|
1042
|
-
const
|
|
1034
|
+
const de_CreateCaseResponse = (output, context) => {
|
|
1043
1035
|
return {
|
|
1044
1036
|
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
1045
1037
|
};
|
|
1046
1038
|
};
|
|
1047
|
-
const
|
|
1039
|
+
const de_DescribeAttachmentLimitExceeded = (output, context) => {
|
|
1048
1040
|
return {
|
|
1049
1041
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1050
1042
|
};
|
|
1051
1043
|
};
|
|
1052
|
-
const
|
|
1044
|
+
const de_DescribeAttachmentResponse = (output, context) => {
|
|
1053
1045
|
return {
|
|
1054
|
-
attachment: output.attachment != null ?
|
|
1046
|
+
attachment: output.attachment != null ? de_Attachment(output.attachment, context) : undefined,
|
|
1055
1047
|
};
|
|
1056
1048
|
};
|
|
1057
|
-
const
|
|
1049
|
+
const de_DescribeCasesResponse = (output, context) => {
|
|
1058
1050
|
return {
|
|
1059
|
-
cases: output.cases != null ?
|
|
1051
|
+
cases: output.cases != null ? de_CaseList(output.cases, context) : undefined,
|
|
1060
1052
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1061
1053
|
};
|
|
1062
1054
|
};
|
|
1063
|
-
const
|
|
1055
|
+
const de_DescribeCommunicationsResponse = (output, context) => {
|
|
1064
1056
|
return {
|
|
1065
|
-
communications: output.communications != null
|
|
1066
|
-
? deserializeAws_json1_1CommunicationList(output.communications, context)
|
|
1067
|
-
: undefined,
|
|
1057
|
+
communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
|
|
1068
1058
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1069
1059
|
};
|
|
1070
1060
|
};
|
|
1071
|
-
const
|
|
1061
|
+
const de_DescribeServicesResponse = (output, context) => {
|
|
1072
1062
|
return {
|
|
1073
|
-
services: output.services != null ?
|
|
1063
|
+
services: output.services != null ? de_ServiceList(output.services, context) : undefined,
|
|
1074
1064
|
};
|
|
1075
1065
|
};
|
|
1076
|
-
const
|
|
1066
|
+
const de_DescribeSeverityLevelsResponse = (output, context) => {
|
|
1077
1067
|
return {
|
|
1078
|
-
severityLevels: output.severityLevels != null
|
|
1079
|
-
? deserializeAws_json1_1SeverityLevelsList(output.severityLevels, context)
|
|
1080
|
-
: undefined,
|
|
1068
|
+
severityLevels: output.severityLevels != null ? de_SeverityLevelsList(output.severityLevels, context) : undefined,
|
|
1081
1069
|
};
|
|
1082
1070
|
};
|
|
1083
|
-
const
|
|
1071
|
+
const de_DescribeTrustedAdvisorCheckRefreshStatusesResponse = (output, context) => {
|
|
1084
1072
|
return {
|
|
1085
|
-
statuses: output.statuses != null
|
|
1086
|
-
? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList(output.statuses, context)
|
|
1087
|
-
: undefined,
|
|
1073
|
+
statuses: output.statuses != null ? de_TrustedAdvisorCheckRefreshStatusList(output.statuses, context) : undefined,
|
|
1088
1074
|
};
|
|
1089
1075
|
};
|
|
1090
|
-
const
|
|
1076
|
+
const de_DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
|
|
1091
1077
|
return {
|
|
1092
|
-
result: output.result != null ?
|
|
1078
|
+
result: output.result != null ? de_TrustedAdvisorCheckResult(output.result, context) : undefined,
|
|
1093
1079
|
};
|
|
1094
1080
|
};
|
|
1095
|
-
const
|
|
1081
|
+
const de_DescribeTrustedAdvisorChecksResponse = (output, context) => {
|
|
1096
1082
|
return {
|
|
1097
|
-
checks: output.checks != null ?
|
|
1083
|
+
checks: output.checks != null ? de_TrustedAdvisorCheckList(output.checks, context) : undefined,
|
|
1098
1084
|
};
|
|
1099
1085
|
};
|
|
1100
|
-
const
|
|
1086
|
+
const de_DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
|
|
1101
1087
|
return {
|
|
1102
|
-
summaries: output.summaries != null
|
|
1103
|
-
? deserializeAws_json1_1TrustedAdvisorCheckSummaryList(output.summaries, context)
|
|
1104
|
-
: undefined,
|
|
1088
|
+
summaries: output.summaries != null ? de_TrustedAdvisorCheckSummaryList(output.summaries, context) : undefined,
|
|
1105
1089
|
};
|
|
1106
1090
|
};
|
|
1107
|
-
const
|
|
1091
|
+
const de_InternalServerError = (output, context) => {
|
|
1108
1092
|
return {
|
|
1109
1093
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
1110
1094
|
};
|
|
1111
1095
|
};
|
|
1112
|
-
const
|
|
1096
|
+
const de_RecentCaseCommunications = (output, context) => {
|
|
1113
1097
|
return {
|
|
1114
|
-
communications: output.communications != null
|
|
1115
|
-
? deserializeAws_json1_1CommunicationList(output.communications, context)
|
|
1116
|
-
: undefined,
|
|
1098
|
+
communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
|
|
1117
1099
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1118
1100
|
};
|
|
1119
1101
|
};
|
|
1120
|
-
const
|
|
1102
|
+
const de_RefreshTrustedAdvisorCheckResponse = (output, context) => {
|
|
1121
1103
|
return {
|
|
1122
|
-
status: output.status != null
|
|
1123
|
-
? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(output.status, context)
|
|
1124
|
-
: undefined,
|
|
1104
|
+
status: output.status != null ? de_TrustedAdvisorCheckRefreshStatus(output.status, context) : undefined,
|
|
1125
1105
|
};
|
|
1126
1106
|
};
|
|
1127
|
-
const
|
|
1107
|
+
const de_ResolveCaseResponse = (output, context) => {
|
|
1128
1108
|
return {
|
|
1129
1109
|
finalCaseStatus: (0, smithy_client_1.expectString)(output.finalCaseStatus),
|
|
1130
1110
|
initialCaseStatus: (0, smithy_client_1.expectString)(output.initialCaseStatus),
|
|
1131
1111
|
};
|
|
1132
1112
|
};
|
|
1133
|
-
const
|
|
1113
|
+
const de_Service = (output, context) => {
|
|
1134
1114
|
return {
|
|
1135
|
-
categories: output.categories != null ?
|
|
1115
|
+
categories: output.categories != null ? de_CategoryList(output.categories, context) : undefined,
|
|
1136
1116
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
1137
1117
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1138
1118
|
};
|
|
1139
1119
|
};
|
|
1140
|
-
const
|
|
1120
|
+
const de_ServiceList = (output, context) => {
|
|
1141
1121
|
const retVal = (output || [])
|
|
1142
1122
|
.filter((e) => e != null)
|
|
1143
1123
|
.map((entry) => {
|
|
1144
1124
|
if (entry === null) {
|
|
1145
1125
|
return null;
|
|
1146
1126
|
}
|
|
1147
|
-
return
|
|
1127
|
+
return de_Service(entry, context);
|
|
1148
1128
|
});
|
|
1149
1129
|
return retVal;
|
|
1150
1130
|
};
|
|
1151
|
-
const
|
|
1131
|
+
const de_SeverityLevel = (output, context) => {
|
|
1152
1132
|
return {
|
|
1153
1133
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
1154
1134
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1155
1135
|
};
|
|
1156
1136
|
};
|
|
1157
|
-
const
|
|
1137
|
+
const de_SeverityLevelsList = (output, context) => {
|
|
1158
1138
|
const retVal = (output || [])
|
|
1159
1139
|
.filter((e) => e != null)
|
|
1160
1140
|
.map((entry) => {
|
|
1161
1141
|
if (entry === null) {
|
|
1162
1142
|
return null;
|
|
1163
1143
|
}
|
|
1164
|
-
return
|
|
1144
|
+
return de_SeverityLevel(entry, context);
|
|
1165
1145
|
});
|
|
1166
1146
|
return retVal;
|
|
1167
1147
|
};
|
|
1168
|
-
const
|
|
1148
|
+
const de_StringList = (output, context) => {
|
|
1169
1149
|
const retVal = (output || []).map((entry) => {
|
|
1170
1150
|
if (entry === null) {
|
|
1171
1151
|
return null;
|
|
@@ -1174,119 +1154,115 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
1174
1154
|
});
|
|
1175
1155
|
return retVal;
|
|
1176
1156
|
};
|
|
1177
|
-
const
|
|
1157
|
+
const de_TrustedAdvisorCategorySpecificSummary = (output, context) => {
|
|
1178
1158
|
return {
|
|
1179
1159
|
costOptimizing: output.costOptimizing != null
|
|
1180
|
-
?
|
|
1160
|
+
? de_TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
|
|
1181
1161
|
: undefined,
|
|
1182
1162
|
};
|
|
1183
1163
|
};
|
|
1184
|
-
const
|
|
1164
|
+
const de_TrustedAdvisorCheckDescription = (output, context) => {
|
|
1185
1165
|
return {
|
|
1186
1166
|
category: (0, smithy_client_1.expectString)(output.category),
|
|
1187
1167
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1188
1168
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1189
|
-
metadata: output.metadata != null ?
|
|
1169
|
+
metadata: output.metadata != null ? de_StringList(output.metadata, context) : undefined,
|
|
1190
1170
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1191
1171
|
};
|
|
1192
1172
|
};
|
|
1193
|
-
const
|
|
1173
|
+
const de_TrustedAdvisorCheckList = (output, context) => {
|
|
1194
1174
|
const retVal = (output || [])
|
|
1195
1175
|
.filter((e) => e != null)
|
|
1196
1176
|
.map((entry) => {
|
|
1197
1177
|
if (entry === null) {
|
|
1198
1178
|
return null;
|
|
1199
1179
|
}
|
|
1200
|
-
return
|
|
1180
|
+
return de_TrustedAdvisorCheckDescription(entry, context);
|
|
1201
1181
|
});
|
|
1202
1182
|
return retVal;
|
|
1203
1183
|
};
|
|
1204
|
-
const
|
|
1184
|
+
const de_TrustedAdvisorCheckRefreshStatus = (output, context) => {
|
|
1205
1185
|
return {
|
|
1206
1186
|
checkId: (0, smithy_client_1.expectString)(output.checkId),
|
|
1207
1187
|
millisUntilNextRefreshable: (0, smithy_client_1.expectLong)(output.millisUntilNextRefreshable),
|
|
1208
1188
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1209
1189
|
};
|
|
1210
1190
|
};
|
|
1211
|
-
const
|
|
1191
|
+
const de_TrustedAdvisorCheckRefreshStatusList = (output, context) => {
|
|
1212
1192
|
const retVal = (output || [])
|
|
1213
1193
|
.filter((e) => e != null)
|
|
1214
1194
|
.map((entry) => {
|
|
1215
1195
|
if (entry === null) {
|
|
1216
1196
|
return null;
|
|
1217
1197
|
}
|
|
1218
|
-
return
|
|
1198
|
+
return de_TrustedAdvisorCheckRefreshStatus(entry, context);
|
|
1219
1199
|
});
|
|
1220
1200
|
return retVal;
|
|
1221
1201
|
};
|
|
1222
|
-
const
|
|
1202
|
+
const de_TrustedAdvisorCheckResult = (output, context) => {
|
|
1223
1203
|
return {
|
|
1224
1204
|
categorySpecificSummary: output.categorySpecificSummary != null
|
|
1225
|
-
?
|
|
1205
|
+
? de_TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
|
|
1226
1206
|
: undefined,
|
|
1227
1207
|
checkId: (0, smithy_client_1.expectString)(output.checkId),
|
|
1228
1208
|
flaggedResources: output.flaggedResources != null
|
|
1229
|
-
?
|
|
1230
|
-
: undefined,
|
|
1231
|
-
resourcesSummary: output.resourcesSummary != null
|
|
1232
|
-
? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
|
|
1209
|
+
? de_TrustedAdvisorResourceDetailList(output.flaggedResources, context)
|
|
1233
1210
|
: undefined,
|
|
1211
|
+
resourcesSummary: output.resourcesSummary != null ? de_TrustedAdvisorResourcesSummary(output.resourcesSummary, context) : undefined,
|
|
1234
1212
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1235
1213
|
timestamp: (0, smithy_client_1.expectString)(output.timestamp),
|
|
1236
1214
|
};
|
|
1237
1215
|
};
|
|
1238
|
-
const
|
|
1216
|
+
const de_TrustedAdvisorCheckSummary = (output, context) => {
|
|
1239
1217
|
return {
|
|
1240
1218
|
categorySpecificSummary: output.categorySpecificSummary != null
|
|
1241
|
-
?
|
|
1219
|
+
? de_TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
|
|
1242
1220
|
: undefined,
|
|
1243
1221
|
checkId: (0, smithy_client_1.expectString)(output.checkId),
|
|
1244
1222
|
hasFlaggedResources: (0, smithy_client_1.expectBoolean)(output.hasFlaggedResources),
|
|
1245
|
-
resourcesSummary: output.resourcesSummary != null
|
|
1246
|
-
? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
|
|
1247
|
-
: undefined,
|
|
1223
|
+
resourcesSummary: output.resourcesSummary != null ? de_TrustedAdvisorResourcesSummary(output.resourcesSummary, context) : undefined,
|
|
1248
1224
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1249
1225
|
timestamp: (0, smithy_client_1.expectString)(output.timestamp),
|
|
1250
1226
|
};
|
|
1251
1227
|
};
|
|
1252
|
-
const
|
|
1228
|
+
const de_TrustedAdvisorCheckSummaryList = (output, context) => {
|
|
1253
1229
|
const retVal = (output || [])
|
|
1254
1230
|
.filter((e) => e != null)
|
|
1255
1231
|
.map((entry) => {
|
|
1256
1232
|
if (entry === null) {
|
|
1257
1233
|
return null;
|
|
1258
1234
|
}
|
|
1259
|
-
return
|
|
1235
|
+
return de_TrustedAdvisorCheckSummary(entry, context);
|
|
1260
1236
|
});
|
|
1261
1237
|
return retVal;
|
|
1262
1238
|
};
|
|
1263
|
-
const
|
|
1239
|
+
const de_TrustedAdvisorCostOptimizingSummary = (output, context) => {
|
|
1264
1240
|
return {
|
|
1265
1241
|
estimatedMonthlySavings: (0, smithy_client_1.limitedParseDouble)(output.estimatedMonthlySavings),
|
|
1266
1242
|
estimatedPercentMonthlySavings: (0, smithy_client_1.limitedParseDouble)(output.estimatedPercentMonthlySavings),
|
|
1267
1243
|
};
|
|
1268
1244
|
};
|
|
1269
|
-
const
|
|
1245
|
+
const de_TrustedAdvisorResourceDetail = (output, context) => {
|
|
1270
1246
|
return {
|
|
1271
1247
|
isSuppressed: (0, smithy_client_1.expectBoolean)(output.isSuppressed),
|
|
1272
|
-
metadata: output.metadata != null ?
|
|
1248
|
+
metadata: output.metadata != null ? de_StringList(output.metadata, context) : undefined,
|
|
1273
1249
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
1274
1250
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
1275
1251
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1276
1252
|
};
|
|
1277
1253
|
};
|
|
1278
|
-
const
|
|
1254
|
+
const de_TrustedAdvisorResourceDetailList = (output, context) => {
|
|
1279
1255
|
const retVal = (output || [])
|
|
1280
1256
|
.filter((e) => e != null)
|
|
1281
1257
|
.map((entry) => {
|
|
1282
1258
|
if (entry === null) {
|
|
1283
1259
|
return null;
|
|
1284
1260
|
}
|
|
1285
|
-
return
|
|
1261
|
+
return de_TrustedAdvisorResourceDetail(entry, context);
|
|
1286
1262
|
});
|
|
1287
1263
|
return retVal;
|
|
1288
1264
|
};
|
|
1289
|
-
const
|
|
1265
|
+
const de_TrustedAdvisorResourcesSummary = (output, context) => {
|
|
1290
1266
|
return {
|
|
1291
1267
|
resourcesFlagged: (0, smithy_client_1.expectLong)(output.resourcesFlagged),
|
|
1292
1268
|
resourcesIgnored: (0, smithy_client_1.expectLong)(output.resourcesIgnored),
|