All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cognitect.aws.kendra.specs.clj Maven / Gradle / Ivy

There is a newer version: 868.2.1584.0
Show newest version
;; Copyright (c) Cognitect, Inc.
;; All rights reserved.

(ns cognitect.aws.kendra.specs
  (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen]))

(s/def :cognitect.aws/client map?)

(s/def :core.async/channel any?)

(s/def :cognitect.aws.kendra/Port (s/spec (s/and int? #(<= 1 % 65535)) :gen #(gen/choose 1 65535)))

(s/def
  :cognitect.aws.kendra/Url
  (s/spec #(re-matches (re-pattern "^(https?|ftp|file):\\/\\/([^\\s]*)") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/ServiceNowKnowledgeArticleConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/DocumentDataFieldName]
    :opt-un
    [:cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/IncludeAttachmentFilePatterns
     :cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/FieldMappings
     :cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/ExcludeAttachmentFilePatterns
     :cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/FilterQuery
     :cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/CrawlAttachments
     :cognitect.aws.kendra.ServiceNowKnowledgeArticleConfiguration/DocumentTitleFieldName]))

(s/def
  :cognitect.aws.kendra/ValueImportanceMap
  (s/map-of :cognitect.aws.kendra/ValueImportanceMapKey :cognitect.aws.kendra/Importance))

(s/def
  :cognitect.aws.kendra/ServiceNowServiceCatalogConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/DocumentDataFieldName]
    :opt-un
    [:cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/IncludeAttachmentFilePatterns
     :cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/FieldMappings
     :cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/ExcludeAttachmentFilePatterns
     :cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/CrawlAttachments
     :cognitect.aws.kendra.ServiceNowServiceCatalogConfiguration/DocumentTitleFieldName]))

(s/def
  :cognitect.aws.kendra/AdditionalResultAttributeValue
  (s/keys :opt-un [:cognitect.aws.kendra.AdditionalResultAttributeValue/TextWithHighlightsValue]))

(s/def
  :cognitect.aws.kendra/Principal
  (s/keys
    :req-un
    [:cognitect.aws.kendra.Principal/Name
     :cognitect.aws.kendra.Principal/Type
     :cognitect.aws.kendra.Principal/Access]))

(s/def
  :cognitect.aws.kendra/ConfluenceBlogFieldName
  (s/spec
    string?
    :gen
    #(s/gen
      #{"URL" "SPACE_KEY" "ITEM_TYPE" "VERSION" "LABELS" "DISPLAY_URL" "SPACE_NAME" "PUBLISH_DATE"
        "AUTHOR"})))

(s/def
  :cognitect.aws.kendra/SuggestionHighlight
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.SuggestionHighlight/BeginOffset
     :cognitect.aws.kendra.SuggestionHighlight/EndOffset]))

(s/def
  :cognitect.aws.kendra/ListThesauriRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ListThesauriRequest/IndexId]
    :opt-un
    [:cognitect.aws.kendra.ListThesauriRequest/NextToken
     :cognitect.aws.kendra.ListThesauriRequest/MaxResults]))

(s/def
  :cognitect.aws.kendra/CreateDataSourceRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.CreateDataSourceRequest/Name
     :cognitect.aws.kendra.CreateDataSourceRequest/IndexId
     :cognitect.aws.kendra.CreateDataSourceRequest/Type]
    :opt-un
    [:cognitect.aws.kendra.CreateDataSourceRequest/RoleArn
     :cognitect.aws.kendra.CreateDataSourceRequest/Tags
     :cognitect.aws.kendra.CreateDataSourceRequest/Description
     :cognitect.aws.kendra.CreateDataSourceRequest/Schedule
     :cognitect.aws.kendra.CreateDataSourceRequest/Configuration
     :cognitect.aws.kendra.CreateDataSourceRequest/ClientToken]))

(s/def
  :cognitect.aws.kendra/AclConfiguration
  (s/keys :req-un [:cognitect.aws.kendra.AclConfiguration/AllowedGroupsColumnName]))

