Class CfnStreamProcessorPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::Rekognition::StreamProcessor type creates a stream processor used to detect and recognize faces or to detect connected home labels in a streaming video.
Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are two different settings for stream processors in Amazon Rekognition, one for detecting faces and one for connected home features.
If you are creating a stream processor for detecting faces, you provide a Kinesis video stream (input) and a Kinesis data stream (output). You also specify the face recognition criteria in FaceSearchSettings. For example, the collection containing faces that you want to recognize.
If you are creating a stream processor for detection of connected home labels, you provide a Kinesis video stream for input, and for output an Amazon S3 bucket and an Amazon SNS topic. You can also provide a KMS key ID to encrypt the data sent to your Amazon S3 bucket. You specify what you want to detect in ConnectedHomeSettings, such as people, packages, and pets.
You can also specify where in the frame you want Amazon Rekognition to monitor with BoundingBoxRegionsOfInterest and PolygonRegionsOfInterest. The Name is used to manage the stream processor and it is the identifier for the stream processor. The AWS::Rekognition::StreamProcessor resource creates a stream processor in the same Region where you create the Amazon CloudFormation stack.
For more information, see CreateStreamProcessor .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.rekognition.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
Object polygonRegionsOfInterest;
CfnStreamProcessorPropsMixin cfnStreamProcessorPropsMixin = CfnStreamProcessorPropsMixin.Builder.create(CfnStreamProcessorMixinProps.builder()
.boundingBoxRegionsOfInterest(List.of(BoundingBoxProperty.builder()
.height(123)
.left(123)
.top(123)
.width(123)
.build()))
.connectedHomeSettings(ConnectedHomeSettingsProperty.builder()
.labels(List.of("labels"))
.minConfidence(123)
.build())
.dataSharingPreference(DataSharingPreferenceProperty.builder()
.optIn(false)
.build())
.faceSearchSettings(FaceSearchSettingsProperty.builder()
.collectionId("collectionId")
.faceMatchThreshold(123)
.build())
.kinesisDataStream(KinesisDataStreamProperty.builder()
.arn("arn")
.build())
.kinesisVideoStream(KinesisVideoStreamProperty.builder()
.arn("arn")
.build())
.kmsKeyId("kmsKeyId")
.name("name")
.notificationChannel(NotificationChannelProperty.builder()
.arn("arn")
.build())
.polygonRegionsOfInterest(polygonRegionsOfInterest)
.roleArn("roleArn")
.s3Destination(S3DestinationProperty.builder()
.bucketName("bucketName")
.objectKeyPrefix("objectKeyPrefix")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceIdentifies the bounding box around the label, face, text, or personal protective equipment.static final classA fluent builder forCfnStreamProcessorPropsMixin.static interfaceConnected home settings to use on a streaming video.static interfaceAllows you to opt in or opt out to share data with Rekognition to improve model performance.static interfaceThe input parameters used to recognize faces in a streaming video analyzed by a Amazon Rekognition stream processor.static interfaceAmazon Rekognition Video Stream Processor take as input a Kinesis video stream (Input) and a Kinesis data stream (Output).static interfaceThe Kinesis video stream that provides the source of the streaming video for an Amazon Rekognition Video stream processor.static interfaceThe Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.static interfaceThe X and Y coordinates of a point on an image or video frame.static interfaceThe Amazon S3 bucket location to which Amazon Rekognition publishes the detailed inference results of a video analysis operation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::Rekognition::StreamProcessor.Create a mixin to apply properties toAWS::Rekognition::StreamProcessor.protectedCfnStreamProcessorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStreamProcessorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnStreamProcessorMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnStreamProcessorPropsMixin
protected CfnStreamProcessorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStreamProcessorPropsMixin
protected CfnStreamProcessorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStreamProcessorPropsMixin
@Stability(Stable) public CfnStreamProcessorPropsMixin(@NotNull CfnStreamProcessorMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::Rekognition::StreamProcessor.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnStreamProcessorPropsMixin
Create a mixin to apply properties toAWS::Rekognition::StreamProcessor.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-