CfnStreamProcessorProps

class aws_cdk.aws_rekognition.CfnStreamProcessorProps(*, kinesis_video_stream, role_arn, bounding_box_regions_of_interest=None, connected_home_settings=None, data_sharing_preference=None, face_search_settings=None, kinesis_data_stream=None, kms_key_id=None, name=None, notification_channel=None, polygon_regions_of_interest=None, s3_destination=None, tags=None)

Bases: object

Properties for defining a CfnStreamProcessor.

Parameters:
  • kinesis_video_stream (Union[IResolvable, KinesisVideoStreamProperty, Dict[str, Any]]) – The Kinesis video stream that provides the source of the streaming video for an Amazon Rekognition Video stream processor. For more information, see KinesisVideoStream .

  • role_arn (str) – The ARN of the IAM role that allows access to the stream processor. The IAM role provides Rekognition read permissions to the Kinesis stream. It also provides write permissions to an Amazon S3 bucket and Amazon Simple Notification Service topic for a connected home stream processor. This is required for both face search and connected home stream processors. For information about constraints, see the RoleArn section of CreateStreamProcessor .

  • bounding_box_regions_of_interest (Union[IResolvable, Sequence[Union[IResolvable, BoundingBoxProperty, Dict[str, Any]]], None]) – List of BoundingBox objects, each of which denotes a region of interest on screen. For more information, see the BoundingBox field of RegionOfInterest .

  • connected_home_settings (Union[IResolvable, ConnectedHomeSettingsProperty, Dict[str, Any], None]) – Connected home settings to use on a streaming video. You can use a stream processor for connected home features and select what you want the stream processor to detect, such as people or pets. When the stream processor has started, one notification is sent for each object class specified. For more information, see the ConnectedHome section of StreamProcessorSettings .

  • data_sharing_preference (Union[IResolvable, DataSharingPreferenceProperty, Dict[str, Any], None]) – Allows you to opt in or opt out to share data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams. For more information, see StreamProcessorDataSharingPreference .

  • face_search_settings (Union[IResolvable, FaceSearchSettingsProperty, Dict[str, Any], None]) – The input parameters used to recognize faces in a streaming video analyzed by an Amazon Rekognition stream processor. For more information regarding the contents of the parameters, see FaceSearchSettings .

  • kinesis_data_stream (Union[IResolvable, KinesisDataStreamProperty, Dict[str, Any], None]) – Amazon Rekognition’s Video Stream Processor takes a Kinesis video stream as input. This is the Amazon Kinesis Data Streams instance to which the Amazon Rekognition stream processor streams the analysis results. This must be created within the constraints specified at KinesisDataStream .

  • kms_key_id (Optional[str]) –

    The identifier for your Amazon Key Management Service key (Amazon KMS key). Optional parameter for connected home stream processors used to encrypt results and data published to your Amazon S3 bucket. For more information, see the KMSKeyId section of CreateStreamProcessor .

  • name (Optional[str]) – The Name attribute specifies the name of the stream processor and it must be within the constraints described in the Name section of StreamProcessor . If you don’t specify a name, Amazon CloudFormation generates a unique ID and uses that ID for the stream processor name.

  • notification_channel (Union[IResolvable, NotificationChannelProperty, Dict[str, Any], None]) – The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation. Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. Amazon Rekognition also publishes an end-of-session notification with a summary when the stream processing session is complete. For more information, see StreamProcessorNotificationChannel .

  • polygon_regions_of_interest (Any) –

    A set of ordered lists of Point objects. Each entry of the set contains a polygon denoting a region of interest on the screen. Each polygon is an ordered list of Point objects. For more information, see the Polygon field of RegionOfInterest .

  • s3_destination (Union[IResolvable, S3DestinationProperty, Dict[str, Any], None]) – The Amazon S3 bucket location to which Amazon Rekognition publishes the detailed inference results of a video analysis operation. For more information, see the S3Destination section of StreamProcessorOutput .

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) –

    A set of tags (key-value pairs) that you want to attach to the stream processor. For more information, see the Tags section of CreateStreamProcessor .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rekognition as rekognition

# polygon_regions_of_interest: Any