(s/def
  :cognitect.aws.kendra/IndexedTextDocumentsCount
  (s/spec (s/and int? #(<= 0 %)) :gen #(gen/choose 0 Long/MAX_VALUE)))

(s/def
  :cognitect.aws.kendra/TagResourceRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.TagResourceRequest/ResourceARN
     :cognitect.aws.kendra.TagResourceRequest/Tags]))

(s/def
  :cognitect.aws.kendra/ConfluenceSpaceToIndexFieldMapping
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.ConfluenceSpaceToIndexFieldMapping/DataSourceFieldName
     :cognitect.aws.kendra.ConfluenceSpaceToIndexFieldMapping/IndexFieldName
     :cognitect.aws.kendra.ConfluenceSpaceToIndexFieldMapping/DateFieldFormat]))

(s/def
  :cognitect.aws.kendra/ErrorCode
  (s/spec string? :gen #(s/gen #{"InternalError" "InvalidRequest"})))

(s/def
  :cognitect.aws.kendra/DocumentAttributeValueCountPair
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.DocumentAttributeValueCountPair/Count
     :cognitect.aws.kendra.DocumentAttributeValueCountPair/DocumentAttributeValue]))

(s/def
  :cognitect.aws.kendra/DocumentAttributeList
  (s/coll-of :cognitect.aws.kendra/DocumentAttribute))

(s/def
  :cognitect.aws.kendra/ColumnConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ColumnConfiguration/DocumentIdColumnName
     :cognitect.aws.kendra.ColumnConfiguration/DocumentDataColumnName
     :cognitect.aws.kendra.ColumnConfiguration/ChangeDetectingColumns]
    :opt-un
    [:cognitect.aws.kendra.ColumnConfiguration/FieldMappings
     :cognitect.aws.kendra.ColumnConfiguration/DocumentTitleColumnName]))

(s/def
  :cognitect.aws.kendra/ChangeDetectingColumns
  (s/coll-of :cognitect.aws.kendra/ColumnName :min-count 1 :max-count 5))

(s/def
  :cognitect.aws.kendra/JsonTokenTypeConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.JsonTokenTypeConfiguration/UserNameAttributeField
     :cognitect.aws.kendra.JsonTokenTypeConfiguration/GroupAttributeField]))

(s/def
  :cognitect.aws.kendra/ConfluenceConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ConfluenceConfiguration/ServerUrl
     :cognitect.aws.kendra.ConfluenceConfiguration/SecretArn
     :cognitect.aws.kendra.ConfluenceConfiguration/Version]
    :opt-un
    [:cognitect.aws.kendra.ConfluenceConfiguration/PageConfiguration
     :cognitect.aws.kendra.ConfluenceConfiguration/VpcConfiguration
     :cognitect.aws.kendra.ConfluenceConfiguration/BlogConfiguration
     :cognitect.aws.kendra.ConfluenceConfiguration/SpaceConfiguration
     :cognitect.aws.kendra.ConfluenceConfiguration/AttachmentConfiguration
     :cognitect.aws.kendra.ConfluenceConfiguration/InclusionPatterns
     :cognitect.aws.kendra.ConfluenceConfiguration/ExclusionPatterns]))

(s/def
  :cognitect.aws.kendra/BatchGetDocumentStatusResponseErrors
  (s/coll-of :cognitect.aws.kendra/BatchGetDocumentStatusResponseError))

(s/def
  :cognitect.aws.kendra/DescribeDataSourceRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.DescribeDataSourceRequest/Id
     :cognitect.aws.kendra.DescribeDataSourceRequest/IndexId]))

