aws-sdk-comprehend 1.38.0 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7e76f78bdf9a28bcf93302716c251f7bf7c4b61a7c76e312fa98126ec95cbf
4
- data.tar.gz: 1164f64a744b9398a0af4af721c0470b7a93c74ea6df3ad89dcef0f26c64ca07
3
+ metadata.gz: fb841e7f98bf2b40de5e3f385e3585ec64e29b61e921778971208d527886a5c9
4
+ data.tar.gz: 4e8687f7495e31d6c9a844ba6a29b1867cf91ecfba0b3bdd64be8e3fda8dfa88
5
5
  SHA512:
6
- metadata.gz: 05023a037ac3827312ad84e5b8dd401b6ca643fe39d84496ca60b99ba837a21ea0f89d6b17bc4b8b3a0f5d9eb1742ec89299aff64c0f19029a811d6a2692f541
7
- data.tar.gz: 69bc82b91d2720f3148756d14dc4089da98e08fc3d6555b4779344be9a4a15d0ad58f1570dd6193193c741c60f54d6789fb2d6323be96f1341f78f00aeb03f3b
6
+ metadata.gz: 24ee5c1f0fa7e826845c22538e65a110fc59a26b171a2fb47ca05ac5ddc050c09adae81ace2c086dca498f1a47cd6910cfd2630d221e8a8bd61ccaf57812060b
7
+ data.tar.gz: 0eccd1f090108d68ff3f208b0499112eea405e401966f6dff53174e29c71e1892cd530ce3bf9b0bcac977101a626e1f8dca1de1d0f04d909f67cc89640b50e19
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-comprehend/customizations'
48
48
  # @!group service
49
49
  module Aws::Comprehend
50
50
 
51
- GEM_VERSION = '1.38.0'
51
+ GEM_VERSION = '1.39.0'
52
52
 
53
53
  end
@@ -1334,6 +1334,52 @@ module Aws::Comprehend
1334
1334
  req.send_request(options)
1335
1335
  end
1336
1336
 
1337
+ # Gets the properties associated with a PII entities detection job. For
1338
+ # example, you can use this operation to get the job status.
1339
+ #
1340
+ # @option params [required, String] :job_id
1341
+ # The identifier that Amazon Comprehend generated for the job. The
1342
+ # operation returns this identifier in its response.
1343
+ #
1344
+ # @return [Types::DescribePiiEntitiesDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1345
+ #
1346
+ # * {Types::DescribePiiEntitiesDetectionJobResponse#pii_entities_detection_job_properties #pii_entities_detection_job_properties} => Types::PiiEntitiesDetectionJobProperties
1347
+ #
1348
+ # @example Request syntax with placeholder values
1349
+ #
1350
+ # resp = client.describe_pii_entities_detection_job({
1351
+ # job_id: "JobId", # required
1352
+ # })
1353
+ #
1354
+ # @example Response structure
1355
+ #
1356
+ # resp.pii_entities_detection_job_properties.job_id #=> String
1357
+ # resp.pii_entities_detection_job_properties.job_name #=> String
1358
+ # resp.pii_entities_detection_job_properties.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
1359
+ # resp.pii_entities_detection_job_properties.message #=> String
1360
+ # resp.pii_entities_detection_job_properties.submit_time #=> Time
1361
+ # resp.pii_entities_detection_job_properties.end_time #=> Time
1362
+ # resp.pii_entities_detection_job_properties.input_data_config.s3_uri #=> String
1363
+ # resp.pii_entities_detection_job_properties.input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
1364
+ # resp.pii_entities_detection_job_properties.output_data_config.s3_uri #=> String
1365
+ # resp.pii_entities_detection_job_properties.output_data_config.kms_key_id #=> String
1366
+ # resp.pii_entities_detection_job_properties.redaction_config.pii_entity_types #=> Array
1367
+ # resp.pii_entities_detection_job_properties.redaction_config.pii_entity_types[0] #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL"
1368
+ # resp.pii_entities_detection_job_properties.redaction_config.mask_mode #=> String, one of "MASK", "REPLACE_WITH_PII_ENTITY_TYPE"
1369
+ # resp.pii_entities_detection_job_properties.redaction_config.mask_character #=> String
1370
+ # resp.pii_entities_detection_job_properties.language_code #=> String, one of "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW"
1371
+ # resp.pii_entities_detection_job_properties.data_access_role_arn #=> String
1372
+ # resp.pii_entities_detection_job_properties.mode #=> String, one of "ONLY_REDACTION", "ONLY_OFFSETS"
1373
+ #
1374
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribePiiEntitiesDetectionJob AWS API Documentation
1375
+ #
1376
+ # @overload describe_pii_entities_detection_job(params = {})
1377
+ # @param [Hash] params ({})
1378
+ def describe_pii_entities_detection_job(params = {}, options = {})
1379
+ req = build_request(:describe_pii_entities_detection_job, params)
1380
+ req.send_request(options)
1381
+ end
1382
+
1337
1383
  # Gets the properties associated with a sentiment detection job. Use
1338
1384
  # this operation to get the status of a detection job.
1339
1385
  #
@@ -1557,6 +1603,44 @@ module Aws::Comprehend
1557
1603
  req.send_request(options)
1558
1604
  end
1559
1605
 
1606
+ # Inspects the input text for entities that contain personally
1607
+ # identifiable information (PII) and returns information about them.
1608
+ #
1609
+ # @option params [required, String] :text
1610
+ # A UTF-8 text string. Each string must contain fewer that 5,000 bytes
1611
+ # of UTF-8 encoded characters.
1612
+ #
1613
+ # @option params [required, String] :language_code
1614
+ # The language of the input documents.
1615
+ #
1616
+ # @return [Types::DetectPiiEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1617
+ #
1618
+ # * {Types::DetectPiiEntitiesResponse#entities #entities} => Array<Types::PiiEntity>
1619
+ #
1620
+ # @example Request syntax with placeholder values
1621
+ #
1622
+ # resp = client.detect_pii_entities({
1623
+ # text: "String", # required
1624
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1625
+ # })
1626
+ #
1627
+ # @example Response structure
1628
+ #
1629
+ # resp.entities #=> Array
1630
+ # resp.entities[0].score #=> Float
1631
+ # resp.entities[0].type #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL"
1632
+ # resp.entities[0].begin_offset #=> Integer
1633
+ # resp.entities[0].end_offset #=> Integer
1634
+ #
1635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectPiiEntities AWS API Documentation
1636
+ #
1637
+ # @overload detect_pii_entities(params = {})
1638
+ # @param [Hash] params ({})
1639
+ def detect_pii_entities(params = {}, options = {})
1640
+ req = build_request(:detect_pii_entities, params)
1641
+ req.send_request(options)
1642
+ end
1643
+
1560
1644
  # Inspects text and returns an inference of the prevailing sentiment
1561
1645
  # (`POSITIVE`, `NEUTRAL`, `MIXED`, or `NEGATIVE`).
1562
1646
  #
@@ -2118,6 +2202,68 @@ module Aws::Comprehend
2118
2202
  req.send_request(options)
2119
2203
  end
2120
2204
 
