aws-sdk-kendra 1.15.0 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c77b5b18cc4e0ecb4bcc79d4ea634e97ab6ab111fbe61b0d4e9fc1e7a0c4eb4e
4
- data.tar.gz: cd63a111a6d43ce21f5529422159df0105676114a7c74fac2589486caf988a1f
3
+ metadata.gz: 79f5cd534e7f42898247529121cbbf6405d2fbeed157733c2bd46bebaa47037e
4
+ data.tar.gz: 7844dc337245b7eb71dcdccb10651a6ed66af0276a8006240a22e27190402980
5
5
  SHA512:
6
- metadata.gz: 6b4292ac03075fe1c885c6887daa5340c5d4b448c3fea5a30cd50b0fef4f1a3a457d8f5223b187a7eb0303de713c43e8f8ce7dc8e3a6fc3365622fabf30e0843
7
- data.tar.gz: 4a0571ccd44824781a50c68bbd7962caa7261f57a77b191297ba13dbff2d353a93c672237c45db93728ffe8bed6c073fa4fdb81189a889954510c43ee383a76d
6
+ metadata.gz: 2acf956bf5d708e4e1f681057049fa0b74a67de236fb08a25e858c4456f66125efb086cb9bcb669aedcd36e42b812f6a154a66abbe2a0acf80b8b9b83bcfef00
7
+ data.tar.gz: 90146acdc630dee44a92654af8d2068f2ea12e7ea15102666989e9895f7b059a49ff15cf7dea2f1fd0840703f24c3c85692c592ce4a80d569c86f91c330cef0e
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-kendra/customizations'
48
48
  # @!group service
49
49
  module Aws::Kendra
50
50
 
51
- GEM_VERSION = '1.15.0'
51
+ GEM_VERSION = '1.20.0'
52
52
 
53
53
  end
@@ -566,7 +566,7 @@ module Aws::Kendra
566
566
  # resp = client.create_data_source({
567
567
  # name: "DataSourceName", # required
568
568
  # index_id: "IndexId", # required
569
- # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM
569
+ # type: "S3", # required, accepts S3, SHAREPOINT, DATABASE, SALESFORCE, ONEDRIVE, SERVICENOW, CUSTOM, CONFLUENCE, GOOGLEDRIVE
570
570
  # configuration: {
571
571
  # s3_configuration: {
572
572
  # bucket_name: "S3BucketName", # required
@@ -600,6 +600,7 @@ module Aws::Kendra
600
600
  # },
601
601
  # ],
602
602
  # document_title_field_name: "DataSourceFieldName",
603
+ # disable_local_groups: false,
603
604
  # },
604
605
  # database_configuration: {
605
606
  # database_engine_type: "RDS_AURORA_MYSQL", # required, accepts RDS_AURORA_MYSQL, RDS_AURORA_POSTGRESQL, RDS_MYSQL, RDS_POSTGRESQL
@@ -724,6 +725,7 @@ module Aws::Kendra
724
725
  # index_field_name: "IndexFieldName", # required
725
726
  # },
726
727
  # ],
728
+ # disable_local_groups: false,
727
729
  # },
728
730
  # service_now_configuration: {
729
731
  # host_url: "ServiceNowHostUrl", # required
@@ -758,6 +760,73 @@ module Aws::Kendra
758
760
  # ],
759
761
  # },
760
762
  # },
763
+ # confluence_configuration: {
764
+ # server_url: "Url", # required
765
+ # secret_arn: "SecretArn", # required
766
+ # version: "CLOUD", # required, accepts CLOUD, SERVER
767
+ # space_configuration: {
768
+ # crawl_personal_spaces: false,
769
+ # crawl_archived_spaces: false,
770
+ # include_spaces: ["ConfluenceSpaceIdentifier"],
771
+ # exclude_spaces: ["ConfluenceSpaceIdentifier"],
772
+ # space_field_mappings: [
773
+ # {
774
+ # data_source_field_name: "DISPLAY_URL", # accepts DISPLAY_URL, ITEM_TYPE, SPACE_KEY, URL
775
+ # date_field_format: "DataSourceDateFieldFormat",
776
+ # index_field_name: "IndexFieldName",
777
+ # },
778
+ # ],
779
+ # },
780
+ # page_configuration: {
781
+ # page_field_mappings: [
782
+ # {
783
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, CONTENT_STATUS, CREATED_DATE, DISPLAY_URL, ITEM_TYPE, LABELS, MODIFIED_DATE, PARENT_ID, SPACE_KEY, SPACE_NAME, URL, VERSION
784
+ # date_field_format: "DataSourceDateFieldFormat",
785
+ # index_field_name: "IndexFieldName",
786
+ # },
787
+ # ],
788
+ # },
789
+ # blog_configuration: {
790
+ # blog_field_mappings: [
791
+ # {
792
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, DISPLAY_URL, ITEM_TYPE, LABELS, PUBLISH_DATE, SPACE_KEY, SPACE_NAME, URL, VERSION
793
+ # date_field_format: "DataSourceDateFieldFormat",
794
+ # index_field_name: "IndexFieldName",
795
+ # },
796
+ # ],
797
+ # },
798
+ # attachment_configuration: {
799
+ # crawl_attachments: false,
800
+ # attachment_field_mappings: [
801
+ # {
802
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, CONTENT_TYPE, CREATED_DATE, DISPLAY_URL, FILE_SIZE, ITEM_TYPE, PARENT_ID, SPACE_KEY, SPACE_NAME, URL, VERSION
803
+ # date_field_format: "DataSourceDateFieldFormat",
804
+ # index_field_name: "IndexFieldName",
805
+ # },
806
+ # ],
807
+ # },
808
+ # vpc_configuration: {
809
+ # subnet_ids: ["SubnetId"], # required
810
+ # security_group_ids: ["VpcSecurityGroupId"], # required
811
+ # },
812
+ # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
813
+ # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
814
+ # },
815
+ # google_drive_configuration: {
816
+ # secret_arn: "SecretArn", # required
817
+ # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
818
+ # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
819
+ # field_mappings: [
820
+ # {
821
+ # data_source_field_name: "DataSourceFieldName", # required
822
+ # date_field_format: "DataSourceDateFieldFormat",
823
+ # index_field_name: "IndexFieldName", # required
824
+ # },
825
+ # ],
826
+ # exclude_mime_types: ["MimeType"],
827
+ # exclude_user_accounts: ["UserAccount"],
828
+ # exclude_shared_drives: ["SharedDriveId"],
829
+ # },
761
830
  # },
