pulumi-vault 7.2.0a1755297899__py3-none-any.whl → 7.2.1__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.
@@ -0,0 +1,683 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['OciAuthBackendArgs', 'OciAuthBackend']
20
+
21
+ @pulumi.input_type
22
+ class OciAuthBackendArgs:
23
+ def __init__(__self__, *,
24
+ home_tenancy_id: pulumi.Input[_builtins.str],
25
+ description: Optional[pulumi.Input[_builtins.str]] = None,
26
+ disable_automated_rotation: Optional[pulumi.Input[_builtins.bool]] = None,
27
+ disable_remount: Optional[pulumi.Input[_builtins.bool]] = None,
28
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
29
+ path: Optional[pulumi.Input[_builtins.str]] = None,
30
+ rotation_period: Optional[pulumi.Input[_builtins.int]] = None,
31
+ rotation_schedule: Optional[pulumi.Input[_builtins.str]] = None,
32
+ rotation_window: Optional[pulumi.Input[_builtins.int]] = None,
33
+ tune: Optional[pulumi.Input['OciAuthBackendTuneArgs']] = None):
34
+ """
35
+ The set of arguments for constructing a OciAuthBackend resource.
36
+ :param pulumi.Input[_builtins.str] home_tenancy_id: The Tenancy OCID of your OCI account.
37
+ :param pulumi.Input[_builtins.str] description: A description of the auth backend.
38
+ :param pulumi.Input[_builtins.bool] disable_automated_rotation: Stops rotation of the root credential until set to false.
39
+ :param pulumi.Input[_builtins.bool] disable_remount: If set, opts out of mount migration on path updates.
40
+ :param pulumi.Input[_builtins.str] namespace: The namespace to provision the resource in.
41
+ The value should not contain leading or trailing forward slashes.
42
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
43
+ *Available only for Vault Enterprise*.
44
+ :param pulumi.Input[_builtins.str] path: Unique name of the auth backend to configure.
45
+ :param pulumi.Input[_builtins.int] rotation_period: The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
46
+ :param pulumi.Input[_builtins.str] rotation_schedule: The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
47
+ :param pulumi.Input[_builtins.int] rotation_window: The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
48
+ Can only be used with rotation_schedule.
49
+ :param pulumi.Input['OciAuthBackendTuneArgs'] tune: Extra configuration block. Structure is documented below.
50
+
51
+ The `tune` block is used to tune the auth backend:
52
+ """
53
+ pulumi.set(__self__, "home_tenancy_id", home_tenancy_id)
54
+ if description is not None:
55
+ pulumi.set(__self__, "description", description)
56
+ if disable_automated_rotation is not None:
57
+ pulumi.set(__self__, "disable_automated_rotation", disable_automated_rotation)
58
+ if disable_remount is not None:
59
+ pulumi.set(__self__, "disable_remount", disable_remount)
60
+ if namespace is not None:
61
+ pulumi.set(__self__, "namespace", namespace)
62
+ if path is not None:
63
+ pulumi.set(__self__, "path", path)
64
+ if rotation_period is not None:
65
+ pulumi.set(__self__, "rotation_period", rotation_period)
66
+ if rotation_schedule is not None:
67
+ pulumi.set(__self__, "rotation_schedule", rotation_schedule)
68
+ if rotation_window is not None:
69
+ pulumi.set(__self__, "rotation_window", rotation_window)
70
+ if tune is not None:
71
+ pulumi.set(__self__, "tune", tune)
72
+
73
+ @_builtins.property
74
+ @pulumi.getter(name="homeTenancyId")
75
+ def home_tenancy_id(self) -> pulumi.Input[_builtins.str]:
76
+ """
77
+ The Tenancy OCID of your OCI account.
78
+ """
79
+ return pulumi.get(self, "home_tenancy_id")
80
+
81
+ @home_tenancy_id.setter
82
+ def home_tenancy_id(self, value: pulumi.Input[_builtins.str]):
83
+ pulumi.set(self, "home_tenancy_id", value)
84
+
85
+ @_builtins.property
86
+ @pulumi.getter
87
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
88
+ """
89
+ A description of the auth backend.
90
+ """
91
+ return pulumi.get(self, "description")
92
+
93
+ @description.setter
94
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
95
+ pulumi.set(self, "description", value)
96
+
97
+ @_builtins.property
98
+ @pulumi.getter(name="disableAutomatedRotation")
99
+ def disable_automated_rotation(self) -> Optional[pulumi.Input[_builtins.bool]]:
100
+ """
101
+ Stops rotation of the root credential until set to false.
102
+ """
103
+ return pulumi.get(self, "disable_automated_rotation")
104
+
105
+ @disable_automated_rotation.setter
106
+ def disable_automated_rotation(self, value: Optional[pulumi.Input[_builtins.bool]]):
107
+ pulumi.set(self, "disable_automated_rotation", value)
108
+
109
+ @_builtins.property
110
+ @pulumi.getter(name="disableRemount")
111
+ def disable_remount(self) -> Optional[pulumi.Input[_builtins.bool]]:
112
+ """
113
+ If set, opts out of mount migration on path updates.
114
+ """
115
+ return pulumi.get(self, "disable_remount")
116
+
117
+ @disable_remount.setter
118
+ def disable_remount(self, value: Optional[pulumi.Input[_builtins.bool]]):
119
+ pulumi.set(self, "disable_remount", value)
120
+
121
+ @_builtins.property
122
+ @pulumi.getter
123
+ def namespace(self) -> Optional[pulumi.Input[_builtins.str]]:
124
+ """
125
+ The namespace to provision the resource in.
126
+ The value should not contain leading or trailing forward slashes.
127
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
128
+ *Available only for Vault Enterprise*.
129
+ """
130
+ return pulumi.get(self, "namespace")
131
+
132
+ @namespace.setter
133
+ def namespace(self, value: Optional[pulumi.Input[_builtins.str]]):
134
+ pulumi.set(self, "namespace", value)
135
+
136
+ @_builtins.property
137
+ @pulumi.getter
138
+ def path(self) -> Optional[pulumi.Input[_builtins.str]]:
139
+ """
140
+ Unique name of the auth backend to configure.
141
+ """
142
+ return pulumi.get(self, "path")
143
+
144
+ @path.setter
145
+ def path(self, value: Optional[pulumi.Input[_builtins.str]]):
146
+ pulumi.set(self, "path", value)
147
+
148
+ @_builtins.property
149
+ @pulumi.getter(name="rotationPeriod")
150
+ def rotation_period(self) -> Optional[pulumi.Input[_builtins.int]]:
151
+ """
152
+ The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
153
+ """
154
+ return pulumi.get(self, "rotation_period")
155
+
156
+ @rotation_period.setter
157
+ def rotation_period(self, value: Optional[pulumi.Input[_builtins.int]]):
158
+ pulumi.set(self, "rotation_period", value)
159
+
160
+ @_builtins.property
161
+ @pulumi.getter(name="rotationSchedule")
162
+ def rotation_schedule(self) -> Optional[pulumi.Input[_builtins.str]]:
163
+ """
164
+ The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
165
+ """
166
+ return pulumi.get(self, "rotation_schedule")
167
+
168
+ @rotation_schedule.setter
169
+ def rotation_schedule(self, value: Optional[pulumi.Input[_builtins.str]]):
170
+ pulumi.set(self, "rotation_schedule", value)
171
+
172
+ @_builtins.property
173
+ @pulumi.getter(name="rotationWindow")
174
+ def rotation_window(self) -> Optional[pulumi.Input[_builtins.int]]:
175
+ """
176
+ The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
177
+ Can only be used with rotation_schedule.
178
+ """
179
+ return pulumi.get(self, "rotation_window")
180
+
181
+ @rotation_window.setter
182
+ def rotation_window(self, value: Optional[pulumi.Input[_builtins.int]]):
183
+ pulumi.set(self, "rotation_window", value)
184
+
185
+ @_builtins.property
186
+ @pulumi.getter
187
+ def tune(self) -> Optional[pulumi.Input['OciAuthBackendTuneArgs']]:
188
+ """
189
+ Extra configuration block. Structure is documented below.
190
+
191
+ The `tune` block is used to tune the auth backend:
192
+ """
193
+ return pulumi.get(self, "tune")
194
+
195
+ @tune.setter
196
+ def tune(self, value: Optional[pulumi.Input['OciAuthBackendTuneArgs']]):
197
+ pulumi.set(self, "tune", value)
198
+
199
+
200
+ @pulumi.input_type
201
+ class _OciAuthBackendState:
202
+ def __init__(__self__, *,
203
+ accessor: Optional[pulumi.Input[_builtins.str]] = None,
204
+ description: Optional[pulumi.Input[_builtins.str]] = None,
205
+ disable_automated_rotation: Optional[pulumi.Input[_builtins.bool]] = None,
206
+ disable_remount: Optional[pulumi.Input[_builtins.bool]] = None,
207
+ home_tenancy_id: Optional[pulumi.Input[_builtins.str]] = None,
208
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
209
+ path: Optional[pulumi.Input[_builtins.str]] = None,
210
+ rotation_period: Optional[pulumi.Input[_builtins.int]] = None,
211
+ rotation_schedule: Optional[pulumi.Input[_builtins.str]] = None,
212
+ rotation_window: Optional[pulumi.Input[_builtins.int]] = None,
213
+ tune: Optional[pulumi.Input['OciAuthBackendTuneArgs']] = None):
214
+ """
215
+ Input properties used for looking up and filtering OciAuthBackend resources.
216
+ :param pulumi.Input[_builtins.str] accessor: The accessor of the auth backend
217
+ :param pulumi.Input[_builtins.str] description: A description of the auth backend.
218
+ :param pulumi.Input[_builtins.bool] disable_automated_rotation: Stops rotation of the root credential until set to false.
219
+ :param pulumi.Input[_builtins.bool] disable_remount: If set, opts out of mount migration on path updates.
220
+ :param pulumi.Input[_builtins.str] home_tenancy_id: The Tenancy OCID of your OCI account.
221
+ :param pulumi.Input[_builtins.str] namespace: The namespace to provision the resource in.
222
+ The value should not contain leading or trailing forward slashes.
223
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
224
+ *Available only for Vault Enterprise*.
225
+ :param pulumi.Input[_builtins.str] path: Unique name of the auth backend to configure.
226
+ :param pulumi.Input[_builtins.int] rotation_period: The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
227
+ :param pulumi.Input[_builtins.str] rotation_schedule: The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
228
+ :param pulumi.Input[_builtins.int] rotation_window: The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
229
+ Can only be used with rotation_schedule.
230
+ :param pulumi.Input['OciAuthBackendTuneArgs'] tune: Extra configuration block. Structure is documented below.
231
+
232
+ The `tune` block is used to tune the auth backend:
233
+ """
234
+ if accessor is not None:
235
+ pulumi.set(__self__, "accessor", accessor)
236
+ if description is not None:
237
+ pulumi.set(__self__, "description", description)
238
+ if disable_automated_rotation is not None:
239
+ pulumi.set(__self__, "disable_automated_rotation", disable_automated_rotation)
240
+ if disable_remount is not None:
241
+ pulumi.set(__self__, "disable_remount", disable_remount)
242
+ if home_tenancy_id is not None:
243
+ pulumi.set(__self__, "home_tenancy_id", home_tenancy_id)
244
+ if namespace is not None:
245
+ pulumi.set(__self__, "namespace", namespace)
246
+ if path is not None:
247
+ pulumi.set(__self__, "path", path)
248
+ if rotation_period is not None:
249
+ pulumi.set(__self__, "rotation_period", rotation_period)
250
+ if rotation_schedule is not None:
251
+ pulumi.set(__self__, "rotation_schedule", rotation_schedule)
252
+ if rotation_window is not None:
253
+ pulumi.set(__self__, "rotation_window", rotation_window)
254
+ if tune is not None:
255
+ pulumi.set(__self__, "tune", tune)
256
+
257
+ @_builtins.property
258
+ @pulumi.getter
259
+ def accessor(self) -> Optional[pulumi.Input[_builtins.str]]:
260
+ """
261
+ The accessor of the auth backend
262
+ """
263
+ return pulumi.get(self, "accessor")
264
+
265
+ @accessor.setter
266
+ def accessor(self, value: Optional[pulumi.Input[_builtins.str]]):
267
+ pulumi.set(self, "accessor", value)
268
+
269
+ @_builtins.property
270
+ @pulumi.getter
271
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
272
+ """
273
+ A description of the auth backend.
274
+ """
275
+ return pulumi.get(self, "description")
276
+
277
+ @description.setter
278
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
279
+ pulumi.set(self, "description", value)
280
+
281
+ @_builtins.property
282
+ @pulumi.getter(name="disableAutomatedRotation")
283
+ def disable_automated_rotation(self) -> Optional[pulumi.Input[_builtins.bool]]:
284
+ """
285
+ Stops rotation of the root credential until set to false.
286
+ """
287
+ return pulumi.get(self, "disable_automated_rotation")
288
+
289
+ @disable_automated_rotation.setter
290
+ def disable_automated_rotation(self, value: Optional[pulumi.Input[_builtins.bool]]):
291
+ pulumi.set(self, "disable_automated_rotation", value)
292
+
293
+ @_builtins.property
294
+ @pulumi.getter(name="disableRemount")
295
+ def disable_remount(self) -> Optional[pulumi.Input[_builtins.bool]]:
296
+ """
297
+ If set, opts out of mount migration on path updates.
298
+ """
299
+ return pulumi.get(self, "disable_remount")
300
+
301
+ @disable_remount.setter
302
+ def disable_remount(self, value: Optional[pulumi.Input[_builtins.bool]]):
303
+ pulumi.set(self, "disable_remount", value)
304
+
305
+ @_builtins.property
306
+ @pulumi.getter(name="homeTenancyId")
307
+ def home_tenancy_id(self) -> Optional[pulumi.Input[_builtins.str]]:
308
+ """
309
+ The Tenancy OCID of your OCI account.
310
+ """
311
+ return pulumi.get(self, "home_tenancy_id")
312
+
313
+ @home_tenancy_id.setter
314
+ def home_tenancy_id(self, value: Optional[pulumi.Input[_builtins.str]]):
315
+ pulumi.set(self, "home_tenancy_id", value)
316
+
317
+ @_builtins.property
318
+ @pulumi.getter
319
+ def namespace(self) -> Optional[pulumi.Input[_builtins.str]]:
320
+ """
321
+ The namespace to provision the resource in.
322
+ The value should not contain leading or trailing forward slashes.
323
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
324
+ *Available only for Vault Enterprise*.
325
+ """
326
+ return pulumi.get(self, "namespace")
327
+
328
+ @namespace.setter
329
+ def namespace(self, value: Optional[pulumi.Input[_builtins.str]]):
330
+ pulumi.set(self, "namespace", value)
331
+
332
+ @_builtins.property
333
+ @pulumi.getter
334
+ def path(self) -> Optional[pulumi.Input[_builtins.str]]:
335
+ """
336
+ Unique name of the auth backend to configure.
337
+ """
338
+ return pulumi.get(self, "path")
339
+
340
+ @path.setter
341
+ def path(self, value: Optional[pulumi.Input[_builtins.str]]):
342
+ pulumi.set(self, "path", value)
343
+
344
+ @_builtins.property
345
+ @pulumi.getter(name="rotationPeriod")
346
+ def rotation_period(self) -> Optional[pulumi.Input[_builtins.int]]:
347
+ """
348
+ The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
349
+ """
350
+ return pulumi.get(self, "rotation_period")
351
+
352
+ @rotation_period.setter
353
+ def rotation_period(self, value: Optional[pulumi.Input[_builtins.int]]):
354
+ pulumi.set(self, "rotation_period", value)
355
+
356
+ @_builtins.property
357
+ @pulumi.getter(name="rotationSchedule")
358
+ def rotation_schedule(self) -> Optional[pulumi.Input[_builtins.str]]:
359
+ """
360
+ The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
361
+ """
362
+ return pulumi.get(self, "rotation_schedule")
363
+
364
+ @rotation_schedule.setter
365
+ def rotation_schedule(self, value: Optional[pulumi.Input[_builtins.str]]):
366
+ pulumi.set(self, "rotation_schedule", value)
367
+
368
+ @_builtins.property
369
+ @pulumi.getter(name="rotationWindow")
370
+ def rotation_window(self) -> Optional[pulumi.Input[_builtins.int]]:
371
+ """
372
+ The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
373
+ Can only be used with rotation_schedule.
374
+ """
375
+ return pulumi.get(self, "rotation_window")
376
+
377
+ @rotation_window.setter
378
+ def rotation_window(self, value: Optional[pulumi.Input[_builtins.int]]):
379
+ pulumi.set(self, "rotation_window", value)
380
+
381
+ @_builtins.property
382
+ @pulumi.getter
383
+ def tune(self) -> Optional[pulumi.Input['OciAuthBackendTuneArgs']]:
384
+ """
385
+ Extra configuration block. Structure is documented below.
386
+
387
+ The `tune` block is used to tune the auth backend:
388
+ """
389
+ return pulumi.get(self, "tune")
390
+
391
+ @tune.setter
392
+ def tune(self, value: Optional[pulumi.Input['OciAuthBackendTuneArgs']]):
393
+ pulumi.set(self, "tune", value)
394
+
395
+
396
+ @pulumi.type_token("vault:index/ociAuthBackend:OciAuthBackend")
397
+ class OciAuthBackend(pulumi.CustomResource):
398
+ @overload
399
+ def __init__(__self__,
400
+ resource_name: str,
401
+ opts: Optional[pulumi.ResourceOptions] = None,
402
+ description: Optional[pulumi.Input[_builtins.str]] = None,
403
+ disable_automated_rotation: Optional[pulumi.Input[_builtins.bool]] = None,
404
+ disable_remount: Optional[pulumi.Input[_builtins.bool]] = None,
405
+ home_tenancy_id: Optional[pulumi.Input[_builtins.str]] = None,
406
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
407
+ path: Optional[pulumi.Input[_builtins.str]] = None,
408
+ rotation_period: Optional[pulumi.Input[_builtins.int]] = None,
409
+ rotation_schedule: Optional[pulumi.Input[_builtins.str]] = None,
410
+ rotation_window: Optional[pulumi.Input[_builtins.int]] = None,
411
+ tune: Optional[pulumi.Input[Union['OciAuthBackendTuneArgs', 'OciAuthBackendTuneArgsDict']]] = None,
412
+ __props__=None):
413
+ """
414
+ ## Example Usage
415
+
416
+ ```python
417
+ import pulumi
418
+ import pulumi_vault as vault
419
+
420
+ example = vault.OciAuthBackend("example",
421
+ path=example_vault_auth_backend["path"],
422
+ home_tenancy_id="ocid1.tenancy.oc1..aaaaaaaah7zkvaffv26pzyauoe2zbnionqvhvsexamplee557wakiofi4ysgqq")
423
+ ```
424
+
425
+ ## Import
426
+
427
+ OCI auth backends can be imported using the backend's `path`, e.g.
428
+
429
+ ```sh
430
+ $ pulumi import vault:index/ociAuthBackend:OciAuthBackend example oci
431
+ ```
432
+
433
+ :param str resource_name: The name of the resource.
434
+ :param pulumi.ResourceOptions opts: Options for the resource.
435
+ :param pulumi.Input[_builtins.str] description: A description of the auth backend.
436
+ :param pulumi.Input[_builtins.bool] disable_automated_rotation: Stops rotation of the root credential until set to false.
437
+ :param pulumi.Input[_builtins.bool] disable_remount: If set, opts out of mount migration on path updates.
438
+ :param pulumi.Input[_builtins.str] home_tenancy_id: The Tenancy OCID of your OCI account.
439
+ :param pulumi.Input[_builtins.str] namespace: The namespace to provision the resource in.
440
+ The value should not contain leading or trailing forward slashes.
441
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
442
+ *Available only for Vault Enterprise*.
443
+ :param pulumi.Input[_builtins.str] path: Unique name of the auth backend to configure.
444
+ :param pulumi.Input[_builtins.int] rotation_period: The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
445
+ :param pulumi.Input[_builtins.str] rotation_schedule: The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
446
+ :param pulumi.Input[_builtins.int] rotation_window: The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
447
+ Can only be used with rotation_schedule.
448
+ :param pulumi.Input[Union['OciAuthBackendTuneArgs', 'OciAuthBackendTuneArgsDict']] tune: Extra configuration block. Structure is documented below.
449
+
450
+ The `tune` block is used to tune the auth backend:
451
+ """
452
+ ...
453
+ @overload
454
+ def __init__(__self__,
455
+ resource_name: str,
456
+ args: OciAuthBackendArgs,
457
+ opts: Optional[pulumi.ResourceOptions] = None):
458
+ """
459
+ ## Example Usage
460
+
461
+ ```python
462
+ import pulumi
463
+ import pulumi_vault as vault
464
+
465
+ example = vault.OciAuthBackend("example",
466
+ path=example_vault_auth_backend["path"],
467
+ home_tenancy_id="ocid1.tenancy.oc1..aaaaaaaah7zkvaffv26pzyauoe2zbnionqvhvsexamplee557wakiofi4ysgqq")
468
+ ```
469
+
470
+ ## Import
471
+
472
+ OCI auth backends can be imported using the backend's `path`, e.g.
473
+
474
+ ```sh
475
+ $ pulumi import vault:index/ociAuthBackend:OciAuthBackend example oci
476
+ ```
477
+
478
+ :param str resource_name: The name of the resource.
479
+ :param OciAuthBackendArgs args: The arguments to use to populate this resource's properties.
480
+ :param pulumi.ResourceOptions opts: Options for the resource.
481
+ """
482
+ ...
483
+ def __init__(__self__, resource_name: str, *args, **kwargs):
484
+ resource_args, opts = _utilities.get_resource_args_opts(OciAuthBackendArgs, pulumi.ResourceOptions, *args, **kwargs)
485
+ if resource_args is not None:
486
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
487
+ else:
488
+ __self__._internal_init(resource_name, *args, **kwargs)
489
+
490
+ def _internal_init(__self__,
491
+ resource_name: str,
492
+ opts: Optional[pulumi.ResourceOptions] = None,
493
+ description: Optional[pulumi.Input[_builtins.str]] = None,
494
+ disable_automated_rotation: Optional[pulumi.Input[_builtins.bool]] = None,
495
+ disable_remount: Optional[pulumi.Input[_builtins.bool]] = None,
496
+ home_tenancy_id: Optional[pulumi.Input[_builtins.str]] = None,
497
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
498
+ path: Optional[pulumi.Input[_builtins.str]] = None,
499
+ rotation_period: Optional[pulumi.Input[_builtins.int]] = None,
500
+ rotation_schedule: Optional[pulumi.Input[_builtins.str]] = None,
501
+ rotation_window: Optional[pulumi.Input[_builtins.int]] = None,
502
+ tune: Optional[pulumi.Input[Union['OciAuthBackendTuneArgs', 'OciAuthBackendTuneArgsDict']]] = None,
503
+ __props__=None):
504
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
505
+ if not isinstance(opts, pulumi.ResourceOptions):
506
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
507
+ if opts.id is None:
508
+ if __props__ is not None:
509
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
510
+ __props__ = OciAuthBackendArgs.__new__(OciAuthBackendArgs)
511
+
512
+ __props__.__dict__["description"] = description
513
+ __props__.__dict__["disable_automated_rotation"] = disable_automated_rotation
514
+ __props__.__dict__["disable_remount"] = disable_remount
515
+ if home_tenancy_id is None and not opts.urn:
516
+ raise TypeError("Missing required property 'home_tenancy_id'")
517
+ __props__.__dict__["home_tenancy_id"] = None if home_tenancy_id is None else pulumi.Output.secret(home_tenancy_id)
518
+ __props__.__dict__["namespace"] = namespace
519
+ __props__.__dict__["path"] = path
520
+ __props__.__dict__["rotation_period"] = rotation_period
521
+ __props__.__dict__["rotation_schedule"] = rotation_schedule
522
+ __props__.__dict__["rotation_window"] = rotation_window
523
+ __props__.__dict__["tune"] = tune
524
+ __props__.__dict__["accessor"] = None
525
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["homeTenancyId"])
526
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
527
+ super(OciAuthBackend, __self__).__init__(
528
+ 'vault:index/ociAuthBackend:OciAuthBackend',
529
+ resource_name,
530
+ __props__,
531
+ opts)
532
+
533
+ @staticmethod
534
+ def get(resource_name: str,
535
+ id: pulumi.Input[str],
536
+ opts: Optional[pulumi.ResourceOptions] = None,
537
+ accessor: Optional[pulumi.Input[_builtins.str]] = None,
538
+ description: Optional[pulumi.Input[_builtins.str]] = None,
539
+ disable_automated_rotation: Optional[pulumi.Input[_builtins.bool]] = None,
540
+ disable_remount: Optional[pulumi.Input[_builtins.bool]] = None,
541
+ home_tenancy_id: Optional[pulumi.Input[_builtins.str]] = None,
542
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
543
+ path: Optional[pulumi.Input[_builtins.str]] = None,
544
+ rotation_period: Optional[pulumi.Input[_builtins.int]] = None,
545
+ rotation_schedule: Optional[pulumi.Input[_builtins.str]] = None,
546
+ rotation_window: Optional[pulumi.Input[_builtins.int]] = None,
547
+ tune: Optional[pulumi.Input[Union['OciAuthBackendTuneArgs', 'OciAuthBackendTuneArgsDict']]] = None) -> 'OciAuthBackend':
548
+ """
549
+ Get an existing OciAuthBackend resource's state with the given name, id, and optional extra
550
+ properties used to qualify the lookup.
551
+
552
+ :param str resource_name: The unique name of the resulting resource.
553
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
554
+ :param pulumi.ResourceOptions opts: Options for the resource.
555
+ :param pulumi.Input[_builtins.str] accessor: The accessor of the auth backend
556
+ :param pulumi.Input[_builtins.str] description: A description of the auth backend.
557
+ :param pulumi.Input[_builtins.bool] disable_automated_rotation: Stops rotation of the root credential until set to false.
558
+ :param pulumi.Input[_builtins.bool] disable_remount: If set, opts out of mount migration on path updates.
559
+ :param pulumi.Input[_builtins.str] home_tenancy_id: The Tenancy OCID of your OCI account.
560
+ :param pulumi.Input[_builtins.str] namespace: The namespace to provision the resource in.
561
+ The value should not contain leading or trailing forward slashes.
562
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
563
+ *Available only for Vault Enterprise*.
564
+ :param pulumi.Input[_builtins.str] path: Unique name of the auth backend to configure.
565
+ :param pulumi.Input[_builtins.int] rotation_period: The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
566
+ :param pulumi.Input[_builtins.str] rotation_schedule: The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
567
+ :param pulumi.Input[_builtins.int] rotation_window: The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
568
+ Can only be used with rotation_schedule.
569
+ :param pulumi.Input[Union['OciAuthBackendTuneArgs', 'OciAuthBackendTuneArgsDict']] tune: Extra configuration block. Structure is documented below.
570
+
571
+ The `tune` block is used to tune the auth backend:
572
+ """
573
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
574
+
575
+ __props__ = _OciAuthBackendState.__new__(_OciAuthBackendState)
576
+
577
+ __props__.__dict__["accessor"] = accessor
578
+ __props__.__dict__["description"] = description
579
+ __props__.__dict__["disable_automated_rotation"] = disable_automated_rotation
580
+ __props__.__dict__["disable_remount"] = disable_remount
581
+ __props__.__dict__["home_tenancy_id"] = home_tenancy_id
582
+ __props__.__dict__["namespace"] = namespace
583
+ __props__.__dict__["path"] = path
584
+ __props__.__dict__["rotation_period"] = rotation_period
585
+ __props__.__dict__["rotation_schedule"] = rotation_schedule
586
+ __props__.__dict__["rotation_window"] = rotation_window
587
+ __props__.__dict__["tune"] = tune
588
+ return OciAuthBackend(resource_name, opts=opts, __props__=__props__)
589
+
590
+ @_builtins.property
591
+ @pulumi.getter
592
+ def accessor(self) -> pulumi.Output[_builtins.str]:
593
+ """
594
+ The accessor of the auth backend
595
+ """
596
+ return pulumi.get(self, "accessor")
597
+
598
+ @_builtins.property
599
+ @pulumi.getter
600
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
601
+ """
602
+ A description of the auth backend.
603
+ """
604
+ return pulumi.get(self, "description")
605
+
606
+ @_builtins.property
607
+ @pulumi.getter(name="disableAutomatedRotation")
608
+ def disable_automated_rotation(self) -> pulumi.Output[Optional[_builtins.bool]]:
609
+ """
610
+ Stops rotation of the root credential until set to false.
611
+ """
612
+ return pulumi.get(self, "disable_automated_rotation")
613
+
614
+ @_builtins.property
615
+ @pulumi.getter(name="disableRemount")
616
+ def disable_remount(self) -> pulumi.Output[Optional[_builtins.bool]]:
617
+ """
618
+ If set, opts out of mount migration on path updates.
619
+ """
620
+ return pulumi.get(self, "disable_remount")
621
+
622
+ @_builtins.property
623
+ @pulumi.getter(name="homeTenancyId")
624
+ def home_tenancy_id(self) -> pulumi.Output[_builtins.str]:
625
+ """
626
+ The Tenancy OCID of your OCI account.
627
+ """
628
+ return pulumi.get(self, "home_tenancy_id")
629
+
630
+ @_builtins.property
631
+ @pulumi.getter
632
+ def namespace(self) -> pulumi.Output[Optional[_builtins.str]]:
633
+ """
634
+ The namespace to provision the resource in.
635
+ The value should not contain leading or trailing forward slashes.
636
+ The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
637
+ *Available only for Vault Enterprise*.
638
+ """
639
+ return pulumi.get(self, "namespace")
640
+
641
+ @_builtins.property
642
+ @pulumi.getter
643
+ def path(self) -> pulumi.Output[Optional[_builtins.str]]:
644
+ """
645
+ Unique name of the auth backend to configure.
646
+ """
647
+ return pulumi.get(self, "path")
648
+
649
+ @_builtins.property
650
+ @pulumi.getter(name="rotationPeriod")
651
+ def rotation_period(self) -> pulumi.Output[Optional[_builtins.int]]:
652
+ """
653
+ The period of time in seconds between each rotation of the root credential. Cannot be used with rotation_schedule.
654
+ """
655
+ return pulumi.get(self, "rotation_period")
656
+
657
+ @_builtins.property
658
+ @pulumi.getter(name="rotationSchedule")
659
+ def rotation_schedule(self) -> pulumi.Output[Optional[_builtins.str]]:
660
+ """
661
+ The cron-style schedule for the root credential to be rotated on. Cannot be used with rotation_period.
662
+ """
663
+ return pulumi.get(self, "rotation_schedule")
664
+
665
+ @_builtins.property
666
+ @pulumi.getter(name="rotationWindow")
667
+ def rotation_window(self) -> pulumi.Output[Optional[_builtins.int]]:
668
+ """
669
+ The maximum amount of time in seconds Vault is allowed to complete a rotation once a scheduled rotation is triggered.
670
+ Can only be used with rotation_schedule.
671
+ """
672
+ return pulumi.get(self, "rotation_window")
673
+
674
+ @_builtins.property
675
+ @pulumi.getter
676
+ def tune(self) -> pulumi.Output['outputs.OciAuthBackendTune']:
677
+ """
678
+ Extra configuration block. Structure is documented below.
679
+
680
+ The `tune` block is used to tune the auth backend:
681
+ """
682
+ return pulumi.get(self, "tune")
683
+