2205
+ # Gets a list of the PII entity detection jobs that you have submitted.
2206
+ #
2207
+ # @option params [Types::PiiEntitiesDetectionJobFilter] :filter
2208
+ # Filters the jobs that are returned. You can filter jobs on their name,
2209
+ # status, or the date and time that they were submitted. You can only
2210
+ # set one filter at a time.
2211
+ #
2212
+ # @option params [String] :next_token
2213
+ # Identifies the next page of results to return.
2214
+ #
2215
+ # @option params [Integer] :max_results
2216
+ # The maximum number of results to return in each page.
2217
+ #
2218
+ # @return [Types::ListPiiEntitiesDetectionJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2219
+ #
2220
+ # * {Types::ListPiiEntitiesDetectionJobsResponse#pii_entities_detection_job_properties_list #pii_entities_detection_job_properties_list} => Array<Types::PiiEntitiesDetectionJobProperties>
2221
+ # * {Types::ListPiiEntitiesDetectionJobsResponse#next_token #next_token} => String
2222
+ #
2223
+ # @example Request syntax with placeholder values
2224
+ #
2225
+ # resp = client.list_pii_entities_detection_jobs({
2226
+ # filter: {
2227
+ # job_name: "JobName",
2228
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
2229
+ # submit_time_before: Time.now,
2230
+ # submit_time_after: Time.now,
2231
+ # },
2232
+ # next_token: "String",
2233
+ # max_results: 1,
2234
+ # })
2235
+ #
2236
+ # @example Response structure
2237
+ #
2238
+ # resp.pii_entities_detection_job_properties_list #=> Array
2239
+ # resp.pii_entities_detection_job_properties_list[0].job_id #=> String
2240
+ # resp.pii_entities_detection_job_properties_list[0].job_name #=> String
2241
+ # resp.pii_entities_detection_job_properties_list[0].job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
2242
+ # resp.pii_entities_detection_job_properties_list[0].message #=> String
2243
+ # resp.pii_entities_detection_job_properties_list[0].submit_time #=> Time
2244
+ # resp.pii_entities_detection_job_properties_list[0].end_time #=> Time
2245
+ # resp.pii_entities_detection_job_properties_list[0].input_data_config.s3_uri #=> String
2246
+ # resp.pii_entities_detection_job_properties_list[0].input_data_config.input_format #=> String, one of "ONE_DOC_PER_FILE", "ONE_DOC_PER_LINE"
2247
+ # resp.pii_entities_detection_job_properties_list[0].output_data_config.s3_uri #=> String
2248
+ # resp.pii_entities_detection_job_properties_list[0].output_data_config.kms_key_id #=> String
2249
+ # resp.pii_entities_detection_job_properties_list[0].redaction_config.pii_entity_types #=> Array
2250
+ # resp.pii_entities_detection_job_properties_list[0].redaction_config.pii_entity_types[0] #=> String, one of "BANK_ACCOUNT_NUMBER", "BANK_ROUTING", "CREDIT_DEBIT_NUMBER", "CREDIT_DEBIT_CVV", "CREDIT_DEBIT_EXPIRY", "PIN", "EMAIL", "ADDRESS", "NAME", "PHONE", "SSN", "DATE_TIME", "PASSPORT_NUMBER", "DRIVER_ID", "URL", "AGE", "USERNAME", "PASSWORD", "AWS_ACCESS_KEY", "AWS_SECRET_KEY", "IP_ADDRESS", "MAC_ADDRESS", "ALL"
2251
+ # resp.pii_entities_detection_job_properties_list[0].redaction_config.mask_mode #=> String, one of "MASK", "REPLACE_WITH_PII_ENTITY_TYPE"
2252
+ # resp.pii_entities_detection_job_properties_list[0].redaction_config.mask_character #=> String
2253
+ # resp.pii_entities_detection_job_properties_list[0].language_code #=> String, one of "en", "es", "fr", "de", "it", "pt", "ar", "hi", "ja", "ko", "zh", "zh-TW"
2254
+ # resp.pii_entities_detection_job_properties_list[0].data_access_role_arn #=> String
2255
+ # resp.pii_entities_detection_job_properties_list[0].mode #=> String, one of "ONLY_REDACTION", "ONLY_OFFSETS"
2256
+ # resp.next_token #=> String
2257
+ #
2258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListPiiEntitiesDetectionJobs AWS API Documentation
2259
+ #
2260
+ # @overload list_pii_entities_detection_jobs(params = {})
2261
+ # @param [Hash] params ({})
2262
+ def list_pii_entities_detection_jobs(params = {}, options = {})
2263
+ req = build_request(:list_pii_entities_detection_jobs, params)
2264
+ req.send_request(options)
2265
+ end
2266
+
2121
2267
  # Gets a list of sentiment detection jobs that you have submitted.
2122
2268
  #
2123
2269
  # @option params [Types::SentimentDetectionJobFilter] :filter
@@ -2662,6 +2808,87 @@ module Aws::Comprehend
2662
2808
  req.send_request(options)
2663
2809
  end
2664
2810
 
2811
+ # Starts an asynchronous PII entity detection job for a collection of
2812
+ # documents.
2813
+ #
2814
+ # @option params [required, Types::InputDataConfig] :input_data_config
2815
+ # The input properties for a PII entities detection job.
2816
+ #
2817
+ # @option params [required, Types::OutputDataConfig] :output_data_config
2818
+ # Provides configuration parameters for the output of PII entity
2819
+ # detection jobs.
2820
+ #
2821
+ # @option params [required, String] :mode
2822
+ # Specifies whether the output provides the locations (offsets) of PII
2823
+ # entities or a file in which PII entities are redacted.
2824
+ #
2825
+ # @option params [Types::RedactionConfig] :redaction_config
2826
+ # Provides configuration parameters for PII entity redaction.
2827
+ #
2828
+ # This parameter is required if you set the `Mode` parameter to
2829
+ # `ONLY_REDACTION`. In that case, you must provide a `RedactionConfig`
2830
+ # definition that includes the `PiiEntityTypes` parameter.
2831
+ #
2832
+ # @option params [required, String] :data_access_role_arn
2833
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
2834
+ # Management (IAM) role that grants Amazon Comprehend read access to
2835
+ # your input data.
2836
+ #
2837
+ # @option params [String] :job_name
2838
+ # The identifier of the job.
2839
+ #
2840
+ # @option params [required, String] :language_code
2841
+ # The language of the input documents.
2842
+ #
2843
+ # @option params [String] :client_request_token
2844
+ # A unique identifier for the request. If you don't set the client
2845
+ # request token, Amazon Comprehend generates one.
2846
+ #
2847
+ # **A suitable default value is auto-generated.** You should normally
2848
+ # not need to pass this option.**
2849
+ #
2850
+ # @return [Types::StartPiiEntitiesDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2851
+ #
2852
+ # * {Types::StartPiiEntitiesDetectionJobResponse#job_id #job_id} => String
2853
+ # * {Types::StartPiiEntitiesDetectionJobResponse#job_status #job_status} => String
2854
+ #
2855
+ # @example Request syntax with placeholder values
2856
+ #
2857
+ # resp = client.start_pii_entities_detection_job({
2858
+ # input_data_config: { # required
2859
+ # s3_uri: "S3Uri", # required
2860
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
2861
+ # },
2862
+ # output_data_config: { # required
2863
+ # s3_uri: "S3Uri", # required
2864
+ # kms_key_id: "KmsKeyId",
2865
+ # },
2866
+ # mode: "ONLY_REDACTION", # required, accepts ONLY_REDACTION, ONLY_OFFSETS
2867
+ # redaction_config: {
2868
+ # pii_entity_types: ["BANK_ACCOUNT_NUMBER"], # accepts BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL, AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS, MAC_ADDRESS, ALL
2869
+ # mask_mode: "MASK", # accepts MASK, REPLACE_WITH_PII_ENTITY_TYPE
2870
+ # mask_character: "MaskCharacter",
2871
+ # },
2872
+ # data_access_role_arn: "IamRoleArn", # required
2873
+ # job_name: "JobName",
2874
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
2875
+ # client_request_token: "ClientRequestTokenString",
2876
+ # })
2877
+ #
2878
+ # @example Response structure
2879
+ #
2880
+ # resp.job_id #=> String
2881
+ # resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
2882
+ #
2883
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartPiiEntitiesDetectionJob AWS API Documentation
2884
+ #
2885
+ # @overload start_pii_entities_detection_job(params = {})
2886
+ # @param [Hash] params ({})
2887
+ def start_pii_entities_detection_job(params = {}, options = {})
2888
+ req = build_request(:start_pii_entities_detection_job, params)
2889
+ req.send_request(options)
2890
+ end
2891
+
2665
2892
  # Starts an asynchronous sentiment detection job for a collection of
