aws-sdk-rekognition 1.65.0 → 1.68.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,6 +46,10 @@ module Aws::Rekognition
46
46
  ComparedFace = Shapes::StructureShape.new(name: 'ComparedFace')
47
47
  ComparedFaceList = Shapes::ListShape.new(name: 'ComparedFaceList')
48
48
  ComparedSourceImageFace = Shapes::StructureShape.new(name: 'ComparedSourceImageFace')
49
+ ConnectedHomeLabel = Shapes::StringShape.new(name: 'ConnectedHomeLabel')
50
+ ConnectedHomeLabels = Shapes::ListShape.new(name: 'ConnectedHomeLabels')
51
+ ConnectedHomeSettings = Shapes::StructureShape.new(name: 'ConnectedHomeSettings')
52
+ ConnectedHomeSettingsForUpdate = Shapes::StructureShape.new(name: 'ConnectedHomeSettingsForUpdate')
49
53
  ContentClassifier = Shapes::StringShape.new(name: 'ContentClassifier')
50
54
  ContentClassifiers = Shapes::ListShape.new(name: 'ContentClassifiers')
51
55
  ContentModerationDetection = Shapes::StructureShape.new(name: 'ContentModerationDetection')
@@ -208,6 +212,8 @@ module Aws::Rekognition
208
212
  KinesisDataStream = Shapes::StructureShape.new(name: 'KinesisDataStream')
209
213
  KinesisVideoArn = Shapes::StringShape.new(name: 'KinesisVideoArn')
210
214
  KinesisVideoStream = Shapes::StructureShape.new(name: 'KinesisVideoStream')
215
+ KinesisVideoStreamFragmentNumber = Shapes::StringShape.new(name: 'KinesisVideoStreamFragmentNumber')
216
+ KinesisVideoStreamStartSelector = Shapes::StructureShape.new(name: 'KinesisVideoStreamStartSelector')
211
217
  KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
212
218
  KnownGender = Shapes::StructureShape.new(name: 'KnownGender')
213
219
  KnownGenderType = Shapes::StringShape.new(name: 'KnownGenderType')
@@ -234,6 +240,7 @@ module Aws::Rekognition
234
240
  ListStreamProcessorsResponse = Shapes::StructureShape.new(name: 'ListStreamProcessorsResponse')
235
241
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
236
242
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
243
+ MaxDurationInSecondsULong = Shapes::IntegerShape.new(name: 'MaxDurationInSecondsULong')
237
244
  MaxFaces = Shapes::IntegerShape.new(name: 'MaxFaces')
238
245
  MaxFacesToIndex = Shapes::IntegerShape.new(name: 'MaxFacesToIndex')
239
246
  MaxPixelThreshold = Shapes::FloatShape.new(name: 'MaxPixelThreshold')
@@ -298,6 +305,7 @@ module Aws::Rekognition
298
305
  ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
299
306
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
300
307
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
308
+ S3Destination = Shapes::StructureShape.new(name: 'S3Destination')
301
309
  S3KeyPrefix = Shapes::StringShape.new(name: 'S3KeyPrefix')
302
310
  S3Object = Shapes::StructureShape.new(name: 'S3Object')
303
311
  S3ObjectName = Shapes::StringShape.new(name: 'S3ObjectName')
@@ -337,6 +345,7 @@ module Aws::Rekognition
337
345
  StartShotDetectionFilter = Shapes::StructureShape.new(name: 'StartShotDetectionFilter')
338
346
  StartStreamProcessorRequest = Shapes::StructureShape.new(name: 'StartStreamProcessorRequest')
339
347
  StartStreamProcessorResponse = Shapes::StructureShape.new(name: 'StartStreamProcessorResponse')
348
+ StartStreamProcessorSessionId = Shapes::StringShape.new(name: 'StartStreamProcessorSessionId')
340
349
  StartTechnicalCueDetectionFilter = Shapes::StructureShape.new(name: 'StartTechnicalCueDetectionFilter')
341
350
  StartTextDetectionFilters = Shapes::StructureShape.new(name: 'StartTextDetectionFilters')
342
351
  StartTextDetectionRequest = Shapes::StructureShape.new(name: 'StartTextDetectionRequest')
@@ -346,13 +355,20 @@ module Aws::Rekognition
346
355
  StopProjectVersionResponse = Shapes::StructureShape.new(name: 'StopProjectVersionResponse')
