@aws-sdk/client-pipes 3.222.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/LICENSE +201 -0
- package/README.md +207 -0
- package/dist-cjs/Pipes.js +157 -0
- package/dist-cjs/PipesClient.js +40 -0
- package/dist-cjs/commands/CreatePipeCommand.js +46 -0
- package/dist-cjs/commands/DeletePipeCommand.js +46 -0
- package/dist-cjs/commands/DescribePipeCommand.js +46 -0
- package/dist-cjs/commands/ListPipesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/StartPipeCommand.js +46 -0
- package/dist-cjs/commands/StopPipeCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdatePipeCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/PipesServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +704 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListPipesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2591 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/Pipes.js +153 -0
- package/dist-es/PipesClient.js +36 -0
- package/dist-es/commands/CreatePipeCommand.js +42 -0
- package/dist-es/commands/DeletePipeCommand.js +42 -0
- package/dist-es/commands/DescribePipeCommand.js +42 -0
- package/dist-es/commands/ListPipesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/StartPipeCommand.js +42 -0
- package/dist-es/commands/StopPipeCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdatePipeCommand.js +42 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/PipesServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +614 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListPipesPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +2568 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/Pipes.d.ts +95 -0
- package/dist-types/PipesClient.d.ts +153 -0
- package/dist-types/commands/CreatePipeCommand.d.ts +37 -0
- package/dist-types/commands/DeletePipeCommand.d.ts +37 -0
- package/dist-types/commands/DescribePipeCommand.d.ts +37 -0
- package/dist-types/commands/ListPipesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/StartPipeCommand.d.ts +37 -0
- package/dist-types/commands/StopPipeCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdatePipeCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/PipesServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2541 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListPipesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/Pipes.d.ts +174 -0
- package/dist-types/ts3.4/PipesClient.d.ts +171 -0
- package/dist-types/ts3.4/commands/CreatePipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeletePipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DescribePipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListPipesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartPipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StopPipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdatePipeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/PipesServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +915 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListPipesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +102 -0
|
@@ -0,0 +1,2591 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_restJson1UpdatePipeCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopPipeCommand = exports.deserializeAws_restJson1StartPipeCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListPipesCommand = exports.deserializeAws_restJson1DescribePipeCommand = exports.deserializeAws_restJson1DeletePipeCommand = exports.deserializeAws_restJson1CreatePipeCommand = exports.serializeAws_restJson1UpdatePipeCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopPipeCommand = exports.serializeAws_restJson1StartPipeCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListPipesCommand = exports.serializeAws_restJson1DescribePipeCommand = exports.serializeAws_restJson1DeletePipeCommand = exports.serializeAws_restJson1CreatePipeCommand = void 0;
|
|
4
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const PipesServiceException_1 = require("../models/PipesServiceException");
|
|
8
|
+
const serializeAws_restJson1CreatePipeCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/json",
|
|
12
|
+
};
|
|
13
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
14
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify({
|
|
17
|
+
...(input.Description != null && { Description: input.Description }),
|
|
18
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
19
|
+
...(input.Enrichment != null && { Enrichment: input.Enrichment }),
|
|
20
|
+
...(input.EnrichmentParameters != null && {
|
|
21
|
+
EnrichmentParameters: serializeAws_restJson1PipeEnrichmentParameters(input.EnrichmentParameters, context),
|
|
22
|
+
}),
|
|
23
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
24
|
+
...(input.Source != null && { Source: input.Source }),
|
|
25
|
+
...(input.SourceParameters != null && {
|
|
26
|
+
SourceParameters: serializeAws_restJson1PipeSourceParameters(input.SourceParameters, context),
|
|
27
|
+
}),
|
|
28
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
29
|
+
...(input.Target != null && { Target: input.Target }),
|
|
30
|
+
...(input.TargetParameters != null && {
|
|
31
|
+
TargetParameters: serializeAws_restJson1PipeTargetParameters(input.TargetParameters, context),
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
return new protocol_http_1.HttpRequest({
|
|
35
|
+
protocol,
|
|
36
|
+
hostname,
|
|
37
|
+
port,
|
|
38
|
+
method: "POST",
|
|
39
|
+
headers,
|
|
40
|
+
path: resolvedPath,
|
|
41
|
+
body,
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
exports.serializeAws_restJson1CreatePipeCommand = serializeAws_restJson1CreatePipeCommand;
|
|
45
|
+
const serializeAws_restJson1DeletePipeCommand = async (input, context) => {
|
|
46
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
47
|
+
const headers = {};
|
|
48
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
49
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
50
|
+
let body;
|
|
51
|
+
return new protocol_http_1.HttpRequest({
|
|
52
|
+
protocol,
|
|
53
|
+
hostname,
|
|
54
|
+
port,
|
|
55
|
+
method: "DELETE",
|
|
56
|
+
headers,
|
|
57
|
+
path: resolvedPath,
|
|
58
|
+
body,
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
exports.serializeAws_restJson1DeletePipeCommand = serializeAws_restJson1DeletePipeCommand;
|
|
62
|
+
const serializeAws_restJson1DescribePipeCommand = async (input, context) => {
|
|
63
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
|
+
const headers = {};
|
|
65
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
66
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
67
|
+
let body;
|
|
68
|
+
return new protocol_http_1.HttpRequest({
|
|
69
|
+
protocol,
|
|
70
|
+
hostname,
|
|
71
|
+
port,
|
|
72
|
+
method: "GET",
|
|
73
|
+
headers,
|
|
74
|
+
path: resolvedPath,
|
|
75
|
+
body,
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
exports.serializeAws_restJson1DescribePipeCommand = serializeAws_restJson1DescribePipeCommand;
|
|
79
|
+
const serializeAws_restJson1ListPipesCommand = async (input, context) => {
|
|
80
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
|
+
const headers = {};
|
|
82
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes";
|
|
83
|
+
const query = map({
|
|
84
|
+
NamePrefix: [, input.NamePrefix],
|
|
85
|
+
DesiredState: [, input.DesiredState],
|
|
86
|
+
CurrentState: [, input.CurrentState],
|
|
87
|
+
SourcePrefix: [, input.SourcePrefix],
|
|
88
|
+
TargetPrefix: [, input.TargetPrefix],
|
|
89
|
+
NextToken: [, input.NextToken],
|
|
90
|
+
Limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
|
|
91
|
+
});
|
|
92
|
+
let body;
|
|
93
|
+
return new protocol_http_1.HttpRequest({
|
|
94
|
+
protocol,
|
|
95
|
+
hostname,
|
|
96
|
+
port,
|
|
97
|
+
method: "GET",
|
|
98
|
+
headers,
|
|
99
|
+
path: resolvedPath,
|
|
100
|
+
query,
|
|
101
|
+
body,
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
exports.serializeAws_restJson1ListPipesCommand = serializeAws_restJson1ListPipesCommand;
|
|
105
|
+
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
106
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
|
+
const headers = {};
|
|
108
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
109
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
110
|
+
let body;
|
|
111
|
+
return new protocol_http_1.HttpRequest({
|
|
112
|
+
protocol,
|
|
113
|
+
hostname,
|
|
114
|
+
port,
|
|
115
|
+
method: "GET",
|
|
116
|
+
headers,
|
|
117
|
+
path: resolvedPath,
|
|
118
|
+
body,
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
122
|
+
const serializeAws_restJson1StartPipeCommand = async (input, context) => {
|
|
123
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
|
+
const headers = {};
|
|
125
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/start";
|
|
126
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
127
|
+
let body;
|
|
128
|
+
return new protocol_http_1.HttpRequest({
|
|
129
|
+
protocol,
|
|
130
|
+
hostname,
|
|
131
|
+
port,
|
|
132
|
+
method: "POST",
|
|
133
|
+
headers,
|
|
134
|
+
path: resolvedPath,
|
|
135
|
+
body,
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
exports.serializeAws_restJson1StartPipeCommand = serializeAws_restJson1StartPipeCommand;
|
|
139
|
+
const serializeAws_restJson1StopPipeCommand = async (input, context) => {
|
|
140
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
|
+
const headers = {};
|
|
142
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}/stop";
|
|
143
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
144
|
+
let body;
|
|
145
|
+
return new protocol_http_1.HttpRequest({
|
|
146
|
+
protocol,
|
|
147
|
+
hostname,
|
|
148
|
+
port,
|
|
149
|
+
method: "POST",
|
|
150
|
+
headers,
|
|
151
|
+
path: resolvedPath,
|
|
152
|
+
body,
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
exports.serializeAws_restJson1StopPipeCommand = serializeAws_restJson1StopPipeCommand;
|
|
156
|
+
const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
157
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
|
+
const headers = {
|
|
159
|
+
"content-type": "application/json",
|
|
160
|
+
};
|
|
161
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
162
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify({
|
|
165
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
166
|
+
});
|
|
167
|
+
return new protocol_http_1.HttpRequest({
|
|
168
|
+
protocol,
|
|
169
|
+
hostname,
|
|
170
|
+
port,
|
|
171
|
+
method: "POST",
|
|
172
|
+
headers,
|
|
173
|
+
path: resolvedPath,
|
|
174
|
+
body,
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
|
|
178
|
+
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
179
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
|
+
const headers = {};
|
|
181
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
182
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
183
|
+
const query = map({
|
|
184
|
+
tagKeys: [
|
|
185
|
+
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
186
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
187
|
+
],
|
|
188
|
+
});
|
|
189
|
+
let body;
|
|
190
|
+
return new protocol_http_1.HttpRequest({
|
|
191
|
+
protocol,
|
|
192
|
+
hostname,
|
|
193
|
+
port,
|
|
194
|
+
method: "DELETE",
|
|
195
|
+
headers,
|
|
196
|
+
path: resolvedPath,
|
|
197
|
+
query,
|
|
198
|
+
body,
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
202
|
+
const serializeAws_restJson1UpdatePipeCommand = async (input, context) => {
|
|
203
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
|
+
const headers = {
|
|
205
|
+
"content-type": "application/json",
|
|
206
|
+
};
|
|
207
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
208
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
209
|
+
let body;
|
|
210
|
+
body = JSON.stringify({
|
|
211
|
+
...(input.Description != null && { Description: input.Description }),
|
|
212
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
213
|
+
...(input.Enrichment != null && { Enrichment: input.Enrichment }),
|
|
214
|
+
...(input.EnrichmentParameters != null && {
|
|
215
|
+
EnrichmentParameters: serializeAws_restJson1PipeEnrichmentParameters(input.EnrichmentParameters, context),
|
|
216
|
+
}),
|
|
217
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
218
|
+
...(input.SourceParameters != null && {
|
|
219
|
+
SourceParameters: serializeAws_restJson1UpdatePipeSourceParameters(input.SourceParameters, context),
|
|
220
|
+
}),
|
|
221
|
+
...(input.Target != null && { Target: input.Target }),
|
|
222
|
+
...(input.TargetParameters != null && {
|
|
223
|
+
TargetParameters: serializeAws_restJson1PipeTargetParameters(input.TargetParameters, context),
|
|
224
|
+
}),
|
|
225
|
+
});
|
|
226
|
+
return new protocol_http_1.HttpRequest({
|
|
227
|
+
protocol,
|
|
228
|
+
hostname,
|
|
229
|
+
port,
|
|
230
|
+
method: "PUT",
|
|
231
|
+
headers,
|
|
232
|
+
path: resolvedPath,
|
|
233
|
+
body,
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
exports.serializeAws_restJson1UpdatePipeCommand = serializeAws_restJson1UpdatePipeCommand;
|
|
237
|
+
const deserializeAws_restJson1CreatePipeCommand = async (output, context) => {
|
|
238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
239
|
+
return deserializeAws_restJson1CreatePipeCommandError(output, context);
|
|
240
|
+
}
|
|
241
|
+
const contents = map({
|
|
242
|
+
$metadata: deserializeMetadata(output),
|
|
243
|
+
});
|
|
244
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
245
|
+
if (data.Arn != null) {
|
|
246
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
247
|
+
}
|
|
248
|
+
if (data.CreationTime != null) {
|
|
249
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
250
|
+
}
|
|
251
|
+
if (data.CurrentState != null) {
|
|
252
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
253
|
+
}
|
|
254
|
+
if (data.DesiredState != null) {
|
|
255
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
256
|
+
}
|
|
257
|
+
if (data.LastModifiedTime != null) {
|
|
258
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
259
|
+
}
|
|
260
|
+
if (data.Name != null) {
|
|
261
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
262
|
+
}
|
|
263
|
+
return contents;
|
|
264
|
+
};
|
|
265
|
+
exports.deserializeAws_restJson1CreatePipeCommand = deserializeAws_restJson1CreatePipeCommand;
|
|
266
|
+
const deserializeAws_restJson1CreatePipeCommandError = async (output, context) => {
|
|
267
|
+
const parsedOutput = {
|
|
268
|
+
...output,
|
|
269
|
+
body: await parseErrorBody(output.body, context),
|
|
270
|
+
};
|
|
271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
|
+
switch (errorCode) {
|
|
273
|
+
case "ConflictException":
|
|
274
|
+
case "com.amazonaws.pipes#ConflictException":
|
|
275
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
276
|
+
case "InternalException":
|
|
277
|
+
case "com.amazonaws.pipes#InternalException":
|
|
278
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
279
|
+
case "NotFoundException":
|
|
280
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
281
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
282
|
+
case "ServiceQuotaExceededException":
|
|
283
|
+
case "com.amazonaws.pipes#ServiceQuotaExceededException":
|
|
284
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
285
|
+
case "ThrottlingException":
|
|
286
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
287
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
288
|
+
case "ValidationException":
|
|
289
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
290
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
291
|
+
default:
|
|
292
|
+
const parsedBody = parsedOutput.body;
|
|
293
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
294
|
+
output,
|
|
295
|
+
parsedBody,
|
|
296
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
297
|
+
errorCode,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
const deserializeAws_restJson1DeletePipeCommand = async (output, context) => {
|
|
302
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
|
+
return deserializeAws_restJson1DeletePipeCommandError(output, context);
|
|
304
|
+
}
|
|
305
|
+
const contents = map({
|
|
306
|
+
$metadata: deserializeMetadata(output),
|
|
307
|
+
});
|
|
308
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
309
|
+
if (data.Arn != null) {
|
|
310
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
311
|
+
}
|
|
312
|
+
if (data.CreationTime != null) {
|
|
313
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
314
|
+
}
|
|
315
|
+
if (data.CurrentState != null) {
|
|
316
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
317
|
+
}
|
|
318
|
+
if (data.DesiredState != null) {
|
|
319
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
320
|
+
}
|
|
321
|
+
if (data.LastModifiedTime != null) {
|
|
322
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
323
|
+
}
|
|
324
|
+
if (data.Name != null) {
|
|
325
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
326
|
+
}
|
|
327
|
+
return contents;
|
|
328
|
+
};
|
|
329
|
+
exports.deserializeAws_restJson1DeletePipeCommand = deserializeAws_restJson1DeletePipeCommand;
|
|
330
|
+
const deserializeAws_restJson1DeletePipeCommandError = async (output, context) => {
|
|
331
|
+
const parsedOutput = {
|
|
332
|
+
...output,
|
|
333
|
+
body: await parseErrorBody(output.body, context),
|
|
334
|
+
};
|
|
335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
|
+
switch (errorCode) {
|
|
337
|
+
case "ConflictException":
|
|
338
|
+
case "com.amazonaws.pipes#ConflictException":
|
|
339
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
340
|
+
case "InternalException":
|
|
341
|
+
case "com.amazonaws.pipes#InternalException":
|
|
342
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
343
|
+
case "NotFoundException":
|
|
344
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
345
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
346
|
+
case "ThrottlingException":
|
|
347
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
348
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
349
|
+
case "ValidationException":
|
|
350
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
351
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
352
|
+
default:
|
|
353
|
+
const parsedBody = parsedOutput.body;
|
|
354
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
355
|
+
output,
|
|
356
|
+
parsedBody,
|
|
357
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
358
|
+
errorCode,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
const deserializeAws_restJson1DescribePipeCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
|
+
return deserializeAws_restJson1DescribePipeCommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const contents = map({
|
|
367
|
+
$metadata: deserializeMetadata(output),
|
|
368
|
+
});
|
|
369
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
370
|
+
if (data.Arn != null) {
|
|
371
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
372
|
+
}
|
|
373
|
+
if (data.CreationTime != null) {
|
|
374
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
375
|
+
}
|
|
376
|
+
if (data.CurrentState != null) {
|
|
377
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
378
|
+
}
|
|
379
|
+
if (data.Description != null) {
|
|
380
|
+
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
381
|
+
}
|
|
382
|
+
if (data.DesiredState != null) {
|
|
383
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
384
|
+
}
|
|
385
|
+
if (data.Enrichment != null) {
|
|
386
|
+
contents.Enrichment = (0, smithy_client_1.expectString)(data.Enrichment);
|
|
387
|
+
}
|
|
388
|
+
if (data.EnrichmentParameters != null) {
|
|
389
|
+
contents.EnrichmentParameters = deserializeAws_restJson1PipeEnrichmentParameters(data.EnrichmentParameters, context);
|
|
390
|
+
}
|
|
391
|
+
if (data.LastModifiedTime != null) {
|
|
392
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
393
|
+
}
|
|
394
|
+
if (data.Name != null) {
|
|
395
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
396
|
+
}
|
|
397
|
+
if (data.RoleArn != null) {
|
|
398
|
+
contents.RoleArn = (0, smithy_client_1.expectString)(data.RoleArn);
|
|
399
|
+
}
|
|
400
|
+
if (data.Source != null) {
|
|
401
|
+
contents.Source = (0, smithy_client_1.expectString)(data.Source);
|
|
402
|
+
}
|
|
403
|
+
if (data.SourceParameters != null) {
|
|
404
|
+
contents.SourceParameters = deserializeAws_restJson1PipeSourceParameters(data.SourceParameters, context);
|
|
405
|
+
}
|
|
406
|
+
if (data.StateReason != null) {
|
|
407
|
+
contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
|
|
408
|
+
}
|
|
409
|
+
if (data.Tags != null) {
|
|
410
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
411
|
+
}
|
|
412
|
+
if (data.Target != null) {
|
|
413
|
+
contents.Target = (0, smithy_client_1.expectString)(data.Target);
|
|
414
|
+
}
|
|
415
|
+
if (data.TargetParameters != null) {
|
|
416
|
+
contents.TargetParameters = deserializeAws_restJson1PipeTargetParameters(data.TargetParameters, context);
|
|
417
|
+
}
|
|
418
|
+
return contents;
|
|
419
|
+
};
|
|
420
|
+
exports.deserializeAws_restJson1DescribePipeCommand = deserializeAws_restJson1DescribePipeCommand;
|
|
421
|
+
const deserializeAws_restJson1DescribePipeCommandError = async (output, context) => {
|
|
422
|
+
const parsedOutput = {
|
|
423
|
+
...output,
|
|
424
|
+
body: await parseErrorBody(output.body, context),
|
|
425
|
+
};
|
|
426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
+
switch (errorCode) {
|
|
428
|
+
case "InternalException":
|
|
429
|
+
case "com.amazonaws.pipes#InternalException":
|
|
430
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
431
|
+
case "NotFoundException":
|
|
432
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
433
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
434
|
+
case "ThrottlingException":
|
|
435
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
436
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
437
|
+
case "ValidationException":
|
|
438
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
439
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
440
|
+
default:
|
|
441
|
+
const parsedBody = parsedOutput.body;
|
|
442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
443
|
+
output,
|
|
444
|
+
parsedBody,
|
|
445
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
446
|
+
errorCode,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
const deserializeAws_restJson1ListPipesCommand = async (output, context) => {
|
|
451
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
|
+
return deserializeAws_restJson1ListPipesCommandError(output, context);
|
|
453
|
+
}
|
|
454
|
+
const contents = map({
|
|
455
|
+
$metadata: deserializeMetadata(output),
|
|
456
|
+
});
|
|
457
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
458
|
+
if (data.NextToken != null) {
|
|
459
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
460
|
+
}
|
|
461
|
+
if (data.Pipes != null) {
|
|
462
|
+
contents.Pipes = deserializeAws_restJson1PipeList(data.Pipes, context);
|
|
463
|
+
}
|
|
464
|
+
return contents;
|
|
465
|
+
};
|
|
466
|
+
exports.deserializeAws_restJson1ListPipesCommand = deserializeAws_restJson1ListPipesCommand;
|
|
467
|
+
const deserializeAws_restJson1ListPipesCommandError = async (output, context) => {
|
|
468
|
+
const parsedOutput = {
|
|
469
|
+
...output,
|
|
470
|
+
body: await parseErrorBody(output.body, context),
|
|
471
|
+
};
|
|
472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
+
switch (errorCode) {
|
|
474
|
+
case "InternalException":
|
|
475
|
+
case "com.amazonaws.pipes#InternalException":
|
|
476
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
477
|
+
case "ThrottlingException":
|
|
478
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
479
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
480
|
+
case "ValidationException":
|
|
481
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
482
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
483
|
+
default:
|
|
484
|
+
const parsedBody = parsedOutput.body;
|
|
485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
486
|
+
output,
|
|
487
|
+
parsedBody,
|
|
488
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
489
|
+
errorCode,
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
494
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const contents = map({
|
|
498
|
+
$metadata: deserializeMetadata(output),
|
|
499
|
+
});
|
|
500
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
501
|
+
if (data.tags != null) {
|
|
502
|
+
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
503
|
+
}
|
|
504
|
+
return contents;
|
|
505
|
+
};
|
|
506
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
507
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
508
|
+
const parsedOutput = {
|
|
509
|
+
...output,
|
|
510
|
+
body: await parseErrorBody(output.body, context),
|
|
511
|
+
};
|
|
512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
+
switch (errorCode) {
|
|
514
|
+
case "InternalException":
|
|
515
|
+
case "com.amazonaws.pipes#InternalException":
|
|
516
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "NotFoundException":
|
|
518
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
519
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
520
|
+
case "ValidationException":
|
|
521
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
522
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
523
|
+
default:
|
|
524
|
+
const parsedBody = parsedOutput.body;
|
|
525
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
526
|
+
output,
|
|
527
|
+
parsedBody,
|
|
528
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
529
|
+
errorCode,
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const deserializeAws_restJson1StartPipeCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
+
return deserializeAws_restJson1StartPipeCommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const contents = map({
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
});
|
|
540
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
541
|
+
if (data.Arn != null) {
|
|
542
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
543
|
+
}
|
|
544
|
+
if (data.CreationTime != null) {
|
|
545
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
546
|
+
}
|
|
547
|
+
if (data.CurrentState != null) {
|
|
548
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
549
|
+
}
|
|
550
|
+
if (data.DesiredState != null) {
|
|
551
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
552
|
+
}
|
|
553
|
+
if (data.LastModifiedTime != null) {
|
|
554
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
555
|
+
}
|
|
556
|
+
if (data.Name != null) {
|
|
557
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
558
|
+
}
|
|
559
|
+
return contents;
|
|
560
|
+
};
|
|
561
|
+
exports.deserializeAws_restJson1StartPipeCommand = deserializeAws_restJson1StartPipeCommand;
|
|
562
|
+
const deserializeAws_restJson1StartPipeCommandError = async (output, context) => {
|
|
563
|
+
const parsedOutput = {
|
|
564
|
+
...output,
|
|
565
|
+
body: await parseErrorBody(output.body, context),
|
|
566
|
+
};
|
|
567
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
+
switch (errorCode) {
|
|
569
|
+
case "ConflictException":
|
|
570
|
+
case "com.amazonaws.pipes#ConflictException":
|
|
571
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
572
|
+
case "InternalException":
|
|
573
|
+
case "com.amazonaws.pipes#InternalException":
|
|
574
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
575
|
+
case "NotFoundException":
|
|
576
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
577
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
578
|
+
case "ThrottlingException":
|
|
579
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
580
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
581
|
+
case "ValidationException":
|
|
582
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
583
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
584
|
+
default:
|
|
585
|
+
const parsedBody = parsedOutput.body;
|
|
586
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
587
|
+
output,
|
|
588
|
+
parsedBody,
|
|
589
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
590
|
+
errorCode,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
const deserializeAws_restJson1StopPipeCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
+
return deserializeAws_restJson1StopPipeCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const contents = map({
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
});
|
|
601
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
602
|
+
if (data.Arn != null) {
|
|
603
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
604
|
+
}
|
|
605
|
+
if (data.CreationTime != null) {
|
|
606
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
607
|
+
}
|
|
608
|
+
if (data.CurrentState != null) {
|
|
609
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
610
|
+
}
|
|
611
|
+
if (data.DesiredState != null) {
|
|
612
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
613
|
+
}
|
|
614
|
+
if (data.LastModifiedTime != null) {
|
|
615
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
616
|
+
}
|
|
617
|
+
if (data.Name != null) {
|
|
618
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
619
|
+
}
|
|
620
|
+
return contents;
|
|
621
|
+
};
|
|
622
|
+
exports.deserializeAws_restJson1StopPipeCommand = deserializeAws_restJson1StopPipeCommand;
|
|
623
|
+
const deserializeAws_restJson1StopPipeCommandError = async (output, context) => {
|
|
624
|
+
const parsedOutput = {
|
|
625
|
+
...output,
|
|
626
|
+
body: await parseErrorBody(output.body, context),
|
|
627
|
+
};
|
|
628
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
+
switch (errorCode) {
|
|
630
|
+
case "ConflictException":
|
|
631
|
+
case "com.amazonaws.pipes#ConflictException":
|
|
632
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
633
|
+
case "InternalException":
|
|
634
|
+
case "com.amazonaws.pipes#InternalException":
|
|
635
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
636
|
+
case "NotFoundException":
|
|
637
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
638
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
639
|
+
case "ThrottlingException":
|
|
640
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
641
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
642
|
+
case "ValidationException":
|
|
643
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
644
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
645
|
+
default:
|
|
646
|
+
const parsedBody = parsedOutput.body;
|
|
647
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
648
|
+
output,
|
|
649
|
+
parsedBody,
|
|
650
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
651
|
+
errorCode,
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
656
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
|
+
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
658
|
+
}
|
|
659
|
+
const contents = map({
|
|
660
|
+
$metadata: deserializeMetadata(output),
|
|
661
|
+
});
|
|
662
|
+
await collectBody(output.body, context);
|
|
663
|
+
return contents;
|
|
664
|
+
};
|
|
665
|
+
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
666
|
+
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
667
|
+
const parsedOutput = {
|
|
668
|
+
...output,
|
|
669
|
+
body: await parseErrorBody(output.body, context),
|
|
670
|
+
};
|
|
671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
|
+
switch (errorCode) {
|
|
673
|
+
case "InternalException":
|
|
674
|
+
case "com.amazonaws.pipes#InternalException":
|
|
675
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
676
|
+
case "NotFoundException":
|
|
677
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
678
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
679
|
+
case "ValidationException":
|
|
680
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
681
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
682
|
+
default:
|
|
683
|
+
const parsedBody = parsedOutput.body;
|
|
684
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
685
|
+
output,
|
|
686
|
+
parsedBody,
|
|
687
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
688
|
+
errorCode,
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
693
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
695
|
+
}
|
|
696
|
+
const contents = map({
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
});
|
|
699
|
+
await collectBody(output.body, context);
|
|
700
|
+
return contents;
|
|
701
|
+
};
|
|
702
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
703
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
704
|
+
const parsedOutput = {
|
|
705
|
+
...output,
|
|
706
|
+
body: await parseErrorBody(output.body, context),
|
|
707
|
+
};
|
|
708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
switch (errorCode) {
|
|
710
|
+
case "InternalException":
|
|
711
|
+
case "com.amazonaws.pipes#InternalException":
|
|
712
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
713
|
+
case "NotFoundException":
|
|
714
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
715
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "ValidationException":
|
|
717
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
718
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
719
|
+
default:
|
|
720
|
+
const parsedBody = parsedOutput.body;
|
|
721
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
722
|
+
output,
|
|
723
|
+
parsedBody,
|
|
724
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
725
|
+
errorCode,
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
const deserializeAws_restJson1UpdatePipeCommand = async (output, context) => {
|
|
730
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
+
return deserializeAws_restJson1UpdatePipeCommandError(output, context);
|
|
732
|
+
}
|
|
733
|
+
const contents = map({
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
});
|
|
736
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
737
|
+
if (data.Arn != null) {
|
|
738
|
+
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
739
|
+
}
|
|
740
|
+
if (data.CreationTime != null) {
|
|
741
|
+
contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
|
|
742
|
+
}
|
|
743
|
+
if (data.CurrentState != null) {
|
|
744
|
+
contents.CurrentState = (0, smithy_client_1.expectString)(data.CurrentState);
|
|
745
|
+
}
|
|
746
|
+
if (data.DesiredState != null) {
|
|
747
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
748
|
+
}
|
|
749
|
+
if (data.LastModifiedTime != null) {
|
|
750
|
+
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
751
|
+
}
|
|
752
|
+
if (data.Name != null) {
|
|
753
|
+
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
754
|
+
}
|
|
755
|
+
return contents;
|
|
756
|
+
};
|
|
757
|
+
exports.deserializeAws_restJson1UpdatePipeCommand = deserializeAws_restJson1UpdatePipeCommand;
|
|
758
|
+
const deserializeAws_restJson1UpdatePipeCommandError = async (output, context) => {
|
|
759
|
+
const parsedOutput = {
|
|
760
|
+
...output,
|
|
761
|
+
body: await parseErrorBody(output.body, context),
|
|
762
|
+
};
|
|
763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
+
switch (errorCode) {
|
|
765
|
+
case "ConflictException":
|
|
766
|
+
case "com.amazonaws.pipes#ConflictException":
|
|
767
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
768
|
+
case "InternalException":
|
|
769
|
+
case "com.amazonaws.pipes#InternalException":
|
|
770
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
771
|
+
case "NotFoundException":
|
|
772
|
+
case "com.amazonaws.pipes#NotFoundException":
|
|
773
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
774
|
+
case "ThrottlingException":
|
|
775
|
+
case "com.amazonaws.pipes#ThrottlingException":
|
|
776
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
777
|
+
case "ValidationException":
|
|
778
|
+
case "com.amazonaws.pipes#ValidationException":
|
|
779
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
780
|
+
default:
|
|
781
|
+
const parsedBody = parsedOutput.body;
|
|
782
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
783
|
+
output,
|
|
784
|
+
parsedBody,
|
|
785
|
+
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
786
|
+
errorCode,
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
const map = smithy_client_1.map;
|
|
791
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
792
|
+
const contents = map({});
|
|
793
|
+
const data = parsedOutput.body;
|
|
794
|
+
if (data.message != null) {
|
|
795
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
796
|
+
}
|
|
797
|
+
if (data.resourceId != null) {
|
|
798
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
799
|
+
}
|
|
800
|
+
if (data.resourceType != null) {
|
|
801
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
802
|
+
}
|
|
803
|
+
const exception = new models_0_1.ConflictException({
|
|
804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
805
|
+
...contents,
|
|
806
|
+
});
|
|
807
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
808
|
+
};
|
|
809
|
+
const deserializeAws_restJson1InternalExceptionResponse = async (parsedOutput, context) => {
|
|
810
|
+
const contents = map({
|
|
811
|
+
retryAfterSeconds: [
|
|
812
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
813
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
814
|
+
],
|
|
815
|
+
});
|
|
816
|
+
const data = parsedOutput.body;
|
|
817
|
+
if (data.message != null) {
|
|
818
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
819
|
+
}
|
|
820
|
+
const exception = new models_0_1.InternalException({
|
|
821
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
822
|
+
...contents,
|
|
823
|
+
});
|
|
824
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
825
|
+
};
|
|
826
|
+
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
827
|
+
const contents = map({});
|
|
828
|
+
const data = parsedOutput.body;
|
|
829
|
+
if (data.message != null) {
|
|
830
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
831
|
+
}
|
|
832
|
+
const exception = new models_0_1.NotFoundException({
|
|
833
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
834
|
+
...contents,
|
|
835
|
+
});
|
|
836
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
837
|
+
};
|
|
838
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
839
|
+
const contents = map({});
|
|
840
|
+
const data = parsedOutput.body;
|
|
841
|
+
if (data.message != null) {
|
|
842
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
843
|
+
}
|
|
844
|
+
if (data.quotaCode != null) {
|
|
845
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
846
|
+
}
|
|
847
|
+
if (data.resourceId != null) {
|
|
848
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
849
|
+
}
|
|
850
|
+
if (data.resourceType != null) {
|
|
851
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
852
|
+
}
|
|
853
|
+
if (data.serviceCode != null) {
|
|
854
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
855
|
+
}
|
|
856
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
857
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
858
|
+
...contents,
|
|
859
|
+
});
|
|
860
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
861
|
+
};
|
|
862
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
863
|
+
const contents = map({
|
|
864
|
+
retryAfterSeconds: [
|
|
865
|
+
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
866
|
+
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
867
|
+
],
|
|
868
|
+
});
|
|
869
|
+
const data = parsedOutput.body;
|
|
870
|
+
if (data.message != null) {
|
|
871
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
872
|
+
}
|
|
873
|
+
if (data.quotaCode != null) {
|
|
874
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
875
|
+
}
|
|
876
|
+
if (data.serviceCode != null) {
|
|
877
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
878
|
+
}
|
|
879
|
+
const exception = new models_0_1.ThrottlingException({
|
|
880
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
881
|
+
...contents,
|
|
882
|
+
});
|
|
883
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
884
|
+
};
|
|
885
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
886
|
+
const contents = map({});
|
|
887
|
+
const data = parsedOutput.body;
|
|
888
|
+
if (data.fieldList != null) {
|
|
889
|
+
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
890
|
+
}
|
|
891
|
+
if (data.message != null) {
|
|
892
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
893
|
+
}
|
|
894
|
+
const exception = new models_0_1.ValidationException({
|
|
895
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
896
|
+
...contents,
|
|
897
|
+
});
|
|
898
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
899
|
+
};
|
|
900
|
+
const serializeAws_restJson1AwsVpcConfiguration = (input, context) => {
|
|
901
|
+
return {
|
|
902
|
+
...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
|
|
903
|
+
...(input.SecurityGroups != null && {
|
|
904
|
+
SecurityGroups: serializeAws_restJson1SecurityGroups(input.SecurityGroups, context),
|
|
905
|
+
}),
|
|
906
|
+
...(input.Subnets != null && { Subnets: serializeAws_restJson1Subnets(input.Subnets, context) }),
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
const serializeAws_restJson1BatchArrayProperties = (input, context) => {
|
|
910
|
+
return {
|
|
911
|
+
...(input.Size != null && { Size: input.Size }),
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
const serializeAws_restJson1BatchContainerOverrides = (input, context) => {
|
|
915
|
+
return {
|
|
916
|
+
...(input.Command != null && { Command: serializeAws_restJson1StringList(input.Command, context) }),
|
|
917
|
+
...(input.Environment != null && {
|
|
918
|
+
Environment: serializeAws_restJson1BatchEnvironmentVariableList(input.Environment, context),
|
|
919
|
+
}),
|
|
920
|
+
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
921
|
+
...(input.ResourceRequirements != null && {
|
|
922
|
+
ResourceRequirements: serializeAws_restJson1BatchResourceRequirementsList(input.ResourceRequirements, context),
|
|
923
|
+
}),
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
const serializeAws_restJson1BatchDependsOn = (input, context) => {
|
|
927
|
+
return input
|
|
928
|
+
.filter((e) => e != null)
|
|
929
|
+
.map((entry) => {
|
|
930
|
+
return serializeAws_restJson1BatchJobDependency(entry, context);
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
const serializeAws_restJson1BatchEnvironmentVariable = (input, context) => {
|
|
934
|
+
return {
|
|
935
|
+
...(input.Name != null && { Name: input.Name }),
|
|
936
|
+
...(input.Value != null && { Value: input.Value }),
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
const serializeAws_restJson1BatchEnvironmentVariableList = (input, context) => {
|
|
940
|
+
return input
|
|
941
|
+
.filter((e) => e != null)
|
|
942
|
+
.map((entry) => {
|
|
943
|
+
return serializeAws_restJson1BatchEnvironmentVariable(entry, context);
|
|
944
|
+
});
|
|
945
|
+
};
|
|
946
|
+
const serializeAws_restJson1BatchJobDependency = (input, context) => {
|
|
947
|
+
return {
|
|
948
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
949
|
+
...(input.Type != null && { Type: input.Type }),
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
const serializeAws_restJson1BatchParametersMap = (input, context) => {
|
|
953
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
954
|
+
if (value === null) {
|
|
955
|
+
return acc;
|
|
956
|
+
}
|
|
957
|
+
acc[key] = value;
|
|
958
|
+
return acc;
|
|
959
|
+
}, {});
|
|
960
|
+
};
|
|
961
|
+
const serializeAws_restJson1BatchResourceRequirement = (input, context) => {
|
|
962
|
+
return {
|
|
963
|
+
...(input.Type != null && { Type: input.Type }),
|
|
964
|
+
...(input.Value != null && { Value: input.Value }),
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
const serializeAws_restJson1BatchResourceRequirementsList = (input, context) => {
|
|
968
|
+
return input
|
|
969
|
+
.filter((e) => e != null)
|
|
970
|
+
.map((entry) => {
|
|
971
|
+
return serializeAws_restJson1BatchResourceRequirement(entry, context);
|
|
972
|
+
});
|
|
973
|
+
};
|
|
974
|
+
const serializeAws_restJson1BatchRetryStrategy = (input, context) => {
|
|
975
|
+
return {
|
|
976
|
+
...(input.Attempts != null && { Attempts: input.Attempts }),
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
const serializeAws_restJson1CapacityProviderStrategy = (input, context) => {
|
|
980
|
+
return input
|
|
981
|
+
.filter((e) => e != null)
|
|
982
|
+
.map((entry) => {
|
|
983
|
+
return serializeAws_restJson1CapacityProviderStrategyItem(entry, context);
|
|
984
|
+
});
|
|
985
|
+
};
|
|
986
|
+
const serializeAws_restJson1CapacityProviderStrategyItem = (input, context) => {
|
|
987
|
+
return {
|
|
988
|
+
...(input.base != null && { base: input.base }),
|
|
989
|
+
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
990
|
+
...(input.weight != null && { weight: input.weight }),
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
const serializeAws_restJson1DeadLetterConfig = (input, context) => {
|
|
994
|
+
return {
|
|
995
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
const serializeAws_restJson1EcsContainerOverride = (input, context) => {
|
|
999
|
+
return {
|
|
1000
|
+
...(input.Command != null && { Command: serializeAws_restJson1StringList(input.Command, context) }),
|
|
1001
|
+
...(input.Cpu != null && { Cpu: input.Cpu }),
|
|
1002
|
+
...(input.Environment != null && {
|
|
1003
|
+
Environment: serializeAws_restJson1EcsEnvironmentVariableList(input.Environment, context),
|
|
1004
|
+
}),
|
|
1005
|
+
...(input.EnvironmentFiles != null && {
|
|
1006
|
+
EnvironmentFiles: serializeAws_restJson1EcsEnvironmentFileList(input.EnvironmentFiles, context),
|
|
1007
|
+
}),
|
|
1008
|
+
...(input.Memory != null && { Memory: input.Memory }),
|
|
1009
|
+
...(input.MemoryReservation != null && { MemoryReservation: input.MemoryReservation }),
|
|
1010
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1011
|
+
...(input.ResourceRequirements != null && {
|
|
1012
|
+
ResourceRequirements: serializeAws_restJson1EcsResourceRequirementsList(input.ResourceRequirements, context),
|
|
1013
|
+
}),
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
const serializeAws_restJson1EcsContainerOverrideList = (input, context) => {
|
|
1017
|
+
return input
|
|
1018
|
+
.filter((e) => e != null)
|
|
1019
|
+
.map((entry) => {
|
|
1020
|
+
return serializeAws_restJson1EcsContainerOverride(entry, context);
|
|
1021
|
+
});
|
|
1022
|
+
};
|
|
1023
|
+
const serializeAws_restJson1EcsEnvironmentFile = (input, context) => {
|
|
1024
|
+
return {
|
|
1025
|
+
...(input.type != null && { type: input.type }),
|
|
1026
|
+
...(input.value != null && { value: input.value }),
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
const serializeAws_restJson1EcsEnvironmentFileList = (input, context) => {
|
|
1030
|
+
return input
|
|
1031
|
+
.filter((e) => e != null)
|
|
1032
|
+
.map((entry) => {
|
|
1033
|
+
return serializeAws_restJson1EcsEnvironmentFile(entry, context);
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
const serializeAws_restJson1EcsEnvironmentVariable = (input, context) => {
|
|
1037
|
+
return {
|
|
1038
|
+
...(input.name != null && { name: input.name }),
|
|
1039
|
+
...(input.value != null && { value: input.value }),
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
const serializeAws_restJson1EcsEnvironmentVariableList = (input, context) => {
|
|
1043
|
+
return input
|
|
1044
|
+
.filter((e) => e != null)
|
|
1045
|
+
.map((entry) => {
|
|
1046
|
+
return serializeAws_restJson1EcsEnvironmentVariable(entry, context);
|
|
1047
|
+
});
|
|
1048
|
+
};
|
|
1049
|
+
const serializeAws_restJson1EcsEphemeralStorage = (input, context) => {
|
|
1050
|
+
return {
|
|
1051
|
+
...(input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }),
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
const serializeAws_restJson1EcsInferenceAcceleratorOverride = (input, context) => {
|
|
1055
|
+
return {
|
|
1056
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
1057
|
+
...(input.deviceType != null && { deviceType: input.deviceType }),
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
const serializeAws_restJson1EcsInferenceAcceleratorOverrideList = (input, context) => {
|
|
1061
|
+
return input
|
|
1062
|
+
.filter((e) => e != null)
|
|
1063
|
+
.map((entry) => {
|
|
1064
|
+
return serializeAws_restJson1EcsInferenceAcceleratorOverride(entry, context);
|
|
1065
|
+
});
|
|
1066
|
+
};
|
|
1067
|
+
const serializeAws_restJson1EcsResourceRequirement = (input, context) => {
|
|
1068
|
+
return {
|
|
1069
|
+
...(input.type != null && { type: input.type }),
|
|
1070
|
+
...(input.value != null && { value: input.value }),
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
const serializeAws_restJson1EcsResourceRequirementsList = (input, context) => {
|
|
1074
|
+
return input
|
|
1075
|
+
.filter((e) => e != null)
|
|
1076
|
+
.map((entry) => {
|
|
1077
|
+
return serializeAws_restJson1EcsResourceRequirement(entry, context);
|
|
1078
|
+
});
|
|
1079
|
+
};
|
|
1080
|
+
const serializeAws_restJson1EcsTaskOverride = (input, context) => {
|
|
1081
|
+
return {
|
|
1082
|
+
...(input.ContainerOverrides != null && {
|
|
1083
|
+
ContainerOverrides: serializeAws_restJson1EcsContainerOverrideList(input.ContainerOverrides, context),
|
|
1084
|
+
}),
|
|
1085
|
+
...(input.Cpu != null && { Cpu: input.Cpu }),
|
|
1086
|
+
...(input.EphemeralStorage != null && {
|
|
1087
|
+
EphemeralStorage: serializeAws_restJson1EcsEphemeralStorage(input.EphemeralStorage, context),
|
|
1088
|
+
}),
|
|
1089
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1090
|
+
...(input.InferenceAcceleratorOverrides != null && {
|
|
1091
|
+
InferenceAcceleratorOverrides: serializeAws_restJson1EcsInferenceAcceleratorOverrideList(input.InferenceAcceleratorOverrides, context),
|
|
1092
|
+
}),
|
|
1093
|
+
...(input.Memory != null && { Memory: input.Memory }),
|
|
1094
|
+
...(input.TaskRoleArn != null && { TaskRoleArn: input.TaskRoleArn }),
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
const serializeAws_restJson1EventBridgeEventResourceList = (input, context) => {
|
|
1098
|
+
return input
|
|
1099
|
+
.filter((e) => e != null)
|
|
1100
|
+
.map((entry) => {
|
|
1101
|
+
return entry;
|
|
1102
|
+
});
|
|
1103
|
+
};
|
|
1104
|
+
const serializeAws_restJson1Filter = (input, context) => {
|
|
1105
|
+
return {
|
|
1106
|
+
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
const serializeAws_restJson1FilterCriteria = (input, context) => {
|
|
1110
|
+
return {
|
|
1111
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
const serializeAws_restJson1FilterList = (input, context) => {
|
|
1115
|
+
return input
|
|
1116
|
+
.filter((e) => e != null)
|
|
1117
|
+
.map((entry) => {
|
|
1118
|
+
return serializeAws_restJson1Filter(entry, context);
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
const serializeAws_restJson1HeaderParametersMap = (input, context) => {
|
|
1122
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1123
|
+
if (value === null) {
|
|
1124
|
+
return acc;
|
|
1125
|
+
}
|
|
1126
|
+
acc[key] = value;
|
|
1127
|
+
return acc;
|
|
1128
|
+
}, {});
|
|
1129
|
+
};
|
|
1130
|
+
const serializeAws_restJson1KafkaBootstrapServers = (input, context) => {
|
|
1131
|
+
return input
|
|
1132
|
+
.filter((e) => e != null)
|
|
1133
|
+
.map((entry) => {
|
|
1134
|
+
return entry;
|
|
1135
|
+
});
|
|
1136
|
+
};
|
|
1137
|
+
const serializeAws_restJson1MQBrokerAccessCredentials = (input, context) => {
|
|
1138
|
+
return models_0_1.MQBrokerAccessCredentials.visit(input, {
|
|
1139
|
+
BasicAuth: (value) => ({ BasicAuth: value }),
|
|
1140
|
+
_: (name, value) => ({ name: value }),
|
|
1141
|
+
});
|
|
1142
|
+
};
|
|
1143
|
+
const serializeAws_restJson1MSKAccessCredentials = (input, context) => {
|
|
1144
|
+
return models_0_1.MSKAccessCredentials.visit(input, {
|
|
1145
|
+
ClientCertificateTlsAuth: (value) => ({ ClientCertificateTlsAuth: value }),
|
|
1146
|
+
SaslScram512Auth: (value) => ({ SaslScram512Auth: value }),
|
|
1147
|
+
_: (name, value) => ({ name: value }),
|
|
1148
|
+
});
|
|
1149
|
+
};
|
|
1150
|
+
const serializeAws_restJson1NetworkConfiguration = (input, context) => {
|
|
1151
|
+
return {
|
|
1152
|
+
...(input.awsvpcConfiguration != null && {
|
|
1153
|
+
awsvpcConfiguration: serializeAws_restJson1AwsVpcConfiguration(input.awsvpcConfiguration, context),
|
|
1154
|
+
}),
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
const serializeAws_restJson1PathParameterList = (input, context) => {
|
|
1158
|
+
return input
|
|
1159
|
+
.filter((e) => e != null)
|
|
1160
|
+
.map((entry) => {
|
|
1161
|
+
return entry;
|
|
1162
|
+
});
|
|
1163
|
+
};
|
|
1164
|
+
const serializeAws_restJson1PipeEnrichmentHttpParameters = (input, context) => {
|
|
1165
|
+
return {
|
|
1166
|
+
...(input.HeaderParameters != null && {
|
|
1167
|
+
HeaderParameters: serializeAws_restJson1HeaderParametersMap(input.HeaderParameters, context),
|
|
1168
|
+
}),
|
|
1169
|
+
...(input.PathParameterValues != null && {
|
|
1170
|
+
PathParameterValues: serializeAws_restJson1PathParameterList(input.PathParameterValues, context),
|
|
1171
|
+
}),
|
|
1172
|
+
...(input.QueryStringParameters != null && {
|
|
1173
|
+
QueryStringParameters: serializeAws_restJson1QueryStringParametersMap(input.QueryStringParameters, context),
|
|
1174
|
+
}),
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
const serializeAws_restJson1PipeEnrichmentParameters = (input, context) => {
|
|
1178
|
+
return {
|
|
1179
|
+
...(input.HttpParameters != null && {
|
|
1180
|
+
HttpParameters: serializeAws_restJson1PipeEnrichmentHttpParameters(input.HttpParameters, context),
|
|
1181
|
+
}),
|
|
1182
|
+
...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1185
|
+
const serializeAws_restJson1PipeSourceActiveMQBrokerParameters = (input, context) => {
|
|
1186
|
+
return {
|
|
1187
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1188
|
+
...(input.Credentials != null && {
|
|
1189
|
+
Credentials: serializeAws_restJson1MQBrokerAccessCredentials(input.Credentials, context),
|
|
1190
|
+
}),
|
|
1191
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1192
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1193
|
+
}),
|
|
1194
|
+
...(input.QueueName != null && { QueueName: input.QueueName }),
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
const serializeAws_restJson1PipeSourceDynamoDBStreamParameters = (input, context) => {
|
|
1198
|
+
return {
|
|
1199
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1200
|
+
...(input.DeadLetterConfig != null && {
|
|
1201
|
+
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
1202
|
+
}),
|
|
1203
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1204
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1205
|
+
}),
|
|
1206
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1207
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1208
|
+
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1209
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1210
|
+
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
const serializeAws_restJson1PipeSourceKinesisStreamParameters = (input, context) => {
|
|
1214
|
+
return {
|
|
1215
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1216
|
+
...(input.DeadLetterConfig != null && {
|
|
1217
|
+
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
1218
|
+
}),
|
|
1219
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1220
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1221
|
+
}),
|
|
1222
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1223
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1224
|
+
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1225
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1226
|
+
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1227
|
+
...(input.StartingPositionTimestamp != null && {
|
|
1228
|
+
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
|
|
1229
|
+
}),
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
const serializeAws_restJson1PipeSourceManagedStreamingKafkaParameters = (input, context) => {
|
|
1233
|
+
return {
|
|
1234
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1235
|
+
...(input.ConsumerGroupID != null && { ConsumerGroupID: input.ConsumerGroupID }),
|
|
1236
|
+
...(input.Credentials != null && {
|
|
1237
|
+
Credentials: serializeAws_restJson1MSKAccessCredentials(input.Credentials, context),
|
|
1238
|
+
}),
|
|
1239
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1240
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1241
|
+
}),
|
|
1242
|
+
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1243
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
const serializeAws_restJson1PipeSourceParameters = (input, context) => {
|
|
1247
|
+
return {
|
|
1248
|
+
...(input.ActiveMQBrokerParameters != null && {
|
|
1249
|
+
ActiveMQBrokerParameters: serializeAws_restJson1PipeSourceActiveMQBrokerParameters(input.ActiveMQBrokerParameters, context),
|
|
1250
|
+
}),
|
|
1251
|
+
...(input.DynamoDBStreamParameters != null && {
|
|
1252
|
+
DynamoDBStreamParameters: serializeAws_restJson1PipeSourceDynamoDBStreamParameters(input.DynamoDBStreamParameters, context),
|
|
1253
|
+
}),
|
|
1254
|
+
...(input.FilterCriteria != null && {
|
|
1255
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
1256
|
+
}),
|
|
1257
|
+
...(input.KinesisStreamParameters != null && {
|
|
1258
|
+
KinesisStreamParameters: serializeAws_restJson1PipeSourceKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1259
|
+
}),
|
|
1260
|
+
...(input.ManagedStreamingKafkaParameters != null && {
|
|
1261
|
+
ManagedStreamingKafkaParameters: serializeAws_restJson1PipeSourceManagedStreamingKafkaParameters(input.ManagedStreamingKafkaParameters, context),
|
|
1262
|
+
}),
|
|
1263
|
+
...(input.RabbitMQBrokerParameters != null && {
|
|
1264
|
+
RabbitMQBrokerParameters: serializeAws_restJson1PipeSourceRabbitMQBrokerParameters(input.RabbitMQBrokerParameters, context),
|
|
1265
|
+
}),
|
|
1266
|
+
...(input.SelfManagedKafkaParameters != null && {
|
|
1267
|
+
SelfManagedKafkaParameters: serializeAws_restJson1PipeSourceSelfManagedKafkaParameters(input.SelfManagedKafkaParameters, context),
|
|
1268
|
+
}),
|
|
1269
|
+
...(input.SqsQueueParameters != null && {
|
|
1270
|
+
SqsQueueParameters: serializeAws_restJson1PipeSourceSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1271
|
+
}),
|
|
1272
|
+
};
|
|
1273
|
+
};
|
|
1274
|
+
const serializeAws_restJson1PipeSourceRabbitMQBrokerParameters = (input, context) => {
|
|
1275
|
+
return {
|
|
1276
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1277
|
+
...(input.Credentials != null && {
|
|
1278
|
+
Credentials: serializeAws_restJson1MQBrokerAccessCredentials(input.Credentials, context),
|
|
1279
|
+
}),
|
|
1280
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1281
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1282
|
+
}),
|
|
1283
|
+
...(input.QueueName != null && { QueueName: input.QueueName }),
|
|
1284
|
+
...(input.VirtualHost != null && { VirtualHost: input.VirtualHost }),
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
const serializeAws_restJson1PipeSourceSelfManagedKafkaParameters = (input, context) => {
|
|
1288
|
+
return {
|
|
1289
|
+
...(input.AdditionalBootstrapServers != null && {
|
|
1290
|
+
AdditionalBootstrapServers: serializeAws_restJson1KafkaBootstrapServers(input.AdditionalBootstrapServers, context),
|
|
1291
|
+
}),
|
|
1292
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1293
|
+
...(input.ConsumerGroupID != null && { ConsumerGroupID: input.ConsumerGroupID }),
|
|
1294
|
+
...(input.Credentials != null && {
|
|
1295
|
+
Credentials: serializeAws_restJson1SelfManagedKafkaAccessConfigurationCredentials(input.Credentials, context),
|
|
1296
|
+
}),
|
|
1297
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1298
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1299
|
+
}),
|
|
1300
|
+
...(input.ServerRootCaCertificate != null && { ServerRootCaCertificate: input.ServerRootCaCertificate }),
|
|
1301
|
+
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1302
|
+
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
1303
|
+
...(input.Vpc != null && { Vpc: serializeAws_restJson1SelfManagedKafkaAccessConfigurationVpc(input.Vpc, context) }),
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
const serializeAws_restJson1PipeSourceSqsQueueParameters = (input, context) => {
|
|
1307
|
+
return {
|
|
1308
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1309
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1310
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1311
|
+
}),
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
const serializeAws_restJson1PipeTargetBatchJobParameters = (input, context) => {
|
|
1315
|
+
return {
|
|
1316
|
+
...(input.ArrayProperties != null && {
|
|
1317
|
+
ArrayProperties: serializeAws_restJson1BatchArrayProperties(input.ArrayProperties, context),
|
|
1318
|
+
}),
|
|
1319
|
+
...(input.ContainerOverrides != null && {
|
|
1320
|
+
ContainerOverrides: serializeAws_restJson1BatchContainerOverrides(input.ContainerOverrides, context),
|
|
1321
|
+
}),
|
|
1322
|
+
...(input.DependsOn != null && { DependsOn: serializeAws_restJson1BatchDependsOn(input.DependsOn, context) }),
|
|
1323
|
+
...(input.JobDefinition != null && { JobDefinition: input.JobDefinition }),
|
|
1324
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1325
|
+
...(input.Parameters != null && {
|
|
1326
|
+
Parameters: serializeAws_restJson1BatchParametersMap(input.Parameters, context),
|
|
1327
|
+
}),
|
|
1328
|
+
...(input.RetryStrategy != null && {
|
|
1329
|
+
RetryStrategy: serializeAws_restJson1BatchRetryStrategy(input.RetryStrategy, context),
|
|
1330
|
+
}),
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
const serializeAws_restJson1PipeTargetCloudWatchLogsParameters = (input, context) => {
|
|
1334
|
+
return {
|
|
1335
|
+
...(input.LogStreamName != null && { LogStreamName: input.LogStreamName }),
|
|
1336
|
+
...(input.Timestamp != null && { Timestamp: input.Timestamp }),
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
const serializeAws_restJson1PipeTargetEcsTaskParameters = (input, context) => {
|
|
1340
|
+
return {
|
|
1341
|
+
...(input.CapacityProviderStrategy != null && {
|
|
1342
|
+
CapacityProviderStrategy: serializeAws_restJson1CapacityProviderStrategy(input.CapacityProviderStrategy, context),
|
|
1343
|
+
}),
|
|
1344
|
+
...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
|
|
1345
|
+
...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
|
|
1346
|
+
...(input.Group != null && { Group: input.Group }),
|
|
1347
|
+
...(input.LaunchType != null && { LaunchType: input.LaunchType }),
|
|
1348
|
+
...(input.NetworkConfiguration != null && {
|
|
1349
|
+
NetworkConfiguration: serializeAws_restJson1NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1350
|
+
}),
|
|
1351
|
+
...(input.Overrides != null && { Overrides: serializeAws_restJson1EcsTaskOverride(input.Overrides, context) }),
|
|
1352
|
+
...(input.PlacementConstraints != null && {
|
|
1353
|
+
PlacementConstraints: serializeAws_restJson1PlacementConstraints(input.PlacementConstraints, context),
|
|
1354
|
+
}),
|
|
1355
|
+
...(input.PlacementStrategy != null && {
|
|
1356
|
+
PlacementStrategy: serializeAws_restJson1PlacementStrategies(input.PlacementStrategy, context),
|
|
1357
|
+
}),
|
|
1358
|
+
...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
|
|
1359
|
+
...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
|
|
1360
|
+
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
1361
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
|
|
1362
|
+
...(input.TaskCount != null && { TaskCount: input.TaskCount }),
|
|
1363
|
+
...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
const serializeAws_restJson1PipeTargetEventBridgeEventBusParameters = (input, context) => {
|
|
1367
|
+
return {
|
|
1368
|
+
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
1369
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
1370
|
+
...(input.Resources != null && {
|
|
1371
|
+
Resources: serializeAws_restJson1EventBridgeEventResourceList(input.Resources, context),
|
|
1372
|
+
}),
|
|
1373
|
+
...(input.Source != null && { Source: input.Source }),
|
|
1374
|
+
...(input.Time != null && { Time: input.Time }),
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
const serializeAws_restJson1PipeTargetHttpParameters = (input, context) => {
|
|
1378
|
+
return {
|
|
1379
|
+
...(input.HeaderParameters != null && {
|
|
1380
|
+
HeaderParameters: serializeAws_restJson1HeaderParametersMap(input.HeaderParameters, context),
|
|
1381
|
+
}),
|
|
1382
|
+
...(input.PathParameterValues != null && {
|
|
1383
|
+
PathParameterValues: serializeAws_restJson1PathParameterList(input.PathParameterValues, context),
|
|
1384
|
+
}),
|
|
1385
|
+
...(input.QueryStringParameters != null && {
|
|
1386
|
+
QueryStringParameters: serializeAws_restJson1QueryStringParametersMap(input.QueryStringParameters, context),
|
|
1387
|
+
}),
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
const serializeAws_restJson1PipeTargetKinesisStreamParameters = (input, context) => {
|
|
1391
|
+
return {
|
|
1392
|
+
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
const serializeAws_restJson1PipeTargetLambdaFunctionParameters = (input, context) => {
|
|
1396
|
+
return {
|
|
1397
|
+
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
const serializeAws_restJson1PipeTargetParameters = (input, context) => {
|
|
1401
|
+
return {
|
|
1402
|
+
...(input.BatchJobParameters != null && {
|
|
1403
|
+
BatchJobParameters: serializeAws_restJson1PipeTargetBatchJobParameters(input.BatchJobParameters, context),
|
|
1404
|
+
}),
|
|
1405
|
+
...(input.CloudWatchLogsParameters != null && {
|
|
1406
|
+
CloudWatchLogsParameters: serializeAws_restJson1PipeTargetCloudWatchLogsParameters(input.CloudWatchLogsParameters, context),
|
|
1407
|
+
}),
|
|
1408
|
+
...(input.EcsTaskParameters != null && {
|
|
1409
|
+
EcsTaskParameters: serializeAws_restJson1PipeTargetEcsTaskParameters(input.EcsTaskParameters, context),
|
|
1410
|
+
}),
|
|
1411
|
+
...(input.EventBridgeEventBusParameters != null && {
|
|
1412
|
+
EventBridgeEventBusParameters: serializeAws_restJson1PipeTargetEventBridgeEventBusParameters(input.EventBridgeEventBusParameters, context),
|
|
1413
|
+
}),
|
|
1414
|
+
...(input.HttpParameters != null && {
|
|
1415
|
+
HttpParameters: serializeAws_restJson1PipeTargetHttpParameters(input.HttpParameters, context),
|
|
1416
|
+
}),
|
|
1417
|
+
...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
|
|
1418
|
+
...(input.KinesisStreamParameters != null && {
|
|
1419
|
+
KinesisStreamParameters: serializeAws_restJson1PipeTargetKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1420
|
+
}),
|
|
1421
|
+
...(input.LambdaFunctionParameters != null && {
|
|
1422
|
+
LambdaFunctionParameters: serializeAws_restJson1PipeTargetLambdaFunctionParameters(input.LambdaFunctionParameters, context),
|
|
1423
|
+
}),
|
|
1424
|
+
...(input.RedshiftDataParameters != null && {
|
|
1425
|
+
RedshiftDataParameters: serializeAws_restJson1PipeTargetRedshiftDataParameters(input.RedshiftDataParameters, context),
|
|
1426
|
+
}),
|
|
1427
|
+
...(input.SageMakerPipelineParameters != null && {
|
|
1428
|
+
SageMakerPipelineParameters: serializeAws_restJson1PipeTargetSageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
|
|
1429
|
+
}),
|
|
1430
|
+
...(input.SqsQueueParameters != null && {
|
|
1431
|
+
SqsQueueParameters: serializeAws_restJson1PipeTargetSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1432
|
+
}),
|
|
1433
|
+
...(input.StepFunctionStateMachineParameters != null && {
|
|
1434
|
+
StepFunctionStateMachineParameters: serializeAws_restJson1PipeTargetStateMachineParameters(input.StepFunctionStateMachineParameters, context),
|
|
1435
|
+
}),
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1438
|
+
const serializeAws_restJson1PipeTargetRedshiftDataParameters = (input, context) => {
|
|
1439
|
+
return {
|
|
1440
|
+
...(input.Database != null && { Database: input.Database }),
|
|
1441
|
+
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
1442
|
+
...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
|
|
1443
|
+
...(input.Sqls != null && { Sqls: serializeAws_restJson1Sqls(input.Sqls, context) }),
|
|
1444
|
+
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
1445
|
+
...(input.WithEvent != null && { WithEvent: input.WithEvent }),
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
const serializeAws_restJson1PipeTargetSageMakerPipelineParameters = (input, context) => {
|
|
1449
|
+
return {
|
|
1450
|
+
...(input.PipelineParameterList != null && {
|
|
1451
|
+
PipelineParameterList: serializeAws_restJson1SageMakerPipelineParameterList(input.PipelineParameterList, context),
|
|
1452
|
+
}),
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
const serializeAws_restJson1PipeTargetSqsQueueParameters = (input, context) => {
|
|
1456
|
+
return {
|
|
1457
|
+
...(input.MessageDeduplicationId != null && { MessageDeduplicationId: input.MessageDeduplicationId }),
|
|
1458
|
+
...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
const serializeAws_restJson1PipeTargetStateMachineParameters = (input, context) => {
|
|
1462
|
+
return {
|
|
1463
|
+
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
const serializeAws_restJson1PlacementConstraint = (input, context) => {
|
|
1467
|
+
return {
|
|
1468
|
+
...(input.expression != null && { expression: input.expression }),
|
|
1469
|
+
...(input.type != null && { type: input.type }),
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
const serializeAws_restJson1PlacementConstraints = (input, context) => {
|
|
1473
|
+
return input
|
|
1474
|
+
.filter((e) => e != null)
|
|
1475
|
+
.map((entry) => {
|
|
1476
|
+
return serializeAws_restJson1PlacementConstraint(entry, context);
|
|
1477
|
+
});
|
|
1478
|
+
};
|
|
1479
|
+
const serializeAws_restJson1PlacementStrategies = (input, context) => {
|
|
1480
|
+
return input
|
|
1481
|
+
.filter((e) => e != null)
|
|
1482
|
+
.map((entry) => {
|
|
1483
|
+
return serializeAws_restJson1PlacementStrategy(entry, context);
|
|
1484
|
+
});
|
|
1485
|
+
};
|
|
1486
|
+
const serializeAws_restJson1PlacementStrategy = (input, context) => {
|
|
1487
|
+
return {
|
|
1488
|
+
...(input.field != null && { field: input.field }),
|
|
1489
|
+
...(input.type != null && { type: input.type }),
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
const serializeAws_restJson1QueryStringParametersMap = (input, context) => {
|
|
1493
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1494
|
+
if (value === null) {
|
|
1495
|
+
return acc;
|
|
1496
|
+
}
|
|
1497
|
+
acc[key] = value;
|
|
1498
|
+
return acc;
|
|
1499
|
+
}, {});
|
|
1500
|
+
};
|
|
1501
|
+
const serializeAws_restJson1SageMakerPipelineParameter = (input, context) => {
|
|
1502
|
+
return {
|
|
1503
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1504
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
const serializeAws_restJson1SageMakerPipelineParameterList = (input, context) => {
|
|
1508
|
+
return input
|
|
1509
|
+
.filter((e) => e != null)
|
|
1510
|
+
.map((entry) => {
|
|
1511
|
+
return serializeAws_restJson1SageMakerPipelineParameter(entry, context);
|
|
1512
|
+
});
|
|
1513
|
+
};
|
|
1514
|
+
const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
1515
|
+
return input
|
|
1516
|
+
.filter((e) => e != null)
|
|
1517
|
+
.map((entry) => {
|
|
1518
|
+
return entry;
|
|
1519
|
+
});
|
|
1520
|
+
};
|
|
1521
|
+
const serializeAws_restJson1SecurityGroups = (input, context) => {
|
|
1522
|
+
return input
|
|
1523
|
+
.filter((e) => e != null)
|
|
1524
|
+
.map((entry) => {
|
|
1525
|
+
return entry;
|
|
1526
|
+
});
|
|
1527
|
+
};
|
|
1528
|
+
const serializeAws_restJson1SelfManagedKafkaAccessConfigurationCredentials = (input, context) => {
|
|
1529
|
+
return models_0_1.SelfManagedKafkaAccessConfigurationCredentials.visit(input, {
|
|
1530
|
+
BasicAuth: (value) => ({ BasicAuth: value }),
|
|
1531
|
+
ClientCertificateTlsAuth: (value) => ({ ClientCertificateTlsAuth: value }),
|
|
1532
|
+
SaslScram256Auth: (value) => ({ SaslScram256Auth: value }),
|
|
1533
|
+
SaslScram512Auth: (value) => ({ SaslScram512Auth: value }),
|
|
1534
|
+
_: (name, value) => ({ name: value }),
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
const serializeAws_restJson1SelfManagedKafkaAccessConfigurationVpc = (input, context) => {
|
|
1538
|
+
return {
|
|
1539
|
+
...(input.SecurityGroup != null && {
|
|
1540
|
+
SecurityGroup: serializeAws_restJson1SecurityGroupIds(input.SecurityGroup, context),
|
|
1541
|
+
}),
|
|
1542
|
+
...(input.Subnets != null && { Subnets: serializeAws_restJson1SubnetIds(input.Subnets, context) }),
|
|
1543
|
+
};
|
|
1544
|
+
};
|
|
1545
|
+
const serializeAws_restJson1Sqls = (input, context) => {
|
|
1546
|
+
return input
|
|
1547
|
+
.filter((e) => e != null)
|
|
1548
|
+
.map((entry) => {
|
|
1549
|
+
return entry;
|
|
1550
|
+
});
|
|
1551
|
+
};
|
|
1552
|
+
const serializeAws_restJson1StringList = (input, context) => {
|
|
1553
|
+
return input
|
|
1554
|
+
.filter((e) => e != null)
|
|
1555
|
+
.map((entry) => {
|
|
1556
|
+
return entry;
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1559
|
+
const serializeAws_restJson1SubnetIds = (input, context) => {
|
|
1560
|
+
return input
|
|
1561
|
+
.filter((e) => e != null)
|
|
1562
|
+
.map((entry) => {
|
|
1563
|
+
return entry;
|
|
1564
|
+
});
|
|
1565
|
+
};
|
|
1566
|
+
const serializeAws_restJson1Subnets = (input, context) => {
|
|
1567
|
+
return input
|
|
1568
|
+
.filter((e) => e != null)
|
|
1569
|
+
.map((entry) => {
|
|
1570
|
+
return entry;
|
|
1571
|
+
});
|
|
1572
|
+
};
|
|
1573
|
+
const serializeAws_restJson1Tag = (input, context) => {
|
|
1574
|
+
return {
|
|
1575
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1576
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
const serializeAws_restJson1TagList = (input, context) => {
|
|
1580
|
+
return input
|
|
1581
|
+
.filter((e) => e != null)
|
|
1582
|
+
.map((entry) => {
|
|
1583
|
+
return serializeAws_restJson1Tag(entry, context);
|
|
1584
|
+
});
|
|
1585
|
+
};
|
|
1586
|
+
const serializeAws_restJson1TagMap = (input, context) => {
|
|
1587
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1588
|
+
if (value === null) {
|
|
1589
|
+
return acc;
|
|
1590
|
+
}
|
|
1591
|
+
acc[key] = value;
|
|
1592
|
+
return acc;
|
|
1593
|
+
}, {});
|
|
1594
|
+
};
|
|
1595
|
+
const serializeAws_restJson1UpdatePipeSourceActiveMQBrokerParameters = (input, context) => {
|
|
1596
|
+
return {
|
|
1597
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1598
|
+
...(input.Credentials != null && {
|
|
1599
|
+
Credentials: serializeAws_restJson1MQBrokerAccessCredentials(input.Credentials, context),
|
|
1600
|
+
}),
|
|
1601
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1602
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1603
|
+
}),
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
const serializeAws_restJson1UpdatePipeSourceDynamoDBStreamParameters = (input, context) => {
|
|
1607
|
+
return {
|
|
1608
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1609
|
+
...(input.DeadLetterConfig != null && {
|
|
1610
|
+
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
1611
|
+
}),
|
|
1612
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1613
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1614
|
+
}),
|
|
1615
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1616
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1617
|
+
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1618
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
const serializeAws_restJson1UpdatePipeSourceKinesisStreamParameters = (input, context) => {
|
|
1622
|
+
return {
|
|
1623
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1624
|
+
...(input.DeadLetterConfig != null && {
|
|
1625
|
+
DeadLetterConfig: serializeAws_restJson1DeadLetterConfig(input.DeadLetterConfig, context),
|
|
1626
|
+
}),
|
|
1627
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1628
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1629
|
+
}),
|
|
1630
|
+
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1631
|
+
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1632
|
+
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1633
|
+
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
const serializeAws_restJson1UpdatePipeSourceManagedStreamingKafkaParameters = (input, context) => {
|
|
1637
|
+
return {
|
|
1638
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1639
|
+
...(input.Credentials != null && {
|
|
1640
|
+
Credentials: serializeAws_restJson1MSKAccessCredentials(input.Credentials, context),
|
|
1641
|
+
}),
|
|
1642
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1643
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1644
|
+
}),
|
|
1645
|
+
};
|
|
1646
|
+
};
|
|
1647
|
+
const serializeAws_restJson1UpdatePipeSourceParameters = (input, context) => {
|
|
1648
|
+
return {
|
|
1649
|
+
...(input.ActiveMQBrokerParameters != null && {
|
|
1650
|
+
ActiveMQBrokerParameters: serializeAws_restJson1UpdatePipeSourceActiveMQBrokerParameters(input.ActiveMQBrokerParameters, context),
|
|
1651
|
+
}),
|
|
1652
|
+
...(input.DynamoDBStreamParameters != null && {
|
|
1653
|
+
DynamoDBStreamParameters: serializeAws_restJson1UpdatePipeSourceDynamoDBStreamParameters(input.DynamoDBStreamParameters, context),
|
|
1654
|
+
}),
|
|
1655
|
+
...(input.FilterCriteria != null && {
|
|
1656
|
+
FilterCriteria: serializeAws_restJson1FilterCriteria(input.FilterCriteria, context),
|
|
1657
|
+
}),
|
|
1658
|
+
...(input.KinesisStreamParameters != null && {
|
|
1659
|
+
KinesisStreamParameters: serializeAws_restJson1UpdatePipeSourceKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1660
|
+
}),
|
|
1661
|
+
...(input.ManagedStreamingKafkaParameters != null && {
|
|
1662
|
+
ManagedStreamingKafkaParameters: serializeAws_restJson1UpdatePipeSourceManagedStreamingKafkaParameters(input.ManagedStreamingKafkaParameters, context),
|
|
1663
|
+
}),
|
|
1664
|
+
...(input.RabbitMQBrokerParameters != null && {
|
|
1665
|
+
RabbitMQBrokerParameters: serializeAws_restJson1UpdatePipeSourceRabbitMQBrokerParameters(input.RabbitMQBrokerParameters, context),
|
|
1666
|
+
}),
|
|
1667
|
+
...(input.SelfManagedKafkaParameters != null && {
|
|
1668
|
+
SelfManagedKafkaParameters: serializeAws_restJson1UpdatePipeSourceSelfManagedKafkaParameters(input.SelfManagedKafkaParameters, context),
|
|
1669
|
+
}),
|
|
1670
|
+
...(input.SqsQueueParameters != null && {
|
|
1671
|
+
SqsQueueParameters: serializeAws_restJson1UpdatePipeSourceSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1672
|
+
}),
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
const serializeAws_restJson1UpdatePipeSourceRabbitMQBrokerParameters = (input, context) => {
|
|
1676
|
+
return {
|
|
1677
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1678
|
+
...(input.Credentials != null && {
|
|
1679
|
+
Credentials: serializeAws_restJson1MQBrokerAccessCredentials(input.Credentials, context),
|
|
1680
|
+
}),
|
|
1681
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1682
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1683
|
+
}),
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
const serializeAws_restJson1UpdatePipeSourceSelfManagedKafkaParameters = (input, context) => {
|
|
1687
|
+
return {
|
|
1688
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1689
|
+
...(input.Credentials != null && {
|
|
1690
|
+
Credentials: serializeAws_restJson1SelfManagedKafkaAccessConfigurationCredentials(input.Credentials, context),
|
|
1691
|
+
}),
|
|
1692
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1693
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1694
|
+
}),
|
|
1695
|
+
...(input.ServerRootCaCertificate != null && { ServerRootCaCertificate: input.ServerRootCaCertificate }),
|
|
1696
|
+
...(input.Vpc != null && { Vpc: serializeAws_restJson1SelfManagedKafkaAccessConfigurationVpc(input.Vpc, context) }),
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
const serializeAws_restJson1UpdatePipeSourceSqsQueueParameters = (input, context) => {
|
|
1700
|
+
return {
|
|
1701
|
+
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1702
|
+
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1703
|
+
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1704
|
+
}),
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
const deserializeAws_restJson1AwsVpcConfiguration = (output, context) => {
|
|
1708
|
+
return {
|
|
1709
|
+
AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
|
|
1710
|
+
SecurityGroups: output.SecurityGroups != null
|
|
1711
|
+
? deserializeAws_restJson1SecurityGroups(output.SecurityGroups, context)
|
|
1712
|
+
: undefined,
|
|
1713
|
+
Subnets: output.Subnets != null ? deserializeAws_restJson1Subnets(output.Subnets, context) : undefined,
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
const deserializeAws_restJson1BatchArrayProperties = (output, context) => {
|
|
1717
|
+
return {
|
|
1718
|
+
Size: (0, smithy_client_1.expectInt32)(output.Size),
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
const deserializeAws_restJson1BatchContainerOverrides = (output, context) => {
|
|
1722
|
+
return {
|
|
1723
|
+
Command: output.Command != null ? deserializeAws_restJson1StringList(output.Command, context) : undefined,
|
|
1724
|
+
Environment: output.Environment != null
|
|
1725
|
+
? deserializeAws_restJson1BatchEnvironmentVariableList(output.Environment, context)
|
|
1726
|
+
: undefined,
|
|
1727
|
+
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
1728
|
+
ResourceRequirements: output.ResourceRequirements != null
|
|
1729
|
+
? deserializeAws_restJson1BatchResourceRequirementsList(output.ResourceRequirements, context)
|
|
1730
|
+
: undefined,
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
const deserializeAws_restJson1BatchDependsOn = (output, context) => {
|
|
1734
|
+
const retVal = (output || [])
|
|
1735
|
+
.filter((e) => e != null)
|
|
1736
|
+
.map((entry) => {
|
|
1737
|
+
if (entry === null) {
|
|
1738
|
+
return null;
|
|
1739
|
+
}
|
|
1740
|
+
return deserializeAws_restJson1BatchJobDependency(entry, context);
|
|
1741
|
+
});
|
|
1742
|
+
return retVal;
|
|
1743
|
+
};
|
|
1744
|
+
const deserializeAws_restJson1BatchEnvironmentVariable = (output, context) => {
|
|
1745
|
+
return {
|
|
1746
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1747
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
const deserializeAws_restJson1BatchEnvironmentVariableList = (output, context) => {
|
|
1751
|
+
const retVal = (output || [])
|
|
1752
|
+
.filter((e) => e != null)
|
|
1753
|
+
.map((entry) => {
|
|
1754
|
+
if (entry === null) {
|
|
1755
|
+
return null;
|
|
1756
|
+
}
|
|
1757
|
+
return deserializeAws_restJson1BatchEnvironmentVariable(entry, context);
|
|
1758
|
+
});
|
|
1759
|
+
return retVal;
|
|
1760
|
+
};
|
|
1761
|
+
const deserializeAws_restJson1BatchJobDependency = (output, context) => {
|
|
1762
|
+
return {
|
|
1763
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1764
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
const deserializeAws_restJson1BatchParametersMap = (output, context) => {
|
|
1768
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1769
|
+
if (value === null) {
|
|
1770
|
+
return acc;
|
|
1771
|
+
}
|
|
1772
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1773
|
+
return acc;
|
|
1774
|
+
}, {});
|
|
1775
|
+
};
|
|
1776
|
+
const deserializeAws_restJson1BatchResourceRequirement = (output, context) => {
|
|
1777
|
+
return {
|
|
1778
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1779
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1780
|
+
};
|
|
1781
|
+
};
|
|
1782
|
+
const deserializeAws_restJson1BatchResourceRequirementsList = (output, context) => {
|
|
1783
|
+
const retVal = (output || [])
|
|
1784
|
+
.filter((e) => e != null)
|
|
1785
|
+
.map((entry) => {
|
|
1786
|
+
if (entry === null) {
|
|
1787
|
+
return null;
|
|
1788
|
+
}
|
|
1789
|
+
return deserializeAws_restJson1BatchResourceRequirement(entry, context);
|
|
1790
|
+
});
|
|
1791
|
+
return retVal;
|
|
1792
|
+
};
|
|
1793
|
+
const deserializeAws_restJson1BatchRetryStrategy = (output, context) => {
|
|
1794
|
+
return {
|
|
1795
|
+
Attempts: (0, smithy_client_1.expectInt32)(output.Attempts),
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1798
|
+
const deserializeAws_restJson1CapacityProviderStrategy = (output, context) => {
|
|
1799
|
+
const retVal = (output || [])
|
|
1800
|
+
.filter((e) => e != null)
|
|
1801
|
+
.map((entry) => {
|
|
1802
|
+
if (entry === null) {
|
|
1803
|
+
return null;
|
|
1804
|
+
}
|
|
1805
|
+
return deserializeAws_restJson1CapacityProviderStrategyItem(entry, context);
|
|
1806
|
+
});
|
|
1807
|
+
return retVal;
|
|
1808
|
+
};
|
|
1809
|
+
const deserializeAws_restJson1CapacityProviderStrategyItem = (output, context) => {
|
|
1810
|
+
return {
|
|
1811
|
+
base: (0, smithy_client_1.expectInt32)(output.base),
|
|
1812
|
+
capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
|
|
1813
|
+
weight: (0, smithy_client_1.expectInt32)(output.weight),
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
|
|
1817
|
+
return {
|
|
1818
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
const deserializeAws_restJson1EcsContainerOverride = (output, context) => {
|
|
1822
|
+
return {
|
|
1823
|
+
Command: output.Command != null ? deserializeAws_restJson1StringList(output.Command, context) : undefined,
|
|
1824
|
+
Cpu: (0, smithy_client_1.expectInt32)(output.Cpu),
|
|
1825
|
+
Environment: output.Environment != null
|
|
1826
|
+
? deserializeAws_restJson1EcsEnvironmentVariableList(output.Environment, context)
|
|
1827
|
+
: undefined,
|
|
1828
|
+
EnvironmentFiles: output.EnvironmentFiles != null
|
|
1829
|
+
? deserializeAws_restJson1EcsEnvironmentFileList(output.EnvironmentFiles, context)
|
|
1830
|
+
: undefined,
|
|
1831
|
+
Memory: (0, smithy_client_1.expectInt32)(output.Memory),
|
|
1832
|
+
MemoryReservation: (0, smithy_client_1.expectInt32)(output.MemoryReservation),
|
|
1833
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1834
|
+
ResourceRequirements: output.ResourceRequirements != null
|
|
1835
|
+
? deserializeAws_restJson1EcsResourceRequirementsList(output.ResourceRequirements, context)
|
|
1836
|
+
: undefined,
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
const deserializeAws_restJson1EcsContainerOverrideList = (output, context) => {
|
|
1840
|
+
const retVal = (output || [])
|
|
1841
|
+
.filter((e) => e != null)
|
|
1842
|
+
.map((entry) => {
|
|
1843
|
+
if (entry === null) {
|
|
1844
|
+
return null;
|
|
1845
|
+
}
|
|
1846
|
+
return deserializeAws_restJson1EcsContainerOverride(entry, context);
|
|
1847
|
+
});
|
|
1848
|
+
return retVal;
|
|
1849
|
+
};
|
|
1850
|
+
const deserializeAws_restJson1EcsEnvironmentFile = (output, context) => {
|
|
1851
|
+
return {
|
|
1852
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1853
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
const deserializeAws_restJson1EcsEnvironmentFileList = (output, context) => {
|
|
1857
|
+
const retVal = (output || [])
|
|
1858
|
+
.filter((e) => e != null)
|
|
1859
|
+
.map((entry) => {
|
|
1860
|
+
if (entry === null) {
|
|
1861
|
+
return null;
|
|
1862
|
+
}
|
|
1863
|
+
return deserializeAws_restJson1EcsEnvironmentFile(entry, context);
|
|
1864
|
+
});
|
|
1865
|
+
return retVal;
|
|
1866
|
+
};
|
|
1867
|
+
const deserializeAws_restJson1EcsEnvironmentVariable = (output, context) => {
|
|
1868
|
+
return {
|
|
1869
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1870
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
const deserializeAws_restJson1EcsEnvironmentVariableList = (output, context) => {
|
|
1874
|
+
const retVal = (output || [])
|
|
1875
|
+
.filter((e) => e != null)
|
|
1876
|
+
.map((entry) => {
|
|
1877
|
+
if (entry === null) {
|
|
1878
|
+
return null;
|
|
1879
|
+
}
|
|
1880
|
+
return deserializeAws_restJson1EcsEnvironmentVariable(entry, context);
|
|
1881
|
+
});
|
|
1882
|
+
return retVal;
|
|
1883
|
+
};
|
|
1884
|
+
const deserializeAws_restJson1EcsEphemeralStorage = (output, context) => {
|
|
1885
|
+
return {
|
|
1886
|
+
sizeInGiB: (0, smithy_client_1.expectInt32)(output.sizeInGiB),
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
const deserializeAws_restJson1EcsInferenceAcceleratorOverride = (output, context) => {
|
|
1890
|
+
return {
|
|
1891
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
1892
|
+
deviceType: (0, smithy_client_1.expectString)(output.deviceType),
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
const deserializeAws_restJson1EcsInferenceAcceleratorOverrideList = (output, context) => {
|
|
1896
|
+
const retVal = (output || [])
|
|
1897
|
+
.filter((e) => e != null)
|
|
1898
|
+
.map((entry) => {
|
|
1899
|
+
if (entry === null) {
|
|
1900
|
+
return null;
|
|
1901
|
+
}
|
|
1902
|
+
return deserializeAws_restJson1EcsInferenceAcceleratorOverride(entry, context);
|
|
1903
|
+
});
|
|
1904
|
+
return retVal;
|
|
1905
|
+
};
|
|
1906
|
+
const deserializeAws_restJson1EcsResourceRequirement = (output, context) => {
|
|
1907
|
+
return {
|
|
1908
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1909
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
const deserializeAws_restJson1EcsResourceRequirementsList = (output, context) => {
|
|
1913
|
+
const retVal = (output || [])
|
|
1914
|
+
.filter((e) => e != null)
|
|
1915
|
+
.map((entry) => {
|
|
1916
|
+
if (entry === null) {
|
|
1917
|
+
return null;
|
|
1918
|
+
}
|
|
1919
|
+
return deserializeAws_restJson1EcsResourceRequirement(entry, context);
|
|
1920
|
+
});
|
|
1921
|
+
return retVal;
|
|
1922
|
+
};
|
|
1923
|
+
const deserializeAws_restJson1EcsTaskOverride = (output, context) => {
|
|
1924
|
+
return {
|
|
1925
|
+
ContainerOverrides: output.ContainerOverrides != null
|
|
1926
|
+
? deserializeAws_restJson1EcsContainerOverrideList(output.ContainerOverrides, context)
|
|
1927
|
+
: undefined,
|
|
1928
|
+
Cpu: (0, smithy_client_1.expectString)(output.Cpu),
|
|
1929
|
+
EphemeralStorage: output.EphemeralStorage != null
|
|
1930
|
+
? deserializeAws_restJson1EcsEphemeralStorage(output.EphemeralStorage, context)
|
|
1931
|
+
: undefined,
|
|
1932
|
+
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1933
|
+
InferenceAcceleratorOverrides: output.InferenceAcceleratorOverrides != null
|
|
1934
|
+
? deserializeAws_restJson1EcsInferenceAcceleratorOverrideList(output.InferenceAcceleratorOverrides, context)
|
|
1935
|
+
: undefined,
|
|
1936
|
+
Memory: (0, smithy_client_1.expectString)(output.Memory),
|
|
1937
|
+
TaskRoleArn: (0, smithy_client_1.expectString)(output.TaskRoleArn),
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1940
|
+
const deserializeAws_restJson1EventBridgeEventResourceList = (output, context) => {
|
|
1941
|
+
const retVal = (output || [])
|
|
1942
|
+
.filter((e) => e != null)
|
|
1943
|
+
.map((entry) => {
|
|
1944
|
+
if (entry === null) {
|
|
1945
|
+
return null;
|
|
1946
|
+
}
|
|
1947
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1948
|
+
});
|
|
1949
|
+
return retVal;
|
|
1950
|
+
};
|
|
1951
|
+
const deserializeAws_restJson1Filter = (output, context) => {
|
|
1952
|
+
return {
|
|
1953
|
+
Pattern: (0, smithy_client_1.expectString)(output.Pattern),
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
const deserializeAws_restJson1FilterCriteria = (output, context) => {
|
|
1957
|
+
return {
|
|
1958
|
+
Filters: output.Filters != null ? deserializeAws_restJson1FilterList(output.Filters, context) : undefined,
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
const deserializeAws_restJson1FilterList = (output, context) => {
|
|
1962
|
+
const retVal = (output || [])
|
|
1963
|
+
.filter((e) => e != null)
|
|
1964
|
+
.map((entry) => {
|
|
1965
|
+
if (entry === null) {
|
|
1966
|
+
return null;
|
|
1967
|
+
}
|
|
1968
|
+
return deserializeAws_restJson1Filter(entry, context);
|
|
1969
|
+
});
|
|
1970
|
+
return retVal;
|
|
1971
|
+
};
|
|
1972
|
+
const deserializeAws_restJson1HeaderParametersMap = (output, context) => {
|
|
1973
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1974
|
+
if (value === null) {
|
|
1975
|
+
return acc;
|
|
1976
|
+
}
|
|
1977
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1978
|
+
return acc;
|
|
1979
|
+
}, {});
|
|
1980
|
+
};
|
|
1981
|
+
const deserializeAws_restJson1KafkaBootstrapServers = (output, context) => {
|
|
1982
|
+
const retVal = (output || [])
|
|
1983
|
+
.filter((e) => e != null)
|
|
1984
|
+
.map((entry) => {
|
|
1985
|
+
if (entry === null) {
|
|
1986
|
+
return null;
|
|
1987
|
+
}
|
|
1988
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1989
|
+
});
|
|
1990
|
+
return retVal;
|
|
1991
|
+
};
|
|
1992
|
+
const deserializeAws_restJson1MQBrokerAccessCredentials = (output, context) => {
|
|
1993
|
+
if ((0, smithy_client_1.expectString)(output.BasicAuth) !== undefined) {
|
|
1994
|
+
return { BasicAuth: (0, smithy_client_1.expectString)(output.BasicAuth) };
|
|
1995
|
+
}
|
|
1996
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1997
|
+
};
|
|
1998
|
+
const deserializeAws_restJson1MSKAccessCredentials = (output, context) => {
|
|
1999
|
+
if ((0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) !== undefined) {
|
|
2000
|
+
return { ClientCertificateTlsAuth: (0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) };
|
|
2001
|
+
}
|
|
2002
|
+
if ((0, smithy_client_1.expectString)(output.SaslScram512Auth) !== undefined) {
|
|
2003
|
+
return { SaslScram512Auth: (0, smithy_client_1.expectString)(output.SaslScram512Auth) };
|
|
2004
|
+
}
|
|
2005
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2006
|
+
};
|
|
2007
|
+
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
2008
|
+
return {
|
|
2009
|
+
awsvpcConfiguration: output.awsvpcConfiguration != null
|
|
2010
|
+
? deserializeAws_restJson1AwsVpcConfiguration(output.awsvpcConfiguration, context)
|
|
2011
|
+
: undefined,
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
const deserializeAws_restJson1PathParameterList = (output, context) => {
|
|
2015
|
+
const retVal = (output || [])
|
|
2016
|
+
.filter((e) => e != null)
|
|
2017
|
+
.map((entry) => {
|
|
2018
|
+
if (entry === null) {
|
|
2019
|
+
return null;
|
|
2020
|
+
}
|
|
2021
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2022
|
+
});
|
|
2023
|
+
return retVal;
|
|
2024
|
+
};
|
|
2025
|
+
const deserializeAws_restJson1Pipe = (output, context) => {
|
|
2026
|
+
return {
|
|
2027
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2028
|
+
CreationTime: output.CreationTime != null
|
|
2029
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2030
|
+
: undefined,
|
|
2031
|
+
CurrentState: (0, smithy_client_1.expectString)(output.CurrentState),
|
|
2032
|
+
DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
|
|
2033
|
+
Enrichment: (0, smithy_client_1.expectString)(output.Enrichment),
|
|
2034
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
2035
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
2036
|
+
: undefined,
|
|
2037
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2038
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2039
|
+
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
2040
|
+
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
2043
|
+
const deserializeAws_restJson1PipeEnrichmentHttpParameters = (output, context) => {
|
|
2044
|
+
return {
|
|
2045
|
+
HeaderParameters: output.HeaderParameters != null
|
|
2046
|
+
? deserializeAws_restJson1HeaderParametersMap(output.HeaderParameters, context)
|
|
2047
|
+
: undefined,
|
|
2048
|
+
PathParameterValues: output.PathParameterValues != null
|
|
2049
|
+
? deserializeAws_restJson1PathParameterList(output.PathParameterValues, context)
|
|
2050
|
+
: undefined,
|
|
2051
|
+
QueryStringParameters: output.QueryStringParameters != null
|
|
2052
|
+
? deserializeAws_restJson1QueryStringParametersMap(output.QueryStringParameters, context)
|
|
2053
|
+
: undefined,
|
|
2054
|
+
};
|
|
2055
|
+
};
|
|
2056
|
+
const deserializeAws_restJson1PipeEnrichmentParameters = (output, context) => {
|
|
2057
|
+
return {
|
|
2058
|
+
HttpParameters: output.HttpParameters != null
|
|
2059
|
+
? deserializeAws_restJson1PipeEnrichmentHttpParameters(output.HttpParameters, context)
|
|
2060
|
+
: undefined,
|
|
2061
|
+
InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
|
|
2062
|
+
};
|
|
2063
|
+
};
|
|
2064
|
+
const deserializeAws_restJson1PipeList = (output, context) => {
|
|
2065
|
+
const retVal = (output || [])
|
|
2066
|
+
.filter((e) => e != null)
|
|
2067
|
+
.map((entry) => {
|
|
2068
|
+
if (entry === null) {
|
|
2069
|
+
return null;
|
|
2070
|
+
}
|
|
2071
|
+
return deserializeAws_restJson1Pipe(entry, context);
|
|
2072
|
+
});
|
|
2073
|
+
return retVal;
|
|
2074
|
+
};
|
|
2075
|
+
const deserializeAws_restJson1PipeSourceActiveMQBrokerParameters = (output, context) => {
|
|
2076
|
+
return {
|
|
2077
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2078
|
+
Credentials: output.Credentials != null
|
|
2079
|
+
? deserializeAws_restJson1MQBrokerAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context)
|
|
2080
|
+
: undefined,
|
|
2081
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2082
|
+
QueueName: (0, smithy_client_1.expectString)(output.QueueName),
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
const deserializeAws_restJson1PipeSourceDynamoDBStreamParameters = (output, context) => {
|
|
2086
|
+
return {
|
|
2087
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2088
|
+
DeadLetterConfig: output.DeadLetterConfig != null
|
|
2089
|
+
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
2090
|
+
: undefined,
|
|
2091
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2092
|
+
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
2093
|
+
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
2094
|
+
OnPartialBatchItemFailure: (0, smithy_client_1.expectString)(output.OnPartialBatchItemFailure),
|
|
2095
|
+
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
2096
|
+
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
const deserializeAws_restJson1PipeSourceKinesisStreamParameters = (output, context) => {
|
|
2100
|
+
return {
|
|
2101
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2102
|
+
DeadLetterConfig: output.DeadLetterConfig != null
|
|
2103
|
+
? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
|
|
2104
|
+
: undefined,
|
|
2105
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2106
|
+
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
2107
|
+
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
2108
|
+
OnPartialBatchItemFailure: (0, smithy_client_1.expectString)(output.OnPartialBatchItemFailure),
|
|
2109
|
+
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
2110
|
+
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2111
|
+
StartingPositionTimestamp: output.StartingPositionTimestamp != null
|
|
2112
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartingPositionTimestamp)))
|
|
2113
|
+
: undefined,
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
const deserializeAws_restJson1PipeSourceManagedStreamingKafkaParameters = (output, context) => {
|
|
2117
|
+
return {
|
|
2118
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2119
|
+
ConsumerGroupID: (0, smithy_client_1.expectString)(output.ConsumerGroupID),
|
|
2120
|
+
Credentials: output.Credentials != null
|
|
2121
|
+
? deserializeAws_restJson1MSKAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context)
|
|
2122
|
+
: undefined,
|
|
2123
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2124
|
+
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2125
|
+
TopicName: (0, smithy_client_1.expectString)(output.TopicName),
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
const deserializeAws_restJson1PipeSourceParameters = (output, context) => {
|
|
2129
|
+
return {
|
|
2130
|
+
ActiveMQBrokerParameters: output.ActiveMQBrokerParameters != null
|
|
2131
|
+
? deserializeAws_restJson1PipeSourceActiveMQBrokerParameters(output.ActiveMQBrokerParameters, context)
|
|
2132
|
+
: undefined,
|
|
2133
|
+
DynamoDBStreamParameters: output.DynamoDBStreamParameters != null
|
|
2134
|
+
? deserializeAws_restJson1PipeSourceDynamoDBStreamParameters(output.DynamoDBStreamParameters, context)
|
|
2135
|
+
: undefined,
|
|
2136
|
+
FilterCriteria: output.FilterCriteria != null
|
|
2137
|
+
? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
|
|
2138
|
+
: undefined,
|
|
2139
|
+
KinesisStreamParameters: output.KinesisStreamParameters != null
|
|
2140
|
+
? deserializeAws_restJson1PipeSourceKinesisStreamParameters(output.KinesisStreamParameters, context)
|
|
2141
|
+
: undefined,
|
|
2142
|
+
ManagedStreamingKafkaParameters: output.ManagedStreamingKafkaParameters != null
|
|
2143
|
+
? deserializeAws_restJson1PipeSourceManagedStreamingKafkaParameters(output.ManagedStreamingKafkaParameters, context)
|
|
2144
|
+
: undefined,
|
|
2145
|
+
RabbitMQBrokerParameters: output.RabbitMQBrokerParameters != null
|
|
2146
|
+
? deserializeAws_restJson1PipeSourceRabbitMQBrokerParameters(output.RabbitMQBrokerParameters, context)
|
|
2147
|
+
: undefined,
|
|
2148
|
+
SelfManagedKafkaParameters: output.SelfManagedKafkaParameters != null
|
|
2149
|
+
? deserializeAws_restJson1PipeSourceSelfManagedKafkaParameters(output.SelfManagedKafkaParameters, context)
|
|
2150
|
+
: undefined,
|
|
2151
|
+
SqsQueueParameters: output.SqsQueueParameters != null
|
|
2152
|
+
? deserializeAws_restJson1PipeSourceSqsQueueParameters(output.SqsQueueParameters, context)
|
|
2153
|
+
: undefined,
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2156
|
+
const deserializeAws_restJson1PipeSourceRabbitMQBrokerParameters = (output, context) => {
|
|
2157
|
+
return {
|
|
2158
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2159
|
+
Credentials: output.Credentials != null
|
|
2160
|
+
? deserializeAws_restJson1MQBrokerAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context)
|
|
2161
|
+
: undefined,
|
|
2162
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2163
|
+
QueueName: (0, smithy_client_1.expectString)(output.QueueName),
|
|
2164
|
+
VirtualHost: (0, smithy_client_1.expectString)(output.VirtualHost),
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
const deserializeAws_restJson1PipeSourceSelfManagedKafkaParameters = (output, context) => {
|
|
2168
|
+
return {
|
|
2169
|
+
AdditionalBootstrapServers: output.AdditionalBootstrapServers != null
|
|
2170
|
+
? deserializeAws_restJson1KafkaBootstrapServers(output.AdditionalBootstrapServers, context)
|
|
2171
|
+
: undefined,
|
|
2172
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2173
|
+
ConsumerGroupID: (0, smithy_client_1.expectString)(output.ConsumerGroupID),
|
|
2174
|
+
Credentials: output.Credentials != null
|
|
2175
|
+
? deserializeAws_restJson1SelfManagedKafkaAccessConfigurationCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context)
|
|
2176
|
+
: undefined,
|
|
2177
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2178
|
+
ServerRootCaCertificate: (0, smithy_client_1.expectString)(output.ServerRootCaCertificate),
|
|
2179
|
+
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2180
|
+
TopicName: (0, smithy_client_1.expectString)(output.TopicName),
|
|
2181
|
+
Vpc: output.Vpc != null
|
|
2182
|
+
? deserializeAws_restJson1SelfManagedKafkaAccessConfigurationVpc(output.Vpc, context)
|
|
2183
|
+
: undefined,
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
const deserializeAws_restJson1PipeSourceSqsQueueParameters = (output, context) => {
|
|
2187
|
+
return {
|
|
2188
|
+
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2189
|
+
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2190
|
+
};
|
|
2191
|
+
};
|
|
2192
|
+
const deserializeAws_restJson1PipeTargetBatchJobParameters = (output, context) => {
|
|
2193
|
+
return {
|
|
2194
|
+
ArrayProperties: output.ArrayProperties != null
|
|
2195
|
+
? deserializeAws_restJson1BatchArrayProperties(output.ArrayProperties, context)
|
|
2196
|
+
: undefined,
|
|
2197
|
+
ContainerOverrides: output.ContainerOverrides != null
|
|
2198
|
+
? deserializeAws_restJson1BatchContainerOverrides(output.ContainerOverrides, context)
|
|
2199
|
+
: undefined,
|
|
2200
|
+
DependsOn: output.DependsOn != null ? deserializeAws_restJson1BatchDependsOn(output.DependsOn, context) : undefined,
|
|
2201
|
+
JobDefinition: (0, smithy_client_1.expectString)(output.JobDefinition),
|
|
2202
|
+
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
2203
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1BatchParametersMap(output.Parameters, context) : undefined,
|
|
2204
|
+
RetryStrategy: output.RetryStrategy != null
|
|
2205
|
+
? deserializeAws_restJson1BatchRetryStrategy(output.RetryStrategy, context)
|
|
2206
|
+
: undefined,
|
|
2207
|
+
};
|
|
2208
|
+
};
|
|
2209
|
+
const deserializeAws_restJson1PipeTargetCloudWatchLogsParameters = (output, context) => {
|
|
2210
|
+
return {
|
|
2211
|
+
LogStreamName: (0, smithy_client_1.expectString)(output.LogStreamName),
|
|
2212
|
+
Timestamp: (0, smithy_client_1.expectString)(output.Timestamp),
|
|
2213
|
+
};
|
|
2214
|
+
};
|
|
2215
|
+
const deserializeAws_restJson1PipeTargetEcsTaskParameters = (output, context) => {
|
|
2216
|
+
return {
|
|
2217
|
+
CapacityProviderStrategy: output.CapacityProviderStrategy != null
|
|
2218
|
+
? deserializeAws_restJson1CapacityProviderStrategy(output.CapacityProviderStrategy, context)
|
|
2219
|
+
: undefined,
|
|
2220
|
+
EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
|
|
2221
|
+
EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
|
|
2222
|
+
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
2223
|
+
LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
|
|
2224
|
+
NetworkConfiguration: output.NetworkConfiguration != null
|
|
2225
|
+
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2226
|
+
: undefined,
|
|
2227
|
+
Overrides: output.Overrides != null ? deserializeAws_restJson1EcsTaskOverride(output.Overrides, context) : undefined,
|
|
2228
|
+
PlacementConstraints: output.PlacementConstraints != null
|
|
2229
|
+
? deserializeAws_restJson1PlacementConstraints(output.PlacementConstraints, context)
|
|
2230
|
+
: undefined,
|
|
2231
|
+
PlacementStrategy: output.PlacementStrategy != null
|
|
2232
|
+
? deserializeAws_restJson1PlacementStrategies(output.PlacementStrategy, context)
|
|
2233
|
+
: undefined,
|
|
2234
|
+
PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
|
|
2235
|
+
PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
|
|
2236
|
+
ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
|
|
2237
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagList(output.Tags, context) : undefined,
|
|
2238
|
+
TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
|
|
2239
|
+
TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
const deserializeAws_restJson1PipeTargetEventBridgeEventBusParameters = (output, context) => {
|
|
2243
|
+
return {
|
|
2244
|
+
DetailType: (0, smithy_client_1.expectString)(output.DetailType),
|
|
2245
|
+
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2246
|
+
Resources: output.Resources != null
|
|
2247
|
+
? deserializeAws_restJson1EventBridgeEventResourceList(output.Resources, context)
|
|
2248
|
+
: undefined,
|
|
2249
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2250
|
+
Time: (0, smithy_client_1.expectString)(output.Time),
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
const deserializeAws_restJson1PipeTargetHttpParameters = (output, context) => {
|
|
2254
|
+
return {
|
|
2255
|
+
HeaderParameters: output.HeaderParameters != null
|
|
2256
|
+
? deserializeAws_restJson1HeaderParametersMap(output.HeaderParameters, context)
|
|
2257
|
+
: undefined,
|
|
2258
|
+
PathParameterValues: output.PathParameterValues != null
|
|
2259
|
+
? deserializeAws_restJson1PathParameterList(output.PathParameterValues, context)
|
|
2260
|
+
: undefined,
|
|
2261
|
+
QueryStringParameters: output.QueryStringParameters != null
|
|
2262
|
+
? deserializeAws_restJson1QueryStringParametersMap(output.QueryStringParameters, context)
|
|
2263
|
+
: undefined,
|
|
2264
|
+
};
|
|
2265
|
+
};
|
|
2266
|
+
const deserializeAws_restJson1PipeTargetKinesisStreamParameters = (output, context) => {
|
|
2267
|
+
return {
|
|
2268
|
+
PartitionKey: (0, smithy_client_1.expectString)(output.PartitionKey),
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
const deserializeAws_restJson1PipeTargetLambdaFunctionParameters = (output, context) => {
|
|
2272
|
+
return {
|
|
2273
|
+
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
const deserializeAws_restJson1PipeTargetParameters = (output, context) => {
|
|
2277
|
+
return {
|
|
2278
|
+
BatchJobParameters: output.BatchJobParameters != null
|
|
2279
|
+
? deserializeAws_restJson1PipeTargetBatchJobParameters(output.BatchJobParameters, context)
|
|
2280
|
+
: undefined,
|
|
2281
|
+
CloudWatchLogsParameters: output.CloudWatchLogsParameters != null
|
|
2282
|
+
? deserializeAws_restJson1PipeTargetCloudWatchLogsParameters(output.CloudWatchLogsParameters, context)
|
|
2283
|
+
: undefined,
|
|
2284
|
+
EcsTaskParameters: output.EcsTaskParameters != null
|
|
2285
|
+
? deserializeAws_restJson1PipeTargetEcsTaskParameters(output.EcsTaskParameters, context)
|
|
2286
|
+
: undefined,
|
|
2287
|
+
EventBridgeEventBusParameters: output.EventBridgeEventBusParameters != null
|
|
2288
|
+
? deserializeAws_restJson1PipeTargetEventBridgeEventBusParameters(output.EventBridgeEventBusParameters, context)
|
|
2289
|
+
: undefined,
|
|
2290
|
+
HttpParameters: output.HttpParameters != null
|
|
2291
|
+
? deserializeAws_restJson1PipeTargetHttpParameters(output.HttpParameters, context)
|
|
2292
|
+
: undefined,
|
|
2293
|
+
InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
|
|
2294
|
+
KinesisStreamParameters: output.KinesisStreamParameters != null
|
|
2295
|
+
? deserializeAws_restJson1PipeTargetKinesisStreamParameters(output.KinesisStreamParameters, context)
|
|
2296
|
+
: undefined,
|
|
2297
|
+
LambdaFunctionParameters: output.LambdaFunctionParameters != null
|
|
2298
|
+
? deserializeAws_restJson1PipeTargetLambdaFunctionParameters(output.LambdaFunctionParameters, context)
|
|
2299
|
+
: undefined,
|
|
2300
|
+
RedshiftDataParameters: output.RedshiftDataParameters != null
|
|
2301
|
+
? deserializeAws_restJson1PipeTargetRedshiftDataParameters(output.RedshiftDataParameters, context)
|
|
2302
|
+
: undefined,
|
|
2303
|
+
SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
|
|
2304
|
+
? deserializeAws_restJson1PipeTargetSageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
|
|
2305
|
+
: undefined,
|
|
2306
|
+
SqsQueueParameters: output.SqsQueueParameters != null
|
|
2307
|
+
? deserializeAws_restJson1PipeTargetSqsQueueParameters(output.SqsQueueParameters, context)
|
|
2308
|
+
: undefined,
|
|
2309
|
+
StepFunctionStateMachineParameters: output.StepFunctionStateMachineParameters != null
|
|
2310
|
+
? deserializeAws_restJson1PipeTargetStateMachineParameters(output.StepFunctionStateMachineParameters, context)
|
|
2311
|
+
: undefined,
|
|
2312
|
+
};
|
|
2313
|
+
};
|
|
2314
|
+
const deserializeAws_restJson1PipeTargetRedshiftDataParameters = (output, context) => {
|
|
2315
|
+
return {
|
|
2316
|
+
Database: (0, smithy_client_1.expectString)(output.Database),
|
|
2317
|
+
DbUser: (0, smithy_client_1.expectString)(output.DbUser),
|
|
2318
|
+
SecretManagerArn: (0, smithy_client_1.expectString)(output.SecretManagerArn),
|
|
2319
|
+
Sqls: output.Sqls != null ? deserializeAws_restJson1Sqls(output.Sqls, context) : undefined,
|
|
2320
|
+
StatementName: (0, smithy_client_1.expectString)(output.StatementName),
|
|
2321
|
+
WithEvent: (0, smithy_client_1.expectBoolean)(output.WithEvent),
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
const deserializeAws_restJson1PipeTargetSageMakerPipelineParameters = (output, context) => {
|
|
2325
|
+
return {
|
|
2326
|
+
PipelineParameterList: output.PipelineParameterList != null
|
|
2327
|
+
? deserializeAws_restJson1SageMakerPipelineParameterList(output.PipelineParameterList, context)
|
|
2328
|
+
: undefined,
|
|
2329
|
+
};
|
|
2330
|
+
};
|
|
2331
|
+
const deserializeAws_restJson1PipeTargetSqsQueueParameters = (output, context) => {
|
|
2332
|
+
return {
|
|
2333
|
+
MessageDeduplicationId: (0, smithy_client_1.expectString)(output.MessageDeduplicationId),
|
|
2334
|
+
MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
const deserializeAws_restJson1PipeTargetStateMachineParameters = (output, context) => {
|
|
2338
|
+
return {
|
|
2339
|
+
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
2340
|
+
};
|
|
2341
|
+
};
|
|
2342
|
+
const deserializeAws_restJson1PlacementConstraint = (output, context) => {
|
|
2343
|
+
return {
|
|
2344
|
+
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
2345
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
const deserializeAws_restJson1PlacementConstraints = (output, context) => {
|
|
2349
|
+
const retVal = (output || [])
|
|
2350
|
+
.filter((e) => e != null)
|
|
2351
|
+
.map((entry) => {
|
|
2352
|
+
if (entry === null) {
|
|
2353
|
+
return null;
|
|
2354
|
+
}
|
|
2355
|
+
return deserializeAws_restJson1PlacementConstraint(entry, context);
|
|
2356
|
+
});
|
|
2357
|
+
return retVal;
|
|
2358
|
+
};
|
|
2359
|
+
const deserializeAws_restJson1PlacementStrategies = (output, context) => {
|
|
2360
|
+
const retVal = (output || [])
|
|
2361
|
+
.filter((e) => e != null)
|
|
2362
|
+
.map((entry) => {
|
|
2363
|
+
if (entry === null) {
|
|
2364
|
+
return null;
|
|
2365
|
+
}
|
|
2366
|
+
return deserializeAws_restJson1PlacementStrategy(entry, context);
|
|
2367
|
+
});
|
|
2368
|
+
return retVal;
|
|
2369
|
+
};
|
|
2370
|
+
const deserializeAws_restJson1PlacementStrategy = (output, context) => {
|
|
2371
|
+
return {
|
|
2372
|
+
field: (0, smithy_client_1.expectString)(output.field),
|
|
2373
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
const deserializeAws_restJson1QueryStringParametersMap = (output, context) => {
|
|
2377
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2378
|
+
if (value === null) {
|
|
2379
|
+
return acc;
|
|
2380
|
+
}
|
|
2381
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2382
|
+
return acc;
|
|
2383
|
+
}, {});
|
|
2384
|
+
};
|
|
2385
|
+
const deserializeAws_restJson1SageMakerPipelineParameter = (output, context) => {
|
|
2386
|
+
return {
|
|
2387
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2388
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
const deserializeAws_restJson1SageMakerPipelineParameterList = (output, context) => {
|
|
2392
|
+
const retVal = (output || [])
|
|
2393
|
+
.filter((e) => e != null)
|
|
2394
|
+
.map((entry) => {
|
|
2395
|
+
if (entry === null) {
|
|
2396
|
+
return null;
|
|
2397
|
+
}
|
|
2398
|
+
return deserializeAws_restJson1SageMakerPipelineParameter(entry, context);
|
|
2399
|
+
});
|
|
2400
|
+
return retVal;
|
|
2401
|
+
};
|
|
2402
|
+
const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
2403
|
+
const retVal = (output || [])
|
|
2404
|
+
.filter((e) => e != null)
|
|
2405
|
+
.map((entry) => {
|
|
2406
|
+
if (entry === null) {
|
|
2407
|
+
return null;
|
|
2408
|
+
}
|
|
2409
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2410
|
+
});
|
|
2411
|
+
return retVal;
|
|
2412
|
+
};
|
|
2413
|
+
const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
2414
|
+
const retVal = (output || [])
|
|
2415
|
+
.filter((e) => e != null)
|
|
2416
|
+
.map((entry) => {
|
|
2417
|
+
if (entry === null) {
|
|
2418
|
+
return null;
|
|
2419
|
+
}
|
|
2420
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2421
|
+
});
|
|
2422
|
+
return retVal;
|
|
2423
|
+
};
|
|
2424
|
+
const deserializeAws_restJson1SelfManagedKafkaAccessConfigurationCredentials = (output, context) => {
|
|
2425
|
+
if ((0, smithy_client_1.expectString)(output.BasicAuth) !== undefined) {
|
|
2426
|
+
return { BasicAuth: (0, smithy_client_1.expectString)(output.BasicAuth) };
|
|
2427
|
+
}
|
|
2428
|
+
if ((0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) !== undefined) {
|
|
2429
|
+
return { ClientCertificateTlsAuth: (0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) };
|
|
2430
|
+
}
|
|
2431
|
+
if ((0, smithy_client_1.expectString)(output.SaslScram256Auth) !== undefined) {
|
|
2432
|
+
return { SaslScram256Auth: (0, smithy_client_1.expectString)(output.SaslScram256Auth) };
|
|
2433
|
+
}
|
|
2434
|
+
if ((0, smithy_client_1.expectString)(output.SaslScram512Auth) !== undefined) {
|
|
2435
|
+
return { SaslScram512Auth: (0, smithy_client_1.expectString)(output.SaslScram512Auth) };
|
|
2436
|
+
}
|
|
2437
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2438
|
+
};
|
|
2439
|
+
const deserializeAws_restJson1SelfManagedKafkaAccessConfigurationVpc = (output, context) => {
|
|
2440
|
+
return {
|
|
2441
|
+
SecurityGroup: output.SecurityGroup != null
|
|
2442
|
+
? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroup, context)
|
|
2443
|
+
: undefined,
|
|
2444
|
+
Subnets: output.Subnets != null ? deserializeAws_restJson1SubnetIds(output.Subnets, context) : undefined,
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
const deserializeAws_restJson1Sqls = (output, context) => {
|
|
2448
|
+
const retVal = (output || [])
|
|
2449
|
+
.filter((e) => e != null)
|
|
2450
|
+
.map((entry) => {
|
|
2451
|
+
if (entry === null) {
|
|
2452
|
+
return null;
|
|
2453
|
+
}
|
|
2454
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2455
|
+
});
|
|
2456
|
+
return retVal;
|
|
2457
|
+
};
|
|
2458
|
+
const deserializeAws_restJson1StringList = (output, context) => {
|
|
2459
|
+
const retVal = (output || [])
|
|
2460
|
+
.filter((e) => e != null)
|
|
2461
|
+
.map((entry) => {
|
|
2462
|
+
if (entry === null) {
|
|
2463
|
+
return null;
|
|
2464
|
+
}
|
|
2465
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2466
|
+
});
|
|
2467
|
+
return retVal;
|
|
2468
|
+
};
|
|
2469
|
+
const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
2470
|
+
const retVal = (output || [])
|
|
2471
|
+
.filter((e) => e != null)
|
|
2472
|
+
.map((entry) => {
|
|
2473
|
+
if (entry === null) {
|
|
2474
|
+
return null;
|
|
2475
|
+
}
|
|
2476
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2477
|
+
});
|
|
2478
|
+
return retVal;
|
|
2479
|
+
};
|
|
2480
|
+
const deserializeAws_restJson1Subnets = (output, context) => {
|
|
2481
|
+
const retVal = (output || [])
|
|
2482
|
+
.filter((e) => e != null)
|
|
2483
|
+
.map((entry) => {
|
|
2484
|
+
if (entry === null) {
|
|
2485
|
+
return null;
|
|
2486
|
+
}
|
|
2487
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2488
|
+
});
|
|
2489
|
+
return retVal;
|
|
2490
|
+
};
|
|
2491
|
+
const deserializeAws_restJson1Tag = (output, context) => {
|
|
2492
|
+
return {
|
|
2493
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2494
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2495
|
+
};
|
|
2496
|
+
};
|
|
2497
|
+
const deserializeAws_restJson1TagList = (output, context) => {
|
|
2498
|
+
const retVal = (output || [])
|
|
2499
|
+
.filter((e) => e != null)
|
|
2500
|
+
.map((entry) => {
|
|
2501
|
+
if (entry === null) {
|
|
2502
|
+
return null;
|
|
2503
|
+
}
|
|
2504
|
+
return deserializeAws_restJson1Tag(entry, context);
|
|
2505
|
+
});
|
|
2506
|
+
return retVal;
|
|
2507
|
+
};
|
|
2508
|
+
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
2509
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2510
|
+
if (value === null) {
|
|
2511
|
+
return acc;
|
|
2512
|
+
}
|
|
2513
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2514
|
+
return acc;
|
|
2515
|
+
}, {});
|
|
2516
|
+
};
|
|
2517
|
+
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
2518
|
+
return {
|
|
2519
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2520
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2521
|
+
};
|
|
2522
|
+
};
|
|
2523
|
+
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
2524
|
+
const retVal = (output || [])
|
|
2525
|
+
.filter((e) => e != null)
|
|
2526
|
+
.map((entry) => {
|
|
2527
|
+
if (entry === null) {
|
|
2528
|
+
return null;
|
|
2529
|
+
}
|
|
2530
|
+
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
2531
|
+
});
|
|
2532
|
+
return retVal;
|
|
2533
|
+
};
|
|
2534
|
+
const deserializeMetadata = (output) => ({
|
|
2535
|
+
httpStatusCode: output.statusCode,
|
|
2536
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2537
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2538
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2539
|
+
});
|
|
2540
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2541
|
+
if (streamBody instanceof Uint8Array) {
|
|
2542
|
+
return Promise.resolve(streamBody);
|
|
2543
|
+
}
|
|
2544
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2545
|
+
};
|
|
2546
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2547
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2548
|
+
value !== null &&
|
|
2549
|
+
value !== "" &&
|
|
2550
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2551
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2552
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2553
|
+
if (encoded.length) {
|
|
2554
|
+
return JSON.parse(encoded);
|
|
2555
|
+
}
|
|
2556
|
+
return {};
|
|
2557
|
+
});
|
|
2558
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2559
|
+
const value = await parseBody(errorBody, context);
|
|
2560
|
+
value.message = value.message ?? value.Message;
|
|
2561
|
+
return value;
|
|
2562
|
+
};
|
|
2563
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2564
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2565
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2566
|
+
let cleanValue = rawValue;
|
|
2567
|
+
if (typeof cleanValue === "number") {
|
|
2568
|
+
cleanValue = cleanValue.toString();
|
|
2569
|
+
}
|
|
2570
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2571
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2572
|
+
}
|
|
2573
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2574
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2575
|
+
}
|
|
2576
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2577
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2578
|
+
}
|
|
2579
|
+
return cleanValue;
|
|
2580
|
+
};
|
|
2581
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2582
|
+
if (headerKey !== undefined) {
|
|
2583
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2584
|
+
}
|
|
2585
|
+
if (data.code !== undefined) {
|
|
2586
|
+
return sanitizeErrorCode(data.code);
|
|
2587
|
+
}
|
|
2588
|
+
if (data["__type"] !== undefined) {
|
|
2589
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2590
|
+
}
|
|
2591
|
+
};
|