pulumi-mysql 3.3.0a1743487912__py3-none-any.whl → 3.3.0a1744183149__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.

Potentially problematic release.


This version of pulumi-mysql might be problematic. Click here for more details.

pulumi_mysql/user.py CHANGED
@@ -2,6 +2,7 @@
2
2
  # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
+ import builtins
5
6
  import copy
6
7
  import warnings
7
8
  import sys
@@ -19,20 +20,20 @@ __all__ = ['UserArgs', 'User']
19
20
  @pulumi.input_type
20
21
  class UserArgs:
21
22
  def __init__(__self__, *,
22
- user: pulumi.Input[str],
23
- auth_plugin: Optional[pulumi.Input[str]] = None,
24
- host: Optional[pulumi.Input[str]] = None,
25
- password: Optional[pulumi.Input[str]] = None,
26
- plaintext_password: Optional[pulumi.Input[str]] = None,
27
- tls_option: Optional[pulumi.Input[str]] = None):
23
+ user: pulumi.Input[builtins.str],
24
+ auth_plugin: Optional[pulumi.Input[builtins.str]] = None,
25
+ host: Optional[pulumi.Input[builtins.str]] = None,
26
+ password: Optional[pulumi.Input[builtins.str]] = None,
27
+ plaintext_password: Optional[pulumi.Input[builtins.str]] = None,
28
+ tls_option: Optional[pulumi.Input[builtins.str]] = None):
28
29
  """
29
30
  The set of arguments for constructing a User resource.
30
- :param pulumi.Input[str] user: The name of the user.
31
- :param pulumi.Input[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[str] host: The source host of the user. Defaults to "localhost".
33
- :param pulumi.Input[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[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[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.
31
+ :param pulumi.Input[builtins.str] user: The name of the user.
32
+ :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`.
33
+ :param pulumi.Input[builtins.str] host: The source host of the user. Defaults to "localhost".
34
+ :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`.
35
+ :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`.
36
+ :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.
36
37
 
37
38
  [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
38
39
  """
@@ -53,68 +54,68 @@ class UserArgs:
53
54
 
54
55
  @property
55
56
  @pulumi.getter
56
- def user(self) -> pulumi.Input[str]:
57
+ def user(self) -> pulumi.Input[builtins.str]:
57
58
  """
58
59
  The name of the user.
59
60
  """
60
61
  return pulumi.get(self, "user")
61
62
 
62
63
  @user.setter
63
- def user(self, value: pulumi.Input[str]):
64
+ def user(self, value: pulumi.Input[builtins.str]):
64
65
  pulumi.set(self, "user", value)
65
66
 
66
67
  @property
67
68
  @pulumi.getter(name="authPlugin")
68
- def auth_plugin(self) -> Optional[pulumi.Input[str]]:
69
+ def auth_plugin(self) -> Optional[pulumi.Input[builtins.str]]:
69
70
  """
70
71
  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`.
71
72
  """
72
73
  return pulumi.get(self, "auth_plugin")
73
74
 
74
75
  @auth_plugin.setter
75
- def auth_plugin(self, value: Optional[pulumi.Input[str]]):
76
+ def auth_plugin(self, value: Optional[pulumi.Input[builtins.str]]):
76
77
  pulumi.set(self, "auth_plugin", value)
77
78
 
78
79
  @property
79
80
  @pulumi.getter
80
- def host(self) -> Optional[pulumi.Input[str]]:
81
+ def host(self) -> Optional[pulumi.Input[builtins.str]]:
81
82
  """
82
83
  The source host of the user. Defaults to "localhost".
83
84
  """
84
85
  return pulumi.get(self, "host")
85
86
 
86
87
  @host.setter
87
- def host(self, value: Optional[pulumi.Input[str]]):
88
+ def host(self, value: Optional[pulumi.Input[builtins.str]]):
88
89
  pulumi.set(self, "host", value)
89
90
 
90
91
  @property
91
92
  @pulumi.getter
92
93
  @_utilities.deprecated("""Please use plaintext_password instead""")
93
- def password(self) -> Optional[pulumi.Input[str]]:
94
+ def password(self) -> Optional[pulumi.Input[builtins.str]]:
94
95
  """
95
96
  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`.
96
97
  """
97
98
  return pulumi.get(self, "password")
98
99
 
99
100
  @password.setter
