create_data_source
¶
create_data_source(
aws_account_id: AwsAccountId,
data_source_id: ResourceId,
name: ResourceName,
type: DataSourceType,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
data_source_parameters: Optional[DataSourceParameters] = None,
credentials: Optional[DataSourceCredentials] = None,
permissions: Optional[ResourcePermissionList] = None,
vpc_connection_properties: Optional[VpcConnectionProperties] = None,
ssl_properties: Optional[SslProperties] = None,
tags: Optional[TagList] = None,
folder_arns: Optional[FolderArnList] = None,
) -> CreateDataSourceResponse
Creates a data source.
Parameters:
-
aws_account_id(AwsAccountId) –The Amazon Web Services account ID.
-
data_source_id(ResourceId) –An ID for the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
-
name(ResourceName) –A display name for the data source.
-
type(DataSourceType) –The type of the data source. To return a list of all data sources, use
ListDataSources.Use
AMAZON_ELASTICSEARCHfor Amazon OpenSearch Service. -
data_source_parameters(Optional[DataSourceParameters], default:None) –The parameters that Amazon Quick Sight uses to connect to your underlying source.
-
credentials(Optional[DataSourceCredentials], default:None) –The credentials Amazon Quick Sight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.
-
permissions(Optional[ResourcePermissionList], default:None) –A list of resource permissions on the data source.
-
vpc_connection_properties(Optional[VpcConnectionProperties], default:None) –Use this parameter only when you want Amazon Quick Sight to use a VPC connection when connecting to your underlying source.
-
ssl_properties(Optional[SslProperties], default:None) –Secure Socket Layer (SSL) properties that apply when Amazon Quick Sight connects to your underlying source.
-
tags(Optional[TagList], default:None) –Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.
-
folder_arns(Optional[FolderArnList], default:None) –When you create the data source, Amazon Quick Sight adds the data source to these folders.
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.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
CustomerManagedKeyUnavailableException–The customer managed key that is registered to your Amazon Quick Sight account is unavailable.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
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/quick_sight.py
2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 | |