347
356
  StopStreamProcessorRequest = Shapes::StructureShape.new(name: 'StopStreamProcessorRequest')
348
357
  StopStreamProcessorResponse = Shapes::StructureShape.new(name: 'StopStreamProcessorResponse')
358
+ StreamProcessingStartSelector = Shapes::StructureShape.new(name: 'StreamProcessingStartSelector')
359
+ StreamProcessingStopSelector = Shapes::StructureShape.new(name: 'StreamProcessingStopSelector')
349
360
  StreamProcessor = Shapes::StructureShape.new(name: 'StreamProcessor')
350
361
  StreamProcessorArn = Shapes::StringShape.new(name: 'StreamProcessorArn')
362
+ StreamProcessorDataSharingPreference = Shapes::StructureShape.new(name: 'StreamProcessorDataSharingPreference')
351
363
  StreamProcessorInput = Shapes::StructureShape.new(name: 'StreamProcessorInput')
352
364
  StreamProcessorList = Shapes::ListShape.new(name: 'StreamProcessorList')
353
365
  StreamProcessorName = Shapes::StringShape.new(name: 'StreamProcessorName')
366
+ StreamProcessorNotificationChannel = Shapes::StructureShape.new(name: 'StreamProcessorNotificationChannel')
354
367
  StreamProcessorOutput = Shapes::StructureShape.new(name: 'StreamProcessorOutput')
368
+ StreamProcessorParameterToDelete = Shapes::StringShape.new(name: 'StreamProcessorParameterToDelete')
369
+ StreamProcessorParametersToDelete = Shapes::ListShape.new(name: 'StreamProcessorParametersToDelete')
355
370
  StreamProcessorSettings = Shapes::StructureShape.new(name: 'StreamProcessorSettings')
371
+ StreamProcessorSettingsForUpdate = Shapes::StructureShape.new(name: 'StreamProcessorSettingsForUpdate')
356
372
  StreamProcessorStatus = Shapes::StringShape.new(name: 'StreamProcessorStatus')
357
373
  String = Shapes::StringShape.new(name: 'String')
358
374
  Summary = Shapes::StructureShape.new(name: 'Summary')
@@ -385,6 +401,8 @@ module Aws::Rekognition
385
401
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
386
402
  UpdateDatasetEntriesRequest = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesRequest')
387
403
  UpdateDatasetEntriesResponse = Shapes::StructureShape.new(name: 'UpdateDatasetEntriesResponse')
404
+ UpdateStreamProcessorRequest = Shapes::StructureShape.new(name: 'UpdateStreamProcessorRequest')
405
+ UpdateStreamProcessorResponse = Shapes::StructureShape.new(name: 'UpdateStreamProcessorResponse')
388
406
  Url = Shapes::StringShape.new(name: 'Url')
389
407
  Urls = Shapes::ListShape.new(name: 'Urls')
390
408
  ValidationData = Shapes::StructureShape.new(name: 'ValidationData')
@@ -497,6 +515,16 @@ module Aws::Rekognition
497
515
  ComparedSourceImageFace.add_member(:confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "Confidence"))
498
516
  ComparedSourceImageFace.struct_class = Types::ComparedSourceImageFace
499
517
 
518
+ ConnectedHomeLabels.member = Shapes::ShapeRef.new(shape: ConnectedHomeLabel)
519
+
520
+ ConnectedHomeSettings.add_member(:labels, Shapes::ShapeRef.new(shape: ConnectedHomeLabels, required: true, location_name: "Labels"))
521
+ ConnectedHomeSettings.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
522
+ ConnectedHomeSettings.struct_class = Types::ConnectedHomeSettings
523
+
524
+ ConnectedHomeSettingsForUpdate.add_member(:labels, Shapes::ShapeRef.new(shape: ConnectedHomeLabels, location_name: "Labels"))
525
+ ConnectedHomeSettingsForUpdate.add_member(:min_confidence, Shapes::ShapeRef.new(shape: Percent, location_name: "MinConfidence"))
526
+ ConnectedHomeSettingsForUpdate.struct_class = Types::ConnectedHomeSettingsForUpdate
527
+
500
528
  ContentClassifiers.member = Shapes::ShapeRef.new(shape: ContentClassifier)