100
- def password(self, value: Optional[pulumi.Input[str]]):
101
+ def password(self, value: Optional[pulumi.Input[builtins.str]]):
101
102
  pulumi.set(self, "password", value)
102
103
 
103
104
  @property
104
105
  @pulumi.getter(name="plaintextPassword")
105
- def plaintext_password(self) -> Optional[pulumi.Input[str]]:
106
+ def plaintext_password(self) -> Optional[pulumi.Input[builtins.str]]:
106
107
  """
107
108
  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`.
108
109
  """
109
110
  return pulumi.get(self, "plaintext_password")
110
111
 
111
112
  @plaintext_password.setter
112
- def plaintext_password(self, value: Optional[pulumi.Input[str]]):
113
+ def plaintext_password(self, value: Optional[pulumi.Input[builtins.str]]):
113
114
  pulumi.set(self, "plaintext_password", value)
114
115
 
115
116
  @property
116
117
  @pulumi.getter(name="tlsOption")
117
- def tls_option(self) -> Optional[pulumi.Input[str]]:
118
+ def tls_option(self) -> Optional[pulumi.Input[builtins.str]]:
118
119
  """
119
120
  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.
120
121
 
@@ -123,29 +124,29 @@ class UserArgs:
123
124
  return pulumi.get(self, "tls_option")
124
125
 
125
126
  @tls_option.setter
126
- def tls_option(self, value: Optional[pulumi.Input[str]]):
127
+ def tls_option(self, value: Optional[pulumi.Input[builtins.str]]):
127
128
  pulumi.set(self, "tls_option", value)
128
129
 
129
130
 
130
131
  @pulumi.input_type
131
132
  class _UserState:
132
133
  def __init__(__self__, *,
133
- auth_plugin: Optional[pulumi.Input[str]] = None,
134
- host: Optional[pulumi.Input[str]] = None,
135
- password: Optional[pulumi.Input[str]] = None,
136
- plaintext_password: Optional[pulumi.Input[str]] = None,
137
- tls_option: Optional[pulumi.Input[str]] = None,
138
- user: Optional[pulumi.Input[str]] = None):
134
+ auth_plugin: Optional[pulumi.Input[builtins.str]] = None,
135
+ host: Optional[pulumi.Input[builtins.str]] = None,
136
+ password: Optional[pulumi.Input[builtins.str]] = None,
137
+ plaintext_password: Optional[pulumi.Input[builtins.str]] = None,
138
+ tls_option: Optional[pulumi.Input[builtins.str]] = None,
139
+ user: Optional[pulumi.Input[builtins.str]] = None):
139
140
  """
140
141
  Input properties used for looking up and filtering User resources.