cfn_stream_processor_props = rekognition.CfnStreamProcessorProps(
    kinesis_video_stream=rekognition.CfnStreamProcessor.KinesisVideoStreamProperty(
        arn="arn"
    ),
    role_arn="roleArn",

    # the properties below are optional
    bounding_box_regions_of_interest=[rekognition.CfnStreamProcessor.BoundingBoxProperty(
        height=123,
        left=123,
        top=123,
        width=123
    )],
    connected_home_settings=rekognition.CfnStreamProcessor.ConnectedHomeSettingsProperty(
        labels=["labels"],

        # the properties below are optional
        min_confidence=123
    ),
    data_sharing_preference=rekognition.CfnStreamProcessor.DataSharingPreferenceProperty(
        opt_in=False
    ),
    face_search_settings=rekognition.CfnStreamProcessor.FaceSearchSettingsProperty(
        collection_id="collectionId",

        # the properties below are optional
        face_match_threshold=123
    ),
    kinesis_data_stream=rekognition.CfnStreamProcessor.KinesisDataStreamProperty(
        arn="arn"
    ),
    kms_key_id="kmsKeyId",
    name="name",
    notification_channel=rekognition.CfnStreamProcessor.NotificationChannelProperty(
        arn="arn"
    ),
    polygon_regions_of_interest=polygon_regions_of_interest,
    s3_destination=rekognition.CfnStreamProcessor.S3DestinationProperty(
        bucket_name="bucketName",

        # the properties below are optional
        object_key_prefix="objectKeyPrefix"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

bounding_box_regions_of_interest

List of BoundingBox objects, each of which denotes a region of interest on screen.

For more information, see the BoundingBox field of RegionOfInterest .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-boundingboxregionsofinterest

connected_home_settings

Connected home settings to use on a streaming video.

You can use a stream processor for connected home features and select what you want the stream processor to detect, such as people or pets. When the stream processor has started, one notification is sent for each object class specified. For more information, see the ConnectedHome section of StreamProcessorSettings .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-connectedhomesettings

data_sharing_preference

Allows you to opt in or opt out to share data with Rekognition to improve model performance.

You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams. For more information, see StreamProcessorDataSharingPreference .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-datasharingpreference

face_search_settings

The input parameters used to recognize faces in a streaming video analyzed by an Amazon Rekognition stream processor.

For more information regarding the contents of the parameters, see FaceSearchSettings .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-facesearchsettings

kinesis_data_stream

Amazon Rekognition’s Video Stream Processor takes a Kinesis video stream as input.

This is the Amazon Kinesis Data Streams instance to which the Amazon Rekognition stream processor streams the analysis results. This must be created within the constraints specified at KinesisDataStream .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisdatastream

kinesis_video_stream

The Kinesis video stream that provides the source of the streaming video for an Amazon Rekognition Video stream processor.

For more information, see KinesisVideoStream .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisvideostream

kms_key_id

The identifier for your Amazon Key Management Service key (Amazon KMS key).

Optional parameter for connected home stream processors used to encrypt results and data published to your Amazon S3 bucket. For more information, see the KMSKeyId section of CreateStreamProcessor .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kmskeyid

name

//docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessor>`_ . If you don’t specify a name, Amazon CloudFormation generates a unique ID and uses that ID for the stream processor name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-name

Type:

The Name attribute specifies the name of the stream processor and it must be within the constraints described in the Name section of `StreamProcessor <https

notification_channel

The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.

Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. Amazon Rekognition also publishes an end-of-session notification with a summary when the stream processing session is complete. For more information, see StreamProcessorNotificationChannel .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-notificationchannel

polygon_regions_of_interest

//docs.aws.amazon.com/rekognition/latest/APIReference/API_Point>`_ objects. For more information, see the Polygon field of RegionOfInterest .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-polygonregionsofinterest

Type:

A set of ordered lists of `Point <https

Type:

//docs.aws.amazon.com/rekognition/latest/APIReference/API_Point>`_ objects. Each entry of the set contains a polygon denoting a region of interest on the screen. Each polygon is an ordered list of `Point <https

role_arn

The ARN of the IAM role that allows access to the stream processor.

The IAM role provides Rekognition read permissions to the Kinesis stream. It also provides write permissions to an Amazon S3 bucket and Amazon Simple Notification Service topic for a connected home stream processor. This is required for both face search and connected home stream processors. For information about constraints, see the RoleArn section of CreateStreamProcessor .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-rolearn

s3_destination

The Amazon S3 bucket location to which Amazon Rekognition publishes the detailed inference results of a video analysis operation.

For more information, see the S3Destination section of StreamProcessorOutput .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-s3destination

tags

A set of tags (key-value pairs) that you want to attach to the stream processor.

For more information, see the Tags section of CreateStreamProcessor .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-tags