QuickSight / Client / describe_knowledge_base

describe_knowledge_base

QuickSight.Client.describe_knowledge_base(**kwargs)

Describes a knowledge base.

See also: AWS API Documentation

Request Syntax

response = client.describe_knowledge_base(
    AwsAccountId='string',
    KnowledgeBaseId='string'
)
Parameters:
  • AwsAccountId (string) –

    [REQUIRED]

    The ID of the Amazon Web Services account that contains the knowledge base.

  • KnowledgeBaseId (string) –

    [REQUIRED]

    The unique identifier for the knowledge base.

Return type:

dict

Returns:

Response Syntax

{
    'KnowledgeBase': {
        'KnowledgeBaseArn': 'string',
        'KnowledgeBaseId': 'string',
        'Name': 'string',
        'Status': 'CREATING'|'UPDATING'|'ACTIVE'|'FAILED'|'DELETING',
        'DataSourceArn': 'string',
        'KnowledgeBaseConfiguration': {
            'templateConfiguration': {
                'template': {...}|[...]|123|123.4|'string'|True|None
            }
        },
        'MediaExtractionConfiguration': {
            'imageExtractionConfiguration': {
                'imageExtractionStatus': 'ENABLED'|'DISABLED'
            },
            'audioExtractionConfiguration': {
                'audioExtractionStatus': 'ENABLED'|'DISABLED'
            },
            'videoExtractionConfiguration': {
                'videoExtractionStatus': 'ENABLED'|'DISABLED',
                'videoExtractionType': 'AUDIO_TRANSCRIPTION_ONLY'|'VISUAL_CONTENT_AND_AUDIO_TRANSCRIPTION'
            }
        },
        'AccessControlConfiguration': {
            'isACLEnabled': True|False
        },
        'Type': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'UpdatedAt': datetime(2015, 1, 1),
        'Description': 'string',
        'IsEmailNotificationOptedForIngestionFailures': True|False,
        'FirstCompletedIngestionSummary': {
            'IngestionId': 'string',
            'IngestionStatus': 'QUEUED'|'RUNNING'|'FAILED'|'COMPLETED'|'INCOMPLETE'|'CANCELLED'|'CANCELLING'|'TIMEOUT',
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1)
        },
        'FirstIncompleteIngestionSummary': {
            'IngestionId': 'string',
            'IngestionStatus': 'QUEUED'|'RUNNING'|'FAILED'|'COMPLETED'|'INCOMPLETE'|'CANCELLED'|'CANCELLING'|'TIMEOUT',
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1)
        },
        'LatestIngestionSummary': {
            'IngestionId': 'string',
            'IngestionStatus': 'QUEUED'|'RUNNING'|'FAILED'|'COMPLETED'|'INCOMPLETE'|'CANCELLED'|'CANCELLING'|'TIMEOUT',
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1)
        },
        'KnowledgeBaseSizeBytes': 123,
        'DocumentCount': 123,
        'PrimaryOwnerArn': 'string',
        'PrimaryOwnerUsername': 'string'
    },
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) –

    • KnowledgeBase (dict) –

      The knowledge base.

      • KnowledgeBaseArn (string) –

        The Amazon Resource Name (ARN) of the knowledge base.

      • KnowledgeBaseId (string) –

        The unique identifier for the knowledge base.

      • Name (string) –

        The name of the knowledge base.

      • Status (string) –

        The status of the knowledge base.

      • DataSourceArn (string) –

        The ARN of the data source associated with the knowledge base.

      • KnowledgeBaseConfiguration (dict) –

        The configuration settings for the knowledge base.

        • templateConfiguration (dict) –

          The template configuration that defines how the data source connector crawls and indexes data for the knowledge base. The template structure varies by connector type. See KbTemplateConfiguration for connector-specific details.

          • template (document) –

            The connector configuration for the knowledge base data source. The structure depends on the connector type of the data source referenced by DataSourceArn.

            The template must be a JSON object. The required fields vary by connector type:

            • Amazon S3 ( S3V2) – Requires connectionConfiguration with bucketName. Supports filterConfiguration for inclusion and exclusion prefixes and patterns. Supports accessControlConfiguration and deletionProtectionConfiguration.

            • Google Drive ( GOOGLEDRIVEV3) – Requires connectionConfiguration with authType set to SERVICE_ACCOUNT. Supports dataEntityConfiguration with crawlMyDrive, crawlSharedWithMe, and crawlSharedDrives.

            • OneDrive ( ONEDRIVEV3) – Requires authType at the template root level set to TWO_LEGGED_OAUTH. Requires connectionConfiguration with tenantId in UUID format. Supports dataEntityConfiguration with crawlPersonalDrives and crawlSharedWithMe.

            • SharePoint ( SHAREPOINTV3) – Requires connectionConfiguration with tenantId in UUID format. Supports dataEntityConfiguration with siteUrls, crawlFiles, and crawlPages.

            • Web Crawler ( WEBCRAWLERV3) – Requires connectionConfiguration with seedUrls or siteMapUrls (mutually exclusive) and authType. Supports crawlConfiguration for crawl depth, rate limits, and scope. Supports filterConfiguration for file size limits and URL patterns. Valid values for authType: NO_AUTH, BASIC_AUTH, FORM, SAML.

            The optional deletionProtectionConfiguration object is supported by all connector types. It contains enableDeletionProtection and deletionProtectionThreshold.

      • MediaExtractionConfiguration (dict) –

        The media extraction configuration for the knowledge base.

        • imageExtractionConfiguration (dict) –

          The configuration for image extraction.

          • imageExtractionStatus (string) –

            The status of image extraction. Valid values are ENABLED and DISABLED.

        • audioExtractionConfiguration (dict) –

          The configuration for audio extraction.

          • audioExtractionStatus (string) –

            The status of audio extraction. Valid values are ENABLED and DISABLED.

        • videoExtractionConfiguration (dict) –

          The configuration for video extraction.

          • videoExtractionStatus (string) –

            The status of video extraction. Valid values are ENABLED and DISABLED.

          • videoExtractionType (string) –

            The type of video extraction to perform.

      • AccessControlConfiguration (dict) –

        The access control configuration for the knowledge base.

        • isACLEnabled (boolean) –

          Specifies whether ACLs are enabled for the knowledge base.

      • Type (string) –

        The type of the knowledge base.

      • CreatedAt (datetime) –

        The date and time that the knowledge base was created.

      • UpdatedAt (datetime) –

        The date and time that the knowledge base was last updated.

      • Description (string) –

        The description of the knowledge base.

      • IsEmailNotificationOptedForIngestionFailures (boolean) –

        Specifies whether email notifications are enabled for ingestion failures.

      • FirstCompletedIngestionSummary (dict) –

        A summary of the first completed ingestion for the knowledge base.

        • IngestionId (string) –

          The unique identifier for the ingestion job.

        • IngestionStatus (string) –

          The status of the ingestion job.

        • StartTime (datetime) –

          The start time of the ingestion job.

        • EndTime (datetime) –

          The end time of the ingestion job.

      • FirstIncompleteIngestionSummary (dict) –

        A summary of the first incomplete ingestion for the knowledge base.

        • IngestionId (string) –

          The unique identifier for the ingestion job.

        • IngestionStatus (string) –

          The status of the ingestion job.

        • StartTime (datetime) –

          The start time of the ingestion job.

        • EndTime (datetime) –

          The end time of the ingestion job.

      • LatestIngestionSummary (dict) –

        A summary of the most recent ingestion for the knowledge base.

        • IngestionId (string) –

          The unique identifier for the ingestion job.

        • IngestionStatus (string) –

          The status of the ingestion job.

        • StartTime (datetime) –

          The start time of the ingestion job.

        • EndTime (datetime) –

          The end time of the ingestion job.

      • KnowledgeBaseSizeBytes (integer) –

        The size of the knowledge base in bytes.

      • DocumentCount (integer) –

        The number of documents in the knowledge base.

      • PrimaryOwnerArn (string) –

        The ARN of the primary owner of the knowledge base.

      • PrimaryOwnerUsername (string) –

        The username of the primary owner of the knowledge base.

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

    • Status (integer) –

      The HTTP status of the request.

Exceptions

  • QuickSight.Client.exceptions.ThrottlingException

  • QuickSight.Client.exceptions.InvalidRequestException

  • QuickSight.Client.exceptions.InvalidParameterValueException

  • QuickSight.Client.exceptions.InternalFailureException

  • QuickSight.Client.exceptions.PreconditionNotMetException

  • QuickSight.Client.exceptions.ResourceNotFoundException

  • QuickSight.Client.exceptions.LimitExceededException

  • QuickSight.Client.exceptions.AccessDeniedException