762
831
  # description: "Description",
763
832
  # schedule: "ScanSchedule",
@@ -921,6 +990,24 @@ module Aws::Kendra
921
990
  # tags to identify and organize your resources and to control access to
922
991
  # resources.
923
992
  #
993
+ # @option params [Array<Types::UserTokenConfiguration>] :user_token_configurations
994
+ # The user token configuration.
995
+ #
996
+ # @option params [String] :user_context_policy
997
+ # The user context policy.
998
+ #
999
+ # ATTRIBUTE\_FILTER
1000
+ #
1001
+ # : All indexed content is searchable and displayable for all users. If
1002
+ # there is an access control list, it is ignored. You can filter on
1003
+ # user and group attributes.
1004
+ #
1005
+ # USER\_TOKEN
1006
+ #
1007
+ # : Enables SSO and token-based user access control. All documents with
1008
+ # no access control and all documents accessible to the user will be
1009
+ # searchable and displayable.
1010
+ #
924
1011
  # @return [Types::CreateIndexResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
925
1012
  #
926
1013
  # * {Types::CreateIndexResponse#id #id} => String
@@ -942,6 +1029,24 @@ module Aws::Kendra
942
1029
  # value: "TagValue", # required
943
1030
  # },
944
1031
  # ],
1032
+ # user_token_configurations: [
1033
+ # {
1034
+ # jwt_token_type_configuration: {
1035
+ # key_location: "URL", # required, accepts URL, SECRET_MANAGER
1036
+ # url: "Url",
1037
+ # secret_manager_arn: "RoleArn",
1038
+ # user_name_attribute_field: "UserNameAttributeField",
1039
+ # group_attribute_field: "GroupAttributeField",
1040
+ # issuer: "Issuer",
1041
+ # claim_regex: "ClaimRegex",
1042
+ # },
1043
+ # json_token_type_configuration: {
1044
+ # user_name_attribute_field: "String", # required
1045
+ # group_attribute_field: "String", # required
1046
+ # },
1047
+ # },
1048
+ # ],
1049
+ # user_context_policy: "ATTRIBUTE_FILTER", # accepts ATTRIBUTE_FILTER, USER_TOKEN
945
1050
  # })
946
1051
  #
947
1052
  # @example Response structure
@@ -957,6 +1062,76 @@ module Aws::Kendra
957
1062
  req.send_request(options)
958
1063
  end
959
1064
 
1065
+ # Creates a thesaurus for an index. The thesaurus contains a list of
1066
+ # synonyms in Solr format.
1067
+ #
1068
+ # @option params [required, String] :index_id
1069
+ # The unique identifier of the index for the new thesaurus.
1070
+ #
1071
+ # @option params [required, String] :name
1072
+ # The name for the new thesaurus.
1073
+ #
1074
+ # @option params [String] :description
1075
+ # The description for the new thesaurus.
1076
+ #
1077
+ # @option params [required, String] :role_arn
1078
+ # An AWS Identity and Access Management (IAM) role that gives Amazon
1079
+ # Kendra permissions to access thesaurus file specified in
1080
+ # `SourceS3Path`.
1081
+ #
1082
+ # @option params [Array<Types::Tag>] :tags
1083
+ # A list of key-value pairs that identify the thesaurus. You can use the
1084
+ # tags to identify and organize your resources and to control access to
1085
+ # resources.
1086
+ #
1087
+ # @option params [required, Types::S3Path] :source_s3_path
1088
+ # The thesaurus file Amazon S3 source path.
1089
+ #
1090
+ # @option params [String] :client_token
1091
+ # A token that you provide to identify the request to create a
1092
+ # thesaurus. Multiple calls to the `CreateThesaurus` operation with the
1093
+ # same client token will create only one index.
1094
+ #
1095
+ # **A suitable default value is auto-generated.** You should normally
1096
+ # not need to pass this option.**
1097
+ #
1098
+ # @return [Types::CreateThesaurusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1099
+ #
1100
+ # * {Types::CreateThesaurusResponse#id #id} => String
1101
+ #
1102
+ # @example Request syntax with placeholder values
1103
+ #
1104
+ # resp = client.create_thesaurus({
1105
+ # index_id: "IndexId", # required
1106
+ # name: "ThesaurusName", # required
1107
+ # description: "Description",
1108
+ # role_arn: "RoleArn", # required
1109
+ # tags: [
1110
+ # {
1111
+ # key: "TagKey", # required
1112
+ # value: "TagValue", # required
1113
+ # },
1114
+ # ],
1115
+ # source_s3_path: { # required
1116
+ # bucket: "S3BucketName", # required
1117
+ # key: "S3ObjectKey", # required
1118
+ # },
1119
+ # client_token: "ClientTokenName",
1120
+ # })
1121
+ #
1122
+ # @example Response structure
1123
+ #
1124
+ # resp.id #=> String
1125
+ #
1126
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateThesaurus AWS API Documentation
1127
+ #
1128
+ # @overload create_thesaurus(params = {})
1129
+ # @param [Hash] params ({})
1130
+ def create_thesaurus(params = {}, options = {})
1131
+ req = build_request(:create_thesaurus, params)
1132
+ req.send_request(options)
1133
+ end
1134
+
960
1135
  # Deletes an Amazon Kendra data source. An exception is not thrown if
