create_knowledge_base
async
¶
create_knowledge_base(
aws_account_id: KbAwsAccountId,
knowledge_base_id: KnowledgeBaseId,
name: KnowledgeBaseName,
data_source_arn: DataSourceArn,
knowledge_base_configuration: KnowledgeBaseConfiguration,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
description: Optional[KnowledgeBaseDescription] = None,
permissions: Optional[ResourcePermissionList] = None,
media_extraction_configuration: Optional[MediaExtractionConfiguration] = None,
access_control_configuration: Optional[AccessControlConfiguration] = None,
primary_owner_arn: Optional[String] = None,
tags: Optional[TagList] = None,
) -> CreateKnowledgeBaseResponse
Creates a knowledge base from a specified data source. Supported data source connector types include:
-
S3_KNOWLEDGE_BASE– Uses an Amazon S3 bucket as the data source. -
WEB_CRAWLER– Uses web pages indexed by the built-in web crawler as the data source. -
GOOGLE_DRIVE– Uses Google Drive as the data source. Supports service account authentication only. -
SHAREPOINT– Uses SharePoint as the data source. Supports two-legged OAuth only. -
ONE_DRIVE– Uses OneDrive as the data source. Supports two-legged OAuth only.
Parameters:
-
aws_account_id(KbAwsAccountId) –The ID of the Amazon Web Services account that contains the knowledge base.
-
knowledge_base_id(KnowledgeBaseId) –The unique identifier for the knowledge base.
-
name(KnowledgeBaseName) –The name of the knowledge base.
-
data_source_arn(DataSourceArn) –The Amazon Resource Name (ARN) of the data source for the knowledge base.
-
description(Optional[KnowledgeBaseDescription], default:None) –A description for the knowledge base. If you don't specify a description, the knowledge base is created without one.
-
permissions(Optional[ResourcePermissionList], default:None) –A list of resource permissions on the knowledge base. Each entry grants a specified Amazon QuickSight principal either owner or viewer access. If you don't specify permissions, only the primary owner (if provided) receives owner access.
-
access_control_configuration(Optional[AccessControlConfiguration], default:None) –The access control configuration for the knowledge base. If you don't specify this parameter, document-level ACLs are disabled.
-
primary_owner_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the Amazon QuickSight user or group to set as the primary owner of the knowledge base. The specified principal is always granted owner access, regardless of what is specified in the
Permissionsfield.This must be an Amazon QuickSight principal ARN, not an IAM user or role ARN. The API caller is never assigned as the owner automatically. If you don't specify a primary owner and don't grant owner access in
Permissions, the knowledge base is created without an owner, even when you call the operation as an Amazon QuickSight user.When you call
CreateKnowledgeBaseas an IAM user or an assumed IAM role, specifyPrimaryOwnerArn(as an Amazon QuickSight principal ARN) or an owner entry inPermissionsso that the knowledge base has an owner. Although optional, specifying a primary owner is recommended. -
tags(Optional[TagList], default:None) –The tags to assign to the knowledge base. If you don't specify tags, the knowledge base is created without tags.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
InvalidRequestException–You don't have this feature activated for your account. To fix this issue, contact Amazon Web Services support.
-
LimitExceededException–A limit is exceeded.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 | |