Struct aws_sdk_textract::input::StartExpenseAnalysisInput
source · #[non_exhaustive]pub struct StartExpenseAnalysisInput { /* private fields */ }
Implementations§
source§impl StartExpenseAnalysisInput
impl StartExpenseAnalysisInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartExpenseAnalysis, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartExpenseAnalysis, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartExpenseAnalysis
>
Examples found in repository?
1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartExpenseAnalysis,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartExpenseAnalysisError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartExpenseAnalysisOutput,
aws_smithy_http::result::SdkError<crate::error::StartExpenseAnalysisError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartExpenseAnalysisInput
.
source§impl StartExpenseAnalysisInput
impl StartExpenseAnalysisInput
sourcepub fn document_location(&self) -> Option<&DocumentLocation>
pub fn document_location(&self) -> Option<&DocumentLocation>
The location of the document to be processed.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
The idempotent token that's used to identify the start request. If you use the same token with multiple StartDocumentTextDetection
requests, the same JobId
is returned. Use ClientRequestToken
to prevent the same job from being accidentally started more than once. For more information, see Calling Amazon Textract Asynchronous Operations
sourcepub fn job_tag(&self) -> Option<&str>
pub fn job_tag(&self) -> Option<&str>
An identifier you specify that's included in the completion notification published to the Amazon SNS topic. For example, you can use JobTag
to identify the type of document that the completion notification corresponds to (such as a tax form or a receipt).
sourcepub fn notification_channel(&self) -> Option<&NotificationChannel>
pub fn notification_channel(&self) -> Option<&NotificationChannel>
The Amazon SNS topic ARN that you want Amazon Textract to publish the completion status of the operation to.
sourcepub fn output_config(&self) -> Option<&OutputConfig>
pub fn output_config(&self) -> Option<&OutputConfig>
Sets if the output will go to a customer defined bucket. By default, Amazon Textract will save the results internally to be accessed by the GetExpenseAnalysis
operation.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The KMS key used to encrypt the inference results. This can be in either Key ID or Key Alias format. When a KMS key is provided, the KMS key will be used for server-side encryption of the objects in the customer bucket. When this parameter is not enabled, the result will be encrypted server side,using SSE-S3.
Trait Implementations§
source§impl Clone for StartExpenseAnalysisInput
impl Clone for StartExpenseAnalysisInput
source§fn clone(&self) -> StartExpenseAnalysisInput
fn clone(&self) -> StartExpenseAnalysisInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more