aws-sdk-comprehend 1.34.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 +4 -4
- data/lib/aws-sdk-comprehend.rb +3 -2
- data/lib/aws-sdk-comprehend/client.rb +313 -24
- data/lib/aws-sdk-comprehend/client_api.rb +184 -15
- data/lib/aws-sdk-comprehend/types.rb +553 -43
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb841e7f98bf2b40de5e3f385e3585ec64e29b61e921778971208d527886a5c9
|
4
|
+
data.tar.gz: 4e8687f7495e31d6c9a844ba6a29b1867cf91ecfba0b3bdd64be8e3fda8dfa88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24ee5c1f0fa7e826845c22538e65a110fc59a26b171a2fb47ca05ac5ddc050c09adae81ace2c086dca498f1a47cd6910cfd2630d221e8a8bd61ccaf57812060b
|
7
|
+
data.tar.gz: 0eccd1f090108d68ff3f208b0499112eea405e401966f6dff53174e29c71e1892cd530ce3bf9b0bcac977101a626e1f8dca1de1d0f04d909f67cc89640b50e19
|
data/lib/aws-sdk-comprehend.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-comprehend/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::Comprehend
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.39.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::Comprehend
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::Comprehend
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -344,7 +359,7 @@ module Aws::Comprehend
|
|
344
359
|
# @example Request syntax with placeholder values
|
345
360
|
#
|
346
361
|
# resp = client.batch_detect_dominant_language({
|
347
|
-
# text_list: ["
|
362
|
+
# text_list: ["CustomerInputString"], # required
|
348
363
|
# })
|
349
364
|
#
|
350
365
|
# @example Response structure
|
@@ -390,7 +405,7 @@ module Aws::Comprehend
|
|
390
405
|
# @example Request syntax with placeholder values
|
391
406
|
#
|
392
407
|
# resp = client.batch_detect_entities({
|
393
|
-
# text_list: ["
|
408
|
+
# text_list: ["CustomerInputString"], # required
|
394
409
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
395
410
|
# })
|
396
411
|
#
|
@@ -438,7 +453,7 @@ module Aws::Comprehend
|
|
438
453
|
# @example Request syntax with placeholder values
|
439
454
|
#
|
440
455
|
# resp = client.batch_detect_key_phrases({
|
441
|
-
# text_list: ["
|
456
|
+
# text_list: ["CustomerInputString"], # required
|
442
457
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
443
458
|
# })
|
444
459
|
#
|
@@ -487,7 +502,7 @@ module Aws::Comprehend
|
|
487
502
|
# @example Request syntax with placeholder values
|
488
503
|
#
|
489
504
|
# resp = client.batch_detect_sentiment({
|
490
|
-
# text_list: ["
|
505
|
+
# text_list: ["CustomerInputString"], # required
|
491
506
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
492
507
|
# })
|
493
508
|
#
|
@@ -537,7 +552,7 @@ module Aws::Comprehend
|
|
537
552
|
# @example Request syntax with placeholder values
|
538
553
|
#
|
539
554
|
# resp = client.batch_detect_syntax({
|
540
|
-
# text_list: ["
|
555
|
+
# text_list: ["CustomerInputString"], # required
|
541
556
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt
|
542
557
|
# })
|
543
558
|
#
|
@@ -584,7 +599,7 @@ module Aws::Comprehend
|
|
584
599
|
# @example Request syntax with placeholder values
|
585
600
|
#
|
586
601
|
# resp = client.classify_document({
|
587
|
-
# text: "
|
602
|
+
# text: "CustomerInputString", # required
|
588
603
|
# endpoint_arn: "DocumentClassifierEndpointArn", # required
|
589
604
|
# })
|
590
605
|
#
|
@@ -607,7 +622,7 @@ module Aws::Comprehend
|
|
607
622
|
end
|
608
623
|
|
609
624
|
# Creates a new document classifier that you can use to categorize
|
610
|
-
# documents. To create a classifier you provide a set of training
|
625
|
+
# documents. To create a classifier, you provide a set of training
|
611
626
|
# documents that labeled with the categories that you want to use. After
|
612
627
|
# the classifier is trained you can use it to categorize a set of
|
613
628
|
# labeled documents into the categories. For more information, see
|
@@ -817,8 +832,10 @@ module Aws::Comprehend
|
|
817
832
|
# not need to pass this option.**
|
818
833
|
#
|
819
834
|
# @option params [required, String] :language_code
|
820
|
-
#
|
821
|
-
#
|
835
|
+
# You can specify any of the following languages supported by Amazon
|
836
|
+
# Comprehend: English ("en"), Spanish ("es"), French ("fr"),
|
837
|
+
# Italian ("it"), German ("de"), or Portuguese ("pt"). All
|
838
|
+
# documents must be in the same language.
|
822
839
|
#
|
823
840
|
# @option params [String] :volume_kms_key_id
|
824
841
|
# ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
|
@@ -1317,6 +1334,52 @@ module Aws::Comprehend
|
|
1317
1334
|
req.send_request(options)
|
1318
1335
|
end
|
1319
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
|
+
|
1320
1383
|
# Gets the properties associated with a sentiment detection job. Use
|
1321
1384
|
# this operation to get the status of a detection job.
|
1322
1385
|
#
|
@@ -1427,7 +1490,7 @@ module Aws::Comprehend
|
|
1427
1490
|
# @example Request syntax with placeholder values
|
1428
1491
|
#
|
1429
1492
|
# resp = client.detect_dominant_language({
|
1430
|
-
# text: "
|
1493
|
+
# text: "CustomerInputString", # required
|
1431
1494
|
# })
|
1432
1495
|
#
|
1433
1496
|
# @example Response structure
|
@@ -1452,11 +1515,25 @@ module Aws::Comprehend
|
|
1452
1515
|
# A UTF-8 text string. Each string must contain fewer that 5,000 bytes
|
1453
1516
|
# of UTF-8 encoded characters.
|
1454
1517
|
#
|
1455
|
-
# @option params [
|
1518
|
+
# @option params [String] :language_code
|
1456
1519
|
# The language of the input documents. You can specify any of the
|
1457
1520
|
# primary languages supported by Amazon Comprehend. All documents must
|
1458
1521
|
# be in the same language.
|
1459
1522
|
#
|
1523
|
+
# If your request includes the endpoint for a custom entity recognition
|
1524
|
+
# model, Amazon Comprehend uses the language of your custom model, and
|
1525
|
+
# it ignores any language code that you specify here.
|
1526
|
+
#
|
1527
|
+
# @option params [String] :endpoint_arn
|
1528
|
+
# The Amazon Resource Name of an endpoint that is associated with a
|
1529
|
+
# custom entity recognition model. Provide an endpoint if you want to
|
1530
|
+
# detect entities by using your own custom model instead of the default
|
1531
|
+
# model that is used by Amazon Comprehend.
|
1532
|
+
#
|
1533
|
+
# If you specify an endpoint, Amazon Comprehend uses the language of
|
1534
|
+
# your custom model, and it ignores any language code that you provide
|
1535
|
+
# in your request.
|
1536
|
+
#
|
1460
1537
|
# @return [Types::DetectEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1461
1538
|
#
|
1462
1539
|
# * {Types::DetectEntitiesResponse#entities #entities} => Array<Types::Entity>
|
@@ -1464,8 +1541,9 @@ module Aws::Comprehend
|
|
1464
1541
|
# @example Request syntax with placeholder values
|
1465
1542
|
#
|
1466
1543
|
# resp = client.detect_entities({
|
1467
|
-
# text: "
|
1468
|
-
# language_code: "en", #
|
1544
|
+
# text: "CustomerInputString", # required
|
1545
|
+
# language_code: "en", # accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
1546
|
+
# endpoint_arn: "EntityRecognizerEndpointArn",
|
1469
1547
|
# })
|
1470
1548
|
#
|
1471
1549
|
# @example Response structure
|
@@ -1504,7 +1582,7 @@ module Aws::Comprehend
|
|
1504
1582
|
# @example Request syntax with placeholder values
|
1505
1583
|
#
|
1506
1584
|
# resp = client.detect_key_phrases({
|
1507
|
-
# text: "
|
1585
|
+
# text: "CustomerInputString", # required
|
1508
1586
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
1509
1587
|
# })
|
1510
1588
|
#
|
@@ -1525,6 +1603,44 @@ module Aws::Comprehend
|
|
1525
1603
|
req.send_request(options)
|
1526
1604
|
end
|
1527
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
|
+
|
1528
1644
|
# Inspects text and returns an inference of the prevailing sentiment
|
1529
1645
|
# (`POSITIVE`, `NEUTRAL`, `MIXED`, or `NEGATIVE`).
|
1530
1646
|
#
|
@@ -1545,7 +1661,7 @@ module Aws::Comprehend
|
|
1545
1661
|
# @example Request syntax with placeholder values
|
1546
1662
|
#
|
1547
1663
|
# resp = client.detect_sentiment({
|
1548
|
-
# text: "
|
1664
|
+
# text: "CustomerInputString", # required
|
1549
1665
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
|
1550
1666
|
# })
|
1551
1667
|
#
|
@@ -1586,7 +1702,7 @@ module Aws::Comprehend
|
|
1586
1702
|
# @example Request syntax with placeholder values
|
1587
1703
|
#
|
1588
1704
|
# resp = client.detect_syntax({
|
1589
|
-
# text: "
|
1705
|
+
# text: "CustomerInputString", # required
|
1590
1706
|
# language_code: "en", # required, accepts en, es, fr, de, it, pt
|
1591
1707
|
# })
|
1592
1708
|
#
|
@@ -2086,6 +2202,68 @@ module Aws::Comprehend
|
|
2086
2202
|
req.send_request(options)
|
2087
2203
|
end
|
2088
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
|
+
|
2089
2267
|
# Gets a list of sentiment detection jobs that you have submitted.
|
2090
2268
|
#
|
2091
2269
|
# @option params [Types::SentimentDetectionJobFilter] :filter
|
@@ -2630,6 +2808,87 @@ module Aws::Comprehend
|
|
2630
2808
|
req.send_request(options)
|
2631
2809
|
end
|
2632
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
|
+
|
2633
2892
|
# Starts an asynchronous sentiment detection job for a collection of
|
2634
2893
|
# documents. use the operation to track the status of a job.
|
2635
2894
|
#
|
@@ -2947,6 +3206,36 @@ module Aws::Comprehend
|
|
2947
3206
|
req.send_request(options)
|
2948
3207
|
end
|
2949
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
|
+
|
2950
3239
|
# Stops a sentiment detection job in progress.
|
2951
3240
|
#
|
2952
3241
|
# If the job state is `IN_PROGRESS` the job is marked for termination
|
@@ -3158,7 +3447,7 @@ module Aws::Comprehend
|
|
3158
3447
|
params: params,
|
3159
3448
|
config: config)
|
3160
3449
|
context[:gem_name] = 'aws-sdk-comprehend'
|
3161
|
-
context[:gem_version] = '1.
|
3450
|
+
context[:gem_version] = '1.39.0'
|
3162
3451
|
Seahorse::Client::Request.new(handlers, context)
|
3163
3452
|
end
|
3164
3453
|
|