#[non_exhaustive]pub struct StartPiiEntitiesDetectionJobInput { /* private fields */ }Implementations§
source§impl StartPiiEntitiesDetectionJobInput
impl StartPiiEntitiesDetectionJobInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartPiiEntitiesDetectionJob, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartPiiEntitiesDetectionJob, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartPiiEntitiesDetectionJob>
Examples found in repository?
7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartPiiEntitiesDetectionJob,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartPiiEntitiesDetectionJobError>,
> {
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::StartPiiEntitiesDetectionJobOutput,
aws_smithy_http::result::SdkError<crate::error::StartPiiEntitiesDetectionJobError>,
> {
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 StartPiiEntitiesDetectionJobInput.
source§impl StartPiiEntitiesDetectionJobInput
impl StartPiiEntitiesDetectionJobInput
sourcepub fn input_data_config(&self) -> Option<&InputDataConfig>
pub fn input_data_config(&self) -> Option<&InputDataConfig>
The input properties for a PII entities detection job.
sourcepub fn output_data_config(&self) -> Option<&OutputDataConfig>
pub fn output_data_config(&self) -> Option<&OutputDataConfig>
Provides configuration parameters for the output of PII entity detection jobs.
sourcepub fn mode(&self) -> Option<&PiiEntitiesDetectionMode>
pub fn mode(&self) -> Option<&PiiEntitiesDetectionMode>
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
sourcepub fn redaction_config(&self) -> Option<&RedactionConfig>
pub fn redaction_config(&self) -> Option<&RedactionConfig>
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.
sourcepub fn data_access_role_arn(&self) -> Option<&str>
pub fn data_access_role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
sourcepub fn language_code(&self) -> Option<&LanguageCode>
pub fn language_code(&self) -> Option<&LanguageCode>
The language of the input documents. Currently, English is the only valid language.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Tags to be associated with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
Trait Implementations§
source§impl Clone for StartPiiEntitiesDetectionJobInput
impl Clone for StartPiiEntitiesDetectionJobInput
source§fn clone(&self) -> StartPiiEntitiesDetectionJobInput
fn clone(&self) -> StartPiiEntitiesDetectionJobInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more