501
529
 
502
530
  ContentModerationDetection.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
@@ -550,6 +578,10 @@ module Aws::Rekognition
550
578
  CreateStreamProcessorRequest.add_member(:settings, Shapes::ShapeRef.new(shape: StreamProcessorSettings, required: true, location_name: "Settings"))
551
579
  CreateStreamProcessorRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
552
580
  CreateStreamProcessorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
581
+ CreateStreamProcessorRequest.add_member(:notification_channel, Shapes::ShapeRef.new(shape: StreamProcessorNotificationChannel, location_name: "NotificationChannel"))
582
+ CreateStreamProcessorRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
583
+ CreateStreamProcessorRequest.add_member(:regions_of_interest, Shapes::ShapeRef.new(shape: RegionsOfInterest, location_name: "RegionsOfInterest"))
584
+ CreateStreamProcessorRequest.add_member(:data_sharing_preference, Shapes::ShapeRef.new(shape: StreamProcessorDataSharingPreference, location_name: "DataSharingPreference"))
553
585
  CreateStreamProcessorRequest.struct_class = Types::CreateStreamProcessorRequest
554
586
 
555
587
  CreateStreamProcessorResponse.add_member(:stream_processor_arn, Shapes::ShapeRef.new(shape: StreamProcessorArn, location_name: "StreamProcessorArn"))
@@ -689,6 +721,10 @@ module Aws::Rekognition
689
721
  DescribeStreamProcessorResponse.add_member(:output, Shapes::ShapeRef.new(shape: StreamProcessorOutput, location_name: "Output"))
690
722
  DescribeStreamProcessorResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
691
723
  DescribeStreamProcessorResponse.add_member(:settings, Shapes::ShapeRef.new(shape: StreamProcessorSettings, location_name: "Settings"))
724
+ DescribeStreamProcessorResponse.add_member(:notification_channel, Shapes::ShapeRef.new(shape: StreamProcessorNotificationChannel, location_name: "NotificationChannel"))
725
+ DescribeStreamProcessorResponse.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
726
+ DescribeStreamProcessorResponse.add_member(:regions_of_interest, Shapes::ShapeRef.new(shape: RegionsOfInterest, location_name: "RegionsOfInterest"))
727
+ DescribeStreamProcessorResponse.add_member(:data_sharing_preference, Shapes::ShapeRef.new(shape: StreamProcessorDataSharingPreference, location_name: "DataSharingPreference"))
692
728
  DescribeStreamProcessorResponse.struct_class = Types::DescribeStreamProcessorResponse
693
729
 
694
730
  DetectCustomLabelsRequest.add_member(:project_version_arn, Shapes::ShapeRef.new(shape: ProjectVersionArn, required: true, location_name: "ProjectVersionArn"))
@@ -1038,6 +1074,10 @@ module Aws::Rekognition
1038
1074
  KinesisVideoStream.add_member(:arn, Shapes::ShapeRef.new(shape: KinesisVideoArn, location_name: "Arn"))
1039
1075
  KinesisVideoStream.struct_class = Types::KinesisVideoStream
1040
1076
 
1077
+ KinesisVideoStreamStartSelector.add_member(:producer_timestamp, Shapes::ShapeRef.new(shape: ULong, location_name: "ProducerTimestamp"))
1078
+ KinesisVideoStreamStartSelector.add_member(:fragment_number, Shapes::ShapeRef.new(shape: KinesisVideoStreamFragmentNumber, location_name: "FragmentNumber"))
1079
+ KinesisVideoStreamStartSelector.struct_class = Types::KinesisVideoStreamStartSelector
1080
+
1041
1081
  KnownGender.add_member(:type, Shapes::ShapeRef.new(shape: KnownGenderType, location_name: "Type"))
1042
1082
  KnownGender.struct_class = Types::KnownGender
1043
1083
 
@@ -1242,6 +1282,7 @@ module Aws::Rekognition
1242
1282
  RecognizeCelebritiesResponse.struct_class = Types::RecognizeCelebritiesResponse
1243
1283
 
1244
1284
  RegionOfInterest.add_member(:bounding_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "BoundingBox"))
1285
+ RegionOfInterest.add_member(:polygon, Shapes::ShapeRef.new(shape: Polygon, location_name: "Polygon"))
1245
1286
  RegionOfInterest.struct_class = Types::RegionOfInterest