2666
2893
  # documents. use the operation to track the status of a job.
2667
2894
  #
@@ -2979,6 +3206,36 @@ module Aws::Comprehend
2979
3206
  req.send_request(options)
2980
3207
  end
2981
3208
 
3209
+ # Stops a PII entities detection job in progress.
3210
+ #
3211
+ # @option params [required, String] :job_id
3212
+ # The identifier of the PII entities detection job to stop.
3213
+ #
3214
+ # @return [Types::StopPiiEntitiesDetectionJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3215
+ #
3216
+ # * {Types::StopPiiEntitiesDetectionJobResponse#job_id #job_id} => String
3217
+ # * {Types::StopPiiEntitiesDetectionJobResponse#job_status #job_status} => String
3218
+ #
3219
+ # @example Request syntax with placeholder values
3220
+ #
3221
+ # resp = client.stop_pii_entities_detection_job({
3222
+ # job_id: "JobId", # required
3223
+ # })
3224
+ #
3225
+ # @example Response structure
3226
+ #
3227
+ # resp.job_id #=> String
3228
+ # resp.job_status #=> String, one of "SUBMITTED", "IN_PROGRESS", "COMPLETED", "FAILED", "STOP_REQUESTED", "STOPPED"
3229
+ #
3230
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopPiiEntitiesDetectionJob AWS API Documentation
3231
+ #
3232
+ # @overload stop_pii_entities_detection_job(params = {})
3233
+ # @param [Hash] params ({})
3234
+ def stop_pii_entities_detection_job(params = {}, options = {})
3235
+ req = build_request(:stop_pii_entities_detection_job, params)
3236
+ req.send_request(options)
3237
+ end
3238
+
2982
3239
  # Stops a sentiment detection job in progress.
2983
3240
  #
2984
3241
  # If the job state is `IN_PROGRESS` the job is marked for termination
@@ -3190,7 +3447,7 @@ module Aws::Comprehend
3190
3447
  params: params,
3191
3448
  config: config)
3192
3449
  context[:gem_name] = 'aws-sdk-comprehend'
3193
- context[:gem_version] = '1.38.0'
3450
+ context[:gem_version] = '1.39.0'
3194
3451
  Seahorse::Client::Request.new(handlers, context)
3195
3452
  end
3196
3453
 
@@ -71,6 +71,8 @@ module Aws::Comprehend
71
71
  DescribeEntityRecognizerResponse = Shapes::StructureShape.new(name: 'DescribeEntityRecognizerResponse')
72
72
  DescribeKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobRequest')
73
73
  DescribeKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeKeyPhrasesDetectionJobResponse')
74
+ DescribePiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribePiiEntitiesDetectionJobRequest')
75
+ DescribePiiEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribePiiEntitiesDetectionJobResponse')
74
76
  DescribeSentimentDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeSentimentDetectionJobRequest')
75
77
  DescribeSentimentDetectionJobResponse = Shapes::StructureShape.new(name: 'DescribeSentimentDetectionJobResponse')
76
78
  DescribeTopicsDetectionJobRequest = Shapes::StructureShape.new(name: 'DescribeTopicsDetectionJobRequest')
@@ -81,6 +83,8 @@ module Aws::Comprehend
81
83
  DetectEntitiesResponse = Shapes::StructureShape.new(name: 'DetectEntitiesResponse')
82
84
  DetectKeyPhrasesRequest = Shapes::StructureShape.new(name: 'DetectKeyPhrasesRequest')
83
85
  DetectKeyPhrasesResponse = Shapes::StructureShape.new(name: 'DetectKeyPhrasesResponse')
86
+ DetectPiiEntitiesRequest = Shapes::StructureShape.new(name: 'DetectPiiEntitiesRequest')
87
+ DetectPiiEntitiesResponse = Shapes::StructureShape.new(name: 'DetectPiiEntitiesResponse')
84
88
  DetectSentimentRequest = Shapes::StructureShape.new(name: 'DetectSentimentRequest')
85
89
  DetectSentimentResponse = Shapes::StructureShape.new(name: 'DetectSentimentResponse')
86
90
  DetectSyntaxRequest = Shapes::StructureShape.new(name: 'DetectSyntaxRequest')
@@ -174,19 +178,33 @@ module Aws::Comprehend
174
178
  ListOfEntities = Shapes::ListShape.new(name: 'ListOfEntities')
175
179
  ListOfKeyPhrases = Shapes::ListShape.new(name: 'ListOfKeyPhrases')
176
180
  ListOfLabels = Shapes::ListShape.new(name: 'ListOfLabels')
181
+ ListOfPiiEntities = Shapes::ListShape.new(name: 'ListOfPiiEntities')
182
+ ListOfPiiEntityTypes = Shapes::ListShape.new(name: 'ListOfPiiEntityTypes')
177
183
  ListOfSyntaxTokens = Shapes::ListShape.new(name: 'ListOfSyntaxTokens')
184
+ ListPiiEntitiesDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListPiiEntitiesDetectionJobsRequest')
185
+ ListPiiEntitiesDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListPiiEntitiesDetectionJobsResponse')
178
186
  ListSentimentDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsRequest')
179
187
  ListSentimentDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListSentimentDetectionJobsResponse')
180
188
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
181
189
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
182
190
  ListTopicsDetectionJobsRequest = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsRequest')
183
191
  ListTopicsDetectionJobsResponse = Shapes::StructureShape.new(name: 'ListTopicsDetectionJobsResponse')
192
+ MaskCharacter = Shapes::StringShape.new(name: 'MaskCharacter')
184
193
  MaxResultsInteger = Shapes::IntegerShape.new(name: 'MaxResultsInteger')
185
194
  ModelStatus = Shapes::StringShape.new(name: 'ModelStatus')
186
195
  NumberOfTopicsInteger = Shapes::IntegerShape.new(name: 'NumberOfTopicsInteger')
187
196
  OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig')
188
197
  PartOfSpeechTag = Shapes::StructureShape.new(name: 'PartOfSpeechTag')
189
198
  PartOfSpeechTagType = Shapes::StringShape.new(name: 'PartOfSpeechTagType')
199
+ PiiEntitiesDetectionJobFilter = Shapes::StructureShape.new(name: 'PiiEntitiesDetectionJobFilter')
200
+ PiiEntitiesDetectionJobProperties = Shapes::StructureShape.new(name: 'PiiEntitiesDetectionJobProperties')
201
+ PiiEntitiesDetectionJobPropertiesList = Shapes::ListShape.new(name: 'PiiEntitiesDetectionJobPropertiesList')
202
+ PiiEntitiesDetectionMaskMode = Shapes::StringShape.new(name: 'PiiEntitiesDetectionMaskMode')
203
+ PiiEntitiesDetectionMode = Shapes::StringShape.new(name: 'PiiEntitiesDetectionMode')
204
+ PiiEntity = Shapes::StructureShape.new(name: 'PiiEntity')
205
+ PiiEntityType = Shapes::StringShape.new(name: 'PiiEntityType')
206
+ PiiOutputDataConfig = Shapes::StructureShape.new(name: 'PiiOutputDataConfig')
207
+ RedactionConfig = Shapes::StructureShape.new(name: 'RedactionConfig')
190
208
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
191
209
  ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
