From 9ab19c2e6d160a3ed01fe218c53b133956100823 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Wed, 6 May 2020 18:19:16 +0000 Subject: [PATCH] Release v1.30.22 (2020-05-06) === ### Service Client Updates * `service/codestar-connections`: Updates service API and documentation * `service/comprehendmedical`: Updates service API and documentation --- CHANGELOG.md | 7 + aws/endpoints/defaults.go | 38 +- aws/version.go | 2 +- .../2019-12-01/api-2.json | 133 +- .../2019-12-01/docs-2.json | 81 +- .../comprehendmedical/2018-10-30/api-2.json | 254 + .../comprehendmedical/2018-10-30/docs-2.json | 150 +- models/endpoints/endpoints.json | 26 +- service/codestarconnections/api.go | 558 ++- .../codestarconnectionsiface/interface.go | 12 + service/comprehendmedical/api.go | 4421 +++++++++++------ .../comprehendmedicaliface/interface.go | 32 + 12 files changed, 4205 insertions(+), 1509 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 288ee8e67b..38c6fc2eea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Release v1.30.22 (2020-05-06) +=== + +### Service Client Updates +* `service/codestar-connections`: Updates service API and documentation +* `service/comprehendmedical`: Updates service API and documentation + Release v1.30.21 (2020-05-05) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 9b50e10b4b..0935a04372 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -25,12 +25,12 @@ const ( ApSoutheast1RegionID = "ap-southeast-1" // Asia Pacific (Singapore). ApSoutheast2RegionID = "ap-southeast-2" // Asia Pacific (Sydney). CaCentral1RegionID = "ca-central-1" // Canada (Central). - EuCentral1RegionID = "eu-central-1" // EU (Frankfurt). - EuNorth1RegionID = "eu-north-1" // EU (Stockholm). + EuCentral1RegionID = "eu-central-1" // Europe (Frankfurt). + EuNorth1RegionID = "eu-north-1" // Europe (Stockholm). EuSouth1RegionID = "eu-south-1" // Europe (Milan). - EuWest1RegionID = "eu-west-1" // EU (Ireland). - EuWest2RegionID = "eu-west-2" // EU (London). - EuWest3RegionID = "eu-west-3" // EU (Paris). + EuWest1RegionID = "eu-west-1" // Europe (Ireland). + EuWest2RegionID = "eu-west-2" // Europe (London). + EuWest3RegionID = "eu-west-3" // Europe (Paris). MeSouth1RegionID = "me-south-1" // Middle East (Bahrain). SaEast1RegionID = "sa-east-1" // South America (Sao Paulo). UsEast1RegionID = "us-east-1" // US East (N. Virginia). @@ -48,7 +48,7 @@ const ( // AWS GovCloud (US) partition's regions. const ( UsGovEast1RegionID = "us-gov-east-1" // AWS GovCloud (US-East). - UsGovWest1RegionID = "us-gov-west-1" // AWS GovCloud (US). + UsGovWest1RegionID = "us-gov-west-1" // AWS GovCloud (US-West). ) // AWS ISO (US) partition's regions. @@ -134,22 +134,22 @@ var awsPartition = partition{ Description: "Canada (Central)", }, "eu-central-1": region{ - Description: "EU (Frankfurt)", + Description: "Europe (Frankfurt)", }, "eu-north-1": region{ - Description: "EU (Stockholm)", + Description: "Europe (Stockholm)", }, "eu-south-1": region{ Description: "Europe (Milan)", }, "eu-west-1": region{ - Description: "EU (Ireland)", + Description: "Europe (Ireland)", }, "eu-west-2": region{ - Description: "EU (London)", + Description: "Europe (London)", }, "eu-west-3": region{ - Description: "EU (Paris)", + Description: "Europe (Paris)", }, "me-south-1": region{ Description: "Middle East (Bahrain)", @@ -4632,6 +4632,7 @@ var awsPartition = partition{ "secretsmanager": service{ Endpoints: endpoints{ + "af-south-1": endpoint{}, "ap-east-1": endpoint{}, "ap-northeast-1": endpoint{}, "ap-northeast-2": endpoint{}, @@ -4641,6 +4642,7 @@ var awsPartition = partition{ "ca-central-1": endpoint{}, "eu-central-1": endpoint{}, "eu-north-1": endpoint{}, + "eu-south-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, "eu-west-3": endpoint{}, @@ -6612,7 +6614,7 @@ var awsusgovPartition = partition{ Description: "AWS GovCloud (US-East)", }, "us-gov-west-1": region{ - Description: "AWS GovCloud (US)", + Description: "AWS GovCloud (US-West)", }, }, Services: services{ @@ -7101,6 +7103,18 @@ var awsusgovPartition = partition{ "elasticmapreduce": service{ Endpoints: endpoints{ + "fips-us-gov-east-1": endpoint{ + Hostname: "elasticmapreduce.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, + "fips-us-gov-west-1": endpoint{ + Hostname: "elasticmapreduce.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"https"}, diff --git a/aws/version.go b/aws/version.go index 354ef69292..f51962a340 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.30.21" +const SDKVersion = "1.30.22" diff --git a/models/apis/codestar-connections/2019-12-01/api-2.json b/models/apis/codestar-connections/2019-12-01/api-2.json index 1b85e371cd..7a7795a82d 100644 --- a/models/apis/codestar-connections/2019-12-01/api-2.json +++ b/models/apis/codestar-connections/2019-12-01/api-2.json @@ -57,6 +57,43 @@ }, "input":{"shape":"ListConnectionsInput"}, "output":{"shape":"ListConnectionsOutput"} + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceInput"}, + "output":{"shape":"ListTagsForResourceOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceInput"}, + "output":{"shape":"TagResourceOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceInput"}, + "output":{"shape":"UntagResourceOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -66,6 +103,11 @@ "min":12, "pattern":"[0-9]{12}" }, + "AmazonResourceName":{ + "type":"string", + "max":1011, + "min":1 + }, "Connection":{ "type":"structure", "members":{ @@ -107,14 +149,16 @@ ], "members":{ "ProviderType":{"shape":"ProviderType"}, - "ConnectionName":{"shape":"ConnectionName"} + "ConnectionName":{"shape":"ConnectionName"}, + "Tags":{"shape":"TagList"} } }, "CreateConnectionOutput":{ "type":"structure", "required":["ConnectionArn"], "members":{ - "ConnectionArn":{"shape":"ConnectionArn"} + "ConnectionArn":{"shape":"ConnectionArn"}, + "Tags":{"shape":"TagList"} } }, "DeleteConnectionInput":{ @@ -168,16 +212,28 @@ "NextToken":{"shape":"NextToken"} } }, + "ListTagsForResourceInput":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"AmazonResourceName"} + } + }, + "ListTagsForResourceOutput":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"} + } + }, "MaxResults":{ "type":"integer", - "max":50, - "min":1 + "max":5000, + "min":0 }, "NextToken":{ "type":"string", "max":1024, - "min":1, - "pattern":"[a-zA-Z0-9=\\-\\\\/]+" + "min":1 }, "ProviderType":{ "type":"string", @@ -189,6 +245,71 @@ "Message":{"shape":"ErrorMessage"} }, "exception":true + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceInput":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceOutput":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "UntagResourceInput":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"AmazonResourceName"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceOutput":{ + "type":"structure", + "members":{ + } } } } diff --git a/models/apis/codestar-connections/2019-12-01/docs-2.json b/models/apis/codestar-connections/2019-12-01/docs-2.json index a11c33508e..4abd27d205 100644 --- a/models/apis/codestar-connections/2019-12-01/docs-2.json +++ b/models/apis/codestar-connections/2019-12-01/docs-2.json @@ -5,17 +5,28 @@ "CreateConnection": "

Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.

", "DeleteConnection": "

The connection to be deleted.

", "GetConnection": "

Returns the connection ARN and details such as status, owner, and provider type.

", - "ListConnections": "

Lists the connections associated with your account.

" + "ListConnections": "

Lists the connections associated with your account.

", + "ListTagsForResource": "

Gets the set of key-value pairs (metadata) that are used to manage the resource.

", + "TagResource": "

Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

", + "UntagResource": "

Removes tags from an AWS resource.

" }, "shapes": { "AccountId": { "base": null, "refs": { - "Connection$OwnerAccountId": "

The name of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.

" + "Connection$OwnerAccountId": "

The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.

" + } + }, + "AmazonResourceName": { + "base": null, + "refs": { + "ListTagsForResourceInput$ResourceArn": "

The Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.

", + "TagResourceInput$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.

", + "UntagResourceInput$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to remove tags from.

" } }, "Connection": { - "base": "

The configuration that allows a service such as CodePipeline to connect to a third-party code repository.

", + "base": "

The AWS::CodeStarConnections::Connection resource can be used to connect external source providers with services like AWS CodePipeline.

Note: A connection created through CloudFormation is in `PENDING` status by default. You can make its status `AVAILABLE` by editing the connection in the CodePipeline console.

", "refs": { "ConnectionList$member": null, "GetConnectionOutput$Connection": "

The connection details, such as status, owner, and provider type.

