pub struct CreateStreamProcessor { /* private fields */ }Expand description
Fluent builder constructing a request to CreateStreamProcessor.
Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces in a streaming video.
Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. Amazon Rekognition Video sends analysis results to Amazon Kinesis Data Streams.
You provide as input a Kinesis video stream (Input) and a Kinesis data stream (Output) stream. You also specify the face recognition criteria in Settings. For example, the collection containing faces that you want to recognize. 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.
After you have finished analyzing a streaming video, use StopStreamProcessor to stop processing. You can delete the stream processor by calling DeleteStreamProcessor.
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.
Implementations
sourceimpl CreateStreamProcessor
impl CreateStreamProcessor
sourcepub async fn send(
self
) -> Result<CreateStreamProcessorOutput, SdkError<CreateStreamProcessorError>>
pub async fn send(
self
) -> Result<CreateStreamProcessorOutput, SdkError<CreateStreamProcessorError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn input(self, input: StreamProcessorInput) -> Self
pub fn input(self, input: StreamProcessorInput) -> Self
Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is StreamProcessorInput.
sourcepub fn set_input(self, input: Option<StreamProcessorInput>) -> Self
pub fn set_input(self, input: Option<StreamProcessorInput>) -> Self
Kinesis video stream stream that provides the source streaming video. If you are using the AWS CLI, the parameter name is StreamProcessorInput.
sourcepub fn output(self, input: StreamProcessorOutput) -> Self
pub fn output(self, input: StreamProcessorOutput) -> Self
Kinesis data stream stream to which Amazon Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name is StreamProcessorOutput.
sourcepub fn set_output(self, input: Option<StreamProcessorOutput>) -> Self
pub fn set_output(self, input: Option<StreamProcessorOutput>) -> Self
Kinesis data stream stream to which Amazon Rekognition Video puts the analysis results. If you are using the AWS CLI, the parameter name is StreamProcessorOutput.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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.
sourcepub fn settings(self, input: StreamProcessorSettings) -> Self
pub fn settings(self, input: StreamProcessorSettings) -> Self
Face recognition input parameters to be used by the stream processor. Includes the collection to use for face recognition and the face attributes to detect.
sourcepub fn set_settings(self, input: Option<StreamProcessorSettings>) -> Self
pub fn set_settings(self, input: Option<StreamProcessorSettings>) -> Self
Face recognition input parameters to be used by the stream processor. Includes the collection to use for face recognition and the face attributes to detect.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
ARN of the IAM role that allows access to the stream processor.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
ARN of the IAM role that allows access to the stream processor.
Adds a key-value pair to Tags.
To override the contents of this collection use set_tags.
A set of tags (key-value pairs) that you want to attach to the stream processor.
A set of tags (key-value pairs) that you want to attach to the stream processor.
Trait Implementations
sourceimpl Clone for CreateStreamProcessor
impl Clone for CreateStreamProcessor
sourcefn clone(&self) -> CreateStreamProcessor
fn clone(&self) -> CreateStreamProcessor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateStreamProcessor
impl Send for CreateStreamProcessor
impl Sync for CreateStreamProcessor
impl Unpin for CreateStreamProcessor
impl !UnwindSafe for CreateStreamProcessor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more