961
1136
  # the data source is already being deleted. While the data source is
962
1137
  # being deleted, the `Status` field returned by a call to the operation
@@ -1042,6 +1217,32 @@ module Aws::Kendra
1042
1217
  req.send_request(options)
1043
1218
  end
1044
1219
 
1220
+ # Deletes an existing Amazon Kendra thesaurus.
1221
+ #
1222
+ # @option params [required, String] :id
1223
+ # The identifier of the thesaurus to delete.
1224
+ #
1225
+ # @option params [required, String] :index_id
1226
+ # The identifier of the index associated with the thesaurus to delete.
1227
+ #
1228
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1229
+ #
1230
+ # @example Request syntax with placeholder values
1231
+ #
1232
+ # resp = client.delete_thesaurus({
1233
+ # id: "ThesaurusId", # required
1234
+ # index_id: "IndexId", # required
1235
+ # })
1236
+ #
1237
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DeleteThesaurus AWS API Documentation
1238
+ #
1239
+ # @overload delete_thesaurus(params = {})
1240
+ # @param [Hash] params ({})
1241
+ def delete_thesaurus(params = {}, options = {})
1242
+ req = build_request(:delete_thesaurus, params)
1243
+ req.send_request(options)
1244
+ end
1245
+
1045
1246
  # Gets information about a Amazon Kendra data source.
1046
1247
  #
1047
1248
  # @option params [required, String] :id
@@ -1077,7 +1278,7 @@ module Aws::Kendra
1077
1278
  # resp.id #=> String
1078
1279
  # resp.index_id #=> String
1079
1280
  # resp.name #=> String
1080
- # resp.type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM"
1281
+ # resp.type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE"
1081
1282
  # resp.configuration.s3_configuration.bucket_name #=> String
1082
1283
  # resp.configuration.s3_configuration.inclusion_prefixes #=> Array
1083
1284
  # resp.configuration.s3_configuration.inclusion_prefixes[0] #=> String
@@ -1106,6 +1307,7 @@ module Aws::Kendra
1106
1307
  # resp.configuration.share_point_configuration.field_mappings[0].date_field_format #=> String
1107
1308
  # resp.configuration.share_point_configuration.field_mappings[0].index_field_name #=> String
1108
1309
  # resp.configuration.share_point_configuration.document_title_field_name #=> String
1310
+ # resp.configuration.share_point_configuration.disable_local_groups #=> Boolean
1109
1311
  # resp.configuration.database_configuration.database_engine_type #=> String, one of "RDS_AURORA_MYSQL", "RDS_AURORA_POSTGRESQL", "RDS_MYSQL", "RDS_POSTGRESQL"
1110
1312
  # resp.configuration.database_configuration.connection_configuration.database_host #=> String
1111
1313
  # resp.configuration.database_configuration.connection_configuration.database_port #=> Integer
@@ -1185,6 +1387,7 @@ module Aws::Kendra
1185
1387
  # resp.configuration.one_drive_configuration.field_mappings[0].data_source_field_name #=> String
1186
1388
  # resp.configuration.one_drive_configuration.field_mappings[0].date_field_format #=> String
1187
1389
  # resp.configuration.one_drive_configuration.field_mappings[0].index_field_name #=> String
1390
+ # resp.configuration.one_drive_configuration.disable_local_groups #=> Boolean
1188
1391
  # resp.configuration.service_now_configuration.host_url #=> String
1189
1392
  # resp.configuration.service_now_configuration.secret_arn #=> String
1190
1393
  # resp.configuration.service_now_configuration.service_now_build_version #=> String, one of "LONDON", "OTHERS"
@@ -1210,6 +1413,55 @@ module Aws::Kendra
1210
1413
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].data_source_field_name #=> String
1211
1414
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].date_field_format #=> String
1212
1415
  # resp.configuration.service_now_configuration.service_catalog_configuration.field_mappings[0].index_field_name #=> String
