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 job to detect protected health information (PHI).
Use the DescribePHIDetectionJob
operation to track the status of a
job.
Synopsis
- data StartPHIDetectionJob = StartPHIDetectionJob' {}
- newStartPHIDetectionJob :: InputDataConfig -> OutputDataConfig -> Text -> LanguageCode -> StartPHIDetectionJob
- startPHIDetectionJob_kmsKey :: Lens' StartPHIDetectionJob (Maybe Text)
- startPHIDetectionJob_jobName :: Lens' StartPHIDetectionJob (Maybe Text)
- startPHIDetectionJob_clientRequestToken :: Lens' StartPHIDetectionJob (Maybe Text)
- startPHIDetectionJob_inputDataConfig :: Lens' StartPHIDetectionJob InputDataConfig
- startPHIDetectionJob_outputDataConfig :: Lens' StartPHIDetectionJob OutputDataConfig
- startPHIDetectionJob_dataAccessRoleArn :: Lens' StartPHIDetectionJob Text
- startPHIDetectionJob_languageCode :: Lens' StartPHIDetectionJob LanguageCode
- data StartPHIDetectionJobResponse = StartPHIDetectionJobResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- newStartPHIDetectionJobResponse :: Int -> StartPHIDetectionJobResponse
- startPHIDetectionJobResponse_jobId :: Lens' StartPHIDetectionJobResponse (Maybe Text)
- startPHIDetectionJobResponse_httpStatus :: Lens' StartPHIDetectionJobResponse Int
Creating a Request
data StartPHIDetectionJob Source #
See: newStartPHIDetectionJob
smart constructor.
StartPHIDetectionJob' | |
|
Instances
newStartPHIDetectionJob Source #
Create a value of StartPHIDetectionJob
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:kmsKey:StartPHIDetectionJob'
, startPHIDetectionJob_kmsKey
- An AWS Key Management Service key to encrypt your output files. If you
do not specify a key, the files are written in plain text.
$sel:jobName:StartPHIDetectionJob'
, startPHIDetectionJob_jobName
- The identifier of the job.
$sel:clientRequestToken:StartPHIDetectionJob'
, startPHIDetectionJob_clientRequestToken
- A unique identifier for the request. If you don't set the client
request token, Amazon Comprehend Medical generates one.
$sel:inputDataConfig:StartPHIDetectionJob'
, startPHIDetectionJob_inputDataConfig
- Specifies the format and location of the input data for the job.
$sel:outputDataConfig:StartPHIDetectionJob'
, startPHIDetectionJob_outputDataConfig
- Specifies where to send the output files.
$sel:dataAccessRoleArn:StartPHIDetectionJob'
, startPHIDetectionJob_dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend Medical read access to your
input data. For more information, see
Role-Based Permissions Required for Asynchronous Operations.
$sel:languageCode:StartPHIDetectionJob'
, startPHIDetectionJob_languageCode
- The language of the input documents. All documents must be in the same
language.
Request Lenses
startPHIDetectionJob_kmsKey :: Lens' StartPHIDetectionJob (Maybe Text) Source #
An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.
startPHIDetectionJob_jobName :: Lens' StartPHIDetectionJob (Maybe Text) Source #
The identifier of the job.
startPHIDetectionJob_clientRequestToken :: Lens' StartPHIDetectionJob (Maybe Text) Source #
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
startPHIDetectionJob_inputDataConfig :: Lens' StartPHIDetectionJob InputDataConfig Source #
Specifies the format and location of the input data for the job.
startPHIDetectionJob_outputDataConfig :: Lens' StartPHIDetectionJob OutputDataConfig Source #
Specifies where to send the output files.
startPHIDetectionJob_dataAccessRoleArn :: Lens' StartPHIDetectionJob Text Source #
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations.
startPHIDetectionJob_languageCode :: Lens' StartPHIDetectionJob LanguageCode Source #
The language of the input documents. All documents must be in the same language.
Destructuring the Response
data StartPHIDetectionJobResponse Source #
See: newStartPHIDetectionJobResponse
smart constructor.
StartPHIDetectionJobResponse' | |
|
Instances
newStartPHIDetectionJobResponse Source #
Create a value of StartPHIDetectionJobResponse
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:StartPHIDetectionJobResponse'
, startPHIDetectionJobResponse_jobId
- The identifier generated for the job. To get the status of a job, use
this identifier with the DescribePHIDetectionJob
operation.
$sel:httpStatus:StartPHIDetectionJobResponse'
, startPHIDetectionJobResponse_httpStatus
- The response's http status code.
Response Lenses
startPHIDetectionJobResponse_jobId :: Lens' StartPHIDetectionJobResponse (Maybe Text) Source #
The identifier generated for the job. To get the status of a job, use
this identifier with the DescribePHIDetectionJob
operation.
startPHIDetectionJobResponse_httpStatus :: Lens' StartPHIDetectionJobResponse Int Source #
The response's http status code.