1246
1287
 
1247
1288
  RegionsOfInterest.member = Shapes::ShapeRef.new(shape: RegionOfInterest)
@@ -1254,6 +1295,10 @@ module Aws::Rekognition
1254
1295
 
1255
1296
  ResourceNotReadyException.struct_class = Types::ResourceNotReadyException
1256
1297
 
1298
+ S3Destination.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
1299
+ S3Destination.add_member(:key_prefix, Shapes::ShapeRef.new(shape: S3KeyPrefix, location_name: "KeyPrefix"))
1300
+ S3Destination.struct_class = Types::S3Destination
1301
+
1257
1302
  S3Object.add_member(:bucket, Shapes::ShapeRef.new(shape: S3Bucket, location_name: "Bucket"))
1258
1303
  S3Object.add_member(:name, Shapes::ShapeRef.new(shape: S3ObjectName, location_name: "Name"))
1259
1304
  S3Object.add_member(:version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "Version"))
@@ -1402,8 +1447,11 @@ module Aws::Rekognition
1402
1447
  StartShotDetectionFilter.struct_class = Types::StartShotDetectionFilter
1403
1448
 
1404
1449
  StartStreamProcessorRequest.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, required: true, location_name: "Name"))
1450
+ StartStreamProcessorRequest.add_member(:start_selector, Shapes::ShapeRef.new(shape: StreamProcessingStartSelector, location_name: "StartSelector"))
1451
+ StartStreamProcessorRequest.add_member(:stop_selector, Shapes::ShapeRef.new(shape: StreamProcessingStopSelector, location_name: "StopSelector"))
1405
1452
  StartStreamProcessorRequest.struct_class = Types::StartStreamProcessorRequest
1406
1453
 
1454
+ StartStreamProcessorResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: StartStreamProcessorSessionId, location_name: "SessionId"))
1407
1455
  StartStreamProcessorResponse.struct_class = Types::StartStreamProcessorResponse
1408
1456
 
1409
1457
  StartTechnicalCueDetectionFilter.add_member(:min_segment_confidence, Shapes::ShapeRef.new(shape: SegmentConfidence, location_name: "MinSegmentConfidence"))
@@ -1435,21 +1483,40 @@ module Aws::Rekognition
1435
1483
 
1436
1484
  StopStreamProcessorResponse.struct_class = Types::StopStreamProcessorResponse
1437
1485
 
1486
+ StreamProcessingStartSelector.add_member(:kvs_stream_start_selector, Shapes::ShapeRef.new(shape: KinesisVideoStreamStartSelector, location_name: "KVSStreamStartSelector"))
1487
+ StreamProcessingStartSelector.struct_class = Types::StreamProcessingStartSelector
1488
+
1489
+ StreamProcessingStopSelector.add_member(:max_duration_in_seconds, Shapes::ShapeRef.new(shape: MaxDurationInSecondsULong, location_name: "MaxDurationInSeconds"))
1490
+ StreamProcessingStopSelector.struct_class = Types::StreamProcessingStopSelector
1491
+
1438
1492
  StreamProcessor.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, location_name: "Name"))
1439
1493
  StreamProcessor.add_member(:status, Shapes::ShapeRef.new(shape: StreamProcessorStatus, location_name: "Status"))
1440
1494
  StreamProcessor.struct_class = Types::StreamProcessor
1441
1495
 
1496
+ StreamProcessorDataSharingPreference.add_member(:opt_in, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "OptIn"))
1497
+ StreamProcessorDataSharingPreference.struct_class = Types::StreamProcessorDataSharingPreference
1498
+
1442
1499
  StreamProcessorInput.add_member(:kinesis_video_stream, Shapes::ShapeRef.new(shape: KinesisVideoStream, location_name: "KinesisVideoStream"))
1443
1500
  StreamProcessorInput.struct_class = Types::StreamProcessorInput
1444
1501
 
1445
1502
  StreamProcessorList.member = Shapes::ShapeRef.new(shape: StreamProcessor)
1446
1503
 