141
- :param pulumi.Input[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[str] host: The source host of the user. Defaults to "localhost".
143
- :param pulumi.Input[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[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[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.
142
+ :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`.
143
+ :param pulumi.Input[builtins.str] host: The source host of the user. Defaults to "localhost".
144
+ :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`.
145
+ :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`.
146
+ :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.
146
147
 
147
148
  [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
148
- :param pulumi.Input[str] user: The name of the user.
149
+ :param pulumi.Input[builtins.str] user: The name of the user.
149
150
  """
150
151
  if auth_plugin is not None:
151
152
  pulumi.set(__self__, "auth_plugin", auth_plugin)
@@ -165,56 +166,56 @@ class _UserState:
165
166
 
166
167
  @property
167
168
  @pulumi.getter(name="authPlugin")
168
- def auth_plugin(self) -> Optional[pulumi.Input[str]]:
169
+ def auth_plugin(self) -> Optional[pulumi.Input[builtins.str]]:
169
170
  """
170
171
  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`.
171
172
  """
172
173
  return pulumi.get(self, "auth_plugin")
173
174
 
174
175
  @auth_plugin.setter
175
- def auth_plugin(self, value: Optional[pulumi.Input[str]]):
176
+ def auth_plugin(self, value: Optional[pulumi.Input[builtins.str]]):
176
177
  pulumi.set(self, "auth_plugin", value)
177
178
 
178
179
  @property
179
180
  @pulumi.getter
180
- def host(self) -> Optional[pulumi.Input[str]]:
181
+ def host(self) -> Optional[pulumi.Input[builtins.str]]:
181
182
  """
182
183
  The source host of the user. Defaults to "localhost".
183
184
  """
184
185
  return pulumi.get(self, "host")
185
186
 
186
187
  @host.setter
187
- def host(self, value: Optional[pulumi.Input[str]]):
188
+ def host(self, value: Optional[pulumi.Input[builtins.str]]):
188
189
  pulumi.set(self, "host", value)
189
190
 
190
191
  @property
191
192
  @pulumi.getter
192
193
  @_utilities.deprecated("""Please use plaintext_password instead""")
193
- def password(self) -> Optional[pulumi.Input[str]]:
194
+ def password(self) -> Optional[pulumi.Input[builtins.str]]:
194
195
  """
195
196
  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`.
196
197
  """
197
198
  return pulumi.get(self, "password")
198
199
 
199
200
  @password.setter
200
- def password(self, value: Optional[pulumi.Input[str]]):
201
+ def password(self, value: Optional[pulumi.Input[builtins.str]]):
201
202
  pulumi.set(self, "password", value)
202
203
 
203
204
  @property
204
205
  @pulumi.getter(name="plaintextPassword")
205
- def plaintext_password(self) -> Optional[pulumi.Input[str]]:
206
+ def plaintext_password(self) -> Optional[pulumi.Input[builtins.str]]:
206
207
  """
207
208
  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`.
208
209
  """
209
210
  return pulumi.get(self, "plaintext_password")
210
211
 
211
212
  @plaintext_password.setter
212
- def plaintext_password(self, value: Optional[pulumi.Input[str]]):
213
+ def plaintext_password(self, value: Optional[pulumi.Input[builtins.str]]):
213
214
  pulumi.set(self, "plaintext_password", value)
214
215
 
215
216
  @property
216
217
  @pulumi.getter(name="tlsOption")
217
- def tls_option(self) -> Optional[pulumi.Input[str]]:
218
+ def tls_option(self) -> Optional[pulumi.Input[builtins.str]]:
218
219
  """
219
220
  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.
220
221
 
@@ -223,19 +224,19 @@ class _UserState:
223
224
  return pulumi.get(self, "tls_option")
224
225
 
225
226
  @tls_option.setter
226
- def tls_option(self, value: Optional[pulumi.Input[str]]):
227
+ def tls_option(self, value: Optional[pulumi.Input[builtins.str]]):
227
228
  pulumi.set(self, "tls_option", value)
228
229
 
229
230
  @property
230
231
  @pulumi.getter
231
- def user(self) -> Optional[pulumi.Input[str]]:
232
+ def user(self) -> Optional[pulumi.Input[builtins.str]]:
232
233
  """
233
234
  The name of the user.
234
235
  """
235
236
  return pulumi.get(self, "user")
236
237
 
237
238
  @user.setter
238
- def user(self, value: Optional[pulumi.Input[str]]):
239
+ def user(self, value: Optional[pulumi.Input[builtins.str]]):
239
240
  pulumi.set(self, "user", value)
240
241
 
241
242
 
@@ -244,12 +245,12 @@ class User(pulumi.CustomResource):
244
245
  def __init__(__self__,
245
246
  resource_name: str,
246
247
  opts: Optional[pulumi.ResourceOptions] = None,
247
- auth_plugin: Optional[pulumi.Input[str]] = None,
248
- host: Optional[pulumi.Input[str]] = None,
249
- password: Optional[pulumi.Input[str]] = None,
250
- plaintext_password: Optional[pulumi.Input[str]] = None,
251
- tls_option: Optional[pulumi.Input[str]] = None,
252
- user: Optional[pulumi.Input[str]] = None,
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,
253
254
  __props__=None):
254
255
  """
255
256
  The ``User`` resource creates and manages a user on a MySQL
@@ -283,14 +284,14 @@ class User(pulumi.CustomResource):
283
284
 
284
285
  :param str resource_name: The name of the resource.
285
286
  :param pulumi.ResourceOptions opts: Options for the resource.
286
- :param pulumi.Input[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`.
287
- :param pulumi.Input[str] host: The source host of the user. Defaults to "localhost".
288
- :param pulumi.Input[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`.
289
- :param pulumi.Input[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`.
290
- :param pulumi.Input[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.
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.
291
292
 
292
293
  [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
293
- :param pulumi.Input[str] user: The name of the user.
294
+ :param pulumi.Input[builtins.str] user: The name of the user.
294
295
  """
295
296
  ...
296
297
  @overload
@@ -343,12 +344,12 @@ class User(pulumi.CustomResource):
343
344
  def _internal_init(__self__,
344
345
  resource_name: str,
345
346
  opts: Optional[pulumi.ResourceOptions] = None,
346
- auth_plugin: Optional[pulumi.Input[str]] = None,
347
- host: Optional[pulumi.Input[str]] = None,
348
- password: Optional[pulumi.Input[str]] = None,
349
- plaintext_password: Optional[pulumi.Input[str]] = None,
350
- tls_option: Optional[pulumi.Input[str]] = None,
351
- user: Optional[pulumi.Input[str]] = None,
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,
352
353
  __props__=None):
353
354
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
354
355
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -378,12 +379,12 @@ class User(pulumi.CustomResource):
378
379
  def get(resource_name: str,
379
380
  id: pulumi.Input[str],
380
381
  opts: Optional[pulumi.ResourceOptions] = None,
381
- auth_plugin: Optional[pulumi.Input[str]] = None,
382
- host: Optional[pulumi.Input[str]] = None,
383
- password: Optional[pulumi.Input[str]] = None,
384
- plaintext_password: Optional[pulumi.Input[str]] = None,
385
- tls_option: Optional[pulumi.Input[str]] = None,
386
- user: Optional[pulumi.Input[str]] = None) -> 'User':
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':
387
388
  """
388
389
  Get an existing User resource's state with the given name, id, and optional extra
389
390
  properties used to qualify the lookup.
@@ -391,14 +392,14 @@ class User(pulumi.CustomResource):
391
392
  :param str resource_name: The unique name of the resulting resource.
392
393
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
393
394
  :param pulumi.ResourceOptions opts: Options for the resource.
394
- :param pulumi.Input[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`.
395
- :param pulumi.Input[str] host: The source host of the user. Defaults to "localhost".
396
- :param pulumi.Input[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`.
397
- :param pulumi.Input[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`.
398
- :param pulumi.Input[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.
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.
399
400
 
400
401
  [ref-auth-plugins]: https://dev.mysql.com/doc/refman/5.7/en/authentication-plugins.html
401
- :param pulumi.Input[str] user: The name of the user.
402
+ :param pulumi.Input[builtins.str] user: The name of the user.
402
403
  """
403
404
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
404
405
 
@@ -414,7 +415,7 @@ class User(pulumi.CustomResource):
414
415
 
415
416
  @property
416
417
  @pulumi.getter(name="authPlugin")
417
- def auth_plugin(self) -> pulumi.Output[Optional[str]]:
418
+ def auth_plugin(self) -> pulumi.Output[Optional[builtins.str]]:
418
419
  """
419
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`.
420
421
  """
@@ -422,7 +423,7 @@ class User(pulumi.CustomResource):
422
423
 
423
424
  @property
424
425
  @pulumi.getter
425
- def host(self) -> pulumi.Output[Optional[str]]:
426
+ def host(self) -> pulumi.Output[Optional[builtins.str]]:
426
427
  """
427
428
  The source host of the user. Defaults to "localhost".
428
429
  """
@@ -431,7 +432,7 @@ class User(pulumi.CustomResource):
431
432
  @property
432
433
  @pulumi.getter
433
434
  @_utilities.deprecated("""Please use plaintext_password instead""")
434
- def password(self) -> pulumi.Output[Optional[str]]:
435
+ def password(self) -> pulumi.Output[Optional[builtins.str]]:
435
436
  """
436
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`.
437
438
  """
@@ -439,7 +440,7 @@ class User(pulumi.CustomResource):
439
440
 
440
441
  @property
441
442
  @pulumi.getter(name="plaintextPassword")
442
- def plaintext_password(self) -> pulumi.Output[Optional[str]]:
443
+ def plaintext_password(self) -> pulumi.Output[Optional[builtins.str]]:
443
444
  """
444
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`.
445
446
  """
@@ -447,7 +448,7 @@ class User(pulumi.CustomResource):
447
448
 
448
449
  @property
449
450
  @pulumi.getter(name="tlsOption")
450
- def tls_option(self) -> pulumi.Output[Optional[str]]:
451
+ def tls_option(self) -> pulumi.Output[Optional[builtins.str]]:
451
452
  """
452
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.
453
454
 
@@ -457,7 +458,7 @@ class User(pulumi.CustomResource):
457
458
 
458
459
  @property
459
460
  @pulumi.getter
460
- def user(self) -> pulumi.Output[str]:
461
+ def user(self) -> pulumi.Output[builtins.str]:
461
462
  """
462
463
  The name of the user.
463
464
  """