aws_sdk_rekognition/client/create_stream_processor.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateStreamProcessor`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`input(StreamProcessorInput)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::input) / [`set_input(Option<StreamProcessorInput>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_input):<br>required: **true**<br><p>Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is <code>StreamProcessorInput</code>. This is required for both face search and label detection stream processors.</p><br>
7 /// - [`output(StreamProcessorOutput)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::output) / [`set_output(Option<StreamProcessorOutput>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_output):<br>required: **true**<br><p>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 <code>StreamProcessorOutput</code>. This must be a <code>S3Destination</code> 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.</p><br>
8 /// - [`name(impl Into<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_name):<br>required: **true**<br><p>An identifier you assign to the stream processor. You can use <code>Name</code> to manage the stream processor. For example, you can get the current status of the stream processor by calling <code>DescribeStreamProcessor</code>. <code>Name</code> is idempotent. This is required for both face search and label detection stream processors.</p><br>
9 /// - [`settings(StreamProcessorSettings)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::settings) / [`set_settings(Option<StreamProcessorSettings>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_settings):<br>required: **true**<br><p>Input parameters used in a streaming video analyzed by a stream processor. You can use <code>FaceSearch</code> to recognize faces in a streaming video, or you can use <code>ConnectedHome</code> to detect labels.</p><br>
10 /// - [`role_arn(impl Into<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_role_arn):<br>required: **true**<br><p>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.</p><br>
11 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_tags):<br>required: **false**<br><p>A set of tags (key-value pairs) that you want to attach to the stream processor.</p><br>
12 /// - [`notification_channel(StreamProcessorNotificationChannel)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::notification_channel) / [`set_notification_channel(Option<StreamProcessorNotificationChannel>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_notification_channel):<br>required: **false**<br><p>The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object detection results and completion status of a video analysis operation.</p> <p>Amazon Rekognition publishes a notification the first time an object of interest or a person is detected in the video stream. For example, if Amazon Rekognition detects a person at second 2, a pet at second 4, and a person again at second 5, Amazon Rekognition sends 2 object class detected notifications, one for a person at second 2 and one for a pet at second 4.</p> <p>Amazon Rekognition also publishes an an end-of-session notification with a summary when the stream processing session is complete.</p><br>
13 /// - [`kms_key_id(impl Into<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_kms_key_id):<br>required: **false**<br><p>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.</p> <p></p><br>
14 /// - [`regions_of_interest(RegionOfInterest)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::regions_of_interest) / [`set_regions_of_interest(Option<Vec::<RegionOfInterest>>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_regions_of_interest):<br>required: **false**<br><p>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.</p><br>
15 /// - [`data_sharing_preference(StreamProcessorDataSharingPreference)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::data_sharing_preference) / [`set_data_sharing_preference(Option<StreamProcessorDataSharingPreference>)`](crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::set_data_sharing_preference):<br>required: **false**<br><p>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.</p><br>
16 /// - On success, responds with [`CreateStreamProcessorOutput`](crate::operation::create_stream_processor::CreateStreamProcessorOutput) with field(s):
17 /// - [`stream_processor_arn(Option<String>)`](crate::operation::create_stream_processor::CreateStreamProcessorOutput::stream_processor_arn): <p>Amazon Resource Number for the newly created stream processor.</p>
18 /// - On failure, responds with [`SdkError<CreateStreamProcessorError>`](crate::operation::create_stream_processor::CreateStreamProcessorError)
19 pub fn create_stream_processor(&self) -> crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder {
20 crate::operation::create_stream_processor::builders::CreateStreamProcessorFluentBuilder::new(self.handle.clone())
21 }
22}