192
210
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -207,6 +225,8 @@ module Aws::Comprehend
207
225
  StartEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartEntitiesDetectionJobResponse')
208
226
  StartKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobRequest')
209
227
  StartKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartKeyPhrasesDetectionJobResponse')
228
+ StartPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StartPiiEntitiesDetectionJobRequest')
229
+ StartPiiEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StartPiiEntitiesDetectionJobResponse')
210
230
  StartSentimentDetectionJobRequest = Shapes::StructureShape.new(name: 'StartSentimentDetectionJobRequest')
211
231
  StartSentimentDetectionJobResponse = Shapes::StructureShape.new(name: 'StartSentimentDetectionJobResponse')
212
232
  StartTopicsDetectionJobRequest = Shapes::StructureShape.new(name: 'StartTopicsDetectionJobRequest')
@@ -217,6 +237,8 @@ module Aws::Comprehend
217
237
  StopEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopEntitiesDetectionJobResponse')
218
238
  StopKeyPhrasesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobRequest')
219
239
  StopKeyPhrasesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopKeyPhrasesDetectionJobResponse')
240
+ StopPiiEntitiesDetectionJobRequest = Shapes::StructureShape.new(name: 'StopPiiEntitiesDetectionJobRequest')
241
+ StopPiiEntitiesDetectionJobResponse = Shapes::StructureShape.new(name: 'StopPiiEntitiesDetectionJobResponse')
220
242
  StopSentimentDetectionJobRequest = Shapes::StructureShape.new(name: 'StopSentimentDetectionJobRequest')
221
243
  StopSentimentDetectionJobResponse = Shapes::StructureShape.new(name: 'StopSentimentDetectionJobResponse')
222
244
  StopTrainingDocumentClassifierRequest = Shapes::StructureShape.new(name: 'StopTrainingDocumentClassifierRequest')
@@ -444,6 +466,12 @@ module Aws::Comprehend
444
466
  DescribeKeyPhrasesDetectionJobResponse.add_member(:key_phrases_detection_job_properties, Shapes::ShapeRef.new(shape: KeyPhrasesDetectionJobProperties, location_name: "KeyPhrasesDetectionJobProperties"))
445
467
  DescribeKeyPhrasesDetectionJobResponse.struct_class = Types::DescribeKeyPhrasesDetectionJobResponse
446
468
 
469
+ DescribePiiEntitiesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
470
+ DescribePiiEntitiesDetectionJobRequest.struct_class = Types::DescribePiiEntitiesDetectionJobRequest
471
+
472
+ DescribePiiEntitiesDetectionJobResponse.add_member(:pii_entities_detection_job_properties, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionJobProperties, location_name: "PiiEntitiesDetectionJobProperties"))
473
+ DescribePiiEntitiesDetectionJobResponse.struct_class = Types::DescribePiiEntitiesDetectionJobResponse
474
+
447
475
  DescribeSentimentDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
448
476
  DescribeSentimentDetectionJobRequest.struct_class = Types::DescribeSentimentDetectionJobRequest
449
477
 
@@ -477,6 +505,13 @@ module Aws::Comprehend
477
505
  DetectKeyPhrasesResponse.add_member(:key_phrases, Shapes::ShapeRef.new(shape: ListOfKeyPhrases, location_name: "KeyPhrases"))
478
506
  DetectKeyPhrasesResponse.struct_class = Types::DetectKeyPhrasesResponse
479
507
 
508
+ DetectPiiEntitiesRequest.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
509
+ DetectPiiEntitiesRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
510
+ DetectPiiEntitiesRequest.struct_class = Types::DetectPiiEntitiesRequest
511
+
512
+ DetectPiiEntitiesResponse.add_member(:entities, Shapes::ShapeRef.new(shape: ListOfPiiEntities, location_name: "Entities"))
513
+ DetectPiiEntitiesResponse.struct_class = Types::DetectPiiEntitiesResponse
514
+
480
515
  DetectSentimentRequest.add_member(:text, Shapes::ShapeRef.new(shape: CustomerInputString, required: true, location_name: "Text"))
481
516
  DetectSentimentRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
482
517
  DetectSentimentRequest.struct_class = Types::DetectSentimentRequest
@@ -822,8 +857,21 @@ module Aws::Comprehend
822
857
 
823
858
  ListOfLabels.member = Shapes::ShapeRef.new(shape: DocumentLabel)
824
859
 
860
+ ListOfPiiEntities.member = Shapes::ShapeRef.new(shape: PiiEntity)
861
+
862
+ ListOfPiiEntityTypes.member = Shapes::ShapeRef.new(shape: PiiEntityType)
863
+
825
864
  ListOfSyntaxTokens.member = Shapes::ShapeRef.new(shape: SyntaxToken)
826
865
 
866
+ ListPiiEntitiesDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionJobFilter, location_name: "Filter"))
867
+ ListPiiEntitiesDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
868
+ ListPiiEntitiesDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
869
+ ListPiiEntitiesDetectionJobsRequest.struct_class = Types::ListPiiEntitiesDetectionJobsRequest
870
+
871
+ ListPiiEntitiesDetectionJobsResponse.add_member(:pii_entities_detection_job_properties_list, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionJobPropertiesList, location_name: "PiiEntitiesDetectionJobPropertiesList"))
872
+ ListPiiEntitiesDetectionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
873
+ ListPiiEntitiesDetectionJobsResponse.struct_class = Types::ListPiiEntitiesDetectionJobsResponse
874
+
827
875
  ListSentimentDetectionJobsRequest.add_member(:filter, Shapes::ShapeRef.new(shape: SentimentDetectionJobFilter, location_name: "Filter"))
828
876
  ListSentimentDetectionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
829
877
  ListSentimentDetectionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsInteger, location_name: "MaxResults"))
@@ -857,6 +905,43 @@ module Aws::Comprehend
857
905
  PartOfSpeechTag.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
858
906
  PartOfSpeechTag.struct_class = Types::PartOfSpeechTag
859
907
 
908
+ PiiEntitiesDetectionJobFilter.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
909
+ PiiEntitiesDetectionJobFilter.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
910
+ PiiEntitiesDetectionJobFilter.add_member(:submit_time_before, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeBefore"))
911
+ PiiEntitiesDetectionJobFilter.add_member(:submit_time_after, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTimeAfter"))
912
+ PiiEntitiesDetectionJobFilter.struct_class = Types::PiiEntitiesDetectionJobFilter
913
+
914
+ PiiEntitiesDetectionJobProperties.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
915
+ PiiEntitiesDetectionJobProperties.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
916
+ PiiEntitiesDetectionJobProperties.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
917
+ PiiEntitiesDetectionJobProperties.add_member(:message, Shapes::ShapeRef.new(shape: AnyLengthString, location_name: "Message"))
918
+ PiiEntitiesDetectionJobProperties.add_member(:submit_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SubmitTime"))
919
+ PiiEntitiesDetectionJobProperties.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTime"))
920
+ PiiEntitiesDetectionJobProperties.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, location_name: "InputDataConfig"))
921
+ PiiEntitiesDetectionJobProperties.add_member(:output_data_config, Shapes::ShapeRef.new(shape: PiiOutputDataConfig, location_name: "OutputDataConfig"))
922
+ PiiEntitiesDetectionJobProperties.add_member(:redaction_config, Shapes::ShapeRef.new(shape: RedactionConfig, location_name: "RedactionConfig"))
923
+ PiiEntitiesDetectionJobProperties.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
924
+ PiiEntitiesDetectionJobProperties.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "DataAccessRoleArn"))
925
+ PiiEntitiesDetectionJobProperties.add_member(:mode, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionMode, location_name: "Mode"))
926
+ PiiEntitiesDetectionJobProperties.struct_class = Types::PiiEntitiesDetectionJobProperties
927
+
928
+ PiiEntitiesDetectionJobPropertiesList.member = Shapes::ShapeRef.new(shape: PiiEntitiesDetectionJobProperties)
929
+
930
+ PiiEntity.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
931
+ PiiEntity.add_member(:type, Shapes::ShapeRef.new(shape: PiiEntityType, location_name: "Type"))
932
+ PiiEntity.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
933
+ PiiEntity.add_member(:end_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "EndOffset"))
934
+ PiiEntity.struct_class = Types::PiiEntity
935
+
936
+ PiiOutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "S3Uri"))
937
+ PiiOutputDataConfig.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
938
+ PiiOutputDataConfig.struct_class = Types::PiiOutputDataConfig
939
+
940
+ RedactionConfig.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: ListOfPiiEntityTypes, location_name: "PiiEntityTypes"))
941
+ RedactionConfig.add_member(:mask_mode, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionMaskMode, location_name: "MaskMode"))
942
+ RedactionConfig.add_member(:mask_character, Shapes::ShapeRef.new(shape: MaskCharacter, location_name: "MaskCharacter"))
943
+ RedactionConfig.struct_class = Types::RedactionConfig
944
+
860
945
  ResourceInUseException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
