File tree Expand file tree Collapse file tree 5 files changed +44
-5
lines changed Expand file tree Collapse file tree 5 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,19 @@ def connect(
8282
8383 https://pymysql.readthedocs.io
8484
85+ Note
86+ ----
87+ You MUST pass a `connection` OR `secret_id`.
88+ Here is an example of the secret structure in Secrets Manager:
89+ {
90+ "host":"mysql-instance-wrangler.dr8vkeyrb9m1.us-east-1.rds.amazonaws.com",
91+ "username":"test",
92+ "password":"test",
93+ "engine":"mysql",
94+ "port":"3306",
95+ "dbname": "mydb" # Optional
96+ }
97+
8598 Note
8699 ----
87100 It is only possible to configure SSL using Glue Catalog Connection. More at:
@@ -92,7 +105,7 @@ def connect(
92105 connection : str
93106 Glue Catalog Connection name.
94107 secret_id: Optional[str]:
95- Specifies the secret containing the version that you want to retrieve.
108+ Specifies the secret containing the connection details that you want to retrieve.
96109 You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
97110 catalog_id : str, optional
98111 The ID of the Data Catalog.
Original file line number Diff line number Diff line change @@ -86,12 +86,25 @@ def connect(
8686
8787 https://github.com/tlocke/pg8000
8888
89+ Note
90+ ----
91+ You MUST pass a `connection` OR `secret_id`.
92+ Here is an example of the secret structure in Secrets Manager:
93+ {
94+ "host":"postgresql-instance-wrangler.dr8vkeyrb9m1.us-east-1.rds.amazonaws.com",
95+ "username":"test",
96+ "password":"test",
97+ "engine":"postgresql",
98+ "port":"3306",
99+ "dbname": "mydb" # Optional
100+ }
101+
89102 Parameters
90103 ----------
91104 connection : Optional[str]
92105 Glue Catalog Connection name.
93106 secret_id: Optional[str]:
94- Specifies the secret containing the version that you want to retrieve.
107+ Specifies the secret containing the connection details that you want to retrieve.
95108 You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
96109 catalog_id : str, optional
97110 The ID of the Data Catalog.
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ def connect(
398398 connection : Optional[str]
399399 Glue Catalog Connection name.
400400 secret_id: Optional[str]:
401- Specifies the secret containing the version that you want to retrieve.
401+ Specifies the secret containing the connection details that you want to retrieve.
402402 You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
403403 catalog_id : str, optional
404404 The ID of the Data Catalog.
Original file line number Diff line number Diff line change @@ -113,12 +113,25 @@ def connect(
113113
114114 https://github.com/mkleehammer/pyodbc
115115
116+ Note
117+ ----
118+ You MUST pass a `connection` OR `secret_id`.
119+ Here is an example of the secret structure in Secrets Manager:
120+ {
121+ "host":"sqlserver-instance-wrangler.dr8vkeyrb9m1.us-east-1.rds.amazonaws.com",
122+ "username":"test",
123+ "password":"test",
124+ "engine":"sqlserver",
125+ "port":"1433",
126+ "dbname": "mydb" # Optional
127+ }
128+
116129 Parameters
117130 ----------
118131 connection : Optional[str]
119132 Glue Catalog Connection name.
120133 secret_id: Optional[str]:
121- Specifies the secret containing the version that you want to retrieve.
134+ Specifies the secret containing the connection details that you want to retrieve.
122135 You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
123136 catalog_id : str, optional
124137 The ID of the Data Catalog.
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ build-backend = "poetry.core.masonry.api"
8585[tool .black ]
8686line-length = 120
8787target-version = [" py36" , " py37" , " py38" , " py39" ]
88- exclude = '''
88+ extend_exclude = '''
8989/(
9090 \.eggs
9191 | \.git
You can’t perform that action at this time.
0 commit comments