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
3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 | |