@aws-sdk/client-rekognition 3.121.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 +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +411 -749
- package/dist-es/protocols/Aws_json1_1.js +283 -621
- package/package.json +27 -27
|
@@ -4108,8 +4108,7 @@ const deserializeAws_json1_1VideoTooLargeExceptionResponse = async (parsedOutput
|
|
|
4108
4108
|
};
|
|
4109
4109
|
const serializeAws_json1_1Asset = (input, context) => {
|
|
4110
4110
|
return {
|
|
4111
|
-
...(input.GroundTruthManifest
|
|
4112
|
-
input.GroundTruthManifest !== null && {
|
|
4111
|
+
...(input.GroundTruthManifest != null && {
|
|
4113
4112
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
4114
4113
|
}),
|
|
4115
4114
|
};
|
|
@@ -4136,29 +4135,26 @@ const serializeAws_json1_1Attributes = (input, context) => {
|
|
|
4136
4135
|
};
|
|
4137
4136
|
const serializeAws_json1_1BlackFrame = (input, context) => {
|
|
4138
4137
|
return {
|
|
4139
|
-
...(input.MaxPixelThreshold
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4138
|
+
...(input.MaxPixelThreshold != null && { MaxPixelThreshold: (0, smithy_client_1.serializeFloat)(input.MaxPixelThreshold) }),
|
|
4139
|
+
...(input.MinCoveragePercentage != null && {
|
|
4140
|
+
MinCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.MinCoveragePercentage),
|
|
4141
|
+
}),
|
|
4143
4142
|
};
|
|
4144
4143
|
};
|
|
4145
4144
|
const serializeAws_json1_1BoundingBox = (input, context) => {
|
|
4146
4145
|
return {
|
|
4147
|
-
...(input.Height
|
|
4148
|
-
...(input.Left
|
|
4149
|
-
...(input.Top
|
|
4150
|
-
...(input.Width
|
|
4146
|
+
...(input.Height != null && { Height: (0, smithy_client_1.serializeFloat)(input.Height) }),
|
|
4147
|
+
...(input.Left != null && { Left: (0, smithy_client_1.serializeFloat)(input.Left) }),
|
|
4148
|
+
...(input.Top != null && { Top: (0, smithy_client_1.serializeFloat)(input.Top) }),
|
|
4149
|
+
...(input.Width != null && { Width: (0, smithy_client_1.serializeFloat)(input.Width) }),
|
|
4151
4150
|
};
|
|
4152
4151
|
};
|
|
4153
4152
|
const serializeAws_json1_1CompareFacesRequest = (input, context) => {
|
|
4154
4153
|
return {
|
|
4155
|
-
...(input.QualityFilter
|
|
4156
|
-
...(input.SimilarityThreshold
|
|
4157
|
-
|
|
4158
|
-
...(input.
|
|
4159
|
-
input.SourceImage !== null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) }),
|
|
4160
|
-
...(input.TargetImage !== undefined &&
|
|
4161
|
-
input.TargetImage !== null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }),
|
|
4154
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4155
|
+
...(input.SimilarityThreshold != null && { SimilarityThreshold: (0, smithy_client_1.serializeFloat)(input.SimilarityThreshold) }),
|
|
4156
|
+
...(input.SourceImage != null && { SourceImage: serializeAws_json1_1Image(input.SourceImage, context) }),
|
|
4157
|
+
...(input.TargetImage != null && { TargetImage: serializeAws_json1_1Image(input.TargetImage, context) }),
|
|
4162
4158
|
};
|
|
4163
4159
|
};
|
|
4164
4160
|
const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
@@ -4173,18 +4169,14 @@ const serializeAws_json1_1ConnectedHomeLabels = (input, context) => {
|
|
|
4173
4169
|
};
|
|
4174
4170
|
const serializeAws_json1_1ConnectedHomeSettings = (input, context) => {
|
|
4175
4171
|
return {
|
|
4176
|
-
...(input.Labels
|
|
4177
|
-
|
|
4178
|
-
...(input.MinConfidence !== undefined &&
|
|
4179
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4172
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4173
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4180
4174
|
};
|
|
4181
4175
|
};
|
|
4182
4176
|
const serializeAws_json1_1ConnectedHomeSettingsForUpdate = (input, context) => {
|
|
4183
4177
|
return {
|
|
4184
|
-
...(input.Labels
|
|
4185
|
-
|
|
4186
|
-
...(input.MinConfidence !== undefined &&
|
|
4187
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4178
|
+
...(input.Labels != null && { Labels: serializeAws_json1_1ConnectedHomeLabels(input.Labels, context) }),
|
|
4179
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4188
4180
|
};
|
|
4189
4181
|
};
|
|
4190
4182
|
const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
@@ -4199,69 +4191,58 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
|
4199
4191
|
};
|
|
4200
4192
|
const serializeAws_json1_1CreateCollectionRequest = (input, context) => {
|
|
4201
4193
|
return {
|
|
4202
|
-
...(input.CollectionId
|
|
4203
|
-
...(input.Tags
|
|
4194
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4195
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4204
4196
|
};
|
|
4205
4197
|
};
|
|
4206
4198
|
const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
4207
4199
|
return {
|
|
4208
|
-
...(input.DatasetSource
|
|
4209
|
-
input.DatasetSource !== null && {
|
|
4200
|
+
...(input.DatasetSource != null && {
|
|
4210
4201
|
DatasetSource: serializeAws_json1_1DatasetSource(input.DatasetSource, context),
|
|
4211
4202
|
}),
|
|
4212
|
-
...(input.DatasetType
|
|
4213
|
-
...(input.ProjectArn
|
|
4203
|
+
...(input.DatasetType != null && { DatasetType: input.DatasetType }),
|
|
4204
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4214
4205
|
};
|
|
4215
4206
|
};
|
|
4216
4207
|
const serializeAws_json1_1CreateProjectRequest = (input, context) => {
|
|
4217
4208
|
return {
|
|
4218
|
-
...(input.ProjectName
|
|
4209
|
+
...(input.ProjectName != null && { ProjectName: input.ProjectName }),
|
|
4219
4210
|
};
|
|
4220
4211
|
};
|
|
4221
4212
|
const serializeAws_json1_1CreateProjectVersionRequest = (input, context) => {
|
|
4222
4213
|
return {
|
|
4223
|
-
...(input.KmsKeyId
|
|
4224
|
-
...(input.OutputConfig
|
|
4225
|
-
|
|
4226
|
-
...(input.
|
|
4227
|
-
...(input.
|
|
4228
|
-
...(input.
|
|
4229
|
-
|
|
4230
|
-
...(input.TrainingData !== undefined &&
|
|
4231
|
-
input.TrainingData !== null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) }),
|
|
4232
|
-
...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
|
|
4214
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4215
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
4216
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4217
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4218
|
+
...(input.TestingData != null && { TestingData: serializeAws_json1_1TestingData(input.TestingData, context) }),
|
|
4219
|
+
...(input.TrainingData != null && { TrainingData: serializeAws_json1_1TrainingData(input.TrainingData, context) }),
|
|
4220
|
+
...(input.VersionName != null && { VersionName: input.VersionName }),
|
|
4233
4221
|
};
|
|
4234
4222
|
};
|
|
4235
4223
|
const serializeAws_json1_1CreateStreamProcessorRequest = (input, context) => {
|
|
4236
4224
|
return {
|
|
4237
|
-
...(input.DataSharingPreference
|
|
4238
|
-
input.DataSharingPreference !== null && {
|
|
4225
|
+
...(input.DataSharingPreference != null && {
|
|
4239
4226
|
DataSharingPreference: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreference, context),
|
|
4240
4227
|
}),
|
|
4241
|
-
...(input.Input
|
|
4242
|
-
|
|
4243
|
-
...(input.
|
|
4244
|
-
...(input.
|
|
4245
|
-
...(input.NotificationChannel !== undefined &&
|
|
4246
|
-
input.NotificationChannel !== null && {
|
|
4228
|
+
...(input.Input != null && { Input: serializeAws_json1_1StreamProcessorInput(input.Input, context) }),
|
|
4229
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
4230
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4231
|
+
...(input.NotificationChannel != null && {
|
|
4247
4232
|
NotificationChannel: serializeAws_json1_1StreamProcessorNotificationChannel(input.NotificationChannel, context),
|
|
4248
4233
|
}),
|
|
4249
|
-
...(input.Output
|
|
4250
|
-
|
|
4251
|
-
...(input.RegionsOfInterest !== undefined &&
|
|
4252
|
-
input.RegionsOfInterest !== null && {
|
|
4234
|
+
...(input.Output != null && { Output: serializeAws_json1_1StreamProcessorOutput(input.Output, context) }),
|
|
4235
|
+
...(input.RegionsOfInterest != null && {
|
|
4253
4236
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4254
4237
|
}),
|
|
4255
|
-
...(input.RoleArn
|
|
4256
|
-
...(input.Settings
|
|
4257
|
-
|
|
4258
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4238
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
4239
|
+
...(input.Settings != null && { Settings: serializeAws_json1_1StreamProcessorSettings(input.Settings, context) }),
|
|
4240
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
4259
4241
|
};
|
|
4260
4242
|
};
|
|
4261
4243
|
const serializeAws_json1_1DatasetChanges = (input, context) => {
|
|
4262
4244
|
return {
|
|
4263
|
-
...(input.GroundTruth
|
|
4264
|
-
input.GroundTruth !== null && { GroundTruth: context.base64Encoder(input.GroundTruth) }),
|
|
4245
|
+
...(input.GroundTruth != null && { GroundTruth: context.base64Encoder(input.GroundTruth) }),
|
|
4265
4246
|
};
|
|
4266
4247
|
};
|
|
4267
4248
|
const serializeAws_json1_1DatasetLabels = (input, context) => {
|
|
@@ -4276,165 +4257,140 @@ const serializeAws_json1_1DatasetLabels = (input, context) => {
|
|
|
4276
4257
|
};
|
|
4277
4258
|
const serializeAws_json1_1DatasetSource = (input, context) => {
|
|
4278
4259
|
return {
|
|
4279
|
-
...(input.DatasetArn
|
|
4280
|
-
...(input.GroundTruthManifest
|
|
4281
|
-
input.GroundTruthManifest !== null && {
|
|
4260
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4261
|
+
...(input.GroundTruthManifest != null && {
|
|
4282
4262
|
GroundTruthManifest: serializeAws_json1_1GroundTruthManifest(input.GroundTruthManifest, context),
|
|
4283
4263
|
}),
|
|
4284
4264
|
};
|
|
4285
4265
|
};
|
|
4286
4266
|
const serializeAws_json1_1DeleteCollectionRequest = (input, context) => {
|
|
4287
4267
|
return {
|
|
4288
|
-
...(input.CollectionId
|
|
4268
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4289
4269
|
};
|
|
4290
4270
|
};
|
|
4291
4271
|
const serializeAws_json1_1DeleteDatasetRequest = (input, context) => {
|
|
4292
4272
|
return {
|
|
4293
|
-
...(input.DatasetArn
|
|
4273
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4294
4274
|
};
|
|
4295
4275
|
};
|
|
4296
4276
|
const serializeAws_json1_1DeleteFacesRequest = (input, context) => {
|
|
4297
4277
|
return {
|
|
4298
|
-
...(input.CollectionId
|
|
4299
|
-
...(input.FaceIds
|
|
4300
|
-
input.FaceIds !== null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }),
|
|
4278
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4279
|
+
...(input.FaceIds != null && { FaceIds: serializeAws_json1_1FaceIdList(input.FaceIds, context) }),
|
|
4301
4280
|
};
|
|
4302
4281
|
};
|
|
4303
4282
|
const serializeAws_json1_1DeleteProjectRequest = (input, context) => {
|
|
4304
4283
|
return {
|
|
4305
|
-
...(input.ProjectArn
|
|
4284
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4306
4285
|
};
|
|
4307
4286
|
};
|
|
4308
4287
|
const serializeAws_json1_1DeleteProjectVersionRequest = (input, context) => {
|
|
4309
4288
|
return {
|
|
4310
|
-
...(input.ProjectVersionArn
|
|
4311
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4289
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4312
4290
|
};
|
|
4313
4291
|
};
|
|
4314
4292
|
const serializeAws_json1_1DeleteStreamProcessorRequest = (input, context) => {
|
|
4315
4293
|
return {
|
|
4316
|
-
...(input.Name
|
|
4294
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4317
4295
|
};
|
|
4318
4296
|
};
|
|
4319
4297
|
const serializeAws_json1_1DescribeCollectionRequest = (input, context) => {
|
|
4320
4298
|
return {
|
|
4321
|
-
...(input.CollectionId
|
|
4299
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4322
4300
|
};
|
|
4323
4301
|
};
|
|
4324
4302
|
const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
|
|
4325
4303
|
return {
|
|
4326
|
-
...(input.DatasetArn
|
|
4304
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4327
4305
|
};
|
|
4328
4306
|
};
|
|
4329
4307
|
const serializeAws_json1_1DescribeProjectsRequest = (input, context) => {
|
|
4330
4308
|
return {
|
|
4331
|
-
...(input.MaxResults
|
|
4332
|
-
...(input.NextToken
|
|
4333
|
-
...(input.ProjectNames
|
|
4334
|
-
input.ProjectNames !== null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }),
|
|
4309
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4310
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4311
|
+
...(input.ProjectNames != null && { ProjectNames: serializeAws_json1_1ProjectNames(input.ProjectNames, context) }),
|
|
4335
4312
|
};
|
|
4336
4313
|
};
|
|
4337
4314
|
const serializeAws_json1_1DescribeProjectVersionsRequest = (input, context) => {
|
|
4338
4315
|
return {
|
|
4339
|
-
...(input.MaxResults
|
|
4340
|
-
...(input.NextToken
|
|
4341
|
-
...(input.ProjectArn
|
|
4342
|
-
...(input.VersionNames
|
|
4343
|
-
input.VersionNames !== null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }),
|
|
4316
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4317
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4318
|
+
...(input.ProjectArn != null && { ProjectArn: input.ProjectArn }),
|
|
4319
|
+
...(input.VersionNames != null && { VersionNames: serializeAws_json1_1VersionNames(input.VersionNames, context) }),
|
|
4344
4320
|
};
|
|
4345
4321
|
};
|
|
4346
4322
|
const serializeAws_json1_1DescribeStreamProcessorRequest = (input, context) => {
|
|
4347
4323
|
return {
|
|
4348
|
-
...(input.Name
|
|
4324
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4349
4325
|
};
|
|
4350
4326
|
};
|
|
4351
4327
|
const serializeAws_json1_1DetectCustomLabelsRequest = (input, context) => {
|
|
4352
4328
|
return {
|
|
4353
|
-
...(input.Image
|
|
4354
|
-
|
|
4355
|
-
...(input.
|
|
4356
|
-
...(input.
|
|
4357
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4358
|
-
...(input.ProjectVersionArn !== undefined &&
|
|
4359
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4329
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4330
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4331
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4332
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4360
4333
|
};
|
|
4361
4334
|
};
|
|
4362
4335
|
const serializeAws_json1_1DetectFacesRequest = (input, context) => {
|
|
4363
4336
|
return {
|
|
4364
|
-
...(input.Attributes
|
|
4365
|
-
|
|
4366
|
-
...(input.Image !== undefined &&
|
|
4367
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4337
|
+
...(input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) }),
|
|
4338
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4368
4339
|
};
|
|
4369
4340
|
};
|
|
4370
4341
|
const serializeAws_json1_1DetectionFilter = (input, context) => {
|
|
4371
4342
|
return {
|
|
4372
|
-
...(input.MinBoundingBoxHeight
|
|
4373
|
-
|
|
4374
|
-
...(input.
|
|
4375
|
-
input.MinBoundingBoxWidth !== null && { MinBoundingBoxWidth: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxWidth) }),
|
|
4376
|
-
...(input.MinConfidence !== undefined &&
|
|
4377
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4343
|
+
...(input.MinBoundingBoxHeight != null && { MinBoundingBoxHeight: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxHeight) }),
|
|
4344
|
+
...(input.MinBoundingBoxWidth != null && { MinBoundingBoxWidth: (0, smithy_client_1.serializeFloat)(input.MinBoundingBoxWidth) }),
|
|
4345
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4378
4346
|
};
|
|
4379
4347
|
};
|
|
4380
4348
|
const serializeAws_json1_1DetectLabelsRequest = (input, context) => {
|
|
4381
4349
|
return {
|
|
4382
|
-
...(input.Image
|
|
4383
|
-
|
|
4384
|
-
...(input.
|
|
4385
|
-
...(input.MinConfidence !== undefined &&
|
|
4386
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4350
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4351
|
+
...(input.MaxLabels != null && { MaxLabels: input.MaxLabels }),
|
|
4352
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4387
4353
|
};
|
|
4388
4354
|
};
|
|
4389
4355
|
const serializeAws_json1_1DetectModerationLabelsRequest = (input, context) => {
|
|
4390
4356
|
return {
|
|
4391
|
-
...(input.HumanLoopConfig
|
|
4392
|
-
input.HumanLoopConfig !== null && {
|
|
4357
|
+
...(input.HumanLoopConfig != null && {
|
|
4393
4358
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
4394
4359
|
}),
|
|
4395
|
-
...(input.Image
|
|
4396
|
-
|
|
4397
|
-
...(input.MinConfidence !== undefined &&
|
|
4398
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4360
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4361
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4399
4362
|
};
|
|
4400
4363
|
};
|
|
4401
4364
|
const serializeAws_json1_1DetectProtectiveEquipmentRequest = (input, context) => {
|
|
4402
4365
|
return {
|
|
4403
|
-
...(input.Image
|
|
4404
|
-
|
|
4405
|
-
...(input.SummarizationAttributes !== undefined &&
|
|
4406
|
-
input.SummarizationAttributes !== null && {
|
|
4366
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4367
|
+
...(input.SummarizationAttributes != null && {
|
|
4407
4368
|
SummarizationAttributes: serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes(input.SummarizationAttributes, context),
|
|
4408
4369
|
}),
|
|
4409
4370
|
};
|
|
4410
4371
|
};
|
|
4411
4372
|
const serializeAws_json1_1DetectTextFilters = (input, context) => {
|
|
4412
4373
|
return {
|
|
4413
|
-
...(input.RegionsOfInterest
|
|
4414
|
-
input.RegionsOfInterest !== null && {
|
|
4374
|
+
...(input.RegionsOfInterest != null && {
|
|
4415
4375
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4416
4376
|
}),
|
|
4417
|
-
...(input.WordFilter
|
|
4418
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4377
|
+
...(input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4419
4378
|
};
|
|
4420
4379
|
};
|
|
4421
4380
|
const serializeAws_json1_1DetectTextRequest = (input, context) => {
|
|
4422
4381
|
return {
|
|
4423
|
-
...(input.Filters
|
|
4424
|
-
|
|
4425
|
-
...(input.Image !== undefined &&
|
|
4426
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4382
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1DetectTextFilters(input.Filters, context) }),
|
|
4383
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4427
4384
|
};
|
|
4428
4385
|
};
|
|
4429
4386
|
const serializeAws_json1_1DistributeDataset = (input, context) => {
|
|
4430
4387
|
return {
|
|
4431
|
-
...(input.Arn
|
|
4388
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4432
4389
|
};
|
|
4433
4390
|
};
|
|
4434
4391
|
const serializeAws_json1_1DistributeDatasetEntriesRequest = (input, context) => {
|
|
4435
4392
|
return {
|
|
4436
|
-
...(input.Datasets
|
|
4437
|
-
input.Datasets !== null && {
|
|
4393
|
+
...(input.Datasets != null && {
|
|
4438
4394
|
Datasets: serializeAws_json1_1DistributeDatasetMetadataList(input.Datasets, context),
|
|
4439
4395
|
}),
|
|
4440
4396
|
};
|
|
@@ -4461,204 +4417,191 @@ const serializeAws_json1_1FaceIdList = (input, context) => {
|
|
|
4461
4417
|
};
|
|
4462
4418
|
const serializeAws_json1_1FaceSearchSettings = (input, context) => {
|
|
4463
4419
|
return {
|
|
4464
|
-
...(input.CollectionId
|
|
4465
|
-
...(input.FaceMatchThreshold
|
|
4466
|
-
input.FaceMatchThreshold !== null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4420
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4421
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4467
4422
|
};
|
|
4468
4423
|
};
|
|
4469
4424
|
const serializeAws_json1_1GetCelebrityInfoRequest = (input, context) => {
|
|
4470
4425
|
return {
|
|
4471
|
-
...(input.Id
|
|
4426
|
+
...(input.Id != null && { Id: input.Id }),
|
|
4472
4427
|
};
|
|
4473
4428
|
};
|
|
4474
4429
|
const serializeAws_json1_1GetCelebrityRecognitionRequest = (input, context) => {
|
|
4475
4430
|
return {
|
|
4476
|
-
...(input.JobId
|
|
4477
|
-
...(input.MaxResults
|
|
4478
|
-
...(input.NextToken
|
|
4479
|
-
...(input.SortBy
|
|
4431
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4432
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4433
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4434
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4480
4435
|
};
|
|
4481
4436
|
};
|
|
4482
4437
|
const serializeAws_json1_1GetContentModerationRequest = (input, context) => {
|
|
4483
4438
|
return {
|
|
4484
|
-
...(input.JobId
|
|
4485
|
-
...(input.MaxResults
|
|
4486
|
-
...(input.NextToken
|
|
4487
|
-
...(input.SortBy
|
|
4439
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4440
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4441
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4442
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4488
4443
|
};
|
|
4489
4444
|
};
|
|
4490
4445
|
const serializeAws_json1_1GetFaceDetectionRequest = (input, context) => {
|
|
4491
4446
|
return {
|
|
4492
|
-
...(input.JobId
|
|
4493
|
-
...(input.MaxResults
|
|
4494
|
-
...(input.NextToken
|
|
4447
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4448
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4449
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4495
4450
|
};
|
|
4496
4451
|
};
|
|
4497
4452
|
const serializeAws_json1_1GetFaceSearchRequest = (input, context) => {
|
|
4498
4453
|
return {
|
|
4499
|
-
...(input.JobId
|
|
4500
|
-
...(input.MaxResults
|
|
4501
|
-
...(input.NextToken
|
|
4502
|
-
...(input.SortBy
|
|
4454
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4455
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4456
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4457
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4503
4458
|
};
|
|
4504
4459
|
};
|
|
4505
4460
|
const serializeAws_json1_1GetLabelDetectionRequest = (input, context) => {
|
|
4506
4461
|
return {
|
|
4507
|
-
...(input.JobId
|
|
4508
|
-
...(input.MaxResults
|
|
4509
|
-
...(input.NextToken
|
|
4510
|
-
...(input.SortBy
|
|
4462
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4463
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4464
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4465
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4511
4466
|
};
|
|
4512
4467
|
};
|
|
4513
4468
|
const serializeAws_json1_1GetPersonTrackingRequest = (input, context) => {
|
|
4514
4469
|
return {
|
|
4515
|
-
...(input.JobId
|
|
4516
|
-
...(input.MaxResults
|
|
4517
|
-
...(input.NextToken
|
|
4518
|
-
...(input.SortBy
|
|
4470
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4471
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4472
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4473
|
+
...(input.SortBy != null && { SortBy: input.SortBy }),
|
|
4519
4474
|
};
|
|
4520
4475
|
};
|
|
4521
4476
|
const serializeAws_json1_1GetSegmentDetectionRequest = (input, context) => {
|
|
4522
4477
|
return {
|
|
4523
|
-
...(input.JobId
|
|
4524
|
-
...(input.MaxResults
|
|
4525
|
-
...(input.NextToken
|
|
4478
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4479
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4480
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4526
4481
|
};
|
|
4527
4482
|
};
|
|
4528
4483
|
const serializeAws_json1_1GetTextDetectionRequest = (input, context) => {
|
|
4529
4484
|
return {
|
|
4530
|
-
...(input.JobId
|
|
4531
|
-
...(input.MaxResults
|
|
4532
|
-
...(input.NextToken
|
|
4485
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
4486
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4487
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4533
4488
|
};
|
|
4534
4489
|
};
|
|
4535
4490
|
const serializeAws_json1_1GroundTruthManifest = (input, context) => {
|
|
4536
4491
|
return {
|
|
4537
|
-
...(input.S3Object
|
|
4538
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4492
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4539
4493
|
};
|
|
4540
4494
|
};
|
|
4541
4495
|
const serializeAws_json1_1HumanLoopConfig = (input, context) => {
|
|
4542
4496
|
return {
|
|
4543
|
-
...(input.DataAttributes
|
|
4544
|
-
input.DataAttributes !== null && {
|
|
4497
|
+
...(input.DataAttributes != null && {
|
|
4545
4498
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
4546
4499
|
}),
|
|
4547
|
-
...(input.FlowDefinitionArn
|
|
4548
|
-
|
|
4549
|
-
...(input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }),
|
|
4500
|
+
...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
|
|
4501
|
+
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
4550
4502
|
};
|
|
4551
4503
|
};
|
|
4552
4504
|
const serializeAws_json1_1HumanLoopDataAttributes = (input, context) => {
|
|
4553
4505
|
return {
|
|
4554
|
-
...(input.ContentClassifiers
|
|
4555
|
-
input.ContentClassifiers !== null && {
|
|
4506
|
+
...(input.ContentClassifiers != null && {
|
|
4556
4507
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
4557
4508
|
}),
|
|
4558
4509
|
};
|
|
4559
4510
|
};
|
|
4560
4511
|
const serializeAws_json1_1Image = (input, context) => {
|
|
4561
4512
|
return {
|
|
4562
|
-
...(input.Bytes
|
|
4563
|
-
...(input.S3Object
|
|
4564
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4513
|
+
...(input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) }),
|
|
4514
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4565
4515
|
};
|
|
4566
4516
|
};
|
|
4567
4517
|
const serializeAws_json1_1IndexFacesRequest = (input, context) => {
|
|
4568
4518
|
return {
|
|
4569
|
-
...(input.CollectionId
|
|
4570
|
-
...(input.DetectionAttributes
|
|
4571
|
-
input.DetectionAttributes !== null && {
|
|
4519
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4520
|
+
...(input.DetectionAttributes != null && {
|
|
4572
4521
|
DetectionAttributes: serializeAws_json1_1Attributes(input.DetectionAttributes, context),
|
|
4573
4522
|
}),
|
|
4574
|
-
...(input.ExternalImageId
|
|
4575
|
-
|
|
4576
|
-
...(input.
|
|
4577
|
-
|
|
4578
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4579
|
-
...(input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }),
|
|
4523
|
+
...(input.ExternalImageId != null && { ExternalImageId: input.ExternalImageId }),
|
|
4524
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4525
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4526
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4580
4527
|
};
|
|
4581
4528
|
};
|
|
4582
4529
|
const serializeAws_json1_1KinesisDataStream = (input, context) => {
|
|
4583
4530
|
return {
|
|
4584
|
-
...(input.Arn
|
|
4531
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4585
4532
|
};
|
|
4586
4533
|
};
|
|
4587
4534
|
const serializeAws_json1_1KinesisVideoStream = (input, context) => {
|
|
4588
4535
|
return {
|
|
4589
|
-
...(input.Arn
|
|
4536
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
4590
4537
|
};
|
|
4591
4538
|
};
|
|
4592
4539
|
const serializeAws_json1_1KinesisVideoStreamStartSelector = (input, context) => {
|
|
4593
4540
|
return {
|
|
4594
|
-
...(input.FragmentNumber
|
|
4595
|
-
|
|
4596
|
-
...(input.ProducerTimestamp !== undefined &&
|
|
4597
|
-
input.ProducerTimestamp !== null && { ProducerTimestamp: input.ProducerTimestamp }),
|
|
4541
|
+
...(input.FragmentNumber != null && { FragmentNumber: input.FragmentNumber }),
|
|
4542
|
+
...(input.ProducerTimestamp != null && { ProducerTimestamp: input.ProducerTimestamp }),
|
|
4598
4543
|
};
|
|
4599
4544
|
};
|
|
4600
4545
|
const serializeAws_json1_1ListCollectionsRequest = (input, context) => {
|
|
4601
4546
|
return {
|
|
4602
|
-
...(input.MaxResults
|
|
4603
|
-
...(input.NextToken
|
|
4547
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4548
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4604
4549
|
};
|
|
4605
4550
|
};
|
|
4606
4551
|
const serializeAws_json1_1ListDatasetEntriesRequest = (input, context) => {
|
|
4607
4552
|
return {
|
|
4608
|
-
...(input.ContainsLabels
|
|
4609
|
-
input.ContainsLabels !== null && {
|
|
4553
|
+
...(input.ContainsLabels != null && {
|
|
4610
4554
|
ContainsLabels: serializeAws_json1_1DatasetLabels(input.ContainsLabels, context),
|
|
4611
4555
|
}),
|
|
4612
|
-
...(input.DatasetArn
|
|
4613
|
-
...(input.HasErrors
|
|
4614
|
-
...(input.Labeled
|
|
4615
|
-
...(input.MaxResults
|
|
4616
|
-
...(input.NextToken
|
|
4617
|
-
...(input.SourceRefContains
|
|
4618
|
-
input.SourceRefContains !== null && { SourceRefContains: input.SourceRefContains }),
|
|
4556
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4557
|
+
...(input.HasErrors != null && { HasErrors: input.HasErrors }),
|
|
4558
|
+
...(input.Labeled != null && { Labeled: input.Labeled }),
|
|
4559
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4560
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4561
|
+
...(input.SourceRefContains != null && { SourceRefContains: input.SourceRefContains }),
|
|
4619
4562
|
};
|
|
4620
4563
|
};
|
|
4621
4564
|
const serializeAws_json1_1ListDatasetLabelsRequest = (input, context) => {
|
|
4622
4565
|
return {
|
|
4623
|
-
...(input.DatasetArn
|
|
4624
|
-
...(input.MaxResults
|
|
4625
|
-
...(input.NextToken
|
|
4566
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
4567
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4568
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4626
4569
|
};
|
|
4627
4570
|
};
|
|
4628
4571
|
const serializeAws_json1_1ListFacesRequest = (input, context) => {
|
|
4629
4572
|
return {
|
|
4630
|
-
...(input.CollectionId
|
|
4631
|
-
...(input.MaxResults
|
|
4632
|
-
...(input.NextToken
|
|
4573
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4574
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4575
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4633
4576
|
};
|
|
4634
4577
|
};
|
|
4635
4578
|
const serializeAws_json1_1ListStreamProcessorsRequest = (input, context) => {
|
|
4636
4579
|
return {
|
|
4637
|
-
...(input.MaxResults
|
|
4638
|
-
...(input.NextToken
|
|
4580
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
4581
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
4639
4582
|
};
|
|
4640
4583
|
};
|
|
4641
4584
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
4642
4585
|
return {
|
|
4643
|
-
...(input.ResourceArn
|
|
4586
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4644
4587
|
};
|
|
4645
4588
|
};
|
|
4646
4589
|
const serializeAws_json1_1NotificationChannel = (input, context) => {
|
|
4647
4590
|
return {
|
|
4648
|
-
...(input.RoleArn
|
|
4649
|
-
...(input.SNSTopicArn
|
|
4591
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
4592
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
4650
4593
|
};
|
|
4651
4594
|
};
|
|
4652
4595
|
const serializeAws_json1_1OutputConfig = (input, context) => {
|
|
4653
4596
|
return {
|
|
4654
|
-
...(input.S3Bucket
|
|
4655
|
-
...(input.S3KeyPrefix
|
|
4597
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
4598
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
4656
4599
|
};
|
|
4657
4600
|
};
|
|
4658
4601
|
const serializeAws_json1_1Point = (input, context) => {
|
|
4659
4602
|
return {
|
|
4660
|
-
...(input.X
|
|
4661
|
-
...(input.Y
|
|
4603
|
+
...(input.X != null && { X: (0, smithy_client_1.serializeFloat)(input.X) }),
|
|
4604
|
+
...(input.Y != null && { Y: (0, smithy_client_1.serializeFloat)(input.Y) }),
|
|
4662
4605
|
};
|
|
4663
4606
|
};
|
|
4664
4607
|
const serializeAws_json1_1Polygon = (input, context) => {
|
|
@@ -4683,10 +4626,8 @@ const serializeAws_json1_1ProjectNames = (input, context) => {
|
|
|
4683
4626
|
};
|
|
4684
4627
|
const serializeAws_json1_1ProtectiveEquipmentSummarizationAttributes = (input, context) => {
|
|
4685
4628
|
return {
|
|
4686
|
-
...(input.MinConfidence
|
|
4687
|
-
|
|
4688
|
-
...(input.RequiredEquipmentTypes !== undefined &&
|
|
4689
|
-
input.RequiredEquipmentTypes !== null && {
|
|
4629
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4630
|
+
...(input.RequiredEquipmentTypes != null && {
|
|
4690
4631
|
RequiredEquipmentTypes: serializeAws_json1_1ProtectiveEquipmentTypes(input.RequiredEquipmentTypes, context),
|
|
4691
4632
|
}),
|
|
4692
4633
|
};
|
|
@@ -4703,16 +4644,13 @@ const serializeAws_json1_1ProtectiveEquipmentTypes = (input, context) => {
|
|
|
4703
4644
|
};
|
|
4704
4645
|
const serializeAws_json1_1RecognizeCelebritiesRequest = (input, context) => {
|
|
4705
4646
|
return {
|
|
4706
|
-
...(input.Image
|
|
4707
|
-
input.Image !== null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4647
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4708
4648
|
};
|
|
4709
4649
|
};
|
|
4710
4650
|
const serializeAws_json1_1RegionOfInterest = (input, context) => {
|
|
4711
4651
|
return {
|
|
4712
|
-
...(input.BoundingBox
|
|
4713
|
-
|
|
4714
|
-
...(input.Polygon !== undefined &&
|
|
4715
|
-
input.Polygon !== null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }),
|
|
4652
|
+
...(input.BoundingBox != null && { BoundingBox: serializeAws_json1_1BoundingBox(input.BoundingBox, context) }),
|
|
4653
|
+
...(input.Polygon != null && { Polygon: serializeAws_json1_1Polygon(input.Polygon, context) }),
|
|
4716
4654
|
};
|
|
4717
4655
|
};
|
|
4718
4656
|
const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
@@ -4727,35 +4665,32 @@ const serializeAws_json1_1RegionsOfInterest = (input, context) => {
|
|
|
4727
4665
|
};
|
|
4728
4666
|
const serializeAws_json1_1S3Destination = (input, context) => {
|
|
4729
4667
|
return {
|
|
4730
|
-
...(input.Bucket
|
|
4731
|
-
...(input.KeyPrefix
|
|
4668
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
4669
|
+
...(input.KeyPrefix != null && { KeyPrefix: input.KeyPrefix }),
|
|
4732
4670
|
};
|
|
4733
4671
|
};
|
|
4734
4672
|
const serializeAws_json1_1S3Object = (input, context) => {
|
|
4735
4673
|
return {
|
|
4736
|
-
...(input.Bucket
|
|
4737
|
-
...(input.Name
|
|
4738
|
-
...(input.Version
|
|
4674
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
4675
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4676
|
+
...(input.Version != null && { Version: input.Version }),
|
|
4739
4677
|
};
|
|
4740
4678
|
};
|
|
4741
4679
|
const serializeAws_json1_1SearchFacesByImageRequest = (input, context) => {
|
|
4742
4680
|
return {
|
|
4743
|
-
...(input.CollectionId
|
|
4744
|
-
...(input.FaceMatchThreshold
|
|
4745
|
-
|
|
4746
|
-
...(input.
|
|
4747
|
-
|
|
4748
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4749
|
-
...(input.QualityFilter !== undefined && input.QualityFilter !== null && { QualityFilter: input.QualityFilter }),
|
|
4681
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4682
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4683
|
+
...(input.Image != null && { Image: serializeAws_json1_1Image(input.Image, context) }),
|
|
4684
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4685
|
+
...(input.QualityFilter != null && { QualityFilter: input.QualityFilter }),
|
|
4750
4686
|
};
|
|
4751
4687
|
};
|
|
4752
4688
|
const serializeAws_json1_1SearchFacesRequest = (input, context) => {
|
|
4753
4689
|
return {
|
|
4754
|
-
...(input.CollectionId
|
|
4755
|
-
...(input.FaceId
|
|
4756
|
-
...(input.FaceMatchThreshold
|
|
4757
|
-
|
|
4758
|
-
...(input.MaxFaces !== undefined && input.MaxFaces !== null && { MaxFaces: input.MaxFaces }),
|
|
4690
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4691
|
+
...(input.FaceId != null && { FaceId: input.FaceId }),
|
|
4692
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4693
|
+
...(input.MaxFaces != null && { MaxFaces: input.MaxFaces }),
|
|
4759
4694
|
};
|
|
4760
4695
|
};
|
|
4761
4696
|
const serializeAws_json1_1SegmentTypes = (input, context) => {
|
|
@@ -4770,231 +4705,183 @@ const serializeAws_json1_1SegmentTypes = (input, context) => {
|
|
|
4770
4705
|
};
|
|
4771
4706
|
const serializeAws_json1_1StartCelebrityRecognitionRequest = (input, context) => {
|
|
4772
4707
|
return {
|
|
4773
|
-
...(input.ClientRequestToken
|
|
4774
|
-
|
|
4775
|
-
...(input.
|
|
4776
|
-
...(input.NotificationChannel !== undefined &&
|
|
4777
|
-
input.NotificationChannel !== null && {
|
|
4708
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4709
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4710
|
+
...(input.NotificationChannel != null && {
|
|
4778
4711
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4779
4712
|
}),
|
|
4780
|
-
...(input.Video
|
|
4781
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4713
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4782
4714
|
};
|
|
4783
4715
|
};
|
|
4784
4716
|
const serializeAws_json1_1StartContentModerationRequest = (input, context) => {
|
|
4785
4717
|
return {
|
|
4786
|
-
...(input.ClientRequestToken
|
|
4787
|
-
|
|
4788
|
-
...(input.
|
|
4789
|
-
...(input.
|
|
4790
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4791
|
-
...(input.NotificationChannel !== undefined &&
|
|
4792
|
-
input.NotificationChannel !== null && {
|
|
4718
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4719
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4720
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4721
|
+
...(input.NotificationChannel != null && {
|
|
4793
4722
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4794
4723
|
}),
|
|
4795
|
-
...(input.Video
|
|
4796
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4724
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4797
4725
|
};
|
|
4798
4726
|
};
|
|
4799
4727
|
const serializeAws_json1_1StartFaceDetectionRequest = (input, context) => {
|
|
4800
4728
|
return {
|
|
4801
|
-
...(input.ClientRequestToken
|
|
4802
|
-
|
|
4803
|
-
...(input.
|
|
4804
|
-
|
|
4805
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4806
|
-
...(input.NotificationChannel !== undefined &&
|
|
4807
|
-
input.NotificationChannel !== null && {
|
|
4729
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4730
|
+
...(input.FaceAttributes != null && { FaceAttributes: input.FaceAttributes }),
|
|
4731
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4732
|
+
...(input.NotificationChannel != null && {
|
|
4808
4733
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4809
4734
|
}),
|
|
4810
|
-
...(input.Video
|
|
4811
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4735
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4812
4736
|
};
|
|
4813
4737
|
};
|
|
4814
4738
|
const serializeAws_json1_1StartFaceSearchRequest = (input, context) => {
|
|
4815
4739
|
return {
|
|
4816
|
-
...(input.ClientRequestToken
|
|
4817
|
-
|
|
4818
|
-
...(input.
|
|
4819
|
-
...(input.
|
|
4820
|
-
|
|
4821
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4822
|
-
...(input.NotificationChannel !== undefined &&
|
|
4823
|
-
input.NotificationChannel !== null && {
|
|
4740
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4741
|
+
...(input.CollectionId != null && { CollectionId: input.CollectionId }),
|
|
4742
|
+
...(input.FaceMatchThreshold != null && { FaceMatchThreshold: (0, smithy_client_1.serializeFloat)(input.FaceMatchThreshold) }),
|
|
4743
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4744
|
+
...(input.NotificationChannel != null && {
|
|
4824
4745
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4825
4746
|
}),
|
|
4826
|
-
...(input.Video
|
|
4827
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4747
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4828
4748
|
};
|
|
4829
4749
|
};
|
|
4830
4750
|
const serializeAws_json1_1StartLabelDetectionRequest = (input, context) => {
|
|
4831
4751
|
return {
|
|
4832
|
-
...(input.ClientRequestToken
|
|
4833
|
-
|
|
4834
|
-
...(input.
|
|
4835
|
-
...(input.
|
|
4836
|
-
input.MinConfidence !== null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4837
|
-
...(input.NotificationChannel !== undefined &&
|
|
4838
|
-
input.NotificationChannel !== null && {
|
|
4752
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4753
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4754
|
+
...(input.MinConfidence != null && { MinConfidence: (0, smithy_client_1.serializeFloat)(input.MinConfidence) }),
|
|
4755
|
+
...(input.NotificationChannel != null && {
|
|
4839
4756
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4840
4757
|
}),
|
|
4841
|
-
...(input.Video
|
|
4842
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4758
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4843
4759
|
};
|
|
4844
4760
|
};
|
|
4845
4761
|
const serializeAws_json1_1StartPersonTrackingRequest = (input, context) => {
|
|
4846
4762
|
return {
|
|
4847
|
-
...(input.ClientRequestToken
|
|
4848
|
-
|
|
4849
|
-
...(input.
|
|
4850
|
-
...(input.NotificationChannel !== undefined &&
|
|
4851
|
-
input.NotificationChannel !== null && {
|
|
4763
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4764
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4765
|
+
...(input.NotificationChannel != null && {
|
|
4852
4766
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4853
4767
|
}),
|
|
4854
|
-
...(input.Video
|
|
4855
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4768
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4856
4769
|
};
|
|
4857
4770
|
};
|
|
4858
4771
|
const serializeAws_json1_1StartProjectVersionRequest = (input, context) => {
|
|
4859
4772
|
return {
|
|
4860
|
-
...(input.MinInferenceUnits
|
|
4861
|
-
|
|
4862
|
-
...(input.ProjectVersionArn !== undefined &&
|
|
4863
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4773
|
+
...(input.MinInferenceUnits != null && { MinInferenceUnits: input.MinInferenceUnits }),
|
|
4774
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4864
4775
|
};
|
|
4865
4776
|
};
|
|
4866
4777
|
const serializeAws_json1_1StartSegmentDetectionFilters = (input, context) => {
|
|
4867
4778
|
return {
|
|
4868
|
-
...(input.ShotFilter
|
|
4869
|
-
input.ShotFilter !== null && {
|
|
4779
|
+
...(input.ShotFilter != null && {
|
|
4870
4780
|
ShotFilter: serializeAws_json1_1StartShotDetectionFilter(input.ShotFilter, context),
|
|
4871
4781
|
}),
|
|
4872
|
-
...(input.TechnicalCueFilter
|
|
4873
|
-
input.TechnicalCueFilter !== null && {
|
|
4782
|
+
...(input.TechnicalCueFilter != null && {
|
|
4874
4783
|
TechnicalCueFilter: serializeAws_json1_1StartTechnicalCueDetectionFilter(input.TechnicalCueFilter, context),
|
|
4875
4784
|
}),
|
|
4876
4785
|
};
|
|
4877
4786
|
};
|
|
4878
4787
|
const serializeAws_json1_1StartSegmentDetectionRequest = (input, context) => {
|
|
4879
4788
|
return {
|
|
4880
|
-
...(input.ClientRequestToken
|
|
4881
|
-
|
|
4882
|
-
...(input.
|
|
4883
|
-
|
|
4884
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4885
|
-
...(input.NotificationChannel !== undefined &&
|
|
4886
|
-
input.NotificationChannel !== null && {
|
|
4789
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4790
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1StartSegmentDetectionFilters(input.Filters, context) }),
|
|
4791
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4792
|
+
...(input.NotificationChannel != null && {
|
|
4887
4793
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4888
4794
|
}),
|
|
4889
|
-
...(input.SegmentTypes
|
|
4890
|
-
|
|
4891
|
-
...(input.Video !== undefined &&
|
|
4892
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4795
|
+
...(input.SegmentTypes != null && { SegmentTypes: serializeAws_json1_1SegmentTypes(input.SegmentTypes, context) }),
|
|
4796
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4893
4797
|
};
|
|
4894
4798
|
};
|
|
4895
4799
|
const serializeAws_json1_1StartShotDetectionFilter = (input, context) => {
|
|
4896
4800
|
return {
|
|
4897
|
-
...(input.MinSegmentConfidence
|
|
4898
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4801
|
+
...(input.MinSegmentConfidence != null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4899
4802
|
};
|
|
4900
4803
|
};
|
|
4901
4804
|
const serializeAws_json1_1StartStreamProcessorRequest = (input, context) => {
|
|
4902
4805
|
return {
|
|
4903
|
-
...(input.Name
|
|
4904
|
-
...(input.StartSelector
|
|
4905
|
-
input.StartSelector !== null && {
|
|
4806
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4807
|
+
...(input.StartSelector != null && {
|
|
4906
4808
|
StartSelector: serializeAws_json1_1StreamProcessingStartSelector(input.StartSelector, context),
|
|
4907
4809
|
}),
|
|
4908
|
-
...(input.StopSelector
|
|
4909
|
-
input.StopSelector !== null && {
|
|
4810
|
+
...(input.StopSelector != null && {
|
|
4910
4811
|
StopSelector: serializeAws_json1_1StreamProcessingStopSelector(input.StopSelector, context),
|
|
4911
4812
|
}),
|
|
4912
4813
|
};
|
|
4913
4814
|
};
|
|
4914
4815
|
const serializeAws_json1_1StartTechnicalCueDetectionFilter = (input, context) => {
|
|
4915
4816
|
return {
|
|
4916
|
-
...(input.BlackFrame
|
|
4917
|
-
|
|
4918
|
-
...(input.MinSegmentConfidence !== undefined &&
|
|
4919
|
-
input.MinSegmentConfidence !== null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4817
|
+
...(input.BlackFrame != null && { BlackFrame: serializeAws_json1_1BlackFrame(input.BlackFrame, context) }),
|
|
4818
|
+
...(input.MinSegmentConfidence != null && { MinSegmentConfidence: (0, smithy_client_1.serializeFloat)(input.MinSegmentConfidence) }),
|
|
4920
4819
|
};
|
|
4921
4820
|
};
|
|
4922
4821
|
const serializeAws_json1_1StartTextDetectionFilters = (input, context) => {
|
|
4923
4822
|
return {
|
|
4924
|
-
...(input.RegionsOfInterest
|
|
4925
|
-
input.RegionsOfInterest !== null && {
|
|
4823
|
+
...(input.RegionsOfInterest != null && {
|
|
4926
4824
|
RegionsOfInterest: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterest, context),
|
|
4927
4825
|
}),
|
|
4928
|
-
...(input.WordFilter
|
|
4929
|
-
input.WordFilter !== null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4826
|
+
...(input.WordFilter != null && { WordFilter: serializeAws_json1_1DetectionFilter(input.WordFilter, context) }),
|
|
4930
4827
|
};
|
|
4931
4828
|
};
|
|
4932
4829
|
const serializeAws_json1_1StartTextDetectionRequest = (input, context) => {
|
|
4933
4830
|
return {
|
|
4934
|
-
...(input.ClientRequestToken
|
|
4935
|
-
|
|
4936
|
-
...(input.
|
|
4937
|
-
|
|
4938
|
-
...(input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag }),
|
|
4939
|
-
...(input.NotificationChannel !== undefined &&
|
|
4940
|
-
input.NotificationChannel !== null && {
|
|
4831
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
4832
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1StartTextDetectionFilters(input.Filters, context) }),
|
|
4833
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
4834
|
+
...(input.NotificationChannel != null && {
|
|
4941
4835
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
4942
4836
|
}),
|
|
4943
|
-
...(input.Video
|
|
4944
|
-
input.Video !== null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4837
|
+
...(input.Video != null && { Video: serializeAws_json1_1Video(input.Video, context) }),
|
|
4945
4838
|
};
|
|
4946
4839
|
};
|
|
4947
4840
|
const serializeAws_json1_1StopProjectVersionRequest = (input, context) => {
|
|
4948
4841
|
return {
|
|
4949
|
-
...(input.ProjectVersionArn
|
|
4950
|
-
input.ProjectVersionArn !== null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4842
|
+
...(input.ProjectVersionArn != null && { ProjectVersionArn: input.ProjectVersionArn }),
|
|
4951
4843
|
};
|
|
4952
4844
|
};
|
|
4953
4845
|
const serializeAws_json1_1StopStreamProcessorRequest = (input, context) => {
|
|
4954
4846
|
return {
|
|
4955
|
-
...(input.Name
|
|
4847
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4956
4848
|
};
|
|
4957
4849
|
};
|
|
4958
4850
|
const serializeAws_json1_1StreamProcessingStartSelector = (input, context) => {
|
|
4959
4851
|
return {
|
|
4960
|
-
...(input.KVSStreamStartSelector
|
|
4961
|
-
input.KVSStreamStartSelector !== null && {
|
|
4852
|
+
...(input.KVSStreamStartSelector != null && {
|
|
4962
4853
|
KVSStreamStartSelector: serializeAws_json1_1KinesisVideoStreamStartSelector(input.KVSStreamStartSelector, context),
|
|
4963
4854
|
}),
|
|
4964
4855
|
};
|
|
4965
4856
|
};
|
|
4966
4857
|
const serializeAws_json1_1StreamProcessingStopSelector = (input, context) => {
|
|
4967
4858
|
return {
|
|
4968
|
-
...(input.MaxDurationInSeconds
|
|
4969
|
-
input.MaxDurationInSeconds !== null && { MaxDurationInSeconds: input.MaxDurationInSeconds }),
|
|
4859
|
+
...(input.MaxDurationInSeconds != null && { MaxDurationInSeconds: input.MaxDurationInSeconds }),
|
|
4970
4860
|
};
|
|
4971
4861
|
};
|
|
4972
4862
|
const serializeAws_json1_1StreamProcessorDataSharingPreference = (input, context) => {
|
|
4973
4863
|
return {
|
|
4974
|
-
...(input.OptIn
|
|
4864
|
+
...(input.OptIn != null && { OptIn: input.OptIn }),
|
|
4975
4865
|
};
|
|
4976
4866
|
};
|
|
4977
4867
|
const serializeAws_json1_1StreamProcessorInput = (input, context) => {
|
|
4978
4868
|
return {
|
|
4979
|
-
...(input.KinesisVideoStream
|
|
4980
|
-
input.KinesisVideoStream !== null && {
|
|
4869
|
+
...(input.KinesisVideoStream != null && {
|
|
4981
4870
|
KinesisVideoStream: serializeAws_json1_1KinesisVideoStream(input.KinesisVideoStream, context),
|
|
4982
4871
|
}),
|
|
4983
4872
|
};
|
|
4984
4873
|
};
|
|
4985
4874
|
const serializeAws_json1_1StreamProcessorNotificationChannel = (input, context) => {
|
|
4986
4875
|
return {
|
|
4987
|
-
...(input.SNSTopicArn
|
|
4876
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
4988
4877
|
};
|
|
4989
4878
|
};
|
|
4990
4879
|
const serializeAws_json1_1StreamProcessorOutput = (input, context) => {
|
|
4991
4880
|
return {
|
|
4992
|
-
...(input.KinesisDataStream
|
|
4993
|
-
input.KinesisDataStream !== null && {
|
|
4881
|
+
...(input.KinesisDataStream != null && {
|
|
4994
4882
|
KinesisDataStream: serializeAws_json1_1KinesisDataStream(input.KinesisDataStream, context),
|
|
4995
4883
|
}),
|
|
4996
|
-
...(input.S3Destination
|
|
4997
|
-
input.S3Destination !== null && {
|
|
4884
|
+
...(input.S3Destination != null && {
|
|
4998
4885
|
S3Destination: serializeAws_json1_1S3Destination(input.S3Destination, context),
|
|
4999
4886
|
}),
|
|
5000
4887
|
};
|
|
@@ -5011,18 +4898,15 @@ const serializeAws_json1_1StreamProcessorParametersToDelete = (input, context) =
|
|
|
5011
4898
|
};
|
|
5012
4899
|
const serializeAws_json1_1StreamProcessorSettings = (input, context) => {
|
|
5013
4900
|
return {
|
|
5014
|
-
...(input.ConnectedHome
|
|
5015
|
-
input.ConnectedHome !== null && {
|
|
4901
|
+
...(input.ConnectedHome != null && {
|
|
5016
4902
|
ConnectedHome: serializeAws_json1_1ConnectedHomeSettings(input.ConnectedHome, context),
|
|
5017
4903
|
}),
|
|
5018
|
-
...(input.FaceSearch
|
|
5019
|
-
input.FaceSearch !== null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }),
|
|
4904
|
+
...(input.FaceSearch != null && { FaceSearch: serializeAws_json1_1FaceSearchSettings(input.FaceSearch, context) }),
|
|
5020
4905
|
};
|
|
5021
4906
|
};
|
|
5022
4907
|
const serializeAws_json1_1StreamProcessorSettingsForUpdate = (input, context) => {
|
|
5023
4908
|
return {
|
|
5024
|
-
...(input.ConnectedHomeForUpdate
|
|
5025
|
-
input.ConnectedHomeForUpdate !== null && {
|
|
4909
|
+
...(input.ConnectedHomeForUpdate != null && {
|
|
5026
4910
|
ConnectedHomeForUpdate: serializeAws_json1_1ConnectedHomeSettingsForUpdate(input.ConnectedHomeForUpdate, context),
|
|
5027
4911
|
}),
|
|
5028
4912
|
};
|
|
@@ -5050,54 +4934,46 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
5050
4934
|
};
|
|
5051
4935
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
5052
4936
|
return {
|
|
5053
|
-
...(input.ResourceArn
|
|
5054
|
-
...(input.Tags
|
|
4937
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4938
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
5055
4939
|
};
|
|
5056
4940
|
};
|
|
5057
4941
|
const serializeAws_json1_1TestingData = (input, context) => {
|
|
5058
4942
|
return {
|
|
5059
|
-
...(input.Assets
|
|
5060
|
-
|
|
5061
|
-
...(input.AutoCreate !== undefined && input.AutoCreate !== null && { AutoCreate: input.AutoCreate }),
|
|
4943
|
+
...(input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
4944
|
+
...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
|
|
5062
4945
|
};
|
|
5063
4946
|
};
|
|
5064
4947
|
const serializeAws_json1_1TrainingData = (input, context) => {
|
|
5065
4948
|
return {
|
|
5066
|
-
...(input.Assets
|
|
5067
|
-
input.Assets !== null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
4949
|
+
...(input.Assets != null && { Assets: serializeAws_json1_1Assets(input.Assets, context) }),
|
|
5068
4950
|
};
|
|
5069
4951
|
};
|
|
5070
4952
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
5071
4953
|
return {
|
|
5072
|
-
...(input.ResourceArn
|
|
5073
|
-
...(input.TagKeys
|
|
5074
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
4954
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4955
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5075
4956
|
};
|
|
5076
4957
|
};
|
|
5077
4958
|
const serializeAws_json1_1UpdateDatasetEntriesRequest = (input, context) => {
|
|
5078
4959
|
return {
|
|
5079
|
-
...(input.Changes
|
|
5080
|
-
|
|
5081
|
-
...(input.DatasetArn !== undefined && input.DatasetArn !== null && { DatasetArn: input.DatasetArn }),
|
|
4960
|
+
...(input.Changes != null && { Changes: serializeAws_json1_1DatasetChanges(input.Changes, context) }),
|
|
4961
|
+
...(input.DatasetArn != null && { DatasetArn: input.DatasetArn }),
|
|
5082
4962
|
};
|
|
5083
4963
|
};
|
|
5084
4964
|
const serializeAws_json1_1UpdateStreamProcessorRequest = (input, context) => {
|
|
5085
4965
|
return {
|
|
5086
|
-
...(input.DataSharingPreferenceForUpdate
|
|
5087
|
-
input.DataSharingPreferenceForUpdate !== null && {
|
|
4966
|
+
...(input.DataSharingPreferenceForUpdate != null && {
|
|
5088
4967
|
DataSharingPreferenceForUpdate: serializeAws_json1_1StreamProcessorDataSharingPreference(input.DataSharingPreferenceForUpdate, context),
|
|
5089
4968
|
}),
|
|
5090
|
-
...(input.Name
|
|
5091
|
-
...(input.ParametersToDelete
|
|
5092
|
-
input.ParametersToDelete !== null && {
|
|
4969
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4970
|
+
...(input.ParametersToDelete != null && {
|
|
5093
4971
|
ParametersToDelete: serializeAws_json1_1StreamProcessorParametersToDelete(input.ParametersToDelete, context),
|
|
5094
4972
|
}),
|
|
5095
|
-
...(input.RegionsOfInterestForUpdate
|
|
5096
|
-
input.RegionsOfInterestForUpdate !== null && {
|
|
4973
|
+
...(input.RegionsOfInterestForUpdate != null && {
|
|
5097
4974
|
RegionsOfInterestForUpdate: serializeAws_json1_1RegionsOfInterest(input.RegionsOfInterestForUpdate, context),
|
|
5098
4975
|
}),
|
|
5099
|
-
...(input.SettingsForUpdate
|
|
5100
|
-
input.SettingsForUpdate !== null && {
|
|
4976
|
+
...(input.SettingsForUpdate != null && {
|
|
5101
4977
|
SettingsForUpdate: serializeAws_json1_1StreamProcessorSettingsForUpdate(input.SettingsForUpdate, context),
|
|
5102
4978
|
}),
|
|
5103
4979
|
};
|
|
@@ -5114,8 +4990,7 @@ const serializeAws_json1_1VersionNames = (input, context) => {
|
|
|
5114
4990
|
};
|
|
5115
4991
|
const serializeAws_json1_1Video = (input, context) => {
|
|
5116
4992
|
return {
|
|
5117
|
-
...(input.S3Object
|
|
5118
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
4993
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
5119
4994
|
};
|
|
5120
4995
|
};
|
|
5121
4996
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
@@ -5133,7 +5008,7 @@ const deserializeAws_json1_1AgeRange = (output, context) => {
|
|
|
5133
5008
|
};
|
|
5134
5009
|
const deserializeAws_json1_1Asset = (output, context) => {
|
|
5135
5010
|
return {
|
|
5136
|
-
GroundTruthManifest: output.GroundTruthManifest
|
|
5011
|
+
GroundTruthManifest: output.GroundTruthManifest != null
|
|
5137
5012
|
? deserializeAws_json1_1GroundTruthManifest(output.GroundTruthManifest, context)
|
|
5138
5013
|
: undefined,
|
|
5139
5014
|
};
|
|
@@ -5195,33 +5070,23 @@ const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
|
5195
5070
|
};
|
|
5196
5071
|
const deserializeAws_json1_1Celebrity = (output, context) => {
|
|
5197
5072
|
return {
|
|
5198
|
-
Face: output.Face
|
|
5199
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
5200
|
-
: undefined,
|
|
5073
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
5201
5074
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
5202
|
-
KnownGender: output.KnownGender
|
|
5203
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5204
|
-
: undefined,
|
|
5075
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5205
5076
|
MatchConfidence: (0, smithy_client_1.limitedParseFloat32)(output.MatchConfidence),
|
|
5206
5077
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5207
|
-
Urls: output.Urls
|
|
5078
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5208
5079
|
};
|
|
5209
5080
|
};
|
|
5210
5081
|
const deserializeAws_json1_1CelebrityDetail = (output, context) => {
|
|
5211
5082
|
return {
|
|
5212
|
-
BoundingBox: output.BoundingBox
|
|
5213
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5214
|
-
: undefined,
|
|
5083
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5215
5084
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5216
|
-
Face: output.Face
|
|
5217
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
5218
|
-
: undefined,
|
|
5085
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
5219
5086
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
5220
|
-
KnownGender: output.KnownGender
|
|
5221
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5222
|
-
: undefined,
|
|
5087
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5223
5088
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5224
|
-
Urls: output.Urls
|
|
5089
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5225
5090
|
};
|
|
5226
5091
|
};
|
|
5227
5092
|
const deserializeAws_json1_1CelebrityList = (output, context) => {
|
|
@@ -5237,9 +5102,7 @@ const deserializeAws_json1_1CelebrityList = (output, context) => {
|
|
|
5237
5102
|
};
|
|
5238
5103
|
const deserializeAws_json1_1CelebrityRecognition = (output, context) => {
|
|
5239
5104
|
return {
|
|
5240
|
-
Celebrity: output.Celebrity
|
|
5241
|
-
? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context)
|
|
5242
|
-
: undefined,
|
|
5105
|
+
Celebrity: output.Celebrity != null ? deserializeAws_json1_1CelebrityDetail(output.Celebrity, context) : undefined,
|
|
5243
5106
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
5244
5107
|
};
|
|
5245
5108
|
};
|
|
@@ -5267,23 +5130,13 @@ const deserializeAws_json1_1CollectionIdList = (output, context) => {
|
|
|
5267
5130
|
};
|
|
5268
5131
|
const deserializeAws_json1_1ComparedFace = (output, context) => {
|
|
5269
5132
|
return {
|
|
5270
|
-
BoundingBox: output.BoundingBox
|
|
5271
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5272
|
-
: undefined,
|
|
5133
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5273
5134
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5274
|
-
Emotions: output.Emotions
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
: undefined,
|
|
5280
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5281
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
5282
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
5283
|
-
: undefined,
|
|
5284
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
5285
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
5286
|
-
: undefined,
|
|
5135
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
5136
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
5137
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5138
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
5139
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
5287
5140
|
};
|
|
5288
5141
|
};
|
|
5289
5142
|
const deserializeAws_json1_1ComparedFaceList = (output, context) => {
|
|
@@ -5299,17 +5152,13 @@ const deserializeAws_json1_1ComparedFaceList = (output, context) => {
|
|
|
5299
5152
|
};
|
|
5300
5153
|
const deserializeAws_json1_1ComparedSourceImageFace = (output, context) => {
|
|
5301
5154
|
return {
|
|
5302
|
-
BoundingBox: output.BoundingBox
|
|
5303
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5304
|
-
: undefined,
|
|
5155
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5305
5156
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5306
5157
|
};
|
|
5307
5158
|
};
|
|
5308
5159
|
const deserializeAws_json1_1CompareFacesMatch = (output, context) => {
|
|
5309
5160
|
return {
|
|
5310
|
-
Face: output.Face
|
|
5311
|
-
? deserializeAws_json1_1ComparedFace(output.Face, context)
|
|
5312
|
-
: undefined,
|
|
5161
|
+
Face: output.Face != null ? deserializeAws_json1_1ComparedFace(output.Face, context) : undefined,
|
|
5313
5162
|
Similarity: (0, smithy_client_1.limitedParseFloat32)(output.Similarity),
|
|
5314
5163
|
};
|
|
5315
5164
|
};
|
|
@@ -5326,15 +5175,13 @@ const deserializeAws_json1_1CompareFacesMatchList = (output, context) => {
|
|
|
5326
5175
|
};
|
|
5327
5176
|
const deserializeAws_json1_1CompareFacesResponse = (output, context) => {
|
|
5328
5177
|
return {
|
|
5329
|
-
FaceMatches: output.FaceMatches
|
|
5330
|
-
|
|
5331
|
-
: undefined,
|
|
5332
|
-
SourceImageFace: output.SourceImageFace !== undefined && output.SourceImageFace !== null
|
|
5178
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1CompareFacesMatchList(output.FaceMatches, context) : undefined,
|
|
5179
|
+
SourceImageFace: output.SourceImageFace != null
|
|
5333
5180
|
? deserializeAws_json1_1ComparedSourceImageFace(output.SourceImageFace, context)
|
|
5334
5181
|
: undefined,
|
|
5335
5182
|
SourceImageOrientationCorrection: (0, smithy_client_1.expectString)(output.SourceImageOrientationCorrection),
|
|
5336
5183
|
TargetImageOrientationCorrection: (0, smithy_client_1.expectString)(output.TargetImageOrientationCorrection),
|
|
5337
|
-
UnmatchedFaces: output.UnmatchedFaces
|
|
5184
|
+
UnmatchedFaces: output.UnmatchedFaces != null
|
|
5338
5185
|
? deserializeAws_json1_1CompareFacesUnmatchList(output.UnmatchedFaces, context)
|
|
5339
5186
|
: undefined,
|
|
5340
5187
|
};
|
|
@@ -5363,15 +5210,13 @@ const deserializeAws_json1_1ConnectedHomeLabels = (output, context) => {
|
|
|
5363
5210
|
};
|
|
5364
5211
|
const deserializeAws_json1_1ConnectedHomeSettings = (output, context) => {
|
|
5365
5212
|
return {
|
|
5366
|
-
Labels: output.Labels
|
|
5367
|
-
? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context)
|
|
5368
|
-
: undefined,
|
|
5213
|
+
Labels: output.Labels != null ? deserializeAws_json1_1ConnectedHomeLabels(output.Labels, context) : undefined,
|
|
5369
5214
|
MinConfidence: (0, smithy_client_1.limitedParseFloat32)(output.MinConfidence),
|
|
5370
5215
|
};
|
|
5371
5216
|
};
|
|
5372
5217
|
const deserializeAws_json1_1ContentModerationDetection = (output, context) => {
|
|
5373
5218
|
return {
|
|
5374
|
-
ModerationLabel: output.ModerationLabel
|
|
5219
|
+
ModerationLabel: output.ModerationLabel != null
|
|
5375
5220
|
? deserializeAws_json1_1ModerationLabel(output.ModerationLabel, context)
|
|
5376
5221
|
: undefined,
|
|
5377
5222
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
@@ -5424,9 +5269,7 @@ const deserializeAws_json1_1CreateStreamProcessorResponse = (output, context) =>
|
|
|
5424
5269
|
const deserializeAws_json1_1CustomLabel = (output, context) => {
|
|
5425
5270
|
return {
|
|
5426
5271
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5427
|
-
Geometry: output.Geometry
|
|
5428
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
5429
|
-
: undefined,
|
|
5272
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
5430
5273
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5431
5274
|
};
|
|
5432
5275
|
};
|
|
@@ -5443,13 +5286,11 @@ const deserializeAws_json1_1CustomLabels = (output, context) => {
|
|
|
5443
5286
|
};
|
|
5444
5287
|
const deserializeAws_json1_1DatasetDescription = (output, context) => {
|
|
5445
5288
|
return {
|
|
5446
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5289
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5447
5290
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5448
5291
|
: undefined,
|
|
5449
|
-
DatasetStats: output.DatasetStats
|
|
5450
|
-
|
|
5451
|
-
: undefined,
|
|
5452
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
5292
|
+
DatasetStats: output.DatasetStats != null ? deserializeAws_json1_1DatasetStats(output.DatasetStats, context) : undefined,
|
|
5293
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5453
5294
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
5454
5295
|
: undefined,
|
|
5455
5296
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -5471,9 +5312,7 @@ const deserializeAws_json1_1DatasetEntries = (output, context) => {
|
|
|
5471
5312
|
const deserializeAws_json1_1DatasetLabelDescription = (output, context) => {
|
|
5472
5313
|
return {
|
|
5473
5314
|
LabelName: (0, smithy_client_1.expectString)(output.LabelName),
|
|
5474
|
-
LabelStats: output.LabelStats
|
|
5475
|
-
? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context)
|
|
5476
|
-
: undefined,
|
|
5315
|
+
LabelStats: output.LabelStats != null ? deserializeAws_json1_1DatasetLabelStats(output.LabelStats, context) : undefined,
|
|
5477
5316
|
};
|
|
5478
5317
|
};
|
|
5479
5318
|
const deserializeAws_json1_1DatasetLabelDescriptions = (output, context) => {
|
|
@@ -5495,7 +5334,7 @@ const deserializeAws_json1_1DatasetLabelStats = (output, context) => {
|
|
|
5495
5334
|
};
|
|
5496
5335
|
const deserializeAws_json1_1DatasetMetadata = (output, context) => {
|
|
5497
5336
|
return {
|
|
5498
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5337
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5499
5338
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5500
5339
|
: undefined,
|
|
5501
5340
|
DatasetArn: (0, smithy_client_1.expectString)(output.DatasetArn),
|
|
@@ -5534,9 +5373,7 @@ const deserializeAws_json1_1DeleteDatasetResponse = (output, context) => {
|
|
|
5534
5373
|
};
|
|
5535
5374
|
const deserializeAws_json1_1DeleteFacesResponse = (output, context) => {
|
|
5536
5375
|
return {
|
|
5537
|
-
DeletedFaces: output.DeletedFaces
|
|
5538
|
-
? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context)
|
|
5539
|
-
: undefined,
|
|
5376
|
+
DeletedFaces: output.DeletedFaces != null ? deserializeAws_json1_1FaceIdList(output.DeletedFaces, context) : undefined,
|
|
5540
5377
|
};
|
|
5541
5378
|
};
|
|
5542
5379
|
const deserializeAws_json1_1DeleteProjectResponse = (output, context) => {
|
|
@@ -5555,7 +5392,7 @@ const deserializeAws_json1_1DeleteStreamProcessorResponse = (output, context) =>
|
|
|
5555
5392
|
const deserializeAws_json1_1DescribeCollectionResponse = (output, context) => {
|
|
5556
5393
|
return {
|
|
5557
5394
|
CollectionARN: (0, smithy_client_1.expectString)(output.CollectionARN),
|
|
5558
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5395
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5559
5396
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5560
5397
|
: undefined,
|
|
5561
5398
|
FaceCount: (0, smithy_client_1.expectLong)(output.FaceCount),
|
|
@@ -5564,7 +5401,7 @@ const deserializeAws_json1_1DescribeCollectionResponse = (output, context) => {
|
|
|
5564
5401
|
};
|
|
5565
5402
|
const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
5566
5403
|
return {
|
|
5567
|
-
DatasetDescription: output.DatasetDescription
|
|
5404
|
+
DatasetDescription: output.DatasetDescription != null
|
|
5568
5405
|
? deserializeAws_json1_1DatasetDescription(output.DatasetDescription, context)
|
|
5569
5406
|
: undefined,
|
|
5570
5407
|
};
|
|
@@ -5572,7 +5409,7 @@ const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
|
|
|
5572
5409
|
const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
5573
5410
|
return {
|
|
5574
5411
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5575
|
-
ProjectDescriptions: output.ProjectDescriptions
|
|
5412
|
+
ProjectDescriptions: output.ProjectDescriptions != null
|
|
5576
5413
|
? deserializeAws_json1_1ProjectDescriptions(output.ProjectDescriptions, context)
|
|
5577
5414
|
: undefined,
|
|
5578
5415
|
};
|
|
@@ -5580,40 +5417,34 @@ const deserializeAws_json1_1DescribeProjectsResponse = (output, context) => {
|
|
|
5580
5417
|
const deserializeAws_json1_1DescribeProjectVersionsResponse = (output, context) => {
|
|
5581
5418
|
return {
|
|
5582
5419
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5583
|
-
ProjectVersionDescriptions: output.ProjectVersionDescriptions
|
|
5420
|
+
ProjectVersionDescriptions: output.ProjectVersionDescriptions != null
|
|
5584
5421
|
? deserializeAws_json1_1ProjectVersionDescriptions(output.ProjectVersionDescriptions, context)
|
|
5585
5422
|
: undefined,
|
|
5586
5423
|
};
|
|
5587
5424
|
};
|
|
5588
5425
|
const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context) => {
|
|
5589
5426
|
return {
|
|
5590
|
-
CreationTimestamp: output.CreationTimestamp
|
|
5427
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
5591
5428
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
5592
5429
|
: undefined,
|
|
5593
|
-
DataSharingPreference: output.DataSharingPreference
|
|
5430
|
+
DataSharingPreference: output.DataSharingPreference != null
|
|
5594
5431
|
? deserializeAws_json1_1StreamProcessorDataSharingPreference(output.DataSharingPreference, context)
|
|
5595
5432
|
: undefined,
|
|
5596
|
-
Input: output.Input
|
|
5597
|
-
? deserializeAws_json1_1StreamProcessorInput(output.Input, context)
|
|
5598
|
-
: undefined,
|
|
5433
|
+
Input: output.Input != null ? deserializeAws_json1_1StreamProcessorInput(output.Input, context) : undefined,
|
|
5599
5434
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
5600
|
-
LastUpdateTimestamp: output.LastUpdateTimestamp
|
|
5435
|
+
LastUpdateTimestamp: output.LastUpdateTimestamp != null
|
|
5601
5436
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
|
|
5602
5437
|
: undefined,
|
|
5603
5438
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5604
|
-
NotificationChannel: output.NotificationChannel
|
|
5439
|
+
NotificationChannel: output.NotificationChannel != null
|
|
5605
5440
|
? deserializeAws_json1_1StreamProcessorNotificationChannel(output.NotificationChannel, context)
|
|
5606
5441
|
: undefined,
|
|
5607
|
-
Output: output.Output
|
|
5608
|
-
|
|
5609
|
-
: undefined,
|
|
5610
|
-
RegionsOfInterest: output.RegionsOfInterest !== undefined && output.RegionsOfInterest !== null
|
|
5442
|
+
Output: output.Output != null ? deserializeAws_json1_1StreamProcessorOutput(output.Output, context) : undefined,
|
|
5443
|
+
RegionsOfInterest: output.RegionsOfInterest != null
|
|
5611
5444
|
? deserializeAws_json1_1RegionsOfInterest(output.RegionsOfInterest, context)
|
|
5612
5445
|
: undefined,
|
|
5613
5446
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
5614
|
-
Settings: output.Settings
|
|
5615
|
-
? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context)
|
|
5616
|
-
: undefined,
|
|
5447
|
+
Settings: output.Settings != null ? deserializeAws_json1_1StreamProcessorSettings(output.Settings, context) : undefined,
|
|
5617
5448
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5618
5449
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5619
5450
|
StreamProcessorArn: (0, smithy_client_1.expectString)(output.StreamProcessorArn),
|
|
@@ -5621,34 +5452,28 @@ const deserializeAws_json1_1DescribeStreamProcessorResponse = (output, context)
|
|
|
5621
5452
|
};
|
|
5622
5453
|
const deserializeAws_json1_1DetectCustomLabelsResponse = (output, context) => {
|
|
5623
5454
|
return {
|
|
5624
|
-
CustomLabels: output.CustomLabels
|
|
5625
|
-
? deserializeAws_json1_1CustomLabels(output.CustomLabels, context)
|
|
5626
|
-
: undefined,
|
|
5455
|
+
CustomLabels: output.CustomLabels != null ? deserializeAws_json1_1CustomLabels(output.CustomLabels, context) : undefined,
|
|
5627
5456
|
};
|
|
5628
5457
|
};
|
|
5629
5458
|
const deserializeAws_json1_1DetectFacesResponse = (output, context) => {
|
|
5630
5459
|
return {
|
|
5631
|
-
FaceDetails: output.FaceDetails
|
|
5632
|
-
? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context)
|
|
5633
|
-
: undefined,
|
|
5460
|
+
FaceDetails: output.FaceDetails != null ? deserializeAws_json1_1FaceDetailList(output.FaceDetails, context) : undefined,
|
|
5634
5461
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
5635
5462
|
};
|
|
5636
5463
|
};
|
|
5637
5464
|
const deserializeAws_json1_1DetectLabelsResponse = (output, context) => {
|
|
5638
5465
|
return {
|
|
5639
5466
|
LabelModelVersion: (0, smithy_client_1.expectString)(output.LabelModelVersion),
|
|
5640
|
-
Labels: output.Labels
|
|
5641
|
-
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
5642
|
-
: undefined,
|
|
5467
|
+
Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
|
|
5643
5468
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
5644
5469
|
};
|
|
5645
5470
|
};
|
|
5646
5471
|
const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) => {
|
|
5647
5472
|
return {
|
|
5648
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
5473
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
5649
5474
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
5650
5475
|
: undefined,
|
|
5651
|
-
ModerationLabels: output.ModerationLabels
|
|
5476
|
+
ModerationLabels: output.ModerationLabels != null
|
|
5652
5477
|
? deserializeAws_json1_1ModerationLabels(output.ModerationLabels, context)
|
|
5653
5478
|
: undefined,
|
|
5654
5479
|
ModerationModelVersion: (0, smithy_client_1.expectString)(output.ModerationModelVersion),
|
|
@@ -5656,18 +5481,14 @@ const deserializeAws_json1_1DetectModerationLabelsResponse = (output, context) =
|
|
|
5656
5481
|
};
|
|
5657
5482
|
const deserializeAws_json1_1DetectProtectiveEquipmentResponse = (output, context) => {
|
|
5658
5483
|
return {
|
|
5659
|
-
Persons: output.Persons
|
|
5660
|
-
? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context)
|
|
5661
|
-
: undefined,
|
|
5484
|
+
Persons: output.Persons != null ? deserializeAws_json1_1ProtectiveEquipmentPersons(output.Persons, context) : undefined,
|
|
5662
5485
|
ProtectiveEquipmentModelVersion: (0, smithy_client_1.expectString)(output.ProtectiveEquipmentModelVersion),
|
|
5663
|
-
Summary: output.Summary
|
|
5664
|
-
? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context)
|
|
5665
|
-
: undefined,
|
|
5486
|
+
Summary: output.Summary != null ? deserializeAws_json1_1ProtectiveEquipmentSummary(output.Summary, context) : undefined,
|
|
5666
5487
|
};
|
|
5667
5488
|
};
|
|
5668
5489
|
const deserializeAws_json1_1DetectTextResponse = (output, context) => {
|
|
5669
5490
|
return {
|
|
5670
|
-
TextDetections: output.TextDetections
|
|
5491
|
+
TextDetections: output.TextDetections != null
|
|
5671
5492
|
? deserializeAws_json1_1TextDetectionList(output.TextDetections, context)
|
|
5672
5493
|
: undefined,
|
|
5673
5494
|
TextModelVersion: (0, smithy_client_1.expectString)(output.TextModelVersion),
|
|
@@ -5695,13 +5516,9 @@ const deserializeAws_json1_1Emotions = (output, context) => {
|
|
|
5695
5516
|
};
|
|
5696
5517
|
const deserializeAws_json1_1EquipmentDetection = (output, context) => {
|
|
5697
5518
|
return {
|
|
5698
|
-
BoundingBox: output.BoundingBox
|
|
5699
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5700
|
-
: undefined,
|
|
5519
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5701
5520
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5702
|
-
CoversBodyPart: output.CoversBodyPart
|
|
5703
|
-
? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context)
|
|
5704
|
-
: undefined,
|
|
5521
|
+
CoversBodyPart: output.CoversBodyPart != null ? deserializeAws_json1_1CoversBodyPart(output.CoversBodyPart, context) : undefined,
|
|
5705
5522
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
5706
5523
|
};
|
|
5707
5524
|
};
|
|
@@ -5719,9 +5536,7 @@ const deserializeAws_json1_1EquipmentDetections = (output, context) => {
|
|
|
5719
5536
|
const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
5720
5537
|
return {
|
|
5721
5538
|
F1Score: (0, smithy_client_1.limitedParseFloat32)(output.F1Score),
|
|
5722
|
-
Summary: output.Summary
|
|
5723
|
-
? deserializeAws_json1_1Summary(output.Summary, context)
|
|
5724
|
-
: undefined,
|
|
5539
|
+
Summary: output.Summary != null ? deserializeAws_json1_1Summary(output.Summary, context) : undefined,
|
|
5725
5540
|
};
|
|
5726
5541
|
};
|
|
5727
5542
|
const deserializeAws_json1_1Eyeglasses = (output, context) => {
|
|
@@ -5738,9 +5553,7 @@ const deserializeAws_json1_1EyeOpen = (output, context) => {
|
|
|
5738
5553
|
};
|
|
5739
5554
|
const deserializeAws_json1_1Face = (output, context) => {
|
|
5740
5555
|
return {
|
|
5741
|
-
BoundingBox: output.BoundingBox
|
|
5742
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5743
|
-
: undefined,
|
|
5556
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5744
5557
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5745
5558
|
ExternalImageId: (0, smithy_client_1.expectString)(output.ExternalImageId),
|
|
5746
5559
|
FaceId: (0, smithy_client_1.expectString)(output.FaceId),
|
|
@@ -5750,47 +5563,21 @@ const deserializeAws_json1_1Face = (output, context) => {
|
|
|
5750
5563
|
};
|
|
5751
5564
|
const deserializeAws_json1_1FaceDetail = (output, context) => {
|
|
5752
5565
|
return {
|
|
5753
|
-
AgeRange: output.AgeRange
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
Beard: output.Beard !== undefined && output.Beard !== null
|
|
5757
|
-
? deserializeAws_json1_1Beard(output.Beard, context)
|
|
5758
|
-
: undefined,
|
|
5759
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
5760
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
5761
|
-
: undefined,
|
|
5566
|
+
AgeRange: output.AgeRange != null ? deserializeAws_json1_1AgeRange(output.AgeRange, context) : undefined,
|
|
5567
|
+
Beard: output.Beard != null ? deserializeAws_json1_1Beard(output.Beard, context) : undefined,
|
|
5568
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5762
5569
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
5763
|
-
Emotions: output.Emotions
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
: undefined,
|
|
5775
|
-
Landmarks: output.Landmarks !== undefined && output.Landmarks !== null
|
|
5776
|
-
? deserializeAws_json1_1Landmarks(output.Landmarks, context)
|
|
5777
|
-
: undefined,
|
|
5778
|
-
MouthOpen: output.MouthOpen !== undefined && output.MouthOpen !== null
|
|
5779
|
-
? deserializeAws_json1_1MouthOpen(output.MouthOpen, context)
|
|
5780
|
-
: undefined,
|
|
5781
|
-
Mustache: output.Mustache !== undefined && output.Mustache !== null
|
|
5782
|
-
? deserializeAws_json1_1Mustache(output.Mustache, context)
|
|
5783
|
-
: undefined,
|
|
5784
|
-
Pose: output.Pose !== undefined && output.Pose !== null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5785
|
-
Quality: output.Quality !== undefined && output.Quality !== null
|
|
5786
|
-
? deserializeAws_json1_1ImageQuality(output.Quality, context)
|
|
5787
|
-
: undefined,
|
|
5788
|
-
Smile: output.Smile !== undefined && output.Smile !== null
|
|
5789
|
-
? deserializeAws_json1_1Smile(output.Smile, context)
|
|
5790
|
-
: undefined,
|
|
5791
|
-
Sunglasses: output.Sunglasses !== undefined && output.Sunglasses !== null
|
|
5792
|
-
? deserializeAws_json1_1Sunglasses(output.Sunglasses, context)
|
|
5793
|
-
: undefined,
|
|
5570
|
+
Emotions: output.Emotions != null ? deserializeAws_json1_1Emotions(output.Emotions, context) : undefined,
|
|
5571
|
+
Eyeglasses: output.Eyeglasses != null ? deserializeAws_json1_1Eyeglasses(output.Eyeglasses, context) : undefined,
|
|
5572
|
+
EyesOpen: output.EyesOpen != null ? deserializeAws_json1_1EyeOpen(output.EyesOpen, context) : undefined,
|
|
5573
|
+
Gender: output.Gender != null ? deserializeAws_json1_1Gender(output.Gender, context) : undefined,
|
|
5574
|
+
Landmarks: output.Landmarks != null ? deserializeAws_json1_1Landmarks(output.Landmarks, context) : undefined,
|
|
5575
|
+
MouthOpen: output.MouthOpen != null ? deserializeAws_json1_1MouthOpen(output.MouthOpen, context) : undefined,
|
|
5576
|
+
Mustache: output.Mustache != null ? deserializeAws_json1_1Mustache(output.Mustache, context) : undefined,
|
|
5577
|
+
Pose: output.Pose != null ? deserializeAws_json1_1Pose(output.Pose, context) : undefined,
|
|
5578
|
+
Quality: output.Quality != null ? deserializeAws_json1_1ImageQuality(output.Quality, context) : undefined,
|
|
5579
|
+
Smile: output.Smile != null ? deserializeAws_json1_1Smile(output.Smile, context) : undefined,
|
|
5580
|
+
Sunglasses: output.Sunglasses != null ? deserializeAws_json1_1Sunglasses(output.Sunglasses, context) : undefined,
|
|
5794
5581
|
};
|
|
5795
5582
|
};
|
|
5796
5583
|
const deserializeAws_json1_1FaceDetailList = (output, context) => {
|
|
@@ -5806,9 +5593,7 @@ const deserializeAws_json1_1FaceDetailList = (output, context) => {
|
|
|
5806
5593
|
};
|
|
5807
5594
|
const deserializeAws_json1_1FaceDetection = (output, context) => {
|
|
5808
5595
|
return {
|
|
5809
|
-
Face: output.Face
|
|
5810
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
5811
|
-
: undefined,
|
|
5596
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
5812
5597
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
5813
5598
|
};
|
|
5814
5599
|
};
|
|
@@ -5847,7 +5632,7 @@ const deserializeAws_json1_1FaceList = (output, context) => {
|
|
|
5847
5632
|
};
|
|
5848
5633
|
const deserializeAws_json1_1FaceMatch = (output, context) => {
|
|
5849
5634
|
return {
|
|
5850
|
-
Face: output.Face
|
|
5635
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
5851
5636
|
Similarity: (0, smithy_client_1.limitedParseFloat32)(output.Similarity),
|
|
5852
5637
|
};
|
|
5853
5638
|
};
|
|
@@ -5875,10 +5660,8 @@ const deserializeAws_json1_1FaceModelVersionList = (output, context) => {
|
|
|
5875
5660
|
};
|
|
5876
5661
|
const deserializeAws_json1_1FaceRecord = (output, context) => {
|
|
5877
5662
|
return {
|
|
5878
|
-
Face: output.Face
|
|
5879
|
-
FaceDetail: output.FaceDetail
|
|
5880
|
-
? deserializeAws_json1_1FaceDetail(output.FaceDetail, context)
|
|
5881
|
-
: undefined,
|
|
5663
|
+
Face: output.Face != null ? deserializeAws_json1_1Face(output.Face, context) : undefined,
|
|
5664
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
5882
5665
|
};
|
|
5883
5666
|
};
|
|
5884
5667
|
const deserializeAws_json1_1FaceRecordList = (output, context) => {
|
|
@@ -5906,120 +5689,86 @@ const deserializeAws_json1_1Gender = (output, context) => {
|
|
|
5906
5689
|
};
|
|
5907
5690
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
5908
5691
|
return {
|
|
5909
|
-
BoundingBox: output.BoundingBox
|
|
5910
|
-
|
|
5911
|
-
: undefined,
|
|
5912
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
5913
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
5914
|
-
: undefined,
|
|
5692
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
5693
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
5915
5694
|
};
|
|
5916
5695
|
};
|
|
5917
5696
|
const deserializeAws_json1_1GetCelebrityInfoResponse = (output, context) => {
|
|
5918
5697
|
return {
|
|
5919
|
-
KnownGender: output.KnownGender
|
|
5920
|
-
? deserializeAws_json1_1KnownGender(output.KnownGender, context)
|
|
5921
|
-
: undefined,
|
|
5698
|
+
KnownGender: output.KnownGender != null ? deserializeAws_json1_1KnownGender(output.KnownGender, context) : undefined,
|
|
5922
5699
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5923
|
-
Urls: output.Urls
|
|
5700
|
+
Urls: output.Urls != null ? deserializeAws_json1_1Urls(output.Urls, context) : undefined,
|
|
5924
5701
|
};
|
|
5925
5702
|
};
|
|
5926
5703
|
const deserializeAws_json1_1GetCelebrityRecognitionResponse = (output, context) => {
|
|
5927
5704
|
return {
|
|
5928
|
-
Celebrities: output.Celebrities
|
|
5929
|
-
? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context)
|
|
5930
|
-
: undefined,
|
|
5705
|
+
Celebrities: output.Celebrities != null ? deserializeAws_json1_1CelebrityRecognitions(output.Celebrities, context) : undefined,
|
|
5931
5706
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5932
5707
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5933
5708
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5934
|
-
VideoMetadata: output.VideoMetadata
|
|
5935
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5936
|
-
: undefined,
|
|
5709
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5937
5710
|
};
|
|
5938
5711
|
};
|
|
5939
5712
|
const deserializeAws_json1_1GetContentModerationResponse = (output, context) => {
|
|
5940
5713
|
return {
|
|
5941
5714
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5942
|
-
ModerationLabels: output.ModerationLabels
|
|
5715
|
+
ModerationLabels: output.ModerationLabels != null
|
|
5943
5716
|
? deserializeAws_json1_1ContentModerationDetections(output.ModerationLabels, context)
|
|
5944
5717
|
: undefined,
|
|
5945
5718
|
ModerationModelVersion: (0, smithy_client_1.expectString)(output.ModerationModelVersion),
|
|
5946
5719
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5947
5720
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5948
|
-
VideoMetadata: output.VideoMetadata
|
|
5949
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5950
|
-
: undefined,
|
|
5721
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5951
5722
|
};
|
|
5952
5723
|
};
|
|
5953
5724
|
const deserializeAws_json1_1GetFaceDetectionResponse = (output, context) => {
|
|
5954
5725
|
return {
|
|
5955
|
-
Faces: output.Faces
|
|
5956
|
-
? deserializeAws_json1_1FaceDetections(output.Faces, context)
|
|
5957
|
-
: undefined,
|
|
5726
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceDetections(output.Faces, context) : undefined,
|
|
5958
5727
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5959
5728
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5960
5729
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5961
|
-
VideoMetadata: output.VideoMetadata
|
|
5962
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5963
|
-
: undefined,
|
|
5730
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5964
5731
|
};
|
|
5965
5732
|
};
|
|
5966
5733
|
const deserializeAws_json1_1GetFaceSearchResponse = (output, context) => {
|
|
5967
5734
|
return {
|
|
5968
5735
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5969
5736
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5970
|
-
Persons: output.Persons
|
|
5971
|
-
? deserializeAws_json1_1PersonMatches(output.Persons, context)
|
|
5972
|
-
: undefined,
|
|
5737
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonMatches(output.Persons, context) : undefined,
|
|
5973
5738
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5974
|
-
VideoMetadata: output.VideoMetadata
|
|
5975
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5976
|
-
: undefined,
|
|
5739
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5977
5740
|
};
|
|
5978
5741
|
};
|
|
5979
5742
|
const deserializeAws_json1_1GetLabelDetectionResponse = (output, context) => {
|
|
5980
5743
|
return {
|
|
5981
5744
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5982
5745
|
LabelModelVersion: (0, smithy_client_1.expectString)(output.LabelModelVersion),
|
|
5983
|
-
Labels: output.Labels
|
|
5984
|
-
? deserializeAws_json1_1LabelDetections(output.Labels, context)
|
|
5985
|
-
: undefined,
|
|
5746
|
+
Labels: output.Labels != null ? deserializeAws_json1_1LabelDetections(output.Labels, context) : undefined,
|
|
5986
5747
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5987
5748
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
5988
|
-
VideoMetadata: output.VideoMetadata
|
|
5989
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
5990
|
-
: undefined,
|
|
5749
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
5991
5750
|
};
|
|
5992
5751
|
};
|
|
5993
5752
|
const deserializeAws_json1_1GetPersonTrackingResponse = (output, context) => {
|
|
5994
5753
|
return {
|
|
5995
5754
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
5996
5755
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
5997
|
-
Persons: output.Persons
|
|
5998
|
-
? deserializeAws_json1_1PersonDetections(output.Persons, context)
|
|
5999
|
-
: undefined,
|
|
5756
|
+
Persons: output.Persons != null ? deserializeAws_json1_1PersonDetections(output.Persons, context) : undefined,
|
|
6000
5757
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6001
|
-
VideoMetadata: output.VideoMetadata
|
|
6002
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6003
|
-
: undefined,
|
|
5758
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6004
5759
|
};
|
|
6005
5760
|
};
|
|
6006
5761
|
const deserializeAws_json1_1GetSegmentDetectionResponse = (output, context) => {
|
|
6007
5762
|
return {
|
|
6008
|
-
AudioMetadata: output.AudioMetadata
|
|
6009
|
-
? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context)
|
|
6010
|
-
: undefined,
|
|
5763
|
+
AudioMetadata: output.AudioMetadata != null ? deserializeAws_json1_1AudioMetadataList(output.AudioMetadata, context) : undefined,
|
|
6011
5764
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6012
5765
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6013
|
-
Segments: output.Segments
|
|
6014
|
-
|
|
6015
|
-
: undefined,
|
|
6016
|
-
SelectedSegmentTypes: output.SelectedSegmentTypes !== undefined && output.SelectedSegmentTypes !== null
|
|
5766
|
+
Segments: output.Segments != null ? deserializeAws_json1_1SegmentDetections(output.Segments, context) : undefined,
|
|
5767
|
+
SelectedSegmentTypes: output.SelectedSegmentTypes != null
|
|
6017
5768
|
? deserializeAws_json1_1SegmentTypesInfo(output.SelectedSegmentTypes, context)
|
|
6018
5769
|
: undefined,
|
|
6019
5770
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6020
|
-
VideoMetadata: output.VideoMetadata
|
|
6021
|
-
? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context)
|
|
6022
|
-
: undefined,
|
|
5771
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadataList(output.VideoMetadata, context) : undefined,
|
|
6023
5772
|
};
|
|
6024
5773
|
};
|
|
6025
5774
|
const deserializeAws_json1_1GetTextDetectionResponse = (output, context) => {
|
|
@@ -6027,29 +5776,24 @@ const deserializeAws_json1_1GetTextDetectionResponse = (output, context) => {
|
|
|
6027
5776
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
6028
5777
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6029
5778
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6030
|
-
TextDetections: output.TextDetections
|
|
5779
|
+
TextDetections: output.TextDetections != null
|
|
6031
5780
|
? deserializeAws_json1_1TextDetectionResults(output.TextDetections, context)
|
|
6032
5781
|
: undefined,
|
|
6033
5782
|
TextModelVersion: (0, smithy_client_1.expectString)(output.TextModelVersion),
|
|
6034
|
-
VideoMetadata: output.VideoMetadata
|
|
6035
|
-
? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context)
|
|
6036
|
-
: undefined,
|
|
5783
|
+
VideoMetadata: output.VideoMetadata != null ? deserializeAws_json1_1VideoMetadata(output.VideoMetadata, context) : undefined,
|
|
6037
5784
|
};
|
|
6038
5785
|
};
|
|
6039
5786
|
const deserializeAws_json1_1GroundTruthManifest = (output, context) => {
|
|
6040
5787
|
return {
|
|
6041
|
-
S3Object: output.S3Object
|
|
6042
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
6043
|
-
: undefined,
|
|
5788
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
6044
5789
|
};
|
|
6045
5790
|
};
|
|
6046
5791
|
const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
6047
5792
|
return {
|
|
6048
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
6049
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
5793
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
6050
5794
|
? new smithy_client_1.LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
6051
5795
|
: undefined,
|
|
6052
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
5796
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
6053
5797
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
6054
5798
|
: undefined,
|
|
6055
5799
|
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
@@ -6099,20 +5843,14 @@ const deserializeAws_json1_1ImageTooLargeException = (output, context) => {
|
|
|
6099
5843
|
const deserializeAws_json1_1IndexFacesResponse = (output, context) => {
|
|
6100
5844
|
return {
|
|
6101
5845
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6102
|
-
FaceRecords: output.FaceRecords
|
|
6103
|
-
? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context)
|
|
6104
|
-
: undefined,
|
|
5846
|
+
FaceRecords: output.FaceRecords != null ? deserializeAws_json1_1FaceRecordList(output.FaceRecords, context) : undefined,
|
|
6105
5847
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
6106
|
-
UnindexedFaces: output.UnindexedFaces
|
|
6107
|
-
? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context)
|
|
6108
|
-
: undefined,
|
|
5848
|
+
UnindexedFaces: output.UnindexedFaces != null ? deserializeAws_json1_1UnindexedFaces(output.UnindexedFaces, context) : undefined,
|
|
6109
5849
|
};
|
|
6110
5850
|
};
|
|
6111
5851
|
const deserializeAws_json1_1Instance = (output, context) => {
|
|
6112
5852
|
return {
|
|
6113
|
-
BoundingBox: output.BoundingBox
|
|
6114
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6115
|
-
: undefined,
|
|
5853
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6116
5854
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6117
5855
|
};
|
|
6118
5856
|
};
|
|
@@ -6180,20 +5918,14 @@ const deserializeAws_json1_1KnownGender = (output, context) => {
|
|
|
6180
5918
|
const deserializeAws_json1_1Label = (output, context) => {
|
|
6181
5919
|
return {
|
|
6182
5920
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6183
|
-
Instances: output.Instances
|
|
6184
|
-
? deserializeAws_json1_1Instances(output.Instances, context)
|
|
6185
|
-
: undefined,
|
|
5921
|
+
Instances: output.Instances != null ? deserializeAws_json1_1Instances(output.Instances, context) : undefined,
|
|
6186
5922
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6187
|
-
Parents: output.Parents
|
|
6188
|
-
? deserializeAws_json1_1Parents(output.Parents, context)
|
|
6189
|
-
: undefined,
|
|
5923
|
+
Parents: output.Parents != null ? deserializeAws_json1_1Parents(output.Parents, context) : undefined,
|
|
6190
5924
|
};
|
|
6191
5925
|
};
|
|
6192
5926
|
const deserializeAws_json1_1LabelDetection = (output, context) => {
|
|
6193
5927
|
return {
|
|
6194
|
-
Label: output.Label
|
|
6195
|
-
? deserializeAws_json1_1Label(output.Label, context)
|
|
6196
|
-
: undefined,
|
|
5928
|
+
Label: output.Label != null ? deserializeAws_json1_1Label(output.Label, context) : undefined,
|
|
6197
5929
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6198
5930
|
};
|
|
6199
5931
|
};
|
|
@@ -6246,10 +5978,8 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
6246
5978
|
};
|
|
6247
5979
|
const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
6248
5980
|
return {
|
|
6249
|
-
CollectionIds: output.CollectionIds
|
|
6250
|
-
|
|
6251
|
-
: undefined,
|
|
6252
|
-
FaceModelVersions: output.FaceModelVersions !== undefined && output.FaceModelVersions !== null
|
|
5981
|
+
CollectionIds: output.CollectionIds != null ? deserializeAws_json1_1CollectionIdList(output.CollectionIds, context) : undefined,
|
|
5982
|
+
FaceModelVersions: output.FaceModelVersions != null
|
|
6253
5983
|
? deserializeAws_json1_1FaceModelVersionList(output.FaceModelVersions, context)
|
|
6254
5984
|
: undefined,
|
|
6255
5985
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6257,15 +5987,13 @@ const deserializeAws_json1_1ListCollectionsResponse = (output, context) => {
|
|
|
6257
5987
|
};
|
|
6258
5988
|
const deserializeAws_json1_1ListDatasetEntriesResponse = (output, context) => {
|
|
6259
5989
|
return {
|
|
6260
|
-
DatasetEntries: output.DatasetEntries
|
|
6261
|
-
? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context)
|
|
6262
|
-
: undefined,
|
|
5990
|
+
DatasetEntries: output.DatasetEntries != null ? deserializeAws_json1_1DatasetEntries(output.DatasetEntries, context) : undefined,
|
|
6263
5991
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6264
5992
|
};
|
|
6265
5993
|
};
|
|
6266
5994
|
const deserializeAws_json1_1ListDatasetLabelsResponse = (output, context) => {
|
|
6267
5995
|
return {
|
|
6268
|
-
DatasetLabelDescriptions: output.DatasetLabelDescriptions
|
|
5996
|
+
DatasetLabelDescriptions: output.DatasetLabelDescriptions != null
|
|
6269
5997
|
? deserializeAws_json1_1DatasetLabelDescriptions(output.DatasetLabelDescriptions, context)
|
|
6270
5998
|
: undefined,
|
|
6271
5999
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -6274,25 +6002,21 @@ const deserializeAws_json1_1ListDatasetLabelsResponse = (output, context) => {
|
|
|
6274
6002
|
const deserializeAws_json1_1ListFacesResponse = (output, context) => {
|
|
6275
6003
|
return {
|
|
6276
6004
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6277
|
-
Faces: output.Faces
|
|
6278
|
-
? deserializeAws_json1_1FaceList(output.Faces, context)
|
|
6279
|
-
: undefined,
|
|
6005
|
+
Faces: output.Faces != null ? deserializeAws_json1_1FaceList(output.Faces, context) : undefined,
|
|
6280
6006
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6281
6007
|
};
|
|
6282
6008
|
};
|
|
6283
6009
|
const deserializeAws_json1_1ListStreamProcessorsResponse = (output, context) => {
|
|
6284
6010
|
return {
|
|
6285
6011
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
6286
|
-
StreamProcessors: output.StreamProcessors
|
|
6012
|
+
StreamProcessors: output.StreamProcessors != null
|
|
6287
6013
|
? deserializeAws_json1_1StreamProcessorList(output.StreamProcessors, context)
|
|
6288
6014
|
: undefined,
|
|
6289
6015
|
};
|
|
6290
6016
|
};
|
|
6291
6017
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6292
6018
|
return {
|
|
6293
|
-
Tags: output.Tags
|
|
6294
|
-
? deserializeAws_json1_1TagMap(output.Tags, context)
|
|
6295
|
-
: undefined,
|
|
6019
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagMap(output.Tags, context) : undefined,
|
|
6296
6020
|
};
|
|
6297
6021
|
};
|
|
6298
6022
|
const deserializeAws_json1_1ModerationLabel = (output, context) => {
|
|
@@ -6349,20 +6073,14 @@ const deserializeAws_json1_1Parents = (output, context) => {
|
|
|
6349
6073
|
};
|
|
6350
6074
|
const deserializeAws_json1_1PersonDetail = (output, context) => {
|
|
6351
6075
|
return {
|
|
6352
|
-
BoundingBox: output.BoundingBox
|
|
6353
|
-
|
|
6354
|
-
: undefined,
|
|
6355
|
-
Face: output.Face !== undefined && output.Face !== null
|
|
6356
|
-
? deserializeAws_json1_1FaceDetail(output.Face, context)
|
|
6357
|
-
: undefined,
|
|
6076
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6077
|
+
Face: output.Face != null ? deserializeAws_json1_1FaceDetail(output.Face, context) : undefined,
|
|
6358
6078
|
Index: (0, smithy_client_1.expectLong)(output.Index),
|
|
6359
6079
|
};
|
|
6360
6080
|
};
|
|
6361
6081
|
const deserializeAws_json1_1PersonDetection = (output, context) => {
|
|
6362
6082
|
return {
|
|
6363
|
-
Person: output.Person
|
|
6364
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
6365
|
-
: undefined,
|
|
6083
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
6366
6084
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6367
6085
|
};
|
|
6368
6086
|
};
|
|
@@ -6379,12 +6097,8 @@ const deserializeAws_json1_1PersonDetections = (output, context) => {
|
|
|
6379
6097
|
};
|
|
6380
6098
|
const deserializeAws_json1_1PersonMatch = (output, context) => {
|
|
6381
6099
|
return {
|
|
6382
|
-
FaceMatches: output.FaceMatches
|
|
6383
|
-
|
|
6384
|
-
: undefined,
|
|
6385
|
-
Person: output.Person !== undefined && output.Person !== null
|
|
6386
|
-
? deserializeAws_json1_1PersonDetail(output.Person, context)
|
|
6387
|
-
: undefined,
|
|
6100
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6101
|
+
Person: output.Person != null ? deserializeAws_json1_1PersonDetail(output.Person, context) : undefined,
|
|
6388
6102
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6389
6103
|
};
|
|
6390
6104
|
};
|
|
@@ -6425,12 +6139,10 @@ const deserializeAws_json1_1Pose = (output, context) => {
|
|
|
6425
6139
|
};
|
|
6426
6140
|
const deserializeAws_json1_1ProjectDescription = (output, context) => {
|
|
6427
6141
|
return {
|
|
6428
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6142
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6429
6143
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
6430
6144
|
: undefined,
|
|
6431
|
-
Datasets: output.Datasets
|
|
6432
|
-
? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context)
|
|
6433
|
-
: undefined,
|
|
6145
|
+
Datasets: output.Datasets != null ? deserializeAws_json1_1DatasetMetadataList(output.Datasets, context) : undefined,
|
|
6434
6146
|
ProjectArn: (0, smithy_client_1.expectString)(output.ProjectArn),
|
|
6435
6147
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6436
6148
|
};
|
|
@@ -6449,30 +6161,28 @@ const deserializeAws_json1_1ProjectDescriptions = (output, context) => {
|
|
|
6449
6161
|
const deserializeAws_json1_1ProjectVersionDescription = (output, context) => {
|
|
6450
6162
|
return {
|
|
6451
6163
|
BillableTrainingTimeInSeconds: (0, smithy_client_1.expectLong)(output.BillableTrainingTimeInSeconds),
|
|
6452
|
-
CreationTimestamp: output.CreationTimestamp
|
|
6164
|
+
CreationTimestamp: output.CreationTimestamp != null
|
|
6453
6165
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTimestamp)))
|
|
6454
6166
|
: undefined,
|
|
6455
|
-
EvaluationResult: output.EvaluationResult
|
|
6167
|
+
EvaluationResult: output.EvaluationResult != null
|
|
6456
6168
|
? deserializeAws_json1_1EvaluationResult(output.EvaluationResult, context)
|
|
6457
6169
|
: undefined,
|
|
6458
6170
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
6459
|
-
ManifestSummary: output.ManifestSummary
|
|
6171
|
+
ManifestSummary: output.ManifestSummary != null
|
|
6460
6172
|
? deserializeAws_json1_1GroundTruthManifest(output.ManifestSummary, context)
|
|
6461
6173
|
: undefined,
|
|
6462
6174
|
MinInferenceUnits: (0, smithy_client_1.expectInt32)(output.MinInferenceUnits),
|
|
6463
|
-
OutputConfig: output.OutputConfig
|
|
6464
|
-
? deserializeAws_json1_1OutputConfig(output.OutputConfig, context)
|
|
6465
|
-
: undefined,
|
|
6175
|
+
OutputConfig: output.OutputConfig != null ? deserializeAws_json1_1OutputConfig(output.OutputConfig, context) : undefined,
|
|
6466
6176
|
ProjectVersionArn: (0, smithy_client_1.expectString)(output.ProjectVersionArn),
|
|
6467
6177
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
6468
6178
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6469
|
-
TestingDataResult: output.TestingDataResult
|
|
6179
|
+
TestingDataResult: output.TestingDataResult != null
|
|
6470
6180
|
? deserializeAws_json1_1TestingDataResult(output.TestingDataResult, context)
|
|
6471
6181
|
: undefined,
|
|
6472
|
-
TrainingDataResult: output.TrainingDataResult
|
|
6182
|
+
TrainingDataResult: output.TrainingDataResult != null
|
|
6473
6183
|
? deserializeAws_json1_1TrainingDataResult(output.TrainingDataResult, context)
|
|
6474
6184
|
: undefined,
|
|
6475
|
-
TrainingEndTimestamp: output.TrainingEndTimestamp
|
|
6185
|
+
TrainingEndTimestamp: output.TrainingEndTimestamp != null
|
|
6476
6186
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TrainingEndTimestamp)))
|
|
6477
6187
|
: undefined,
|
|
6478
6188
|
};
|
|
@@ -6491,7 +6201,7 @@ const deserializeAws_json1_1ProjectVersionDescriptions = (output, context) => {
|
|
|
6491
6201
|
const deserializeAws_json1_1ProtectiveEquipmentBodyPart = (output, context) => {
|
|
6492
6202
|
return {
|
|
6493
6203
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6494
|
-
EquipmentDetections: output.EquipmentDetections
|
|
6204
|
+
EquipmentDetections: output.EquipmentDetections != null
|
|
6495
6205
|
? deserializeAws_json1_1EquipmentDetections(output.EquipmentDetections, context)
|
|
6496
6206
|
: undefined,
|
|
6497
6207
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -6499,12 +6209,8 @@ const deserializeAws_json1_1ProtectiveEquipmentBodyPart = (output, context) => {
|
|
|
6499
6209
|
};
|
|
6500
6210
|
const deserializeAws_json1_1ProtectiveEquipmentPerson = (output, context) => {
|
|
6501
6211
|
return {
|
|
6502
|
-
BodyParts: output.BodyParts
|
|
6503
|
-
|
|
6504
|
-
: undefined,
|
|
6505
|
-
BoundingBox: output.BoundingBox !== undefined && output.BoundingBox !== null
|
|
6506
|
-
? deserializeAws_json1_1BoundingBox(output.BoundingBox, context)
|
|
6507
|
-
: undefined,
|
|
6212
|
+
BodyParts: output.BodyParts != null ? deserializeAws_json1_1BodyParts(output.BodyParts, context) : undefined,
|
|
6213
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6508
6214
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6509
6215
|
Id: (0, smithy_client_1.expectInt32)(output.Id),
|
|
6510
6216
|
};
|
|
@@ -6533,13 +6239,13 @@ const deserializeAws_json1_1ProtectiveEquipmentPersons = (output, context) => {
|
|
|
6533
6239
|
};
|
|
6534
6240
|
const deserializeAws_json1_1ProtectiveEquipmentSummary = (output, context) => {
|
|
6535
6241
|
return {
|
|
6536
|
-
PersonsIndeterminate: output.PersonsIndeterminate
|
|
6242
|
+
PersonsIndeterminate: output.PersonsIndeterminate != null
|
|
6537
6243
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsIndeterminate, context)
|
|
6538
6244
|
: undefined,
|
|
6539
|
-
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment
|
|
6245
|
+
PersonsWithRequiredEquipment: output.PersonsWithRequiredEquipment != null
|
|
6540
6246
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithRequiredEquipment, context)
|
|
6541
6247
|
: undefined,
|
|
6542
|
-
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment
|
|
6248
|
+
PersonsWithoutRequiredEquipment: output.PersonsWithoutRequiredEquipment != null
|
|
6543
6249
|
? deserializeAws_json1_1ProtectiveEquipmentPersonIds(output.PersonsWithoutRequiredEquipment, context)
|
|
6544
6250
|
: undefined,
|
|
6545
6251
|
};
|
|
@@ -6564,23 +6270,17 @@ const deserializeAws_json1_1Reasons = (output, context) => {
|
|
|
6564
6270
|
};
|
|
6565
6271
|
const deserializeAws_json1_1RecognizeCelebritiesResponse = (output, context) => {
|
|
6566
6272
|
return {
|
|
6567
|
-
CelebrityFaces: output.CelebrityFaces
|
|
6568
|
-
? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context)
|
|
6569
|
-
: undefined,
|
|
6273
|
+
CelebrityFaces: output.CelebrityFaces != null ? deserializeAws_json1_1CelebrityList(output.CelebrityFaces, context) : undefined,
|
|
6570
6274
|
OrientationCorrection: (0, smithy_client_1.expectString)(output.OrientationCorrection),
|
|
6571
|
-
UnrecognizedFaces: output.UnrecognizedFaces
|
|
6275
|
+
UnrecognizedFaces: output.UnrecognizedFaces != null
|
|
6572
6276
|
? deserializeAws_json1_1ComparedFaceList(output.UnrecognizedFaces, context)
|
|
6573
6277
|
: undefined,
|
|
6574
6278
|
};
|
|
6575
6279
|
};
|
|
6576
6280
|
const deserializeAws_json1_1RegionOfInterest = (output, context) => {
|
|
6577
6281
|
return {
|
|
6578
|
-
BoundingBox: output.BoundingBox
|
|
6579
|
-
|
|
6580
|
-
: undefined,
|
|
6581
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
6582
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
6583
|
-
: undefined,
|
|
6282
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
6283
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
6584
6284
|
};
|
|
6585
6285
|
};
|
|
6586
6286
|
const deserializeAws_json1_1RegionsOfInterest = (output, context) => {
|
|
@@ -6637,11 +6337,9 @@ const deserializeAws_json1_1S3Object = (output, context) => {
|
|
|
6637
6337
|
};
|
|
6638
6338
|
const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
6639
6339
|
return {
|
|
6640
|
-
FaceMatches: output.FaceMatches
|
|
6641
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
6642
|
-
: undefined,
|
|
6340
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6643
6341
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6644
|
-
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox
|
|
6342
|
+
SearchedFaceBoundingBox: output.SearchedFaceBoundingBox != null
|
|
6645
6343
|
? deserializeAws_json1_1BoundingBox(output.SearchedFaceBoundingBox, context)
|
|
6646
6344
|
: undefined,
|
|
6647
6345
|
SearchedFaceConfidence: (0, smithy_client_1.limitedParseFloat32)(output.SearchedFaceConfidence),
|
|
@@ -6649,9 +6347,7 @@ const deserializeAws_json1_1SearchFacesByImageResponse = (output, context) => {
|
|
|
6649
6347
|
};
|
|
6650
6348
|
const deserializeAws_json1_1SearchFacesResponse = (output, context) => {
|
|
6651
6349
|
return {
|
|
6652
|
-
FaceMatches: output.FaceMatches
|
|
6653
|
-
? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context)
|
|
6654
|
-
: undefined,
|
|
6350
|
+
FaceMatches: output.FaceMatches != null ? deserializeAws_json1_1FaceMatchList(output.FaceMatches, context) : undefined,
|
|
6655
6351
|
FaceModelVersion: (0, smithy_client_1.expectString)(output.FaceModelVersion),
|
|
6656
6352
|
SearchedFaceId: (0, smithy_client_1.expectString)(output.SearchedFaceId),
|
|
6657
6353
|
};
|
|
@@ -6664,13 +6360,11 @@ const deserializeAws_json1_1SegmentDetection = (output, context) => {
|
|
|
6664
6360
|
EndFrameNumber: (0, smithy_client_1.expectLong)(output.EndFrameNumber),
|
|
6665
6361
|
EndTimecodeSMPTE: (0, smithy_client_1.expectString)(output.EndTimecodeSMPTE),
|
|
6666
6362
|
EndTimestampMillis: (0, smithy_client_1.expectLong)(output.EndTimestampMillis),
|
|
6667
|
-
ShotSegment: output.ShotSegment
|
|
6668
|
-
? deserializeAws_json1_1ShotSegment(output.ShotSegment, context)
|
|
6669
|
-
: undefined,
|
|
6363
|
+
ShotSegment: output.ShotSegment != null ? deserializeAws_json1_1ShotSegment(output.ShotSegment, context) : undefined,
|
|
6670
6364
|
StartFrameNumber: (0, smithy_client_1.expectLong)(output.StartFrameNumber),
|
|
6671
6365
|
StartTimecodeSMPTE: (0, smithy_client_1.expectString)(output.StartTimecodeSMPTE),
|
|
6672
6366
|
StartTimestampMillis: (0, smithy_client_1.expectLong)(output.StartTimestampMillis),
|
|
6673
|
-
TechnicalCueSegment: output.TechnicalCueSegment
|
|
6367
|
+
TechnicalCueSegment: output.TechnicalCueSegment != null
|
|
6674
6368
|
? deserializeAws_json1_1TechnicalCueSegment(output.TechnicalCueSegment, context)
|
|
6675
6369
|
: undefined,
|
|
6676
6370
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -6794,7 +6488,7 @@ const deserializeAws_json1_1StreamProcessorDataSharingPreference = (output, cont
|
|
|
6794
6488
|
};
|
|
6795
6489
|
const deserializeAws_json1_1StreamProcessorInput = (output, context) => {
|
|
6796
6490
|
return {
|
|
6797
|
-
KinesisVideoStream: output.KinesisVideoStream
|
|
6491
|
+
KinesisVideoStream: output.KinesisVideoStream != null
|
|
6798
6492
|
? deserializeAws_json1_1KinesisVideoStream(output.KinesisVideoStream, context)
|
|
6799
6493
|
: undefined,
|
|
6800
6494
|
};
|
|
@@ -6817,29 +6511,23 @@ const deserializeAws_json1_1StreamProcessorNotificationChannel = (output, contex
|
|
|
6817
6511
|
};
|
|
6818
6512
|
const deserializeAws_json1_1StreamProcessorOutput = (output, context) => {
|
|
6819
6513
|
return {
|
|
6820
|
-
KinesisDataStream: output.KinesisDataStream
|
|
6514
|
+
KinesisDataStream: output.KinesisDataStream != null
|
|
6821
6515
|
? deserializeAws_json1_1KinesisDataStream(output.KinesisDataStream, context)
|
|
6822
6516
|
: undefined,
|
|
6823
|
-
S3Destination: output.S3Destination
|
|
6824
|
-
? deserializeAws_json1_1S3Destination(output.S3Destination, context)
|
|
6825
|
-
: undefined,
|
|
6517
|
+
S3Destination: output.S3Destination != null ? deserializeAws_json1_1S3Destination(output.S3Destination, context) : undefined,
|
|
6826
6518
|
};
|
|
6827
6519
|
};
|
|
6828
6520
|
const deserializeAws_json1_1StreamProcessorSettings = (output, context) => {
|
|
6829
6521
|
return {
|
|
6830
|
-
ConnectedHome: output.ConnectedHome
|
|
6522
|
+
ConnectedHome: output.ConnectedHome != null
|
|
6831
6523
|
? deserializeAws_json1_1ConnectedHomeSettings(output.ConnectedHome, context)
|
|
6832
6524
|
: undefined,
|
|
6833
|
-
FaceSearch: output.FaceSearch
|
|
6834
|
-
? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context)
|
|
6835
|
-
: undefined,
|
|
6525
|
+
FaceSearch: output.FaceSearch != null ? deserializeAws_json1_1FaceSearchSettings(output.FaceSearch, context) : undefined,
|
|
6836
6526
|
};
|
|
6837
6527
|
};
|
|
6838
6528
|
const deserializeAws_json1_1Summary = (output, context) => {
|
|
6839
6529
|
return {
|
|
6840
|
-
S3Object: output.S3Object
|
|
6841
|
-
? deserializeAws_json1_1S3Object(output.S3Object, context)
|
|
6842
|
-
: undefined,
|
|
6530
|
+
S3Object: output.S3Object != null ? deserializeAws_json1_1S3Object(output.S3Object, context) : undefined,
|
|
6843
6531
|
};
|
|
6844
6532
|
};
|
|
6845
6533
|
const deserializeAws_json1_1Sunglasses = (output, context) => {
|
|
@@ -6870,32 +6558,22 @@ const deserializeAws_json1_1TechnicalCueSegment = (output, context) => {
|
|
|
6870
6558
|
};
|
|
6871
6559
|
const deserializeAws_json1_1TestingData = (output, context) => {
|
|
6872
6560
|
return {
|
|
6873
|
-
Assets: output.Assets
|
|
6874
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
6875
|
-
: undefined,
|
|
6561
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
6876
6562
|
AutoCreate: (0, smithy_client_1.expectBoolean)(output.AutoCreate),
|
|
6877
6563
|
};
|
|
6878
6564
|
};
|
|
6879
6565
|
const deserializeAws_json1_1TestingDataResult = (output, context) => {
|
|
6880
6566
|
return {
|
|
6881
|
-
Input: output.Input
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
6885
|
-
? deserializeAws_json1_1TestingData(output.Output, context)
|
|
6886
|
-
: undefined,
|
|
6887
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
6888
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
6889
|
-
: undefined,
|
|
6567
|
+
Input: output.Input != null ? deserializeAws_json1_1TestingData(output.Input, context) : undefined,
|
|
6568
|
+
Output: output.Output != null ? deserializeAws_json1_1TestingData(output.Output, context) : undefined,
|
|
6569
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
6890
6570
|
};
|
|
6891
6571
|
};
|
|
6892
6572
|
const deserializeAws_json1_1TextDetection = (output, context) => {
|
|
6893
6573
|
return {
|
|
6894
6574
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
6895
6575
|
DetectedText: (0, smithy_client_1.expectString)(output.DetectedText),
|
|
6896
|
-
Geometry: output.Geometry
|
|
6897
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
6898
|
-
: undefined,
|
|
6576
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
6899
6577
|
Id: (0, smithy_client_1.expectInt32)(output.Id),
|
|
6900
6578
|
ParentId: (0, smithy_client_1.expectInt32)(output.ParentId),
|
|
6901
6579
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
@@ -6914,9 +6592,7 @@ const deserializeAws_json1_1TextDetectionList = (output, context) => {
|
|
|
6914
6592
|
};
|
|
6915
6593
|
const deserializeAws_json1_1TextDetectionResult = (output, context) => {
|
|
6916
6594
|
return {
|
|
6917
|
-
TextDetection: output.TextDetection
|
|
6918
|
-
? deserializeAws_json1_1TextDetection(output.TextDetection, context)
|
|
6919
|
-
: undefined,
|
|
6595
|
+
TextDetection: output.TextDetection != null ? deserializeAws_json1_1TextDetection(output.TextDetection, context) : undefined,
|
|
6920
6596
|
Timestamp: (0, smithy_client_1.expectLong)(output.Timestamp),
|
|
6921
6597
|
};
|
|
6922
6598
|
};
|
|
@@ -6940,32 +6616,20 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
6940
6616
|
};
|
|
6941
6617
|
const deserializeAws_json1_1TrainingData = (output, context) => {
|
|
6942
6618
|
return {
|
|
6943
|
-
Assets: output.Assets
|
|
6944
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
6945
|
-
: undefined,
|
|
6619
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
6946
6620
|
};
|
|
6947
6621
|
};
|
|
6948
6622
|
const deserializeAws_json1_1TrainingDataResult = (output, context) => {
|
|
6949
6623
|
return {
|
|
6950
|
-
Input: output.Input
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
Output: output.Output !== undefined && output.Output !== null
|
|
6954
|
-
? deserializeAws_json1_1TrainingData(output.Output, context)
|
|
6955
|
-
: undefined,
|
|
6956
|
-
Validation: output.Validation !== undefined && output.Validation !== null
|
|
6957
|
-
? deserializeAws_json1_1ValidationData(output.Validation, context)
|
|
6958
|
-
: undefined,
|
|
6624
|
+
Input: output.Input != null ? deserializeAws_json1_1TrainingData(output.Input, context) : undefined,
|
|
6625
|
+
Output: output.Output != null ? deserializeAws_json1_1TrainingData(output.Output, context) : undefined,
|
|
6626
|
+
Validation: output.Validation != null ? deserializeAws_json1_1ValidationData(output.Validation, context) : undefined,
|
|
6959
6627
|
};
|
|
6960
6628
|
};
|
|
6961
6629
|
const deserializeAws_json1_1UnindexedFace = (output, context) => {
|
|
6962
6630
|
return {
|
|
6963
|
-
FaceDetail: output.FaceDetail
|
|
6964
|
-
|
|
6965
|
-
: undefined,
|
|
6966
|
-
Reasons: output.Reasons !== undefined && output.Reasons !== null
|
|
6967
|
-
? deserializeAws_json1_1Reasons(output.Reasons, context)
|
|
6968
|
-
: undefined,
|
|
6631
|
+
FaceDetail: output.FaceDetail != null ? deserializeAws_json1_1FaceDetail(output.FaceDetail, context) : undefined,
|
|
6632
|
+
Reasons: output.Reasons != null ? deserializeAws_json1_1Reasons(output.Reasons, context) : undefined,
|
|
6969
6633
|
};
|
|
6970
6634
|
};
|
|
6971
6635
|
const deserializeAws_json1_1UnindexedFaces = (output, context) => {
|
|
@@ -7001,9 +6665,7 @@ const deserializeAws_json1_1Urls = (output, context) => {
|
|
|
7001
6665
|
};
|
|
7002
6666
|
const deserializeAws_json1_1ValidationData = (output, context) => {
|
|
7003
6667
|
return {
|
|
7004
|
-
Assets: output.Assets
|
|
7005
|
-
? deserializeAws_json1_1Assets(output.Assets, context)
|
|
7006
|
-
: undefined,
|
|
6668
|
+
Assets: output.Assets != null ? deserializeAws_json1_1Assets(output.Assets, context) : undefined,
|
|
7007
6669
|
};
|
|
7008
6670
|
};
|
|
7009
6671
|
const deserializeAws_json1_1VideoMetadata = (output, context) => {
|