@aws-sdk/client-imagebuilder 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +559 -697
- package/dist-es/protocols/Aws_restJson1.js +419 -557
- package/package.json +26 -26
|
@@ -16,8 +16,7 @@ export var serializeAws_restJson1CancelImageCreationCommand = function (input, c
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CancelImageCreation";
|
|
19
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imageBuildVersionArn
|
|
20
|
-
input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })));
|
|
19
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -42,12 +41,9 @@ export var serializeAws_restJson1CreateComponentCommand = function (input, conte
|
|
|
42
41
|
"content-type": "application/json",
|
|
43
42
|
};
|
|
44
43
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateComponent";
|
|
45
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !==
|
|
46
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
|
|
47
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.supportedOsVersions !== undefined &&
|
|
48
|
-
input.supportedOsVersions !== null && {
|
|
44
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription != null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data != null && { data: input.data })), (input.description != null && { description: input.description })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.supportedOsVersions != null && {
|
|
49
45
|
supportedOsVersions: serializeAws_restJson1OsVersionList(input.supportedOsVersions, context),
|
|
50
|
-
})), (input.tags
|
|
46
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.uri != null && { uri: input.uri })));
|
|
51
47
|
return [2, new __HttpRequest({
|
|
52
48
|
protocol: protocol,
|
|
53
49
|
hostname: hostname,
|
|
@@ -72,22 +68,13 @@ export var serializeAws_restJson1CreateContainerRecipeCommand = function (input,
|
|
|
72
68
|
"content-type": "application/json",
|
|
73
69
|
};
|
|
74
70
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateContainerRecipe";
|
|
75
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.components
|
|
76
|
-
input.components !== null && {
|
|
71
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.components != null && {
|
|
77
72
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
78
|
-
})), (input.containerType
|
|
79
|
-
input.dockerfileTemplateData !== null && { dockerfileTemplateData: input.dockerfileTemplateData })), (input.dockerfileTemplateUri !== undefined &&
|
|
80
|
-
input.dockerfileTemplateUri !== null && { dockerfileTemplateUri: input.dockerfileTemplateUri })), (input.imageOsVersionOverride !== undefined &&
|
|
81
|
-
input.imageOsVersionOverride !== null && { imageOsVersionOverride: input.imageOsVersionOverride })), (input.instanceConfiguration !== undefined &&
|
|
82
|
-
input.instanceConfiguration !== null && {
|
|
73
|
+
})), (input.containerType != null && { containerType: input.containerType })), (input.description != null && { description: input.description })), (input.dockerfileTemplateData != null && { dockerfileTemplateData: input.dockerfileTemplateData })), (input.dockerfileTemplateUri != null && { dockerfileTemplateUri: input.dockerfileTemplateUri })), (input.imageOsVersionOverride != null && { imageOsVersionOverride: input.imageOsVersionOverride })), (input.instanceConfiguration != null && {
|
|
83
74
|
instanceConfiguration: serializeAws_restJson1InstanceConfiguration(input.instanceConfiguration, context),
|
|
84
|
-
})), (input.kmsKeyId
|
|
85
|
-
input.platformOverride !== null && { platformOverride: input.platformOverride })), (input.semanticVersion !== undefined &&
|
|
86
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.targetRepository !== undefined &&
|
|
87
|
-
input.targetRepository !== null && {
|
|
75
|
+
})), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.parentImage != null && { parentImage: input.parentImage })), (input.platformOverride != null && { platformOverride: input.platformOverride })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.targetRepository != null && {
|
|
88
76
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
89
|
-
})), (input.workingDirectory
|
|
90
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory })));
|
|
77
|
+
})), (input.workingDirectory != null && { workingDirectory: input.workingDirectory })));
|
|
91
78
|
return [2, new __HttpRequest({
|
|
92
79
|
protocol: protocol,
|
|
93
80
|
hostname: hostname,
|
|
@@ -112,10 +99,9 @@ export var serializeAws_restJson1CreateDistributionConfigurationCommand = functi
|
|
|
112
99
|
"content-type": "application/json",
|
|
113
100
|
};
|
|
114
101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateDistributionConfiguration";
|
|
115
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
116
|
-
input.distributions !== null && {
|
|
102
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.distributions != null && {
|
|
117
103
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
118
|
-
})), (input.name
|
|
104
|
+
})), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
119
105
|
return [2, new __HttpRequest({
|
|
120
106
|
protocol: protocol,
|
|
121
107
|
hostname: hostname,
|
|
@@ -140,21 +126,15 @@ export var serializeAws_restJson1CreateImageCommand = function (input, context)
|
|
|
140
126
|
"content-type": "application/json",
|
|
141
127
|
};
|
|
142
128
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImage";
|
|
143
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
144
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.distributionConfigurationArn !== undefined &&
|
|
145
|
-
input.distributionConfigurationArn !== null && {
|
|
129
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.distributionConfigurationArn != null && {
|
|
146
130
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
147
|
-
})), (input.enhancedImageMetadataEnabled
|
|
148
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
131
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
149
132
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
150
|
-
})), (input.imageRecipeArn
|
|
151
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
152
|
-
input.imageTestsConfiguration !== null && {
|
|
133
|
+
})), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
153
134
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
154
|
-
})), (input.infrastructureConfigurationArn
|
|
155
|
-
input.infrastructureConfigurationArn !== null && {
|
|
135
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
156
136
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
157
|
-
})), (input.tags
|
|
137
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
158
138
|
return [2, new __HttpRequest({
|
|
159
139
|
protocol: protocol,
|
|
160
140
|
hostname: hostname,
|
|
@@ -179,22 +159,15 @@ export var serializeAws_restJson1CreateImagePipelineCommand = function (input, c
|
|
|
179
159
|
"content-type": "application/json",
|
|
180
160
|
};
|
|
181
161
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImagePipeline";
|
|
182
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
183
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
|
|
184
|
-
input.distributionConfigurationArn !== null && {
|
|
162
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
185
163
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
186
|
-
})), (input.enhancedImageMetadataEnabled
|
|
187
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
164
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
188
165
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
189
|
-
})), (input.imageRecipeArn
|
|
190
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
191
|
-
input.imageTestsConfiguration !== null && {
|
|
166
|
+
})), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
192
167
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
193
|
-
})), (input.infrastructureConfigurationArn
|
|
194
|
-
input.infrastructureConfigurationArn !== null && {
|
|
168
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
195
169
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
196
|
-
})), (input.name
|
|
197
|
-
input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
170
|
+
})), (input.name != null && { name: input.name })), (input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status != null && { status: input.status })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
198
171
|
return [2, new __HttpRequest({
|
|
199
172
|
protocol: protocol,
|
|
200
173
|
hostname: hostname,
|
|
@@ -219,18 +192,13 @@ export var serializeAws_restJson1CreateImageRecipeCommand = function (input, con
|
|
|
219
192
|
"content-type": "application/json",
|
|
220
193
|
};
|
|
221
194
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImageRecipe";
|
|
222
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalInstanceConfiguration
|
|
223
|
-
input.additionalInstanceConfiguration !== null && {
|
|
195
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalInstanceConfiguration != null && {
|
|
224
196
|
additionalInstanceConfiguration: serializeAws_restJson1AdditionalInstanceConfiguration(input.additionalInstanceConfiguration, context),
|
|
225
|
-
})), (input.blockDeviceMappings
|
|
226
|
-
input.blockDeviceMappings !== null && {
|
|
197
|
+
})), (input.blockDeviceMappings != null && {
|
|
227
198
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
228
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.components
|
|
229
|
-
input.components !== null && {
|
|
199
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.components != null && {
|
|
230
200
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
231
|
-
})), (input.description
|
|
232
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workingDirectory !== undefined &&
|
|
233
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory })));
|
|
201
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.parentImage != null && { parentImage: input.parentImage })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workingDirectory != null && { workingDirectory: input.workingDirectory })));
|
|
234
202
|
return [2, new __HttpRequest({
|
|
235
203
|
protocol: protocol,
|
|
236
204
|
hostname: hostname,
|
|
@@ -255,22 +223,15 @@ export var serializeAws_restJson1CreateInfrastructureConfigurationCommand = func
|
|
|
255
223
|
"content-type": "application/json",
|
|
256
224
|
};
|
|
257
225
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateInfrastructureConfiguration";
|
|
258
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
259
|
-
input.instanceMetadataOptions !== null && {
|
|
226
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.instanceMetadataOptions != null && {
|
|
260
227
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
261
|
-
})), (input.instanceProfileName
|
|
262
|
-
input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes !== undefined &&
|
|
263
|
-
input.instanceTypes !== null && {
|
|
228
|
+
})), (input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes != null && {
|
|
264
229
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
265
|
-
})), (input.keyPair
|
|
266
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourceTags !== undefined &&
|
|
267
|
-
input.resourceTags !== null && {
|
|
230
|
+
})), (input.keyPair != null && { keyPair: input.keyPair })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name != null && { name: input.name })), (input.resourceTags != null && {
|
|
268
231
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
269
|
-
})), (input.securityGroupIds
|
|
270
|
-
input.securityGroupIds !== null && {
|
|
232
|
+
})), (input.securityGroupIds != null && {
|
|
271
233
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
272
|
-
})), (input.snsTopicArn
|
|
273
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
234
|
+
})), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn })), (input.subnetId != null && { subnetId: input.subnetId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
274
235
|
return [2, new __HttpRequest({
|
|
275
236
|
protocol: protocol,
|
|
276
237
|
hostname: hostname,
|
|
@@ -717,9 +678,7 @@ export var serializeAws_restJson1ImportComponentCommand = function (input, conte
|
|
|
717
678
|
"content-type": "application/json",
|
|
718
679
|
};
|
|
719
680
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportComponent";
|
|
720
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !==
|
|
721
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.format !== undefined && input.format !== null && { format: input.format })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
|
|
722
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.uri !== undefined && input.uri !== null && { uri: input.uri })));
|
|
681
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription != null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data != null && { data: input.data })), (input.description != null && { description: input.description })), (input.format != null && { format: input.format })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type != null && { type: input.type })), (input.uri != null && { uri: input.uri })));
|
|
723
682
|
return [2, new __HttpRequest({
|
|
724
683
|
protocol: protocol,
|
|
725
684
|
hostname: hostname,
|
|
@@ -744,9 +703,7 @@ export var serializeAws_restJson1ImportVmImageCommand = function (input, context
|
|
|
744
703
|
"content-type": "application/json",
|
|
745
704
|
};
|
|
746
705
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportVmImage";
|
|
747
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
748
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId !== undefined &&
|
|
749
|
-
input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId })));
|
|
706
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.osVersion != null && { osVersion: input.osVersion })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId != null && { vmImportTaskId: input.vmImportTaskId })));
|
|
750
707
|
return [2, new __HttpRequest({
|
|
751
708
|
protocol: protocol,
|
|
752
709
|
hostname: hostname,
|
|
@@ -770,8 +727,7 @@ export var serializeAws_restJson1ListComponentBuildVersionsCommand = function (i
|
|
|
770
727
|
"content-type": "application/json",
|
|
771
728
|
};
|
|
772
729
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponentBuildVersions";
|
|
773
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.componentVersionArn
|
|
774
|
-
input.componentVersionArn !== null && { componentVersionArn: input.componentVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
730
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.componentVersionArn != null && { componentVersionArn: input.componentVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
775
731
|
return [2, new __HttpRequest({
|
|
776
732
|
protocol: protocol,
|
|
777
733
|
hostname: hostname,
|
|
@@ -795,8 +751,7 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
795
751
|
"content-type": "application/json",
|
|
796
752
|
};
|
|
797
753
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponents";
|
|
798
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.byName
|
|
799
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
754
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.byName != null && { byName: input.byName })), (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
800
755
|
return [2, new __HttpRequest({
|
|
801
756
|
protocol: protocol,
|
|
802
757
|
hostname: hostname,
|
|
@@ -820,8 +775,7 @@ export var serializeAws_restJson1ListContainerRecipesCommand = function (input,
|
|
|
820
775
|
"content-type": "application/json",
|
|
821
776
|
};
|
|
822
777
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListContainerRecipes";
|
|
823
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
824
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
778
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
825
779
|
return [2, new __HttpRequest({
|
|
826
780
|
protocol: protocol,
|
|
827
781
|
hostname: hostname,
|
|
@@ -845,8 +799,7 @@ export var serializeAws_restJson1ListDistributionConfigurationsCommand = functio
|
|
|
845
799
|
"content-type": "application/json",
|
|
846
800
|
};
|
|
847
801
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListDistributionConfigurations";
|
|
848
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
849
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
802
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
850
803
|
return [2, new __HttpRequest({
|
|
851
804
|
protocol: protocol,
|
|
852
805
|
hostname: hostname,
|
|
@@ -870,9 +823,7 @@ export var serializeAws_restJson1ListImageBuildVersionsCommand = function (input
|
|
|
870
823
|
"content-type": "application/json",
|
|
871
824
|
};
|
|
872
825
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageBuildVersions";
|
|
873
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
874
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imageVersionArn !== undefined &&
|
|
875
|
-
input.imageVersionArn !== null && { imageVersionArn: input.imageVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
826
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imageVersionArn != null && { imageVersionArn: input.imageVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
876
827
|
return [2, new __HttpRequest({
|
|
877
828
|
protocol: protocol,
|
|
878
829
|
hostname: hostname,
|
|
@@ -896,8 +847,7 @@ export var serializeAws_restJson1ListImagePackagesCommand = function (input, con
|
|
|
896
847
|
"content-type": "application/json",
|
|
897
848
|
};
|
|
898
849
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePackages";
|
|
899
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.imageBuildVersionArn
|
|
900
|
-
input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
850
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
901
851
|
return [2, new __HttpRequest({
|
|
902
852
|
protocol: protocol,
|
|
903
853
|
hostname: hostname,
|
|
@@ -921,9 +871,7 @@ export var serializeAws_restJson1ListImagePipelineImagesCommand = function (inpu
|
|
|
921
871
|
"content-type": "application/json",
|
|
922
872
|
};
|
|
923
873
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelineImages";
|
|
924
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
925
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imagePipelineArn !== undefined &&
|
|
926
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
874
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
927
875
|
return [2, new __HttpRequest({
|
|
928
876
|
protocol: protocol,
|
|
929
877
|
hostname: hostname,
|
|
@@ -947,8 +895,7 @@ export var serializeAws_restJson1ListImagePipelinesCommand = function (input, co
|
|
|
947
895
|
"content-type": "application/json",
|
|
948
896
|
};
|
|
949
897
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelines";
|
|
950
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
951
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
898
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
952
899
|
return [2, new __HttpRequest({
|
|
953
900
|
protocol: protocol,
|
|
954
901
|
hostname: hostname,
|
|
@@ -972,8 +919,7 @@ export var serializeAws_restJson1ListImageRecipesCommand = function (input, cont
|
|
|
972
919
|
"content-type": "application/json",
|
|
973
920
|
};
|
|
974
921
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageRecipes";
|
|
975
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
976
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
922
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
977
923
|
return [2, new __HttpRequest({
|
|
978
924
|
protocol: protocol,
|
|
979
925
|
hostname: hostname,
|
|
@@ -997,9 +943,7 @@ export var serializeAws_restJson1ListImagesCommand = function (input, context) {
|
|
|
997
943
|
"content-type": "application/json",
|
|
998
944
|
};
|
|
999
945
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImages";
|
|
1000
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.byName
|
|
1001
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.includeDeprecated !== undefined &&
|
|
1002
|
-
input.includeDeprecated !== null && { includeDeprecated: input.includeDeprecated })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
946
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.byName != null && { byName: input.byName })), (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.includeDeprecated != null && { includeDeprecated: input.includeDeprecated })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
1003
947
|
return [2, new __HttpRequest({
|
|
1004
948
|
protocol: protocol,
|
|
1005
949
|
hostname: hostname,
|
|
@@ -1023,8 +967,7 @@ export var serializeAws_restJson1ListInfrastructureConfigurationsCommand = funct
|
|
|
1023
967
|
"content-type": "application/json",
|
|
1024
968
|
};
|
|
1025
969
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListInfrastructureConfigurations";
|
|
1026
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
1027
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
970
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
1028
971
|
return [2, new __HttpRequest({
|
|
1029
972
|
protocol: protocol,
|
|
1030
973
|
hostname: hostname,
|
|
@@ -1079,7 +1022,7 @@ export var serializeAws_restJson1PutComponentPolicyCommand = function (input, co
|
|
|
1079
1022
|
"content-type": "application/json",
|
|
1080
1023
|
};
|
|
1081
1024
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutComponentPolicy";
|
|
1082
|
-
body = JSON.stringify(__assign(__assign({}, (input.componentArn
|
|
1025
|
+
body = JSON.stringify(__assign(__assign({}, (input.componentArn != null && { componentArn: input.componentArn })), (input.policy != null && { policy: input.policy })));
|
|
1083
1026
|
return [2, new __HttpRequest({
|
|
1084
1027
|
protocol: protocol,
|
|
1085
1028
|
hostname: hostname,
|
|
@@ -1103,8 +1046,7 @@ export var serializeAws_restJson1PutContainerRecipePolicyCommand = function (inp
|
|
|
1103
1046
|
"content-type": "application/json",
|
|
1104
1047
|
};
|
|
1105
1048
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutContainerRecipePolicy";
|
|
1106
|
-
body = JSON.stringify(__assign(__assign({}, (input.containerRecipeArn
|
|
1107
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
|
|
1049
|
+
body = JSON.stringify(__assign(__assign({}, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.policy != null && { policy: input.policy })));
|
|
1108
1050
|
return [2, new __HttpRequest({
|
|
1109
1051
|
protocol: protocol,
|
|
1110
1052
|
hostname: hostname,
|
|
@@ -1128,7 +1070,7 @@ export var serializeAws_restJson1PutImagePolicyCommand = function (input, contex
|
|
|
1128
1070
|
"content-type": "application/json",
|
|
1129
1071
|
};
|
|
1130
1072
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImagePolicy";
|
|
1131
|
-
body = JSON.stringify(__assign(__assign({}, (input.imageArn
|
|
1073
|
+
body = JSON.stringify(__assign(__assign({}, (input.imageArn != null && { imageArn: input.imageArn })), (input.policy != null && { policy: input.policy })));
|
|
1132
1074
|
return [2, new __HttpRequest({
|
|
1133
1075
|
protocol: protocol,
|
|
1134
1076
|
hostname: hostname,
|
|
@@ -1152,8 +1094,7 @@ export var serializeAws_restJson1PutImageRecipePolicyCommand = function (input,
|
|
|
1152
1094
|
"content-type": "application/json",
|
|
1153
1095
|
};
|
|
1154
1096
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImageRecipePolicy";
|
|
1155
|
-
body = JSON.stringify(__assign(__assign({}, (input.imageRecipeArn
|
|
1156
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
|
|
1097
|
+
body = JSON.stringify(__assign(__assign({}, (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.policy != null && { policy: input.policy })));
|
|
1157
1098
|
return [2, new __HttpRequest({
|
|
1158
1099
|
protocol: protocol,
|
|
1159
1100
|
hostname: hostname,
|
|
@@ -1178,8 +1119,7 @@ export var serializeAws_restJson1StartImagePipelineExecutionCommand = function (
|
|
|
1178
1119
|
"content-type": "application/json",
|
|
1179
1120
|
};
|
|
1180
1121
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartImagePipelineExecution";
|
|
1181
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imagePipelineArn
|
|
1182
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })));
|
|
1122
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })));
|
|
1183
1123
|
return [2, new __HttpRequest({
|
|
1184
1124
|
protocol: protocol,
|
|
1185
1125
|
hostname: hostname,
|
|
@@ -1213,7 +1153,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1213
1153
|
else {
|
|
1214
1154
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1215
1155
|
}
|
|
1216
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1156
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1217
1157
|
return [2, new __HttpRequest({
|
|
1218
1158
|
protocol: protocol,
|
|
1219
1159
|
hostname: hostname,
|
|
@@ -1271,11 +1211,9 @@ export var serializeAws_restJson1UpdateDistributionConfigurationCommand = functi
|
|
|
1271
1211
|
"content-type": "application/json",
|
|
1272
1212
|
};
|
|
1273
1213
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateDistributionConfiguration";
|
|
1274
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
1275
|
-
input.distributionConfigurationArn !== null && {
|
|
1214
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
1276
1215
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1277
|
-
})), (input.distributions
|
|
1278
|
-
input.distributions !== null && {
|
|
1216
|
+
})), (input.distributions != null && {
|
|
1279
1217
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
1280
1218
|
})));
|
|
1281
1219
|
return [2, new __HttpRequest({
|
|
@@ -1302,23 +1240,15 @@ export var serializeAws_restJson1UpdateImagePipelineCommand = function (input, c
|
|
|
1302
1240
|
"content-type": "application/json",
|
|
1303
1241
|
};
|
|
1304
1242
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateImagePipeline";
|
|
1305
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
1306
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
|
|
1307
|
-
input.distributionConfigurationArn !== null && {
|
|
1243
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
1308
1244
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1309
|
-
})), (input.enhancedImageMetadataEnabled
|
|
1310
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
1245
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
1311
1246
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
1312
|
-
})), (input.imagePipelineArn
|
|
1313
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })), (input.imageRecipeArn !== undefined &&
|
|
1314
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
1315
|
-
input.imageTestsConfiguration !== null && {
|
|
1247
|
+
})), (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
1316
1248
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
1317
|
-
})), (input.infrastructureConfigurationArn
|
|
1318
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1249
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
1319
1250
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1320
|
-
})), (input.schedule
|
|
1321
|
-
input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
1251
|
+
})), (input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status != null && { status: input.status })));
|
|
1322
1252
|
return [2, new __HttpRequest({
|
|
1323
1253
|
protocol: protocol,
|
|
1324
1254
|
hostname: hostname,
|
|
@@ -1343,25 +1273,17 @@ export var serializeAws_restJson1UpdateInfrastructureConfigurationCommand = func
|
|
|
1343
1273
|
"content-type": "application/json",
|
|
1344
1274
|
};
|
|
1345
1275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateInfrastructureConfiguration";
|
|
1346
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
1347
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1276
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.infrastructureConfigurationArn != null && {
|
|
1348
1277
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1349
|
-
})), (input.instanceMetadataOptions
|
|
1350
|
-
input.instanceMetadataOptions !== null && {
|
|
1278
|
+
})), (input.instanceMetadataOptions != null && {
|
|
1351
1279
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
1352
|
-
})), (input.instanceProfileName
|
|
1353
|
-
input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes !== undefined &&
|
|
1354
|
-
input.instanceTypes !== null && {
|
|
1280
|
+
})), (input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes != null && {
|
|
1355
1281
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
1356
|
-
})), (input.keyPair
|
|
1357
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourceTags !== undefined &&
|
|
1358
|
-
input.resourceTags !== null && {
|
|
1282
|
+
})), (input.keyPair != null && { keyPair: input.keyPair })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourceTags != null && {
|
|
1359
1283
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
1360
|
-
})), (input.securityGroupIds
|
|
1361
|
-
input.securityGroupIds !== null && {
|
|
1284
|
+
})), (input.securityGroupIds != null && {
|
|
1362
1285
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
1363
|
-
})), (input.snsTopicArn
|
|
1364
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
1286
|
+
})), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn })), (input.subnetId != null && { subnetId: input.subnetId })), (input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
1365
1287
|
return [2, new __HttpRequest({
|
|
1366
1288
|
protocol: protocol,
|
|
1367
1289
|
hostname: hostname,
|
|
@@ -1407,7 +1329,7 @@ export var deserializeAws_restJson1CancelImageCreationCommand = function (output
|
|
|
1407
1329
|
});
|
|
1408
1330
|
}); };
|
|
1409
1331
|
var deserializeAws_restJson1CancelImageCreationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1410
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1332
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1411
1333
|
var _c;
|
|
1412
1334
|
return __generator(this, function (_d) {
|
|
1413
1335
|
switch (_d.label) {
|
|
@@ -1417,7 +1339,6 @@ var deserializeAws_restJson1CancelImageCreationCommandError = function (output,
|
|
|
1417
1339
|
return [4, parseBody(output.body, context)];
|
|
1418
1340
|
case 1:
|
|
1419
1341
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1420
|
-
errorCode = "UnknownError";
|
|
1421
1342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
1343
|
_b = errorCode;
|
|
1423
1344
|
switch (_b) {
|
|
@@ -1457,10 +1378,12 @@ var deserializeAws_restJson1CancelImageCreationCommandError = function (output,
|
|
|
1457
1378
|
case 17: throw _d.sent();
|
|
1458
1379
|
case 18:
|
|
1459
1380
|
parsedBody = parsedOutput.body;
|
|
1381
|
+
$metadata = deserializeMetadata(output);
|
|
1382
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1460
1383
|
response = new __BaseException({
|
|
1461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1384
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1462
1385
|
$fault: "client",
|
|
1463
|
-
$metadata:
|
|
1386
|
+
$metadata: $metadata,
|
|
1464
1387
|
});
|
|
1465
1388
|
throw __decorateServiceException(response, parsedBody);
|
|
1466
1389
|
}
|
|
@@ -1499,7 +1422,7 @@ export var deserializeAws_restJson1CreateComponentCommand = function (output, co
|
|
|
1499
1422
|
});
|
|
1500
1423
|
}); };
|
|
1501
1424
|
var deserializeAws_restJson1CreateComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1502
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1425
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1503
1426
|
var _c;
|
|
1504
1427
|
return __generator(this, function (_d) {
|
|
1505
1428
|
switch (_d.label) {
|
|
@@ -1509,7 +1432,6 @@ var deserializeAws_restJson1CreateComponentCommandError = function (output, cont
|
|
|
1509
1432
|
return [4, parseBody(output.body, context)];
|
|
1510
1433
|
case 1:
|
|
1511
1434
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1512
|
-
errorCode = "UnknownError";
|
|
1513
1435
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1436
|
_b = errorCode;
|
|
1515
1437
|
switch (_b) {
|
|
@@ -1561,10 +1483,12 @@ var deserializeAws_restJson1CreateComponentCommandError = function (output, cont
|
|
|
1561
1483
|
case 23: throw _d.sent();
|
|
1562
1484
|
case 24:
|
|
1563
1485
|
parsedBody = parsedOutput.body;
|
|
1486
|
+
$metadata = deserializeMetadata(output);
|
|
1487
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1564
1488
|
response = new __BaseException({
|
|
1565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1566
1490
|
$fault: "client",
|
|
1567
|
-
$metadata:
|
|
1491
|
+
$metadata: $metadata,
|
|
1568
1492
|
});
|
|
1569
1493
|
throw __decorateServiceException(response, parsedBody);
|
|
1570
1494
|
}
|
|
@@ -1603,7 +1527,7 @@ export var deserializeAws_restJson1CreateContainerRecipeCommand = function (outp
|
|
|
1603
1527
|
});
|
|
1604
1528
|
}); };
|
|
1605
1529
|
var deserializeAws_restJson1CreateContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1606
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1530
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1607
1531
|
var _c;
|
|
1608
1532
|
return __generator(this, function (_d) {
|
|
1609
1533
|
switch (_d.label) {
|
|
@@ -1613,7 +1537,6 @@ var deserializeAws_restJson1CreateContainerRecipeCommandError = function (output
|
|
|
1613
1537
|
return [4, parseBody(output.body, context)];
|
|
1614
1538
|
case 1:
|
|
1615
1539
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1616
|
-
errorCode = "UnknownError";
|
|
1617
1540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1541
|
_b = errorCode;
|
|
1619
1542
|
switch (_b) {
|
|
@@ -1665,10 +1588,12 @@ var deserializeAws_restJson1CreateContainerRecipeCommandError = function (output
|
|
|
1665
1588
|
case 23: throw _d.sent();
|
|
1666
1589
|
case 24:
|
|
1667
1590
|
parsedBody = parsedOutput.body;
|
|
1591
|
+
$metadata = deserializeMetadata(output);
|
|
1592
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1668
1593
|
response = new __BaseException({
|
|
1669
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1594
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1670
1595
|
$fault: "client",
|
|
1671
|
-
$metadata:
|
|
1596
|
+
$metadata: $metadata,
|
|
1672
1597
|
});
|
|
1673
1598
|
throw __decorateServiceException(response, parsedBody);
|
|
1674
1599
|
}
|
|
@@ -1707,7 +1632,7 @@ export var deserializeAws_restJson1CreateDistributionConfigurationCommand = func
|
|
|
1707
1632
|
});
|
|
1708
1633
|
}); };
|
|
1709
1634
|
var deserializeAws_restJson1CreateDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1710
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1635
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1711
1636
|
var _c;
|
|
1712
1637
|
return __generator(this, function (_d) {
|
|
1713
1638
|
switch (_d.label) {
|
|
@@ -1717,7 +1642,6 @@ var deserializeAws_restJson1CreateDistributionConfigurationCommandError = functi
|
|
|
1717
1642
|
return [4, parseBody(output.body, context)];
|
|
1718
1643
|
case 1:
|
|
1719
1644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1720
|
-
errorCode = "UnknownError";
|
|
1721
1645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1646
|
_b = errorCode;
|
|
1723
1647
|
switch (_b) {
|
|
@@ -1769,10 +1693,12 @@ var deserializeAws_restJson1CreateDistributionConfigurationCommandError = functi
|
|
|
1769
1693
|
case 23: throw _d.sent();
|
|
1770
1694
|
case 24:
|
|
1771
1695
|
parsedBody = parsedOutput.body;
|
|
1696
|
+
$metadata = deserializeMetadata(output);
|
|
1697
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1772
1698
|
response = new __BaseException({
|
|
1773
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1699
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1774
1700
|
$fault: "client",
|
|
1775
|
-
$metadata:
|
|
1701
|
+
$metadata: $metadata,
|
|
1776
1702
|
});
|
|
1777
1703
|
throw __decorateServiceException(response, parsedBody);
|
|
1778
1704
|
}
|
|
@@ -1811,7 +1737,7 @@ export var deserializeAws_restJson1CreateImageCommand = function (output, contex
|
|
|
1811
1737
|
});
|
|
1812
1738
|
}); };
|
|
1813
1739
|
var deserializeAws_restJson1CreateImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1814
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1740
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1815
1741
|
var _c;
|
|
1816
1742
|
return __generator(this, function (_d) {
|
|
1817
1743
|
switch (_d.label) {
|
|
@@ -1821,7 +1747,6 @@ var deserializeAws_restJson1CreateImageCommandError = function (output, context)
|
|
|
1821
1747
|
return [4, parseBody(output.body, context)];
|
|
1822
1748
|
case 1:
|
|
1823
1749
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1824
|
-
errorCode = "UnknownError";
|
|
1825
1750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
1751
|
_b = errorCode;
|
|
1827
1752
|
switch (_b) {
|
|
@@ -1865,10 +1790,12 @@ var deserializeAws_restJson1CreateImageCommandError = function (output, context)
|
|
|
1865
1790
|
case 19: throw _d.sent();
|
|
1866
1791
|
case 20:
|
|
1867
1792
|
parsedBody = parsedOutput.body;
|
|
1793
|
+
$metadata = deserializeMetadata(output);
|
|
1794
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1868
1795
|
response = new __BaseException({
|
|
1869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1796
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1870
1797
|
$fault: "client",
|
|
1871
|
-
$metadata:
|
|
1798
|
+
$metadata: $metadata,
|
|
1872
1799
|
});
|
|
1873
1800
|
throw __decorateServiceException(response, parsedBody);
|
|
1874
1801
|
}
|
|
@@ -1907,7 +1834,7 @@ export var deserializeAws_restJson1CreateImagePipelineCommand = function (output
|
|
|
1907
1834
|
});
|
|
1908
1835
|
}); };
|
|
1909
1836
|
var deserializeAws_restJson1CreateImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1910
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1837
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1911
1838
|
var _c;
|
|
1912
1839
|
return __generator(this, function (_d) {
|
|
1913
1840
|
switch (_d.label) {
|
|
@@ -1917,7 +1844,6 @@ var deserializeAws_restJson1CreateImagePipelineCommandError = function (output,
|
|
|
1917
1844
|
return [4, parseBody(output.body, context)];
|
|
1918
1845
|
case 1:
|
|
1919
1846
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1920
|
-
errorCode = "UnknownError";
|
|
1921
1847
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1848
|
_b = errorCode;
|
|
1923
1849
|
switch (_b) {
|
|
@@ -1965,10 +1891,12 @@ var deserializeAws_restJson1CreateImagePipelineCommandError = function (output,
|
|
|
1965
1891
|
case 21: throw _d.sent();
|
|
1966
1892
|
case 22:
|
|
1967
1893
|
parsedBody = parsedOutput.body;
|
|
1894
|
+
$metadata = deserializeMetadata(output);
|
|
1895
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1968
1896
|
response = new __BaseException({
|
|
1969
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1897
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1970
1898
|
$fault: "client",
|
|
1971
|
-
$metadata:
|
|
1899
|
+
$metadata: $metadata,
|
|
1972
1900
|
});
|
|
1973
1901
|
throw __decorateServiceException(response, parsedBody);
|
|
1974
1902
|
}
|
|
@@ -2007,7 +1935,7 @@ export var deserializeAws_restJson1CreateImageRecipeCommand = function (output,
|
|
|
2007
1935
|
});
|
|
2008
1936
|
}); };
|
|
2009
1937
|
var deserializeAws_restJson1CreateImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2010
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2011
1939
|
var _c;
|
|
2012
1940
|
return __generator(this, function (_d) {
|
|
2013
1941
|
switch (_d.label) {
|
|
@@ -2017,7 +1945,6 @@ var deserializeAws_restJson1CreateImageRecipeCommandError = function (output, co
|
|
|
2017
1945
|
return [4, parseBody(output.body, context)];
|
|
2018
1946
|
case 1:
|
|
2019
1947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2020
|
-
errorCode = "UnknownError";
|
|
2021
1948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
1949
|
_b = errorCode;
|
|
2023
1950
|
switch (_b) {
|
|
@@ -2069,10 +1996,12 @@ var deserializeAws_restJson1CreateImageRecipeCommandError = function (output, co
|
|
|
2069
1996
|
case 23: throw _d.sent();
|
|
2070
1997
|
case 24:
|
|
2071
1998
|
parsedBody = parsedOutput.body;
|
|
1999
|
+
$metadata = deserializeMetadata(output);
|
|
2000
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2072
2001
|
response = new __BaseException({
|
|
2073
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2002
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2074
2003
|
$fault: "client",
|
|
2075
|
-
$metadata:
|
|
2004
|
+
$metadata: $metadata,
|
|
2076
2005
|
});
|
|
2077
2006
|
throw __decorateServiceException(response, parsedBody);
|
|
2078
2007
|
}
|
|
@@ -2111,7 +2040,7 @@ export var deserializeAws_restJson1CreateInfrastructureConfigurationCommand = fu
|
|
|
2111
2040
|
});
|
|
2112
2041
|
}); };
|
|
2113
2042
|
var deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2114
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2043
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2115
2044
|
var _c;
|
|
2116
2045
|
return __generator(this, function (_d) {
|
|
2117
2046
|
switch (_d.label) {
|
|
@@ -2121,7 +2050,6 @@ var deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = func
|
|
|
2121
2050
|
return [4, parseBody(output.body, context)];
|
|
2122
2051
|
case 1:
|
|
2123
2052
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2124
|
-
errorCode = "UnknownError";
|
|
2125
2053
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2054
|
_b = errorCode;
|
|
2127
2055
|
switch (_b) {
|
|
@@ -2169,10 +2097,12 @@ var deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = func
|
|
|
2169
2097
|
case 21: throw _d.sent();
|
|
2170
2098
|
case 22:
|
|
2171
2099
|
parsedBody = parsedOutput.body;
|
|
2100
|
+
$metadata = deserializeMetadata(output);
|
|
2101
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2172
2102
|
response = new __BaseException({
|
|
2173
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2174
2104
|
$fault: "client",
|
|
2175
|
-
$metadata:
|
|
2105
|
+
$metadata: $metadata,
|
|
2176
2106
|
});
|
|
2177
2107
|
throw __decorateServiceException(response, parsedBody);
|
|
2178
2108
|
}
|
|
@@ -2207,7 +2137,7 @@ export var deserializeAws_restJson1DeleteComponentCommand = function (output, co
|
|
|
2207
2137
|
});
|
|
2208
2138
|
}); };
|
|
2209
2139
|
var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2210
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2211
2141
|
var _c;
|
|
2212
2142
|
return __generator(this, function (_d) {
|
|
2213
2143
|
switch (_d.label) {
|
|
@@ -2217,7 +2147,6 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
2217
2147
|
return [4, parseBody(output.body, context)];
|
|
2218
2148
|
case 1:
|
|
2219
2149
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2220
|
-
errorCode = "UnknownError";
|
|
2221
2150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2151
|
_b = errorCode;
|
|
2223
2152
|
switch (_b) {
|
|
@@ -2253,10 +2182,12 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
2253
2182
|
case 15: throw _d.sent();
|
|
2254
2183
|
case 16:
|
|
2255
2184
|
parsedBody = parsedOutput.body;
|
|
2185
|
+
$metadata = deserializeMetadata(output);
|
|
2186
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2256
2187
|
response = new __BaseException({
|
|
2257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2258
2189
|
$fault: "client",
|
|
2259
|
-
$metadata:
|
|
2190
|
+
$metadata: $metadata,
|
|
2260
2191
|
});
|
|
2261
2192
|
throw __decorateServiceException(response, parsedBody);
|
|
2262
2193
|
}
|
|
@@ -2291,7 +2222,7 @@ export var deserializeAws_restJson1DeleteContainerRecipeCommand = function (outp
|
|
|
2291
2222
|
});
|
|
2292
2223
|
}); };
|
|
2293
2224
|
var deserializeAws_restJson1DeleteContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2294
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2225
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2295
2226
|
var _c;
|
|
2296
2227
|
return __generator(this, function (_d) {
|
|
2297
2228
|
switch (_d.label) {
|
|
@@ -2301,7 +2232,6 @@ var deserializeAws_restJson1DeleteContainerRecipeCommandError = function (output
|
|
|
2301
2232
|
return [4, parseBody(output.body, context)];
|
|
2302
2233
|
case 1:
|
|
2303
2234
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2304
|
-
errorCode = "UnknownError";
|
|
2305
2235
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
2236
|
_b = errorCode;
|
|
2307
2237
|
switch (_b) {
|
|
@@ -2337,10 +2267,12 @@ var deserializeAws_restJson1DeleteContainerRecipeCommandError = function (output
|
|
|
2337
2267
|
case 15: throw _d.sent();
|
|
2338
2268
|
case 16:
|
|
2339
2269
|
parsedBody = parsedOutput.body;
|
|
2270
|
+
$metadata = deserializeMetadata(output);
|
|
2271
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2340
2272
|
response = new __BaseException({
|
|
2341
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2342
2274
|
$fault: "client",
|
|
2343
|
-
$metadata:
|
|
2275
|
+
$metadata: $metadata,
|
|
2344
2276
|
});
|
|
2345
2277
|
throw __decorateServiceException(response, parsedBody);
|
|
2346
2278
|
}
|
|
@@ -2375,7 +2307,7 @@ export var deserializeAws_restJson1DeleteDistributionConfigurationCommand = func
|
|
|
2375
2307
|
});
|
|
2376
2308
|
}); };
|
|
2377
2309
|
var deserializeAws_restJson1DeleteDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2378
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2310
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2379
2311
|
var _c;
|
|
2380
2312
|
return __generator(this, function (_d) {
|
|
2381
2313
|
switch (_d.label) {
|
|
@@ -2385,7 +2317,6 @@ var deserializeAws_restJson1DeleteDistributionConfigurationCommandError = functi
|
|
|
2385
2317
|
return [4, parseBody(output.body, context)];
|
|
2386
2318
|
case 1:
|
|
2387
2319
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2388
|
-
errorCode = "UnknownError";
|
|
2389
2320
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
2321
|
_b = errorCode;
|
|
2391
2322
|
switch (_b) {
|
|
@@ -2421,10 +2352,12 @@ var deserializeAws_restJson1DeleteDistributionConfigurationCommandError = functi
|
|
|
2421
2352
|
case 15: throw _d.sent();
|
|
2422
2353
|
case 16:
|
|
2423
2354
|
parsedBody = parsedOutput.body;
|
|
2355
|
+
$metadata = deserializeMetadata(output);
|
|
2356
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2424
2357
|
response = new __BaseException({
|
|
2425
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2358
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2426
2359
|
$fault: "client",
|
|
2427
|
-
$metadata:
|
|
2360
|
+
$metadata: $metadata,
|
|
2428
2361
|
});
|
|
2429
2362
|
throw __decorateServiceException(response, parsedBody);
|
|
2430
2363
|
}
|
|
@@ -2459,7 +2392,7 @@ export var deserializeAws_restJson1DeleteImageCommand = function (output, contex
|
|
|
2459
2392
|
});
|
|
2460
2393
|
}); };
|
|
2461
2394
|
var deserializeAws_restJson1DeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2462
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2395
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2463
2396
|
var _c;
|
|
2464
2397
|
return __generator(this, function (_d) {
|
|
2465
2398
|
switch (_d.label) {
|
|
@@ -2469,7 +2402,6 @@ var deserializeAws_restJson1DeleteImageCommandError = function (output, context)
|
|
|
2469
2402
|
return [4, parseBody(output.body, context)];
|
|
2470
2403
|
case 1:
|
|
2471
2404
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2472
|
-
errorCode = "UnknownError";
|
|
2473
2405
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
2406
|
_b = errorCode;
|
|
2475
2407
|
switch (_b) {
|
|
@@ -2505,10 +2437,12 @@ var deserializeAws_restJson1DeleteImageCommandError = function (output, context)
|
|
|
2505
2437
|
case 15: throw _d.sent();
|
|
2506
2438
|
case 16:
|
|
2507
2439
|
parsedBody = parsedOutput.body;
|
|
2440
|
+
$metadata = deserializeMetadata(output);
|
|
2441
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2508
2442
|
response = new __BaseException({
|
|
2509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2443
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2510
2444
|
$fault: "client",
|
|
2511
|
-
$metadata:
|
|
2445
|
+
$metadata: $metadata,
|
|
2512
2446
|
});
|
|
2513
2447
|
throw __decorateServiceException(response, parsedBody);
|
|
2514
2448
|
}
|
|
@@ -2543,7 +2477,7 @@ export var deserializeAws_restJson1DeleteImagePipelineCommand = function (output
|
|
|
2543
2477
|
});
|
|
2544
2478
|
}); };
|
|
2545
2479
|
var deserializeAws_restJson1DeleteImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2546
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2480
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2547
2481
|
var _c;
|
|
2548
2482
|
return __generator(this, function (_d) {
|
|
2549
2483
|
switch (_d.label) {
|
|
@@ -2553,7 +2487,6 @@ var deserializeAws_restJson1DeleteImagePipelineCommandError = function (output,
|
|
|
2553
2487
|
return [4, parseBody(output.body, context)];
|
|
2554
2488
|
case 1:
|
|
2555
2489
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2556
|
-
errorCode = "UnknownError";
|
|
2557
2490
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
2491
|
_b = errorCode;
|
|
2559
2492
|
switch (_b) {
|
|
@@ -2589,10 +2522,12 @@ var deserializeAws_restJson1DeleteImagePipelineCommandError = function (output,
|
|
|
2589
2522
|
case 15: throw _d.sent();
|
|
2590
2523
|
case 16:
|
|
2591
2524
|
parsedBody = parsedOutput.body;
|
|
2525
|
+
$metadata = deserializeMetadata(output);
|
|
2526
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2592
2527
|
response = new __BaseException({
|
|
2593
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2594
2529
|
$fault: "client",
|
|
2595
|
-
$metadata:
|
|
2530
|
+
$metadata: $metadata,
|
|
2596
2531
|
});
|
|
2597
2532
|
throw __decorateServiceException(response, parsedBody);
|
|
2598
2533
|
}
|
|
@@ -2627,7 +2562,7 @@ export var deserializeAws_restJson1DeleteImageRecipeCommand = function (output,
|
|
|
2627
2562
|
});
|
|
2628
2563
|
}); };
|
|
2629
2564
|
var deserializeAws_restJson1DeleteImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2630
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2565
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2631
2566
|
var _c;
|
|
2632
2567
|
return __generator(this, function (_d) {
|
|
2633
2568
|
switch (_d.label) {
|
|
@@ -2637,7 +2572,6 @@ var deserializeAws_restJson1DeleteImageRecipeCommandError = function (output, co
|
|
|
2637
2572
|
return [4, parseBody(output.body, context)];
|
|
2638
2573
|
case 1:
|
|
2639
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2640
|
-
errorCode = "UnknownError";
|
|
2641
2575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2576
|
_b = errorCode;
|
|
2643
2577
|
switch (_b) {
|
|
@@ -2673,10 +2607,12 @@ var deserializeAws_restJson1DeleteImageRecipeCommandError = function (output, co
|
|
|
2673
2607
|
case 15: throw _d.sent();
|
|
2674
2608
|
case 16:
|
|
2675
2609
|
parsedBody = parsedOutput.body;
|
|
2610
|
+
$metadata = deserializeMetadata(output);
|
|
2611
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2676
2612
|
response = new __BaseException({
|
|
2677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2678
2614
|
$fault: "client",
|
|
2679
|
-
$metadata:
|
|
2615
|
+
$metadata: $metadata,
|
|
2680
2616
|
});
|
|
2681
2617
|
throw __decorateServiceException(response, parsedBody);
|
|
2682
2618
|
}
|
|
@@ -2711,7 +2647,7 @@ export var deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = fu
|
|
|
2711
2647
|
});
|
|
2712
2648
|
}); };
|
|
2713
2649
|
var deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2714
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2650
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2715
2651
|
var _c;
|
|
2716
2652
|
return __generator(this, function (_d) {
|
|
2717
2653
|
switch (_d.label) {
|
|
@@ -2721,7 +2657,6 @@ var deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = func
|
|
|
2721
2657
|
return [4, parseBody(output.body, context)];
|
|
2722
2658
|
case 1:
|
|
2723
2659
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2724
|
-
errorCode = "UnknownError";
|
|
2725
2660
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
2661
|
_b = errorCode;
|
|
2727
2662
|
switch (_b) {
|
|
@@ -2757,10 +2692,12 @@ var deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = func
|
|
|
2757
2692
|
case 15: throw _d.sent();
|
|
2758
2693
|
case 16:
|
|
2759
2694
|
parsedBody = parsedOutput.body;
|
|
2695
|
+
$metadata = deserializeMetadata(output);
|
|
2696
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2760
2697
|
response = new __BaseException({
|
|
2761
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2698
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2762
2699
|
$fault: "client",
|
|
2763
|
-
$metadata:
|
|
2700
|
+
$metadata: $metadata,
|
|
2764
2701
|
});
|
|
2765
2702
|
throw __decorateServiceException(response, parsedBody);
|
|
2766
2703
|
}
|
|
@@ -2795,7 +2732,7 @@ export var deserializeAws_restJson1GetComponentCommand = function (output, conte
|
|
|
2795
2732
|
});
|
|
2796
2733
|
}); };
|
|
2797
2734
|
var deserializeAws_restJson1GetComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2798
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2735
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2799
2736
|
var _c;
|
|
2800
2737
|
return __generator(this, function (_d) {
|
|
2801
2738
|
switch (_d.label) {
|
|
@@ -2805,7 +2742,6 @@ var deserializeAws_restJson1GetComponentCommandError = function (output, context
|
|
|
2805
2742
|
return [4, parseBody(output.body, context)];
|
|
2806
2743
|
case 1:
|
|
2807
2744
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2808
|
-
errorCode = "UnknownError";
|
|
2809
2745
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2810
2746
|
_b = errorCode;
|
|
2811
2747
|
switch (_b) {
|
|
@@ -2837,10 +2773,12 @@ var deserializeAws_restJson1GetComponentCommandError = function (output, context
|
|
|
2837
2773
|
case 13: throw _d.sent();
|
|
2838
2774
|
case 14:
|
|
2839
2775
|
parsedBody = parsedOutput.body;
|
|
2776
|
+
$metadata = deserializeMetadata(output);
|
|
2777
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2840
2778
|
response = new __BaseException({
|
|
2841
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2842
2780
|
$fault: "client",
|
|
2843
|
-
$metadata:
|
|
2781
|
+
$metadata: $metadata,
|
|
2844
2782
|
});
|
|
2845
2783
|
throw __decorateServiceException(response, parsedBody);
|
|
2846
2784
|
}
|
|
@@ -2875,7 +2813,7 @@ export var deserializeAws_restJson1GetComponentPolicyCommand = function (output,
|
|
|
2875
2813
|
});
|
|
2876
2814
|
}); };
|
|
2877
2815
|
var deserializeAws_restJson1GetComponentPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2878
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2816
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2879
2817
|
var _c;
|
|
2880
2818
|
return __generator(this, function (_d) {
|
|
2881
2819
|
switch (_d.label) {
|
|
@@ -2885,7 +2823,6 @@ var deserializeAws_restJson1GetComponentPolicyCommandError = function (output, c
|
|
|
2885
2823
|
return [4, parseBody(output.body, context)];
|
|
2886
2824
|
case 1:
|
|
2887
2825
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2888
|
-
errorCode = "UnknownError";
|
|
2889
2826
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2890
2827
|
_b = errorCode;
|
|
2891
2828
|
switch (_b) {
|
|
@@ -2917,10 +2854,12 @@ var deserializeAws_restJson1GetComponentPolicyCommandError = function (output, c
|
|
|
2917
2854
|
case 13: throw _d.sent();
|
|
2918
2855
|
case 14:
|
|
2919
2856
|
parsedBody = parsedOutput.body;
|
|
2857
|
+
$metadata = deserializeMetadata(output);
|
|
2858
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2920
2859
|
response = new __BaseException({
|
|
2921
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2860
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2922
2861
|
$fault: "client",
|
|
2923
|
-
$metadata:
|
|
2862
|
+
$metadata: $metadata,
|
|
2924
2863
|
});
|
|
2925
2864
|
throw __decorateServiceException(response, parsedBody);
|
|
2926
2865
|
}
|
|
@@ -2955,7 +2894,7 @@ export var deserializeAws_restJson1GetContainerRecipeCommand = function (output,
|
|
|
2955
2894
|
});
|
|
2956
2895
|
}); };
|
|
2957
2896
|
var deserializeAws_restJson1GetContainerRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2958
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2897
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2959
2898
|
var _c;
|
|
2960
2899
|
return __generator(this, function (_d) {
|
|
2961
2900
|
switch (_d.label) {
|
|
@@ -2965,7 +2904,6 @@ var deserializeAws_restJson1GetContainerRecipeCommandError = function (output, c
|
|
|
2965
2904
|
return [4, parseBody(output.body, context)];
|
|
2966
2905
|
case 1:
|
|
2967
2906
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2968
|
-
errorCode = "UnknownError";
|
|
2969
2907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
2908
|
_b = errorCode;
|
|
2971
2909
|
switch (_b) {
|
|
@@ -2997,10 +2935,12 @@ var deserializeAws_restJson1GetContainerRecipeCommandError = function (output, c
|
|
|
2997
2935
|
case 13: throw _d.sent();
|
|
2998
2936
|
case 14:
|
|
2999
2937
|
parsedBody = parsedOutput.body;
|
|
2938
|
+
$metadata = deserializeMetadata(output);
|
|
2939
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3000
2940
|
response = new __BaseException({
|
|
3001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3002
2942
|
$fault: "client",
|
|
3003
|
-
$metadata:
|
|
2943
|
+
$metadata: $metadata,
|
|
3004
2944
|
});
|
|
3005
2945
|
throw __decorateServiceException(response, parsedBody);
|
|
3006
2946
|
}
|
|
@@ -3035,7 +2975,7 @@ export var deserializeAws_restJson1GetContainerRecipePolicyCommand = function (o
|
|
|
3035
2975
|
});
|
|
3036
2976
|
}); };
|
|
3037
2977
|
var deserializeAws_restJson1GetContainerRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3038
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2978
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3039
2979
|
var _c;
|
|
3040
2980
|
return __generator(this, function (_d) {
|
|
3041
2981
|
switch (_d.label) {
|
|
@@ -3045,7 +2985,6 @@ var deserializeAws_restJson1GetContainerRecipePolicyCommandError = function (out
|
|
|
3045
2985
|
return [4, parseBody(output.body, context)];
|
|
3046
2986
|
case 1:
|
|
3047
2987
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3048
|
-
errorCode = "UnknownError";
|
|
3049
2988
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3050
2989
|
_b = errorCode;
|
|
3051
2990
|
switch (_b) {
|
|
@@ -3077,10 +3016,12 @@ var deserializeAws_restJson1GetContainerRecipePolicyCommandError = function (out
|
|
|
3077
3016
|
case 13: throw _d.sent();
|
|
3078
3017
|
case 14:
|
|
3079
3018
|
parsedBody = parsedOutput.body;
|
|
3019
|
+
$metadata = deserializeMetadata(output);
|
|
3020
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3080
3021
|
response = new __BaseException({
|
|
3081
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3082
3023
|
$fault: "client",
|
|
3083
|
-
$metadata:
|
|
3024
|
+
$metadata: $metadata,
|
|
3084
3025
|
});
|
|
3085
3026
|
throw __decorateServiceException(response, parsedBody);
|
|
3086
3027
|
}
|
|
@@ -3115,7 +3056,7 @@ export var deserializeAws_restJson1GetDistributionConfigurationCommand = functio
|
|
|
3115
3056
|
});
|
|
3116
3057
|
}); };
|
|
3117
3058
|
var deserializeAws_restJson1GetDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3118
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3059
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3119
3060
|
var _c;
|
|
3120
3061
|
return __generator(this, function (_d) {
|
|
3121
3062
|
switch (_d.label) {
|
|
@@ -3125,7 +3066,6 @@ var deserializeAws_restJson1GetDistributionConfigurationCommandError = function
|
|
|
3125
3066
|
return [4, parseBody(output.body, context)];
|
|
3126
3067
|
case 1:
|
|
3127
3068
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3128
|
-
errorCode = "UnknownError";
|
|
3129
3069
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3130
3070
|
_b = errorCode;
|
|
3131
3071
|
switch (_b) {
|
|
@@ -3157,10 +3097,12 @@ var deserializeAws_restJson1GetDistributionConfigurationCommandError = function
|
|
|
3157
3097
|
case 13: throw _d.sent();
|
|
3158
3098
|
case 14:
|
|
3159
3099
|
parsedBody = parsedOutput.body;
|
|
3100
|
+
$metadata = deserializeMetadata(output);
|
|
3101
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3160
3102
|
response = new __BaseException({
|
|
3161
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3162
3104
|
$fault: "client",
|
|
3163
|
-
$metadata:
|
|
3105
|
+
$metadata: $metadata,
|
|
3164
3106
|
});
|
|
3165
3107
|
throw __decorateServiceException(response, parsedBody);
|
|
3166
3108
|
}
|
|
@@ -3195,7 +3137,7 @@ export var deserializeAws_restJson1GetImageCommand = function (output, context)
|
|
|
3195
3137
|
});
|
|
3196
3138
|
}); };
|
|
3197
3139
|
var deserializeAws_restJson1GetImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3198
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3199
3141
|
var _c;
|
|
3200
3142
|
return __generator(this, function (_d) {
|
|
3201
3143
|
switch (_d.label) {
|
|
@@ -3205,7 +3147,6 @@ var deserializeAws_restJson1GetImageCommandError = function (output, context) {
|
|
|
3205
3147
|
return [4, parseBody(output.body, context)];
|
|
3206
3148
|
case 1:
|
|
3207
3149
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3208
|
-
errorCode = "UnknownError";
|
|
3209
3150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
3151
|
_b = errorCode;
|
|
3211
3152
|
switch (_b) {
|
|
@@ -3237,10 +3178,12 @@ var deserializeAws_restJson1GetImageCommandError = function (output, context) {
|
|
|
3237
3178
|
case 13: throw _d.sent();
|
|
3238
3179
|
case 14:
|
|
3239
3180
|
parsedBody = parsedOutput.body;
|
|
3181
|
+
$metadata = deserializeMetadata(output);
|
|
3182
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3240
3183
|
response = new __BaseException({
|
|
3241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3184
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3242
3185
|
$fault: "client",
|
|
3243
|
-
$metadata:
|
|
3186
|
+
$metadata: $metadata,
|
|
3244
3187
|
});
|
|
3245
3188
|
throw __decorateServiceException(response, parsedBody);
|
|
3246
3189
|
}
|
|
@@ -3275,7 +3218,7 @@ export var deserializeAws_restJson1GetImagePipelineCommand = function (output, c
|
|
|
3275
3218
|
});
|
|
3276
3219
|
}); };
|
|
3277
3220
|
var deserializeAws_restJson1GetImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3278
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3221
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3279
3222
|
var _c;
|
|
3280
3223
|
return __generator(this, function (_d) {
|
|
3281
3224
|
switch (_d.label) {
|
|
@@ -3285,7 +3228,6 @@ var deserializeAws_restJson1GetImagePipelineCommandError = function (output, con
|
|
|
3285
3228
|
return [4, parseBody(output.body, context)];
|
|
3286
3229
|
case 1:
|
|
3287
3230
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3288
|
-
errorCode = "UnknownError";
|
|
3289
3231
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3290
3232
|
_b = errorCode;
|
|
3291
3233
|
switch (_b) {
|
|
@@ -3317,10 +3259,12 @@ var deserializeAws_restJson1GetImagePipelineCommandError = function (output, con
|
|
|
3317
3259
|
case 13: throw _d.sent();
|
|
3318
3260
|
case 14:
|
|
3319
3261
|
parsedBody = parsedOutput.body;
|
|
3262
|
+
$metadata = deserializeMetadata(output);
|
|
3263
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3320
3264
|
response = new __BaseException({
|
|
3321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3265
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3322
3266
|
$fault: "client",
|
|
3323
|
-
$metadata:
|
|
3267
|
+
$metadata: $metadata,
|
|
3324
3268
|
});
|
|
3325
3269
|
throw __decorateServiceException(response, parsedBody);
|
|
3326
3270
|
}
|
|
@@ -3355,7 +3299,7 @@ export var deserializeAws_restJson1GetImagePolicyCommand = function (output, con
|
|
|
3355
3299
|
});
|
|
3356
3300
|
}); };
|
|
3357
3301
|
var deserializeAws_restJson1GetImagePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3358
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3302
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3359
3303
|
var _c;
|
|
3360
3304
|
return __generator(this, function (_d) {
|
|
3361
3305
|
switch (_d.label) {
|
|
@@ -3365,7 +3309,6 @@ var deserializeAws_restJson1GetImagePolicyCommandError = function (output, conte
|
|
|
3365
3309
|
return [4, parseBody(output.body, context)];
|
|
3366
3310
|
case 1:
|
|
3367
3311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3368
|
-
errorCode = "UnknownError";
|
|
3369
3312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
3313
|
_b = errorCode;
|
|
3371
3314
|
switch (_b) {
|
|
@@ -3397,10 +3340,12 @@ var deserializeAws_restJson1GetImagePolicyCommandError = function (output, conte
|
|
|
3397
3340
|
case 13: throw _d.sent();
|
|
3398
3341
|
case 14:
|
|
3399
3342
|
parsedBody = parsedOutput.body;
|
|
3343
|
+
$metadata = deserializeMetadata(output);
|
|
3344
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3400
3345
|
response = new __BaseException({
|
|
3401
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3346
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3402
3347
|
$fault: "client",
|
|
3403
|
-
$metadata:
|
|
3348
|
+
$metadata: $metadata,
|
|
3404
3349
|
});
|
|
3405
3350
|
throw __decorateServiceException(response, parsedBody);
|
|
3406
3351
|
}
|
|
@@ -3435,7 +3380,7 @@ export var deserializeAws_restJson1GetImageRecipeCommand = function (output, con
|
|
|
3435
3380
|
});
|
|
3436
3381
|
}); };
|
|
3437
3382
|
var deserializeAws_restJson1GetImageRecipeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3438
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3383
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3439
3384
|
var _c;
|
|
3440
3385
|
return __generator(this, function (_d) {
|
|
3441
3386
|
switch (_d.label) {
|
|
@@ -3445,7 +3390,6 @@ var deserializeAws_restJson1GetImageRecipeCommandError = function (output, conte
|
|
|
3445
3390
|
return [4, parseBody(output.body, context)];
|
|
3446
3391
|
case 1:
|
|
3447
3392
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3448
|
-
errorCode = "UnknownError";
|
|
3449
3393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
3394
|
_b = errorCode;
|
|
3451
3395
|
switch (_b) {
|
|
@@ -3477,10 +3421,12 @@ var deserializeAws_restJson1GetImageRecipeCommandError = function (output, conte
|
|
|
3477
3421
|
case 13: throw _d.sent();
|
|
3478
3422
|
case 14:
|
|
3479
3423
|
parsedBody = parsedOutput.body;
|
|
3424
|
+
$metadata = deserializeMetadata(output);
|
|
3425
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3480
3426
|
response = new __BaseException({
|
|
3481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3427
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3482
3428
|
$fault: "client",
|
|
3483
|
-
$metadata:
|
|
3429
|
+
$metadata: $metadata,
|
|
3484
3430
|
});
|
|
3485
3431
|
throw __decorateServiceException(response, parsedBody);
|
|
3486
3432
|
}
|
|
@@ -3515,7 +3461,7 @@ export var deserializeAws_restJson1GetImageRecipePolicyCommand = function (outpu
|
|
|
3515
3461
|
});
|
|
3516
3462
|
}); };
|
|
3517
3463
|
var deserializeAws_restJson1GetImageRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3518
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3464
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3519
3465
|
var _c;
|
|
3520
3466
|
return __generator(this, function (_d) {
|
|
3521
3467
|
switch (_d.label) {
|
|
@@ -3525,7 +3471,6 @@ var deserializeAws_restJson1GetImageRecipePolicyCommandError = function (output,
|
|
|
3525
3471
|
return [4, parseBody(output.body, context)];
|
|
3526
3472
|
case 1:
|
|
3527
3473
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3528
|
-
errorCode = "UnknownError";
|
|
3529
3474
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3530
3475
|
_b = errorCode;
|
|
3531
3476
|
switch (_b) {
|
|
@@ -3557,10 +3502,12 @@ var deserializeAws_restJson1GetImageRecipePolicyCommandError = function (output,
|
|
|
3557
3502
|
case 13: throw _d.sent();
|
|
3558
3503
|
case 14:
|
|
3559
3504
|
parsedBody = parsedOutput.body;
|
|
3505
|
+
$metadata = deserializeMetadata(output);
|
|
3506
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3560
3507
|
response = new __BaseException({
|
|
3561
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3508
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3562
3509
|
$fault: "client",
|
|
3563
|
-
$metadata:
|
|
3510
|
+
$metadata: $metadata,
|
|
3564
3511
|
});
|
|
3565
3512
|
throw __decorateServiceException(response, parsedBody);
|
|
3566
3513
|
}
|
|
@@ -3595,7 +3542,7 @@ export var deserializeAws_restJson1GetInfrastructureConfigurationCommand = funct
|
|
|
3595
3542
|
});
|
|
3596
3543
|
}); };
|
|
3597
3544
|
var deserializeAws_restJson1GetInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3598
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3545
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3599
3546
|
var _c;
|
|
3600
3547
|
return __generator(this, function (_d) {
|
|
3601
3548
|
switch (_d.label) {
|
|
@@ -3605,7 +3552,6 @@ var deserializeAws_restJson1GetInfrastructureConfigurationCommandError = functio
|
|
|
3605
3552
|
return [4, parseBody(output.body, context)];
|
|
3606
3553
|
case 1:
|
|
3607
3554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3608
|
-
errorCode = "UnknownError";
|
|
3609
3555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3610
3556
|
_b = errorCode;
|
|
3611
3557
|
switch (_b) {
|
|
@@ -3637,10 +3583,12 @@ var deserializeAws_restJson1GetInfrastructureConfigurationCommandError = functio
|
|
|
3637
3583
|
case 13: throw _d.sent();
|
|
3638
3584
|
case 14:
|
|
3639
3585
|
parsedBody = parsedOutput.body;
|
|
3586
|
+
$metadata = deserializeMetadata(output);
|
|
3587
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3640
3588
|
response = new __BaseException({
|
|
3641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3642
3590
|
$fault: "client",
|
|
3643
|
-
$metadata:
|
|
3591
|
+
$metadata: $metadata,
|
|
3644
3592
|
});
|
|
3645
3593
|
throw __decorateServiceException(response, parsedBody);
|
|
3646
3594
|
}
|
|
@@ -3679,7 +3627,7 @@ export var deserializeAws_restJson1ImportComponentCommand = function (output, co
|
|
|
3679
3627
|
});
|
|
3680
3628
|
}); };
|
|
3681
3629
|
var deserializeAws_restJson1ImportComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3682
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3630
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3683
3631
|
var _c;
|
|
3684
3632
|
return __generator(this, function (_d) {
|
|
3685
3633
|
switch (_d.label) {
|
|
@@ -3689,7 +3637,6 @@ var deserializeAws_restJson1ImportComponentCommandError = function (output, cont
|
|
|
3689
3637
|
return [4, parseBody(output.body, context)];
|
|
3690
3638
|
case 1:
|
|
3691
3639
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3692
|
-
errorCode = "UnknownError";
|
|
3693
3640
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3694
3641
|
_b = errorCode;
|
|
3695
3642
|
switch (_b) {
|
|
@@ -3737,10 +3684,12 @@ var deserializeAws_restJson1ImportComponentCommandError = function (output, cont
|
|
|
3737
3684
|
case 21: throw _d.sent();
|
|
3738
3685
|
case 22:
|
|
3739
3686
|
parsedBody = parsedOutput.body;
|
|
3687
|
+
$metadata = deserializeMetadata(output);
|
|
3688
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3740
3689
|
response = new __BaseException({
|
|
3741
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3742
3691
|
$fault: "client",
|
|
3743
|
-
$metadata:
|
|
3692
|
+
$metadata: $metadata,
|
|
3744
3693
|
});
|
|
3745
3694
|
throw __decorateServiceException(response, parsedBody);
|
|
3746
3695
|
}
|
|
@@ -3779,7 +3728,7 @@ export var deserializeAws_restJson1ImportVmImageCommand = function (output, cont
|
|
|
3779
3728
|
});
|
|
3780
3729
|
}); };
|
|
3781
3730
|
var deserializeAws_restJson1ImportVmImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3782
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3731
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3783
3732
|
var _c;
|
|
3784
3733
|
return __generator(this, function (_d) {
|
|
3785
3734
|
switch (_d.label) {
|
|
@@ -3789,7 +3738,6 @@ var deserializeAws_restJson1ImportVmImageCommandError = function (output, contex
|
|
|
3789
3738
|
return [4, parseBody(output.body, context)];
|
|
3790
3739
|
case 1:
|
|
3791
3740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3792
|
-
errorCode = "UnknownError";
|
|
3793
3741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3794
3742
|
_b = errorCode;
|
|
3795
3743
|
switch (_b) {
|
|
@@ -3809,10 +3757,12 @@ var deserializeAws_restJson1ImportVmImageCommandError = function (output, contex
|
|
|
3809
3757
|
case 7: throw _d.sent();
|
|
3810
3758
|
case 8:
|
|
3811
3759
|
parsedBody = parsedOutput.body;
|
|
3760
|
+
$metadata = deserializeMetadata(output);
|
|
3761
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3812
3762
|
response = new __BaseException({
|
|
3813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3814
3764
|
$fault: "client",
|
|
3815
|
-
$metadata:
|
|
3765
|
+
$metadata: $metadata,
|
|
3816
3766
|
});
|
|
3817
3767
|
throw __decorateServiceException(response, parsedBody);
|
|
3818
3768
|
}
|
|
@@ -3851,7 +3801,7 @@ export var deserializeAws_restJson1ListComponentBuildVersionsCommand = function
|
|
|
3851
3801
|
});
|
|
3852
3802
|
}); };
|
|
3853
3803
|
var deserializeAws_restJson1ListComponentBuildVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3854
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3804
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3855
3805
|
var _c;
|
|
3856
3806
|
return __generator(this, function (_d) {
|
|
3857
3807
|
switch (_d.label) {
|
|
@@ -3861,7 +3811,6 @@ var deserializeAws_restJson1ListComponentBuildVersionsCommandError = function (o
|
|
|
3861
3811
|
return [4, parseBody(output.body, context)];
|
|
3862
3812
|
case 1:
|
|
3863
3813
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3864
|
-
errorCode = "UnknownError";
|
|
3865
3814
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
3815
|
_b = errorCode;
|
|
3867
3816
|
switch (_b) {
|
|
@@ -3897,10 +3846,12 @@ var deserializeAws_restJson1ListComponentBuildVersionsCommandError = function (o
|
|
|
3897
3846
|
case 15: throw _d.sent();
|
|
3898
3847
|
case 16:
|
|
3899
3848
|
parsedBody = parsedOutput.body;
|
|
3849
|
+
$metadata = deserializeMetadata(output);
|
|
3850
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3900
3851
|
response = new __BaseException({
|
|
3901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3852
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3902
3853
|
$fault: "client",
|
|
3903
|
-
$metadata:
|
|
3854
|
+
$metadata: $metadata,
|
|
3904
3855
|
});
|
|
3905
3856
|
throw __decorateServiceException(response, parsedBody);
|
|
3906
3857
|
}
|
|
@@ -3939,7 +3890,7 @@ export var deserializeAws_restJson1ListComponentsCommand = function (output, con
|
|
|
3939
3890
|
});
|
|
3940
3891
|
}); };
|
|
3941
3892
|
var deserializeAws_restJson1ListComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3942
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3893
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3943
3894
|
var _c;
|
|
3944
3895
|
return __generator(this, function (_d) {
|
|
3945
3896
|
switch (_d.label) {
|
|
@@ -3949,7 +3900,6 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
|
|
|
3949
3900
|
return [4, parseBody(output.body, context)];
|
|
3950
3901
|
case 1:
|
|
3951
3902
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3952
|
-
errorCode = "UnknownError";
|
|
3953
3903
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3954
3904
|
_b = errorCode;
|
|
3955
3905
|
switch (_b) {
|
|
@@ -3985,10 +3935,12 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
|
|
|
3985
3935
|
case 15: throw _d.sent();
|
|
3986
3936
|
case 16:
|
|
3987
3937
|
parsedBody = parsedOutput.body;
|
|
3938
|
+
$metadata = deserializeMetadata(output);
|
|
3939
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3988
3940
|
response = new __BaseException({
|
|
3989
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3990
3942
|
$fault: "client",
|
|
3991
|
-
$metadata:
|
|
3943
|
+
$metadata: $metadata,
|
|
3992
3944
|
});
|
|
3993
3945
|
throw __decorateServiceException(response, parsedBody);
|
|
3994
3946
|
}
|
|
@@ -4027,7 +3979,7 @@ export var deserializeAws_restJson1ListContainerRecipesCommand = function (outpu
|
|
|
4027
3979
|
});
|
|
4028
3980
|
}); };
|
|
4029
3981
|
var deserializeAws_restJson1ListContainerRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4030
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3982
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4031
3983
|
var _c;
|
|
4032
3984
|
return __generator(this, function (_d) {
|
|
4033
3985
|
switch (_d.label) {
|
|
@@ -4037,7 +3989,6 @@ var deserializeAws_restJson1ListContainerRecipesCommandError = function (output,
|
|
|
4037
3989
|
return [4, parseBody(output.body, context)];
|
|
4038
3990
|
case 1:
|
|
4039
3991
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4040
|
-
errorCode = "UnknownError";
|
|
4041
3992
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4042
3993
|
_b = errorCode;
|
|
4043
3994
|
switch (_b) {
|
|
@@ -4073,10 +4024,12 @@ var deserializeAws_restJson1ListContainerRecipesCommandError = function (output,
|
|
|
4073
4024
|
case 15: throw _d.sent();
|
|
4074
4025
|
case 16:
|
|
4075
4026
|
parsedBody = parsedOutput.body;
|
|
4027
|
+
$metadata = deserializeMetadata(output);
|
|
4028
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4076
4029
|
response = new __BaseException({
|
|
4077
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4030
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4078
4031
|
$fault: "client",
|
|
4079
|
-
$metadata:
|
|
4032
|
+
$metadata: $metadata,
|
|
4080
4033
|
});
|
|
4081
4034
|
throw __decorateServiceException(response, parsedBody);
|
|
4082
4035
|
}
|
|
@@ -4115,7 +4068,7 @@ export var deserializeAws_restJson1ListDistributionConfigurationsCommand = funct
|
|
|
4115
4068
|
});
|
|
4116
4069
|
}); };
|
|
4117
4070
|
var deserializeAws_restJson1ListDistributionConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4118
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4071
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4119
4072
|
var _c;
|
|
4120
4073
|
return __generator(this, function (_d) {
|
|
4121
4074
|
switch (_d.label) {
|
|
@@ -4125,7 +4078,6 @@ var deserializeAws_restJson1ListDistributionConfigurationsCommandError = functio
|
|
|
4125
4078
|
return [4, parseBody(output.body, context)];
|
|
4126
4079
|
case 1:
|
|
4127
4080
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4128
|
-
errorCode = "UnknownError";
|
|
4129
4081
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
4082
|
_b = errorCode;
|
|
4131
4083
|
switch (_b) {
|
|
@@ -4161,10 +4113,12 @@ var deserializeAws_restJson1ListDistributionConfigurationsCommandError = functio
|
|
|
4161
4113
|
case 15: throw _d.sent();
|
|
4162
4114
|
case 16:
|
|
4163
4115
|
parsedBody = parsedOutput.body;
|
|
4116
|
+
$metadata = deserializeMetadata(output);
|
|
4117
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4164
4118
|
response = new __BaseException({
|
|
4165
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4166
4120
|
$fault: "client",
|
|
4167
|
-
$metadata:
|
|
4121
|
+
$metadata: $metadata,
|
|
4168
4122
|
});
|
|
4169
4123
|
throw __decorateServiceException(response, parsedBody);
|
|
4170
4124
|
}
|
|
@@ -4203,7 +4157,7 @@ export var deserializeAws_restJson1ListImageBuildVersionsCommand = function (out
|
|
|
4203
4157
|
});
|
|
4204
4158
|
}); };
|
|
4205
4159
|
var deserializeAws_restJson1ListImageBuildVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4206
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4160
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4207
4161
|
var _c;
|
|
4208
4162
|
return __generator(this, function (_d) {
|
|
4209
4163
|
switch (_d.label) {
|
|
@@ -4213,7 +4167,6 @@ var deserializeAws_restJson1ListImageBuildVersionsCommandError = function (outpu
|
|
|
4213
4167
|
return [4, parseBody(output.body, context)];
|
|
4214
4168
|
case 1:
|
|
4215
4169
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4216
|
-
errorCode = "UnknownError";
|
|
4217
4170
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4218
4171
|
_b = errorCode;
|
|
4219
4172
|
switch (_b) {
|
|
@@ -4249,10 +4202,12 @@ var deserializeAws_restJson1ListImageBuildVersionsCommandError = function (outpu
|
|
|
4249
4202
|
case 15: throw _d.sent();
|
|
4250
4203
|
case 16:
|
|
4251
4204
|
parsedBody = parsedOutput.body;
|
|
4205
|
+
$metadata = deserializeMetadata(output);
|
|
4206
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4252
4207
|
response = new __BaseException({
|
|
4253
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4254
4209
|
$fault: "client",
|
|
4255
|
-
$metadata:
|
|
4210
|
+
$metadata: $metadata,
|
|
4256
4211
|
});
|
|
4257
4212
|
throw __decorateServiceException(response, parsedBody);
|
|
4258
4213
|
}
|
|
@@ -4291,7 +4246,7 @@ export var deserializeAws_restJson1ListImagePackagesCommand = function (output,
|
|
|
4291
4246
|
});
|
|
4292
4247
|
}); };
|
|
4293
4248
|
var deserializeAws_restJson1ListImagePackagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4294
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4249
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4295
4250
|
var _c;
|
|
4296
4251
|
return __generator(this, function (_d) {
|
|
4297
4252
|
switch (_d.label) {
|
|
@@ -4301,7 +4256,6 @@ var deserializeAws_restJson1ListImagePackagesCommandError = function (output, co
|
|
|
4301
4256
|
return [4, parseBody(output.body, context)];
|
|
4302
4257
|
case 1:
|
|
4303
4258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4304
|
-
errorCode = "UnknownError";
|
|
4305
4259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4306
4260
|
_b = errorCode;
|
|
4307
4261
|
switch (_b) {
|
|
@@ -4341,10 +4295,12 @@ var deserializeAws_restJson1ListImagePackagesCommandError = function (output, co
|
|
|
4341
4295
|
case 17: throw _d.sent();
|
|
4342
4296
|
case 18:
|
|
4343
4297
|
parsedBody = parsedOutput.body;
|
|
4298
|
+
$metadata = deserializeMetadata(output);
|
|
4299
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4344
4300
|
response = new __BaseException({
|
|
4345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4346
4302
|
$fault: "client",
|
|
4347
|
-
$metadata:
|
|
4303
|
+
$metadata: $metadata,
|
|
4348
4304
|
});
|
|
4349
4305
|
throw __decorateServiceException(response, parsedBody);
|
|
4350
4306
|
}
|
|
@@ -4383,7 +4339,7 @@ export var deserializeAws_restJson1ListImagePipelineImagesCommand = function (ou
|
|
|
4383
4339
|
});
|
|
4384
4340
|
}); };
|
|
4385
4341
|
var deserializeAws_restJson1ListImagePipelineImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4386
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4342
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4387
4343
|
var _c;
|
|
4388
4344
|
return __generator(this, function (_d) {
|
|
4389
4345
|
switch (_d.label) {
|
|
@@ -4393,7 +4349,6 @@ var deserializeAws_restJson1ListImagePipelineImagesCommandError = function (outp
|
|
|
4393
4349
|
return [4, parseBody(output.body, context)];
|
|
4394
4350
|
case 1:
|
|
4395
4351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4396
|
-
errorCode = "UnknownError";
|
|
4397
4352
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4398
4353
|
_b = errorCode;
|
|
4399
4354
|
switch (_b) {
|
|
@@ -4433,10 +4388,12 @@ var deserializeAws_restJson1ListImagePipelineImagesCommandError = function (outp
|
|
|
4433
4388
|
case 17: throw _d.sent();
|
|
4434
4389
|
case 18:
|
|
4435
4390
|
parsedBody = parsedOutput.body;
|
|
4391
|
+
$metadata = deserializeMetadata(output);
|
|
4392
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4436
4393
|
response = new __BaseException({
|
|
4437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4438
4395
|
$fault: "client",
|
|
4439
|
-
$metadata:
|
|
4396
|
+
$metadata: $metadata,
|
|
4440
4397
|
});
|
|
4441
4398
|
throw __decorateServiceException(response, parsedBody);
|
|
4442
4399
|
}
|
|
@@ -4475,7 +4432,7 @@ export var deserializeAws_restJson1ListImagePipelinesCommand = function (output,
|
|
|
4475
4432
|
});
|
|
4476
4433
|
}); };
|
|
4477
4434
|
var deserializeAws_restJson1ListImagePipelinesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4478
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4435
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4479
4436
|
var _c;
|
|
4480
4437
|
return __generator(this, function (_d) {
|
|
4481
4438
|
switch (_d.label) {
|
|
@@ -4485,7 +4442,6 @@ var deserializeAws_restJson1ListImagePipelinesCommandError = function (output, c
|
|
|
4485
4442
|
return [4, parseBody(output.body, context)];
|
|
4486
4443
|
case 1:
|
|
4487
4444
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4488
|
-
errorCode = "UnknownError";
|
|
4489
4445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4490
4446
|
_b = errorCode;
|
|
4491
4447
|
switch (_b) {
|
|
@@ -4521,10 +4477,12 @@ var deserializeAws_restJson1ListImagePipelinesCommandError = function (output, c
|
|
|
4521
4477
|
case 15: throw _d.sent();
|
|
4522
4478
|
case 16:
|
|
4523
4479
|
parsedBody = parsedOutput.body;
|
|
4480
|
+
$metadata = deserializeMetadata(output);
|
|
4481
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4524
4482
|
response = new __BaseException({
|
|
4525
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4526
4484
|
$fault: "client",
|
|
4527
|
-
$metadata:
|
|
4485
|
+
$metadata: $metadata,
|
|
4528
4486
|
});
|
|
4529
4487
|
throw __decorateServiceException(response, parsedBody);
|
|
4530
4488
|
}
|
|
@@ -4563,7 +4521,7 @@ export var deserializeAws_restJson1ListImageRecipesCommand = function (output, c
|
|
|
4563
4521
|
});
|
|
4564
4522
|
}); };
|
|
4565
4523
|
var deserializeAws_restJson1ListImageRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4566
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4524
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4567
4525
|
var _c;
|
|
4568
4526
|
return __generator(this, function (_d) {
|
|
4569
4527
|
switch (_d.label) {
|
|
@@ -4573,7 +4531,6 @@ var deserializeAws_restJson1ListImageRecipesCommandError = function (output, con
|
|
|
4573
4531
|
return [4, parseBody(output.body, context)];
|
|
4574
4532
|
case 1:
|
|
4575
4533
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4576
|
-
errorCode = "UnknownError";
|
|
4577
4534
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4578
4535
|
_b = errorCode;
|
|
4579
4536
|
switch (_b) {
|
|
@@ -4609,10 +4566,12 @@ var deserializeAws_restJson1ListImageRecipesCommandError = function (output, con
|
|
|
4609
4566
|
case 15: throw _d.sent();
|
|
4610
4567
|
case 16:
|
|
4611
4568
|
parsedBody = parsedOutput.body;
|
|
4569
|
+
$metadata = deserializeMetadata(output);
|
|
4570
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4612
4571
|
response = new __BaseException({
|
|
4613
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4572
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4614
4573
|
$fault: "client",
|
|
4615
|
-
$metadata:
|
|
4574
|
+
$metadata: $metadata,
|
|
4616
4575
|
});
|
|
4617
4576
|
throw __decorateServiceException(response, parsedBody);
|
|
4618
4577
|
}
|
|
@@ -4651,7 +4610,7 @@ export var deserializeAws_restJson1ListImagesCommand = function (output, context
|
|
|
4651
4610
|
});
|
|
4652
4611
|
}); };
|
|
4653
4612
|
var deserializeAws_restJson1ListImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4654
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4613
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4655
4614
|
var _c;
|
|
4656
4615
|
return __generator(this, function (_d) {
|
|
4657
4616
|
switch (_d.label) {
|
|
@@ -4661,7 +4620,6 @@ var deserializeAws_restJson1ListImagesCommandError = function (output, context)
|
|
|
4661
4620
|
return [4, parseBody(output.body, context)];
|
|
4662
4621
|
case 1:
|
|
4663
4622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4664
|
-
errorCode = "UnknownError";
|
|
4665
4623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4666
4624
|
_b = errorCode;
|
|
4667
4625
|
switch (_b) {
|
|
@@ -4697,10 +4655,12 @@ var deserializeAws_restJson1ListImagesCommandError = function (output, context)
|
|
|
4697
4655
|
case 15: throw _d.sent();
|
|
4698
4656
|
case 16:
|
|
4699
4657
|
parsedBody = parsedOutput.body;
|
|
4658
|
+
$metadata = deserializeMetadata(output);
|
|
4659
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4700
4660
|
response = new __BaseException({
|
|
4701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4702
4662
|
$fault: "client",
|
|
4703
|
-
$metadata:
|
|
4663
|
+
$metadata: $metadata,
|
|
4704
4664
|
});
|
|
4705
4665
|
throw __decorateServiceException(response, parsedBody);
|
|
4706
4666
|
}
|
|
@@ -4740,7 +4700,7 @@ export var deserializeAws_restJson1ListInfrastructureConfigurationsCommand = fun
|
|
|
4740
4700
|
});
|
|
4741
4701
|
}); };
|
|
4742
4702
|
var deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4743
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4703
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4744
4704
|
var _c;
|
|
4745
4705
|
return __generator(this, function (_d) {
|
|
4746
4706
|
switch (_d.label) {
|
|
@@ -4750,7 +4710,6 @@ var deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = funct
|
|
|
4750
4710
|
return [4, parseBody(output.body, context)];
|
|
4751
4711
|
case 1:
|
|
4752
4712
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4753
|
-
errorCode = "UnknownError";
|
|
4754
4713
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4755
4714
|
_b = errorCode;
|
|
4756
4715
|
switch (_b) {
|
|
@@ -4786,10 +4745,12 @@ var deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = funct
|
|
|
4786
4745
|
case 15: throw _d.sent();
|
|
4787
4746
|
case 16:
|
|
4788
4747
|
parsedBody = parsedOutput.body;
|
|
4748
|
+
$metadata = deserializeMetadata(output);
|
|
4749
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4789
4750
|
response = new __BaseException({
|
|
4790
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4791
4752
|
$fault: "client",
|
|
4792
|
-
$metadata:
|
|
4753
|
+
$metadata: $metadata,
|
|
4793
4754
|
});
|
|
4794
4755
|
throw __decorateServiceException(response, parsedBody);
|
|
4795
4756
|
}
|
|
@@ -4820,7 +4781,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
4820
4781
|
});
|
|
4821
4782
|
}); };
|
|
4822
4783
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4823
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4784
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4824
4785
|
var _c;
|
|
4825
4786
|
return __generator(this, function (_d) {
|
|
4826
4787
|
switch (_d.label) {
|
|
@@ -4830,7 +4791,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4830
4791
|
return [4, parseBody(output.body, context)];
|
|
4831
4792
|
case 1:
|
|
4832
4793
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4833
|
-
errorCode = "UnknownError";
|
|
4834
4794
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4835
4795
|
_b = errorCode;
|
|
4836
4796
|
switch (_b) {
|
|
@@ -4850,10 +4810,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
4850
4810
|
case 7: throw _d.sent();
|
|
4851
4811
|
case 8:
|
|
4852
4812
|
parsedBody = parsedOutput.body;
|
|
4813
|
+
$metadata = deserializeMetadata(output);
|
|
4814
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4853
4815
|
response = new __BaseException({
|
|
4854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4816
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4855
4817
|
$fault: "client",
|
|
4856
|
-
$metadata:
|
|
4818
|
+
$metadata: $metadata,
|
|
4857
4819
|
});
|
|
4858
4820
|
throw __decorateServiceException(response, parsedBody);
|
|
4859
4821
|
}
|
|
@@ -4888,7 +4850,7 @@ export var deserializeAws_restJson1PutComponentPolicyCommand = function (output,
|
|
|
4888
4850
|
});
|
|
4889
4851
|
}); };
|
|
4890
4852
|
var deserializeAws_restJson1PutComponentPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4891
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4853
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4892
4854
|
var _c;
|
|
4893
4855
|
return __generator(this, function (_d) {
|
|
4894
4856
|
switch (_d.label) {
|
|
@@ -4898,7 +4860,6 @@ var deserializeAws_restJson1PutComponentPolicyCommandError = function (output, c
|
|
|
4898
4860
|
return [4, parseBody(output.body, context)];
|
|
4899
4861
|
case 1:
|
|
4900
4862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4901
|
-
errorCode = "UnknownError";
|
|
4902
4863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4903
4864
|
_b = errorCode;
|
|
4904
4865
|
switch (_b) {
|
|
@@ -4938,10 +4899,12 @@ var deserializeAws_restJson1PutComponentPolicyCommandError = function (output, c
|
|
|
4938
4899
|
case 17: throw _d.sent();
|
|
4939
4900
|
case 18:
|
|
4940
4901
|
parsedBody = parsedOutput.body;
|
|
4902
|
+
$metadata = deserializeMetadata(output);
|
|
4903
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4941
4904
|
response = new __BaseException({
|
|
4942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4943
4906
|
$fault: "client",
|
|
4944
|
-
$metadata:
|
|
4907
|
+
$metadata: $metadata,
|
|
4945
4908
|
});
|
|
4946
4909
|
throw __decorateServiceException(response, parsedBody);
|
|
4947
4910
|
}
|
|
@@ -4976,7 +4939,7 @@ export var deserializeAws_restJson1PutContainerRecipePolicyCommand = function (o
|
|
|
4976
4939
|
});
|
|
4977
4940
|
}); };
|
|
4978
4941
|
var deserializeAws_restJson1PutContainerRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4979
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4942
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4980
4943
|
var _c;
|
|
4981
4944
|
return __generator(this, function (_d) {
|
|
4982
4945
|
switch (_d.label) {
|
|
@@ -4986,7 +4949,6 @@ var deserializeAws_restJson1PutContainerRecipePolicyCommandError = function (out
|
|
|
4986
4949
|
return [4, parseBody(output.body, context)];
|
|
4987
4950
|
case 1:
|
|
4988
4951
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4989
|
-
errorCode = "UnknownError";
|
|
4990
4952
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4991
4953
|
_b = errorCode;
|
|
4992
4954
|
switch (_b) {
|
|
@@ -5026,10 +4988,12 @@ var deserializeAws_restJson1PutContainerRecipePolicyCommandError = function (out
|
|
|
5026
4988
|
case 17: throw _d.sent();
|
|
5027
4989
|
case 18:
|
|
5028
4990
|
parsedBody = parsedOutput.body;
|
|
4991
|
+
$metadata = deserializeMetadata(output);
|
|
4992
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5029
4993
|
response = new __BaseException({
|
|
5030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5031
4995
|
$fault: "client",
|
|
5032
|
-
$metadata:
|
|
4996
|
+
$metadata: $metadata,
|
|
5033
4997
|
});
|
|
5034
4998
|
throw __decorateServiceException(response, parsedBody);
|
|
5035
4999
|
}
|
|
@@ -5064,7 +5028,7 @@ export var deserializeAws_restJson1PutImagePolicyCommand = function (output, con
|
|
|
5064
5028
|
});
|
|
5065
5029
|
}); };
|
|
5066
5030
|
var deserializeAws_restJson1PutImagePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5067
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5031
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5068
5032
|
var _c;
|
|
5069
5033
|
return __generator(this, function (_d) {
|
|
5070
5034
|
switch (_d.label) {
|
|
@@ -5074,7 +5038,6 @@ var deserializeAws_restJson1PutImagePolicyCommandError = function (output, conte
|
|
|
5074
5038
|
return [4, parseBody(output.body, context)];
|
|
5075
5039
|
case 1:
|
|
5076
5040
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5077
|
-
errorCode = "UnknownError";
|
|
5078
5041
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5079
5042
|
_b = errorCode;
|
|
5080
5043
|
switch (_b) {
|
|
@@ -5114,10 +5077,12 @@ var deserializeAws_restJson1PutImagePolicyCommandError = function (output, conte
|
|
|
5114
5077
|
case 17: throw _d.sent();
|
|
5115
5078
|
case 18:
|
|
5116
5079
|
parsedBody = parsedOutput.body;
|
|
5080
|
+
$metadata = deserializeMetadata(output);
|
|
5081
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5117
5082
|
response = new __BaseException({
|
|
5118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5119
5084
|
$fault: "client",
|
|
5120
|
-
$metadata:
|
|
5085
|
+
$metadata: $metadata,
|
|
5121
5086
|
});
|
|
5122
5087
|
throw __decorateServiceException(response, parsedBody);
|
|
5123
5088
|
}
|
|
@@ -5152,7 +5117,7 @@ export var deserializeAws_restJson1PutImageRecipePolicyCommand = function (outpu
|
|
|
5152
5117
|
});
|
|
5153
5118
|
}); };
|
|
5154
5119
|
var deserializeAws_restJson1PutImageRecipePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5155
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5120
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5156
5121
|
var _c;
|
|
5157
5122
|
return __generator(this, function (_d) {
|
|
5158
5123
|
switch (_d.label) {
|
|
@@ -5162,7 +5127,6 @@ var deserializeAws_restJson1PutImageRecipePolicyCommandError = function (output,
|
|
|
5162
5127
|
return [4, parseBody(output.body, context)];
|
|
5163
5128
|
case 1:
|
|
5164
5129
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5165
|
-
errorCode = "UnknownError";
|
|
5166
5130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5167
5131
|
_b = errorCode;
|
|
5168
5132
|
switch (_b) {
|
|
@@ -5202,10 +5166,12 @@ var deserializeAws_restJson1PutImageRecipePolicyCommandError = function (output,
|
|
|
5202
5166
|
case 17: throw _d.sent();
|
|
5203
5167
|
case 18:
|
|
5204
5168
|
parsedBody = parsedOutput.body;
|
|
5169
|
+
$metadata = deserializeMetadata(output);
|
|
5170
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5205
5171
|
response = new __BaseException({
|
|
5206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5207
5173
|
$fault: "client",
|
|
5208
|
-
$metadata:
|
|
5174
|
+
$metadata: $metadata,
|
|
5209
5175
|
});
|
|
5210
5176
|
throw __decorateServiceException(response, parsedBody);
|
|
5211
5177
|
}
|
|
@@ -5244,7 +5210,7 @@ export var deserializeAws_restJson1StartImagePipelineExecutionCommand = function
|
|
|
5244
5210
|
});
|
|
5245
5211
|
}); };
|
|
5246
5212
|
var deserializeAws_restJson1StartImagePipelineExecutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5247
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5213
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5248
5214
|
var _c;
|
|
5249
5215
|
return __generator(this, function (_d) {
|
|
5250
5216
|
switch (_d.label) {
|
|
@@ -5254,7 +5220,6 @@ var deserializeAws_restJson1StartImagePipelineExecutionCommandError = function (
|
|
|
5254
5220
|
return [4, parseBody(output.body, context)];
|
|
5255
5221
|
case 1:
|
|
5256
5222
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5257
|
-
errorCode = "UnknownError";
|
|
5258
5223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5259
5224
|
_b = errorCode;
|
|
5260
5225
|
switch (_b) {
|
|
@@ -5298,10 +5263,12 @@ var deserializeAws_restJson1StartImagePipelineExecutionCommandError = function (
|
|
|
5298
5263
|
case 19: throw _d.sent();
|
|
5299
5264
|
case 20:
|
|
5300
5265
|
parsedBody = parsedOutput.body;
|
|
5266
|
+
$metadata = deserializeMetadata(output);
|
|
5267
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5301
5268
|
response = new __BaseException({
|
|
5302
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5269
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5303
5270
|
$fault: "client",
|
|
5304
|
-
$metadata:
|
|
5271
|
+
$metadata: $metadata,
|
|
5305
5272
|
});
|
|
5306
5273
|
throw __decorateServiceException(response, parsedBody);
|
|
5307
5274
|
}
|
|
@@ -5326,7 +5293,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
5326
5293
|
});
|
|
5327
5294
|
}); };
|
|
5328
5295
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5329
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5296
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5330
5297
|
var _c;
|
|
5331
5298
|
return __generator(this, function (_d) {
|
|
5332
5299
|
switch (_d.label) {
|
|
@@ -5336,7 +5303,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5336
5303
|
return [4, parseBody(output.body, context)];
|
|
5337
5304
|
case 1:
|
|
5338
5305
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5339
|
-
errorCode = "UnknownError";
|
|
5340
5306
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5341
5307
|
_b = errorCode;
|
|
5342
5308
|
switch (_b) {
|
|
@@ -5356,10 +5322,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5356
5322
|
case 7: throw _d.sent();
|
|
5357
5323
|
case 8:
|
|
5358
5324
|
parsedBody = parsedOutput.body;
|
|
5325
|
+
$metadata = deserializeMetadata(output);
|
|
5326
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5359
5327
|
response = new __BaseException({
|
|
5360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5328
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5361
5329
|
$fault: "client",
|
|
5362
|
-
$metadata:
|
|
5330
|
+
$metadata: $metadata,
|
|
5363
5331
|
});
|
|
5364
5332
|
throw __decorateServiceException(response, parsedBody);
|
|
5365
5333
|
}
|
|
@@ -5384,7 +5352,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
5384
5352
|
});
|
|
5385
5353
|
}); };
|
|
5386
5354
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5387
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5355
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5388
5356
|
var _c;
|
|
5389
5357
|
return __generator(this, function (_d) {
|
|
5390
5358
|
switch (_d.label) {
|
|
@@ -5394,7 +5362,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5394
5362
|
return [4, parseBody(output.body, context)];
|
|
5395
5363
|
case 1:
|
|
5396
5364
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5397
|
-
errorCode = "UnknownError";
|
|
5398
5365
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5399
5366
|
_b = errorCode;
|
|
5400
5367
|
switch (_b) {
|
|
@@ -5414,10 +5381,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5414
5381
|
case 7: throw _d.sent();
|
|
5415
5382
|
case 8:
|
|
5416
5383
|
parsedBody = parsedOutput.body;
|
|
5384
|
+
$metadata = deserializeMetadata(output);
|
|
5385
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5417
5386
|
response = new __BaseException({
|
|
5418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5419
5388
|
$fault: "client",
|
|
5420
|
-
$metadata:
|
|
5389
|
+
$metadata: $metadata,
|
|
5421
5390
|
});
|
|
5422
5391
|
throw __decorateServiceException(response, parsedBody);
|
|
5423
5392
|
}
|
|
@@ -5456,7 +5425,7 @@ export var deserializeAws_restJson1UpdateDistributionConfigurationCommand = func
|
|
|
5456
5425
|
});
|
|
5457
5426
|
}); };
|
|
5458
5427
|
var deserializeAws_restJson1UpdateDistributionConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5459
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5428
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5460
5429
|
var _c;
|
|
5461
5430
|
return __generator(this, function (_d) {
|
|
5462
5431
|
switch (_d.label) {
|
|
@@ -5466,7 +5435,6 @@ var deserializeAws_restJson1UpdateDistributionConfigurationCommandError = functi
|
|
|
5466
5435
|
return [4, parseBody(output.body, context)];
|
|
5467
5436
|
case 1:
|
|
5468
5437
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5469
|
-
errorCode = "UnknownError";
|
|
5470
5438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5471
5439
|
_b = errorCode;
|
|
5472
5440
|
switch (_b) {
|
|
@@ -5510,10 +5478,12 @@ var deserializeAws_restJson1UpdateDistributionConfigurationCommandError = functi
|
|
|
5510
5478
|
case 19: throw _d.sent();
|
|
5511
5479
|
case 20:
|
|
5512
5480
|
parsedBody = parsedOutput.body;
|
|
5481
|
+
$metadata = deserializeMetadata(output);
|
|
5482
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5513
5483
|
response = new __BaseException({
|
|
5514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5515
5485
|
$fault: "client",
|
|
5516
|
-
$metadata:
|
|
5486
|
+
$metadata: $metadata,
|
|
5517
5487
|
});
|
|
5518
5488
|
throw __decorateServiceException(response, parsedBody);
|
|
5519
5489
|
}
|
|
@@ -5552,7 +5522,7 @@ export var deserializeAws_restJson1UpdateImagePipelineCommand = function (output
|
|
|
5552
5522
|
});
|
|
5553
5523
|
}); };
|
|
5554
5524
|
var deserializeAws_restJson1UpdateImagePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5555
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5525
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5556
5526
|
var _c;
|
|
5557
5527
|
return __generator(this, function (_d) {
|
|
5558
5528
|
switch (_d.label) {
|
|
@@ -5562,7 +5532,6 @@ var deserializeAws_restJson1UpdateImagePipelineCommandError = function (output,
|
|
|
5562
5532
|
return [4, parseBody(output.body, context)];
|
|
5563
5533
|
case 1:
|
|
5564
5534
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5565
|
-
errorCode = "UnknownError";
|
|
5566
5535
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5567
5536
|
_b = errorCode;
|
|
5568
5537
|
switch (_b) {
|
|
@@ -5602,10 +5571,12 @@ var deserializeAws_restJson1UpdateImagePipelineCommandError = function (output,
|
|
|
5602
5571
|
case 17: throw _d.sent();
|
|
5603
5572
|
case 18:
|
|
5604
5573
|
parsedBody = parsedOutput.body;
|
|
5574
|
+
$metadata = deserializeMetadata(output);
|
|
5575
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5605
5576
|
response = new __BaseException({
|
|
5606
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5607
5578
|
$fault: "client",
|
|
5608
|
-
$metadata:
|
|
5579
|
+
$metadata: $metadata,
|
|
5609
5580
|
});
|
|
5610
5581
|
throw __decorateServiceException(response, parsedBody);
|
|
5611
5582
|
}
|
|
@@ -5644,7 +5615,7 @@ export var deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = fu
|
|
|
5644
5615
|
});
|
|
5645
5616
|
}); };
|
|
5646
5617
|
var deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5647
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5618
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5648
5619
|
var _c;
|
|
5649
5620
|
return __generator(this, function (_d) {
|
|
5650
5621
|
switch (_d.label) {
|
|
@@ -5654,7 +5625,6 @@ var deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = func
|
|
|
5654
5625
|
return [4, parseBody(output.body, context)];
|
|
5655
5626
|
case 1:
|
|
5656
5627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5657
|
-
errorCode = "UnknownError";
|
|
5658
5628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5659
5629
|
_b = errorCode;
|
|
5660
5630
|
switch (_b) {
|
|
@@ -5694,10 +5664,12 @@ var deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = func
|
|
|
5694
5664
|
case 17: throw _d.sent();
|
|
5695
5665
|
case 18:
|
|
5696
5666
|
parsedBody = parsedOutput.body;
|
|
5667
|
+
$metadata = deserializeMetadata(output);
|
|
5668
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5697
5669
|
response = new __BaseException({
|
|
5698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5699
5671
|
$fault: "client",
|
|
5700
|
-
$metadata:
|
|
5672
|
+
$metadata: $metadata,
|
|
5701
5673
|
});
|
|
5702
5674
|
throw __decorateServiceException(response, parsedBody);
|
|
5703
5675
|
}
|
|
@@ -5918,25 +5890,19 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
5918
5890
|
});
|
|
5919
5891
|
};
|
|
5920
5892
|
var serializeAws_restJson1AdditionalInstanceConfiguration = function (input, context) {
|
|
5921
|
-
return __assign(__assign({}, (input.systemsManagerAgent
|
|
5922
|
-
input.systemsManagerAgent !== null && {
|
|
5893
|
+
return __assign(__assign({}, (input.systemsManagerAgent != null && {
|
|
5923
5894
|
systemsManagerAgent: serializeAws_restJson1SystemsManagerAgent(input.systemsManagerAgent, context),
|
|
5924
|
-
})), (input.userDataOverride
|
|
5925
|
-
input.userDataOverride !== null && { userDataOverride: input.userDataOverride }));
|
|
5895
|
+
})), (input.userDataOverride != null && { userDataOverride: input.userDataOverride }));
|
|
5926
5896
|
};
|
|
5927
5897
|
var serializeAws_restJson1AmiDistributionConfiguration = function (input, context) {
|
|
5928
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiTags
|
|
5929
|
-
input.amiTags !== null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.launchPermission !== undefined &&
|
|
5930
|
-
input.launchPermission !== null && {
|
|
5898
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiTags != null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) })), (input.description != null && { description: input.description })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.launchPermission != null && {
|
|
5931
5899
|
launchPermission: serializeAws_restJson1LaunchPermissionConfiguration(input.launchPermission, context),
|
|
5932
|
-
})), (input.name
|
|
5933
|
-
input.targetAccountIds !== null && {
|
|
5900
|
+
})), (input.name != null && { name: input.name })), (input.targetAccountIds != null && {
|
|
5934
5901
|
targetAccountIds: serializeAws_restJson1AccountList(input.targetAccountIds, context),
|
|
5935
5902
|
}));
|
|
5936
5903
|
};
|
|
5937
5904
|
var serializeAws_restJson1ComponentConfiguration = function (input, context) {
|
|
5938
|
-
return __assign(__assign({}, (input.componentArn
|
|
5939
|
-
input.parameters !== null && {
|
|
5905
|
+
return __assign(__assign({}, (input.componentArn != null && { componentArn: input.componentArn })), (input.parameters != null && {
|
|
5940
5906
|
parameters: serializeAws_restJson1ComponentParameterList(input.parameters, context),
|
|
5941
5907
|
}));
|
|
5942
5908
|
};
|
|
@@ -5951,8 +5917,7 @@ var serializeAws_restJson1ComponentConfigurationList = function (input, context)
|
|
|
5951
5917
|
});
|
|
5952
5918
|
};
|
|
5953
5919
|
var serializeAws_restJson1ComponentParameter = function (input, context) {
|
|
5954
|
-
return __assign(__assign({}, (input.name
|
|
5955
|
-
input.value !== null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }));
|
|
5920
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }));
|
|
5956
5921
|
};
|
|
5957
5922
|
var serializeAws_restJson1ComponentParameterList = function (input, context) {
|
|
5958
5923
|
return input
|
|
@@ -5975,32 +5940,24 @@ var serializeAws_restJson1ComponentParameterValueList = function (input, context
|
|
|
5975
5940
|
});
|
|
5976
5941
|
};
|
|
5977
5942
|
var serializeAws_restJson1ContainerDistributionConfiguration = function (input, context) {
|
|
5978
|
-
return __assign(__assign(__assign({}, (input.containerTags
|
|
5979
|
-
input.containerTags !== null && {
|
|
5943
|
+
return __assign(__assign(__assign({}, (input.containerTags != null && {
|
|
5980
5944
|
containerTags: serializeAws_restJson1StringList(input.containerTags, context),
|
|
5981
|
-
})), (input.description
|
|
5982
|
-
input.targetRepository !== null && {
|
|
5945
|
+
})), (input.description != null && { description: input.description })), (input.targetRepository != null && {
|
|
5983
5946
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
5984
5947
|
}));
|
|
5985
5948
|
};
|
|
5986
5949
|
var serializeAws_restJson1Distribution = function (input, context) {
|
|
5987
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration
|
|
5988
|
-
input.amiDistributionConfiguration !== null && {
|
|
5950
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration != null && {
|
|
5989
5951
|
amiDistributionConfiguration: serializeAws_restJson1AmiDistributionConfiguration(input.amiDistributionConfiguration, context),
|
|
5990
|
-
})), (input.containerDistributionConfiguration
|
|
5991
|
-
input.containerDistributionConfiguration !== null && {
|
|
5952
|
+
})), (input.containerDistributionConfiguration != null && {
|
|
5992
5953
|
containerDistributionConfiguration: serializeAws_restJson1ContainerDistributionConfiguration(input.containerDistributionConfiguration, context),
|
|
5993
|
-
})), (input.fastLaunchConfigurations
|
|
5994
|
-
input.fastLaunchConfigurations !== null && {
|
|
5954
|
+
})), (input.fastLaunchConfigurations != null && {
|
|
5995
5955
|
fastLaunchConfigurations: serializeAws_restJson1FastLaunchConfigurationList(input.fastLaunchConfigurations, context),
|
|
5996
|
-
})), (input.launchTemplateConfigurations
|
|
5997
|
-
input.launchTemplateConfigurations !== null && {
|
|
5956
|
+
})), (input.launchTemplateConfigurations != null && {
|
|
5998
5957
|
launchTemplateConfigurations: serializeAws_restJson1LaunchTemplateConfigurationList(input.launchTemplateConfigurations, context),
|
|
5999
|
-
})), (input.licenseConfigurationArns
|
|
6000
|
-
input.licenseConfigurationArns !== null && {
|
|
5958
|
+
})), (input.licenseConfigurationArns != null && {
|
|
6001
5959
|
licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
|
|
6002
|
-
})), (input.region
|
|
6003
|
-
input.s3ExportConfiguration !== null && {
|
|
5960
|
+
})), (input.region != null && { region: input.region })), (input.s3ExportConfiguration != null && {
|
|
6004
5961
|
s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
|
|
6005
5962
|
}));
|
|
6006
5963
|
};
|
|
@@ -6015,16 +5972,12 @@ var serializeAws_restJson1DistributionList = function (input, context) {
|
|
|
6015
5972
|
});
|
|
6016
5973
|
};
|
|
6017
5974
|
var serializeAws_restJson1EbsInstanceBlockDeviceSpecification = function (input, context) {
|
|
6018
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deleteOnTermination
|
|
6019
|
-
input.deleteOnTermination !== null && { deleteOnTermination: input.deleteOnTermination })), (input.encrypted !== undefined && input.encrypted !== null && { encrypted: input.encrypted })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.snapshotId !== undefined && input.snapshotId !== null && { snapshotId: input.snapshotId })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput })), (input.volumeSize !== undefined && input.volumeSize !== null && { volumeSize: input.volumeSize })), (input.volumeType !== undefined && input.volumeType !== null && { volumeType: input.volumeType }));
|
|
5975
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deleteOnTermination != null && { deleteOnTermination: input.deleteOnTermination })), (input.encrypted != null && { encrypted: input.encrypted })), (input.iops != null && { iops: input.iops })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.snapshotId != null && { snapshotId: input.snapshotId })), (input.throughput != null && { throughput: input.throughput })), (input.volumeSize != null && { volumeSize: input.volumeSize })), (input.volumeType != null && { volumeType: input.volumeType }));
|
|
6020
5976
|
};
|
|
6021
5977
|
var serializeAws_restJson1FastLaunchConfiguration = function (input, context) {
|
|
6022
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountId
|
|
6023
|
-
input.launchTemplate !== null && {
|
|
5978
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.enabled != null && { enabled: input.enabled })), (input.launchTemplate != null && {
|
|
6024
5979
|
launchTemplate: serializeAws_restJson1FastLaunchLaunchTemplateSpecification(input.launchTemplate, context),
|
|
6025
|
-
})), (input.maxParallelLaunches
|
|
6026
|
-
input.maxParallelLaunches !== null && { maxParallelLaunches: input.maxParallelLaunches })), (input.snapshotConfiguration !== undefined &&
|
|
6027
|
-
input.snapshotConfiguration !== null && {
|
|
5980
|
+
})), (input.maxParallelLaunches != null && { maxParallelLaunches: input.maxParallelLaunches })), (input.snapshotConfiguration != null && {
|
|
6028
5981
|
snapshotConfiguration: serializeAws_restJson1FastLaunchSnapshotConfiguration(input.snapshotConfiguration, context),
|
|
6029
5982
|
}));
|
|
6030
5983
|
};
|
|
@@ -6039,18 +5992,13 @@ var serializeAws_restJson1FastLaunchConfigurationList = function (input, context
|
|
|
6039
5992
|
});
|
|
6040
5993
|
};
|
|
6041
5994
|
var serializeAws_restJson1FastLaunchLaunchTemplateSpecification = function (input, context) {
|
|
6042
|
-
return __assign(__assign(__assign({}, (input.launchTemplateId
|
|
6043
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName !== undefined &&
|
|
6044
|
-
input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName })), (input.launchTemplateVersion !== undefined &&
|
|
6045
|
-
input.launchTemplateVersion !== null && { launchTemplateVersion: input.launchTemplateVersion }));
|
|
5995
|
+
return __assign(__assign(__assign({}, (input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName })), (input.launchTemplateVersion != null && { launchTemplateVersion: input.launchTemplateVersion }));
|
|
6046
5996
|
};
|
|
6047
5997
|
var serializeAws_restJson1FastLaunchSnapshotConfiguration = function (input, context) {
|
|
6048
|
-
return __assign({}, (input.targetResourceCount
|
|
6049
|
-
input.targetResourceCount !== null && { targetResourceCount: input.targetResourceCount }));
|
|
5998
|
+
return __assign({}, (input.targetResourceCount != null && { targetResourceCount: input.targetResourceCount }));
|
|
6050
5999
|
};
|
|
6051
6000
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
6052
|
-
return __assign(__assign({}, (input.name
|
|
6053
|
-
input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
|
|
6001
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
|
|
6054
6002
|
};
|
|
6055
6003
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
6056
6004
|
return input
|
|
@@ -6073,13 +6021,10 @@ var serializeAws_restJson1FilterValues = function (input, context) {
|
|
|
6073
6021
|
});
|
|
6074
6022
|
};
|
|
6075
6023
|
var serializeAws_restJson1ImageTestsConfiguration = function (input, context) {
|
|
6076
|
-
return __assign(__assign({}, (input.imageTestsEnabled
|
|
6077
|
-
input.imageTestsEnabled !== null && { imageTestsEnabled: input.imageTestsEnabled })), (input.timeoutMinutes !== undefined &&
|
|
6078
|
-
input.timeoutMinutes !== null && { timeoutMinutes: input.timeoutMinutes }));
|
|
6024
|
+
return __assign(__assign({}, (input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled })), (input.timeoutMinutes != null && { timeoutMinutes: input.timeoutMinutes }));
|
|
6079
6025
|
};
|
|
6080
6026
|
var serializeAws_restJson1InstanceBlockDeviceMapping = function (input, context) {
|
|
6081
|
-
return __assign(__assign(__assign(__assign({}, (input.deviceName
|
|
6082
|
-
input.ebs !== null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) })), (input.noDevice !== undefined && input.noDevice !== null && { noDevice: input.noDevice })), (input.virtualName !== undefined && input.virtualName !== null && { virtualName: input.virtualName }));
|
|
6027
|
+
return __assign(__assign(__assign(__assign({}, (input.deviceName != null && { deviceName: input.deviceName })), (input.ebs != null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) })), (input.noDevice != null && { noDevice: input.noDevice })), (input.virtualName != null && { virtualName: input.virtualName }));
|
|
6083
6028
|
};
|
|
6084
6029
|
var serializeAws_restJson1InstanceBlockDeviceMappings = function (input, context) {
|
|
6085
6030
|
return input
|
|
@@ -6092,14 +6037,12 @@ var serializeAws_restJson1InstanceBlockDeviceMappings = function (input, context
|
|
|
6092
6037
|
});
|
|
6093
6038
|
};
|
|
6094
6039
|
var serializeAws_restJson1InstanceConfiguration = function (input, context) {
|
|
6095
|
-
return __assign(__assign({}, (input.blockDeviceMappings
|
|
6096
|
-
input.blockDeviceMappings !== null && {
|
|
6040
|
+
return __assign(__assign({}, (input.blockDeviceMappings != null && {
|
|
6097
6041
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
6098
|
-
})), (input.image
|
|
6042
|
+
})), (input.image != null && { image: input.image }));
|
|
6099
6043
|
};
|
|
6100
6044
|
var serializeAws_restJson1InstanceMetadataOptions = function (input, context) {
|
|
6101
|
-
return __assign(__assign({}, (input.httpPutResponseHopLimit
|
|
6102
|
-
input.httpPutResponseHopLimit !== null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit })), (input.httpTokens !== undefined && input.httpTokens !== null && { httpTokens: input.httpTokens }));
|
|
6045
|
+
return __assign(__assign({}, (input.httpPutResponseHopLimit != null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit })), (input.httpTokens != null && { httpTokens: input.httpTokens }));
|
|
6103
6046
|
};
|
|
6104
6047
|
var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
6105
6048
|
return input
|
|
@@ -6112,20 +6055,14 @@ var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
|
6112
6055
|
});
|
|
6113
6056
|
};
|
|
6114
6057
|
var serializeAws_restJson1LaunchPermissionConfiguration = function (input, context) {
|
|
6115
|
-
return __assign(__assign(__assign(__assign({}, (input.organizationArns
|
|
6116
|
-
input.organizationArns !== null && {
|
|
6058
|
+
return __assign(__assign(__assign(__assign({}, (input.organizationArns != null && {
|
|
6117
6059
|
organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
|
|
6118
|
-
})), (input.organizationalUnitArns
|
|
6119
|
-
input.organizationalUnitArns !== null && {
|
|
6060
|
+
})), (input.organizationalUnitArns != null && {
|
|
6120
6061
|
organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
|
|
6121
|
-
})), (input.userGroups
|
|
6122
|
-
input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) })), (input.userIds !== undefined &&
|
|
6123
|
-
input.userIds !== null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }));
|
|
6062
|
+
})), (input.userGroups != null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) })), (input.userIds != null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }));
|
|
6124
6063
|
};
|
|
6125
6064
|
var serializeAws_restJson1LaunchTemplateConfiguration = function (input, context) {
|
|
6126
|
-
return __assign(__assign(__assign({}, (input.accountId
|
|
6127
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.setDefaultVersion !== undefined &&
|
|
6128
|
-
input.setDefaultVersion !== null && { setDefaultVersion: input.setDefaultVersion }));
|
|
6065
|
+
return __assign(__assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId })), (input.setDefaultVersion != null && { setDefaultVersion: input.setDefaultVersion }));
|
|
6129
6066
|
};
|
|
6130
6067
|
var serializeAws_restJson1LaunchTemplateConfigurationList = function (input, context) {
|
|
6131
6068
|
return input
|
|
@@ -6148,8 +6085,7 @@ var serializeAws_restJson1LicenseConfigurationArnList = function (input, context
|
|
|
6148
6085
|
});
|
|
6149
6086
|
};
|
|
6150
6087
|
var serializeAws_restJson1Logging = function (input, context) {
|
|
6151
|
-
return __assign({}, (input.s3Logs
|
|
6152
|
-
input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }));
|
|
6088
|
+
return __assign({}, (input.s3Logs != null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }));
|
|
6153
6089
|
};
|
|
6154
6090
|
var serializeAws_restJson1OrganizationalUnitArnList = function (input, context) {
|
|
6155
6091
|
return input
|
|
@@ -6192,18 +6128,15 @@ var serializeAws_restJson1ResourceTagMap = function (input, context) {
|
|
|
6192
6128
|
}, {});
|
|
6193
6129
|
};
|
|
6194
6130
|
var serializeAws_restJson1S3ExportConfiguration = function (input, context) {
|
|
6195
|
-
return __assign(__assign(__assign(__assign({}, (input.diskImageFormat
|
|
6196
|
-
input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat })), (input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName })), (input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket })), (input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }));
|
|
6131
|
+
return __assign(__assign(__assign(__assign({}, (input.diskImageFormat != null && { diskImageFormat: input.diskImageFormat })), (input.roleName != null && { roleName: input.roleName })), (input.s3Bucket != null && { s3Bucket: input.s3Bucket })), (input.s3Prefix != null && { s3Prefix: input.s3Prefix }));
|
|
6197
6132
|
};
|
|
6198
6133
|
var serializeAws_restJson1S3Logs = function (input, context) {
|
|
6199
|
-
return __assign(__assign({}, (input.s3BucketName
|
|
6134
|
+
return __assign(__assign({}, (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }));
|
|
6200
6135
|
};
|
|
6201
6136
|
var serializeAws_restJson1Schedule = function (input, context) {
|
|
6202
|
-
return __assign(__assign(__assign({}, (input.pipelineExecutionStartCondition
|
|
6203
|
-
input.pipelineExecutionStartCondition !== null && {
|
|
6137
|
+
return __assign(__assign(__assign({}, (input.pipelineExecutionStartCondition != null && {
|
|
6204
6138
|
pipelineExecutionStartCondition: input.pipelineExecutionStartCondition,
|
|
6205
|
-
})), (input.scheduleExpression
|
|
6206
|
-
input.scheduleExpression !== null && { scheduleExpression: input.scheduleExpression })), (input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }));
|
|
6139
|
+
})), (input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression })), (input.timezone != null && { timezone: input.timezone }));
|
|
6207
6140
|
};
|
|
6208
6141
|
var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
6209
6142
|
return input
|
|
@@ -6226,8 +6159,7 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
6226
6159
|
});
|
|
6227
6160
|
};
|
|
6228
6161
|
var serializeAws_restJson1SystemsManagerAgent = function (input, context) {
|
|
6229
|
-
return __assign({}, (input.uninstallAfterBuild
|
|
6230
|
-
input.uninstallAfterBuild !== null && { uninstallAfterBuild: input.uninstallAfterBuild }));
|
|
6162
|
+
return __assign({}, (input.uninstallAfterBuild != null && { uninstallAfterBuild: input.uninstallAfterBuild }));
|
|
6231
6163
|
};
|
|
6232
6164
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
6233
6165
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -6240,8 +6172,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
6240
6172
|
}, {});
|
|
6241
6173
|
};
|
|
6242
6174
|
var serializeAws_restJson1TargetContainerRepository = function (input, context) {
|
|
6243
|
-
return __assign(__assign({}, (input.repositoryName
|
|
6244
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.service !== undefined && input.service !== null && { service: input.service }));
|
|
6175
|
+
return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.service != null && { service: input.service }));
|
|
6245
6176
|
};
|
|
6246
6177
|
var deserializeAws_restJson1AccountList = function (output, context) {
|
|
6247
6178
|
var retVal = (output || [])
|
|
@@ -6256,7 +6187,7 @@ var deserializeAws_restJson1AccountList = function (output, context) {
|
|
|
6256
6187
|
};
|
|
6257
6188
|
var deserializeAws_restJson1AdditionalInstanceConfiguration = function (output, context) {
|
|
6258
6189
|
return {
|
|
6259
|
-
systemsManagerAgent: output.systemsManagerAgent
|
|
6190
|
+
systemsManagerAgent: output.systemsManagerAgent != null
|
|
6260
6191
|
? deserializeAws_restJson1SystemsManagerAgent(output.systemsManagerAgent, context)
|
|
6261
6192
|
: undefined,
|
|
6262
6193
|
userDataOverride: __expectString(output.userDataOverride),
|
|
@@ -6269,23 +6200,19 @@ var deserializeAws_restJson1Ami = function (output, context) {
|
|
|
6269
6200
|
image: __expectString(output.image),
|
|
6270
6201
|
name: __expectString(output.name),
|
|
6271
6202
|
region: __expectString(output.region),
|
|
6272
|
-
state: output.state
|
|
6273
|
-
? deserializeAws_restJson1ImageState(output.state, context)
|
|
6274
|
-
: undefined,
|
|
6203
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6275
6204
|
};
|
|
6276
6205
|
};
|
|
6277
6206
|
var deserializeAws_restJson1AmiDistributionConfiguration = function (output, context) {
|
|
6278
6207
|
return {
|
|
6279
|
-
amiTags: output.amiTags
|
|
6280
|
-
? deserializeAws_restJson1TagMap(output.amiTags, context)
|
|
6281
|
-
: undefined,
|
|
6208
|
+
amiTags: output.amiTags != null ? deserializeAws_restJson1TagMap(output.amiTags, context) : undefined,
|
|
6282
6209
|
description: __expectString(output.description),
|
|
6283
6210
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
6284
|
-
launchPermission: output.launchPermission
|
|
6211
|
+
launchPermission: output.launchPermission != null
|
|
6285
6212
|
? deserializeAws_restJson1LaunchPermissionConfiguration(output.launchPermission, context)
|
|
6286
6213
|
: undefined,
|
|
6287
6214
|
name: __expectString(output.name),
|
|
6288
|
-
targetAccountIds: output.targetAccountIds
|
|
6215
|
+
targetAccountIds: output.targetAccountIds != null
|
|
6289
6216
|
? deserializeAws_restJson1AccountList(output.targetAccountIds, context)
|
|
6290
6217
|
: undefined,
|
|
6291
6218
|
};
|
|
@@ -6312,19 +6239,15 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
6312
6239
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
6313
6240
|
name: __expectString(output.name),
|
|
6314
6241
|
owner: __expectString(output.owner),
|
|
6315
|
-
parameters: output.parameters
|
|
6242
|
+
parameters: output.parameters != null
|
|
6316
6243
|
? deserializeAws_restJson1ComponentParameterDetailList(output.parameters, context)
|
|
6317
6244
|
: undefined,
|
|
6318
6245
|
platform: __expectString(output.platform),
|
|
6319
|
-
state: output.state
|
|
6320
|
-
|
|
6321
|
-
: undefined,
|
|
6322
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
6246
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
6247
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6323
6248
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6324
6249
|
: undefined,
|
|
6325
|
-
tags: output.tags
|
|
6326
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6327
|
-
: undefined,
|
|
6250
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6328
6251
|
type: __expectString(output.type),
|
|
6329
6252
|
version: __expectString(output.version),
|
|
6330
6253
|
};
|
|
@@ -6332,7 +6255,7 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
6332
6255
|
var deserializeAws_restJson1ComponentConfiguration = function (output, context) {
|
|
6333
6256
|
return {
|
|
6334
6257
|
componentArn: __expectString(output.componentArn),
|
|
6335
|
-
parameters: output.parameters
|
|
6258
|
+
parameters: output.parameters != null
|
|
6336
6259
|
? deserializeAws_restJson1ComponentParameterList(output.parameters, context)
|
|
6337
6260
|
: undefined,
|
|
6338
6261
|
};
|
|
@@ -6351,14 +6274,12 @@ var deserializeAws_restJson1ComponentConfigurationList = function (output, conte
|
|
|
6351
6274
|
var deserializeAws_restJson1ComponentParameter = function (output, context) {
|
|
6352
6275
|
return {
|
|
6353
6276
|
name: __expectString(output.name),
|
|
6354
|
-
value: output.value
|
|
6355
|
-
? deserializeAws_restJson1ComponentParameterValueList(output.value, context)
|
|
6356
|
-
: undefined,
|
|
6277
|
+
value: output.value != null ? deserializeAws_restJson1ComponentParameterValueList(output.value, context) : undefined,
|
|
6357
6278
|
};
|
|
6358
6279
|
};
|
|
6359
6280
|
var deserializeAws_restJson1ComponentParameterDetail = function (output, context) {
|
|
6360
6281
|
return {
|
|
6361
|
-
defaultValue: output.defaultValue
|
|
6282
|
+
defaultValue: output.defaultValue != null
|
|
6362
6283
|
? deserializeAws_restJson1ComponentParameterValueList(output.defaultValue, context)
|
|
6363
6284
|
: undefined,
|
|
6364
6285
|
description: __expectString(output.description),
|
|
@@ -6414,15 +6335,11 @@ var deserializeAws_restJson1ComponentSummary = function (output, context) {
|
|
|
6414
6335
|
name: __expectString(output.name),
|
|
6415
6336
|
owner: __expectString(output.owner),
|
|
6416
6337
|
platform: __expectString(output.platform),
|
|
6417
|
-
state: output.state
|
|
6418
|
-
|
|
6419
|
-
: undefined,
|
|
6420
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
6338
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
6339
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6421
6340
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6422
6341
|
: undefined,
|
|
6423
|
-
tags: output.tags
|
|
6424
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6425
|
-
: undefined,
|
|
6342
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6426
6343
|
type: __expectString(output.type),
|
|
6427
6344
|
version: __expectString(output.version),
|
|
6428
6345
|
};
|
|
@@ -6446,7 +6363,7 @@ var deserializeAws_restJson1ComponentVersion = function (output, context) {
|
|
|
6446
6363
|
name: __expectString(output.name),
|
|
6447
6364
|
owner: __expectString(output.owner),
|
|
6448
6365
|
platform: __expectString(output.platform),
|
|
6449
|
-
supportedOsVersions: output.supportedOsVersions
|
|
6366
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6450
6367
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6451
6368
|
: undefined,
|
|
6452
6369
|
type: __expectString(output.type),
|
|
@@ -6466,19 +6383,15 @@ var deserializeAws_restJson1ComponentVersionList = function (output, context) {
|
|
|
6466
6383
|
};
|
|
6467
6384
|
var deserializeAws_restJson1Container = function (output, context) {
|
|
6468
6385
|
return {
|
|
6469
|
-
imageUris: output.imageUris
|
|
6470
|
-
? deserializeAws_restJson1StringList(output.imageUris, context)
|
|
6471
|
-
: undefined,
|
|
6386
|
+
imageUris: output.imageUris != null ? deserializeAws_restJson1StringList(output.imageUris, context) : undefined,
|
|
6472
6387
|
region: __expectString(output.region),
|
|
6473
6388
|
};
|
|
6474
6389
|
};
|
|
6475
6390
|
var deserializeAws_restJson1ContainerDistributionConfiguration = function (output, context) {
|
|
6476
6391
|
return {
|
|
6477
|
-
containerTags: output.containerTags
|
|
6478
|
-
? deserializeAws_restJson1StringList(output.containerTags, context)
|
|
6479
|
-
: undefined,
|
|
6392
|
+
containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
|
|
6480
6393
|
description: __expectString(output.description),
|
|
6481
|
-
targetRepository: output.targetRepository
|
|
6394
|
+
targetRepository: output.targetRepository != null
|
|
6482
6395
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
6483
6396
|
: undefined,
|
|
6484
6397
|
};
|
|
@@ -6497,7 +6410,7 @@ var deserializeAws_restJson1ContainerList = function (output, context) {
|
|
|
6497
6410
|
var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
6498
6411
|
return {
|
|
6499
6412
|
arn: __expectString(output.arn),
|
|
6500
|
-
components: output.components
|
|
6413
|
+
components: output.components != null
|
|
6501
6414
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
6502
6415
|
: undefined,
|
|
6503
6416
|
containerType: __expectString(output.containerType),
|
|
@@ -6505,7 +6418,7 @@ var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
|
6505
6418
|
description: __expectString(output.description),
|
|
6506
6419
|
dockerfileTemplateData: __expectString(output.dockerfileTemplateData),
|
|
6507
6420
|
encrypted: __expectBoolean(output.encrypted),
|
|
6508
|
-
instanceConfiguration: output.instanceConfiguration
|
|
6421
|
+
instanceConfiguration: output.instanceConfiguration != null
|
|
6509
6422
|
? deserializeAws_restJson1InstanceConfiguration(output.instanceConfiguration, context)
|
|
6510
6423
|
: undefined,
|
|
6511
6424
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
@@ -6513,10 +6426,8 @@ var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
|
6513
6426
|
owner: __expectString(output.owner),
|
|
6514
6427
|
parentImage: __expectString(output.parentImage),
|
|
6515
6428
|
platform: __expectString(output.platform),
|
|
6516
|
-
tags: output.tags
|
|
6517
|
-
|
|
6518
|
-
: undefined,
|
|
6519
|
-
targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
|
|
6429
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6430
|
+
targetRepository: output.targetRepository != null
|
|
6520
6431
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
6521
6432
|
: undefined,
|
|
6522
6433
|
version: __expectString(output.version),
|
|
@@ -6532,9 +6443,7 @@ var deserializeAws_restJson1ContainerRecipeSummary = function (output, context)
|
|
|
6532
6443
|
owner: __expectString(output.owner),
|
|
6533
6444
|
parentImage: __expectString(output.parentImage),
|
|
6534
6445
|
platform: __expectString(output.platform),
|
|
6535
|
-
tags: output.tags
|
|
6536
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6537
|
-
: undefined,
|
|
6446
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6538
6447
|
};
|
|
6539
6448
|
};
|
|
6540
6449
|
var deserializeAws_restJson1ContainerRecipeSummaryList = function (output, context) {
|
|
@@ -6550,23 +6459,23 @@ var deserializeAws_restJson1ContainerRecipeSummaryList = function (output, conte
|
|
|
6550
6459
|
};
|
|
6551
6460
|
var deserializeAws_restJson1Distribution = function (output, context) {
|
|
6552
6461
|
return {
|
|
6553
|
-
amiDistributionConfiguration: output.amiDistributionConfiguration
|
|
6462
|
+
amiDistributionConfiguration: output.amiDistributionConfiguration != null
|
|
6554
6463
|
? deserializeAws_restJson1AmiDistributionConfiguration(output.amiDistributionConfiguration, context)
|
|
6555
6464
|
: undefined,
|
|
6556
|
-
containerDistributionConfiguration: output.containerDistributionConfiguration
|
|
6465
|
+
containerDistributionConfiguration: output.containerDistributionConfiguration != null
|
|
6557
6466
|
? deserializeAws_restJson1ContainerDistributionConfiguration(output.containerDistributionConfiguration, context)
|
|
6558
6467
|
: undefined,
|
|
6559
|
-
fastLaunchConfigurations: output.fastLaunchConfigurations
|
|
6468
|
+
fastLaunchConfigurations: output.fastLaunchConfigurations != null
|
|
6560
6469
|
? deserializeAws_restJson1FastLaunchConfigurationList(output.fastLaunchConfigurations, context)
|
|
6561
6470
|
: undefined,
|
|
6562
|
-
launchTemplateConfigurations: output.launchTemplateConfigurations
|
|
6471
|
+
launchTemplateConfigurations: output.launchTemplateConfigurations != null
|
|
6563
6472
|
? deserializeAws_restJson1LaunchTemplateConfigurationList(output.launchTemplateConfigurations, context)
|
|
6564
6473
|
: undefined,
|
|
6565
|
-
licenseConfigurationArns: output.licenseConfigurationArns
|
|
6474
|
+
licenseConfigurationArns: output.licenseConfigurationArns != null
|
|
6566
6475
|
? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
|
|
6567
6476
|
: undefined,
|
|
6568
6477
|
region: __expectString(output.region),
|
|
6569
|
-
s3ExportConfiguration: output.s3ExportConfiguration
|
|
6478
|
+
s3ExportConfiguration: output.s3ExportConfiguration != null
|
|
6570
6479
|
? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
|
|
6571
6480
|
: undefined,
|
|
6572
6481
|
};
|
|
@@ -6577,13 +6486,11 @@ var deserializeAws_restJson1DistributionConfiguration = function (output, contex
|
|
|
6577
6486
|
dateCreated: __expectString(output.dateCreated),
|
|
6578
6487
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6579
6488
|
description: __expectString(output.description),
|
|
6580
|
-
distributions: output.distributions
|
|
6489
|
+
distributions: output.distributions != null
|
|
6581
6490
|
? deserializeAws_restJson1DistributionList(output.distributions, context)
|
|
6582
6491
|
: undefined,
|
|
6583
6492
|
name: __expectString(output.name),
|
|
6584
|
-
tags: output.tags
|
|
6585
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6586
|
-
: undefined,
|
|
6493
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6587
6494
|
timeoutMinutes: __expectInt32(output.timeoutMinutes),
|
|
6588
6495
|
};
|
|
6589
6496
|
};
|
|
@@ -6594,12 +6501,8 @@ var deserializeAws_restJson1DistributionConfigurationSummary = function (output,
|
|
|
6594
6501
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6595
6502
|
description: __expectString(output.description),
|
|
6596
6503
|
name: __expectString(output.name),
|
|
6597
|
-
regions: output.regions
|
|
6598
|
-
|
|
6599
|
-
: undefined,
|
|
6600
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6601
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6602
|
-
: undefined,
|
|
6504
|
+
regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
|
|
6505
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6603
6506
|
};
|
|
6604
6507
|
};
|
|
6605
6508
|
var deserializeAws_restJson1DistributionConfigurationSummaryList = function (output, context) {
|
|
@@ -6640,11 +6543,11 @@ var deserializeAws_restJson1FastLaunchConfiguration = function (output, context)
|
|
|
6640
6543
|
return {
|
|
6641
6544
|
accountId: __expectString(output.accountId),
|
|
6642
6545
|
enabled: __expectBoolean(output.enabled),
|
|
6643
|
-
launchTemplate: output.launchTemplate
|
|
6546
|
+
launchTemplate: output.launchTemplate != null
|
|
6644
6547
|
? deserializeAws_restJson1FastLaunchLaunchTemplateSpecification(output.launchTemplate, context)
|
|
6645
6548
|
: undefined,
|
|
6646
6549
|
maxParallelLaunches: __expectInt32(output.maxParallelLaunches),
|
|
6647
|
-
snapshotConfiguration: output.snapshotConfiguration
|
|
6550
|
+
snapshotConfiguration: output.snapshotConfiguration != null
|
|
6648
6551
|
? deserializeAws_restJson1FastLaunchSnapshotConfiguration(output.snapshotConfiguration, context)
|
|
6649
6552
|
: undefined,
|
|
6650
6553
|
};
|
|
@@ -6676,37 +6579,31 @@ var deserializeAws_restJson1Image = function (output, context) {
|
|
|
6676
6579
|
return {
|
|
6677
6580
|
arn: __expectString(output.arn),
|
|
6678
6581
|
buildType: __expectString(output.buildType),
|
|
6679
|
-
containerRecipe: output.containerRecipe
|
|
6582
|
+
containerRecipe: output.containerRecipe != null
|
|
6680
6583
|
? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
|
|
6681
6584
|
: undefined,
|
|
6682
6585
|
dateCreated: __expectString(output.dateCreated),
|
|
6683
|
-
distributionConfiguration: output.distributionConfiguration
|
|
6586
|
+
distributionConfiguration: output.distributionConfiguration != null
|
|
6684
6587
|
? deserializeAws_restJson1DistributionConfiguration(output.distributionConfiguration, context)
|
|
6685
6588
|
: undefined,
|
|
6686
6589
|
enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
|
|
6687
|
-
imageRecipe: output.imageRecipe
|
|
6688
|
-
|
|
6689
|
-
: undefined,
|
|
6690
|
-
imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
|
|
6590
|
+
imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
|
|
6591
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
6691
6592
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
6692
6593
|
: undefined,
|
|
6693
|
-
infrastructureConfiguration: output.infrastructureConfiguration
|
|
6594
|
+
infrastructureConfiguration: output.infrastructureConfiguration != null
|
|
6694
6595
|
? deserializeAws_restJson1InfrastructureConfiguration(output.infrastructureConfiguration, context)
|
|
6695
6596
|
: undefined,
|
|
6696
6597
|
name: __expectString(output.name),
|
|
6697
6598
|
osVersion: __expectString(output.osVersion),
|
|
6698
|
-
outputResources: output.outputResources
|
|
6599
|
+
outputResources: output.outputResources != null
|
|
6699
6600
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
6700
6601
|
: undefined,
|
|
6701
6602
|
platform: __expectString(output.platform),
|
|
6702
6603
|
sourcePipelineArn: __expectString(output.sourcePipelineArn),
|
|
6703
6604
|
sourcePipelineName: __expectString(output.sourcePipelineName),
|
|
6704
|
-
state: output.state
|
|
6705
|
-
|
|
6706
|
-
: undefined,
|
|
6707
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6708
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6709
|
-
: undefined,
|
|
6605
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6606
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6710
6607
|
type: __expectString(output.type),
|
|
6711
6608
|
version: __expectString(output.version),
|
|
6712
6609
|
};
|
|
@@ -6740,19 +6637,15 @@ var deserializeAws_restJson1ImagePipeline = function (output, context) {
|
|
|
6740
6637
|
distributionConfigurationArn: __expectString(output.distributionConfigurationArn),
|
|
6741
6638
|
enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
|
|
6742
6639
|
imageRecipeArn: __expectString(output.imageRecipeArn),
|
|
6743
|
-
imageTestsConfiguration: output.imageTestsConfiguration
|
|
6640
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
6744
6641
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
6745
6642
|
: undefined,
|
|
6746
6643
|
infrastructureConfigurationArn: __expectString(output.infrastructureConfigurationArn),
|
|
6747
6644
|
name: __expectString(output.name),
|
|
6748
6645
|
platform: __expectString(output.platform),
|
|
6749
|
-
schedule: output.schedule
|
|
6750
|
-
? deserializeAws_restJson1Schedule(output.schedule, context)
|
|
6751
|
-
: undefined,
|
|
6646
|
+
schedule: output.schedule != null ? deserializeAws_restJson1Schedule(output.schedule, context) : undefined,
|
|
6752
6647
|
status: __expectString(output.status),
|
|
6753
|
-
tags: output.tags
|
|
6754
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6755
|
-
: undefined,
|
|
6648
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6756
6649
|
};
|
|
6757
6650
|
};
|
|
6758
6651
|
var deserializeAws_restJson1ImagePipelineList = function (output, context) {
|
|
@@ -6768,14 +6661,14 @@ var deserializeAws_restJson1ImagePipelineList = function (output, context) {
|
|
|
6768
6661
|
};
|
|
6769
6662
|
var deserializeAws_restJson1ImageRecipe = function (output, context) {
|
|
6770
6663
|
return {
|
|
6771
|
-
additionalInstanceConfiguration: output.additionalInstanceConfiguration
|
|
6664
|
+
additionalInstanceConfiguration: output.additionalInstanceConfiguration != null
|
|
6772
6665
|
? deserializeAws_restJson1AdditionalInstanceConfiguration(output.additionalInstanceConfiguration, context)
|
|
6773
6666
|
: undefined,
|
|
6774
6667
|
arn: __expectString(output.arn),
|
|
6775
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
6668
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
6776
6669
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
6777
6670
|
: undefined,
|
|
6778
|
-
components: output.components
|
|
6671
|
+
components: output.components != null
|
|
6779
6672
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
6780
6673
|
: undefined,
|
|
6781
6674
|
dateCreated: __expectString(output.dateCreated),
|
|
@@ -6784,9 +6677,7 @@ var deserializeAws_restJson1ImageRecipe = function (output, context) {
|
|
|
6784
6677
|
owner: __expectString(output.owner),
|
|
6785
6678
|
parentImage: __expectString(output.parentImage),
|
|
6786
6679
|
platform: __expectString(output.platform),
|
|
6787
|
-
tags: output.tags
|
|
6788
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6789
|
-
: undefined,
|
|
6680
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6790
6681
|
type: __expectString(output.type),
|
|
6791
6682
|
version: __expectString(output.version),
|
|
6792
6683
|
workingDirectory: __expectString(output.workingDirectory),
|
|
@@ -6800,9 +6691,7 @@ var deserializeAws_restJson1ImageRecipeSummary = function (output, context) {
|
|
|
6800
6691
|
owner: __expectString(output.owner),
|
|
6801
6692
|
parentImage: __expectString(output.parentImage),
|
|
6802
6693
|
platform: __expectString(output.platform),
|
|
6803
|
-
tags: output.tags
|
|
6804
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6805
|
-
: undefined,
|
|
6694
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6806
6695
|
};
|
|
6807
6696
|
};
|
|
6808
6697
|
var deserializeAws_restJson1ImageRecipeSummaryList = function (output, context) {
|
|
@@ -6829,17 +6718,13 @@ var deserializeAws_restJson1ImageSummary = function (output, context) {
|
|
|
6829
6718
|
dateCreated: __expectString(output.dateCreated),
|
|
6830
6719
|
name: __expectString(output.name),
|
|
6831
6720
|
osVersion: __expectString(output.osVersion),
|
|
6832
|
-
outputResources: output.outputResources
|
|
6721
|
+
outputResources: output.outputResources != null
|
|
6833
6722
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
6834
6723
|
: undefined,
|
|
6835
6724
|
owner: __expectString(output.owner),
|
|
6836
6725
|
platform: __expectString(output.platform),
|
|
6837
|
-
state: output.state
|
|
6838
|
-
|
|
6839
|
-
: undefined,
|
|
6840
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6841
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6842
|
-
: undefined,
|
|
6726
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6727
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6843
6728
|
type: __expectString(output.type),
|
|
6844
6729
|
version: __expectString(output.version),
|
|
6845
6730
|
};
|
|
@@ -6891,29 +6776,23 @@ var deserializeAws_restJson1InfrastructureConfiguration = function (output, cont
|
|
|
6891
6776
|
dateCreated: __expectString(output.dateCreated),
|
|
6892
6777
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6893
6778
|
description: __expectString(output.description),
|
|
6894
|
-
instanceMetadataOptions: output.instanceMetadataOptions
|
|
6779
|
+
instanceMetadataOptions: output.instanceMetadataOptions != null
|
|
6895
6780
|
? deserializeAws_restJson1InstanceMetadataOptions(output.instanceMetadataOptions, context)
|
|
6896
6781
|
: undefined,
|
|
6897
6782
|
instanceProfileName: __expectString(output.instanceProfileName),
|
|
6898
|
-
instanceTypes: output.instanceTypes
|
|
6783
|
+
instanceTypes: output.instanceTypes != null
|
|
6899
6784
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
6900
6785
|
: undefined,
|
|
6901
6786
|
keyPair: __expectString(output.keyPair),
|
|
6902
|
-
logging: output.logging
|
|
6903
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
6904
|
-
: undefined,
|
|
6787
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
6905
6788
|
name: __expectString(output.name),
|
|
6906
|
-
resourceTags: output.resourceTags
|
|
6907
|
-
|
|
6908
|
-
: undefined,
|
|
6909
|
-
securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
6789
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
6790
|
+
securityGroupIds: output.securityGroupIds != null
|
|
6910
6791
|
? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
|
|
6911
6792
|
: undefined,
|
|
6912
6793
|
snsTopicArn: __expectString(output.snsTopicArn),
|
|
6913
6794
|
subnetId: __expectString(output.subnetId),
|
|
6914
|
-
tags: output.tags
|
|
6915
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6916
|
-
: undefined,
|
|
6795
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6917
6796
|
terminateInstanceOnFailure: __expectBoolean(output.terminateInstanceOnFailure),
|
|
6918
6797
|
};
|
|
6919
6798
|
};
|
|
@@ -6924,16 +6803,12 @@ var deserializeAws_restJson1InfrastructureConfigurationSummary = function (outpu
|
|
|
6924
6803
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6925
6804
|
description: __expectString(output.description),
|
|
6926
6805
|
instanceProfileName: __expectString(output.instanceProfileName),
|
|
6927
|
-
instanceTypes: output.instanceTypes
|
|
6806
|
+
instanceTypes: output.instanceTypes != null
|
|
6928
6807
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
6929
6808
|
: undefined,
|
|
6930
6809
|
name: __expectString(output.name),
|
|
6931
|
-
resourceTags: output.resourceTags
|
|
6932
|
-
|
|
6933
|
-
: undefined,
|
|
6934
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6935
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6936
|
-
: undefined,
|
|
6810
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
6811
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6937
6812
|
};
|
|
6938
6813
|
};
|
|
6939
6814
|
var deserializeAws_restJson1InfrastructureConfigurationSummaryList = function (output, context) {
|
|
@@ -6950,9 +6825,7 @@ var deserializeAws_restJson1InfrastructureConfigurationSummaryList = function (o
|
|
|
6950
6825
|
var deserializeAws_restJson1InstanceBlockDeviceMapping = function (output, context) {
|
|
6951
6826
|
return {
|
|
6952
6827
|
deviceName: __expectString(output.deviceName),
|
|
6953
|
-
ebs: output.ebs
|
|
6954
|
-
? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context)
|
|
6955
|
-
: undefined,
|
|
6828
|
+
ebs: output.ebs != null ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context) : undefined,
|
|
6956
6829
|
noDevice: __expectString(output.noDevice),
|
|
6957
6830
|
virtualName: __expectString(output.virtualName),
|
|
6958
6831
|
};
|
|
@@ -6970,7 +6843,7 @@ var deserializeAws_restJson1InstanceBlockDeviceMappings = function (output, cont
|
|
|
6970
6843
|
};
|
|
6971
6844
|
var deserializeAws_restJson1InstanceConfiguration = function (output, context) {
|
|
6972
6845
|
return {
|
|
6973
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
6846
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
6974
6847
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
6975
6848
|
: undefined,
|
|
6976
6849
|
image: __expectString(output.image),
|
|
@@ -6995,18 +6868,14 @@ var deserializeAws_restJson1InstanceTypeList = function (output, context) {
|
|
|
6995
6868
|
};
|
|
6996
6869
|
var deserializeAws_restJson1LaunchPermissionConfiguration = function (output, context) {
|
|
6997
6870
|
return {
|
|
6998
|
-
organizationArns: output.organizationArns
|
|
6871
|
+
organizationArns: output.organizationArns != null
|
|
6999
6872
|
? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
|
|
7000
6873
|
: undefined,
|
|
7001
|
-
organizationalUnitArns: output.organizationalUnitArns
|
|
6874
|
+
organizationalUnitArns: output.organizationalUnitArns != null
|
|
7002
6875
|
? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
|
|
7003
6876
|
: undefined,
|
|
7004
|
-
userGroups: output.userGroups
|
|
7005
|
-
|
|
7006
|
-
: undefined,
|
|
7007
|
-
userIds: output.userIds !== undefined && output.userIds !== null
|
|
7008
|
-
? deserializeAws_restJson1AccountList(output.userIds, context)
|
|
7009
|
-
: undefined,
|
|
6877
|
+
userGroups: output.userGroups != null ? deserializeAws_restJson1StringList(output.userGroups, context) : undefined,
|
|
6878
|
+
userIds: output.userIds != null ? deserializeAws_restJson1AccountList(output.userIds, context) : undefined,
|
|
7010
6879
|
};
|
|
7011
6880
|
};
|
|
7012
6881
|
var deserializeAws_restJson1LaunchTemplateConfiguration = function (output, context) {
|
|
@@ -7040,9 +6909,7 @@ var deserializeAws_restJson1LicenseConfigurationArnList = function (output, cont
|
|
|
7040
6909
|
};
|
|
7041
6910
|
var deserializeAws_restJson1Logging = function (output, context) {
|
|
7042
6911
|
return {
|
|
7043
|
-
s3Logs: output.s3Logs
|
|
7044
|
-
? deserializeAws_restJson1S3Logs(output.s3Logs, context)
|
|
7045
|
-
: undefined,
|
|
6912
|
+
s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
|
|
7046
6913
|
};
|
|
7047
6914
|
};
|
|
7048
6915
|
var deserializeAws_restJson1OrganizationalUnitArnList = function (output, context) {
|
|
@@ -7080,12 +6947,8 @@ var deserializeAws_restJson1OsVersionList = function (output, context) {
|
|
|
7080
6947
|
};
|
|
7081
6948
|
var deserializeAws_restJson1OutputResources = function (output, context) {
|
|
7082
6949
|
return {
|
|
7083
|
-
amis: output.amis
|
|
7084
|
-
|
|
7085
|
-
: undefined,
|
|
7086
|
-
containers: output.containers !== undefined && output.containers !== null
|
|
7087
|
-
? deserializeAws_restJson1ContainerList(output.containers, context)
|
|
7088
|
-
: undefined,
|
|
6950
|
+
amis: output.amis != null ? deserializeAws_restJson1AmiList(output.amis, context) : undefined,
|
|
6951
|
+
containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
|
|
7089
6952
|
};
|
|
7090
6953
|
};
|
|
7091
6954
|
var deserializeAws_restJson1RegionList = function (output, context) {
|
|
@@ -7229,5 +7092,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7229
7092
|
if (data["__type"] !== undefined) {
|
|
7230
7093
|
return sanitizeErrorCode(data["__type"]);
|
|
7231
7094
|
}
|
|
7232
|
-
return "";
|
|
7233
7095
|
};
|