1416
+ # resp.configuration.confluence_configuration.server_url #=> String
1417
+ # resp.configuration.confluence_configuration.secret_arn #=> String
1418
+ # resp.configuration.confluence_configuration.version #=> String, one of "CLOUD", "SERVER"
1419
+ # resp.configuration.confluence_configuration.space_configuration.crawl_personal_spaces #=> Boolean
1420
+ # resp.configuration.confluence_configuration.space_configuration.crawl_archived_spaces #=> Boolean
1421
+ # resp.configuration.confluence_configuration.space_configuration.include_spaces #=> Array
1422
+ # resp.configuration.confluence_configuration.space_configuration.include_spaces[0] #=> String
1423
+ # resp.configuration.confluence_configuration.space_configuration.exclude_spaces #=> Array
1424
+ # resp.configuration.confluence_configuration.space_configuration.exclude_spaces[0] #=> String
1425
+ # resp.configuration.confluence_configuration.space_configuration.space_field_mappings #=> Array
1426
+ # resp.configuration.confluence_configuration.space_configuration.space_field_mappings[0].data_source_field_name #=> String, one of "DISPLAY_URL", "ITEM_TYPE", "SPACE_KEY", "URL"
1427
+ # resp.configuration.confluence_configuration.space_configuration.space_field_mappings[0].date_field_format #=> String
1428
+ # resp.configuration.confluence_configuration.space_configuration.space_field_mappings[0].index_field_name #=> String
1429
+ # resp.configuration.confluence_configuration.page_configuration.page_field_mappings #=> Array
1430
+ # resp.configuration.confluence_configuration.page_configuration.page_field_mappings[0].data_source_field_name #=> String, one of "AUTHOR", "CONTENT_STATUS", "CREATED_DATE", "DISPLAY_URL", "ITEM_TYPE", "LABELS", "MODIFIED_DATE", "PARENT_ID", "SPACE_KEY", "SPACE_NAME", "URL", "VERSION"
1431
+ # resp.configuration.confluence_configuration.page_configuration.page_field_mappings[0].date_field_format #=> String
1432
+ # resp.configuration.confluence_configuration.page_configuration.page_field_mappings[0].index_field_name #=> String
1433
+ # resp.configuration.confluence_configuration.blog_configuration.blog_field_mappings #=> Array
1434
+ # resp.configuration.confluence_configuration.blog_configuration.blog_field_mappings[0].data_source_field_name #=> String, one of "AUTHOR", "DISPLAY_URL", "ITEM_TYPE", "LABELS", "PUBLISH_DATE", "SPACE_KEY", "SPACE_NAME", "URL", "VERSION"
1435
+ # resp.configuration.confluence_configuration.blog_configuration.blog_field_mappings[0].date_field_format #=> String
1436
+ # resp.configuration.confluence_configuration.blog_configuration.blog_field_mappings[0].index_field_name #=> String
1437
+ # resp.configuration.confluence_configuration.attachment_configuration.crawl_attachments #=> Boolean
1438
+ # resp.configuration.confluence_configuration.attachment_configuration.attachment_field_mappings #=> Array
1439
+ # resp.configuration.confluence_configuration.attachment_configuration.attachment_field_mappings[0].data_source_field_name #=> String, one of "AUTHOR", "CONTENT_TYPE", "CREATED_DATE", "DISPLAY_URL", "FILE_SIZE", "ITEM_TYPE", "PARENT_ID", "SPACE_KEY", "SPACE_NAME", "URL", "VERSION"
1440
+ # resp.configuration.confluence_configuration.attachment_configuration.attachment_field_mappings[0].date_field_format #=> String
1441
+ # resp.configuration.confluence_configuration.attachment_configuration.attachment_field_mappings[0].index_field_name #=> String
1442
+ # resp.configuration.confluence_configuration.vpc_configuration.subnet_ids #=> Array
1443
+ # resp.configuration.confluence_configuration.vpc_configuration.subnet_ids[0] #=> String
1444
+ # resp.configuration.confluence_configuration.vpc_configuration.security_group_ids #=> Array
1445
+ # resp.configuration.confluence_configuration.vpc_configuration.security_group_ids[0] #=> String
1446
+ # resp.configuration.confluence_configuration.inclusion_patterns #=> Array
1447
+ # resp.configuration.confluence_configuration.inclusion_patterns[0] #=> String
1448
+ # resp.configuration.confluence_configuration.exclusion_patterns #=> Array
1449
+ # resp.configuration.confluence_configuration.exclusion_patterns[0] #=> String
1450
+ # resp.configuration.google_drive_configuration.secret_arn #=> String
1451
+ # resp.configuration.google_drive_configuration.inclusion_patterns #=> Array
1452
+ # resp.configuration.google_drive_configuration.inclusion_patterns[0] #=> String
1453
+ # resp.configuration.google_drive_configuration.exclusion_patterns #=> Array
1454
+ # resp.configuration.google_drive_configuration.exclusion_patterns[0] #=> String
1455
+ # resp.configuration.google_drive_configuration.field_mappings #=> Array
1456
+ # resp.configuration.google_drive_configuration.field_mappings[0].data_source_field_name #=> String
1457
+ # resp.configuration.google_drive_configuration.field_mappings[0].date_field_format #=> String
1458
+ # resp.configuration.google_drive_configuration.field_mappings[0].index_field_name #=> String
1459
+ # resp.configuration.google_drive_configuration.exclude_mime_types #=> Array
1460
+ # resp.configuration.google_drive_configuration.exclude_mime_types[0] #=> String
1461
+ # resp.configuration.google_drive_configuration.exclude_user_accounts #=> Array
1462
+ # resp.configuration.google_drive_configuration.exclude_user_accounts[0] #=> String
1463
+ # resp.configuration.google_drive_configuration.exclude_shared_drives #=> Array
1464
+ # resp.configuration.google_drive_configuration.exclude_shared_drives[0] #=> String
1213
1465
  # resp.created_at #=> Time
1214
1466
  # resp.updated_at #=> Time