861
946
  ResourceInUseException.struct_class = Types::ResourceInUseException
862
947
 
@@ -955,6 +1040,20 @@ module Aws::Comprehend
955
1040
  StartKeyPhrasesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
956
1041
  StartKeyPhrasesDetectionJobResponse.struct_class = Types::StartKeyPhrasesDetectionJobResponse
957
1042
 
1043
+ StartPiiEntitiesDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
1044
+ StartPiiEntitiesDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
1045
+ StartPiiEntitiesDetectionJobRequest.add_member(:mode, Shapes::ShapeRef.new(shape: PiiEntitiesDetectionMode, required: true, location_name: "Mode"))
1046
+ StartPiiEntitiesDetectionJobRequest.add_member(:redaction_config, Shapes::ShapeRef.new(shape: RedactionConfig, location_name: "RedactionConfig"))
1047
+ StartPiiEntitiesDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
1048
+ StartPiiEntitiesDetectionJobRequest.add_member(:job_name, Shapes::ShapeRef.new(shape: JobName, location_name: "JobName"))
1049
+ StartPiiEntitiesDetectionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode"))
1050
+ StartPiiEntitiesDetectionJobRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestTokenString, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
1051
+ StartPiiEntitiesDetectionJobRequest.struct_class = Types::StartPiiEntitiesDetectionJobRequest
1052
+
1053
+ StartPiiEntitiesDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
1054
+ StartPiiEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1055
+ StartPiiEntitiesDetectionJobResponse.struct_class = Types::StartPiiEntitiesDetectionJobResponse
1056
+
958
1057
  StartSentimentDetectionJobRequest.add_member(:input_data_config, Shapes::ShapeRef.new(shape: InputDataConfig, required: true, location_name: "InputDataConfig"))
959
1058
  StartSentimentDetectionJobRequest.add_member(:output_data_config, Shapes::ShapeRef.new(shape: OutputDataConfig, required: true, location_name: "OutputDataConfig"))
960
1059
  StartSentimentDetectionJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "DataAccessRoleArn"))
@@ -1004,6 +1103,13 @@ module Aws::Comprehend
1004
1103
  StopKeyPhrasesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1005
1104
  StopKeyPhrasesDetectionJobResponse.struct_class = Types::StopKeyPhrasesDetectionJobResponse
1006
1105
 
1106
+ StopPiiEntitiesDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
1107
+ StopPiiEntitiesDetectionJobRequest.struct_class = Types::StopPiiEntitiesDetectionJobRequest
1108
+
1109
+ StopPiiEntitiesDetectionJobResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "JobId"))
1110
+ StopPiiEntitiesDetectionJobResponse.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "JobStatus"))
1111
+ StopPiiEntitiesDetectionJobResponse.struct_class = Types::StopPiiEntitiesDetectionJobResponse
1112
+
1007
1113
  StopSentimentDetectionJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, required: true, location_name: "JobId"))
1008
1114
  StopSentimentDetectionJobRequest.struct_class = Types::StopSentimentDetectionJobRequest
1009
1115
 
@@ -1365,6 +1471,18 @@ module Aws::Comprehend
1365
1471
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1366
1472
  end)
1367
1473
 
1474
+ api.add_operation(:describe_pii_entities_detection_job, Seahorse::Model::Operation.new.tap do |o|
1475
+ o.name = "DescribePiiEntitiesDetectionJob"
1476
+ o.http_method = "POST"
1477
+ o.http_request_uri = "/"
1478
+ o.input = Shapes::ShapeRef.new(shape: DescribePiiEntitiesDetectionJobRequest)
1479
+ o.output = Shapes::ShapeRef.new(shape: DescribePiiEntitiesDetectionJobResponse)
1480
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1481
+ o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
1482
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1483
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1484
+ end)
1485
+
1368
1486
  api.add_operation(:describe_sentiment_detection_job, Seahorse::Model::Operation.new.tap do |o|
1369
1487
  o.name = "DescribeSentimentDetectionJob"
1370
1488
  o.http_method = "POST"
@@ -1425,6 +1543,18 @@ module Aws::Comprehend
1425
1543
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1426
1544
  end)
1427
1545
 
1546
+ api.add_operation(:detect_pii_entities, Seahorse::Model::Operation.new.tap do |o|
1547
+ o.name = "DetectPiiEntities"
1548
+ o.http_method = "POST"
1549
+ o.http_request_uri = "/"
1550
+ o.input = Shapes::ShapeRef.new(shape: DetectPiiEntitiesRequest)
1551
+ o.output = Shapes::ShapeRef.new(shape: DetectPiiEntitiesResponse)
1552
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1553
+ o.errors << Shapes::ShapeRef.new(shape: TextSizeLimitExceededException)
1554
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedLanguageException)
1555
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1556
+ end)
1557
+
1428
1558
  api.add_operation(:detect_sentiment, Seahorse::Model::Operation.new.tap do |o|
1429
1559
  o.name = "DetectSentiment"
1430
1560
  o.http_method = "POST"
@@ -1568,6 +1698,18 @@ module Aws::Comprehend
1568
1698
  )
1569
1699
  end)
1570
1700
 
1701
+ api.add_operation(:list_pii_entities_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1702
+ o.name = "ListPiiEntitiesDetectionJobs"
1703
+ o.http_method = "POST"
1704
+ o.http_request_uri = "/"
1705
+ o.input = Shapes::ShapeRef.new(shape: ListPiiEntitiesDetectionJobsRequest)
1706
+ o.output = Shapes::ShapeRef.new(shape: ListPiiEntitiesDetectionJobsResponse)
1707
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1708
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1709
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFilterException)
1710
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1711
+ end)
1712
+
1571
1713
  api.add_operation(:list_sentiment_detection_jobs, Seahorse::Model::Operation.new.tap do |o|
1572
1714
  o.name = "ListSentimentDetectionJobs"
1573
1715
  o.http_method = "POST"
@@ -1667,6 +1809,18 @@ module Aws::Comprehend
1667
1809
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1668
1810
  end)
1669
1811
 