1504
+ StreamProcessorNotificationChannel.add_member(:sns_topic_arn, Shapes::ShapeRef.new(shape: SNSTopicArn, required: true, location_name: "SNSTopicArn"))
1505
+ StreamProcessorNotificationChannel.struct_class = Types::StreamProcessorNotificationChannel
1506
+
1447
1507
  StreamProcessorOutput.add_member(:kinesis_data_stream, Shapes::ShapeRef.new(shape: KinesisDataStream, location_name: "KinesisDataStream"))
1508
+ StreamProcessorOutput.add_member(:s3_destination, Shapes::ShapeRef.new(shape: S3Destination, location_name: "S3Destination"))
1448
1509
  StreamProcessorOutput.struct_class = Types::StreamProcessorOutput
1449
1510
 
1511
+ StreamProcessorParametersToDelete.member = Shapes::ShapeRef.new(shape: StreamProcessorParameterToDelete)
1512
+
1450
1513
  StreamProcessorSettings.add_member(:face_search, Shapes::ShapeRef.new(shape: FaceSearchSettings, location_name: "FaceSearch"))
1514
+ StreamProcessorSettings.add_member(:connected_home, Shapes::ShapeRef.new(shape: ConnectedHomeSettings, location_name: "ConnectedHome"))
1451
1515
  StreamProcessorSettings.struct_class = Types::StreamProcessorSettings
1452
1516
 
1517
+ StreamProcessorSettingsForUpdate.add_member(:connected_home_for_update, Shapes::ShapeRef.new(shape: ConnectedHomeSettingsForUpdate, location_name: "ConnectedHomeForUpdate"))
1518
+ StreamProcessorSettingsForUpdate.struct_class = Types::StreamProcessorSettingsForUpdate
1519
+
1453
1520
  Summary.add_member(:s3_object, Shapes::ShapeRef.new(shape: S3Object, location_name: "S3Object"))
1454
1521
  Summary.struct_class = Types::Summary
1455
1522
 
@@ -1525,6 +1592,15 @@ module Aws::Rekognition
1525
1592
 
1526
1593
  UpdateDatasetEntriesResponse.struct_class = Types::UpdateDatasetEntriesResponse
1527
1594
 
1595
+ UpdateStreamProcessorRequest.add_member(:name, Shapes::ShapeRef.new(shape: StreamProcessorName, required: true, location_name: "Name"))
1596
+ UpdateStreamProcessorRequest.add_member(:settings_for_update, Shapes::ShapeRef.new(shape: StreamProcessorSettingsForUpdate, location_name: "SettingsForUpdate"))
1597
+ UpdateStreamProcessorRequest.add_member(:regions_of_interest_for_update, Shapes::ShapeRef.new(shape: RegionsOfInterest, location_name: "RegionsOfInterestForUpdate"))
1598
+ UpdateStreamProcessorRequest.add_member(:data_sharing_preference_for_update, Shapes::ShapeRef.new(shape: StreamProcessorDataSharingPreference, location_name: "DataSharingPreferenceForUpdate"))
1599
+ UpdateStreamProcessorRequest.add_member(:parameters_to_delete, Shapes::ShapeRef.new(shape: StreamProcessorParametersToDelete, location_name: "ParametersToDelete"))
1600
+ UpdateStreamProcessorRequest.struct_class = Types::UpdateStreamProcessorRequest
1601
+
1602
+ UpdateStreamProcessorResponse.struct_class = Types::UpdateStreamProcessorResponse
1603
+
1528
1604
  Urls.member = Shapes::ShapeRef.new(shape: Url)
1529
1605
 
1530
1606
  ValidationData.add_member(:assets, Shapes::ShapeRef.new(shape: Assets, location_name: "Assets"))
@@ -2561,6 +2637,20 @@ module Aws::Rekognition
2561
2637
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2562
2638
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2563
2639
  end)
2640
+
2641
+ api.add_operation(:update_stream_processor, Seahorse::Model::Operation.new.tap do |o|
2642
+ o.name = "UpdateStreamProcessor"
2643
+ o.http_method = "POST"
2644
+ o.http_request_uri = "/"
2645
+ o.input = Shapes::ShapeRef.new(shape: UpdateStreamProcessorRequest)
2646
+ o.output = Shapes::ShapeRef.new(shape: UpdateStreamProcessorResponse)
2647
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2648
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2649
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2650
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2651
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2652
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
2653
+ end)
2564
2654
  end
2565
2655
 
2566
2656
  end