create_data_source
async
¶
create_data_source(
aws_account_id: AwsAccountId,
data_source_id: ResourceId,
name: ResourceName,
type: DataSourceType,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 | |