1215
1467
  # resp.description #=> String
@@ -1300,6 +1552,8 @@ module Aws::Kendra
1300
1552
  # * {Types::DescribeIndexResponse#index_statistics #index_statistics} => Types::IndexStatistics
1301
1553
  # * {Types::DescribeIndexResponse#error_message #error_message} => String
1302
1554
  # * {Types::DescribeIndexResponse#capacity_units #capacity_units} => Types::CapacityUnitsConfiguration
1555
+ # * {Types::DescribeIndexResponse#user_token_configurations #user_token_configurations} => Array&lt;Types::UserTokenConfiguration&gt;
1556
+ # * {Types::DescribeIndexResponse#user_context_policy #user_context_policy} => String
1303
1557
  #
1304
1558
  # @example Request syntax with placeholder values
1305
1559
  #
@@ -1337,6 +1591,17 @@ module Aws::Kendra
1337
1591
  # resp.error_message #=> String
1338
1592
  # resp.capacity_units.storage_capacity_units #=> Integer
1339
1593
  # resp.capacity_units.query_capacity_units #=> Integer
1594
+ # resp.user_token_configurations #=> Array
1595
+ # resp.user_token_configurations[0].jwt_token_type_configuration.key_location #=> String, one of "URL", "SECRET_MANAGER"
1596
+ # resp.user_token_configurations[0].jwt_token_type_configuration.url #=> String
1597
+ # resp.user_token_configurations[0].jwt_token_type_configuration.secret_manager_arn #=> String
1598
+ # resp.user_token_configurations[0].jwt_token_type_configuration.user_name_attribute_field #=> String
1599
+ # resp.user_token_configurations[0].jwt_token_type_configuration.group_attribute_field #=> String
1600
+ # resp.user_token_configurations[0].jwt_token_type_configuration.issuer #=> String
1601
+ # resp.user_token_configurations[0].jwt_token_type_configuration.claim_regex #=> String
1602
+ # resp.user_token_configurations[0].json_token_type_configuration.user_name_attribute_field #=> String
1603
+ # resp.user_token_configurations[0].json_token_type_configuration.group_attribute_field #=> String
1604
+ # resp.user_context_policy #=> String, one of "ATTRIBUTE_FILTER", "USER_TOKEN"
1340
1605
  #
1341
1606
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeIndex AWS API Documentation
1342
1607
  #
@@ -1347,6 +1612,63 @@ module Aws::Kendra
1347
1612
  req.send_request(options)
1348
1613
  end
1349
1614
 
1615
+ # Describes an existing Amazon Kendra thesaurus.
1616
+ #
1617
+ # @option params [required, String] :id
1618
+ # The identifier of the thesaurus to describe.
1619
+ #
1620
+ # @option params [required, String] :index_id
1621
+ # The identifier of the index associated with the thesaurus to describe.
1622
+ #
1623
+ # @return [Types::DescribeThesaurusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1624
+ #
1625
+ # * {Types::DescribeThesaurusResponse#id #id} => String
1626
+ # * {Types::DescribeThesaurusResponse#index_id #index_id} => String
1627
+ # * {Types::DescribeThesaurusResponse#name #name} => String
1628
+ # * {Types::DescribeThesaurusResponse#description #description} => String
1629
+ # * {Types::DescribeThesaurusResponse#status #status} => String
1630
+ # * {Types::DescribeThesaurusResponse#error_message #error_message} => String
1631
+ # * {Types::DescribeThesaurusResponse#created_at #created_at} => Time
1632
+ # * {Types::DescribeThesaurusResponse#updated_at #updated_at} => Time
1633
+ # * {Types::DescribeThesaurusResponse#role_arn #role_arn} => String
1634
+ # * {Types::DescribeThesaurusResponse#source_s3_path #source_s3_path} => Types::S3Path
1635
+ # * {Types::DescribeThesaurusResponse#file_size_bytes #file_size_bytes} => Integer
1636
+ # * {Types::DescribeThesaurusResponse#term_count #term_count} => Integer
1637
+ # * {Types::DescribeThesaurusResponse#synonym_rule_count #synonym_rule_count} => Integer
1638
+ #
1639
+ # @example Request syntax with placeholder values
1640
+ #
1641
+ # resp = client.describe_thesaurus({
1642
+ # id: "ThesaurusId", # required
1643
+ # index_id: "IndexId", # required
1644
+ # })
1645
+ #
1646
+ # @example Response structure
1647
+ #
1648
+ # resp.id #=> String
1649
+ # resp.index_id #=> String
1650
+ # resp.name #=> String
1651
+ # resp.description #=> String
1652
+ # resp.status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "ACTIVE_BUT_UPDATE_FAILED", "FAILED"
1653
+ # resp.error_message #=> String
1654
+ # resp.created_at #=> Time
1655
+ # resp.updated_at #=> Time
1656
+ # resp.role_arn #=> String
1657
+ # resp.source_s3_path.bucket #=> String
1658
+ # resp.source_s3_path.key #=> String
1659
+ # resp.file_size_bytes #=> Integer
1660
+ # resp.term_count #=> Integer
1661
+ # resp.synonym_rule_count #=> Integer
1662
+ #
1663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeThesaurus AWS API Documentation
1664
+ #
1665
+ # @overload describe_thesaurus(params = {})
1666
+ # @param [Hash] params ({})
1667
+ def describe_thesaurus(params = {}, options = {})
1668
+ req = build_request(:describe_thesaurus, params)
1669
+ req.send_request(options)
1670
+ end
1671
+
1350
1672
  # Gets statistics about synchronizing Amazon Kendra with a data source.