(s/def
  :cognitect.aws.kendra/StorageCapacityUnit
  (s/spec (s/and int? #(<= 0 %)) :gen #(gen/choose 0 Long/MAX_VALUE)))

(s/def
  :cognitect.aws.kendra/AdditionalResultAttributeValueType
  (s/spec string? :gen #(s/gen #{"TEXT_WITH_HIGHLIGHTS_VALUE"})))

(s/def
  :cognitect.aws.kendra/DataSourceToIndexFieldMapping
  (s/keys
    :req-un
    [:cognitect.aws.kendra.DataSourceToIndexFieldMapping/DataSourceFieldName
     :cognitect.aws.kendra.DataSourceToIndexFieldMapping/IndexFieldName]
    :opt-un
    [:cognitect.aws.kendra.DataSourceToIndexFieldMapping/DateFieldFormat]))

(s/def
  :cognitect.aws.kendra/IndexFieldName
  (s/spec #(re-matches (re-pattern "^\\P{C}*$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/MaxResultsIntegerForListIndicesRequest
  (s/spec (s/and int? #(<= 1 % 100)) :gen #(gen/choose 1 100)))

(s/def
  :cognitect.aws.kendra/QuerySuggestionsBlockListName
  (s/spec #(re-matches (re-pattern "^[a-zA-Z0-9](-*[a-zA-Z0-9])*") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/FaqStatistics
  (s/keys :req-un [:cognitect.aws.kendra.FaqStatistics/IndexedQuestionAnswersCount]))

(s/def
  :cognitect.aws.kendra/ListIndicesResponse
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.ListIndicesResponse/NextToken
     :cognitect.aws.kendra.ListIndicesResponse/IndexConfigurationSummaryItems]))

(s/def
  :cognitect.aws.kendra/ThesaurusSummary
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.ThesaurusSummary/Status
     :cognitect.aws.kendra.ThesaurusSummary/CreatedAt
     :cognitect.aws.kendra.ThesaurusSummary/UpdatedAt
     :cognitect.aws.kendra.ThesaurusSummary/Name
     :cognitect.aws.kendra.ThesaurusSummary/Id]))

(s/def
  :cognitect.aws.kendra/Tag
  (s/keys :req-un [:cognitect.aws.kendra.Tag/Key :cognitect.aws.kendra.Tag/Value]))

(s/def
  :cognitect.aws.kendra/CreateFaqRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.CreateFaqRequest/IndexId
     :cognitect.aws.kendra.CreateFaqRequest/Name
     :cognitect.aws.kendra.CreateFaqRequest/S3Path
     :cognitect.aws.kendra.CreateFaqRequest/RoleArn]
    :opt-un
    [:cognitect.aws.kendra.CreateFaqRequest/FileFormat
     :cognitect.aws.kendra.CreateFaqRequest/Tags
     :cognitect.aws.kendra.CreateFaqRequest/Description
     :cognitect.aws.kendra.CreateFaqRequest/ClientToken]))

(s/def
  :cognitect.aws.kendra/WebCrawlerConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.WebCrawlerConfiguration/Urls]
    :opt-un
    [:cognitect.aws.kendra.WebCrawlerConfiguration/UrlInclusionPatterns
     :cognitect.aws.kendra.WebCrawlerConfiguration/MaxContentSizePerPageInMegaBytes
     :cognitect.aws.kendra.WebCrawlerConfiguration/AuthenticationConfiguration
     :cognitect.aws.kendra.WebCrawlerConfiguration/UrlExclusionPatterns
     :cognitect.aws.kendra.WebCrawlerConfiguration/MaxUrlsPerMinuteCrawlRate
     :cognitect.aws.kendra.WebCrawlerConfiguration/MaxLinksPerPage
     :cognitect.aws.kendra.WebCrawlerConfiguration/CrawlDepth
     :cognitect.aws.kendra.WebCrawlerConfiguration/ProxyConfiguration]))

(s/def
  :cognitect.aws.kendra/OneDriveUsers
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.OneDriveUsers/OneDriveUserList
     :cognitect.aws.kendra.OneDriveUsers/OneDriveUserS3Path]))

(s/def
  :cognitect.aws.kendra/DescribeFaqRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.DescribeFaqRequest/Id :cognitect.aws.kendra.DescribeFaqRequest/IndexId]))

(s/def
  :cognitect.aws.kendra/MaxUrlsPerMinuteCrawlRate
  (s/spec (s/and int? #(<= 1 % 300)) :gen #(gen/choose 1 300)))

(s/def
  :cognitect.aws.kendra/SecurityGroupIdList
  (s/coll-of :cognitect.aws.kendra/VpcSecurityGroupId :min-count 1 :max-count 10))

(s/def
  :cognitect.aws.kendra/RelevanceType
  (s/spec string? :gen #(s/gen #{"NOT_RELEVANT" "RELEVANT"})))

(s/def
  :cognitect.aws.kendra/DescribeQuerySuggestionsBlockListResponse
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/SourceS3Path
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/RoleArn
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/Status
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/ErrorMessage
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/IndexId
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/FileSizeBytes
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/Description
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/ItemCount
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/CreatedAt
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/UpdatedAt
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/Name
     :cognitect.aws.kendra.DescribeQuerySuggestionsBlockListResponse/Id]))

(s/def
  :cognitect.aws.kendra/ConfluencePageFieldName
  (s/spec
    string?
    :gen
    #(s/gen
      #{"URL" "SPACE_KEY" "ITEM_TYPE" "VERSION" "CREATED_DATE" "PARENT_ID" "LABELS" "MODIFIED_DATE"
        "DISPLAY_URL" "CONTENT_STATUS" "SPACE_NAME" "AUTHOR"})))

(s/def
  :cognitect.aws.kendra/DataSourceSyncJobHistoryList
  (s/coll-of :cognitect.aws.kendra/DataSourceSyncJob))

(s/def :cognitect.aws.kendra/ObjectBoolean boolean?)

(s/def
  :cognitect.aws.kendra/StopDataSourceSyncJobRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.StopDataSourceSyncJobRequest/Id
     :cognitect.aws.kendra.StopDataSourceSyncJobRequest/IndexId]))

(s/def
  :cognitect.aws.kendra/DataSourceName
  (s/spec #(re-matches (re-pattern "[a-zA-Z0-9][a-zA-Z0-9_-]*") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/ConfluenceAttachmentToIndexFieldMapping
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.ConfluenceAttachmentToIndexFieldMapping/DataSourceFieldName
     :cognitect.aws.kendra.ConfluenceAttachmentToIndexFieldMapping/IndexFieldName
     :cognitect.aws.kendra.ConfluenceAttachmentToIndexFieldMapping/DateFieldFormat]))

(s/def
  :cognitect.aws.kendra/ConfluenceAttachmentFieldName
  (s/spec
    string?
    :gen
    #(s/gen
      #{"URL" "SPACE_KEY" "ITEM_TYPE" "VERSION" "CREATED_DATE" "PARENT_ID" "CONTENT_TYPE"
        "DISPLAY_URL" "FILE_SIZE" "SPACE_NAME" "AUTHOR"})))

(s/def
  :cognitect.aws.kendra/SharePointConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.SharePointConfiguration/SharePointVersion
     :cognitect.aws.kendra.SharePointConfiguration/Urls
     :cognitect.aws.kendra.SharePointConfiguration/SecretArn]
    :opt-un
    [:cognitect.aws.kendra.SharePointConfiguration/FieldMappings
     :cognitect.aws.kendra.SharePointConfiguration/UseChangeLog
     :cognitect.aws.kendra.SharePointConfiguration/SslCertificateS3Path
     :cognitect.aws.kendra.SharePointConfiguration/DisableLocalGroups
     :cognitect.aws.kendra.SharePointConfiguration/VpcConfiguration
     :cognitect.aws.kendra.SharePointConfiguration/CrawlAttachments
     :cognitect.aws.kendra.SharePointConfiguration/InclusionPatterns
     :cognitect.aws.kendra.SharePointConfiguration/DocumentTitleFieldName
     :cognitect.aws.kendra.SharePointConfiguration/ExclusionPatterns]))

