Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Starts an asynchronous PII entity detection job for a collection of documents.
Synopsis
- data StartPiiEntitiesDetectionJob = StartPiiEntitiesDetectionJob' {}
- newStartPiiEntitiesDetectionJob :: InputDataConfig -> OutputDataConfig -> PiiEntitiesDetectionMode -> Text -> LanguageCode -> StartPiiEntitiesDetectionJob
- startPiiEntitiesDetectionJob_jobName :: Lens' StartPiiEntitiesDetectionJob (Maybe Text)
- startPiiEntitiesDetectionJob_redactionConfig :: Lens' StartPiiEntitiesDetectionJob (Maybe RedactionConfig)
- startPiiEntitiesDetectionJob_clientRequestToken :: Lens' StartPiiEntitiesDetectionJob (Maybe Text)
- startPiiEntitiesDetectionJob_tags :: Lens' StartPiiEntitiesDetectionJob (Maybe [Tag])
- startPiiEntitiesDetectionJob_inputDataConfig :: Lens' StartPiiEntitiesDetectionJob InputDataConfig
- startPiiEntitiesDetectionJob_outputDataConfig :: Lens' StartPiiEntitiesDetectionJob OutputDataConfig
- startPiiEntitiesDetectionJob_mode :: Lens' StartPiiEntitiesDetectionJob PiiEntitiesDetectionMode
- startPiiEntitiesDetectionJob_dataAccessRoleArn :: Lens' StartPiiEntitiesDetectionJob Text
- startPiiEntitiesDetectionJob_languageCode :: Lens' StartPiiEntitiesDetectionJob LanguageCode
- data StartPiiEntitiesDetectionJobResponse = StartPiiEntitiesDetectionJobResponse' {}
- newStartPiiEntitiesDetectionJobResponse :: Int -> StartPiiEntitiesDetectionJobResponse
- startPiiEntitiesDetectionJobResponse_jobId :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text)
- startPiiEntitiesDetectionJobResponse_jobArn :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text)
- startPiiEntitiesDetectionJobResponse_jobStatus :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe JobStatus)
- startPiiEntitiesDetectionJobResponse_httpStatus :: Lens' StartPiiEntitiesDetectionJobResponse Int
Creating a Request
data StartPiiEntitiesDetectionJob Source #
See: newStartPiiEntitiesDetectionJob
smart constructor.
StartPiiEntitiesDetectionJob' | |
|
Instances
newStartPiiEntitiesDetectionJob Source #
:: InputDataConfig | |
-> OutputDataConfig | |
-> PiiEntitiesDetectionMode | |
-> Text | |
-> LanguageCode | |
-> StartPiiEntitiesDetectionJob |
Create a value of StartPiiEntitiesDetectionJob
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobName:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_jobName
- The identifier of the job.
$sel:redactionConfig:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_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.
$sel:clientRequestToken:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_clientRequestToken
- A unique identifier for the request. If you don't set the client
request token, Amazon Comprehend generates one.
$sel:tags:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_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.
$sel:inputDataConfig:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_inputDataConfig
- The input properties for a PII entities detection job.
$sel:outputDataConfig:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_outputDataConfig
- Provides configuration parameters for the output of PII entity detection
jobs.
$sel:mode:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_mode
- Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
$sel:dataAccessRoleArn:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
$sel:languageCode:StartPiiEntitiesDetectionJob'
, startPiiEntitiesDetectionJob_languageCode
- The language of the input documents.
Request Lenses
startPiiEntitiesDetectionJob_jobName :: Lens' StartPiiEntitiesDetectionJob (Maybe Text) Source #
The identifier of the job.
startPiiEntitiesDetectionJob_redactionConfig :: Lens' StartPiiEntitiesDetectionJob (Maybe RedactionConfig) Source #
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.
startPiiEntitiesDetectionJob_clientRequestToken :: Lens' StartPiiEntitiesDetectionJob (Maybe Text) Source #
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
startPiiEntitiesDetectionJob_tags :: Lens' StartPiiEntitiesDetectionJob (Maybe [Tag]) Source #
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.
startPiiEntitiesDetectionJob_inputDataConfig :: Lens' StartPiiEntitiesDetectionJob InputDataConfig Source #
The input properties for a PII entities detection job.
startPiiEntitiesDetectionJob_outputDataConfig :: Lens' StartPiiEntitiesDetectionJob OutputDataConfig Source #
Provides configuration parameters for the output of PII entity detection jobs.
startPiiEntitiesDetectionJob_mode :: Lens' StartPiiEntitiesDetectionJob PiiEntitiesDetectionMode Source #
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
startPiiEntitiesDetectionJob_dataAccessRoleArn :: Lens' StartPiiEntitiesDetectionJob Text Source #
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
startPiiEntitiesDetectionJob_languageCode :: Lens' StartPiiEntitiesDetectionJob LanguageCode Source #
The language of the input documents.
Destructuring the Response
data StartPiiEntitiesDetectionJobResponse Source #
See: newStartPiiEntitiesDetectionJobResponse
smart constructor.
StartPiiEntitiesDetectionJobResponse' | |
|
Instances
newStartPiiEntitiesDetectionJobResponse Source #
Create a value of StartPiiEntitiesDetectionJobResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:StartPiiEntitiesDetectionJobResponse'
, startPiiEntitiesDetectionJobResponse_jobId
- The identifier generated for the job.
$sel:jobArn:StartPiiEntitiesDetectionJobResponse'
, startPiiEntitiesDetectionJobResponse_jobArn
- The Amazon Resource Name (ARN) of the PII entity detection job. It is a
unique, fully qualified identifier for the job. It includes the AWS
account, Region, and the job ID. The format of the ARN is as follows:
arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
The following is an example job ARN:
arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
$sel:jobStatus:StartPiiEntitiesDetectionJobResponse'
, startPiiEntitiesDetectionJobResponse_jobStatus
- The status of the job.
$sel:httpStatus:StartPiiEntitiesDetectionJobResponse'
, startPiiEntitiesDetectionJobResponse_httpStatus
- The response's http status code.
Response Lenses
startPiiEntitiesDetectionJobResponse_jobId :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text) Source #
The identifier generated for the job.
startPiiEntitiesDetectionJobResponse_jobArn :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:
arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
The following is an example job ARN:
arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
startPiiEntitiesDetectionJobResponse_jobStatus :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe JobStatus) Source #
The status of the job.
startPiiEntitiesDetectionJobResponse_httpStatus :: Lens' StartPiiEntitiesDetectionJobResponse Int Source #
The response's http status code.