create_connection
¶
create_connection(
connection_input: ConnectionInput,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
tags: Optional[TagsMap] = None,
) -> CreateConnectionResponse
Creates a connection definition in the Data Catalog.
Connections used for creating federated resources require the IAM glue:PassConnection permission.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog in which to create the connection. If none is provided, the Amazon Web Services account ID is used by default.
-
connection_input(ConnectionInput) –A
ConnectionInputobject defining the connection to create. -
tags(Optional[TagsMap], default:None) –The tags you assign to the connection.
Raises:
-
AlreadyExistsException–A resource to be created or added already exists.
-
GlueEncryptionException–An encryption operation failed.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 | |