1812
+ api.add_operation(:start_pii_entities_detection_job, Seahorse::Model::Operation.new.tap do |o|
1813
+ o.name = "StartPiiEntitiesDetectionJob"
1814
+ o.http_method = "POST"
1815
+ o.http_request_uri = "/"
1816
+ o.input = Shapes::ShapeRef.new(shape: StartPiiEntitiesDetectionJobRequest)
1817
+ o.output = Shapes::ShapeRef.new(shape: StartPiiEntitiesDetectionJobResponse)
1818
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1819
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1820
+ o.errors << Shapes::ShapeRef.new(shape: KmsKeyValidationException)
1821
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1822
+ end)
1823
+
1670
1824
  api.add_operation(:start_sentiment_detection_job, Seahorse::Model::Operation.new.tap do |o|
1671
1825
  o.name = "StartSentimentDetectionJob"
1672
1826
  o.http_method = "POST"
@@ -1724,6 +1878,17 @@ module Aws::Comprehend
1724
1878
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1725
1879
  end)
1726
1880
 
1881
+ api.add_operation(:stop_pii_entities_detection_job, Seahorse::Model::Operation.new.tap do |o|
1882
+ o.name = "StopPiiEntitiesDetectionJob"
1883
+ o.http_method = "POST"
1884
+ o.http_request_uri = "/"
1885
+ o.input = Shapes::ShapeRef.new(shape: StopPiiEntitiesDetectionJobRequest)
1886
+ o.output = Shapes::ShapeRef.new(shape: StopPiiEntitiesDetectionJobResponse)
1887
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1888
+ o.errors << Shapes::ShapeRef.new(shape: JobNotFoundException)
1889
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1890
+ end)
1891
+
1727
1892
  api.add_operation(:stop_sentiment_detection_job, Seahorse::Model::Operation.new.tap do |o|
1728
1893
  o.name = "StopSentimentDetectionJob"
1729
1894
  o.http_method = "POST"
@@ -1225,6 +1225,38 @@ module Aws::Comprehend
1225
1225
  include Aws::Structure
1226
1226
  end
1227
1227
 
1228
+ # @note When making an API call, you may pass DescribePiiEntitiesDetectionJobRequest
1229
+ # data as a hash:
1230
+ #
1231
+ # {
1232
+ # job_id: "JobId", # required
1233
+ # }
1234
+ #
1235
+ # @!attribute [rw] job_id
1236
+ # The identifier that Amazon Comprehend generated for the job. The
1237
+ # operation returns this identifier in its response.
1238
+ # @return [String]
1239
+ #
1240
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribePiiEntitiesDetectionJobRequest AWS API Documentation
1241
+ #
1242
+ class DescribePiiEntitiesDetectionJobRequest < Struct.new(
1243
+ :job_id)
1244
+ SENSITIVE = []
1245
+ include Aws::Structure
1246
+ end
1247
+
1248
+ # @!attribute [rw] pii_entities_detection_job_properties
1249
+ # Provides information about a PII entities detection job.
1250
+ # @return [Types::PiiEntitiesDetectionJobProperties]
1251
+ #
1252
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribePiiEntitiesDetectionJobResponse AWS API Documentation
1253
+ #
1254
+ class DescribePiiEntitiesDetectionJobResponse < Struct.new(
1255
+ :pii_entities_detection_job_properties)
1256
+ SENSITIVE = []
1257
+ include Aws::Structure
1258
+ end
1259
+
1228
1260
  # @note When making an API call, you may pass DescribeSentimentDetectionJobRequest
1229
1261
  # data as a hash:
1230
1262
  #
@@ -1440,6 +1472,47 @@ module Aws::Comprehend
1440
1472
  include Aws::Structure
1441
1473
  end
1442
1474
 
1475
+ # @note When making an API call, you may pass DetectPiiEntitiesRequest
1476
+ # data as a hash:
1477
+ #
1478
+ # {
1479
+ # text: "String", # required
1480
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
1481
+ # }
1482
+ #
1483
+ # @!attribute [rw] text
1484
+ # A UTF-8 text string. Each string must contain fewer that 5,000 bytes
1485
+ # of UTF-8 encoded characters.
1486
+ # @return [String]
1487
+ #
1488
+ # @!attribute [rw] language_code
1489
+ # The language of the input documents.
1490
+ # @return [String]
1491
+ #
1492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectPiiEntitiesRequest AWS API Documentation
1493
+ #
1494
+ class DetectPiiEntitiesRequest < Struct.new(
1495
+ :text,
1496
+ :language_code)
1497
+ SENSITIVE = []
1498
+ include Aws::Structure
1499
+ end
1500
+
1501
+ # @!attribute [rw] entities
1502
+ # A collection of PII entities identified in the input text. For each
1503
+ # entity, the response provides the entity type, where the entity text
1504
+ # begins and ends, and the level of confidence that Amazon Comprehend
1505
+ # has in the detection.
1506
+ # @return [Array<Types::PiiEntity>]
1507
+ #
1508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectPiiEntitiesResponse AWS API Documentation
1509
+ #
1510
+ class DetectPiiEntitiesResponse < Struct.new(
1511
+ :entities)
1512
+ SENSITIVE = []
1513
+ include Aws::Structure
1514
+ end
1515
+
1443
1516
  # @note When making an API call, you may pass DetectSentimentRequest
1444
1517
  # data as a hash:
1445
1518
  #
@@ -3481,6 +3554,61 @@ module Aws::Comprehend
3481
3554
  include Aws::Structure
3482
3555
  end
3483
3556
 
3557
+ # @note When making an API call, you may pass ListPiiEntitiesDetectionJobsRequest
3558
+ # data as a hash:
3559
+ #
3560
+ # {
3561
+ # filter: {
3562
+ # job_name: "JobName",
3563
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
3564
+ # submit_time_before: Time.now,
3565
+ # submit_time_after: Time.now,
3566
+ # },
3567
+ # next_token: "String",
3568
+ # max_results: 1,
3569
+ # }
3570
+ #
3571
+ # @!attribute [rw] filter
3572
+ # Filters the jobs that are returned. You can filter jobs on their
3573
+ # name, status, or the date and time that they were submitted. You can
3574
+ # only set one filter at a time.
3575
+ # @return [Types::PiiEntitiesDetectionJobFilter]
3576
+ #
3577
+ # @!attribute [rw] next_token
3578
+ # Identifies the next page of results to return.
3579
+ # @return [String]
3580
+ #
3581
+ # @!attribute [rw] max_results
3582
+ # The maximum number of results to return in each page.
3583
+ # @return [Integer]
3584
+ #
3585
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListPiiEntitiesDetectionJobsRequest AWS API Documentation
3586
+ #
3587
+ class ListPiiEntitiesDetectionJobsRequest < Struct.new(
3588
+ :filter,
3589
+ :next_token,
3590
+ :max_results)
3591
+ SENSITIVE = []
3592
+ include Aws::Structure
3593
+ end
3594
+
3595
+ # @!attribute [rw] pii_entities_detection_job_properties_list
3596
+ # A list containing the properties of each job that is returned.
3597
+ # @return [Array<Types::PiiEntitiesDetectionJobProperties>]
3598
+ #
3599
+ # @!attribute [rw] next_token
3600
+ # Identifies the next page of results to return.
3601
+ # @return [String]
3602
+ #
3603
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListPiiEntitiesDetectionJobsResponse AWS API Documentation
3604
+ #
3605
+ class ListPiiEntitiesDetectionJobsResponse < Struct.new(
3606
+ :pii_entities_detection_job_properties_list,
3607
+ :next_token)
3608
+ SENSITIVE = []
3609
+ include Aws::Structure
3610
+ end
3611
+
3484
3612
  # @note When making an API call, you may pass ListSentimentDetectionJobsRequest
3485
3613
  # data as a hash:
3486
3614
  #
@@ -3707,6 +3835,228 @@ module Aws::Comprehend
3707
3835
  include Aws::Structure
3708
3836
  end
3709
3837
 
3838
+ # Provides information for filtering a list of PII entity detection
3839
+ # jobs.
3840
+ #
3841
+ # @note When making an API call, you may pass PiiEntitiesDetectionJobFilter
3842
+ # data as a hash:
3843
+ #
3844
+ # {
3845
+ # job_name: "JobName",
3846
+ # job_status: "SUBMITTED", # accepts SUBMITTED, IN_PROGRESS, COMPLETED, FAILED, STOP_REQUESTED, STOPPED
3847
+ # submit_time_before: Time.now,
3848
+ # submit_time_after: Time.now,
3849
+ # }
3850
+ #
3851
+ # @!attribute [rw] job_name
3852
+ # Filters on the name of the job.
3853
+ # @return [String]
3854
+ #
3855
+ # @!attribute [rw] job_status
3856
+ # Filters the list of jobs based on job status. Returns only jobs with
3857
+ # the specified status.
3858
+ # @return [String]
3859
+ #
3860
+ # @!attribute [rw] submit_time_before
3861
+ # Filters the list of jobs based on the time that the job was
3862
+ # submitted for processing. Returns only jobs submitted before the
3863
+ # specified time. Jobs are returned in ascending order, oldest to
3864
+ # newest.
3865
+ # @return [Time]
3866
+ #
3867
+ # @!attribute [rw] submit_time_after
3868
+ # Filters the list of jobs based on the time that the job was
3869
+ # submitted for processing. Returns only jobs submitted after the
3870
+ # specified time. Jobs are returned in descending order, newest to
3871
+ # oldest.
3872
+ # @return [Time]
3873
+ #
3874
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PiiEntitiesDetectionJobFilter AWS API Documentation
3875
+ #
3876
+ class PiiEntitiesDetectionJobFilter < Struct.new(
3877
+ :job_name,
3878
+ :job_status,
3879
+ :submit_time_before,
3880
+ :submit_time_after)
3881
+ SENSITIVE = []
3882
+ include Aws::Structure
3883
+ end
3884
+
3885
+ # Provides information about a PII entities detection job.
3886
+ #
3887
+ # @!attribute [rw] job_id
3888
+ # The identifier assigned to the PII entities detection job.
3889
+ # @return [String]
3890
+ #
3891
+ # @!attribute [rw] job_name
3892
+ # The name that you assigned the PII entities detection job.
3893
+ # @return [String]
3894
+ #
3895
+ # @!attribute [rw] job_status
3896
+ # The current status of the PII entities detection job. If the status
3897
+ # is `FAILED`, the `Message` field shows the reason for the failure.
3898
+ # @return [String]
3899
+ #
3900
+ # @!attribute [rw] message
3901
+ # A description of the status of a job.
3902
+ # @return [String]
3903
+ #
3904
+ # @!attribute [rw] submit_time
3905
+ # The time that the PII entities detection job was submitted for
3906
+ # processing.
3907
+ # @return [Time]
3908
+ #
3909
+ # @!attribute [rw] end_time
3910
+ # The time that the PII entities detection job completed.
3911
+ # @return [Time]
3912
+ #
3913
+ # @!attribute [rw] input_data_config
3914
+ # The input properties for a PII entities detection job.
3915
+ # @return [Types::InputDataConfig]
3916
+ #
3917
+ # @!attribute [rw] output_data_config
3918
+ # The output data configuration that you supplied when you created the
3919
+ # PII entities detection job.
3920
+ # @return [Types::PiiOutputDataConfig]
3921
+ #
3922
+ # @!attribute [rw] redaction_config
3923
+ # Provides configuration parameters for PII entity redaction.
3924
+ #
3925
+ # This parameter is required if you set the `Mode` parameter to
3926
+ # `ONLY_REDACTION`. In that case, you must provide a `RedactionConfig`
3927
+ # definition that includes the `PiiEntityTypes` parameter.
3928
+ # @return [Types::RedactionConfig]
3929
+ #
3930
+ # @!attribute [rw] language_code
3931
+ # The language code of the input documents
3932
+ # @return [String]
3933
+ #
3934
+ # @!attribute [rw] data_access_role_arn
3935
+ # The Amazon Resource Name (ARN) that gives Amazon Comprehend read
3936
+ # access to your input data.
3937
+ # @return [String]
3938
+ #
3939
+ # @!attribute [rw] mode
3940
+ # Specifies whether the output provides the locations (offsets) of PII
3941
+ # entities or a file in which PII entities are redacted.
3942
+ # @return [String]
3943
+ #
3944
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PiiEntitiesDetectionJobProperties AWS API Documentation
3945
+ #
3946
+ class PiiEntitiesDetectionJobProperties < Struct.new(
3947
+ :job_id,
3948
+ :job_name,
3949
+ :job_status,
3950
+ :message,
3951
+ :submit_time,
3952
+ :end_time,
3953
+ :input_data_config,
3954
+ :output_data_config,
3955
+ :redaction_config,
3956
+ :language_code,
3957
+ :data_access_role_arn,
3958
+ :mode)
3959
+ SENSITIVE = []
3960
+ include Aws::Structure
3961
+ end
3962
+
3963
+ # Provides information about a PII entity.
3964
+ #
3965
+ # @!attribute [rw] score
3966
+ # The level of confidence that Amazon Comprehend has in the accuracy
3967
+ # of the detection.
3968
+ # @return [Float]
3969
+ #
3970
+ # @!attribute [rw] type
3971
+ # The entity's type.
3972
+ # @return [String]
3973
+ #
3974
+ # @!attribute [rw] begin_offset
3975
+ # A character offset in the input text that shows where the PII entity
3976
+ # begins (the first character is at position 0). The offset returns
3977
+ # the position of each UTF-8 code point in the string. A *code point*
3978
+ # is the abstract character from a particular graphical
3979
+ # representation. For example, a multi-byte UTF-8 character maps to a
3980
+ # single code point.
3981
+ # @return [Integer]
3982
+ #
3983
+ # @!attribute [rw] end_offset
3984
+ # A character offset in the input text that shows where the PII entity
3985
+ # ends. The offset returns the position of each UTF-8 code point in
3986
+ # the string. A *code point* is the abstract character from a
3987
+ # particular graphical representation. For example, a multi-byte UTF-8
3988
+ # character maps to a single code point.
3989
+ # @return [Integer]
3990
+ #
3991
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PiiEntity AWS API Documentation
3992
+ #
3993
+ class PiiEntity < Struct.new(
3994
+ :score,
3995
+ :type,
3996
+ :begin_offset,
3997
+ :end_offset)
3998
+ SENSITIVE = []
3999
+ include Aws::Structure
4000
+ end
4001
+
4002
+ # Provides configuration parameters for the output of PII entity
4003
+ # detection jobs.
4004
+ #
4005
+ # @!attribute [rw] s3_uri
4006
+ # When you use the `PiiOutputDataConfig` object with asynchronous
4007
+ # operations, you specify the Amazon S3 location where you want to
4008
+ # write the output data.
4009
+ # @return [String]
4010
+ #
4011
+ # @!attribute [rw] kms_key_id
4012
+ # ID for the AWS Key Management Service (KMS) key that Amazon
4013
+ # Comprehend uses to encrypt the output results from an analysis job.
4014
+ # @return [String]
4015
+ #
4016
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/PiiOutputDataConfig AWS API Documentation
4017
+ #
4018
+ class PiiOutputDataConfig < Struct.new(
4019
+ :s3_uri,
4020
+ :kms_key_id)
4021
+ SENSITIVE = []
4022
+ include Aws::Structure
4023
+ end
4024
+
4025
+ # Provides configuration parameters for PII entity redaction.
4026
+ #
4027
+ # @note When making an API call, you may pass RedactionConfig
4028
+ # data as a hash:
4029
+ #
4030
+ # {
4031
+ # pii_entity_types: ["BANK_ACCOUNT_NUMBER"], # accepts BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL, AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS, MAC_ADDRESS, ALL
4032
+ # mask_mode: "MASK", # accepts MASK, REPLACE_WITH_PII_ENTITY_TYPE
4033
+ # mask_character: "MaskCharacter",
4034
+ # }
4035
+ #
4036
+ # @!attribute [rw] pii_entity_types
4037
+ # An array of the types of PII entities that Amazon Comprehend detects
4038
+ # in the input text for your request.
4039
+ # @return [Array<String>]
4040
+ #
4041
+ # @!attribute [rw] mask_mode
4042
+ # Specifies whether the PII entity is redacted with the mask character
4043
+ # or the entity type.
4044
+ # @return [String]
4045
+ #
4046
+ # @!attribute [rw] mask_character
4047
+ # A character that replaces each character in the redacted PII entity.
4048
+ # @return [String]
4049
+ #
4050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/RedactionConfig AWS API Documentation
4051
+ #
4052
+ class RedactionConfig < Struct.new(
4053
+ :pii_entity_types,
4054
+ :mask_mode,
4055
+ :mask_character)
4056
+ SENSITIVE = []
4057
+ include Aws::Structure
4058
+ end
4059
+
3710
4060
  # The specified resource name is already in use. Use a different name
3711
4061
  # and try your request again.
3712
4062
  #
@@ -4440,6 +4790,106 @@ module Aws::Comprehend
4440
4790
  include Aws::Structure
4441
4791
  end
4442
4792
 
4793
+ # @note When making an API call, you may pass StartPiiEntitiesDetectionJobRequest
4794
+ # data as a hash:
4795
+ #
4796
+ # {
4797
+ # input_data_config: { # required
4798
+ # s3_uri: "S3Uri", # required
4799
+ # input_format: "ONE_DOC_PER_FILE", # accepts ONE_DOC_PER_FILE, ONE_DOC_PER_LINE
4800
+ # },
4801
+ # output_data_config: { # required
4802
+ # s3_uri: "S3Uri", # required
4803
+ # kms_key_id: "KmsKeyId",
4804
+ # },
4805
+ # mode: "ONLY_REDACTION", # required, accepts ONLY_REDACTION, ONLY_OFFSETS
4806
+ # redaction_config: {
4807
+ # pii_entity_types: ["BANK_ACCOUNT_NUMBER"], # accepts BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL, AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS, MAC_ADDRESS, ALL
4808
+ # mask_mode: "MASK", # accepts MASK, REPLACE_WITH_PII_ENTITY_TYPE
4809
+ # mask_character: "MaskCharacter",
4810
+ # },
4811
+ # data_access_role_arn: "IamRoleArn", # required
4812
+ # job_name: "JobName",
4813
+ # language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
4814
+ # client_request_token: "ClientRequestTokenString",
4815
+ # }
4816
+ #
4817
+ # @!attribute [rw] input_data_config
4818
+ # The input properties for a PII entities detection job.
4819
+ # @return [Types::InputDataConfig]
4820
+ #
4821
+ # @!attribute [rw] output_data_config
4822
+ # Provides configuration parameters for the output of PII entity
4823
+ # detection jobs.
4824
+ # @return [Types::OutputDataConfig]
4825
+ #
4826
+ # @!attribute [rw] mode
4827
+ # Specifies whether the output provides the locations (offsets) of PII
4828
+ # entities or a file in which PII entities are redacted.
4829
+ # @return [String]
4830
+ #
4831
+ # @!attribute [rw] redaction_config
4832
+ # Provides configuration parameters for PII entity redaction.
4833
+ #
4834
+ # This parameter is required if you set the `Mode` parameter to
4835
+ # `ONLY_REDACTION`. In that case, you must provide a `RedactionConfig`
4836
+ # definition that includes the `PiiEntityTypes` parameter.
4837
+ # @return [Types::RedactionConfig]
4838
+ #
4839
+ # @!attribute [rw] data_access_role_arn
4840
+ # The Amazon Resource Name (ARN) of the AWS Identity and Access
4841
+ # Management (IAM) role that grants Amazon Comprehend read access to
4842
+ # your input data.
4843
+ # @return [String]
4844
+ #
4845
+ # @!attribute [rw] job_name
4846
+ # The identifier of the job.
4847
+ # @return [String]
4848
+ #
4849
+ # @!attribute [rw] language_code
4850
+ # The language of the input documents.
4851
+ # @return [String]
4852
+ #
4853
+ # @!attribute [rw] client_request_token
4854
+ # A unique identifier for the request. If you don't set the client
4855
+ # request token, Amazon Comprehend generates one.
4856
+ #
4857
+ # **A suitable default value is auto-generated.** You should normally
4858
+ # not need to pass this option.
4859
+ # @return [String]
4860
+ #
4861
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartPiiEntitiesDetectionJobRequest AWS API Documentation
4862
+ #
4863
+ class StartPiiEntitiesDetectionJobRequest < Struct.new(
4864
+ :input_data_config,
4865
+ :output_data_config,
4866
+ :mode,
4867
+ :redaction_config,
4868
+ :data_access_role_arn,
4869
+ :job_name,
4870
+ :language_code,
4871
+ :client_request_token)
4872
+ SENSITIVE = []
4873
+ include Aws::Structure
4874
+ end
4875
+
4876
+ # @!attribute [rw] job_id
4877
+ # The identifier generated for the job.
4878
+ # @return [String]
4879
+ #
4880
+ # @!attribute [rw] job_status
4881
+ # The status of the job.
4882
+ # @return [String]
4883
+ #
4884
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartPiiEntitiesDetectionJobResponse AWS API Documentation
4885
+ #
4886
+ class StartPiiEntitiesDetectionJobResponse < Struct.new(
4887
+ :job_id,
4888
+ :job_status)
4889
+ SENSITIVE = []
4890
+ include Aws::Structure
4891
+ end
4892
+
4443
4893
  # @note When making an API call, you may pass StartSentimentDetectionJobRequest
4444
4894
  # data as a hash:
4445
4895
  #
@@ -4807,6 +5257,42 @@ module Aws::Comprehend
4807
5257
  include Aws::Structure
4808
5258
  end
4809
5259
 
5260
+ # @note When making an API call, you may pass StopPiiEntitiesDetectionJobRequest
5261
+ # data as a hash:
5262
+ #
5263
+ # {
5264
+ # job_id: "JobId", # required
5265
+ # }
5266
+ #
5267
+ # @!attribute [rw] job_id
5268
+ # The identifier of the PII entities detection job to stop.
5269
+ # @return [String]
5270
+ #
5271
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopPiiEntitiesDetectionJobRequest AWS API Documentation
5272
+ #
5273
+ class StopPiiEntitiesDetectionJobRequest < Struct.new(
5274
+ :job_id)
5275
+ SENSITIVE = []
5276
+ include Aws::Structure
5277
+ end
5278
+
5279
+ # @!attribute [rw] job_id
5280
+ # The identifier of the PII entities detection job to stop.
5281
+ # @return [String]
5282
+ #
5283
+ # @!attribute [rw] job_status
5284
+ # The status of the PII entities detection job.
5285
+ # @return [String]
5286
+ #
5287
+ # @see http://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopPiiEntitiesDetectionJobResponse AWS API Documentation
5288
+ #
5289
+ class StopPiiEntitiesDetectionJobResponse < Struct.new(
5290
+ :job_id,
5291
+ :job_status)
5292
+ SENSITIVE = []
5293
+ include Aws::Structure
5294
+ end
5295
+
4810
5296
  # @note When making an API call, you may pass StopSentimentDetectionJobRequest
4811
5297
  # data as a hash:
4812
5298
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-comprehend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core