stream_processors
Creates, updates, deletes or gets a stream_processor
resource or lists stream_processors
in a region
Overview
Name | stream_processors |
Type | Resource |
Description | The AWS::Rekognition::StreamProcessor type is used to create an Amazon Rekognition StreamProcessor that you can use to analyze streaming videos. |
Id | aws.rekognition.stream_processors |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | The ARN of the stream processor |
name | string | Name of the stream processor. It's an identifier you assign to the stream processor. You can use it to manage the stream processor. |
kms_key_id | string | The KMS key that is used by Rekognition to encrypt any intermediate customer metadata and store in the customer's S3 bucket. |
role_arn | string | ARN of the IAM role that allows access to the stream processor, and provides Rekognition read permissions for KVS stream and write permissions to S3 bucket and SNS topic. |
kinesis_video_stream | object | The Kinesis Video Stream that streams the source video. |
face_search_settings | object | Face search settings to use on a streaming video. Note that either FaceSearchSettings or ConnectedHomeSettings should be set. Not both |
connected_home_settings | object | Connected home settings to use on a streaming video. Note that either ConnectedHomeSettings or FaceSearchSettings should be set. Not both |
kinesis_data_stream | object | The Amazon Kinesis Data Stream stream to which the Amazon Rekognition stream processor streams the analysis results, as part of face search feature. |
s3_destination | object | The S3 location in customer's account where inference output & artifacts are stored, as part of connected home feature. |
notification_channel | object | The ARN of the SNS notification channel where events of interests are published, as part of connected home feature. |
data_sharing_preference | object | Indicates whether Rekognition is allowed to store the video stream data for model-training. |
polygon_regions_of_interest | array | The PolygonRegionsOfInterest specifies a set of polygon areas of interest in the video frames to analyze, as part of connected home feature. Each polygon is in turn, an ordered list of Point |
bounding_box_regions_of_interest | array | The BoundingBoxRegionsOfInterest specifies an array of bounding boxes of interest in the video frames to analyze, as part of connected home feature. If an object is partially in a region of interest, Rekognition will tag it as detected if the overlap of the object with the region-of-interest is greater than 20%. |
status | string | Current status of the stream processor. |
status_message | string | Detailed status message about the stream processor. |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | RoleArn, KinesisVideoStream, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all stream_processors
in a region.
SELECT
region,
arn,
name,
kms_key_id,
role_arn,
kinesis_video_stream,
face_search_settings,
connected_home_settings,
kinesis_data_stream,
s3_destination,
notification_channel,
data_sharing_preference,
polygon_regions_of_interest,
bounding_box_regions_of_interest,
status,
status_message,
tags
FROM aws.rekognition.stream_processors
WHERE region = 'us-east-1';
Gets all properties from an individual stream_processor
.
SELECT
region,
arn,
name,
kms_key_id,
role_arn,
kinesis_video_stream,
face_search_settings,
connected_home_settings,
kinesis_data_stream,
s3_destination,
notification_channel,
data_sharing_preference,
polygon_regions_of_interest,
bounding_box_regions_of_interest,
status,
status_message,
tags
FROM aws.rekognition.stream_processors
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';
INSERT
example
Use the following StackQL query and manifest file to create a new stream_processor
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rekognition.stream_processors (
RoleArn,
KinesisVideoStream,
region
)
SELECT
'{{ RoleArn }}',
'{{ KinesisVideoStream }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rekognition.stream_processors (
Name,
KmsKeyId,
RoleArn,
KinesisVideoStream,
FaceSearchSettings,
ConnectedHomeSettings,
KinesisDataStream,
S3Destination,
NotificationChannel,
DataSharingPreference,
PolygonRegionsOfInterest,
BoundingBoxRegionsOfInterest,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ KmsKeyId }}',
'{{ RoleArn }}',
'{{ KinesisVideoStream }}',
'{{ FaceSearchSettings }}',
'{{ ConnectedHomeSettings }}',
'{{ KinesisDataStream }}',
'{{ S3Destination }}',
'{{ NotificationChannel }}',
'{{ DataSharingPreference }}',
'{{ PolygonRegionsOfInterest }}',
'{{ BoundingBoxRegionsOfInterest }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: stream_processor
props:
- name: Name
value: '{{ Name }}'
- name: KmsKeyId
value: '{{ KmsKeyId }}'
- name: RoleArn
value: '{{ RoleArn }}'
- name: KinesisVideoStream
value:
Arn: '{{ Arn }}'
- name: FaceSearchSettings
value:
CollectionId: '{{ CollectionId }}'
FaceMatchThreshold: null
- name: ConnectedHomeSettings
value:
Labels:
- '{{ Labels[0] }}'
MinConfidence: null
- name: KinesisDataStream
value:
Arn: '{{ Arn }}'
- name: S3Destination
value:
BucketName: '{{ BucketName }}'
ObjectKeyPrefix: '{{ ObjectKeyPrefix }}'
- name: NotificationChannel
value:
Arn: '{{ Arn }}'
- name: DataSharingPreference
value:
OptIn: '{{ OptIn }}'
- name: PolygonRegionsOfInterest
value:
- - X: null
'Y': null
- name: BoundingBoxRegionsOfInterest
value:
- Height: null
Width: null
Left: null
Top: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.rekognition.stream_processors
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';
Permissions
To operate on the stream_processors
resource, the following permissions are required:
Create
rekognition:CreateStreamProcessor,
iam:PassRole,
rekognition:DescribeStreamProcessor,
rekognition:ListTagsForResource,
rekognition:TagResource
Read
rekognition:DescribeStreamProcessor,
rekognition:ListTagsForResource
Update
rekognition:TagResource,
rekognition:UntagResource,
rekognition:ListTagsForResource,
rekognition:DescribeStreamProcessor
Delete
rekognition:DeleteStreamProcessor
List
rekognition:ListStreamProcessors