Struct aws_sdk_rekognition::operation::start_text_detection::builders::StartTextDetectionFluentBuilder
source · pub struct StartTextDetectionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StartTextDetection
.
Starts asynchronous detection of text in a stored video.
Amazon Rekognition Video can detect text in a video stored in an Amazon S3 bucket. Use Video
to specify the bucket name and the filename of the video. StartTextDetection
returns a job identifier (JobId
) which you use to get the results of the operation. When text detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel
.
To get the results of the text detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED
. if so, call GetTextDetection
and pass the job identifier (JobId
) from the initial call to StartTextDetection
.
Implementations§
source§impl StartTextDetectionFluentBuilder
impl StartTextDetectionFluentBuilder
sourcepub fn as_input(&self) -> &StartTextDetectionInputBuilder
pub fn as_input(&self) -> &StartTextDetectionInputBuilder
Access the StartTextDetection as a reference.
sourcepub async fn send(
self
) -> Result<StartTextDetectionOutput, SdkError<StartTextDetectionError, HttpResponse>>
pub async fn send( self ) -> Result<StartTextDetectionOutput, SdkError<StartTextDetectionError, HttpResponse>>
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 async fn customize(
self
) -> Result<CustomizableOperation<StartTextDetectionOutput, StartTextDetectionError>, SdkError<StartTextDetectionError>>
pub async fn customize( self ) -> Result<CustomizableOperation<StartTextDetectionOutput, StartTextDetectionError>, SdkError<StartTextDetectionError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn video(self, input: Video) -> Self
pub fn video(self, input: Video) -> Self
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection
use Video
to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
sourcepub fn set_video(self, input: Option<Video>) -> Self
pub fn set_video(self, input: Option<Video>) -> Self
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection
use Video
to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
sourcepub fn get_video(&self) -> &Option<Video>
pub fn get_video(&self) -> &Option<Video>
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start operations such as StartLabelDetection
use Video
to specify a video for analysis. The supported file formats are .mp4, .mov and .avi.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentaly started more than once.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentaly started more than once.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
Idempotent token used to identify the start request. If you use the same token with multiple StartTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentaly started more than once.
sourcepub fn notification_channel(self, input: NotificationChannel) -> Self
pub fn notification_channel(self, input: NotificationChannel) -> Self
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see Calling Amazon Rekognition Video operations. Note that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. For more information, see Giving access to multiple Amazon SNS topics.
sourcepub fn set_notification_channel(
self,
input: Option<NotificationChannel>
) -> Self
pub fn set_notification_channel( self, input: Option<NotificationChannel> ) -> Self
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see Calling Amazon Rekognition Video operations. Note that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. For more information, see Giving access to multiple Amazon SNS topics.
sourcepub fn get_notification_channel(&self) -> &Option<NotificationChannel>
pub fn get_notification_channel(&self) -> &Option<NotificationChannel>
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see Calling Amazon Rekognition Video operations. Note that the Amazon SNS topic must have a topic name that begins with AmazonRekognition if you are using the AmazonRekognitionServiceRole permissions policy to access the topic. For more information, see Giving access to multiple Amazon SNS topics.
sourcepub fn job_tag(self, input: impl Into<String>) -> Self
pub fn job_tag(self, input: impl Into<String>) -> Self
An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag
to group related jobs and identify them in the completion notification.
sourcepub fn set_job_tag(self, input: Option<String>) -> Self
pub fn set_job_tag(self, input: Option<String>) -> Self
An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag
to group related jobs and identify them in the completion notification.
sourcepub fn get_job_tag(&self) -> &Option<String>
pub fn get_job_tag(&self) -> &Option<String>
An identifier returned in the completion status published by your Amazon Simple Notification Service topic. For example, you can use JobTag
to group related jobs and identify them in the completion notification.
sourcepub fn filters(self, input: StartTextDetectionFilters) -> Self
pub fn filters(self, input: StartTextDetectionFilters) -> Self
Optional parameters that let you set criteria the text must meet to be included in your response.
sourcepub fn set_filters(self, input: Option<StartTextDetectionFilters>) -> Self
pub fn set_filters(self, input: Option<StartTextDetectionFilters>) -> Self
Optional parameters that let you set criteria the text must meet to be included in your response.
sourcepub fn get_filters(&self) -> &Option<StartTextDetectionFilters>
pub fn get_filters(&self) -> &Option<StartTextDetectionFilters>
Optional parameters that let you set criteria the text must meet to be included in your response.
Trait Implementations§
source§impl Clone for StartTextDetectionFluentBuilder
impl Clone for StartTextDetectionFluentBuilder
source§fn clone(&self) -> StartTextDetectionFluentBuilder
fn clone(&self) -> StartTextDetectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more