1351
1673
  #
1352
1674
  # @option params [required, String] :id
@@ -1453,7 +1775,7 @@ module Aws::Kendra
1453
1775
  # resp.summary_items #=> Array
1454
1776
  # resp.summary_items[0].name #=> String
1455
1777
  # resp.summary_items[0].id #=> String
1456
- # resp.summary_items[0].type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM"
1778
+ # resp.summary_items[0].type #=> String, one of "S3", "SHAREPOINT", "DATABASE", "SALESFORCE", "ONEDRIVE", "SERVICENOW", "CUSTOM", "CONFLUENCE", "GOOGLEDRIVE"
1457
1779
  # resp.summary_items[0].created_at #=> Time
1458
1780
  # resp.summary_items[0].updated_at #=> Time
1459
1781
  # resp.summary_items[0].status #=> String, one of "CREATING", "DELETING", "FAILED", "UPDATING", "ACTIVE"
@@ -1592,6 +1914,52 @@ module Aws::Kendra
1592
1914
  req.send_request(options)
1593
1915
  end
1594
1916
 
1917
+ # Lists the Amazon Kendra thesauri associated with an index.
1918
+ #
1919
+ # @option params [required, String] :index_id
1920
+ # The identifier of the index associated with the thesaurus to list.
1921
+ #
1922
+ # @option params [String] :next_token
1923
+ # If the previous response was incomplete (because there is more data to
1924
+ # retrieve), Amazon Kendra returns a pagination token in the response.
1925
+ # You can use this pagination token to retrieve the next set of thesauri
1926
+ # (`ThesaurusSummaryItems`).
1927
+ #
1928
+ # @option params [Integer] :max_results
1929
+ # The maximum number of thesauri to return.
1930
+ #
1931
+ # @return [Types::ListThesauriResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1932
+ #
1933
+ # * {Types::ListThesauriResponse#next_token #next_token} => String
1934
+ # * {Types::ListThesauriResponse#thesaurus_summary_items #thesaurus_summary_items} => Array&lt;Types::ThesaurusSummary&gt;
1935
+ #
1936
+ # @example Request syntax with placeholder values
1937
+ #
1938
+ # resp = client.list_thesauri({
1939
+ # index_id: "IndexId", # required
1940
+ # next_token: "NextToken",
1941
+ # max_results: 1,
1942
+ # })
1943
+ #
1944
+ # @example Response structure
1945
+ #
1946
+ # resp.next_token #=> String
1947
+ # resp.thesaurus_summary_items #=> Array
1948
+ # resp.thesaurus_summary_items[0].id #=> String
1949
+ # resp.thesaurus_summary_items[0].name #=> String
1950
+ # resp.thesaurus_summary_items[0].status #=> String, one of "CREATING", "ACTIVE", "DELETING", "UPDATING", "ACTIVE_BUT_UPDATE_FAILED", "FAILED"
1951
+ # resp.thesaurus_summary_items[0].created_at #=> Time
1952
+ # resp.thesaurus_summary_items[0].updated_at #=> Time
1953
+ #
1954
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListThesauri AWS API Documentation
1955
+ #
1956
+ # @overload list_thesauri(params = {})
1957
+ # @param [Hash] params ({})
1958
+ def list_thesauri(params = {}, options = {})
1959
+ req = build_request(:list_thesauri, params)
1960
+ req.send_request(options)
1961
+ end
1962
+
1595
1963
  # Searches an active index. Use this API to search your documents using
1596
1964
  # query. The `Query` operation enables to do faceted search and to
1597
1965
  # filter results based on document attributes.
@@ -1665,6 +2033,15 @@ module Aws::Kendra
1665
2033
  # If you don't provide sorting configuration, the results are sorted by
1666
2034
  # the relevance that Amazon Kendra determines for the result.
1667
2035
  #
2036
+ # @option params [Types::UserContext] :user_context
2037
+ # The user context token.
2038
+ #
2039
+ # @option params [String] :visitor_id
2040
+ # Provides an identifier for a specific user. The `VisitorId` should be
2041
+ # a unique identifier, such as a GUID. Don't use personally
2042
+ # identifiable information, such as the user's email address, as the
2043
+ # `VisitorId`.
2044
+ #
1668
2045
  # @return [Types::QueryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1669
2046
  #
1670
2047
  # * {Types::QueryResult#query_id #query_id} => String
@@ -1768,6 +2145,10 @@ module Aws::Kendra
1768
2145
  # document_attribute_key: "DocumentAttributeKey", # required
1769
2146
  # sort_order: "DESC", # required, accepts DESC, ASC
1770
2147
  # },
2148
+ # user_context: {
2149
+ # token: "Token",
2150
+ # },
2151
+ # visitor_id: "VisitorId",
1771
2152
  # })
1772
2153
  #
1773
2154
  # @example Response structure
@@ -1784,17 +2165,20 @@ module Aws::Kendra
1784
2165
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].begin_offset #=> Integer
1785
2166
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].end_offset #=> Integer
1786
2167
  # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].top_answer #=> Boolean
2168
+ # resp.result_items[0].additional_attributes[0].value.text_with_highlights_value.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1787
2169
  # resp.result_items[0].document_id #=> String
1788
2170
  # resp.result_items[0].document_title.text #=> String
