pub struct StartPiiEntitiesDetectionJob { /* private fields */ }Expand description
Fluent builder constructing a request to StartPiiEntitiesDetectionJob.
Starts an asynchronous PII entity detection job for a collection of documents.
Implementations
sourceimpl StartPiiEntitiesDetectionJob
impl StartPiiEntitiesDetectionJob
sourcepub async fn send(
self
) -> Result<StartPiiEntitiesDetectionJobOutput, SdkError<StartPiiEntitiesDetectionJobError>>
pub async fn send(
self
) -> Result<StartPiiEntitiesDetectionJobOutput, SdkError<StartPiiEntitiesDetectionJobError>>
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_data_config(self, input: InputDataConfig) -> Self
pub fn input_data_config(self, input: InputDataConfig) -> Self
The input properties for a PII entities detection job.
sourcepub fn set_input_data_config(self, input: Option<InputDataConfig>) -> Self
pub fn set_input_data_config(self, input: Option<InputDataConfig>) -> Self
The input properties for a PII entities detection job.
sourcepub fn output_data_config(self, input: OutputDataConfig) -> Self
pub fn output_data_config(self, input: OutputDataConfig) -> Self
Provides configuration parameters for the output of PII entity detection jobs.
sourcepub fn set_output_data_config(self, input: Option<OutputDataConfig>) -> Self
pub fn set_output_data_config(self, input: Option<OutputDataConfig>) -> Self
Provides configuration parameters for the output of PII entity detection jobs.
sourcepub fn mode(self, input: PiiEntitiesDetectionMode) -> Self
pub fn mode(self, input: PiiEntitiesDetectionMode) -> Self
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
sourcepub fn set_mode(self, input: Option<PiiEntitiesDetectionMode>) -> Self
pub fn set_mode(self, input: Option<PiiEntitiesDetectionMode>) -> Self
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, input: RedactionConfig) -> Self
pub fn redaction_config(self, input: RedactionConfig) -> Self
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 set_redaction_config(self, input: Option<RedactionConfig>) -> Self
pub fn set_redaction_config(self, input: Option<RedactionConfig>) -> Self
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, input: impl Into<String>) -> Self
pub fn data_access_role_arn(self, input: impl Into<String>) -> Self
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 set_data_access_role_arn(self, input: Option<String>) -> Self
pub fn set_data_access_role_arn(self, input: Option<String>) -> Self
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 set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The identifier of the job.
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
The language of the input documents.
sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
The language of the input documents.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Appends an item to Tags.
To override the contents of this collection use set_tags.
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.
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
sourceimpl Clone for StartPiiEntitiesDetectionJob
impl Clone for StartPiiEntitiesDetectionJob
sourcefn clone(&self) -> StartPiiEntitiesDetectionJob
fn clone(&self) -> StartPiiEntitiesDetectionJob
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 StartPiiEntitiesDetectionJob
impl Send for StartPiiEntitiesDetectionJob
impl Sync for StartPiiEntitiesDetectionJob
impl Unpin for StartPiiEntitiesDetectionJob
impl !UnwindSafe for StartPiiEntitiesDetectionJob
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