pulumi-mysql 3.3.0a1749649690__py3-none-any.whl → 3.3.0a1764802396__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_mysql/__init__.py +1 -1
- pulumi_mysql/config/__init__.py +1 -1
- pulumi_mysql/config/__init__.pyi +1 -2
- pulumi_mysql/config/vars.py +9 -10
- pulumi_mysql/database.py +52 -53
- pulumi_mysql/grant.py +154 -155
- pulumi_mysql/provider.py +62 -63
- pulumi_mysql/pulumi-plugin.json +1 -1
- pulumi_mysql/role.py +18 -19
- pulumi_mysql/user.py +103 -104
- pulumi_mysql/user_password.py +70 -71
- {pulumi_mysql-3.3.0a1749649690.dist-info → pulumi_mysql-3.3.0a1764802396.dist-info}/METADATA +1 -1
- pulumi_mysql-3.3.0a1764802396.dist-info/RECORD +17 -0
- pulumi_mysql-3.3.0a1749649690.dist-info/RECORD +0 -17
- {pulumi_mysql-3.3.0a1749649690.dist-info → pulumi_mysql-3.3.0a1764802396.dist-info}/WHEEL +0 -0
- {pulumi_mysql-3.3.0a1749649690.dist-info → pulumi_mysql-3.3.0a1764802396.dist-info}/top_level.txt +0 -0
pulumi_mysql/user.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -20,20 +19,20 @@ __all__ = ['UserArgs', 'User']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class UserArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
user: pulumi.Input[
|
|
24
|
-
auth_plugin: Optional[pulumi.Input[
|
|
25
|
-
host: Optional[pulumi.Input[
|
|
26
|
-
password: Optional[pulumi.Input[
|
|
27
|
-
plaintext_password: Optional[pulumi.Input[
|
|
28
|
-
tls_option: Optional[pulumi.Input[
|
|
22
|
+
user: pulumi.Input[_builtins.str],
|
|
23
|
+
auth_plugin: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
plaintext_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
tls_option: Optional[pulumi.Input[_builtins.str]] = None):
|
|
29
28
|
"""
|
|
30
29
|
The set of arguments for constructing a User resource.
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[
|
|
33
|
-
:param pulumi.Input[
|
|
34
|
-
:param pulumi.Input[
|
|
35
|
-
:param pulumi.Input[
|
|
36
|
-
:param pulumi.Input[
|
|
30
|
+
:param pulumi.Input[_builtins.str] user: The name of the user.
|
|
31
|
+
:param pulumi.Input[_builtins.str] auth_plugin: Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
32
|
+
:param pulumi.Input[_builtins.str] host: The source host of the user. Defaults to "localhost".
|
|
33
|
+
:param pulumi.Input[_builtins.str] password: Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
34
|
+
:param pulumi.Input[_builtins.str] plaintext_password: The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
35
|
+
:param pulumi.Input[_builtins.str] tls_option: An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
37
36
|
|
|
38
37
|
[ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
|
|
39
38
|
"""
|
|
@@ -52,70 +51,70 @@ class UserArgs:
|
|
|
52
51
|
if tls_option is not None:
|
|
53
52
|
pulumi.set(__self__, "tls_option", tls_option)
|
|
54
53
|
|
|
55
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
56
55
|
@pulumi.getter
|
|
57
|
-
def user(self) -> pulumi.Input[
|
|
56
|
+
def user(self) -> pulumi.Input[_builtins.str]:
|
|
58
57
|
"""
|
|
59
58
|
The name of the user.
|
|
60
59
|
"""
|
|
61
60
|
return pulumi.get(self, "user")
|
|
62
61
|
|
|
63
62
|
@user.setter
|
|
64
|
-
def user(self, value: pulumi.Input[
|
|
63
|
+
def user(self, value: pulumi.Input[_builtins.str]):
|
|
65
64
|
pulumi.set(self, "user", value)
|
|
66
65
|
|
|
67
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
68
67
|
@pulumi.getter(name="authPlugin")
|
|
69
|
-
def auth_plugin(self) -> Optional[pulumi.Input[
|
|
68
|
+
def auth_plugin(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
70
69
|
"""
|
|
71
70
|
Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
72
71
|
"""
|
|
73
72
|
return pulumi.get(self, "auth_plugin")
|
|
74
73
|
|
|
75
74
|
@auth_plugin.setter
|
|
76
|
-
def auth_plugin(self, value: Optional[pulumi.Input[
|
|
75
|
+
def auth_plugin(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
77
76
|
pulumi.set(self, "auth_plugin", value)
|
|
78
77
|
|
|
79
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
80
79
|
@pulumi.getter
|
|
81
|
-
def host(self) -> Optional[pulumi.Input[
|
|
80
|
+
def host(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
82
81
|
"""
|
|
83
82
|
The source host of the user. Defaults to "localhost".
|
|
84
83
|
"""
|
|
85
84
|
return pulumi.get(self, "host")
|
|
86
85
|
|
|
87
86
|
@host.setter
|
|
88
|
-
def host(self, value: Optional[pulumi.Input[
|
|
87
|
+
def host(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
89
88
|
pulumi.set(self, "host", value)
|
|
90
89
|
|
|
91
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
92
91
|
@pulumi.getter
|
|
93
92
|
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
94
|
-
def password(self) -> Optional[pulumi.Input[
|
|
93
|
+
def password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
95
94
|
"""
|
|
96
95
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
97
96
|
"""
|
|
98
97
|
return pulumi.get(self, "password")
|
|
99
98
|
|
|
100
99
|
@password.setter
|
|
101
|
-
def password(self, value: Optional[pulumi.Input[
|
|
100
|
+
def password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
102
101
|
pulumi.set(self, "password", value)
|
|
103
102
|
|
|
104
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
105
104
|
@pulumi.getter(name="plaintextPassword")
|
|
106
|
-
def plaintext_password(self) -> Optional[pulumi.Input[
|
|
105
|
+
def plaintext_password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
107
106
|
"""
|
|
108
107
|
The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
109
108
|
"""
|
|
110
109
|
return pulumi.get(self, "plaintext_password")
|
|
111
110
|
|
|
112
111
|
@plaintext_password.setter
|
|
113
|
-
def plaintext_password(self, value: Optional[pulumi.Input[
|
|
112
|
+
def plaintext_password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
114
113
|
pulumi.set(self, "plaintext_password", value)
|
|
115
114
|
|
|
116
|
-
@property
|
|
115
|
+
@_builtins.property
|
|
117
116
|
@pulumi.getter(name="tlsOption")
|
|
118
|
-
def tls_option(self) -> Optional[pulumi.Input[
|
|
117
|
+
def tls_option(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
118
|
"""
|
|
120
119
|
An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
121
120
|
|
|
@@ -124,29 +123,29 @@ class UserArgs:
|
|
|
124
123
|
return pulumi.get(self, "tls_option")
|
|
125
124
|
|
|
126
125
|
@tls_option.setter
|
|
127
|
-
def tls_option(self, value: Optional[pulumi.Input[
|
|
126
|
+
def tls_option(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
128
127
|
pulumi.set(self, "tls_option", value)
|
|
129
128
|
|
|
130
129
|
|
|
131
130
|
@pulumi.input_type
|
|
132
131
|
class _UserState:
|
|
133
132
|
def __init__(__self__, *,
|
|
134
|
-
auth_plugin: Optional[pulumi.Input[
|
|
135
|
-
host: Optional[pulumi.Input[
|
|
136
|
-
password: Optional[pulumi.Input[
|
|
137
|
-
plaintext_password: Optional[pulumi.Input[
|
|
138
|
-
tls_option: Optional[pulumi.Input[
|
|
139
|
-
user: Optional[pulumi.Input[
|
|
133
|
+
auth_plugin: Optional[pulumi.Input[_builtins.str]] = None,
|
|
134
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
135
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
136
|
+
plaintext_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
137
|
+
tls_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
138
|
+
user: Optional[pulumi.Input[_builtins.str]] = None):
|
|
140
139
|
"""
|
|
141
140
|
Input properties used for looking up and filtering User resources.
|
|
142
|
-
:param pulumi.Input[
|
|
143
|
-
:param pulumi.Input[
|
|
144
|
-
:param pulumi.Input[
|
|
145
|
-
:param pulumi.Input[
|
|
146
|
-
:param pulumi.Input[
|
|
141
|
+
:param pulumi.Input[_builtins.str] auth_plugin: Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
142
|
+
:param pulumi.Input[_builtins.str] host: The source host of the user. Defaults to "localhost".
|
|
143
|
+
:param pulumi.Input[_builtins.str] password: Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
144
|
+
:param pulumi.Input[_builtins.str] plaintext_password: The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
145
|
+
:param pulumi.Input[_builtins.str] tls_option: An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
147
146
|
|
|
148
147
|
[ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
|
|
149
|
-
:param pulumi.Input[
|
|
148
|
+
:param pulumi.Input[_builtins.str] user: The name of the user.
|
|
150
149
|
"""
|
|
151
150
|
if auth_plugin is not None:
|
|
152
151
|
pulumi.set(__self__, "auth_plugin", auth_plugin)
|
|
@@ -164,58 +163,58 @@ class _UserState:
|
|
|
164
163
|
if user is not None:
|
|
165
164
|
pulumi.set(__self__, "user", user)
|
|
166
165
|
|
|
167
|
-
@property
|
|
166
|
+
@_builtins.property
|
|
168
167
|
@pulumi.getter(name="authPlugin")
|
|
169
|
-
def auth_plugin(self) -> Optional[pulumi.Input[
|
|
168
|
+
def auth_plugin(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
170
169
|
"""
|
|
171
170
|
Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
172
171
|
"""
|
|
173
172
|
return pulumi.get(self, "auth_plugin")
|
|
174
173
|
|
|
175
174
|
@auth_plugin.setter
|
|
176
|
-
def auth_plugin(self, value: Optional[pulumi.Input[
|
|
175
|
+
def auth_plugin(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
177
176
|
pulumi.set(self, "auth_plugin", value)
|
|
178
177
|
|
|
179
|
-
@property
|
|
178
|
+
@_builtins.property
|
|
180
179
|
@pulumi.getter
|
|
181
|
-
def host(self) -> Optional[pulumi.Input[
|
|
180
|
+
def host(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
182
181
|
"""
|
|
183
182
|
The source host of the user. Defaults to "localhost".
|
|
184
183
|
"""
|
|
185
184
|
return pulumi.get(self, "host")
|
|
186
185
|
|
|
187
186
|
@host.setter
|
|
188
|
-
def host(self, value: Optional[pulumi.Input[
|
|
187
|
+
def host(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
189
188
|
pulumi.set(self, "host", value)
|
|
190
189
|
|
|
191
|
-
@property
|
|
190
|
+
@_builtins.property
|
|
192
191
|
@pulumi.getter
|
|
193
192
|
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
194
|
-
def password(self) -> Optional[pulumi.Input[
|
|
193
|
+
def password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
195
194
|
"""
|
|
196
195
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
197
196
|
"""
|
|
198
197
|
return pulumi.get(self, "password")
|
|
199
198
|
|
|
200
199
|
@password.setter
|
|
201
|
-
def password(self, value: Optional[pulumi.Input[
|
|
200
|
+
def password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
202
201
|
pulumi.set(self, "password", value)
|
|
203
202
|
|
|
204
|
-
@property
|
|
203
|
+
@_builtins.property
|
|
205
204
|
@pulumi.getter(name="plaintextPassword")
|
|
206
|
-
def plaintext_password(self) -> Optional[pulumi.Input[
|
|
205
|
+
def plaintext_password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
207
206
|
"""
|
|
208
207
|
The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
209
208
|
"""
|
|
210
209
|
return pulumi.get(self, "plaintext_password")
|
|
211
210
|
|
|
212
211
|
@plaintext_password.setter
|
|
213
|
-
def plaintext_password(self, value: Optional[pulumi.Input[
|
|
212
|
+
def plaintext_password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
214
213
|
pulumi.set(self, "plaintext_password", value)
|
|
215
214
|
|
|
216
|
-
@property
|
|
215
|
+
@_builtins.property
|
|
217
216
|
@pulumi.getter(name="tlsOption")
|
|
218
|
-
def tls_option(self) -> Optional[pulumi.Input[
|
|
217
|
+
def tls_option(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
219
218
|
"""
|
|
220
219
|
An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
221
220
|
|
|
@@ -224,19 +223,19 @@ class _UserState:
|
|
|
224
223
|
return pulumi.get(self, "tls_option")
|
|
225
224
|
|
|
226
225
|
@tls_option.setter
|
|
227
|
-
def tls_option(self, value: Optional[pulumi.Input[
|
|
226
|
+
def tls_option(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
228
227
|
pulumi.set(self, "tls_option", value)
|
|
229
228
|
|
|
230
|
-
@property
|
|
229
|
+
@_builtins.property
|
|
231
230
|
@pulumi.getter
|
|
232
|
-
def user(self) -> Optional[pulumi.Input[
|
|
231
|
+
def user(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
233
232
|
"""
|
|
234
233
|
The name of the user.
|
|
235
234
|
"""
|
|
236
235
|
return pulumi.get(self, "user")
|
|
237
236
|
|
|
238
237
|
@user.setter
|
|
239
|
-
def user(self, value: Optional[pulumi.Input[
|
|
238
|
+
def user(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
240
239
|
pulumi.set(self, "user", value)
|
|
241
240
|
|
|
242
241
|
|
|
@@ -246,12 +245,12 @@ class User(pulumi.CustomResource):
|
|
|
246
245
|
def __init__(__self__,
|
|
247
246
|
resource_name: str,
|
|
248
247
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
249
|
-
auth_plugin: Optional[pulumi.Input[
|
|
250
|
-
host: Optional[pulumi.Input[
|
|
251
|
-
password: Optional[pulumi.Input[
|
|
252
|
-
plaintext_password: Optional[pulumi.Input[
|
|
253
|
-
tls_option: Optional[pulumi.Input[
|
|
254
|
-
user: Optional[pulumi.Input[
|
|
248
|
+
auth_plugin: Optional[pulumi.Input[_builtins.str]] = None,
|
|
249
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
250
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
251
|
+
plaintext_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
252
|
+
tls_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
253
|
+
user: Optional[pulumi.Input[_builtins.str]] = None,
|
|
255
254
|
__props__=None):
|
|
256
255
|
"""
|
|
257
256
|
The ``User`` resource creates and manages a user on a MySQL
|
|
@@ -285,14 +284,14 @@ class User(pulumi.CustomResource):
|
|
|
285
284
|
|
|
286
285
|
:param str resource_name: The name of the resource.
|
|
287
286
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
288
|
-
:param pulumi.Input[
|
|
289
|
-
:param pulumi.Input[
|
|
290
|
-
:param pulumi.Input[
|
|
291
|
-
:param pulumi.Input[
|
|
292
|
-
:param pulumi.Input[
|
|
287
|
+
:param pulumi.Input[_builtins.str] auth_plugin: Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
288
|
+
:param pulumi.Input[_builtins.str] host: The source host of the user. Defaults to "localhost".
|
|
289
|
+
:param pulumi.Input[_builtins.str] password: Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
290
|
+
:param pulumi.Input[_builtins.str] plaintext_password: The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
291
|
+
:param pulumi.Input[_builtins.str] tls_option: An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
293
292
|
|
|
294
293
|
[ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
|
|
295
|
-
:param pulumi.Input[
|
|
294
|
+
:param pulumi.Input[_builtins.str] user: The name of the user.
|
|
296
295
|
"""
|
|
297
296
|
...
|
|
298
297
|
@overload
|
|
@@ -345,12 +344,12 @@ class User(pulumi.CustomResource):
|
|
|
345
344
|
def _internal_init(__self__,
|
|
346
345
|
resource_name: str,
|
|
347
346
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
348
|
-
auth_plugin: Optional[pulumi.Input[
|
|
349
|
-
host: Optional[pulumi.Input[
|
|
350
|
-
password: Optional[pulumi.Input[
|
|
351
|
-
plaintext_password: Optional[pulumi.Input[
|
|
352
|
-
tls_option: Optional[pulumi.Input[
|
|
353
|
-
user: Optional[pulumi.Input[
|
|
347
|
+
auth_plugin: Optional[pulumi.Input[_builtins.str]] = None,
|
|
348
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
349
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
|
+
plaintext_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
351
|
+
tls_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
352
|
+
user: Optional[pulumi.Input[_builtins.str]] = None,
|
|
354
353
|
__props__=None):
|
|
355
354
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
356
355
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -380,12 +379,12 @@ class User(pulumi.CustomResource):
|
|
|
380
379
|
def get(resource_name: str,
|
|
381
380
|
id: pulumi.Input[str],
|
|
382
381
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
383
|
-
auth_plugin: Optional[pulumi.Input[
|
|
384
|
-
host: Optional[pulumi.Input[
|
|
385
|
-
password: Optional[pulumi.Input[
|
|
386
|
-
plaintext_password: Optional[pulumi.Input[
|
|
387
|
-
tls_option: Optional[pulumi.Input[
|
|
388
|
-
user: Optional[pulumi.Input[
|
|
382
|
+
auth_plugin: Optional[pulumi.Input[_builtins.str]] = None,
|
|
383
|
+
host: Optional[pulumi.Input[_builtins.str]] = None,
|
|
384
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
plaintext_password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
386
|
+
tls_option: Optional[pulumi.Input[_builtins.str]] = None,
|
|
387
|
+
user: Optional[pulumi.Input[_builtins.str]] = None) -> 'User':
|
|
389
388
|
"""
|
|
390
389
|
Get an existing User resource's state with the given name, id, and optional extra
|
|
391
390
|
properties used to qualify the lookup.
|
|
@@ -393,14 +392,14 @@ class User(pulumi.CustomResource):
|
|
|
393
392
|
:param str resource_name: The unique name of the resulting resource.
|
|
394
393
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
395
394
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
396
|
-
:param pulumi.Input[
|
|
397
|
-
:param pulumi.Input[
|
|
398
|
-
:param pulumi.Input[
|
|
399
|
-
:param pulumi.Input[
|
|
400
|
-
:param pulumi.Input[
|
|
395
|
+
:param pulumi.Input[_builtins.str] auth_plugin: Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
396
|
+
:param pulumi.Input[_builtins.str] host: The source host of the user. Defaults to "localhost".
|
|
397
|
+
:param pulumi.Input[_builtins.str] password: Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
398
|
+
:param pulumi.Input[_builtins.str] plaintext_password: The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
399
|
+
:param pulumi.Input[_builtins.str] tls_option: An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
401
400
|
|
|
402
401
|
[ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
|
|
403
|
-
:param pulumi.Input[
|
|
402
|
+
:param pulumi.Input[_builtins.str] user: The name of the user.
|
|
404
403
|
"""
|
|
405
404
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
406
405
|
|
|
@@ -414,42 +413,42 @@ class User(pulumi.CustomResource):
|
|
|
414
413
|
__props__.__dict__["user"] = user
|
|
415
414
|
return User(resource_name, opts=opts, __props__=__props__)
|
|
416
415
|
|
|
417
|
-
@property
|
|
416
|
+
@_builtins.property
|
|
418
417
|
@pulumi.getter(name="authPlugin")
|
|
419
|
-
def auth_plugin(self) -> pulumi.Output[Optional[
|
|
418
|
+
def auth_plugin(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
420
419
|
"""
|
|
421
420
|
Use an [authentication plugin][ref-auth-plugins] to authenticate the user instead of using password authentication. Description of the fields allowed in the block below. Conflicts with `password` and `plaintext_password`.
|
|
422
421
|
"""
|
|
423
422
|
return pulumi.get(self, "auth_plugin")
|
|
424
423
|
|
|
425
|
-
@property
|
|
424
|
+
@_builtins.property
|
|
426
425
|
@pulumi.getter
|
|
427
|
-
def host(self) -> pulumi.Output[Optional[
|
|
426
|
+
def host(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
428
427
|
"""
|
|
429
428
|
The source host of the user. Defaults to "localhost".
|
|
430
429
|
"""
|
|
431
430
|
return pulumi.get(self, "host")
|
|
432
431
|
|
|
433
|
-
@property
|
|
432
|
+
@_builtins.property
|
|
434
433
|
@pulumi.getter
|
|
435
434
|
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
436
|
-
def password(self) -> pulumi.Output[Optional[
|
|
435
|
+
def password(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
437
436
|
"""
|
|
438
437
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
439
438
|
"""
|
|
440
439
|
return pulumi.get(self, "password")
|
|
441
440
|
|
|
442
|
-
@property
|
|
441
|
+
@_builtins.property
|
|
443
442
|
@pulumi.getter(name="plaintextPassword")
|
|
444
|
-
def plaintext_password(self) -> pulumi.Output[Optional[
|
|
443
|
+
def plaintext_password(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
445
444
|
"""
|
|
446
445
|
The password for the user. This must be provided in plain text, so the data source for it must be secured. An _unsalted_ hash of the provided password is stored in state. Conflicts with `auth_plugin`.
|
|
447
446
|
"""
|
|
448
447
|
return pulumi.get(self, "plaintext_password")
|
|
449
448
|
|
|
450
|
-
@property
|
|
449
|
+
@_builtins.property
|
|
451
450
|
@pulumi.getter(name="tlsOption")
|
|
452
|
-
def tls_option(self) -> pulumi.Output[Optional[
|
|
451
|
+
def tls_option(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
453
452
|
"""
|
|
454
453
|
An TLS-Option for the `CREATE USER` or `ALTER USER` statement. The value is suffixed to `REQUIRE`. A value of 'SSL' will generate a `CREATE USER ... REQUIRE SSL` statement. See the [MYSQL `CREATE USER` documentation](https://dev.mysql.com/doc/refman/5.7/en/create-user.html) for more. Ignored if MySQL version is under 5.7.0.
|
|
455
454
|
|
|
@@ -457,9 +456,9 @@ class User(pulumi.CustomResource):
|
|
|
457
456
|
"""
|
|
458
457
|
return pulumi.get(self, "tls_option")
|
|
459
458
|
|
|
460
|
-
@property
|
|
459
|
+
@_builtins.property
|
|
461
460
|
@pulumi.getter
|
|
462
|
-
def user(self) -> pulumi.Output[
|
|
461
|
+
def user(self) -> pulumi.Output[_builtins.str]:
|
|
463
462
|
"""
|
|
464
463
|
The name of the user.
|
|
465
464
|
"""
|