" @@ -101,6 +112,16 @@ "refs": { } }, + "ListTagsForResourceInput": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceOutput": { + "base": null, + "refs": { + } + }, "MaxResults": { "base": null, "refs": { @@ -126,6 +147,60 @@ "base": "

Resource not found. Verify the connection resource ARN and try again.

", "refs": { } + }, + "Tag": { + "base": "

A tag is a key-value pair that is used to manage the resource.

This tag is available for use by AWS services that support tags.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The tag's key.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceInput$TagKeys": "

The list of keys for the tags to be removed from the resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateConnectionInput$Tags": "

The key-value pair to use when tagging the resource.

", + "CreateConnectionOutput$Tags": "

Specifies the tags applied to the resource.

", + "ListTagsForResourceOutput$Tags": "

A list of tag key and value pairs associated with the specified resource.

", + "TagResourceInput$Tags": "

The tags you want to modify or add to the resource.

" + } + }, + "TagResourceInput": { + "base": null, + "refs": { + } + }, + "TagResourceOutput": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The tag's value.

" + } + }, + "UntagResourceInput": { + "base": null, + "refs": { + } + }, + "UntagResourceOutput": { + "base": null, + "refs": { + } } } } diff --git a/models/apis/comprehendmedical/2018-10-30/api-2.json b/models/apis/comprehendmedical/2018-10-30/api-2.json index bed14c9cf3..1d07fa9157 100644 --- a/models/apis/comprehendmedical/2018-10-30/api-2.json +++ b/models/apis/comprehendmedical/2018-10-30/api-2.json @@ -29,6 +29,21 @@ {"shape":"InternalServerException"} ] }, + "DescribeICD10CMInferenceJob":{ + "name":"DescribeICD10CMInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeICD10CMInferenceJobRequest"}, + "output":{"shape":"DescribeICD10CMInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DescribePHIDetectionJob":{ "name":"DescribePHIDetectionJob", "http":{ @@ -44,6 +59,21 @@ {"shape":"InternalServerException"} ] }, + "DescribeRxNormInferenceJob":{ + "name":"DescribeRxNormInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeRxNormInferenceJobRequest"}, + "output":{"shape":"DescribeRxNormInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DetectEntities":{ "name":"DetectEntities", "http":{ @@ -146,6 +176,21 @@ {"shape":"InternalServerException"} ] }, + "ListICD10CMInferenceJobs":{ + "name":"ListICD10CMInferenceJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListICD10CMInferenceJobsRequest"}, + "output":{"shape":"ListICD10CMInferenceJobsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ValidationException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, "ListPHIDetectionJobs":{ "name":"ListPHIDetectionJobs", "http":{ @@ -161,6 +206,21 @@ {"shape":"InternalServerException"} ] }, + "ListRxNormInferenceJobs":{ + "name":"ListRxNormInferenceJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRxNormInferenceJobsRequest"}, + "output":{"shape":"ListRxNormInferenceJobsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ValidationException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, "StartEntitiesDetectionV2Job":{ "name":"StartEntitiesDetectionV2Job", "http":{ @@ -176,6 +236,21 @@ {"shape":"InternalServerException"} ] }, + "StartICD10CMInferenceJob":{ + "name":"StartICD10CMInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartICD10CMInferenceJobRequest"}, + "output":{"shape":"StartICD10CMInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "StartPHIDetectionJob":{ "name":"StartPHIDetectionJob", "http":{ @@ -191,6 +266,21 @@ {"shape":"InternalServerException"} ] }, + "StartRxNormInferenceJob":{ + "name":"StartRxNormInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartRxNormInferenceJobRequest"}, + "output":{"shape":"StartRxNormInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "StopEntitiesDetectionV2Job":{ "name":"StopEntitiesDetectionV2Job", "http":{ @@ -205,6 +295,20 @@ {"shape":"InternalServerException"} ] }, + "StopICD10CMInferenceJob":{ + "name":"StopICD10CMInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopICD10CMInferenceJobRequest"}, + "output":{"shape":"StopICD10CMInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "StopPHIDetectionJob":{ "name":"StopPHIDetectionJob", "http":{ @@ -218,6 +322,20 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"} ] + }, + "StopRxNormInferenceJob":{ + "name":"StopRxNormInferenceJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopRxNormInferenceJobRequest"}, + "output":{"shape":"StopRxNormInferenceJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] } }, "shapes":{ @@ -306,6 +424,19 @@ "ComprehendMedicalAsyncJobProperties":{"shape":"ComprehendMedicalAsyncJobProperties"} } }, + "DescribeICD10CMInferenceJobRequest":{ + "type":"structure", + "required":["JobId"], + "members":{ + "JobId":{"shape":"JobId"} + } + }, + "DescribeICD10CMInferenceJobResponse":{ + "type":"structure", + "members":{ + "ComprehendMedicalAsyncJobProperties":{"shape":"ComprehendMedicalAsyncJobProperties"} + } + }, "DescribePHIDetectionJobRequest":{ "type":"structure", "required":["JobId"], @@ -319,6 +450,19 @@ "ComprehendMedicalAsyncJobProperties":{"shape":"ComprehendMedicalAsyncJobProperties"} } }, + "DescribeRxNormInferenceJobRequest":{ + "type":"structure", + "required":["JobId"], + "members":{ + "JobId":{"shape":"JobId"} + } + }, + "DescribeRxNormInferenceJobResponse":{ + "type":"structure", + "members":{ + "ComprehendMedicalAsyncJobProperties":{"shape":"ComprehendMedicalAsyncJobProperties"} + } + }, "DetectEntitiesRequest":{ "type":"structure", "required":["Text"], @@ -651,6 +795,21 @@ "NextToken":{"shape":"String"} } }, + "ListICD10CMInferenceJobsRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"ComprehendMedicalAsyncJobFilter"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListICD10CMInferenceJobsResponse":{ + "type":"structure", + "members":{ + "ComprehendMedicalAsyncJobPropertiesList":{"shape":"ComprehendMedicalAsyncJobPropertiesList"}, + "NextToken":{"shape":"String"} + } + }, "ListPHIDetectionJobsRequest":{ "type":"structure", "members":{ @@ -666,6 +825,21 @@ "NextToken":{"shape":"String"} } }, + "ListRxNormInferenceJobsRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"ComprehendMedicalAsyncJobFilter"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListRxNormInferenceJobsResponse":{ + "type":"structure", + "members":{ + "ComprehendMedicalAsyncJobPropertiesList":{"shape":"ComprehendMedicalAsyncJobPropertiesList"}, + "NextToken":{"shape":"String"} + } + }, "ManifestFilePath":{ "type":"string", "max":4096, @@ -850,6 +1024,33 @@ "JobId":{"shape":"JobId"} } }, + "StartICD10CMInferenceJobRequest":{ + "type":"structure", + "required":[ + "InputDataConfig", + "OutputDataConfig", + "DataAccessRoleArn", + "LanguageCode" + ], + "members":{ + "InputDataConfig":{"shape":"InputDataConfig"}, + "OutputDataConfig":{"shape":"OutputDataConfig"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"}, + "JobName":{"shape":"JobName"}, + "ClientRequestToken":{ + "shape":"ClientRequestTokenString", + "idempotencyToken":true + }, + "KMSKey":{"shape":"KMSKey"}, + "LanguageCode":{"shape":"LanguageCode"} + } + }, + "StartICD10CMInferenceJobResponse":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"} + } + }, "StartPHIDetectionJobRequest":{ "type":"structure", "required":[ @@ -877,6 +1078,33 @@ "JobId":{"shape":"JobId"} } }, + "StartRxNormInferenceJobRequest":{ + "type":"structure", + "required":[ + "InputDataConfig", + "OutputDataConfig", + "DataAccessRoleArn", + "LanguageCode" + ], + "members":{ + "InputDataConfig":{"shape":"InputDataConfig"}, + "OutputDataConfig":{"shape":"OutputDataConfig"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"}, + "JobName":{"shape":"JobName"}, + "ClientRequestToken":{ + "shape":"ClientRequestTokenString", + "idempotencyToken":true + }, + "KMSKey":{"shape":"KMSKey"}, + "LanguageCode":{"shape":"LanguageCode"} + } + }, + "StartRxNormInferenceJobResponse":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"} + } + }, "StopEntitiesDetectionV2JobRequest":{ "type":"structure", "required":["JobId"], @@ -890,6 +1118,19 @@ "JobId":{"shape":"JobId"} } }, + "StopICD10CMInferenceJobRequest":{ + "type":"structure", + "required":["JobId"], + "members":{ + "JobId":{"shape":"JobId"} + } + }, + "StopICD10CMInferenceJobResponse":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"} + } + }, "StopPHIDetectionJobRequest":{ "type":"structure", "required":["JobId"], @@ -903,6 +1144,19 @@ "JobId":{"shape":"JobId"} } }, + "StopRxNormInferenceJobRequest":{ + "type":"structure", + "required":["JobId"], + "members":{ + "JobId":{"shape":"JobId"} + } + }, + "StopRxNormInferenceJobResponse":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"} + } + }, "String":{ "type":"string", "min":1 diff --git a/models/apis/comprehendmedical/2018-10-30/docs-2.json b/models/apis/comprehendmedical/2018-10-30/docs-2.json index a62cfc5778..6562177765 100644 --- a/models/apis/comprehendmedical/2018-10-30/docs-2.json +++ b/models/apis/comprehendmedical/2018-10-30/docs-2.json @@ -3,18 +3,26 @@ "service": "

Amazon Comprehend Medical extracts structured information from unstructured clinical text. Use these actions to gain insight in your documents.

", "operations": { "DescribeEntitiesDetectionV2Job": "

Gets the properties associated with a medical entities detection job. Use this operation to get the status of a detection job.

", + "DescribeICD10CMInferenceJob": "

Gets the properties associated with an InferICD10CM job. Use this operation to get the status of an inference job.

", "DescribePHIDetectionJob": "

Gets the properties associated with a protected health information (PHI) detection job. Use this operation to get the status of a detection job.

", + "DescribeRxNormInferenceJob": "

Gets the properties associated with an InferRxNorm job. Use this operation to get the status of an inference job.

", "DetectEntities": "

The DetectEntities operation is deprecated. You should use the DetectEntitiesV2 operation instead.

Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .

", "DetectEntitiesV2": "

Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information. Amazon Comprehend Medical only detects medical entities in English language texts.

The DetectEntitiesV2 operation replaces the DetectEntities operation. This new action uses a different model for determining the entities in your medical text and changes the way that some entities are returned in the output. You should use the DetectEntitiesV2 operation in all new applications.

The DetectEntitiesV2 operation returns the Acuity and Direction entities as attributes instead of types.

", "DetectPHI": "

Inspects the clinical text for protected health information (PHI) entities and returns the entity category, location, and confidence score for each entity. Amazon Comprehend Medical only detects entities in English language texts.

", "InferICD10CM": "

InferICD10CM detects medical conditions as entities listed in a patient record and links those entities to normalized concept identifiers in the ICD-10-CM knowledge base from the Centers for Disease Control. Amazon Comprehend Medical only detects medical entities in English language texts.

", "InferRxNorm": "

InferRxNorm detects medications as entities listed in a patient record and links to the normalized concept identifiers in the RxNorm database from the National Library of Medicine. Amazon Comprehend Medical only detects medical entities in English language texts.

", "ListEntitiesDetectionV2Jobs": "

Gets a list of medical entity detection jobs that you have submitted.

", + "ListICD10CMInferenceJobs": "

Gets a list of InferICD10CM jobs that you have submitted.

", "ListPHIDetectionJobs": "

Gets a list of protected health information (PHI) detection jobs that you have submitted.

", + "ListRxNormInferenceJobs": "

Gets a list of InferRxNorm jobs that you have submitted.

", "StartEntitiesDetectionV2Job": "

Starts an asynchronous medical entity detection job for a collection of documents. Use the DescribeEntitiesDetectionV2Job operation to track the status of a job.

", + "StartICD10CMInferenceJob": "

Starts an asynchronous job to detect medical conditions and link them to the ICD-10-CM ontology. Use the DescribeICD10CMInferenceJob operation to track the status of a job.

", "StartPHIDetectionJob": "

Starts an asynchronous job to detect protected health information (PHI). Use the DescribePHIDetectionJob operation to track the status of a job.

", + "StartRxNormInferenceJob": "

Starts an asynchronous job to detect medication entities and link them to the RxNorm ontology. Use the DescribeRxNormInferenceJob operation to track the status of a job.

", "StopEntitiesDetectionV2Job": "

Stops a medical entities detection job in progress.

", - "StopPHIDetectionJob": "

Stops a protected health information (PHI) detection job in progress.

" + "StopICD10CMInferenceJob": "

Stops an InferICD10CM inference job in progress.

", + "StopPHIDetectionJob": "

Stops a protected health information (PHI) detection job in progress.

", + "StopRxNormInferenceJob": "

Stops an InferRxNorm inference job in progress.

" }, "shapes": { "AnyLengthString": { @@ -54,14 +62,18 @@ "base": null, "refs": { "StartEntitiesDetectionV2JobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.

", - "StartPHIDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.

" + "StartICD10CMInferenceJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.

", + "StartPHIDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.

", + "StartRxNormInferenceJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.

" } }, "ComprehendMedicalAsyncJobFilter": { "base": "

Provides information for filtering a list of detection jobs.

", "refs": { "ListEntitiesDetectionV2JobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

", - "ListPHIDetectionJobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

" + "ListICD10CMInferenceJobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

", + "ListPHIDetectionJobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

", + "ListRxNormInferenceJobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs based on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

" } }, "ComprehendMedicalAsyncJobProperties": { @@ -69,14 +81,18 @@ "refs": { "ComprehendMedicalAsyncJobPropertiesList$member": null, "DescribeEntitiesDetectionV2JobResponse$ComprehendMedicalAsyncJobProperties": "

An object that contains the properties associated with a detection job.

", - "DescribePHIDetectionJobResponse$ComprehendMedicalAsyncJobProperties": "

An object that contains the properties associated with a detection job.

" + "DescribeICD10CMInferenceJobResponse$ComprehendMedicalAsyncJobProperties": "

An object that contains the properties associated with a detection job.

", + "DescribePHIDetectionJobResponse$ComprehendMedicalAsyncJobProperties": "

An object that contains the properties associated with a detection job.

", + "DescribeRxNormInferenceJobResponse$ComprehendMedicalAsyncJobProperties": "

An object that contains the properties associated with a detection job.

" } }, "ComprehendMedicalAsyncJobPropertiesList": { "base": null, "refs": { "ListEntitiesDetectionV2JobsResponse$ComprehendMedicalAsyncJobPropertiesList": "

A list containing the properties of each job returned.

", - "ListPHIDetectionJobsResponse$ComprehendMedicalAsyncJobPropertiesList": "

A list containing the properties of each job returned.

" + "ListICD10CMInferenceJobsResponse$ComprehendMedicalAsyncJobPropertiesList": "

A list containing the properties of each job that is returned.

", + "ListPHIDetectionJobsResponse$ComprehendMedicalAsyncJobPropertiesList": "

A list containing the properties of each job returned.

", + "ListRxNormInferenceJobsResponse$ComprehendMedicalAsyncJobPropertiesList": "

The maximum number of results to return in each page. The default is 100.

" } }, "DescribeEntitiesDetectionV2JobRequest": { @@ -89,6 +105,16 @@ "refs": { } }, + "DescribeICD10CMInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeICD10CMInferenceJobResponse": { + "base": null, + "refs": { + } + }, "DescribePHIDetectionJobRequest": { "base": null, "refs": { @@ -99,6 +125,16 @@ "refs": { } }, + "DescribeRxNormInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeRxNormInferenceJobResponse": { + "base": null, + "refs": { + } + }, "DetectEntitiesRequest": { "base": null, "refs": { @@ -255,7 +291,9 @@ "refs": { "ComprehendMedicalAsyncJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read access to your input data.

", "StartEntitiesDetectionV2JobRequest$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.

", - "StartPHIDetectionJobRequest$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.

" + "StartICD10CMInferenceJobRequest$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.

", + "StartPHIDetectionJobRequest$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.

", + "StartRxNormInferenceJobRequest$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.

" } }, "InferICD10CMRequest": { @@ -279,11 +317,13 @@ } }, "InputDataConfig": { - "base": "

The input properties for an entities detection job.

", + "base": "

The input properties for an entities detection job. This includes the name of the S3 bucket and the path to the files to be analyzed. See batch-manifest for more information.

", "refs": { "ComprehendMedicalAsyncJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the detection job.

", "StartEntitiesDetectionV2JobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", - "StartPHIDetectionJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

" + "StartICD10CMInferenceJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", + "StartPHIDetectionJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", + "StartRxNormInferenceJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

" } }, "Integer": { @@ -329,13 +369,21 @@ "refs": { "ComprehendMedicalAsyncJobProperties$JobId": "

The identifier assigned to the detection job.

", "DescribeEntitiesDetectionV2JobRequest$JobId": "

The identifier that Amazon Comprehend Medical generated for the job. The StartEntitiesDetectionV2Job operation returns this identifier in its response.

", + "DescribeICD10CMInferenceJobRequest$JobId": "

The identifier that Amazon Comprehend Medical generated for the job. The StartICD10CMInferenceJob operation returns this identifier in its response.

", "DescribePHIDetectionJobRequest$JobId": "

The identifier that Amazon Comprehend Medical generated for the job. The StartPHIDetectionJob operation returns this identifier in its response.

", + "DescribeRxNormInferenceJobRequest$JobId": "

The identifier that Amazon Comprehend Medical generated for the job. The StartRxNormInferenceJob operation returns this identifier in its response.

", "StartEntitiesDetectionV2JobResponse$JobId": "

The identifier generated for the job. To get the status of a job, use this identifier with the DescribeEntitiesDetectionV2Job operation.

", + "StartICD10CMInferenceJobResponse$JobId": "

The identifier generated for the job. To get the status of a job, use this identifier with the StartICD10CMInferenceJob operation.

", "StartPHIDetectionJobResponse$JobId": "

The identifier generated for the job. To get the status of a job, use this identifier with the DescribePHIDetectionJob operation.

", + "StartRxNormInferenceJobResponse$JobId": "

The identifier of the job.

", "StopEntitiesDetectionV2JobRequest$JobId": "

The identifier of the medical entities job to stop.

", "StopEntitiesDetectionV2JobResponse$JobId": "

The identifier of the medical entities detection job that was stopped.

", + "StopICD10CMInferenceJobRequest$JobId": "

The identifier of the job.

", + "StopICD10CMInferenceJobResponse$JobId": "

The identifier generated for the job. To get the status of job, use this identifier with the DescribeICD10CMInferenceJob operation.

", "StopPHIDetectionJobRequest$JobId": "

The identifier of the PHI detection job to stop.

", - "StopPHIDetectionJobResponse$JobId": "

The identifier of the PHI detection job that was stopped.

" + "StopPHIDetectionJobResponse$JobId": "

The identifier of the PHI detection job that was stopped.

", + "StopRxNormInferenceJobRequest$JobId": "

The identifier of the job.

", + "StopRxNormInferenceJobResponse$JobId": "

The identifier generated for the job. To get the status of job, use this identifier with the DescribeRxNormInferenceJob operation.

" } }, "JobName": { @@ -344,7 +392,9 @@ "ComprehendMedicalAsyncJobFilter$JobName": "

Filters on the name of the job.

", "ComprehendMedicalAsyncJobProperties$JobName": "

The name that you assigned to the detection job.

", "StartEntitiesDetectionV2JobRequest$JobName": "

The identifier of the job.

", - "StartPHIDetectionJobRequest$JobName": "

The identifier of the job.

" + "StartICD10CMInferenceJobRequest$JobName": "

The identifier of the job.

", + "StartPHIDetectionJobRequest$JobName": "

The identifier of the job.

", + "StartRxNormInferenceJobRequest$JobName": "

The identifier of the job.

" } }, "JobStatus": { @@ -359,7 +409,9 @@ "refs": { "ComprehendMedicalAsyncJobProperties$KMSKey": "

The AWS Key Management Service key, if any, used to encrypt the output files.

", "StartEntitiesDetectionV2JobRequest$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.

", - "StartPHIDetectionJobRequest$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.

" + "StartICD10CMInferenceJobRequest$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.

", + "StartPHIDetectionJobRequest$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.

", + "StartRxNormInferenceJobRequest$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.

" } }, "LanguageCode": { @@ -367,7 +419,9 @@ "refs": { "ComprehendMedicalAsyncJobProperties$LanguageCode": "

The language code of the input documents.

", "StartEntitiesDetectionV2JobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language.

", - "StartPHIDetectionJobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language.

" + "StartICD10CMInferenceJobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language.

", + "StartPHIDetectionJobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language.

", + "StartRxNormInferenceJobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language.

" } }, "ListEntitiesDetectionV2JobsRequest": { @@ -380,6 +434,16 @@ "refs": { } }, + "ListICD10CMInferenceJobsRequest": { + "base": null, + "refs": { + } + }, + "ListICD10CMInferenceJobsResponse": { + "base": null, + "refs": { + } + }, "ListPHIDetectionJobsRequest": { "base": null, "refs": { @@ -390,6 +454,16 @@ "refs": { } }, + "ListRxNormInferenceJobsRequest": { + "base": null, + "refs": { + } + }, + "ListRxNormInferenceJobsResponse": { + "base": null, + "refs": { + } + }, "ManifestFilePath": { "base": null, "refs": { @@ -400,7 +474,9 @@ "base": null, "refs": { "ListEntitiesDetectionV2JobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", - "ListPHIDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

" + "ListICD10CMInferenceJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", + "ListPHIDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", + "ListRxNormInferenceJobsRequest$MaxResults": "

Identifies the next page of results to return.

" } }, "ModelVersion": { @@ -423,7 +499,9 @@ "refs": { "ComprehendMedicalAsyncJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the detection job.

", "StartEntitiesDetectionV2JobRequest$OutputDataConfig": "

Specifies where to send the output files.

", - "StartPHIDetectionJobRequest$OutputDataConfig": "

Specifies where to send the output files.

" + "StartICD10CMInferenceJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", + "StartPHIDetectionJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", + "StartRxNormInferenceJobRequest$OutputDataConfig": "

Specifies where to send the output files.

" } }, "RelationshipType": { @@ -539,6 +617,16 @@ "refs": { } }, + "StartICD10CMInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "StartICD10CMInferenceJobResponse": { + "base": null, + "refs": { + } + }, "StartPHIDetectionJobRequest": { "base": null, "refs": { @@ -549,6 +637,16 @@ "refs": { } }, + "StartRxNormInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "StartRxNormInferenceJobResponse": { + "base": null, + "refs": { + } + }, "StopEntitiesDetectionV2JobRequest": { "base": null, "refs": { @@ -559,6 +657,16 @@ "refs": { } }, + "StopICD10CMInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "StopICD10CMInferenceJobResponse": { + "base": null, + "refs": { + } + }, "StopPHIDetectionJobRequest": { "base": null, "refs": { @@ -569,6 +677,16 @@ "refs": { } }, + "StopRxNormInferenceJobRequest": { + "base": null, + "refs": { + } + }, + "StopRxNormInferenceJobResponse": { + "base": null, + "refs": { + } + }, "String": { "base": null, "refs": { @@ -592,8 +710,12 @@ "InvalidRequestException$Message": null, "ListEntitiesDetectionV2JobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListEntitiesDetectionV2JobsResponse$NextToken": "

Identifies the next page of results to return.

", + "ListICD10CMInferenceJobsRequest$NextToken": "

Identifies the next page of results to return.

", + "ListICD10CMInferenceJobsResponse$NextToken": "

Identifies the next page of results to return.

", "ListPHIDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListPHIDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", + "ListRxNormInferenceJobsRequest$NextToken": "

Identifies the next page of results to return.

", + "ListRxNormInferenceJobsResponse$NextToken": "

Identifies the next page of results to return.

", "ResourceNotFoundException$Message": null, "RxNormAttribute$Text": "

The segment of input text which corresponds to the detected attribute.

", "RxNormConcept$Description": "

The description of the RxNorm concept.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index e110cafaba..ac06557a6f 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -35,22 +35,22 @@ "description" : "Canada (Central)" }, "eu-central-1" : { - "description" : "EU (Frankfurt)" + "description" : "Europe (Frankfurt)" }, "eu-north-1" : { - "description" : "EU (Stockholm)" + "description" : "Europe (Stockholm)" }, "eu-south-1" : { "description" : "Europe (Milan)" }, "eu-west-1" : { - "description" : "EU (Ireland)" + "description" : "Europe (Ireland)" }, "eu-west-2" : { - "description" : "EU (London)" + "description" : "Europe (London)" }, "eu-west-3" : { - "description" : "EU (Paris)" + "description" : "Europe (Paris)" }, "me-south-1" : { "description" : "Middle East (Bahrain)" @@ -4431,6 +4431,7 @@ }, "secretsmanager" : { "endpoints" : { + "af-south-1" : { }, "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, @@ -4440,6 +4441,7 @@ "ca-central-1" : { }, "eu-central-1" : { }, "eu-north-1" : { }, + "eu-south-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, @@ -6312,7 +6314,7 @@ "description" : "AWS GovCloud (US-East)" }, "us-gov-west-1" : { - "description" : "AWS GovCloud (US)" + "description" : "AWS GovCloud (US-West)" } }, "services" : { @@ -6767,6 +6769,18 @@ }, "elasticmapreduce" : { "endpoints" : { + "fips-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "elasticmapreduce.us-gov-east-1.amazonaws.com" + }, + "fips-us-gov-west-1" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "hostname" : "elasticmapreduce.us-gov-west-1.amazonaws.com" + }, "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "https" ] diff --git a/service/codestarconnections/api.go b/service/codestarconnections/api.go index bb78777334..cdac55d73b 100644 --- a/service/codestarconnections/api.go +++ b/service/codestarconnections/api.go @@ -386,8 +386,255 @@ func (c *CodeStarConnections) ListConnectionsPagesWithContext(ctx aws.Context, i return p.Err() } -// The configuration that allows a service such as CodePipeline to connect to -// a third-party code repository. +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource +func (c *CodeStarConnections) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS CodeStar connections. +// +// Gets the set of key-value pairs (metadata) that are used to manage the resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeStar connections's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// Resource not found. Verify the connection resource ARN and try again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource +func (c *CodeStarConnections) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource +func (c *CodeStarConnections) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS CodeStar connections. +// +// Adds to or modifies the tags of the given resource. Tags are metadata that +// can be used to manage a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeStar connections's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// Resource not found. Verify the connection resource ARN and try again. +// +// * LimitExceededException +// Exceeded the maximum limit for connections. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource +func (c *CodeStarConnections) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource +func (c *CodeStarConnections) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS CodeStar connections. +// +// Removes tags from an AWS resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS CodeStar connections's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// Resource not found. Verify the connection resource ARN and try again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource +func (c *CodeStarConnections) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The AWS::CodeStarConnections::Connection resource can be used to connect +// external source providers with services like AWS CodePipeline. +// +// Note: A connection created through CloudFormation is in `PENDING` status +// by default. You can make its status `AVAILABLE` by editing the connection +// in the CodePipeline console. type Connection struct { _ struct{} `type:"structure"` @@ -404,7 +651,7 @@ type Connection struct { // The current status of the connection. ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - // The name of the external provider where your third-party code repository + // The identifier of the external provider where your third-party code repository // is configured. For Bitbucket, this is the account ID of the owner of the // Bitbucket repository. OwnerAccountId *string `min:"12" type:"string"` @@ -468,6 +715,9 @@ type CreateConnectionInput struct { // // ProviderType is a required field ProviderType *string `type:"string" required:"true" enum:"ProviderType"` + + // The key-value pair to use when tagging the resource. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -492,6 +742,16 @@ func (s *CreateConnectionInput) Validate() error { if s.ProviderType == nil { invalidParams.Add(request.NewErrParamRequired("ProviderType")) } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -511,6 +771,12 @@ func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput return s } +// SetTags sets the Tags field's value. +func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { + s.Tags = v + return s +} + type CreateConnectionOutput struct { _ struct{} `type:"structure"` @@ -522,6 +788,9 @@ type CreateConnectionOutput struct { // // ConnectionArn is a required field ConnectionArn *string `type:"string" required:"true"` + + // Specifies the tags applied to the resource. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -540,6 +809,12 @@ func (s *CreateConnectionOutput) SetConnectionArn(v string) *CreateConnectionOut return s } +// SetTags sets the Tags field's value. +func (s *CreateConnectionOutput) SetTags(v []*Tag) *CreateConnectionOutput { + s.Tags = v + return s +} + type DeleteConnectionInput struct { _ struct{} `type:"structure"` @@ -716,7 +991,7 @@ type ListConnectionsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults *int64 `min:"1" type:"integer"` + MaxResults *int64 `type:"integer"` // The token that was returned from the previous ListConnections call, which // can be used to return the next set of connections in the list. @@ -740,9 +1015,6 @@ func (s ListConnectionsInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ListConnectionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } @@ -806,6 +1078,71 @@ func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource for which you want to get + // information about tags, if any. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tag key and value pairs associated with the specified resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // Resource not found. Verify the connection resource ARN and try again. type ResourceNotFoundException struct { _ struct{} `type:"structure"` @@ -862,6 +1199,213 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// A tag is a key-value pair that is used to manage the resource. +// +// This tag is available for use by AWS services that support tags. +type Tag struct { + _ struct{} `type:"structure"` + + // The tag's key. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The tag's value. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to which you want to add or + // update tags. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The tags you want to modify or add to the resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to remove tags from. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The list of keys for the tags to be removed from the resource. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + const ( // ConnectionStatusPending is a ConnectionStatus enum value ConnectionStatusPending = "PENDING" diff --git a/service/codestarconnections/codestarconnectionsiface/interface.go b/service/codestarconnections/codestarconnectionsiface/interface.go index 30b463e303..910f7fa834 100644 --- a/service/codestarconnections/codestarconnectionsiface/interface.go +++ b/service/codestarconnections/codestarconnectionsiface/interface.go @@ -78,6 +78,18 @@ type CodeStarConnectionsAPI interface { ListConnectionsPages(*codestarconnections.ListConnectionsInput, func(*codestarconnections.ListConnectionsOutput, bool) bool) error ListConnectionsPagesWithContext(aws.Context, *codestarconnections.ListConnectionsInput, func(*codestarconnections.ListConnectionsOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*codestarconnections.ListTagsForResourceInput) (*codestarconnections.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *codestarconnections.ListTagsForResourceInput, ...request.Option) (*codestarconnections.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*codestarconnections.ListTagsForResourceInput) (*request.Request, *codestarconnections.ListTagsForResourceOutput) + + TagResource(*codestarconnections.TagResourceInput) (*codestarconnections.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *codestarconnections.TagResourceInput, ...request.Option) (*codestarconnections.TagResourceOutput, error) + TagResourceRequest(*codestarconnections.TagResourceInput) (*request.Request, *codestarconnections.TagResourceOutput) + + UntagResource(*codestarconnections.UntagResourceInput) (*codestarconnections.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *codestarconnections.UntagResourceInput, ...request.Option) (*codestarconnections.UntagResourceOutput, error) + UntagResourceRequest(*codestarconnections.UntagResourceInput) (*request.Request, *codestarconnections.UntagResourceOutput) } var _ CodeStarConnectionsAPI = (*codestarconnections.CodeStarConnections)(nil) diff --git a/service/comprehendmedical/api.go b/service/comprehendmedical/api.go index 22be73528e..c02e73aecf 100644 --- a/service/comprehendmedical/api.go +++ b/service/comprehendmedical/api.go @@ -105,6 +105,99 @@ func (c *ComprehendMedical) DescribeEntitiesDetectionV2JobWithContext(ctx aws.Co return out, req.Send() } +const opDescribeICD10CMInferenceJob = "DescribeICD10CMInferenceJob" + +// DescribeICD10CMInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeICD10CMInferenceJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeICD10CMInferenceJob for more information on using the DescribeICD10CMInferenceJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeICD10CMInferenceJobRequest method. +// req, resp := client.DescribeICD10CMInferenceJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob +func (c *ComprehendMedical) DescribeICD10CMInferenceJobRequest(input *DescribeICD10CMInferenceJobInput) (req *request.Request, output *DescribeICD10CMInferenceJobOutput) { + op := &request.Operation{ + Name: opDescribeICD10CMInferenceJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeICD10CMInferenceJobInput{} + } + + output = &DescribeICD10CMInferenceJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeICD10CMInferenceJob API operation for AWS Comprehend Medical. +// +// Gets the properties associated with an InferICD10CM job. Use this operation +// to get the status of an inference job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation DescribeICD10CMInferenceJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob +func (c *ComprehendMedical) DescribeICD10CMInferenceJob(input *DescribeICD10CMInferenceJobInput) (*DescribeICD10CMInferenceJobOutput, error) { + req, out := c.DescribeICD10CMInferenceJobRequest(input) + return out, req.Send() +} + +// DescribeICD10CMInferenceJobWithContext is the same as DescribeICD10CMInferenceJob with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeICD10CMInferenceJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) DescribeICD10CMInferenceJobWithContext(ctx aws.Context, input *DescribeICD10CMInferenceJobInput, opts ...request.Option) (*DescribeICD10CMInferenceJobOutput, error) { + req, out := c.DescribeICD10CMInferenceJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribePHIDetectionJob = "DescribePHIDetectionJob" // DescribePHIDetectionJobRequest generates a "aws/request.Request" representing the @@ -198,6 +291,99 @@ func (c *ComprehendMedical) DescribePHIDetectionJobWithContext(ctx aws.Context, return out, req.Send() } +const opDescribeRxNormInferenceJob = "DescribeRxNormInferenceJob" + +// DescribeRxNormInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRxNormInferenceJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeRxNormInferenceJob for more information on using the DescribeRxNormInferenceJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeRxNormInferenceJobRequest method. +// req, resp := client.DescribeRxNormInferenceJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob +func (c *ComprehendMedical) DescribeRxNormInferenceJobRequest(input *DescribeRxNormInferenceJobInput) (req *request.Request, output *DescribeRxNormInferenceJobOutput) { + op := &request.Operation{ + Name: opDescribeRxNormInferenceJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeRxNormInferenceJobInput{} + } + + output = &DescribeRxNormInferenceJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRxNormInferenceJob API operation for AWS Comprehend Medical. +// +// Gets the properties associated with an InferRxNorm job. Use this operation +// to get the status of an inference job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation DescribeRxNormInferenceJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob +func (c *ComprehendMedical) DescribeRxNormInferenceJob(input *DescribeRxNormInferenceJobInput) (*DescribeRxNormInferenceJobOutput, error) { + req, out := c.DescribeRxNormInferenceJobRequest(input) + return out, req.Send() +} + +// DescribeRxNormInferenceJobWithContext is the same as DescribeRxNormInferenceJob with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeRxNormInferenceJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) DescribeRxNormInferenceJobWithContext(ctx aws.Context, input *DescribeRxNormInferenceJobInput, opts ...request.Option) (*DescribeRxNormInferenceJobOutput, error) { + req, out := c.DescribeRxNormInferenceJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDetectEntities = "DetectEntities" // DetectEntitiesRequest generates a "aws/request.Request" representing the @@ -824,59 +1010,58 @@ func (c *ComprehendMedical) ListEntitiesDetectionV2JobsWithContext(ctx aws.Conte return out, req.Send() } -const opListPHIDetectionJobs = "ListPHIDetectionJobs" +const opListICD10CMInferenceJobs = "ListICD10CMInferenceJobs" -// ListPHIDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListPHIDetectionJobs operation. The "output" return +// ListICD10CMInferenceJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListICD10CMInferenceJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListPHIDetectionJobs for more information on using the ListPHIDetectionJobs +// See ListICD10CMInferenceJobs for more information on using the ListICD10CMInferenceJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListPHIDetectionJobsRequest method. -// req, resp := client.ListPHIDetectionJobsRequest(params) +// // Example sending a request using the ListICD10CMInferenceJobsRequest method. +// req, resp := client.ListICD10CMInferenceJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs -func (c *ComprehendMedical) ListPHIDetectionJobsRequest(input *ListPHIDetectionJobsInput) (req *request.Request, output *ListPHIDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs +func (c *ComprehendMedical) ListICD10CMInferenceJobsRequest(input *ListICD10CMInferenceJobsInput) (req *request.Request, output *ListICD10CMInferenceJobsOutput) { op := &request.Operation{ - Name: opListPHIDetectionJobs, + Name: opListICD10CMInferenceJobs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListPHIDetectionJobsInput{} + input = &ListICD10CMInferenceJobsInput{} } - output = &ListPHIDetectionJobsOutput{} + output = &ListICD10CMInferenceJobsOutput{} req = c.newRequest(op, input, output) return } -// ListPHIDetectionJobs API operation for AWS Comprehend Medical. +// ListICD10CMInferenceJobs API operation for AWS Comprehend Medical. // -// Gets a list of protected health information (PHI) detection jobs that you -// have submitted. +// Gets a list of InferICD10CM jobs that you have submitted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Comprehend Medical's -// API operation ListPHIDetectionJobs for usage and error information. +// API operation ListICD10CMInferenceJobs for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -895,273 +1080,278 @@ func (c *ComprehendMedical) ListPHIDetectionJobsRequest(input *ListPHIDetectionJ // * InternalServerException // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs -func (c *ComprehendMedical) ListPHIDetectionJobs(input *ListPHIDetectionJobsInput) (*ListPHIDetectionJobsOutput, error) { - req, out := c.ListPHIDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs +func (c *ComprehendMedical) ListICD10CMInferenceJobs(input *ListICD10CMInferenceJobsInput) (*ListICD10CMInferenceJobsOutput, error) { + req, out := c.ListICD10CMInferenceJobsRequest(input) return out, req.Send() } -// ListPHIDetectionJobsWithContext is the same as ListPHIDetectionJobs with the addition of +// ListICD10CMInferenceJobsWithContext is the same as ListICD10CMInferenceJobs with the addition of // the ability to pass a context and additional request options. // -// See ListPHIDetectionJobs for details on how to use this API operation. +// See ListICD10CMInferenceJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ComprehendMedical) ListPHIDetectionJobsWithContext(ctx aws.Context, input *ListPHIDetectionJobsInput, opts ...request.Option) (*ListPHIDetectionJobsOutput, error) { - req, out := c.ListPHIDetectionJobsRequest(input) +func (c *ComprehendMedical) ListICD10CMInferenceJobsWithContext(ctx aws.Context, input *ListICD10CMInferenceJobsInput, opts ...request.Option) (*ListICD10CMInferenceJobsOutput, error) { + req, out := c.ListICD10CMInferenceJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartEntitiesDetectionV2Job = "StartEntitiesDetectionV2Job" +const opListPHIDetectionJobs = "ListPHIDetectionJobs" -// StartEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the -// client's request for the StartEntitiesDetectionV2Job operation. The "output" return +// ListPHIDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListPHIDetectionJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartEntitiesDetectionV2Job for more information on using the StartEntitiesDetectionV2Job +// See ListPHIDetectionJobs for more information on using the ListPHIDetectionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartEntitiesDetectionV2JobRequest method. -// req, resp := client.StartEntitiesDetectionV2JobRequest(params) +// // Example sending a request using the ListPHIDetectionJobsRequest method. +// req, resp := client.ListPHIDetectionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job -func (c *ComprehendMedical) StartEntitiesDetectionV2JobRequest(input *StartEntitiesDetectionV2JobInput) (req *request.Request, output *StartEntitiesDetectionV2JobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs +func (c *ComprehendMedical) ListPHIDetectionJobsRequest(input *ListPHIDetectionJobsInput) (req *request.Request, output *ListPHIDetectionJobsOutput) { op := &request.Operation{ - Name: opStartEntitiesDetectionV2Job, + Name: opListPHIDetectionJobs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartEntitiesDetectionV2JobInput{} + input = &ListPHIDetectionJobsInput{} } - output = &StartEntitiesDetectionV2JobOutput{} + output = &ListPHIDetectionJobsOutput{} req = c.newRequest(op, input, output) return } -// StartEntitiesDetectionV2Job API operation for AWS Comprehend Medical. +// ListPHIDetectionJobs API operation for AWS Comprehend Medical. // -// Starts an asynchronous medical entity detection job for a collection of documents. -// Use the DescribeEntitiesDetectionV2Job operation to track the status of a -// job. +// Gets a list of protected health information (PHI) detection jobs that you +// have submitted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Comprehend Medical's -// API operation StartEntitiesDetectionV2Job for usage and error information. +// API operation ListPHIDetectionJobs for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // +// * ValidationException +// The filter that you specified for the operation is invalid. Check the filter +// values that you entered and try your request again. +// // * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ResourceNotFoundException -// The resource identified by the specified Amazon Resource Name (ARN) was not -// found. Check the ARN and try your request again. -// // * InternalServerException // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job -func (c *ComprehendMedical) StartEntitiesDetectionV2Job(input *StartEntitiesDetectionV2JobInput) (*StartEntitiesDetectionV2JobOutput, error) { - req, out := c.StartEntitiesDetectionV2JobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs +func (c *ComprehendMedical) ListPHIDetectionJobs(input *ListPHIDetectionJobsInput) (*ListPHIDetectionJobsOutput, error) { + req, out := c.ListPHIDetectionJobsRequest(input) return out, req.Send() } -// StartEntitiesDetectionV2JobWithContext is the same as StartEntitiesDetectionV2Job with the addition of +// ListPHIDetectionJobsWithContext is the same as ListPHIDetectionJobs with the addition of // the ability to pass a context and additional request options. // -// See StartEntitiesDetectionV2Job for details on how to use this API operation. +// See ListPHIDetectionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ComprehendMedical) StartEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StartEntitiesDetectionV2JobInput, opts ...request.Option) (*StartEntitiesDetectionV2JobOutput, error) { - req, out := c.StartEntitiesDetectionV2JobRequest(input) +func (c *ComprehendMedical) ListPHIDetectionJobsWithContext(ctx aws.Context, input *ListPHIDetectionJobsInput, opts ...request.Option) (*ListPHIDetectionJobsOutput, error) { + req, out := c.ListPHIDetectionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartPHIDetectionJob = "StartPHIDetectionJob" +const opListRxNormInferenceJobs = "ListRxNormInferenceJobs" -// StartPHIDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartPHIDetectionJob operation. The "output" return +// ListRxNormInferenceJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListRxNormInferenceJobs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartPHIDetectionJob for more information on using the StartPHIDetectionJob +// See ListRxNormInferenceJobs for more information on using the ListRxNormInferenceJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartPHIDetectionJobRequest method. -// req, resp := client.StartPHIDetectionJobRequest(params) +// // Example sending a request using the ListRxNormInferenceJobsRequest method. +// req, resp := client.ListRxNormInferenceJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob -func (c *ComprehendMedical) StartPHIDetectionJobRequest(input *StartPHIDetectionJobInput) (req *request.Request, output *StartPHIDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs +func (c *ComprehendMedical) ListRxNormInferenceJobsRequest(input *ListRxNormInferenceJobsInput) (req *request.Request, output *ListRxNormInferenceJobsOutput) { op := &request.Operation{ - Name: opStartPHIDetectionJob, + Name: opListRxNormInferenceJobs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartPHIDetectionJobInput{} + input = &ListRxNormInferenceJobsInput{} } - output = &StartPHIDetectionJobOutput{} + output = &ListRxNormInferenceJobsOutput{} req = c.newRequest(op, input, output) return } -// StartPHIDetectionJob API operation for AWS Comprehend Medical. +// ListRxNormInferenceJobs API operation for AWS Comprehend Medical. // -// Starts an asynchronous job to detect protected health information (PHI). -// Use the DescribePHIDetectionJob operation to track the status of a job. +// Gets a list of InferRxNorm jobs that you have submitted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Comprehend Medical's -// API operation StartPHIDetectionJob for usage and error information. +// API operation ListRxNormInferenceJobs for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // +// * ValidationException +// The filter that you specified for the operation is invalid. Check the filter +// values that you entered and try your request again. +// // * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ResourceNotFoundException -// The resource identified by the specified Amazon Resource Name (ARN) was not -// found. Check the ARN and try your request again. -// // * InternalServerException // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob -func (c *ComprehendMedical) StartPHIDetectionJob(input *StartPHIDetectionJobInput) (*StartPHIDetectionJobOutput, error) { - req, out := c.StartPHIDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs +func (c *ComprehendMedical) ListRxNormInferenceJobs(input *ListRxNormInferenceJobsInput) (*ListRxNormInferenceJobsOutput, error) { + req, out := c.ListRxNormInferenceJobsRequest(input) return out, req.Send() } -// StartPHIDetectionJobWithContext is the same as StartPHIDetectionJob with the addition of +// ListRxNormInferenceJobsWithContext is the same as ListRxNormInferenceJobs with the addition of // the ability to pass a context and additional request options. // -// See StartPHIDetectionJob for details on how to use this API operation. +// See ListRxNormInferenceJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ComprehendMedical) StartPHIDetectionJobWithContext(ctx aws.Context, input *StartPHIDetectionJobInput, opts ...request.Option) (*StartPHIDetectionJobOutput, error) { - req, out := c.StartPHIDetectionJobRequest(input) +func (c *ComprehendMedical) ListRxNormInferenceJobsWithContext(ctx aws.Context, input *ListRxNormInferenceJobsInput, opts ...request.Option) (*ListRxNormInferenceJobsOutput, error) { + req, out := c.ListRxNormInferenceJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopEntitiesDetectionV2Job = "StopEntitiesDetectionV2Job" +const opStartEntitiesDetectionV2Job = "StartEntitiesDetectionV2Job" -// StopEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the -// client's request for the StopEntitiesDetectionV2Job operation. The "output" return +// StartEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the +// client's request for the StartEntitiesDetectionV2Job operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopEntitiesDetectionV2Job for more information on using the StopEntitiesDetectionV2Job +// See StartEntitiesDetectionV2Job for more information on using the StartEntitiesDetectionV2Job // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopEntitiesDetectionV2JobRequest method. -// req, resp := client.StopEntitiesDetectionV2JobRequest(params) +// // Example sending a request using the StartEntitiesDetectionV2JobRequest method. +// req, resp := client.StartEntitiesDetectionV2JobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job -func (c *ComprehendMedical) StopEntitiesDetectionV2JobRequest(input *StopEntitiesDetectionV2JobInput) (req *request.Request, output *StopEntitiesDetectionV2JobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job +func (c *ComprehendMedical) StartEntitiesDetectionV2JobRequest(input *StartEntitiesDetectionV2JobInput) (req *request.Request, output *StartEntitiesDetectionV2JobOutput) { op := &request.Operation{ - Name: opStopEntitiesDetectionV2Job, + Name: opStartEntitiesDetectionV2Job, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopEntitiesDetectionV2JobInput{} + input = &StartEntitiesDetectionV2JobInput{} } - output = &StopEntitiesDetectionV2JobOutput{} + output = &StartEntitiesDetectionV2JobOutput{} req = c.newRequest(op, input, output) return } -// StopEntitiesDetectionV2Job API operation for AWS Comprehend Medical. +// StartEntitiesDetectionV2Job API operation for AWS Comprehend Medical. // -// Stops a medical entities detection job in progress. +// Starts an asynchronous medical entity detection job for a collection of documents. +// Use the DescribeEntitiesDetectionV2Job operation to track the status of a +// job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Comprehend Medical's -// API operation StopEntitiesDetectionV2Job for usage and error information. +// API operation StartEntitiesDetectionV2Job for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// // * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. @@ -1169,86 +1359,93 @@ func (c *ComprehendMedical) StopEntitiesDetectionV2JobRequest(input *StopEntitie // * InternalServerException // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job -func (c *ComprehendMedical) StopEntitiesDetectionV2Job(input *StopEntitiesDetectionV2JobInput) (*StopEntitiesDetectionV2JobOutput, error) { - req, out := c.StopEntitiesDetectionV2JobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job +func (c *ComprehendMedical) StartEntitiesDetectionV2Job(input *StartEntitiesDetectionV2JobInput) (*StartEntitiesDetectionV2JobOutput, error) { + req, out := c.StartEntitiesDetectionV2JobRequest(input) return out, req.Send() } -// StopEntitiesDetectionV2JobWithContext is the same as StopEntitiesDetectionV2Job with the addition of +// StartEntitiesDetectionV2JobWithContext is the same as StartEntitiesDetectionV2Job with the addition of // the ability to pass a context and additional request options. // -// See StopEntitiesDetectionV2Job for details on how to use this API operation. +// See StartEntitiesDetectionV2Job for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ComprehendMedical) StopEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StopEntitiesDetectionV2JobInput, opts ...request.Option) (*StopEntitiesDetectionV2JobOutput, error) { - req, out := c.StopEntitiesDetectionV2JobRequest(input) +func (c *ComprehendMedical) StartEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StartEntitiesDetectionV2JobInput, opts ...request.Option) (*StartEntitiesDetectionV2JobOutput, error) { + req, out := c.StartEntitiesDetectionV2JobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopPHIDetectionJob = "StopPHIDetectionJob" +const opStartICD10CMInferenceJob = "StartICD10CMInferenceJob" -// StopPHIDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StopPHIDetectionJob operation. The "output" return +// StartICD10CMInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the StartICD10CMInferenceJob operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopPHIDetectionJob for more information on using the StopPHIDetectionJob +// See StartICD10CMInferenceJob for more information on using the StartICD10CMInferenceJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopPHIDetectionJobRequest method. -// req, resp := client.StopPHIDetectionJobRequest(params) +// // Example sending a request using the StartICD10CMInferenceJobRequest method. +// req, resp := client.StartICD10CMInferenceJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob -func (c *ComprehendMedical) StopPHIDetectionJobRequest(input *StopPHIDetectionJobInput) (req *request.Request, output *StopPHIDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob +func (c *ComprehendMedical) StartICD10CMInferenceJobRequest(input *StartICD10CMInferenceJobInput) (req *request.Request, output *StartICD10CMInferenceJobOutput) { op := &request.Operation{ - Name: opStopPHIDetectionJob, + Name: opStartICD10CMInferenceJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopPHIDetectionJobInput{} + input = &StartICD10CMInferenceJobInput{} } - output = &StopPHIDetectionJobOutput{} + output = &StartICD10CMInferenceJobOutput{} req = c.newRequest(op, input, output) return } -// StopPHIDetectionJob API operation for AWS Comprehend Medical. +// StartICD10CMInferenceJob API operation for AWS Comprehend Medical. // -// Stops a protected health information (PHI) detection job in progress. +// Starts an asynchronous job to detect medical conditions and link them to +// the ICD-10-CM ontology. Use the DescribeICD10CMInferenceJob operation to +// track the status of a job. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Comprehend Medical's -// API operation StopPHIDetectionJob for usage and error information. +// API operation StartICD10CMInferenceJob for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// // * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. @@ -1256,514 +1453,1874 @@ func (c *ComprehendMedical) StopPHIDetectionJobRequest(input *StopPHIDetectionJo // * InternalServerException // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob -func (c *ComprehendMedical) StopPHIDetectionJob(input *StopPHIDetectionJobInput) (*StopPHIDetectionJobOutput, error) { - req, out := c.StopPHIDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob +func (c *ComprehendMedical) StartICD10CMInferenceJob(input *StartICD10CMInferenceJobInput) (*StartICD10CMInferenceJobOutput, error) { + req, out := c.StartICD10CMInferenceJobRequest(input) return out, req.Send() } -// StopPHIDetectionJobWithContext is the same as StopPHIDetectionJob with the addition of +// StartICD10CMInferenceJobWithContext is the same as StartICD10CMInferenceJob with the addition of // the ability to pass a context and additional request options. // -// See StopPHIDetectionJob for details on how to use this API operation. +// See StartICD10CMInferenceJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ComprehendMedical) StopPHIDetectionJobWithContext(ctx aws.Context, input *StopPHIDetectionJobInput, opts ...request.Option) (*StopPHIDetectionJobOutput, error) { - req, out := c.StopPHIDetectionJobRequest(input) +func (c *ComprehendMedical) StartICD10CMInferenceJobWithContext(ctx aws.Context, input *StartICD10CMInferenceJobInput, opts ...request.Option) (*StartICD10CMInferenceJobOutput, error) { + req, out := c.StartICD10CMInferenceJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// An extracted segment of the text that is an attribute of an entity, or otherwise -// related to an entity, such as the dosage of a medication taken. It contains -// information about the attribute such as id, begin and end offset within the -// input text, and the segment of the input text. -type Attribute struct { - _ struct{} `type:"structure"` - - // The 0-based character offset in the input text that shows where the attribute - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` +const opStartPHIDetectionJob = "StartPHIDetectionJob" - // The category of attribute. - Category *string `type:"string" enum:"EntityType"` +// StartPHIDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartPHIDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartPHIDetectionJob for more information on using the StartPHIDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartPHIDetectionJobRequest method. +// req, resp := client.StartPHIDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob +func (c *ComprehendMedical) StartPHIDetectionJobRequest(input *StartPHIDetectionJobInput) (req *request.Request, output *StartPHIDetectionJobOutput) { + op := &request.Operation{ + Name: opStartPHIDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } - // The 0-based character offset in the input text that shows where the attribute - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` + if input == nil { + input = &StartPHIDetectionJobInput{} + } - // The numeric identifier for this attribute. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` + output = &StartPHIDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} - // The level of confidence that Amazon Comprehend Medical has that this attribute - // is correctly related to this entity. - RelationshipScore *float64 `type:"float"` +// StartPHIDetectionJob API operation for AWS Comprehend Medical. +// +// Starts an asynchronous job to detect protected health information (PHI). +// Use the DescribePHIDetectionJob operation to track the status of a job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StartPHIDetectionJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob +func (c *ComprehendMedical) StartPHIDetectionJob(input *StartPHIDetectionJobInput) (*StartPHIDetectionJobOutput, error) { + req, out := c.StartPHIDetectionJobRequest(input) + return out, req.Send() +} - // The type of relationship between the entity and attribute. Type for the relationship - // is OVERLAP, indicating that the entity occurred at the same time as the Date_Expression. - RelationshipType *string `type:"string" enum:"RelationshipType"` +// StartPHIDetectionJobWithContext is the same as StartPHIDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartPHIDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StartPHIDetectionJobWithContext(ctx aws.Context, input *StartPHIDetectionJobInput, opts ...request.Option) (*StartPHIDetectionJobOutput, error) { + req, out := c.StartPHIDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} - // The level of confidence that Amazon Comprehend Medical has that the segment - // of text is correctly recognized as an attribute. - Score *float64 `type:"float"` +const opStartRxNormInferenceJob = "StartRxNormInferenceJob" - // The segment of input text extracted as this attribute. - Text *string `min:"1" type:"string"` +// StartRxNormInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the StartRxNormInferenceJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartRxNormInferenceJob for more information on using the StartRxNormInferenceJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartRxNormInferenceJobRequest method. +// req, resp := client.StartRxNormInferenceJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob +func (c *ComprehendMedical) StartRxNormInferenceJobRequest(input *StartRxNormInferenceJobInput) (req *request.Request, output *StartRxNormInferenceJobOutput) { + op := &request.Operation{ + Name: opStartRxNormInferenceJob, + HTTPMethod: "POST", + HTTPPath: "/", + } - // Contextual information for this attribute. - Traits []*Trait `type:"list"` + if input == nil { + input = &StartRxNormInferenceJobInput{} + } - // The type of attribute. - Type *string `type:"string" enum:"EntitySubType"` + output = &StartRxNormInferenceJobOutput{} + req = c.newRequest(op, input, output) + return } -// String returns the string representation -func (s Attribute) String() string { - return awsutil.Prettify(s) +// StartRxNormInferenceJob API operation for AWS Comprehend Medical. +// +// Starts an asynchronous job to detect medication entities and link them to +// the RxNorm ontology. Use the DescribeRxNormInferenceJob operation to track +// the status of a job. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StartRxNormInferenceJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * TooManyRequestsException +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob +func (c *ComprehendMedical) StartRxNormInferenceJob(input *StartRxNormInferenceJobInput) (*StartRxNormInferenceJobOutput, error) { + req, out := c.StartRxNormInferenceJobRequest(input) + return out, req.Send() } -// GoString returns the string representation -func (s Attribute) GoString() string { - return s.String() +// StartRxNormInferenceJobWithContext is the same as StartRxNormInferenceJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartRxNormInferenceJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StartRxNormInferenceJobWithContext(ctx aws.Context, input *StartRxNormInferenceJobInput, opts ...request.Option) (*StartRxNormInferenceJobOutput, error) { + req, out := c.StartRxNormInferenceJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// SetBeginOffset sets the BeginOffset field's value. -func (s *Attribute) SetBeginOffset(v int64) *Attribute { +const opStopEntitiesDetectionV2Job = "StopEntitiesDetectionV2Job" + +// StopEntitiesDetectionV2JobRequest generates a "aws/request.Request" representing the +// client's request for the StopEntitiesDetectionV2Job operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopEntitiesDetectionV2Job for more information on using the StopEntitiesDetectionV2Job +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopEntitiesDetectionV2JobRequest method. +// req, resp := client.StopEntitiesDetectionV2JobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job +func (c *ComprehendMedical) StopEntitiesDetectionV2JobRequest(input *StopEntitiesDetectionV2JobInput) (req *request.Request, output *StopEntitiesDetectionV2JobOutput) { + op := &request.Operation{ + Name: opStopEntitiesDetectionV2Job, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopEntitiesDetectionV2JobInput{} + } + + output = &StopEntitiesDetectionV2JobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopEntitiesDetectionV2Job API operation for AWS Comprehend Medical. +// +// Stops a medical entities detection job in progress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StopEntitiesDetectionV2Job for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job +func (c *ComprehendMedical) StopEntitiesDetectionV2Job(input *StopEntitiesDetectionV2JobInput) (*StopEntitiesDetectionV2JobOutput, error) { + req, out := c.StopEntitiesDetectionV2JobRequest(input) + return out, req.Send() +} + +// StopEntitiesDetectionV2JobWithContext is the same as StopEntitiesDetectionV2Job with the addition of +// the ability to pass a context and additional request options. +// +// See StopEntitiesDetectionV2Job for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StopEntitiesDetectionV2JobWithContext(ctx aws.Context, input *StopEntitiesDetectionV2JobInput, opts ...request.Option) (*StopEntitiesDetectionV2JobOutput, error) { + req, out := c.StopEntitiesDetectionV2JobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopICD10CMInferenceJob = "StopICD10CMInferenceJob" + +// StopICD10CMInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the StopICD10CMInferenceJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopICD10CMInferenceJob for more information on using the StopICD10CMInferenceJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopICD10CMInferenceJobRequest method. +// req, resp := client.StopICD10CMInferenceJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob +func (c *ComprehendMedical) StopICD10CMInferenceJobRequest(input *StopICD10CMInferenceJobInput) (req *request.Request, output *StopICD10CMInferenceJobOutput) { + op := &request.Operation{ + Name: opStopICD10CMInferenceJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopICD10CMInferenceJobInput{} + } + + output = &StopICD10CMInferenceJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopICD10CMInferenceJob API operation for AWS Comprehend Medical. +// +// Stops an InferICD10CM inference job in progress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StopICD10CMInferenceJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob +func (c *ComprehendMedical) StopICD10CMInferenceJob(input *StopICD10CMInferenceJobInput) (*StopICD10CMInferenceJobOutput, error) { + req, out := c.StopICD10CMInferenceJobRequest(input) + return out, req.Send() +} + +// StopICD10CMInferenceJobWithContext is the same as StopICD10CMInferenceJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopICD10CMInferenceJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StopICD10CMInferenceJobWithContext(ctx aws.Context, input *StopICD10CMInferenceJobInput, opts ...request.Option) (*StopICD10CMInferenceJobOutput, error) { + req, out := c.StopICD10CMInferenceJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopPHIDetectionJob = "StopPHIDetectionJob" + +// StopPHIDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StopPHIDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopPHIDetectionJob for more information on using the StopPHIDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopPHIDetectionJobRequest method. +// req, resp := client.StopPHIDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob +func (c *ComprehendMedical) StopPHIDetectionJobRequest(input *StopPHIDetectionJobInput) (req *request.Request, output *StopPHIDetectionJobOutput) { + op := &request.Operation{ + Name: opStopPHIDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopPHIDetectionJobInput{} + } + + output = &StopPHIDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopPHIDetectionJob API operation for AWS Comprehend Medical. +// +// Stops a protected health information (PHI) detection job in progress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StopPHIDetectionJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob +func (c *ComprehendMedical) StopPHIDetectionJob(input *StopPHIDetectionJobInput) (*StopPHIDetectionJobOutput, error) { + req, out := c.StopPHIDetectionJobRequest(input) + return out, req.Send() +} + +// StopPHIDetectionJobWithContext is the same as StopPHIDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopPHIDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StopPHIDetectionJobWithContext(ctx aws.Context, input *StopPHIDetectionJobInput, opts ...request.Option) (*StopPHIDetectionJobOutput, error) { + req, out := c.StopPHIDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopRxNormInferenceJob = "StopRxNormInferenceJob" + +// StopRxNormInferenceJobRequest generates a "aws/request.Request" representing the +// client's request for the StopRxNormInferenceJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopRxNormInferenceJob for more information on using the StopRxNormInferenceJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopRxNormInferenceJobRequest method. +// req, resp := client.StopRxNormInferenceJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob +func (c *ComprehendMedical) StopRxNormInferenceJobRequest(input *StopRxNormInferenceJobInput) (req *request.Request, output *StopRxNormInferenceJobOutput) { + op := &request.Operation{ + Name: opStopRxNormInferenceJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopRxNormInferenceJobInput{} + } + + output = &StopRxNormInferenceJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopRxNormInferenceJob API operation for AWS Comprehend Medical. +// +// Stops an InferRxNorm inference job in progress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Comprehend Medical's +// API operation StopRxNormInferenceJob for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ResourceNotFoundException +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +// +// * InternalServerException +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob +func (c *ComprehendMedical) StopRxNormInferenceJob(input *StopRxNormInferenceJobInput) (*StopRxNormInferenceJobOutput, error) { + req, out := c.StopRxNormInferenceJobRequest(input) + return out, req.Send() +} + +// StopRxNormInferenceJobWithContext is the same as StopRxNormInferenceJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopRxNormInferenceJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) StopRxNormInferenceJobWithContext(ctx aws.Context, input *StopRxNormInferenceJobInput, opts ...request.Option) (*StopRxNormInferenceJobOutput, error) { + req, out := c.StopRxNormInferenceJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An extracted segment of the text that is an attribute of an entity, or otherwise +// related to an entity, such as the dosage of a medication taken. It contains +// information about the attribute such as id, begin and end offset within the +// input text, and the segment of the input text. +type Attribute struct { + _ struct{} `type:"structure"` + + // The 0-based character offset in the input text that shows where the attribute + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` + + // The category of attribute. + Category *string `type:"string" enum:"EntityType"` + + // The 0-based character offset in the input text that shows where the attribute + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The numeric identifier for this attribute. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Amazon Comprehend Medical has that this attribute + // is correctly related to this entity. + RelationshipScore *float64 `type:"float"` + + // The type of relationship between the entity and attribute. Type for the relationship + // is OVERLAP, indicating that the entity occurred at the same time as the Date_Expression. + RelationshipType *string `type:"string" enum:"RelationshipType"` + + // The level of confidence that Amazon Comprehend Medical has that the segment + // of text is correctly recognized as an attribute. + Score *float64 `type:"float"` + + // The segment of input text extracted as this attribute. + Text *string `min:"1" type:"string"` + + // Contextual information for this attribute. + Traits []*Trait `type:"list"` + + // The type of attribute. + Type *string `type:"string" enum:"EntitySubType"` +} + +// String returns the string representation +func (s Attribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Attribute) GoString() string { + return s.String() +} + +// SetBeginOffset sets the BeginOffset field's value. +func (s *Attribute) SetBeginOffset(v int64) *Attribute { s.BeginOffset = &v return s } -// SetCategory sets the Category field's value. -func (s *Attribute) SetCategory(v string) *Attribute { - s.Category = &v +// SetCategory sets the Category field's value. +func (s *Attribute) SetCategory(v string) *Attribute { + s.Category = &v + return s +} + +// SetEndOffset sets the EndOffset field's value. +func (s *Attribute) SetEndOffset(v int64) *Attribute { + s.EndOffset = &v + return s +} + +// SetId sets the Id field's value. +func (s *Attribute) SetId(v int64) *Attribute { + s.Id = &v + return s +} + +// SetRelationshipScore sets the RelationshipScore field's value. +func (s *Attribute) SetRelationshipScore(v float64) *Attribute { + s.RelationshipScore = &v + return s +} + +// SetRelationshipType sets the RelationshipType field's value. +func (s *Attribute) SetRelationshipType(v string) *Attribute { + s.RelationshipType = &v + return s +} + +// SetScore sets the Score field's value. +func (s *Attribute) SetScore(v float64) *Attribute { + s.Score = &v + return s +} + +// SetText sets the Text field's value. +func (s *Attribute) SetText(v string) *Attribute { + s.Text = &v + return s +} + +// SetTraits sets the Traits field's value. +func (s *Attribute) SetTraits(v []*Trait) *Attribute { + s.Traits = v + return s +} + +// SetType sets the Type field's value. +func (s *Attribute) SetType(v string) *Attribute { + s.Type = &v + return s +} + +// Provides information for filtering a list of detection jobs. +type ComprehendMedicalAsyncJobFilter struct { + _ struct{} `type:"structure"` + + // Filters on the name of the job. + JobName *string `min:"1" type:"string"` + + // Filters the list of jobs based on job status. Returns only jobs with the + // specified status. + JobStatus *string `type:"string" enum:"JobStatus"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted after the specified time. Jobs are + // returned in descending order, newest to oldest. + SubmitTimeAfter *time.Time `type:"timestamp"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted before the specified time. Jobs are + // returned in ascending order, oldest to newest. + SubmitTimeBefore *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ComprehendMedicalAsyncJobFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComprehendMedicalAsyncJobFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ComprehendMedicalAsyncJobFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ComprehendMedicalAsyncJobFilter"} + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobName sets the JobName field's value. +func (s *ComprehendMedicalAsyncJobFilter) SetJobName(v string) *ComprehendMedicalAsyncJobFilter { + s.JobName = &v + return s +} + +// SetJobStatus sets the JobStatus field's value. +func (s *ComprehendMedicalAsyncJobFilter) SetJobStatus(v string) *ComprehendMedicalAsyncJobFilter { + s.JobStatus = &v + return s +} + +// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. +func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeAfter(v time.Time) *ComprehendMedicalAsyncJobFilter { + s.SubmitTimeAfter = &v + return s +} + +// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. +func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeBefore(v time.Time) *ComprehendMedicalAsyncJobFilter { + s.SubmitTimeBefore = &v + return s +} + +// Provides information about a detection job. +type ComprehendMedicalAsyncJobProperties struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read + // access to your input data. + DataAccessRoleArn *string `min:"20" type:"string"` + + // The time that the detection job completed. + EndTime *time.Time `type:"timestamp"` + + // The date and time that job metadata is deleted from the server. Output files + // in your S3 bucket will not be deleted. After the metadata is deleted, the + // job will no longer appear in the results of the ListEntitiesDetectionV2Job + // or the ListPHIDetectionJobs operation. + ExpirationTime *time.Time `type:"timestamp"` + + // The input data configuration that you supplied when you created the detection + // job. + InputDataConfig *InputDataConfig `type:"structure"` + + // The identifier assigned to the detection job. + JobId *string `min:"1" type:"string"` + + // The name that you assigned to the detection job. + JobName *string `min:"1" type:"string"` + + // The current status of the detection job. If the status is FAILED, the Message + // field shows the reason for the failure. + JobStatus *string `type:"string" enum:"JobStatus"` + + // The AWS Key Management Service key, if any, used to encrypt the output files. + KMSKey *string `min:"1" type:"string"` + + // The language code of the input documents. + LanguageCode *string `type:"string" enum:"LanguageCode"` + + // The path to the file that describes the results of a batch job. + ManifestFilePath *string `min:"1" type:"string"` + + // A description of the status of a job. + Message *string `type:"string"` + + // The version of the model used to analyze the documents. The version number + // looks like X.X.X. You can use this information to track the model used for + // a particular batch of documents. + ModelVersion *string `type:"string"` + + // The output data configuration that you supplied when you created the detection + // job. + OutputDataConfig *OutputDataConfig `type:"structure"` + + // The time that the detection job was submitted for processing. + SubmitTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ComprehendMedicalAsyncJobProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComprehendMedicalAsyncJobProperties) GoString() string { + return s.String() +} + +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetDataAccessRoleArn(v string) *ComprehendMedicalAsyncJobProperties { + s.DataAccessRoleArn = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetEndTime(v time.Time) *ComprehendMedicalAsyncJobProperties { + s.EndTime = &v + return s +} + +// SetExpirationTime sets the ExpirationTime field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetExpirationTime(v time.Time) *ComprehendMedicalAsyncJobProperties { + s.ExpirationTime = &v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetInputDataConfig(v *InputDataConfig) *ComprehendMedicalAsyncJobProperties { + s.InputDataConfig = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetJobId(v string) *ComprehendMedicalAsyncJobProperties { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetJobName(v string) *ComprehendMedicalAsyncJobProperties { + s.JobName = &v + return s +} + +// SetJobStatus sets the JobStatus field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetJobStatus(v string) *ComprehendMedicalAsyncJobProperties { + s.JobStatus = &v + return s +} + +// SetKMSKey sets the KMSKey field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetKMSKey(v string) *ComprehendMedicalAsyncJobProperties { + s.KMSKey = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetLanguageCode(v string) *ComprehendMedicalAsyncJobProperties { + s.LanguageCode = &v + return s +} + +// SetManifestFilePath sets the ManifestFilePath field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetManifestFilePath(v string) *ComprehendMedicalAsyncJobProperties { + s.ManifestFilePath = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetMessage(v string) *ComprehendMedicalAsyncJobProperties { + s.Message = &v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetModelVersion(v string) *ComprehendMedicalAsyncJobProperties { + s.ModelVersion = &v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetOutputDataConfig(v *OutputDataConfig) *ComprehendMedicalAsyncJobProperties { + s.OutputDataConfig = v + return s +} + +// SetSubmitTime sets the SubmitTime field's value. +func (s *ComprehendMedicalAsyncJobProperties) SetSubmitTime(v time.Time) *ComprehendMedicalAsyncJobProperties { + s.SubmitTime = &v + return s +} + +type DescribeEntitiesDetectionV2JobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend Medical generated for the job. The + // StartEntitiesDetectionV2Job operation returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEntitiesDetectionV2JobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntitiesDetectionV2JobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEntitiesDetectionV2JobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionV2JobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeEntitiesDetectionV2JobInput) SetJobId(v string) *DescribeEntitiesDetectionV2JobInput { + s.JobId = &v + return s +} + +type DescribeEntitiesDetectionV2JobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a detection job. + ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeEntitiesDetectionV2JobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntitiesDetectionV2JobOutput) GoString() string { + return s.String() +} + +// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. +func (s *DescribeEntitiesDetectionV2JobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeEntitiesDetectionV2JobOutput { + s.ComprehendMedicalAsyncJobProperties = v + return s +} + +type DescribeICD10CMInferenceJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend Medical generated for the job. The + // StartICD10CMInferenceJob operation returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeICD10CMInferenceJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeICD10CMInferenceJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeICD10CMInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeICD10CMInferenceJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeICD10CMInferenceJobInput) SetJobId(v string) *DescribeICD10CMInferenceJobInput { + s.JobId = &v + return s +} + +type DescribeICD10CMInferenceJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a detection job. + ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeICD10CMInferenceJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeICD10CMInferenceJobOutput) GoString() string { + return s.String() +} + +// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. +func (s *DescribeICD10CMInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeICD10CMInferenceJobOutput { + s.ComprehendMedicalAsyncJobProperties = v + return s +} + +type DescribePHIDetectionJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend Medical generated for the job. The + // StartPHIDetectionJob operation returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePHIDetectionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePHIDetectionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePHIDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePHIDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribePHIDetectionJobInput) SetJobId(v string) *DescribePHIDetectionJobInput { + s.JobId = &v + return s +} + +type DescribePHIDetectionJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a detection job. + ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribePHIDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePHIDetectionJobOutput) GoString() string { + return s.String() +} + +// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. +func (s *DescribePHIDetectionJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribePHIDetectionJobOutput { + s.ComprehendMedicalAsyncJobProperties = v + return s +} + +type DescribeRxNormInferenceJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend Medical generated for the job. The + // StartRxNormInferenceJob operation returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeRxNormInferenceJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRxNormInferenceJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRxNormInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRxNormInferenceJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeRxNormInferenceJobInput) SetJobId(v string) *DescribeRxNormInferenceJobInput { + s.JobId = &v + return s +} + +type DescribeRxNormInferenceJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a detection job. + ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeRxNormInferenceJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRxNormInferenceJobOutput) GoString() string { + return s.String() +} + +// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. +func (s *DescribeRxNormInferenceJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeRxNormInferenceJobOutput { + s.ComprehendMedicalAsyncJobProperties = v + return s +} + +type DetectEntitiesInput struct { + _ struct{} `type:"structure"` + + // A UTF-8 text string containing the clinical content being examined for entities. + // Each string must contain fewer than 20,000 bytes of characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectEntitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectEntitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { + s.Text = &v + return s +} + +type DetectEntitiesOutput struct { + _ struct{} `type:"structure"` + + // The collection of medical entities extracted from the input text and their + // associated information. For each entity, the response provides the entity + // text, the entity category, where the entity text begins and ends, and the + // level of confidence that Amazon Comprehend Medical has in the detection and + // analysis. Attributes and traits of the entity are also returned. + // + // Entities is a required field + Entities []*Entity `type:"list" required:"true"` + + // The version of the model used to analyze the documents. The version number + // looks like X.X.X. You can use this information to track the model used for + // a particular batch of documents. + // + // ModelVersion is a required field + ModelVersion *string `min:"1" type:"string" required:"true"` + + // If the result of the previous request to DetectEntities was truncated, include + // the PaginationToken to fetch the next page of entities. + PaginationToken *string `min:"1" type:"string"` + + // Attributes extracted from the input text that we were unable to relate to + // an entity. + UnmappedAttributes []*UnmappedAttribute `type:"list"` +} + +// String returns the string representation +func (s DetectEntitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { + s.Entities = v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *DetectEntitiesOutput) SetModelVersion(v string) *DetectEntitiesOutput { + s.ModelVersion = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *DetectEntitiesOutput) SetPaginationToken(v string) *DetectEntitiesOutput { + s.PaginationToken = &v + return s +} + +// SetUnmappedAttributes sets the UnmappedAttributes field's value. +func (s *DetectEntitiesOutput) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesOutput { + s.UnmappedAttributes = v + return s +} + +type DetectEntitiesV2Input struct { + _ struct{} `type:"structure"` + + // A UTF-8 string containing the clinical content being examined for entities. + // Each string must contain fewer than 20,000 bytes of characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectEntitiesV2Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesV2Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectEntitiesV2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesV2Input"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *DetectEntitiesV2Input) SetText(v string) *DetectEntitiesV2Input { + s.Text = &v + return s +} + +type DetectEntitiesV2Output struct { + _ struct{} `type:"structure"` + + // The collection of medical entities extracted from the input text and their + // associated information. For each entity, the response provides the entity + // text, the entity category, where the entity text begins and ends, and the + // level of confidence in the detection and analysis. Attributes and traits + // of the entity are also returned. + // + // Entities is a required field + Entities []*Entity `type:"list" required:"true"` + + // The version of the model used to analyze the documents. The version number + // looks like X.X.X. You can use this information to track the model used for + // a particular batch of documents. + // + // ModelVersion is a required field + ModelVersion *string `min:"1" type:"string" required:"true"` + + // If the result to the DetectEntitiesV2 operation was truncated, include the + // PaginationToken to fetch the next page of entities. + PaginationToken *string `min:"1" type:"string"` + + // Attributes extracted from the input text that couldn't be related to an entity. + UnmappedAttributes []*UnmappedAttribute `type:"list"` +} + +// String returns the string representation +func (s DetectEntitiesV2Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesV2Output) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DetectEntitiesV2Output) SetEntities(v []*Entity) *DetectEntitiesV2Output { + s.Entities = v + return s +} + +// SetModelVersion sets the ModelVersion field's value. +func (s *DetectEntitiesV2Output) SetModelVersion(v string) *DetectEntitiesV2Output { + s.ModelVersion = &v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *DetectEntitiesV2Output) SetPaginationToken(v string) *DetectEntitiesV2Output { + s.PaginationToken = &v return s } -// SetEndOffset sets the EndOffset field's value. -func (s *Attribute) SetEndOffset(v int64) *Attribute { - s.EndOffset = &v +// SetUnmappedAttributes sets the UnmappedAttributes field's value. +func (s *DetectEntitiesV2Output) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesV2Output { + s.UnmappedAttributes = v return s } -// SetId sets the Id field's value. -func (s *Attribute) SetId(v int64) *Attribute { - s.Id = &v - return s +type DetectPHIInput struct { + _ struct{} `type:"structure"` + + // A UTF-8 text string containing the clinical content being examined for PHI + // entities. Each string must contain fewer than 20,000 bytes of characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } -// SetRelationshipScore sets the RelationshipScore field's value. -func (s *Attribute) SetRelationshipScore(v float64) *Attribute { - s.RelationshipScore = &v - return s +// String returns the string representation +func (s DetectPHIInput) String() string { + return awsutil.Prettify(s) } -// SetRelationshipType sets the RelationshipType field's value. -func (s *Attribute) SetRelationshipType(v string) *Attribute { - s.RelationshipType = &v - return s +// GoString returns the string representation +func (s DetectPHIInput) GoString() string { + return s.String() } -// SetScore sets the Score field's value. -func (s *Attribute) SetScore(v float64) *Attribute { - s.Score = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectPHIInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectPHIInput"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetText sets the Text field's value. -func (s *Attribute) SetText(v string) *Attribute { +func (s *DetectPHIInput) SetText(v string) *DetectPHIInput { s.Text = &v return s } -// SetTraits sets the Traits field's value. -func (s *Attribute) SetTraits(v []*Trait) *Attribute { - s.Traits = v +type DetectPHIOutput struct { + _ struct{} `type:"structure"` + + // The collection of PHI entities extracted from the input text and their associated + // information. For each entity, the response provides the entity text, the + // entity category, where the entity text begins and ends, and the level of + // confidence that Amazon Comprehend Medical has in its detection. + // + // Entities is a required field + Entities []*Entity `type:"list" required:"true"` + + // The version of the model used to analyze the documents. The version number + // looks like X.X.X. You can use this information to track the model used for + // a particular batch of documents. + // + // ModelVersion is a required field + ModelVersion *string `min:"1" type:"string" required:"true"` + + // If the result of the previous request to DetectPHI was truncated, include + // the PaginationToken to fetch the next page of PHI entities. + PaginationToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DetectPHIOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectPHIOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DetectPHIOutput) SetEntities(v []*Entity) *DetectPHIOutput { + s.Entities = v return s } -// SetType sets the Type field's value. -func (s *Attribute) SetType(v string) *Attribute { - s.Type = &v +// SetModelVersion sets the ModelVersion field's value. +func (s *DetectPHIOutput) SetModelVersion(v string) *DetectPHIOutput { + s.ModelVersion = &v return s } -// Provides information for filtering a list of detection jobs. -type ComprehendMedicalAsyncJobFilter struct { +// SetPaginationToken sets the PaginationToken field's value. +func (s *DetectPHIOutput) SetPaginationToken(v string) *DetectPHIOutput { + s.PaginationToken = &v + return s +} + +// Provides information about an extracted medical entity. +type Entity struct { _ struct{} `type:"structure"` - // Filters on the name of the job. - JobName *string `min:"1" type:"string"` + // The extracted attributes that relate to this entity. + Attributes []*Attribute `type:"list"` - // Filters the list of jobs based on job status. Returns only jobs with the - // specified status. - JobStatus *string `type:"string" enum:"JobStatus"` + // The 0-based character offset in the input text that shows where the entity + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted after the specified time. Jobs are - // returned in descending order, newest to oldest. - SubmitTimeAfter *time.Time `type:"timestamp"` + // The category of the entity. + Category *string `type:"string" enum:"EntityType"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted before the specified time. Jobs are - // returned in ascending order, oldest to newest. - SubmitTimeBefore *time.Time `type:"timestamp"` + // The 0-based character offset in the input text that shows where the entity + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The numeric identifier for the entity. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Amazon Comprehend Medical has in the accuracy + // of the detection. + Score *float64 `type:"float"` + + // The segment of input text extracted as this entity. + Text *string `min:"1" type:"string"` + + // Contextual information for the entity. + Traits []*Trait `type:"list"` + + // Describes the specific type of entity with category of entities. + Type *string `type:"string" enum:"EntitySubType"` } // String returns the string representation -func (s ComprehendMedicalAsyncJobFilter) String() string { +func (s Entity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ComprehendMedicalAsyncJobFilter) GoString() string { +func (s Entity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ComprehendMedicalAsyncJobFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ComprehendMedicalAsyncJobFilter"} - if s.JobName != nil && len(*s.JobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAttributes sets the Attributes field's value. +func (s *Entity) SetAttributes(v []*Attribute) *Entity { + s.Attributes = v + return s } -// SetJobName sets the JobName field's value. -func (s *ComprehendMedicalAsyncJobFilter) SetJobName(v string) *ComprehendMedicalAsyncJobFilter { - s.JobName = &v +// SetBeginOffset sets the BeginOffset field's value. +func (s *Entity) SetBeginOffset(v int64) *Entity { + s.BeginOffset = &v return s } -// SetJobStatus sets the JobStatus field's value. -func (s *ComprehendMedicalAsyncJobFilter) SetJobStatus(v string) *ComprehendMedicalAsyncJobFilter { - s.JobStatus = &v +// SetCategory sets the Category field's value. +func (s *Entity) SetCategory(v string) *Entity { + s.Category = &v return s } -// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. -func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeAfter(v time.Time) *ComprehendMedicalAsyncJobFilter { - s.SubmitTimeAfter = &v +// SetEndOffset sets the EndOffset field's value. +func (s *Entity) SetEndOffset(v int64) *Entity { + s.EndOffset = &v return s } -// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. -func (s *ComprehendMedicalAsyncJobFilter) SetSubmitTimeBefore(v time.Time) *ComprehendMedicalAsyncJobFilter { - s.SubmitTimeBefore = &v +// SetId sets the Id field's value. +func (s *Entity) SetId(v int64) *Entity { + s.Id = &v return s } -// Provides information about a detection job. -type ComprehendMedicalAsyncJobProperties struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read - // access to your input data. - DataAccessRoleArn *string `min:"20" type:"string"` - - // The time that the detection job completed. - EndTime *time.Time `type:"timestamp"` - - // The date and time that job metadata is deleted from the server. Output files - // in your S3 bucket will not be deleted. After the metadata is deleted, the - // job will no longer appear in the results of the ListEntitiesDetectionV2Job - // or the ListPHIDetectionJobs operation. - ExpirationTime *time.Time `type:"timestamp"` +// SetScore sets the Score field's value. +func (s *Entity) SetScore(v float64) *Entity { + s.Score = &v + return s +} - // The input data configuration that you supplied when you created the detection - // job. - InputDataConfig *InputDataConfig `type:"structure"` +// SetText sets the Text field's value. +func (s *Entity) SetText(v string) *Entity { + s.Text = &v + return s +} - // The identifier assigned to the detection job. - JobId *string `min:"1" type:"string"` +// SetTraits sets the Traits field's value. +func (s *Entity) SetTraits(v []*Trait) *Entity { + s.Traits = v + return s +} - // The name that you assigned to the detection job. - JobName *string `min:"1" type:"string"` +// SetType sets the Type field's value. +func (s *Entity) SetType(v string) *Entity { + s.Type = &v + return s +} - // The current status of the detection job. If the status is FAILED, the Message - // field shows the reason for the failure. - JobStatus *string `type:"string" enum:"JobStatus"` +// The detected attributes that relate to an entity. This includes an extracted +// segment of the text that is an attribute of an entity, or otherwise related +// to an entity. InferICD10CM detects the following attributes: Direction, System, +// Organ or Site, and Acuity. +type ICD10CMAttribute struct { + _ struct{} `type:"structure"` - // The AWS Key Management Service key, if any, used to encrypt the output files. - KMSKey *string `min:"1" type:"string"` + // The 0-based character offset in the input text that shows where the attribute + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` - // The language code of the input documents. - LanguageCode *string `type:"string" enum:"LanguageCode"` + // The 0-based character offset in the input text that shows where the attribute + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` - // The path to the file that describes the results of a batch job. - ManifestFilePath *string `min:"1" type:"string"` + // The numeric identifier for this attribute. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` - // A description of the status of a job. - Message *string `type:"string"` + // The level of confidence that Amazon Comprehend Medical has that this attribute + // is correctly related to this entity. + RelationshipScore *float64 `type:"float"` - // The version of the model used to analyze the documents. The version number - // looks like X.X.X. You can use this information to track the model used for - // a particular batch of documents. - ModelVersion *string `type:"string"` + // The level of confidence that Amazon Comprehend Medical has that the segment + // of text is correctly recognized as an attribute. + Score *float64 `type:"float"` - // The output data configuration that you supplied when you created the detection - // job. - OutputDataConfig *OutputDataConfig `type:"structure"` + // The segment of input text which contains the detected attribute. + Text *string `min:"1" type:"string"` - // The time that the detection job was submitted for processing. - SubmitTime *time.Time `type:"timestamp"` + // The contextual information for the attribute. The traits recognized by InferICD10CM + // are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. + Traits []*ICD10CMTrait `type:"list"` + + // The type of attribute. InferICD10CM detects entities of the type DX_NAME. + Type *string `type:"string" enum:"ICD10CMAttributeType"` } // String returns the string representation -func (s ComprehendMedicalAsyncJobProperties) String() string { +func (s ICD10CMAttribute) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ComprehendMedicalAsyncJobProperties) GoString() string { +func (s ICD10CMAttribute) GoString() string { return s.String() } -// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetDataAccessRoleArn(v string) *ComprehendMedicalAsyncJobProperties { - s.DataAccessRoleArn = &v +// SetBeginOffset sets the BeginOffset field's value. +func (s *ICD10CMAttribute) SetBeginOffset(v int64) *ICD10CMAttribute { + s.BeginOffset = &v return s } -// SetEndTime sets the EndTime field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetEndTime(v time.Time) *ComprehendMedicalAsyncJobProperties { - s.EndTime = &v +// SetEndOffset sets the EndOffset field's value. +func (s *ICD10CMAttribute) SetEndOffset(v int64) *ICD10CMAttribute { + s.EndOffset = &v return s } -// SetExpirationTime sets the ExpirationTime field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetExpirationTime(v time.Time) *ComprehendMedicalAsyncJobProperties { - s.ExpirationTime = &v +// SetId sets the Id field's value. +func (s *ICD10CMAttribute) SetId(v int64) *ICD10CMAttribute { + s.Id = &v return s } -// SetInputDataConfig sets the InputDataConfig field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetInputDataConfig(v *InputDataConfig) *ComprehendMedicalAsyncJobProperties { - s.InputDataConfig = v +// SetRelationshipScore sets the RelationshipScore field's value. +func (s *ICD10CMAttribute) SetRelationshipScore(v float64) *ICD10CMAttribute { + s.RelationshipScore = &v return s } -// SetJobId sets the JobId field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetJobId(v string) *ComprehendMedicalAsyncJobProperties { - s.JobId = &v +// SetScore sets the Score field's value. +func (s *ICD10CMAttribute) SetScore(v float64) *ICD10CMAttribute { + s.Score = &v return s } -// SetJobName sets the JobName field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetJobName(v string) *ComprehendMedicalAsyncJobProperties { - s.JobName = &v +// SetText sets the Text field's value. +func (s *ICD10CMAttribute) SetText(v string) *ICD10CMAttribute { + s.Text = &v return s } -// SetJobStatus sets the JobStatus field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetJobStatus(v string) *ComprehendMedicalAsyncJobProperties { - s.JobStatus = &v +// SetTraits sets the Traits field's value. +func (s *ICD10CMAttribute) SetTraits(v []*ICD10CMTrait) *ICD10CMAttribute { + s.Traits = v return s } -// SetKMSKey sets the KMSKey field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetKMSKey(v string) *ComprehendMedicalAsyncJobProperties { - s.KMSKey = &v +// SetType sets the Type field's value. +func (s *ICD10CMAttribute) SetType(v string) *ICD10CMAttribute { + s.Type = &v return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetLanguageCode(v string) *ComprehendMedicalAsyncJobProperties { - s.LanguageCode = &v - return s +// The ICD-10-CM concepts that the entity could refer to, along with a score +// indicating the likelihood of the match. +type ICD10CMConcept struct { + _ struct{} `type:"structure"` + + // The ICD-10-CM code that identifies the concept found in the knowledge base + // from the Centers for Disease Control. + Code *string `min:"1" type:"string"` + + // The long description of the ICD-10-CM code in the ontology. + Description *string `min:"1" type:"string"` + + // The level of confidence that Amazon Comprehend Medical has that the entity + // is accurately linked to an ICD-10-CM concept. + Score *float64 `type:"float"` } -// SetManifestFilePath sets the ManifestFilePath field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetManifestFilePath(v string) *ComprehendMedicalAsyncJobProperties { - s.ManifestFilePath = &v - return s +// String returns the string representation +func (s ICD10CMConcept) String() string { + return awsutil.Prettify(s) } -// SetMessage sets the Message field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetMessage(v string) *ComprehendMedicalAsyncJobProperties { - s.Message = &v - return s +// GoString returns the string representation +func (s ICD10CMConcept) GoString() string { + return s.String() } -// SetModelVersion sets the ModelVersion field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetModelVersion(v string) *ComprehendMedicalAsyncJobProperties { - s.ModelVersion = &v +// SetCode sets the Code field's value. +func (s *ICD10CMConcept) SetCode(v string) *ICD10CMConcept { + s.Code = &v return s } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetOutputDataConfig(v *OutputDataConfig) *ComprehendMedicalAsyncJobProperties { - s.OutputDataConfig = v +// SetDescription sets the Description field's value. +func (s *ICD10CMConcept) SetDescription(v string) *ICD10CMConcept { + s.Description = &v return s } -// SetSubmitTime sets the SubmitTime field's value. -func (s *ComprehendMedicalAsyncJobProperties) SetSubmitTime(v time.Time) *ComprehendMedicalAsyncJobProperties { - s.SubmitTime = &v +// SetScore sets the Score field's value. +func (s *ICD10CMConcept) SetScore(v float64) *ICD10CMConcept { + s.Score = &v return s } -type DescribeEntitiesDetectionV2JobInput struct { +// The collection of medical entities extracted from the input text and their +// associated information. For each entity, the response provides the entity +// text, the entity category, where the entity text begins and ends, and the +// level of confidence that Amazon Comprehend Medical has in the detection and +// analysis. Attributes and traits of the entity are also returned. +type ICD10CMEntity struct { _ struct{} `type:"structure"` - // The identifier that Amazon Comprehend Medical generated for the job. The - // StartEntitiesDetectionV2Job operation returns this identifier in its response. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` + // The detected attributes that relate to the entity. An extracted segment of + // the text that is an attribute of an entity, or otherwise related to an entity, + // such as the nature of a medical condition. + Attributes []*ICD10CMAttribute `type:"list"` + + // The 0-based character offset in the input text that shows where the entity + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` + + // The category of the entity. InferICD10CM detects entities in the MEDICAL_CONDITION + // category. + Category *string `type:"string" enum:"ICD10CMEntityCategory"` + + // The 0-based character offset in the input text that shows where the entity + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The ICD-10-CM concepts that the entity could refer to, along with a score + // indicating the likelihood of the match. + ICD10CMConcepts []*ICD10CMConcept `type:"list"` + + // The numeric identifier for the entity. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Amazon Comprehend Medical has in the accuracy + // of the detection. + Score *float64 `type:"float"` + + // The segment of input text that is matched to the detected entity. + Text *string `min:"1" type:"string"` + + // Provides Contextual information for the entity. The traits recognized by + // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. + Traits []*ICD10CMTrait `type:"list"` + + // Describes the specific type of entity with category of entities. InferICD10CM + // detects entities of the type DX_NAME. + Type *string `type:"string" enum:"ICD10CMEntityType"` } // String returns the string representation -func (s DescribeEntitiesDetectionV2JobInput) String() string { +func (s ICD10CMEntity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEntitiesDetectionV2JobInput) GoString() string { +func (s ICD10CMEntity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEntitiesDetectionV2JobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionV2JobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetJobId sets the JobId field's value. -func (s *DescribeEntitiesDetectionV2JobInput) SetJobId(v string) *DescribeEntitiesDetectionV2JobInput { - s.JobId = &v +// SetAttributes sets the Attributes field's value. +func (s *ICD10CMEntity) SetAttributes(v []*ICD10CMAttribute) *ICD10CMEntity { + s.Attributes = v return s } -type DescribeEntitiesDetectionV2JobOutput struct { - _ struct{} `type:"structure"` - - // An object that contains the properties associated with a detection job. - ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` +// SetBeginOffset sets the BeginOffset field's value. +func (s *ICD10CMEntity) SetBeginOffset(v int64) *ICD10CMEntity { + s.BeginOffset = &v + return s } -// String returns the string representation -func (s DescribeEntitiesDetectionV2JobOutput) String() string { - return awsutil.Prettify(s) +// SetCategory sets the Category field's value. +func (s *ICD10CMEntity) SetCategory(v string) *ICD10CMEntity { + s.Category = &v + return s } -// GoString returns the string representation -func (s DescribeEntitiesDetectionV2JobOutput) GoString() string { - return s.String() +// SetEndOffset sets the EndOffset field's value. +func (s *ICD10CMEntity) SetEndOffset(v int64) *ICD10CMEntity { + s.EndOffset = &v + return s } -// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. -func (s *DescribeEntitiesDetectionV2JobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribeEntitiesDetectionV2JobOutput { - s.ComprehendMedicalAsyncJobProperties = v +// SetICD10CMConcepts sets the ICD10CMConcepts field's value. +func (s *ICD10CMEntity) SetICD10CMConcepts(v []*ICD10CMConcept) *ICD10CMEntity { + s.ICD10CMConcepts = v return s } -type DescribePHIDetectionJobInput struct { - _ struct{} `type:"structure"` - - // The identifier that Amazon Comprehend Medical generated for the job. The - // StartPHIDetectionJob operation returns this identifier in its response. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` +// SetId sets the Id field's value. +func (s *ICD10CMEntity) SetId(v int64) *ICD10CMEntity { + s.Id = &v + return s } -// String returns the string representation -func (s DescribePHIDetectionJobInput) String() string { - return awsutil.Prettify(s) +// SetScore sets the Score field's value. +func (s *ICD10CMEntity) SetScore(v float64) *ICD10CMEntity { + s.Score = &v + return s } -// GoString returns the string representation -func (s DescribePHIDetectionJobInput) GoString() string { - return s.String() +// SetText sets the Text field's value. +func (s *ICD10CMEntity) SetText(v string) *ICD10CMEntity { + s.Text = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePHIDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePHIDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTraits sets the Traits field's value. +func (s *ICD10CMEntity) SetTraits(v []*ICD10CMTrait) *ICD10CMEntity { + s.Traits = v + return s } -// SetJobId sets the JobId field's value. -func (s *DescribePHIDetectionJobInput) SetJobId(v string) *DescribePHIDetectionJobInput { - s.JobId = &v +// SetType sets the Type field's value. +func (s *ICD10CMEntity) SetType(v string) *ICD10CMEntity { + s.Type = &v return s } -type DescribePHIDetectionJobOutput struct { +// Contextual information for the entity. The traits recognized by InferICD10CM +// are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. +type ICD10CMTrait struct { _ struct{} `type:"structure"` - // An object that contains the properties associated with a detection job. - ComprehendMedicalAsyncJobProperties *ComprehendMedicalAsyncJobProperties `type:"structure"` + // Provides a name or contextual description about the trait. + Name *string `type:"string" enum:"ICD10CMTraitName"` + + // The level of confidence that Amazon Comprehend Medical has that the segment + // of text is correctly recognized as a trait. + Score *float64 `type:"float"` } // String returns the string representation -func (s DescribePHIDetectionJobOutput) String() string { +func (s ICD10CMTrait) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribePHIDetectionJobOutput) GoString() string { +func (s ICD10CMTrait) GoString() string { return s.String() } -// SetComprehendMedicalAsyncJobProperties sets the ComprehendMedicalAsyncJobProperties field's value. -func (s *DescribePHIDetectionJobOutput) SetComprehendMedicalAsyncJobProperties(v *ComprehendMedicalAsyncJobProperties) *DescribePHIDetectionJobOutput { - s.ComprehendMedicalAsyncJobProperties = v +// SetName sets the Name field's value. +func (s *ICD10CMTrait) SetName(v string) *ICD10CMTrait { + s.Name = &v return s } -type DetectEntitiesInput struct { +// SetScore sets the Score field's value. +func (s *ICD10CMTrait) SetScore(v float64) *ICD10CMTrait { + s.Score = &v + return s +} + +type InferICD10CMInput struct { _ struct{} `type:"structure"` - // A UTF-8 text string containing the clinical content being examined for entities. - // Each string must contain fewer than 20,000 bytes of characters. + // The input text used for analysis. The input for InferICD10CM is a string + // from 1 to 10000 characters. // // Text is a required field Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DetectEntitiesInput) String() string { +func (s InferICD10CMInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectEntitiesInput) GoString() string { +func (s InferICD10CMInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DetectEntitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} +func (s *InferICD10CMInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InferICD10CMInput"} if s.Text == nil { invalidParams.Add(request.NewErrParamRequired("Text")) } @@ -1778,96 +3335,82 @@ func (s *DetectEntitiesInput) Validate() error { } // SetText sets the Text field's value. -func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { +func (s *InferICD10CMInput) SetText(v string) *InferICD10CMInput { s.Text = &v return s } -type DetectEntitiesOutput struct { +type InferICD10CMOutput struct { _ struct{} `type:"structure"` - // The collection of medical entities extracted from the input text and their - // associated information. For each entity, the response provides the entity - // text, the entity category, where the entity text begins and ends, and the - // level of confidence that Amazon Comprehend Medical has in the detection and - // analysis. Attributes and traits of the entity are also returned. + // The medical conditions detected in the text linked to ICD-10-CM concepts. + // If the action is successful, the service sends back an HTTP 200 response, + // as well as the entities detected. // // Entities is a required field - Entities []*Entity `type:"list" required:"true"` + Entities []*ICD10CMEntity `type:"list" required:"true"` - // The version of the model used to analyze the documents. The version number - // looks like X.X.X. You can use this information to track the model used for - // a particular batch of documents. - // - // ModelVersion is a required field - ModelVersion *string `min:"1" type:"string" required:"true"` + // The version of the model used to analyze the documents, in the format n.n.n + // You can use this information to track the model used for a particular batch + // of documents. + ModelVersion *string `min:"1" type:"string"` - // If the result of the previous request to DetectEntities was truncated, include - // the PaginationToken to fetch the next page of entities. + // If the result of the previous request to InferICD10CM was truncated, include + // the PaginationToken to fetch the next page of medical condition entities. PaginationToken *string `min:"1" type:"string"` - - // Attributes extracted from the input text that we were unable to relate to - // an entity. - UnmappedAttributes []*UnmappedAttribute `type:"list"` } // String returns the string representation -func (s DetectEntitiesOutput) String() string { +func (s InferICD10CMOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectEntitiesOutput) GoString() string { +func (s InferICD10CMOutput) GoString() string { return s.String() } // SetEntities sets the Entities field's value. -func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { +func (s *InferICD10CMOutput) SetEntities(v []*ICD10CMEntity) *InferICD10CMOutput { s.Entities = v return s } // SetModelVersion sets the ModelVersion field's value. -func (s *DetectEntitiesOutput) SetModelVersion(v string) *DetectEntitiesOutput { +func (s *InferICD10CMOutput) SetModelVersion(v string) *InferICD10CMOutput { s.ModelVersion = &v return s } // SetPaginationToken sets the PaginationToken field's value. -func (s *DetectEntitiesOutput) SetPaginationToken(v string) *DetectEntitiesOutput { +func (s *InferICD10CMOutput) SetPaginationToken(v string) *InferICD10CMOutput { s.PaginationToken = &v return s } -// SetUnmappedAttributes sets the UnmappedAttributes field's value. -func (s *DetectEntitiesOutput) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesOutput { - s.UnmappedAttributes = v - return s -} - -type DetectEntitiesV2Input struct { +type InferRxNormInput struct { _ struct{} `type:"structure"` - // A UTF-8 string containing the clinical content being examined for entities. - // Each string must contain fewer than 20,000 bytes of characters. + // The input text used for analysis. The input for InferRxNorm is a string from + // 1 to 10000 characters. // // Text is a required field Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DetectEntitiesV2Input) String() string { +func (s InferRxNormInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectEntitiesV2Input) GoString() string { +func (s InferRxNormInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DetectEntitiesV2Input) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesV2Input"} +func (s *InferRxNormInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InferRxNormInput"} if s.Text == nil { invalidParams.Add(request.NewErrParamRequired("Text")) } @@ -1882,588 +3425,516 @@ func (s *DetectEntitiesV2Input) Validate() error { } // SetText sets the Text field's value. -func (s *DetectEntitiesV2Input) SetText(v string) *DetectEntitiesV2Input { +func (s *InferRxNormInput) SetText(v string) *InferRxNormInput { s.Text = &v return s } -type DetectEntitiesV2Output struct { +type InferRxNormOutput struct { _ struct{} `type:"structure"` - // The collection of medical entities extracted from the input text and their - // associated information. For each entity, the response provides the entity - // text, the entity category, where the entity text begins and ends, and the - // level of confidence in the detection and analysis. Attributes and traits - // of the entity are also returned. + // The medication entities detected in the text linked to RxNorm concepts. If + // the action is successful, the service sends back an HTTP 200 response, as + // well as the entities detected. // // Entities is a required field - Entities []*Entity `type:"list" required:"true"` + Entities []*RxNormEntity `type:"list" required:"true"` - // The version of the model used to analyze the documents. The version number - // looks like X.X.X. You can use this information to track the model used for - // a particular batch of documents. - // - // ModelVersion is a required field - ModelVersion *string `min:"1" type:"string" required:"true"` + // The version of the model used to analyze the documents, in the format n.n.n + // You can use this information to track the model used for a particular batch + // of documents. + ModelVersion *string `min:"1" type:"string"` - // If the result to the DetectEntitiesV2 operation was truncated, include the - // PaginationToken to fetch the next page of entities. + // If the result of the previous request to InferRxNorm was truncated, include + // the PaginationToken to fetch the next page of medication entities. PaginationToken *string `min:"1" type:"string"` - - // Attributes extracted from the input text that couldn't be related to an entity. - UnmappedAttributes []*UnmappedAttribute `type:"list"` } // String returns the string representation -func (s DetectEntitiesV2Output) String() string { +func (s InferRxNormOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectEntitiesV2Output) GoString() string { +func (s InferRxNormOutput) GoString() string { return s.String() } // SetEntities sets the Entities field's value. -func (s *DetectEntitiesV2Output) SetEntities(v []*Entity) *DetectEntitiesV2Output { +func (s *InferRxNormOutput) SetEntities(v []*RxNormEntity) *InferRxNormOutput { s.Entities = v return s } // SetModelVersion sets the ModelVersion field's value. -func (s *DetectEntitiesV2Output) SetModelVersion(v string) *DetectEntitiesV2Output { +func (s *InferRxNormOutput) SetModelVersion(v string) *InferRxNormOutput { s.ModelVersion = &v return s } // SetPaginationToken sets the PaginationToken field's value. -func (s *DetectEntitiesV2Output) SetPaginationToken(v string) *DetectEntitiesV2Output { +func (s *InferRxNormOutput) SetPaginationToken(v string) *InferRxNormOutput { s.PaginationToken = &v return s } -// SetUnmappedAttributes sets the UnmappedAttributes field's value. -func (s *DetectEntitiesV2Output) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesV2Output { - s.UnmappedAttributes = v - return s -} - -type DetectPHIInput struct { - _ struct{} `type:"structure"` - - // A UTF-8 text string containing the clinical content being examined for PHI - // entities. Each string must contain fewer than 20,000 bytes of characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DetectPHIInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DetectPHIInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetectPHIInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectPHIInput"} - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetText sets the Text field's value. -func (s *DetectPHIInput) SetText(v string) *DetectPHIInput { - s.Text = &v - return s -} - -type DetectPHIOutput struct { +// The input properties for an entities detection job. This includes the name +// of the S3 bucket and the path to the files to be analyzed. See batch-manifest +// for more information. +type InputDataConfig struct { _ struct{} `type:"structure"` - // The collection of PHI entities extracted from the input text and their associated - // information. For each entity, the response provides the entity text, the - // entity category, where the entity text begins and ends, and the level of - // confidence that Amazon Comprehend Medical has in its detection. + // The URI of the S3 bucket that contains the input data. The bucket must be + // in the same region as the API endpoint that you are calling. // - // Entities is a required field - Entities []*Entity `type:"list" required:"true"` - - // The version of the model used to analyze the documents. The version number - // looks like X.X.X. You can use this information to track the model used for - // a particular batch of documents. + // Each file in the document collection must be less than 40 KB. You can store + // a maximum of 30 GB in the bucket. // - // ModelVersion is a required field - ModelVersion *string `min:"1" type:"string" required:"true"` + // S3Bucket is a required field + S3Bucket *string `min:"3" type:"string" required:"true"` - // If the result of the previous request to DetectPHI was truncated, include - // the PaginationToken to fetch the next page of PHI entities. - PaginationToken *string `min:"1" type:"string"` + // The path to the input data files in the S3 bucket. + S3Key *string `type:"string"` } // String returns the string representation -func (s DetectPHIOutput) String() string { +func (s InputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectPHIOutput) GoString() string { +func (s InputDataConfig) GoString() string { return s.String() } -// SetEntities sets the Entities field's value. -func (s *DetectPHIOutput) SetEntities(v []*Entity) *DetectPHIOutput { - s.Entities = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputDataConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} + if s.S3Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("S3Bucket")) + } + if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetModelVersion sets the ModelVersion field's value. -func (s *DetectPHIOutput) SetModelVersion(v string) *DetectPHIOutput { - s.ModelVersion = &v +// SetS3Bucket sets the S3Bucket field's value. +func (s *InputDataConfig) SetS3Bucket(v string) *InputDataConfig { + s.S3Bucket = &v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *DetectPHIOutput) SetPaginationToken(v string) *DetectPHIOutput { - s.PaginationToken = &v +// SetS3Key sets the S3Key field's value. +func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig { + s.S3Key = &v return s } -// Provides information about an extracted medical entity. -type Entity struct { - _ struct{} `type:"structure"` - - // The extracted attributes that relate to this entity. - Attributes []*Attribute `type:"list"` - - // The 0-based character offset in the input text that shows where the entity - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` - - // The category of the entity. - Category *string `type:"string" enum:"EntityType"` - - // The 0-based character offset in the input text that shows where the entity - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` - - // The numeric identifier for the entity. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` - - // The level of confidence that Amazon Comprehend Medical has in the accuracy - // of the detection. - Score *float64 `type:"float"` - - // The segment of input text extracted as this entity. - Text *string `min:"1" type:"string"` - - // Contextual information for the entity. - Traits []*Trait `type:"list"` +// An internal server error occurred. Retry your request. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Describes the specific type of entity with category of entities. - Type *string `type:"string" enum:"EntitySubType"` + Message_ *string `locationName:"Message" min:"1" type:"string"` } // String returns the string representation -func (s Entity) String() string { +func (s InternalServerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Entity) GoString() string { +func (s InternalServerException) GoString() string { return s.String() } -// SetAttributes sets the Attributes field's value. -func (s *Entity) SetAttributes(v []*Attribute) *Entity { - s.Attributes = v - return s +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } } -// SetBeginOffset sets the BeginOffset field's value. -func (s *Entity) SetBeginOffset(v int64) *Entity { - s.BeginOffset = &v - return s +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" } -// SetCategory sets the Category field's value. -func (s *Entity) SetCategory(v string) *Entity { - s.Category = &v - return s +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetEndOffset sets the EndOffset field's value. -func (s *Entity) SetEndOffset(v int64) *Entity { - s.EndOffset = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil } -// SetId sets the Id field's value. -func (s *Entity) SetId(v int64) *Entity { - s.Id = &v - return s +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetScore sets the Score field's value. -func (s *Entity) SetScore(v float64) *Entity { - s.Score = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetText sets the Text field's value. -func (s *Entity) SetText(v string) *Entity { - s.Text = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID } -// SetTraits sets the Traits field's value. -func (s *Entity) SetTraits(v []*Trait) *Entity { - s.Traits = v - return s +// The input text was not in valid UTF-8 character encoding. Check your text +// then retry your request. +type InvalidEncodingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" min:"1" type:"string"` } -// SetType sets the Type field's value. -func (s *Entity) SetType(v string) *Entity { - s.Type = &v - return s +// String returns the string representation +func (s InvalidEncodingException) String() string { + return awsutil.Prettify(s) } -// The detected attributes that relate to an entity. This includes an extracted -// segment of the text that is an attribute of an entity, or otherwise related -// to an entity. InferICD10CM detects the following attributes: Direction, System, -// Organ or Site, and Acuity. -type ICD10CMAttribute struct { - _ struct{} `type:"structure"` +// GoString returns the string representation +func (s InvalidEncodingException) GoString() string { + return s.String() +} - // The 0-based character offset in the input text that shows where the attribute - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` +func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error { + return &InvalidEncodingException{ + RespMetadata: v, + } +} - // The 0-based character offset in the input text that shows where the attribute - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` +// Code returns the exception type name. +func (s *InvalidEncodingException) Code() string { + return "InvalidEncodingException" +} - // The numeric identifier for this attribute. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` +// Message returns the exception's message. +func (s *InvalidEncodingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The level of confidence that Amazon Comprehend Medical has that this attribute - // is correctly related to this entity. - RelationshipScore *float64 `type:"float"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidEncodingException) OrigErr() error { + return nil +} - // The level of confidence that Amazon Comprehend Medical has that the segment - // of text is correctly recognized as an attribute. - Score *float64 `type:"float"` +func (s *InvalidEncodingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The segment of input text which contains the detected attribute. - Text *string `min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidEncodingException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The contextual information for the attribute. The traits recognized by InferICD10CM - // are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. - Traits []*ICD10CMTrait `type:"list"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidEncodingException) RequestID() string { + return s.RespMetadata.RequestID +} - // The type of attribute. InferICD10CM detects entities of the type DX_NAME. - Type *string `type:"string" enum:"ICD10CMAttributeType"` +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" min:"1" type:"string"` } // String returns the string representation -func (s ICD10CMAttribute) String() string { +func (s InvalidRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ICD10CMAttribute) GoString() string { +func (s InvalidRequestException) GoString() string { return s.String() } -// SetBeginOffset sets the BeginOffset field's value. -func (s *ICD10CMAttribute) SetBeginOffset(v int64) *ICD10CMAttribute { - s.BeginOffset = &v - return s -} - -// SetEndOffset sets the EndOffset field's value. -func (s *ICD10CMAttribute) SetEndOffset(v int64) *ICD10CMAttribute { - s.EndOffset = &v - return s +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + RespMetadata: v, + } } -// SetId sets the Id field's value. -func (s *ICD10CMAttribute) SetId(v int64) *ICD10CMAttribute { - s.Id = &v - return s +// Code returns the exception type name. +func (s *InvalidRequestException) Code() string { + return "InvalidRequestException" } -// SetRelationshipScore sets the RelationshipScore field's value. -func (s *ICD10CMAttribute) SetRelationshipScore(v float64) *ICD10CMAttribute { - s.RelationshipScore = &v - return s +// Message returns the exception's message. +func (s *InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } - -// SetScore sets the Score field's value. -func (s *ICD10CMAttribute) SetScore(v float64) *ICD10CMAttribute { - s.Score = &v - return s + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidRequestException) OrigErr() error { + return nil } -// SetText sets the Text field's value. -func (s *ICD10CMAttribute) SetText(v string) *ICD10CMAttribute { - s.Text = &v - return s +func (s *InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTraits sets the Traits field's value. -func (s *ICD10CMAttribute) SetTraits(v []*ICD10CMTrait) *ICD10CMAttribute { - s.Traits = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidRequestException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetType sets the Type field's value. -func (s *ICD10CMAttribute) SetType(v string) *ICD10CMAttribute { - s.Type = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *InvalidRequestException) RequestID() string { + return s.RespMetadata.RequestID } -// The ICD-10-CM concepts that the entity could refer to, along with a score -// indicating the likelihood of the match. -type ICD10CMConcept struct { +type ListEntitiesDetectionV2JobsInput struct { _ struct{} `type:"structure"` - // The ICD-10-CM code that identifies the concept found in the knowledge base - // from the Centers for Disease Control. - Code *string `min:"1" type:"string"` + // Filters the jobs that are returned. You can filter jobs based on their names, + // status, or the date and time that they were submitted. You can only set one + // filter at a time. + Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` - // The long description of the ICD-10-CM code in the ontology. - Description *string `min:"1" type:"string"` + // The maximum number of results to return in each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` - // The level of confidence that Amazon Comprehend Medical has that the entity - // is accurately linked to an ICD-10-CM concept. - Score *float64 `type:"float"` + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s ICD10CMConcept) String() string { +func (s ListEntitiesDetectionV2JobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ICD10CMConcept) GoString() string { +func (s ListEntitiesDetectionV2JobsInput) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *ICD10CMConcept) SetCode(v string) *ICD10CMConcept { - s.Code = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEntitiesDetectionV2JobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionV2JobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *ListEntitiesDetectionV2JobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListEntitiesDetectionV2JobsInput { + s.Filter = v return s } -// SetDescription sets the Description field's value. -func (s *ICD10CMConcept) SetDescription(v string) *ICD10CMConcept { - s.Description = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListEntitiesDetectionV2JobsInput) SetMaxResults(v int64) *ListEntitiesDetectionV2JobsInput { + s.MaxResults = &v return s } -// SetScore sets the Score field's value. -func (s *ICD10CMConcept) SetScore(v float64) *ICD10CMConcept { - s.Score = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEntitiesDetectionV2JobsInput) SetNextToken(v string) *ListEntitiesDetectionV2JobsInput { + s.NextToken = &v return s } -// The collection of medical entities extracted from the input text and their -// associated information. For each entity, the response provides the entity -// text, the entity category, where the entity text begins and ends, and the -// level of confidence that Amazon Comprehend Medical has in the detection and -// analysis. Attributes and traits of the entity are also returned. -type ICD10CMEntity struct { +type ListEntitiesDetectionV2JobsOutput struct { _ struct{} `type:"structure"` - // The detected attributes that relate to the entity. An extracted segment of - // the text that is an attribute of an entity, or otherwise related to an entity, - // such as the nature of a medical condition. - Attributes []*ICD10CMAttribute `type:"list"` - - // The 0-based character offset in the input text that shows where the entity - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` - - // The category of the entity. InferICD10CM detects entities in the MEDICAL_CONDITION - // category. - Category *string `type:"string" enum:"ICD10CMEntityCategory"` - - // The 0-based character offset in the input text that shows where the entity - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` - - // The ICD-10-CM concepts that the entity could refer to, along with a score - // indicating the likelihood of the match. - ICD10CMConcepts []*ICD10CMConcept `type:"list"` - - // The numeric identifier for the entity. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` - - // The level of confidence that Amazon Comprehend Medical has in the accuracy - // of the detection. - Score *float64 `type:"float"` - - // The segment of input text that is matched to the detected entity. - Text *string `min:"1" type:"string"` - - // Provides Contextual information for the entity. The traits recognized by - // InferICD10CM are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. - Traits []*ICD10CMTrait `type:"list"` + // A list containing the properties of each job returned. + ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` - // Describes the specific type of entity with category of entities. InferICD10CM - // detects entities of the type DX_NAME. - Type *string `type:"string" enum:"ICD10CMEntityType"` + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s ICD10CMEntity) String() string { +func (s ListEntitiesDetectionV2JobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ICD10CMEntity) GoString() string { +func (s ListEntitiesDetectionV2JobsOutput) GoString() string { return s.String() } -// SetAttributes sets the Attributes field's value. -func (s *ICD10CMEntity) SetAttributes(v []*ICD10CMAttribute) *ICD10CMEntity { - s.Attributes = v +// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. +func (s *ListEntitiesDetectionV2JobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListEntitiesDetectionV2JobsOutput { + s.ComprehendMedicalAsyncJobPropertiesList = v return s } -// SetBeginOffset sets the BeginOffset field's value. -func (s *ICD10CMEntity) SetBeginOffset(v int64) *ICD10CMEntity { - s.BeginOffset = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEntitiesDetectionV2JobsOutput) SetNextToken(v string) *ListEntitiesDetectionV2JobsOutput { + s.NextToken = &v return s } -// SetCategory sets the Category field's value. -func (s *ICD10CMEntity) SetCategory(v string) *ICD10CMEntity { - s.Category = &v - return s -} +type ListICD10CMInferenceJobsInput struct { + _ struct{} `type:"structure"` -// SetEndOffset sets the EndOffset field's value. -func (s *ICD10CMEntity) SetEndOffset(v int64) *ICD10CMEntity { - s.EndOffset = &v - return s + // Filters the jobs that are returned. You can filter jobs based on their names, + // status, or the date and time that they were submitted. You can only set one + // filter at a time. + Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` + + // The maximum number of results to return in each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } -// SetICD10CMConcepts sets the ICD10CMConcepts field's value. -func (s *ICD10CMEntity) SetICD10CMConcepts(v []*ICD10CMConcept) *ICD10CMEntity { - s.ICD10CMConcepts = v - return s +// String returns the string representation +func (s ListICD10CMInferenceJobsInput) String() string { + return awsutil.Prettify(s) } -// SetId sets the Id field's value. -func (s *ICD10CMEntity) SetId(v int64) *ICD10CMEntity { - s.Id = &v - return s +// GoString returns the string representation +func (s ListICD10CMInferenceJobsInput) GoString() string { + return s.String() } -// SetScore sets the Score field's value. -func (s *ICD10CMEntity) SetScore(v float64) *ICD10CMEntity { - s.Score = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListICD10CMInferenceJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListICD10CMInferenceJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetText sets the Text field's value. -func (s *ICD10CMEntity) SetText(v string) *ICD10CMEntity { - s.Text = &v +// SetFilter sets the Filter field's value. +func (s *ListICD10CMInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListICD10CMInferenceJobsInput { + s.Filter = v return s } -// SetTraits sets the Traits field's value. -func (s *ICD10CMEntity) SetTraits(v []*ICD10CMTrait) *ICD10CMEntity { - s.Traits = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListICD10CMInferenceJobsInput) SetMaxResults(v int64) *ListICD10CMInferenceJobsInput { + s.MaxResults = &v return s } -// SetType sets the Type field's value. -func (s *ICD10CMEntity) SetType(v string) *ICD10CMEntity { - s.Type = &v +// SetNextToken sets the NextToken field's value. +func (s *ListICD10CMInferenceJobsInput) SetNextToken(v string) *ListICD10CMInferenceJobsInput { + s.NextToken = &v return s } -// Contextual information for the entity. The traits recognized by InferICD10CM -// are DIAGNOSIS, SIGN, SYMPTOM, and NEGATION. -type ICD10CMTrait struct { +type ListICD10CMInferenceJobsOutput struct { _ struct{} `type:"structure"` - // Provides a name or contextual description about the trait. - Name *string `type:"string" enum:"ICD10CMTraitName"` + // A list containing the properties of each job that is returned. + ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` - // The level of confidence that Amazon Comprehend Medical has that the segment - // of text is correctly recognized as a trait. - Score *float64 `type:"float"` + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s ICD10CMTrait) String() string { +func (s ListICD10CMInferenceJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ICD10CMTrait) GoString() string { +func (s ListICD10CMInferenceJobsOutput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *ICD10CMTrait) SetName(v string) *ICD10CMTrait { - s.Name = &v +// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. +func (s *ListICD10CMInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListICD10CMInferenceJobsOutput { + s.ComprehendMedicalAsyncJobPropertiesList = v return s } -// SetScore sets the Score field's value. -func (s *ICD10CMTrait) SetScore(v float64) *ICD10CMTrait { - s.Score = &v +// SetNextToken sets the NextToken field's value. +func (s *ListICD10CMInferenceJobsOutput) SetNextToken(v string) *ListICD10CMInferenceJobsOutput { + s.NextToken = &v return s } -type InferICD10CMInput struct { +type ListPHIDetectionJobsInput struct { _ struct{} `type:"structure"` - // The input text used for analysis. The input for InferICD10CM is a string - // from 1 to 10000 characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + // Filters the jobs that are returned. You can filter jobs based on their names, + // status, or the date and time that they were submitted. You can only set one + // filter at a time. + Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` + + // The maximum number of results to return in each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s InferICD10CMInput) String() string { +func (s ListPHIDetectionJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InferICD10CMInput) GoString() string { +func (s ListPHIDetectionJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InferICD10CMInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InferICD10CMInput"} - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) +func (s *ListPHIDetectionJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPHIDetectionJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2472,88 +3943,94 @@ func (s *InferICD10CMInput) Validate() error { return nil } -// SetText sets the Text field's value. -func (s *InferICD10CMInput) SetText(v string) *InferICD10CMInput { - s.Text = &v +// SetFilter sets the Filter field's value. +func (s *ListPHIDetectionJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListPHIDetectionJobsInput { + s.Filter = v return s } -type InferICD10CMOutput struct { - _ struct{} `type:"structure"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListPHIDetectionJobsInput) SetMaxResults(v int64) *ListPHIDetectionJobsInput { + s.MaxResults = &v + return s +} - // The medical conditions detected in the text linked to ICD-10-CM concepts. - // If the action is successful, the service sends back an HTTP 200 response, - // as well as the entities detected. - // - // Entities is a required field - Entities []*ICD10CMEntity `type:"list" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListPHIDetectionJobsInput) SetNextToken(v string) *ListPHIDetectionJobsInput { + s.NextToken = &v + return s +} - // The version of the model used to analyze the documents, in the format n.n.n - // You can use this information to track the model used for a particular batch - // of documents. - ModelVersion *string `min:"1" type:"string"` +type ListPHIDetectionJobsOutput struct { + _ struct{} `type:"structure"` - // If the result of the previous request to InferICD10CM was truncated, include - // the PaginationToken to fetch the next page of medical condition entities. - PaginationToken *string `min:"1" type:"string"` + // A list containing the properties of each job returned. + ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s InferICD10CMOutput) String() string { +func (s ListPHIDetectionJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InferICD10CMOutput) GoString() string { +func (s ListPHIDetectionJobsOutput) GoString() string { return s.String() } -// SetEntities sets the Entities field's value. -func (s *InferICD10CMOutput) SetEntities(v []*ICD10CMEntity) *InferICD10CMOutput { - s.Entities = v - return s -} - -// SetModelVersion sets the ModelVersion field's value. -func (s *InferICD10CMOutput) SetModelVersion(v string) *InferICD10CMOutput { - s.ModelVersion = &v +// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. +func (s *ListPHIDetectionJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListPHIDetectionJobsOutput { + s.ComprehendMedicalAsyncJobPropertiesList = v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *InferICD10CMOutput) SetPaginationToken(v string) *InferICD10CMOutput { - s.PaginationToken = &v +// SetNextToken sets the NextToken field's value. +func (s *ListPHIDetectionJobsOutput) SetNextToken(v string) *ListPHIDetectionJobsOutput { + s.NextToken = &v return s } -type InferRxNormInput struct { +type ListRxNormInferenceJobsInput struct { _ struct{} `type:"structure"` - // The input text used for analysis. The input for InferRxNorm is a string from - // 1 to 10000 characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + // Filters the jobs that are returned. You can filter jobs based on their names, + // status, or the date and time that they were submitted. You can only set one + // filter at a time. + Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` + + // Identifies the next page of results to return. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s InferRxNormInput) String() string { +func (s ListRxNormInferenceJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InferRxNormInput) GoString() string { +func (s ListRxNormInferenceJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InferRxNormInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InferRxNormInput"} - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) +func (s *ListRxNormInferenceJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRxNormInferenceJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2562,90 +4039,87 @@ func (s *InferRxNormInput) Validate() error { return nil } -// SetText sets the Text field's value. -func (s *InferRxNormInput) SetText(v string) *InferRxNormInput { - s.Text = &v +// SetFilter sets the Filter field's value. +func (s *ListRxNormInferenceJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListRxNormInferenceJobsInput { + s.Filter = v return s } -type InferRxNormOutput struct { - _ struct{} `type:"structure"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListRxNormInferenceJobsInput) SetMaxResults(v int64) *ListRxNormInferenceJobsInput { + s.MaxResults = &v + return s +} - // The medication entities detected in the text linked to RxNorm concepts. If - // the action is successful, the service sends back an HTTP 200 response, as - // well as the entities detected. - // - // Entities is a required field - Entities []*RxNormEntity `type:"list" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListRxNormInferenceJobsInput) SetNextToken(v string) *ListRxNormInferenceJobsInput { + s.NextToken = &v + return s +} - // The version of the model used to analyze the documents, in the format n.n.n - // You can use this information to track the model used for a particular batch - // of documents. - ModelVersion *string `min:"1" type:"string"` +type ListRxNormInferenceJobsOutput struct { + _ struct{} `type:"structure"` - // If the result of the previous request to InferRxNorm was truncated, include - // the PaginationToken to fetch the next page of medication entities. - PaginationToken *string `min:"1" type:"string"` + // The maximum number of results to return in each page. The default is 100. + ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s InferRxNormOutput) String() string { +func (s ListRxNormInferenceJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InferRxNormOutput) GoString() string { +func (s ListRxNormInferenceJobsOutput) GoString() string { return s.String() } -// SetEntities sets the Entities field's value. -func (s *InferRxNormOutput) SetEntities(v []*RxNormEntity) *InferRxNormOutput { - s.Entities = v - return s -} - -// SetModelVersion sets the ModelVersion field's value. -func (s *InferRxNormOutput) SetModelVersion(v string) *InferRxNormOutput { - s.ModelVersion = &v +// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. +func (s *ListRxNormInferenceJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListRxNormInferenceJobsOutput { + s.ComprehendMedicalAsyncJobPropertiesList = v return s } -// SetPaginationToken sets the PaginationToken field's value. -func (s *InferRxNormOutput) SetPaginationToken(v string) *InferRxNormOutput { - s.PaginationToken = &v +// SetNextToken sets the NextToken field's value. +func (s *ListRxNormInferenceJobsOutput) SetNextToken(v string) *ListRxNormInferenceJobsOutput { + s.NextToken = &v return s } -// The input properties for an entities detection job. -type InputDataConfig struct { +// The output properties for a detection job. +type OutputDataConfig struct { _ struct{} `type:"structure"` - // The URI of the S3 bucket that contains the input data. The bucket must be - // in the same region as the API endpoint that you are calling. - // - // Each file in the document collection must be less than 40 KB. You can store - // a maximum of 30 GB in the bucket. + // When you use the OutputDataConfig object with asynchronous operations, you + // specify the Amazon S3 location where you want to write the output data. The + // URI must be in the same region as the API endpoint that you are calling. + // The location is used as the prefix for the actual location of the output. // // S3Bucket is a required field S3Bucket *string `min:"3" type:"string" required:"true"` - // The path to the input data files in the S3 bucket. + // The path to the output data files in the S3 bucket. Amazon Comprehend Medical + // creates an output directory using the job ID so that the output from one + // job does not overwrite the output of another. S3Key *string `type:"string"` } // String returns the string representation -func (s InputDataConfig) String() string { +func (s OutputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InputDataConfig) GoString() string { +func (s OutputDataConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InputDataConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InputDataConfig"} +func (s *OutputDataConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} if s.S3Bucket == nil { invalidParams.Add(request.NewErrParamRequired("S3Bucket")) } @@ -2660,76 +4134,20 @@ func (s *InputDataConfig) Validate() error { } // SetS3Bucket sets the S3Bucket field's value. -func (s *InputDataConfig) SetS3Bucket(v string) *InputDataConfig { +func (s *OutputDataConfig) SetS3Bucket(v string) *OutputDataConfig { s.S3Bucket = &v return s } -// SetS3Key sets the S3Key field's value. -func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig { - s.S3Key = &v - return s -} - -// An internal server error occurred. Retry your request. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" min:"1" type:"string"` -} - -// String returns the string representation -func (s InternalServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InternalServerException) GoString() string { - return s.String() -} - -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetS3Key sets the S3Key field's value. +func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig { + s.S3Key = &v + return s } -// The input text was not in valid UTF-8 character encoding. Check your text -// then retry your request. -type InvalidEncodingException struct { +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -2737,28 +4155,28 @@ type InvalidEncodingException struct { } // String returns the string representation -func (s InvalidEncodingException) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvalidEncodingException) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error { - return &InvalidEncodingException{ +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *InvalidEncodingException) Code() string { - return "InvalidEncodingException" +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } // Message returns the exception's message. -func (s *InvalidEncodingException) Message() string { +func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -2766,332 +4184,319 @@ func (s *InvalidEncodingException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidEncodingException) OrigErr() error { +func (s *ResourceNotFoundException) OrigErr() error { return nil } -func (s *InvalidEncodingException) Error() string { +func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *InvalidEncodingException) StatusCode() int { +func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InvalidEncodingException) RequestID() string { +func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// The request that you made is invalid. Check your request to determine why -// it's invalid and then retry the request. -type InvalidRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// The extracted attributes that relate to this entity. The attributes recognized +// by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE. +type RxNormAttribute struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // The 0-based character offset in the input text that shows where the attribute + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` + + // The 0-based character offset in the input text that shows where the attribute + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The numeric identifier for this attribute. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Amazon Comprehend Medical has that the attribute + // is accurately linked to an entity. + RelationshipScore *float64 `type:"float"` + + // The level of confidence that Comprehend Medical has that the segment of text + // is correctly recognized as an attribute. + Score *float64 `type:"float"` + + // The segment of input text which corresponds to the detected attribute. + Text *string `min:"1" type:"string"` + + // Contextual information for the attribute. InferRxNorm recognizes the trait + // NEGATION for attributes, i.e. that the patient is not taking a specific dose + // or form of a medication. + Traits []*RxNormTrait `type:"list"` + + // The type of attribute. The types of attributes recognized by InferRxNorm + // are BRAND_NAME and GENERIC_NAME. + Type *string `type:"string" enum:"RxNormAttributeType"` } // String returns the string representation -func (s InvalidRequestException) String() string { +func (s RxNormAttribute) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvalidRequestException) GoString() string { +func (s RxNormAttribute) GoString() string { return s.String() } -func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { - return &InvalidRequestException{ - RespMetadata: v, - } +// SetBeginOffset sets the BeginOffset field's value. +func (s *RxNormAttribute) SetBeginOffset(v int64) *RxNormAttribute { + s.BeginOffset = &v + return s } -// Code returns the exception type name. -func (s *InvalidRequestException) Code() string { - return "InvalidRequestException" +// SetEndOffset sets the EndOffset field's value. +func (s *RxNormAttribute) SetEndOffset(v int64) *RxNormAttribute { + s.EndOffset = &v + return s } -// Message returns the exception's message. -func (s *InvalidRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetId sets the Id field's value. +func (s *RxNormAttribute) SetId(v int64) *RxNormAttribute { + s.Id = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidRequestException) OrigErr() error { - return nil +// SetRelationshipScore sets the RelationshipScore field's value. +func (s *RxNormAttribute) SetRelationshipScore(v float64) *RxNormAttribute { + s.RelationshipScore = &v + return s } -func (s *InvalidRequestException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetScore sets the Score field's value. +func (s *RxNormAttribute) SetScore(v float64) *RxNormAttribute { + s.Score = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidRequestException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetText sets the Text field's value. +func (s *RxNormAttribute) SetText(v string) *RxNormAttribute { + s.Text = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InvalidRequestException) RequestID() string { - return s.RespMetadata.RequestID +// SetTraits sets the Traits field's value. +func (s *RxNormAttribute) SetTraits(v []*RxNormTrait) *RxNormAttribute { + s.Traits = v + return s } -type ListEntitiesDetectionV2JobsInput struct { +// SetType sets the Type field's value. +func (s *RxNormAttribute) SetType(v string) *RxNormAttribute { + s.Type = &v + return s +} + +// The RxNorm concept that the entity could refer to, along with a score indicating +// the likelihood of the match. +type RxNormConcept struct { _ struct{} `type:"structure"` - // Filters the jobs that are returned. You can filter jobs based on their names, - // status, or the date and time that they were submitted. You can only set one - // filter at a time. - Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` + // RxNorm concept ID, also known as the RxCUI. + Code *string `min:"1" type:"string"` - // The maximum number of results to return in each page. The default is 100. - MaxResults *int64 `min:"1" type:"integer"` + // The description of the RxNorm concept. + Description *string `min:"1" type:"string"` - // Identifies the next page of results to return. - NextToken *string `min:"1" type:"string"` + // The level of confidence that Amazon Comprehend Medical has that the entity + // is accurately linked to the reported RxNorm concept. + Score *float64 `type:"float"` } // String returns the string representation -func (s ListEntitiesDetectionV2JobsInput) String() string { +func (s RxNormConcept) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListEntitiesDetectionV2JobsInput) GoString() string { +func (s RxNormConcept) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEntitiesDetectionV2JobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEntitiesDetectionV2JobsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFilter sets the Filter field's value. -func (s *ListEntitiesDetectionV2JobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListEntitiesDetectionV2JobsInput { - s.Filter = v +// SetCode sets the Code field's value. +func (s *RxNormConcept) SetCode(v string) *RxNormConcept { + s.Code = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListEntitiesDetectionV2JobsInput) SetMaxResults(v int64) *ListEntitiesDetectionV2JobsInput { - s.MaxResults = &v +// SetDescription sets the Description field's value. +func (s *RxNormConcept) SetDescription(v string) *RxNormConcept { + s.Description = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEntitiesDetectionV2JobsInput) SetNextToken(v string) *ListEntitiesDetectionV2JobsInput { - s.NextToken = &v +// SetScore sets the Score field's value. +func (s *RxNormConcept) SetScore(v float64) *RxNormConcept { + s.Score = &v return s } -type ListEntitiesDetectionV2JobsOutput struct { +// The collection of medical entities extracted from the input text and their +// associated information. For each entity, the response provides the entity +// text, the entity category, where the entity text begins and ends, and the +// level of confidence that Amazon Comprehend Medical has in the detection and +// analysis. Attributes and traits of the entity are also returned. +type RxNormEntity struct { _ struct{} `type:"structure"` - // A list containing the properties of each job returned. - ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` + // The extracted attributes that relate to the entity. The attributes recognized + // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, + // and STRENGTH. + Attributes []*RxNormAttribute `type:"list"` - // Identifies the next page of results to return. - NextToken *string `min:"1" type:"string"` -} + // The 0-based character offset in the input text that shows where the entity + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` -// String returns the string representation -func (s ListEntitiesDetectionV2JobsOutput) String() string { - return awsutil.Prettify(s) -} + // The category of the entity. The recognized categories are GENERIC or BRAND_NAME. + Category *string `type:"string" enum:"RxNormEntityCategory"` -// GoString returns the string representation -func (s ListEntitiesDetectionV2JobsOutput) GoString() string { - return s.String() -} + // The 0-based character offset in the input text that shows where the entity + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` -// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. -func (s *ListEntitiesDetectionV2JobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListEntitiesDetectionV2JobsOutput { - s.ComprehendMedicalAsyncJobPropertiesList = v - return s -} + // The numeric identifier for the entity. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` -// SetNextToken sets the NextToken field's value. -func (s *ListEntitiesDetectionV2JobsOutput) SetNextToken(v string) *ListEntitiesDetectionV2JobsOutput { - s.NextToken = &v - return s -} + // The RxNorm concepts that the entity could refer to, along with a score indicating + // the likelihood of the match. + RxNormConcepts []*RxNormConcept `type:"list"` -type ListPHIDetectionJobsInput struct { - _ struct{} `type:"structure"` + // The level of confidence that Amazon Comprehend Medical has in the accuracy + // of the detected entity. + Score *float64 `type:"float"` - // Filters the jobs that are returned. You can filter jobs based on their names, - // status, or the date and time that they were submitted. You can only set one - // filter at a time. - Filter *ComprehendMedicalAsyncJobFilter `type:"structure"` + // The segment of input text extracted from which the entity was detected. + Text *string `min:"1" type:"string"` - // The maximum number of results to return in each page. The default is 100. - MaxResults *int64 `min:"1" type:"integer"` + // Contextual information for the entity. + Traits []*RxNormTrait `type:"list"` - // Identifies the next page of results to return. - NextToken *string `min:"1" type:"string"` + // Describes the specific type of entity. For InferRxNorm, the recognized entity + // type is MEDICATION. + Type *string `type:"string" enum:"RxNormEntityType"` } // String returns the string representation -func (s ListPHIDetectionJobsInput) String() string { +func (s RxNormEntity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPHIDetectionJobsInput) GoString() string { +func (s RxNormEntity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPHIDetectionJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPHIDetectionJobsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.Filter != nil { - if err := s.Filter.Validate(); err != nil { - invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAttributes sets the Attributes field's value. +func (s *RxNormEntity) SetAttributes(v []*RxNormAttribute) *RxNormEntity { + s.Attributes = v + return s } -// SetFilter sets the Filter field's value. -func (s *ListPHIDetectionJobsInput) SetFilter(v *ComprehendMedicalAsyncJobFilter) *ListPHIDetectionJobsInput { - s.Filter = v +// SetBeginOffset sets the BeginOffset field's value. +func (s *RxNormEntity) SetBeginOffset(v int64) *RxNormEntity { + s.BeginOffset = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListPHIDetectionJobsInput) SetMaxResults(v int64) *ListPHIDetectionJobsInput { - s.MaxResults = &v +// SetCategory sets the Category field's value. +func (s *RxNormEntity) SetCategory(v string) *RxNormEntity { + s.Category = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPHIDetectionJobsInput) SetNextToken(v string) *ListPHIDetectionJobsInput { - s.NextToken = &v +// SetEndOffset sets the EndOffset field's value. +func (s *RxNormEntity) SetEndOffset(v int64) *RxNormEntity { + s.EndOffset = &v return s } -type ListPHIDetectionJobsOutput struct { - _ struct{} `type:"structure"` - - // A list containing the properties of each job returned. - ComprehendMedicalAsyncJobPropertiesList []*ComprehendMedicalAsyncJobProperties `type:"list"` +// SetId sets the Id field's value. +func (s *RxNormEntity) SetId(v int64) *RxNormEntity { + s.Id = &v + return s +} - // Identifies the next page of results to return. - NextToken *string `min:"1" type:"string"` +// SetRxNormConcepts sets the RxNormConcepts field's value. +func (s *RxNormEntity) SetRxNormConcepts(v []*RxNormConcept) *RxNormEntity { + s.RxNormConcepts = v + return s } -// String returns the string representation -func (s ListPHIDetectionJobsOutput) String() string { - return awsutil.Prettify(s) +// SetScore sets the Score field's value. +func (s *RxNormEntity) SetScore(v float64) *RxNormEntity { + s.Score = &v + return s } -// GoString returns the string representation -func (s ListPHIDetectionJobsOutput) GoString() string { - return s.String() +// SetText sets the Text field's value. +func (s *RxNormEntity) SetText(v string) *RxNormEntity { + s.Text = &v + return s } -// SetComprehendMedicalAsyncJobPropertiesList sets the ComprehendMedicalAsyncJobPropertiesList field's value. -func (s *ListPHIDetectionJobsOutput) SetComprehendMedicalAsyncJobPropertiesList(v []*ComprehendMedicalAsyncJobProperties) *ListPHIDetectionJobsOutput { - s.ComprehendMedicalAsyncJobPropertiesList = v +// SetTraits sets the Traits field's value. +func (s *RxNormEntity) SetTraits(v []*RxNormTrait) *RxNormEntity { + s.Traits = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPHIDetectionJobsOutput) SetNextToken(v string) *ListPHIDetectionJobsOutput { - s.NextToken = &v +// SetType sets the Type field's value. +func (s *RxNormEntity) SetType(v string) *RxNormEntity { + s.Type = &v return s } -// The output properties for a detection job. -type OutputDataConfig struct { +// The contextual information for the entity. InferRxNorm recognizes the trait +// NEGATION, which is any indication that the patient is not taking a medication. +type RxNormTrait struct { _ struct{} `type:"structure"` - // When you use the OutputDataConfig object with asynchronous operations, you - // specify the Amazon S3 location where you want to write the output data. The - // URI must be in the same region as the API endpoint that you are calling. - // The location is used as the prefix for the actual location of the output. - // - // S3Bucket is a required field - S3Bucket *string `min:"3" type:"string" required:"true"` + // Provides a name or contextual description about the trait. + Name *string `type:"string" enum:"RxNormTraitName"` - // The path to the output data files in the S3 bucket. Amazon Comprehend Medical - // creates an output directory using the job ID so that the output from one - // job does not overwrite the output of another. - S3Key *string `type:"string"` + // The level of confidence that Amazon Comprehend Medical has in the accuracy + // of the detected trait. + Score *float64 `type:"float"` } // String returns the string representation -func (s OutputDataConfig) String() string { +func (s RxNormTrait) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OutputDataConfig) GoString() string { +func (s RxNormTrait) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *OutputDataConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} - if s.S3Bucket == nil { - invalidParams.Add(request.NewErrParamRequired("S3Bucket")) - } - if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { - invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetS3Bucket sets the S3Bucket field's value. -func (s *OutputDataConfig) SetS3Bucket(v string) *OutputDataConfig { - s.S3Bucket = &v +// SetName sets the Name field's value. +func (s *RxNormTrait) SetName(v string) *RxNormTrait { + s.Name = &v return s } -// SetS3Key sets the S3Key field's value. -func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig { - s.S3Key = &v +// SetScore sets the Score field's value. +func (s *RxNormTrait) SetScore(v float64) *RxNormTrait { + s.Score = &v return s } -// The resource identified by the specified Amazon Resource Name (ARN) was not -// found. Check the ARN and try your request again. -type ResourceNotFoundException struct { +// The Amazon Comprehend Medical service is temporarily unavailable. Please +// wait and then retry your request. +type ServiceUnavailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -3099,28 +4504,28 @@ type ResourceNotFoundException struct { } // String returns the string representation -func (s ResourceNotFoundException) String() string { +func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceNotFoundException) GoString() string { +func (s ServiceUnavailableException) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" } // Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { +func (s *ServiceUnavailableException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -3128,374 +4533,341 @@ func (s *ResourceNotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { +func (s *ServiceUnavailableException) OrigErr() error { return nil } -func (s *ResourceNotFoundException) Error() string { +func (s *ServiceUnavailableException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { +func (s *ServiceUnavailableException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { +func (s *ServiceUnavailableException) RequestID() string { return s.RespMetadata.RequestID } -// The extracted attributes that relate to this entity. The attributes recognized -// by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE. -type RxNormAttribute struct { +type StartEntitiesDetectionV2JobInput struct { _ struct{} `type:"structure"` - // The 0-based character offset in the input text that shows where the attribute - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` - - // The 0-based character offset in the input text that shows where the attribute - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` + // A unique identifier for the request. If you don't set the client request + // token, Amazon Comprehend Medical generates one. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The numeric identifier for this attribute. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` + // 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 (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). + // + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` - // The level of confidence that Amazon Comprehend Medical has that the attribute - // is accurately linked to an entity. - RelationshipScore *float64 `type:"float"` + // Specifies the format and location of the input data for the job. + // + // InputDataConfig is a required field + InputDataConfig *InputDataConfig `type:"structure" required:"true"` - // The level of confidence that Comprehend Medical has that the segment of text - // is correctly recognized as an attribute. - Score *float64 `type:"float"` + // The identifier of the job. + JobName *string `min:"1" type:"string"` - // The segment of input text which corresponds to the detected attribute. - Text *string `min:"1" type:"string"` + // 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. + KMSKey *string `min:"1" type:"string"` - // Contextual information for the attribute. InferRxNorm recognizes the trait - // NEGATION for attributes, i.e. that the patient is not taking a specific dose - // or form of a medication. - Traits []*RxNormTrait `type:"list"` + // The language of the input documents. All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - // The type of attribute. The types of attributes recognized by InferRxNorm - // are BRAND_NAME and GENERIC_NAME. - Type *string `type:"string" enum:"RxNormAttributeType"` + // Specifies where to send the output files. + // + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` } // String returns the string representation -func (s RxNormAttribute) String() string { +func (s StartEntitiesDetectionV2JobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RxNormAttribute) GoString() string { +func (s StartEntitiesDetectionV2JobInput) GoString() string { return s.String() } -// SetBeginOffset sets the BeginOffset field's value. -func (s *RxNormAttribute) SetBeginOffset(v int64) *RxNormAttribute { - s.BeginOffset = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartEntitiesDetectionV2JobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionV2JobInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) + } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) + } + if s.KMSKey != nil && len(*s.KMSKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) + } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.InputDataConfig != nil { + if err := s.InputDataConfig.Validate(); err != nil { + invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetEndOffset sets the EndOffset field's value. -func (s *RxNormAttribute) SetEndOffset(v int64) *RxNormAttribute { - s.EndOffset = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartEntitiesDetectionV2JobInput) SetClientRequestToken(v string) *StartEntitiesDetectionV2JobInput { + s.ClientRequestToken = &v return s } -// SetId sets the Id field's value. -func (s *RxNormAttribute) SetId(v int64) *RxNormAttribute { - s.Id = &v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *StartEntitiesDetectionV2JobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionV2JobInput { + s.DataAccessRoleArn = &v return s } -// SetRelationshipScore sets the RelationshipScore field's value. -func (s *RxNormAttribute) SetRelationshipScore(v float64) *RxNormAttribute { - s.RelationshipScore = &v +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *StartEntitiesDetectionV2JobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionV2JobInput { + s.InputDataConfig = v return s } -// SetScore sets the Score field's value. -func (s *RxNormAttribute) SetScore(v float64) *RxNormAttribute { - s.Score = &v +// SetJobName sets the JobName field's value. +func (s *StartEntitiesDetectionV2JobInput) SetJobName(v string) *StartEntitiesDetectionV2JobInput { + s.JobName = &v return s } -// SetText sets the Text field's value. -func (s *RxNormAttribute) SetText(v string) *RxNormAttribute { - s.Text = &v +// SetKMSKey sets the KMSKey field's value. +func (s *StartEntitiesDetectionV2JobInput) SetKMSKey(v string) *StartEntitiesDetectionV2JobInput { + s.KMSKey = &v return s } -// SetTraits sets the Traits field's value. -func (s *RxNormAttribute) SetTraits(v []*RxNormTrait) *RxNormAttribute { - s.Traits = v +// SetLanguageCode sets the LanguageCode field's value. +func (s *StartEntitiesDetectionV2JobInput) SetLanguageCode(v string) *StartEntitiesDetectionV2JobInput { + s.LanguageCode = &v return s } -// SetType sets the Type field's value. -func (s *RxNormAttribute) SetType(v string) *RxNormAttribute { - s.Type = &v +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *StartEntitiesDetectionV2JobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionV2JobInput { + s.OutputDataConfig = v return s } -// The RxNorm concept that the entity could refer to, along with a score indicating -// the likelihood of the match. -type RxNormConcept struct { +type StartEntitiesDetectionV2JobOutput struct { _ struct{} `type:"structure"` - // RxNorm concept ID, also known as the RxCUI. - Code *string `min:"1" type:"string"` - - // The description of the RxNorm concept. - Description *string `min:"1" type:"string"` - - // The level of confidence that Amazon Comprehend Medical has that the entity - // is accurately linked to the reported RxNorm concept. - Score *float64 `type:"float"` + // The identifier generated for the job. To get the status of a job, use this + // identifier with the DescribeEntitiesDetectionV2Job operation. + JobId *string `min:"1" type:"string"` } // String returns the string representation -func (s RxNormConcept) String() string { +func (s StartEntitiesDetectionV2JobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RxNormConcept) GoString() string { +func (s StartEntitiesDetectionV2JobOutput) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *RxNormConcept) SetCode(v string) *RxNormConcept { - s.Code = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *RxNormConcept) SetDescription(v string) *RxNormConcept { - s.Description = &v - return s -} - -// SetScore sets the Score field's value. -func (s *RxNormConcept) SetScore(v float64) *RxNormConcept { - s.Score = &v +// SetJobId sets the JobId field's value. +func (s *StartEntitiesDetectionV2JobOutput) SetJobId(v string) *StartEntitiesDetectionV2JobOutput { + s.JobId = &v return s } -// The collection of medical entities extracted from the input text and their -// associated information. For each entity, the response provides the entity -// text, the entity category, where the entity text begins and ends, and the -// level of confidence that Amazon Comprehend Medical has in the detection and -// analysis. Attributes and traits of the entity are also returned. -type RxNormEntity struct { +type StartICD10CMInferenceJobInput struct { _ struct{} `type:"structure"` - // The extracted attributes that relate to the entity. The attributes recognized - // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, - // and STRENGTH. - Attributes []*RxNormAttribute `type:"list"` - - // The 0-based character offset in the input text that shows where the entity - // begins. The offset returns the UTF-8 code point in the string. - BeginOffset *int64 `type:"integer"` - - // The category of the entity. The recognized categories are GENERIC or BRAND_NAME. - Category *string `type:"string" enum:"RxNormEntityCategory"` - - // The 0-based character offset in the input text that shows where the entity - // ends. The offset returns the UTF-8 code point in the string. - EndOffset *int64 `type:"integer"` + // A unique identifier for the request. If you don't set the client request + // token, Amazon Comprehend Medical generates one. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The numeric identifier for the entity. This is a monotonically increasing - // id unique within this response rather than a global unique identifier. - Id *int64 `type:"integer"` + // 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 (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med). + // + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` - // The RxNorm concepts that the entity could refer to, along with a score indicating - // the likelihood of the match. - RxNormConcepts []*RxNormConcept `type:"list"` + // Specifies the format and location of the input data for the job. + // + // InputDataConfig is a required field + InputDataConfig *InputDataConfig `type:"structure" required:"true"` - // The level of confidence that Amazon Comprehend Medical has in the accuracy - // of the detected entity. - Score *float64 `type:"float"` + // The identifier of the job. + JobName *string `min:"1" type:"string"` - // The segment of input text extracted from which the entity was detected. - Text *string `min:"1" type:"string"` + // 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. + KMSKey *string `min:"1" type:"string"` - // Contextual information for the entity. - Traits []*RxNormTrait `type:"list"` + // The language of the input documents. All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - // Describes the specific type of entity. For InferRxNorm, the recognized entity - // type is MEDICATION. - Type *string `type:"string" enum:"RxNormEntityType"` + // Specifies where to send the output files. + // + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` } // String returns the string representation -func (s RxNormEntity) String() string { +func (s StartICD10CMInferenceJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RxNormEntity) GoString() string { +func (s StartICD10CMInferenceJobInput) GoString() string { return s.String() } -// SetAttributes sets the Attributes field's value. -func (s *RxNormEntity) SetAttributes(v []*RxNormAttribute) *RxNormEntity { - s.Attributes = v - return s -} - -// SetBeginOffset sets the BeginOffset field's value. -func (s *RxNormEntity) SetBeginOffset(v int64) *RxNormEntity { - s.BeginOffset = &v - return s -} - -// SetCategory sets the Category field's value. -func (s *RxNormEntity) SetCategory(v string) *RxNormEntity { - s.Category = &v - return s -} - -// SetEndOffset sets the EndOffset field's value. -func (s *RxNormEntity) SetEndOffset(v int64) *RxNormEntity { - s.EndOffset = &v - return s -} - -// SetId sets the Id field's value. -func (s *RxNormEntity) SetId(v int64) *RxNormEntity { - s.Id = &v - return s -} - -// SetRxNormConcepts sets the RxNormConcepts field's value. -func (s *RxNormEntity) SetRxNormConcepts(v []*RxNormConcept) *RxNormEntity { - s.RxNormConcepts = v - return s -} - -// SetScore sets the Score field's value. -func (s *RxNormEntity) SetScore(v float64) *RxNormEntity { - s.Score = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartICD10CMInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartICD10CMInferenceJobInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) + } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) + } + if s.KMSKey != nil && len(*s.KMSKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KMSKey", 1)) + } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.InputDataConfig != nil { + if err := s.InputDataConfig.Validate(); err != nil { + invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } -// SetText sets the Text field's value. -func (s *RxNormEntity) SetText(v string) *RxNormEntity { - s.Text = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTraits sets the Traits field's value. -func (s *RxNormEntity) SetTraits(v []*RxNormTrait) *RxNormEntity { - s.Traits = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartICD10CMInferenceJobInput) SetClientRequestToken(v string) *StartICD10CMInferenceJobInput { + s.ClientRequestToken = &v return s } -// SetType sets the Type field's value. -func (s *RxNormEntity) SetType(v string) *RxNormEntity { - s.Type = &v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *StartICD10CMInferenceJobInput) SetDataAccessRoleArn(v string) *StartICD10CMInferenceJobInput { + s.DataAccessRoleArn = &v return s } -// The contextual information for the entity. InferRxNorm recognizes the trait -// NEGATION, which is any indication that the patient is not taking a medication. -type RxNormTrait struct { - _ struct{} `type:"structure"` - - // Provides a name or contextual description about the trait. - Name *string `type:"string" enum:"RxNormTraitName"` - - // The level of confidence that Amazon Comprehend Medical has in the accuracy - // of the detected trait. - Score *float64 `type:"float"` +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *StartICD10CMInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartICD10CMInferenceJobInput { + s.InputDataConfig = v + return s } -// String returns the string representation -func (s RxNormTrait) String() string { - return awsutil.Prettify(s) +// SetJobName sets the JobName field's value. +func (s *StartICD10CMInferenceJobInput) SetJobName(v string) *StartICD10CMInferenceJobInput { + s.JobName = &v + return s } -// GoString returns the string representation -func (s RxNormTrait) GoString() string { - return s.String() +// SetKMSKey sets the KMSKey field's value. +func (s *StartICD10CMInferenceJobInput) SetKMSKey(v string) *StartICD10CMInferenceJobInput { + s.KMSKey = &v + return s } -// SetName sets the Name field's value. -func (s *RxNormTrait) SetName(v string) *RxNormTrait { - s.Name = &v +// SetLanguageCode sets the LanguageCode field's value. +func (s *StartICD10CMInferenceJobInput) SetLanguageCode(v string) *StartICD10CMInferenceJobInput { + s.LanguageCode = &v return s } -// SetScore sets the Score field's value. -func (s *RxNormTrait) SetScore(v float64) *RxNormTrait { - s.Score = &v +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *StartICD10CMInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartICD10CMInferenceJobInput { + s.OutputDataConfig = v return s } -// The Amazon Comprehend Medical service is temporarily unavailable. Please -// wait and then retry your request. -type ServiceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type StartICD10CMInferenceJobOutput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // The identifier generated for the job. To get the status of a job, use this + // identifier with the StartICD10CMInferenceJob operation. + JobId *string `min:"1" type:"string"` } // String returns the string representation -func (s ServiceUnavailableException) String() string { +func (s StartICD10CMInferenceJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ServiceUnavailableException) GoString() string { +func (s StartICD10CMInferenceJobOutput) GoString() string { return s.String() } -func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { - return &ServiceUnavailableException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceUnavailableException) Code() string { - return "ServiceUnavailableException" -} - -// Message returns the exception's message. -func (s *ServiceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceUnavailableException) OrigErr() error { - return nil -} - -func (s *ServiceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// SetJobId sets the JobId field's value. +func (s *StartICD10CMInferenceJobOutput) SetJobId(v string) *StartICD10CMInferenceJobOutput { + s.JobId = &v + return s } -type StartEntitiesDetectionV2JobInput struct { +type StartPHIDetectionJobInput struct { _ struct{} `type:"structure"` // A unique identifier for the request. If you don't set the client request @@ -3534,18 +4906,18 @@ type StartEntitiesDetectionV2JobInput struct { } // String returns the string representation -func (s StartEntitiesDetectionV2JobInput) String() string { +func (s StartPHIDetectionJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartEntitiesDetectionV2JobInput) GoString() string { +func (s StartPHIDetectionJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StartEntitiesDetectionV2JobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartEntitiesDetectionV2JobInput"} +func (s *StartPHIDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartPHIDetectionJobInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) } @@ -3588,72 +4960,72 @@ func (s *StartEntitiesDetectionV2JobInput) Validate() error { } // SetClientRequestToken sets the ClientRequestToken field's value. -func (s *StartEntitiesDetectionV2JobInput) SetClientRequestToken(v string) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetClientRequestToken(v string) *StartPHIDetectionJobInput { s.ClientRequestToken = &v return s } // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *StartEntitiesDetectionV2JobInput) SetDataAccessRoleArn(v string) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetDataAccessRoleArn(v string) *StartPHIDetectionJobInput { s.DataAccessRoleArn = &v return s } // SetInputDataConfig sets the InputDataConfig field's value. -func (s *StartEntitiesDetectionV2JobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPHIDetectionJobInput { s.InputDataConfig = v return s } // SetJobName sets the JobName field's value. -func (s *StartEntitiesDetectionV2JobInput) SetJobName(v string) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetJobName(v string) *StartPHIDetectionJobInput { s.JobName = &v return s } // SetKMSKey sets the KMSKey field's value. -func (s *StartEntitiesDetectionV2JobInput) SetKMSKey(v string) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetKMSKey(v string) *StartPHIDetectionJobInput { s.KMSKey = &v return s } // SetLanguageCode sets the LanguageCode field's value. -func (s *StartEntitiesDetectionV2JobInput) SetLanguageCode(v string) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetLanguageCode(v string) *StartPHIDetectionJobInput { s.LanguageCode = &v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *StartEntitiesDetectionV2JobInput) SetOutputDataConfig(v *OutputDataConfig) *StartEntitiesDetectionV2JobInput { +func (s *StartPHIDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPHIDetectionJobInput { s.OutputDataConfig = v return s } -type StartEntitiesDetectionV2JobOutput struct { +type StartPHIDetectionJobOutput struct { _ struct{} `type:"structure"` // The identifier generated for the job. To get the status of a job, use this - // identifier with the DescribeEntitiesDetectionV2Job operation. + // identifier with the DescribePHIDetectionJob operation. JobId *string `min:"1" type:"string"` } // String returns the string representation -func (s StartEntitiesDetectionV2JobOutput) String() string { +func (s StartPHIDetectionJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartEntitiesDetectionV2JobOutput) GoString() string { +func (s StartPHIDetectionJobOutput) GoString() string { return s.String() } // SetJobId sets the JobId field's value. -func (s *StartEntitiesDetectionV2JobOutput) SetJobId(v string) *StartEntitiesDetectionV2JobOutput { +func (s *StartPHIDetectionJobOutput) SetJobId(v string) *StartPHIDetectionJobOutput { s.JobId = &v return s } -type StartPHIDetectionJobInput struct { +type StartRxNormInferenceJobInput struct { _ struct{} `type:"structure"` // A unique identifier for the request. If you don't set the client request @@ -3692,18 +5064,18 @@ type StartPHIDetectionJobInput struct { } // String returns the string representation -func (s StartPHIDetectionJobInput) String() string { +func (s StartRxNormInferenceJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartPHIDetectionJobInput) GoString() string { +func (s StartRxNormInferenceJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StartPHIDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartPHIDetectionJobInput"} +func (s *StartRxNormInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartRxNormInferenceJobInput"} if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) } @@ -3746,67 +5118,66 @@ func (s *StartPHIDetectionJobInput) Validate() error { } // SetClientRequestToken sets the ClientRequestToken field's value. -func (s *StartPHIDetectionJobInput) SetClientRequestToken(v string) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetClientRequestToken(v string) *StartRxNormInferenceJobInput { s.ClientRequestToken = &v return s } // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *StartPHIDetectionJobInput) SetDataAccessRoleArn(v string) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetDataAccessRoleArn(v string) *StartRxNormInferenceJobInput { s.DataAccessRoleArn = &v return s } // SetInputDataConfig sets the InputDataConfig field's value. -func (s *StartPHIDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetInputDataConfig(v *InputDataConfig) *StartRxNormInferenceJobInput { s.InputDataConfig = v return s } // SetJobName sets the JobName field's value. -func (s *StartPHIDetectionJobInput) SetJobName(v string) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetJobName(v string) *StartRxNormInferenceJobInput { s.JobName = &v return s } // SetKMSKey sets the KMSKey field's value. -func (s *StartPHIDetectionJobInput) SetKMSKey(v string) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetKMSKey(v string) *StartRxNormInferenceJobInput { s.KMSKey = &v return s } // SetLanguageCode sets the LanguageCode field's value. -func (s *StartPHIDetectionJobInput) SetLanguageCode(v string) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetLanguageCode(v string) *StartRxNormInferenceJobInput { s.LanguageCode = &v return s } // SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *StartPHIDetectionJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartPHIDetectionJobInput { +func (s *StartRxNormInferenceJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartRxNormInferenceJobInput { s.OutputDataConfig = v return s } -type StartPHIDetectionJobOutput struct { +type StartRxNormInferenceJobOutput struct { _ struct{} `type:"structure"` - // The identifier generated for the job. To get the status of a job, use this - // identifier with the DescribePHIDetectionJob operation. + // The identifier of the job. JobId *string `min:"1" type:"string"` } // String returns the string representation -func (s StartPHIDetectionJobOutput) String() string { +func (s StartRxNormInferenceJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartPHIDetectionJobOutput) GoString() string { +func (s StartRxNormInferenceJobOutput) GoString() string { return s.String() } // SetJobId sets the JobId field's value. -func (s *StartPHIDetectionJobOutput) SetJobId(v string) *StartPHIDetectionJobOutput { +func (s *StartRxNormInferenceJobOutput) SetJobId(v string) *StartRxNormInferenceJobOutput { s.JobId = &v return s } @@ -3875,6 +5246,71 @@ func (s *StopEntitiesDetectionV2JobOutput) SetJobId(v string) *StopEntitiesDetec return s } +type StopICD10CMInferenceJobInput struct { + _ struct{} `type:"structure"` + + // The identifier of the job. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopICD10CMInferenceJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopICD10CMInferenceJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopICD10CMInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopICD10CMInferenceJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *StopICD10CMInferenceJobInput) SetJobId(v string) *StopICD10CMInferenceJobInput { + s.JobId = &v + return s +} + +type StopICD10CMInferenceJobOutput struct { + _ struct{} `type:"structure"` + + // The identifier generated for the job. To get the status of job, use this + // identifier with the DescribeICD10CMInferenceJob operation. + JobId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s StopICD10CMInferenceJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopICD10CMInferenceJobOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *StopICD10CMInferenceJobOutput) SetJobId(v string) *StopICD10CMInferenceJobOutput { + s.JobId = &v + return s +} + type StopPHIDetectionJobInput struct { _ struct{} `type:"structure"` @@ -3939,6 +5375,71 @@ func (s *StopPHIDetectionJobOutput) SetJobId(v string) *StopPHIDetectionJobOutpu return s } +type StopRxNormInferenceJobInput struct { + _ struct{} `type:"structure"` + + // The identifier of the job. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopRxNormInferenceJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopRxNormInferenceJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopRxNormInferenceJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopRxNormInferenceJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *StopRxNormInferenceJobInput) SetJobId(v string) *StopRxNormInferenceJobInput { + s.JobId = &v + return s +} + +type StopRxNormInferenceJobOutput struct { + _ struct{} `type:"structure"` + + // The identifier generated for the job. To get the status of job, use this + // identifier with the DescribeRxNormInferenceJob operation. + JobId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s StopRxNormInferenceJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopRxNormInferenceJobOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *StopRxNormInferenceJobOutput) SetJobId(v string) *StopRxNormInferenceJobOutput { + s.JobId = &v + return s +} + // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. type TextSizeLimitExceededException struct { diff --git a/service/comprehendmedical/comprehendmedicaliface/interface.go b/service/comprehendmedical/comprehendmedicaliface/interface.go index e62288ef59..3314be1505 100644 --- a/service/comprehendmedical/comprehendmedicaliface/interface.go +++ b/service/comprehendmedical/comprehendmedicaliface/interface.go @@ -64,10 +64,18 @@ type ComprehendMedicalAPI interface { DescribeEntitiesDetectionV2JobWithContext(aws.Context, *comprehendmedical.DescribeEntitiesDetectionV2JobInput, ...request.Option) (*comprehendmedical.DescribeEntitiesDetectionV2JobOutput, error) DescribeEntitiesDetectionV2JobRequest(*comprehendmedical.DescribeEntitiesDetectionV2JobInput) (*request.Request, *comprehendmedical.DescribeEntitiesDetectionV2JobOutput) + DescribeICD10CMInferenceJob(*comprehendmedical.DescribeICD10CMInferenceJobInput) (*comprehendmedical.DescribeICD10CMInferenceJobOutput, error) + DescribeICD10CMInferenceJobWithContext(aws.Context, *comprehendmedical.DescribeICD10CMInferenceJobInput, ...request.Option) (*comprehendmedical.DescribeICD10CMInferenceJobOutput, error) + DescribeICD10CMInferenceJobRequest(*comprehendmedical.DescribeICD10CMInferenceJobInput) (*request.Request, *comprehendmedical.DescribeICD10CMInferenceJobOutput) + DescribePHIDetectionJob(*comprehendmedical.DescribePHIDetectionJobInput) (*comprehendmedical.DescribePHIDetectionJobOutput, error) DescribePHIDetectionJobWithContext(aws.Context, *comprehendmedical.DescribePHIDetectionJobInput, ...request.Option) (*comprehendmedical.DescribePHIDetectionJobOutput, error) DescribePHIDetectionJobRequest(*comprehendmedical.DescribePHIDetectionJobInput) (*request.Request, *comprehendmedical.DescribePHIDetectionJobOutput) + DescribeRxNormInferenceJob(*comprehendmedical.DescribeRxNormInferenceJobInput) (*comprehendmedical.DescribeRxNormInferenceJobOutput, error) + DescribeRxNormInferenceJobWithContext(aws.Context, *comprehendmedical.DescribeRxNormInferenceJobInput, ...request.Option) (*comprehendmedical.DescribeRxNormInferenceJobOutput, error) + DescribeRxNormInferenceJobRequest(*comprehendmedical.DescribeRxNormInferenceJobInput) (*request.Request, *comprehendmedical.DescribeRxNormInferenceJobOutput) + DetectEntities(*comprehendmedical.DetectEntitiesInput) (*comprehendmedical.DetectEntitiesOutput, error) DetectEntitiesWithContext(aws.Context, *comprehendmedical.DetectEntitiesInput, ...request.Option) (*comprehendmedical.DetectEntitiesOutput, error) DetectEntitiesRequest(*comprehendmedical.DetectEntitiesInput) (*request.Request, *comprehendmedical.DetectEntitiesOutput) @@ -92,25 +100,49 @@ type ComprehendMedicalAPI interface { ListEntitiesDetectionV2JobsWithContext(aws.Context, *comprehendmedical.ListEntitiesDetectionV2JobsInput, ...request.Option) (*comprehendmedical.ListEntitiesDetectionV2JobsOutput, error) ListEntitiesDetectionV2JobsRequest(*comprehendmedical.ListEntitiesDetectionV2JobsInput) (*request.Request, *comprehendmedical.ListEntitiesDetectionV2JobsOutput) + ListICD10CMInferenceJobs(*comprehendmedical.ListICD10CMInferenceJobsInput) (*comprehendmedical.ListICD10CMInferenceJobsOutput, error) + ListICD10CMInferenceJobsWithContext(aws.Context, *comprehendmedical.ListICD10CMInferenceJobsInput, ...request.Option) (*comprehendmedical.ListICD10CMInferenceJobsOutput, error) + ListICD10CMInferenceJobsRequest(*comprehendmedical.ListICD10CMInferenceJobsInput) (*request.Request, *comprehendmedical.ListICD10CMInferenceJobsOutput) + ListPHIDetectionJobs(*comprehendmedical.ListPHIDetectionJobsInput) (*comprehendmedical.ListPHIDetectionJobsOutput, error) ListPHIDetectionJobsWithContext(aws.Context, *comprehendmedical.ListPHIDetectionJobsInput, ...request.Option) (*comprehendmedical.ListPHIDetectionJobsOutput, error) ListPHIDetectionJobsRequest(*comprehendmedical.ListPHIDetectionJobsInput) (*request.Request, *comprehendmedical.ListPHIDetectionJobsOutput) + ListRxNormInferenceJobs(*comprehendmedical.ListRxNormInferenceJobsInput) (*comprehendmedical.ListRxNormInferenceJobsOutput, error) + ListRxNormInferenceJobsWithContext(aws.Context, *comprehendmedical.ListRxNormInferenceJobsInput, ...request.Option) (*comprehendmedical.ListRxNormInferenceJobsOutput, error) + ListRxNormInferenceJobsRequest(*comprehendmedical.ListRxNormInferenceJobsInput) (*request.Request, *comprehendmedical.ListRxNormInferenceJobsOutput) + StartEntitiesDetectionV2Job(*comprehendmedical.StartEntitiesDetectionV2JobInput) (*comprehendmedical.StartEntitiesDetectionV2JobOutput, error) StartEntitiesDetectionV2JobWithContext(aws.Context, *comprehendmedical.StartEntitiesDetectionV2JobInput, ...request.Option) (*comprehendmedical.StartEntitiesDetectionV2JobOutput, error) StartEntitiesDetectionV2JobRequest(*comprehendmedical.StartEntitiesDetectionV2JobInput) (*request.Request, *comprehendmedical.StartEntitiesDetectionV2JobOutput) + StartICD10CMInferenceJob(*comprehendmedical.StartICD10CMInferenceJobInput) (*comprehendmedical.StartICD10CMInferenceJobOutput, error) + StartICD10CMInferenceJobWithContext(aws.Context, *comprehendmedical.StartICD10CMInferenceJobInput, ...request.Option) (*comprehendmedical.StartICD10CMInferenceJobOutput, error) + StartICD10CMInferenceJobRequest(*comprehendmedical.StartICD10CMInferenceJobInput) (*request.Request, *comprehendmedical.StartICD10CMInferenceJobOutput) + StartPHIDetectionJob(*comprehendmedical.StartPHIDetectionJobInput) (*comprehendmedical.StartPHIDetectionJobOutput, error) StartPHIDetectionJobWithContext(aws.Context, *comprehendmedical.StartPHIDetectionJobInput, ...request.Option) (*comprehendmedical.StartPHIDetectionJobOutput, error) StartPHIDetectionJobRequest(*comprehendmedical.StartPHIDetectionJobInput) (*request.Request, *comprehendmedical.StartPHIDetectionJobOutput) + StartRxNormInferenceJob(*comprehendmedical.StartRxNormInferenceJobInput) (*comprehendmedical.StartRxNormInferenceJobOutput, error) + StartRxNormInferenceJobWithContext(aws.Context, *comprehendmedical.StartRxNormInferenceJobInput, ...request.Option) (*comprehendmedical.StartRxNormInferenceJobOutput, error) + StartRxNormInferenceJobRequest(*comprehendmedical.StartRxNormInferenceJobInput) (*request.Request, *comprehendmedical.StartRxNormInferenceJobOutput) + StopEntitiesDetectionV2Job(*comprehendmedical.StopEntitiesDetectionV2JobInput) (*comprehendmedical.StopEntitiesDetectionV2JobOutput, error) StopEntitiesDetectionV2JobWithContext(aws.Context, *comprehendmedical.StopEntitiesDetectionV2JobInput, ...request.Option) (*comprehendmedical.StopEntitiesDetectionV2JobOutput, error) StopEntitiesDetectionV2JobRequest(*comprehendmedical.StopEntitiesDetectionV2JobInput) (*request.Request, *comprehendmedical.StopEntitiesDetectionV2JobOutput) + StopICD10CMInferenceJob(*comprehendmedical.StopICD10CMInferenceJobInput) (*comprehendmedical.StopICD10CMInferenceJobOutput, error) + StopICD10CMInferenceJobWithContext(aws.Context, *comprehendmedical.StopICD10CMInferenceJobInput, ...request.Option) (*comprehendmedical.StopICD10CMInferenceJobOutput, error) + StopICD10CMInferenceJobRequest(*comprehendmedical.StopICD10CMInferenceJobInput) (*request.Request, *comprehendmedical.StopICD10CMInferenceJobOutput) + StopPHIDetectionJob(*comprehendmedical.StopPHIDetectionJobInput) (*comprehendmedical.StopPHIDetectionJobOutput, error) StopPHIDetectionJobWithContext(aws.Context, *comprehendmedical.StopPHIDetectionJobInput, ...request.Option) (*comprehendmedical.StopPHIDetectionJobOutput, error) StopPHIDetectionJobRequest(*comprehendmedical.StopPHIDetectionJobInput) (*request.Request, *comprehendmedical.StopPHIDetectionJobOutput) + + StopRxNormInferenceJob(*comprehendmedical.StopRxNormInferenceJobInput) (*comprehendmedical.StopRxNormInferenceJobOutput, error) + StopRxNormInferenceJobWithContext(aws.Context, *comprehendmedical.StopRxNormInferenceJobInput, ...request.Option) (*comprehendmedical.StopRxNormInferenceJobOutput, error) + StopRxNormInferenceJobRequest(*comprehendmedical.StopRxNormInferenceJobInput) (*request.Request, *comprehendmedical.StopRxNormInferenceJobOutput) } var _ ComprehendMedicalAPI = (*comprehendmedical.ComprehendMedical)(nil)