1789
2171
  # resp.result_items[0].document_title.highlights #=> Array
1790
2172
  # resp.result_items[0].document_title.highlights[0].begin_offset #=> Integer
1791
2173
  # resp.result_items[0].document_title.highlights[0].end_offset #=> Integer
1792
2174
  # resp.result_items[0].document_title.highlights[0].top_answer #=> Boolean
2175
+ # resp.result_items[0].document_title.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1793
2176
  # resp.result_items[0].document_excerpt.text #=> String
1794
2177
  # resp.result_items[0].document_excerpt.highlights #=> Array
1795
2178
  # resp.result_items[0].document_excerpt.highlights[0].begin_offset #=> Integer
1796
2179
  # resp.result_items[0].document_excerpt.highlights[0].end_offset #=> Integer
1797
2180
  # resp.result_items[0].document_excerpt.highlights[0].top_answer #=> Boolean
2181
+ # resp.result_items[0].document_excerpt.highlights[0].type #=> String, one of "STANDARD", "THESAURUS_SYNONYM"
1798
2182
  # resp.result_items[0].document_uri #=> String
1799
2183
  # resp.result_items[0].document_attributes #=> Array
1800
2184
  # resp.result_items[0].document_attributes[0].key #=> String
@@ -1804,6 +2188,7 @@ module Aws::Kendra
1804
2188
  # resp.result_items[0].document_attributes[0].value.long_value #=> Integer
1805
2189
  # resp.result_items[0].document_attributes[0].value.date_value #=> Time
1806
2190
  # resp.result_items[0].score_attributes.score_confidence #=> String, one of "VERY_HIGH", "HIGH", "MEDIUM", "LOW"
2191
+ # resp.result_items[0].feedback_token #=> String
1807
2192
  # resp.facet_results #=> Array
1808
2193
  # resp.facet_results[0].document_attribute_key #=> String
1809
2194
  # resp.facet_results[0].document_attribute_value_type #=> String, one of "STRING_VALUE", "STRING_LIST_VALUE", "LONG_VALUE", "DATE_VALUE"
@@ -2065,6 +2450,7 @@ module Aws::Kendra
2065
2450
  # },
2066
2451
  # ],
2067
2452
  # document_title_field_name: "DataSourceFieldName",
2453
+ # disable_local_groups: false,
2068
2454
  # },
2069
2455
  # database_configuration: {
2070
2456
  # database_engine_type: "RDS_AURORA_MYSQL", # required, accepts RDS_AURORA_MYSQL, RDS_AURORA_POSTGRESQL, RDS_MYSQL, RDS_POSTGRESQL
@@ -2189,6 +2575,7 @@ module Aws::Kendra
2189
2575
  # index_field_name: "IndexFieldName", # required
2190
2576
  # },
2191
2577
  # ],
2578
+ # disable_local_groups: false,
2192
2579
  # },
2193
2580
  # service_now_configuration: {
2194
2581
  # host_url: "ServiceNowHostUrl", # required
@@ -2223,6 +2610,73 @@ module Aws::Kendra
2223
2610
  # ],
2224
2611
  # },
2225
2612
  # },
2613
+ # confluence_configuration: {
2614
+ # server_url: "Url", # required
2615
+ # secret_arn: "SecretArn", # required
2616
+ # version: "CLOUD", # required, accepts CLOUD, SERVER
2617
+ # space_configuration: {
2618
+ # crawl_personal_spaces: false,
2619
+ # crawl_archived_spaces: false,
2620
+ # include_spaces: ["ConfluenceSpaceIdentifier"],
2621
+ # exclude_spaces: ["ConfluenceSpaceIdentifier"],
2622
+ # space_field_mappings: [
2623
+ # {
2624
+ # data_source_field_name: "DISPLAY_URL", # accepts DISPLAY_URL, ITEM_TYPE, SPACE_KEY, URL
2625
+ # date_field_format: "DataSourceDateFieldFormat",
2626
+ # index_field_name: "IndexFieldName",
2627
+ # },
2628
+ # ],
2629
+ # },
2630
+ # page_configuration: {
2631
+ # page_field_mappings: [
2632
+ # {
2633
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, CONTENT_STATUS, CREATED_DATE, DISPLAY_URL, ITEM_TYPE, LABELS, MODIFIED_DATE, PARENT_ID, SPACE_KEY, SPACE_NAME, URL, VERSION
2634
+ # date_field_format: "DataSourceDateFieldFormat",
2635
+ # index_field_name: "IndexFieldName",
2636
+ # },
2637
+ # ],
2638
+ # },
2639
+ # blog_configuration: {
2640
+ # blog_field_mappings: [
2641
+ # {
2642
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, DISPLAY_URL, ITEM_TYPE, LABELS, PUBLISH_DATE, SPACE_KEY, SPACE_NAME, URL, VERSION
2643
+ # date_field_format: "DataSourceDateFieldFormat",
2644
+ # index_field_name: "IndexFieldName",
2645
+ # },
2646
+ # ],
2647
+ # },
2648
+ # attachment_configuration: {
2649
+ # crawl_attachments: false,
2650
+ # attachment_field_mappings: [
2651
+ # {
2652
+ # data_source_field_name: "AUTHOR", # accepts AUTHOR, CONTENT_TYPE, CREATED_DATE, DISPLAY_URL, FILE_SIZE, ITEM_TYPE, PARENT_ID, SPACE_KEY, SPACE_NAME, URL, VERSION
2653
+ # date_field_format: "DataSourceDateFieldFormat",
2654
+ # index_field_name: "IndexFieldName",
2655
+ # },
2656
+ # ],
2657
+ # },
2658
+ # vpc_configuration: {
2659
+ # subnet_ids: ["SubnetId"], # required
2660
+ # security_group_ids: ["VpcSecurityGroupId"], # required
2661
+ # },
2662
+ # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
2663
+ # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
2664
+ # },
2665
+ # google_drive_configuration: {
2666
+ # secret_arn: "SecretArn", # required
2667
+ # inclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
2668
+ # exclusion_patterns: ["DataSourceInclusionsExclusionsStringsMember"],
2669
+ # field_mappings: [
2670
+ # {
2671
+ # data_source_field_name: "DataSourceFieldName", # required
2672
+ # date_field_format: "DataSourceDateFieldFormat",
2673
+ # index_field_name: "IndexFieldName", # required
2674
+ # },
2675
+ # ],
2676
+ # exclude_mime_types: ["MimeType"],
2677
+ # exclude_user_accounts: ["UserAccount"],
2678
+ # exclude_shared_drives: ["SharedDriveId"],
2679
+ # },
2226
2680
  # },
