/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the rekognition-2016-06-27.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Rekognition.Model { /// /// Container for the parameters to the CreateStreamProcessor operation. /// Creates an Amazon Rekognition stream processor that you can use to detect and recognize /// faces or to detect 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: detecting /// faces and detecting labels. /// /// /// /// Use Name to assign an identifier for the stream processor. You use Name /// to manage the stream processor. For example, you can start processing the source video /// by calling StartStreamProcessor with the Name field. /// /// /// /// This operation requires permissions to perform the rekognition:CreateStreamProcessor /// action. If you want to tag your stream processor, you also require permission to perform /// the rekognition:TagResource operation. /// /// public partial class CreateStreamProcessorRequest : AmazonRekognitionRequest { private StreamProcessorDataSharingPreference _dataSharingPreference; private StreamProcessorInput _input; private string _kmsKeyId; private string _name; private StreamProcessorNotificationChannel _notificationChannel; private StreamProcessorOutput _output; private List _regionsOfInterest = new List(); private string _roleArn; private StreamProcessorSettings _settings; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property DataSharingPreference. /// /// Shows whether you are sharing 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. /// /// /// public StreamProcessorDataSharingPreference DataSharingPreference { get { return this._dataSharingPreference; } set { this._dataSharingPreference = value; } } // Check to see if DataSharingPreference property is set internal bool IsSetDataSharingPreference() { return this._dataSharingPreference != null; } /// /// Gets and sets the property Input. /// /// Kinesis video stream stream that provides the source streaming video. If you are using /// the AWS CLI, the parameter name is StreamProcessorInput. This is required /// for both face search and label detection stream processors. /// /// [AWSProperty(Required=true)] public StreamProcessorInput Input { get { return this._input; } set { this._input = value; } } // Check to see if Input property is set internal bool IsSetInput() { return this._input != null; } /// /// Gets and sets the property KmsKeyId. /// /// The identifier for your AWS Key Management Service key (AWS KMS key). This is an /// optional parameter for label detection stream processors and should not be used to /// create a face search stream processor. You can supply the Amazon Resource Name (ARN) /// of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. /// The key is used to encrypt results and data published to your Amazon S3 bucket, which /// includes image frames and hero images. Your source images are unaffected. /// /// /// /// /// /// [AWSProperty(Min=1, Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property Name. /// /// An identifier you assign to the stream processor. You can use Name to /// manage the stream processor. For example, you can get the current status of the stream /// processor by calling DescribeStreamProcessor. Name is idempotent. /// This is required for both face search and label detection stream processors. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property NotificationChannel. /// public StreamProcessorNotificationChannel NotificationChannel { get { return this._notificationChannel; } set { this._notificationChannel = value; } } // Check to see if NotificationChannel property is set internal bool IsSetNotificationChannel() { return this._notificationChannel != null; } /// /// Gets and sets the property Output. /// /// Kinesis data stream stream or Amazon S3 bucket location to which Amazon Rekognition /// Video puts the analysis results. If you are using the AWS CLI, the parameter name /// is StreamProcessorOutput. This must be a S3Destination of an Amazon /// S3 bucket that you own for a label detection stream processor or a Kinesis data stream /// ARN for a face search stream processor. /// /// [AWSProperty(Required=true)] public StreamProcessorOutput Output { get { return this._output; } set { this._output = value; } } // Check to see if Output property is set internal bool IsSetOutput() { return this._output != null; } /// /// Gets and sets the property RegionsOfInterest. /// /// Specifies locations in the frames where Amazon Rekognition checks for objects or /// people. You can specify up to 10 regions of interest, and each region has either a /// polygon or a bounding box. This is an optional parameter for label detection stream /// processors and should not be used to create a face search stream processor. /// /// [AWSProperty(Min=0, Max=10)] public List RegionsOfInterest { get { return this._regionsOfInterest; } set { this._regionsOfInterest = value; } } // Check to see if RegionsOfInterest property is set internal bool IsSetRegionsOfInterest() { return this._regionsOfInterest != null && this._regionsOfInterest.Count > 0; } /// /// Gets and sets the property RoleArn. /// /// The Amazon Resource Number (ARN) of the IAM role that allows access to the stream /// processor. The IAM role provides Rekognition read permissions for a Kinesis stream. /// It also provides write permissions to an Amazon S3 bucket and Amazon Simple Notification /// Service topic for a label detection stream processor. This is required for both face /// search and label detection stream processors. /// /// [AWSProperty(Required=true)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// /// Gets and sets the property Settings. /// /// Input parameters used in a streaming video analyzed by a stream processor. You can /// use FaceSearch to recognize faces in a streaming video, or you can use /// ConnectedHome to detect labels. /// /// [AWSProperty(Required=true)] public StreamProcessorSettings Settings { get { return this._settings; } set { this._settings = value; } } // Check to see if Settings property is set internal bool IsSetSettings() { return this._settings != null; } /// /// Gets and sets the property Tags. /// /// A set of tags (key-value pairs) that you want to attach to the stream processor. /// /// /// [AWSProperty(Min=0, Max=200)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }