Skip to main content

Type annotations for boto3.Kendra 1.17.64 service, generated by mypy-boto3-buider 4.10.0

Project description

mypy-boto3-kendra

PyPI - mypy-boto3-kendra PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3.Kendra 1.17.64 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-buider 4.10.0.

More information can be found on boto3-stubs page and in mypy-boto3-kendra docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

Install boto3-stubs for Kendra service.

python -m pip install boto3-stubs[kendra]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[kendra] in your environment: python -m pip install 'boto3-stubs[kendra]'

Both type checking and auto-complete should work for Kendra service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[kendra] in your environment: python -m pip install 'boto3-stubs[kendra]'

Both type checking and auto-complete should work for Kendra service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

Other IDEs

Not tested, but as long as your IDE support mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install boto-stubs[kendra] in your environment: python -m pip install 'boto3-stubs[kendra]'
  • Run mypy as usual

Type checking should work for Kendra service. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[kendra] in your environment: python -m pip install 'boto3-stubs[kendra]'
  • Optionally, you can install boto3-stubs to typings folder.

Type checking should work for Kendra service. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

KendraClient provides annotations for boto3.client("kendra").

import boto3

from mypy_boto3_kendra import KendraClient

client: KendraClient = boto3.client("kendra")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: KendraClient = session.client("kendra")

Literals

mypy_boto3_kendra.literals module contains literals extracted from shapes that can be used in user code for type checking.

from mypy_boto3_kendra.literals import (
    AdditionalResultAttributeValueType,
    ConfluenceAttachmentFieldName,
    ConfluenceBlogFieldName,
    ConfluencePageFieldName,
    ConfluenceSpaceFieldName,
    ConfluenceVersion,
    ContentType,
    DataSourceStatus,
    DataSourceSyncJobStatus,
    DataSourceType,
    DatabaseEngineType,
    DocumentAttributeValueType,
    ErrorCode,
    FaqFileFormat,
    FaqStatus,
    HighlightType,
    IndexEdition,
    IndexStatus,
    KeyLocation,
    Order,
    PrincipalType,
    QueryIdentifiersEnclosingOption,
    QueryResultType,
    ReadAccessType,
    RelevanceType,
    SalesforceChatterFeedIncludeFilterType,
    SalesforceKnowledgeArticleState,
    SalesforceStandardObjectName,
    ScoreConfidence,
    ServiceNowAuthenticationType,
    ServiceNowBuildVersionType,
    SharePointVersion,
    SortOrder,
    ThesaurusStatus,
    UserContextPolicy,
)

def check_value(value: AdditionalResultAttributeValueType) -> bool:
    ...

Typed dictionaries

mypy_boto3_kendra.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_kendra.type_defs import (
    AccessControlListConfigurationTypeDef,
    AclConfigurationTypeDef,
    AdditionalResultAttributeTypeDef,
    AdditionalResultAttributeValueTypeDef,
    AttributeFilterTypeDef,
    BatchDeleteDocumentResponseFailedDocumentTypeDef,
    BatchDeleteDocumentResponseTypeDef,
    BatchPutDocumentResponseFailedDocumentTypeDef,
    BatchPutDocumentResponseTypeDef,
    CapacityUnitsConfigurationTypeDef,
    ClickFeedbackTypeDef,
    ColumnConfigurationTypeDef,
    ConfluenceAttachmentConfigurationTypeDef,
    ConfluenceAttachmentToIndexFieldMappingTypeDef,
    ConfluenceBlogConfigurationTypeDef,
    ConfluenceBlogToIndexFieldMappingTypeDef,
    ConfluenceConfigurationTypeDef,
    ConfluencePageConfigurationTypeDef,
    ConfluencePageToIndexFieldMappingTypeDef,
    ConfluenceSpaceConfigurationTypeDef,
    ConfluenceSpaceToIndexFieldMappingTypeDef,
    ConnectionConfigurationTypeDef,
    CreateDataSourceResponseTypeDef,
    CreateFaqResponseTypeDef,
    CreateIndexResponseTypeDef,
    CreateThesaurusResponseTypeDef,
    DataSourceConfigurationTypeDef,
    DataSourceSummaryTypeDef,
    DataSourceSyncJobMetricTargetTypeDef,
    DataSourceSyncJobMetricsTypeDef,
    DataSourceSyncJobTypeDef,
    DataSourceToIndexFieldMappingTypeDef,
    DataSourceVpcConfigurationTypeDef,
    DatabaseConfigurationTypeDef,
    DescribeDataSourceResponseTypeDef,
    DescribeFaqResponseTypeDef,
    DescribeIndexResponseTypeDef,
    DescribeThesaurusResponseTypeDef,
    DocumentAttributeTypeDef,
    DocumentAttributeValueCountPairTypeDef,
    DocumentAttributeValueTypeDef,
    DocumentMetadataConfigurationTypeDef,
    DocumentRelevanceConfigurationTypeDef,
    DocumentTypeDef,
    DocumentsMetadataConfigurationTypeDef,
    FacetResultTypeDef,
    FacetTypeDef,
    FaqStatisticsTypeDef,
    FaqSummaryTypeDef,
    GoogleDriveConfigurationTypeDef,
    HighlightTypeDef,
    IndexConfigurationSummaryTypeDef,
    IndexStatisticsTypeDef,
    JsonTokenTypeConfigurationTypeDef,
    JwtTokenTypeConfigurationTypeDef,
    ListDataSourceSyncJobsResponseTypeDef,
    ListDataSourcesResponseTypeDef,
    ListFaqsResponseTypeDef,
    ListIndicesResponseTypeDef,
    ListTagsForResourceResponseTypeDef,
    ListThesauriResponseTypeDef,
    OneDriveConfigurationTypeDef,
    OneDriveUsersTypeDef,
    PrincipalTypeDef,
    QueryResultItemTypeDef,
    QueryResultTypeDef,
    RelevanceFeedbackTypeDef,
    RelevanceTypeDef,
    S3DataSourceConfigurationTypeDef,
    S3PathTypeDef,
    SalesforceChatterFeedConfigurationTypeDef,
    SalesforceConfigurationTypeDef,
    SalesforceCustomKnowledgeArticleTypeConfigurationTypeDef,
    SalesforceKnowledgeArticleConfigurationTypeDef,
    SalesforceStandardKnowledgeArticleTypeConfigurationTypeDef,
    SalesforceStandardObjectAttachmentConfigurationTypeDef,
    SalesforceStandardObjectConfigurationTypeDef,
    ScoreAttributesTypeDef,
    SearchTypeDef,
    ServerSideEncryptionConfigurationTypeDef,
    ServiceNowConfigurationTypeDef,
    ServiceNowKnowledgeArticleConfigurationTypeDef,
    ServiceNowServiceCatalogConfigurationTypeDef,
    SharePointConfigurationTypeDef,
    SortingConfigurationTypeDef,
    SqlConfigurationTypeDef,
    StartDataSourceSyncJobResponseTypeDef,
    TagTypeDef,
    TextDocumentStatisticsTypeDef,
    TextWithHighlightsTypeDef,
    ThesaurusSummaryTypeDef,
    TimeRangeTypeDef,
    UserContextTypeDef,
    UserTokenConfigurationTypeDef,
)

def get_structure() -> AccessControlListConfigurationTypeDef:
    return {
      ...
    }

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-kendra-1.17.64.2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypy_boto3_kendra-1.17.64.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-kendra-1.17.64.2.tar.gz.

File metadata

  • Download URL: mypy-boto3-kendra-1.17.64.2.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for mypy-boto3-kendra-1.17.64.2.tar.gz
Algorithm Hash digest
SHA256 7036656b01eea7119f192ce454bdcf126c4c1c5cd3a291179d73b97f78c81d89
MD5 46f59e5f490043e5b03f0f9e7ee361b2
BLAKE2b-256 43b6eb73221006aba8db48176fc036adf7632a5d00232b5e2be2218f51e760f1

See more details on using hashes here.

File details

Details for the file mypy_boto3_kendra-1.17.64.2-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_kendra-1.17.64.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for mypy_boto3_kendra-1.17.64.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4642eca1462da5ecb232665fda2a4cd601531d5aa73f8fb7b79788a0eddf7195
MD5 ad4d95bc5aa1acb3a7321d518df9de2c
BLAKE2b-256 2ff37cca946ed1f1b18bbb373602ab6074a4a6a4d8d9b165cf893d90b79b476c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page