2227
2681
  # description: "Description",
2228
2682
  # schedule: "ScanSchedule",
@@ -2264,6 +2718,12 @@ module Aws::Kendra
2264
2718
  # If you are using extra storage units, you can't reduce the storage
2265
2719
  # capacity below that required to meet the storage needs for your index.
2266
2720
  #
2721
+ # @option params [Array<Types::UserTokenConfiguration>] :user_token_configurations
2722
+ # The user token configuration.
2723
+ #
2724
+ # @option params [String] :user_context_policy
2725
+ # The user user token context policy.
2726
+ #
2267
2727
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2268
2728
  #
2269
2729
  # @example Request syntax with placeholder values
@@ -2298,6 +2758,24 @@ module Aws::Kendra
2298
2758
  # storage_capacity_units: 1, # required
2299
2759
  # query_capacity_units: 1, # required
2300
2760
  # },
2761
+ # user_token_configurations: [
2762
+ # {
2763
+ # jwt_token_type_configuration: {
2764
+ # key_location: "URL", # required, accepts URL, SECRET_MANAGER
2765
+ # url: "Url",
2766
+ # secret_manager_arn: "RoleArn",
2767
+ # user_name_attribute_field: "UserNameAttributeField",
2768
+ # group_attribute_field: "GroupAttributeField",
2769
+ # issuer: "Issuer",
2770
+ # claim_regex: "ClaimRegex",
2771
+ # },
2772
+ # json_token_type_configuration: {
2773
+ # user_name_attribute_field: "String", # required
2774
+ # group_attribute_field: "String", # required
2775
+ # },
2776
+ # },
2777
+ # ],
2778
+ # user_context_policy: "ATTRIBUTE_FILTER", # accepts ATTRIBUTE_FILTER, USER_TOKEN
2301
2779
  # })
2302
2780
  #
2303
2781
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateIndex AWS API Documentation
@@ -2309,6 +2787,51 @@ module Aws::Kendra
2309
2787
  req.send_request(options)
2310
2788
  end
2311
2789
 
2790
+ # Updates a thesaurus file associated with an index.
2791
+ #
2792
+ # @option params [required, String] :id
2793
+ # The identifier of the thesaurus to update.
2794
+ #
2795
+ # @option params [String] :name
2796
+ # The updated name of the thesaurus.
2797
+ #
2798
+ # @option params [required, String] :index_id
2799
+ # The identifier of the index associated with the thesaurus to update.
2800
+ #
2801
+ # @option params [String] :description
2802
+ # The updated description of the thesaurus.
2803
+ #
2804
+ # @option params [String] :role_arn
2805
+ # The updated role ARN of the thesaurus.
2806
+ #
2807
+ # @option params [Types::S3Path] :source_s3_path
2808
+ # Information required to find a specific file in an Amazon S3 bucket.
2809
+ #
2810
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2811
+ #
2812
+ # @example Request syntax with placeholder values
2813
+ #
2814
+ # resp = client.update_thesaurus({
2815
+ # id: "ThesaurusId", # required
2816
+ # name: "ThesaurusName",
2817
+ # index_id: "IndexId", # required
2818
+ # description: "Description",
2819
+ # role_arn: "RoleArn",
2820
+ # source_s3_path: {
2821
+ # bucket: "S3BucketName", # required
2822
+ # key: "S3ObjectKey", # required
2823
+ # },
2824
+ # })
2825
+ #
2826
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateThesaurus AWS API Documentation
2827
+ #
2828
+ # @overload update_thesaurus(params = {})
2829
+ # @param [Hash] params ({})
2830
+ def update_thesaurus(params = {}, options = {})
2831
+ req = build_request(:update_thesaurus, params)
2832
+ req.send_request(options)
2833
+ end
2834
+
2312
2835
  # @!endgroup
2313
2836
 
2314
2837
  # @param params ({})
@@ -2322,7 +2845,7 @@ module Aws::Kendra
2322
2845
  params: params,
2323
2846
  config: config)
2324
2847
  context[:gem_name] = 'aws-sdk-kendra'
2325
- context[:gem_version] = '1.15.0'
2848
+ context[:gem_version] = '1.20.0'
2326
2849
  Seahorse::Client::Request.new(handlers, context)
2327
2850
  end
2328
2851