(s/def
  :cognitect.aws.kendra/IndexedTextBytes
  (s/spec (s/and int? #(<= 0 %)) :gen #(gen/choose 0 Long/MAX_VALUE)))

(s/def :cognitect.aws.kendra/TagResourceResponse (s/keys))

(s/def
  :cognitect.aws.kendra/DocumentInfo
  (s/keys
    :req-un
    [:cognitect.aws.kendra.DocumentInfo/DocumentId]
    :opt-un
    [:cognitect.aws.kendra.DocumentInfo/Attributes]))

(s/def
  :cognitect.aws.kendra/IndexEdition
  (s/spec string? :gen #(s/gen #{"ENTERPRISE_EDITION" "DEVELOPER_EDITION"})))

(s/def
  :cognitect.aws.kendra/ConfluencePageConfiguration
  (s/keys :opt-un [:cognitect.aws.kendra.ConfluencePageConfiguration/PageFieldMappings]))

(s/def
  :cognitect.aws.kendra/SalesforceKnowledgeArticleStateList
  (s/coll-of :cognitect.aws.kendra/SalesforceKnowledgeArticleState :min-count 1 :max-count 3))

(s/def
  :cognitect.aws.kendra/UpdateQuerySuggestionsBlockListRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/IndexId
     :cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/Id]
    :opt-un
    [:cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/SourceS3Path
     :cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/RoleArn
     :cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/Description
     :cognitect.aws.kendra.UpdateQuerySuggestionsBlockListRequest/Name]))

(s/def
  :cognitect.aws.kendra/TextDocumentStatistics
  (s/keys
    :req-un
    [:cognitect.aws.kendra.TextDocumentStatistics/IndexedTextDocumentsCount
     :cognitect.aws.kendra.TextDocumentStatistics/IndexedTextBytes]))

(s/def
  :cognitect.aws.kendra/ConfluenceSpaceList
  (s/coll-of :cognitect.aws.kendra/ConfluenceSpaceIdentifier :min-count 1))

(s/def
  :cognitect.aws.kendra/DescribeIndexRequest
  (s/keys :req-un [:cognitect.aws.kendra.DescribeIndexRequest/Id]))

(s/def
  :cognitect.aws.kendra/ListQuerySuggestionsBlockListsRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ListQuerySuggestionsBlockListsRequest/IndexId]
    :opt-un
    [:cognitect.aws.kendra.ListQuerySuggestionsBlockListsRequest/NextToken
     :cognitect.aws.kendra.ListQuerySuggestionsBlockListsRequest/MaxResults]))

(s/def
  :cognitect.aws.kendra/DatabasePort
  (s/spec (s/and int? #(<= 1 % 65535)) :gen #(gen/choose 1 65535)))

(s/def
  :cognitect.aws.kendra/Issuer
  (s/spec #(re-matches (re-pattern "^\\P{C}*$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/BatchGetDocumentStatusResponseError
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.BatchGetDocumentStatusResponseError/DocumentId
     :cognitect.aws.kendra.BatchGetDocumentStatusResponseError/ErrorMessage
     :cognitect.aws.kendra.BatchGetDocumentStatusResponseError/ErrorCode]))

(s/def
  :cognitect.aws.kendra/S3Path
  (s/keys :req-un [:cognitect.aws.kendra.S3Path/Bucket :cognitect.aws.kendra.S3Path/Key]))

(s/def
  :cognitect.aws.kendra/FaqFileFormat
  (s/spec string? :gen #(s/gen #{"CSV" "CSV_WITH_HEADER" "JSON"})))

(s/def
  :cognitect.aws.kendra/DataSourceSyncJob
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.DataSourceSyncJob/EndTime
     :cognitect.aws.kendra.DataSourceSyncJob/StartTime
     :cognitect.aws.kendra.DataSourceSyncJob/DataSourceErrorCode
     :cognitect.aws.kendra.DataSourceSyncJob/Status
     :cognitect.aws.kendra.DataSourceSyncJob/ErrorMessage
     :cognitect.aws.kendra.DataSourceSyncJob/ErrorCode
     :cognitect.aws.kendra.DataSourceSyncJob/ExecutionId
     :cognitect.aws.kendra.DataSourceSyncJob/Metrics]))

(s/def :cognitect.aws.kendra/CrawlDepth (s/spec (s/and int? #(<= 0 % 10)) :gen #(gen/choose 0 10)))

(s/def
  :cognitect.aws.kendra/Facet
  (s/keys :opt-un [:cognitect.aws.kendra.Facet/DocumentAttributeKey]))

(s/def
  :cognitect.aws.kendra/ResultId
  (s/spec
    (s/and string? #(<= 1 (count %) 73))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 1 73) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.kendra/MaxResultsIntegerForListFaqsRequest
  (s/spec (s/and int? #(<= 1 % 100)) :gen #(gen/choose 1 100)))

(s/def
  :cognitect.aws.kendra/ConfluenceBlogFieldMappingsList
  (s/coll-of :cognitect.aws.kendra/ConfluenceBlogToIndexFieldMapping :min-count 1 :max-count 9))

(s/def
  :cognitect.aws.kendra/ExcludeSharedDrivesList
  (s/coll-of :cognitect.aws.kendra/SharedDriveId :min-count 0 :max-count 100))

(s/def
  :cognitect.aws.kendra/JwtTokenTypeConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.JwtTokenTypeConfiguration/KeyLocation]
    :opt-un
    [:cognitect.aws.kendra.JwtTokenTypeConfiguration/URL
     :cognitect.aws.kendra.JwtTokenTypeConfiguration/SecretManagerArn
     :cognitect.aws.kendra.JwtTokenTypeConfiguration/ClaimRegex
     :cognitect.aws.kendra.JwtTokenTypeConfiguration/UserNameAttributeField
     :cognitect.aws.kendra.JwtTokenTypeConfiguration/Issuer
     :cognitect.aws.kendra.JwtTokenTypeConfiguration/GroupAttributeField]))

(s/def
  :cognitect.aws.kendra/BasicAuthenticationConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.BasicAuthenticationConfiguration/Host
     :cognitect.aws.kendra.BasicAuthenticationConfiguration/Port
     :cognitect.aws.kendra.BasicAuthenticationConfiguration/Credentials]))

(s/def
  :cognitect.aws.kendra/ConfluencePageToIndexFieldMapping
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.ConfluencePageToIndexFieldMapping/DataSourceFieldName
     :cognitect.aws.kendra.ConfluencePageToIndexFieldMapping/IndexFieldName
     :cognitect.aws.kendra.ConfluencePageToIndexFieldMapping/DateFieldFormat]))

(s/def
  :cognitect.aws.kendra/MaxResultsIntegerForListDataSourcesRequest
  (s/spec (s/and int? #(<= 1 % 100)) :gen #(gen/choose 1 100)))

(s/def
  :cognitect.aws.kendra/ConfluenceAttachmentFieldMappingsList
  (s/coll-of
    :cognitect.aws.kendra/ConfluenceAttachmentToIndexFieldMapping
    :min-count
    1
    :max-count
    11))

(s/def
  :cognitect.aws.kendra/DocumentInfoList
  (s/coll-of :cognitect.aws.kendra/DocumentInfo :min-count 1 :max-count 10))

(s/def
  :cognitect.aws.kendra/Token
  (s/spec #(re-matches (re-pattern "^\\P{C}*$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/DataSourceSyncJobId
  (s/spec #(re-matches (re-pattern "[a-zA-Z0-9][a-zA-Z0-9_-]*") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/SortingConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.SortingConfiguration/DocumentAttributeKey
     :cognitect.aws.kendra.SortingConfiguration/SortOrder]))

(s/def
  :cognitect.aws.kendra/ErrorMessage
  (s/spec #(re-matches (re-pattern "^\\P{C}*$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/TagList
  (s/coll-of :cognitect.aws.kendra/Tag :min-count 0 :max-count 200))

(s/def
  :cognitect.aws.kendra/DocumentAttributeStringValue
  (s/spec
    (s/and string? #(<= 1 (count %) 2048))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 1 2048) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.kendra/IndexConfigurationSummaryList
  (s/coll-of :cognitect.aws.kendra/IndexConfigurationSummary))

(s/def :cognitect.aws.kendra/ScanSchedule string?)

(s/def
  :cognitect.aws.kendra/BatchDeleteDocumentResponseFailedDocument
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.BatchDeleteDocumentResponseFailedDocument/ErrorMessage
     :cognitect.aws.kendra.BatchDeleteDocumentResponseFailedDocument/ErrorCode
     :cognitect.aws.kendra.BatchDeleteDocumentResponseFailedDocument/Id]))

(s/def
  :cognitect.aws.kendra/SharePointVersion
  (s/spec string? :gen #(s/gen #{"SHAREPOINT_2013" "SHAREPOINT_2016" "SHAREPOINT_ONLINE"})))

(s/def
  :cognitect.aws.kendra/CapacityUnitsConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.CapacityUnitsConfiguration/StorageCapacityUnits
     :cognitect.aws.kendra.CapacityUnitsConfiguration/QueryCapacityUnits]))

(s/def
  :cognitect.aws.kendra/SalesforceChatterFeedIncludeFilterTypes
  (s/coll-of
    :cognitect.aws.kendra/SalesforceChatterFeedIncludeFilterType
    :min-count
    1
    :max-count
    2))

(s/def
  :cognitect.aws.kendra/DocumentStatus
  (s/spec
    string?
    :gen
    #(s/gen #{"INDEXED" "FAILED" "NOT_FOUND" "PROCESSING" "UPDATED" "UPDATE_FAILED"})))

(s/def
  :cognitect.aws.kendra/UpdateThesaurusRequest
  (s/keys
    :req-un
    [:cognitect.aws.kendra.UpdateThesaurusRequest/Id
     :cognitect.aws.kendra.UpdateThesaurusRequest/IndexId]
    :opt-un
    [:cognitect.aws.kendra.UpdateThesaurusRequest/SourceS3Path
     :cognitect.aws.kendra.UpdateThesaurusRequest/RoleArn
     :cognitect.aws.kendra.UpdateThesaurusRequest/Description
     :cognitect.aws.kendra.UpdateThesaurusRequest/Name]))

(s/def
  :cognitect.aws.kendra/QuerySuggestionsBlockListSummary
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.QuerySuggestionsBlockListSummary/Status
     :cognitect.aws.kendra.QuerySuggestionsBlockListSummary/ItemCount
     :cognitect.aws.kendra.QuerySuggestionsBlockListSummary/CreatedAt
     :cognitect.aws.kendra.QuerySuggestionsBlockListSummary/UpdatedAt
     :cognitect.aws.kendra.QuerySuggestionsBlockListSummary/Name
     :cognitect.aws.kendra.QuerySuggestionsBlockListSummary/Id]))

(s/def
  :cognitect.aws.kendra/FaqStatus
  (s/spec string? :gen #(s/gen #{"UPDATING" "DELETING" "CREATING" "ACTIVE" "FAILED"})))

(s/def
  :cognitect.aws.kendra/ConnectionConfiguration
  (s/keys
    :req-un
    [:cognitect.aws.kendra.ConnectionConfiguration/DatabaseHost
     :cognitect.aws.kendra.ConnectionConfiguration/DatabasePort
     :cognitect.aws.kendra.ConnectionConfiguration/DatabaseName
     :cognitect.aws.kendra.ConnectionConfiguration/TableName
     :cognitect.aws.kendra.ConnectionConfiguration/SecretArn]))

(s/def :cognitect.aws.kendra/Mode (s/spec string? :gen #(s/gen #{"LEARN_ONLY" "ENABLED"})))

(s/def
  :cognitect.aws.kendra/ServiceNowBuildVersionType
  (s/spec string? :gen #(s/gen #{"OTHERS" "LONDON"})))

(s/def
  :cognitect.aws.kendra/QuerySuggestionsId
  (s/spec
    (s/and string? #(<= 1 (count %) 36))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 1 36) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.kendra/AttributeFilter
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.AttributeFilter/NotFilter
     :cognitect.aws.kendra.AttributeFilter/LessThan
     :cognitect.aws.kendra.AttributeFilter/ContainsAny
     :cognitect.aws.kendra.AttributeFilter/EqualsTo
     :cognitect.aws.kendra.AttributeFilter/GreaterThan
     :cognitect.aws.kendra.AttributeFilter/OrAllFilters
     :cognitect.aws.kendra.AttributeFilter/ContainsAll
     :cognitect.aws.kendra.AttributeFilter/GreaterThanOrEquals
     :cognitect.aws.kendra.AttributeFilter/AndAllFilters
     :cognitect.aws.kendra.AttributeFilter/LessThanOrEquals]))

(s/def
  :cognitect.aws.kendra/ServiceNowAuthenticationType
  (s/spec string? :gen #(s/gen #{"HTTP_BASIC" "OAUTH2"})))

(s/def
  :cognitect.aws.kendra/MaxResultsIntegerForListDataSourceSyncJobsRequest
  (s/spec (s/and int? #(<= 1 % 10)) :gen #(gen/choose 1 10)))

(s/def :cognitect.aws.kendra/AttributeFilterList (s/coll-of :cognitect.aws.kendra/AttributeFilter))

(s/def
  :cognitect.aws.kendra/AuthenticationConfiguration
  (s/keys :opt-un [:cognitect.aws.kendra.AuthenticationConfiguration/BasicAuthentication]))

(s/def
  :cognitect.aws.kendra/ThesaurusId
  (s/spec #(re-matches (re-pattern "[a-zA-Z0-9][a-zA-Z0-9_-]*") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.kendra/DescribeFaqResponse
  (s/keys
    :opt-un
    [:cognitect.aws.kendra.DescribeFaqResponse/FileFormat
     :cognitect.aws.kendra.DescribeFaqResponse/RoleArn
     :cognitect.aws.kendra.DescribeFaqResponse/Status
     :cognitect.aws.kendra.DescribeFaqResponse/ErrorMessage
     :cognitect.aws.kendra.DescribeFaqResponse/IndexId
     :cognitect.aws.kendra.DescribeFaqResponse/Description
     :cognitect.aws.kendra.DescribeFaqResponse/CreatedAt
     :cognitect.aws.kendra.DescribeFaqResponse/UpdatedAt
     :cognitect.aws.kendra.DescribeFaqResponse/Name
     :cognitect.aws.kendra.DescribeFaqResponse/S3Path
     :cognitect.aws.kendra.DescribeFaqResponse/Id]))

(s/def
  :cognitect.aws.kendra/DataSourceDateFieldFormat
  (s/spec #(re-matches (re-pattern "^(?!\\s).*(?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy