pulumi-vault 6.8.0a1750231010__py3-none-any.whl → 7.0.0__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_vault/__init__.py +0 -9
- pulumi_vault/_inputs.py +88 -83
- pulumi_vault/azure/backend.py +5 -93
- pulumi_vault/config/outputs.py +52 -47
- pulumi_vault/database/_inputs.py +440 -0
- pulumi_vault/database/outputs.py +308 -0
- pulumi_vault/database/secret_backend_connection.py +14 -0
- pulumi_vault/database/secrets_mount.py +14 -0
- pulumi_vault/gcp/secret_backend.py +61 -0
- pulumi_vault/kv/_inputs.py +12 -12
- pulumi_vault/kv/outputs.py +8 -8
- pulumi_vault/kv/secret_v2.py +101 -36
- pulumi_vault/okta/auth_backend.py +0 -126
- pulumi_vault/provider.py +1 -5
- pulumi_vault/pulumi-plugin.json +1 -1
- {pulumi_vault-6.8.0a1750231010.dist-info → pulumi_vault-7.0.0.dist-info}/METADATA +1 -1
- {pulumi_vault-6.8.0a1750231010.dist-info → pulumi_vault-7.0.0.dist-info}/RECORD +19 -20
- pulumi_vault/password_policy.py +0 -318
- {pulumi_vault-6.8.0a1750231010.dist-info → pulumi_vault-7.0.0.dist-info}/WHEEL +0 -0
- {pulumi_vault-6.8.0a1750231010.dist-info → pulumi_vault-7.0.0.dist-info}/top_level.txt +0 -0
@@ -1099,6 +1099,13 @@ class SecretBackendConnection(pulumi.CustomResource):
|
|
1099
1099
|
})
|
1100
1100
|
```
|
1101
1101
|
|
1102
|
+
## Ephemeral Attributes Reference
|
1103
|
+
|
1104
|
+
The following write-only attributes are supported for all DBs that support username/password:
|
1105
|
+
|
1106
|
+
* `password_wo` - (Optional) The password for the user. Can be updated.
|
1107
|
+
**Note**: This property is write-only and will not be read from the API.
|
1108
|
+
|
1102
1109
|
## Import
|
1103
1110
|
|
1104
1111
|
Database secret backend connections can be imported using the `backend`, `/config/`, and the `name` e.g.
|
@@ -1181,6 +1188,13 @@ class SecretBackendConnection(pulumi.CustomResource):
|
|
1181
1188
|
})
|
1182
1189
|
```
|
1183
1190
|
|
1191
|
+
## Ephemeral Attributes Reference
|
1192
|
+
|
1193
|
+
The following write-only attributes are supported for all DBs that support username/password:
|
1194
|
+
|
1195
|
+
* `password_wo` - (Optional) The password for the user. Can be updated.
|
1196
|
+
**Note**: This property is write-only and will not be read from the API.
|
1197
|
+
|
1184
1198
|
## Import
|
1185
1199
|
|
1186
1200
|
Database secret backend connections can be imported using the `backend`, `/config/`, and the `name` e.g.
|
@@ -1388,6 +1388,13 @@ class SecretsMount(pulumi.CustomResource):
|
|
1388
1388
|
])
|
1389
1389
|
```
|
1390
1390
|
|
1391
|
+
## Ephemeral Attributes Reference
|
1392
|
+
|
1393
|
+
The following write-only attributes are supported for all DBs that support username/password:
|
1394
|
+
|
1395
|
+
* `password_wo` - (Optional) The password for the user. Can be updated.
|
1396
|
+
**Note**: This property is write-only and will not be read from the API.
|
1397
|
+
|
1391
1398
|
## Import
|
1392
1399
|
|
1393
1400
|
Database secret backend connections can be imported using the `path` e.g.
|
@@ -1508,6 +1515,13 @@ class SecretsMount(pulumi.CustomResource):
|
|
1508
1515
|
])
|
1509
1516
|
```
|
1510
1517
|
|
1518
|
+
## Ephemeral Attributes Reference
|
1519
|
+
|
1520
|
+
The following write-only attributes are supported for all DBs that support username/password:
|
1521
|
+
|
1522
|
+
* `password_wo` - (Optional) The password for the user. Can be updated.
|
1523
|
+
**Note**: This property is write-only and will not be read from the API.
|
1524
|
+
|
1511
1525
|
## Import
|
1512
1526
|
|
1513
1527
|
Database secret backend connections can be imported using the `path` e.g.
|
@@ -21,6 +21,7 @@ __all__ = ['SecretBackendArgs', 'SecretBackend']
|
|
21
21
|
class SecretBackendArgs:
|
22
22
|
def __init__(__self__, *,
|
23
23
|
credentials: Optional[pulumi.Input[builtins.str]] = None,
|
24
|
+
credentials_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
24
25
|
default_lease_ttl_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
25
26
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
26
27
|
disable_automated_rotation: Optional[pulumi.Input[builtins.bool]] = None,
|
@@ -39,6 +40,7 @@ class SecretBackendArgs:
|
|
39
40
|
"""
|
40
41
|
The set of arguments for constructing a SecretBackend resource.
|
41
42
|
:param pulumi.Input[builtins.str] credentials: JSON-encoded credentials to use to connect to GCP
|
43
|
+
:param pulumi.Input[builtins.int] credentials_wo_version: The version of the `credentials_wo`. For more info see updating write-only attributes.
|
42
44
|
:param pulumi.Input[builtins.int] default_lease_ttl_seconds: The default TTL for credentials
|
43
45
|
issued by this backend. Defaults to '0'.
|
44
46
|
:param pulumi.Input[builtins.str] description: A human-friendly description for this backend.
|
@@ -74,6 +76,8 @@ class SecretBackendArgs:
|
|
74
76
|
"""
|
75
77
|
if credentials is not None:
|
76
78
|
pulumi.set(__self__, "credentials", credentials)
|
79
|
+
if credentials_wo_version is not None:
|
80
|
+
pulumi.set(__self__, "credentials_wo_version", credentials_wo_version)
|
77
81
|
if default_lease_ttl_seconds is not None:
|
78
82
|
pulumi.set(__self__, "default_lease_ttl_seconds", default_lease_ttl_seconds)
|
79
83
|
if description is not None:
|
@@ -117,6 +121,18 @@ class SecretBackendArgs:
|
|
117
121
|
def credentials(self, value: Optional[pulumi.Input[builtins.str]]):
|
118
122
|
pulumi.set(self, "credentials", value)
|
119
123
|
|
124
|
+
@property
|
125
|
+
@pulumi.getter(name="credentialsWoVersion")
|
126
|
+
def credentials_wo_version(self) -> Optional[pulumi.Input[builtins.int]]:
|
127
|
+
"""
|
128
|
+
The version of the `credentials_wo`. For more info see updating write-only attributes.
|
129
|
+
"""
|
130
|
+
return pulumi.get(self, "credentials_wo_version")
|
131
|
+
|
132
|
+
@credentials_wo_version.setter
|
133
|
+
def credentials_wo_version(self, value: Optional[pulumi.Input[builtins.int]]):
|
134
|
+
pulumi.set(self, "credentials_wo_version", value)
|
135
|
+
|
120
136
|
@property
|
121
137
|
@pulumi.getter(name="defaultLeaseTtlSeconds")
|
122
138
|
def default_lease_ttl_seconds(self) -> Optional[pulumi.Input[builtins.int]]:
|
@@ -320,6 +336,7 @@ class _SecretBackendState:
|
|
320
336
|
def __init__(__self__, *,
|
321
337
|
accessor: Optional[pulumi.Input[builtins.str]] = None,
|
322
338
|
credentials: Optional[pulumi.Input[builtins.str]] = None,
|
339
|
+
credentials_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
323
340
|
default_lease_ttl_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
324
341
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
325
342
|
disable_automated_rotation: Optional[pulumi.Input[builtins.bool]] = None,
|
@@ -339,6 +356,7 @@ class _SecretBackendState:
|
|
339
356
|
Input properties used for looking up and filtering SecretBackend resources.
|
340
357
|
:param pulumi.Input[builtins.str] accessor: The accessor of the created GCP mount.
|
341
358
|
:param pulumi.Input[builtins.str] credentials: JSON-encoded credentials to use to connect to GCP
|
359
|
+
:param pulumi.Input[builtins.int] credentials_wo_version: The version of the `credentials_wo`. For more info see updating write-only attributes.
|
342
360
|
:param pulumi.Input[builtins.int] default_lease_ttl_seconds: The default TTL for credentials
|
343
361
|
issued by this backend. Defaults to '0'.
|
344
362
|
:param pulumi.Input[builtins.str] description: A human-friendly description for this backend.
|
@@ -376,6 +394,8 @@ class _SecretBackendState:
|
|
376
394
|
pulumi.set(__self__, "accessor", accessor)
|
377
395
|
if credentials is not None:
|
378
396
|
pulumi.set(__self__, "credentials", credentials)
|
397
|
+
if credentials_wo_version is not None:
|
398
|
+
pulumi.set(__self__, "credentials_wo_version", credentials_wo_version)
|
379
399
|
if default_lease_ttl_seconds is not None:
|
380
400
|
pulumi.set(__self__, "default_lease_ttl_seconds", default_lease_ttl_seconds)
|
381
401
|
if description is not None:
|
@@ -431,6 +451,18 @@ class _SecretBackendState:
|
|
431
451
|
def credentials(self, value: Optional[pulumi.Input[builtins.str]]):
|
432
452
|
pulumi.set(self, "credentials", value)
|
433
453
|
|
454
|
+
@property
|
455
|
+
@pulumi.getter(name="credentialsWoVersion")
|
456
|
+
def credentials_wo_version(self) -> Optional[pulumi.Input[builtins.int]]:
|
457
|
+
"""
|
458
|
+
The version of the `credentials_wo`. For more info see updating write-only attributes.
|
459
|
+
"""
|
460
|
+
return pulumi.get(self, "credentials_wo_version")
|
461
|
+
|
462
|
+
@credentials_wo_version.setter
|
463
|
+
def credentials_wo_version(self, value: Optional[pulumi.Input[builtins.int]]):
|
464
|
+
pulumi.set(self, "credentials_wo_version", value)
|
465
|
+
|
434
466
|
@property
|
435
467
|
@pulumi.getter(name="defaultLeaseTtlSeconds")
|
436
468
|
def default_lease_ttl_seconds(self) -> Optional[pulumi.Input[builtins.int]]:
|
@@ -636,6 +668,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
636
668
|
resource_name: str,
|
637
669
|
opts: Optional[pulumi.ResourceOptions] = None,
|
638
670
|
credentials: Optional[pulumi.Input[builtins.str]] = None,
|
671
|
+
credentials_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
639
672
|
default_lease_ttl_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
640
673
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
641
674
|
disable_automated_rotation: Optional[pulumi.Input[builtins.bool]] = None,
|
@@ -680,9 +713,17 @@ class SecretBackend(pulumi.CustomResource):
|
|
680
713
|
rotation_window=3600)
|
681
714
|
```
|
682
715
|
|
716
|
+
## Ephemeral Attributes Reference
|
717
|
+
|
718
|
+
The following write-only attributes are supported:
|
719
|
+
|
720
|
+
* `credentials_wo` - (Optional) The GCP service account credentials in JSON format. Can be updated.
|
721
|
+
**Note**: This property is write-only and will not be read from the API.
|
722
|
+
|
683
723
|
:param str resource_name: The name of the resource.
|
684
724
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
685
725
|
:param pulumi.Input[builtins.str] credentials: JSON-encoded credentials to use to connect to GCP
|
726
|
+
:param pulumi.Input[builtins.int] credentials_wo_version: The version of the `credentials_wo`. For more info see updating write-only attributes.
|
686
727
|
:param pulumi.Input[builtins.int] default_lease_ttl_seconds: The default TTL for credentials
|
687
728
|
issued by this backend. Defaults to '0'.
|
688
729
|
:param pulumi.Input[builtins.str] description: A human-friendly description for this backend.
|
@@ -750,6 +791,13 @@ class SecretBackend(pulumi.CustomResource):
|
|
750
791
|
rotation_window=3600)
|
751
792
|
```
|
752
793
|
|
794
|
+
## Ephemeral Attributes Reference
|
795
|
+
|
796
|
+
The following write-only attributes are supported:
|
797
|
+
|
798
|
+
* `credentials_wo` - (Optional) The GCP service account credentials in JSON format. Can be updated.
|
799
|
+
**Note**: This property is write-only and will not be read from the API.
|
800
|
+
|
753
801
|
:param str resource_name: The name of the resource.
|
754
802
|
:param SecretBackendArgs args: The arguments to use to populate this resource's properties.
|
755
803
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -766,6 +814,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
766
814
|
resource_name: str,
|
767
815
|
opts: Optional[pulumi.ResourceOptions] = None,
|
768
816
|
credentials: Optional[pulumi.Input[builtins.str]] = None,
|
817
|
+
credentials_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
769
818
|
default_lease_ttl_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
770
819
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
771
820
|
disable_automated_rotation: Optional[pulumi.Input[builtins.bool]] = None,
|
@@ -791,6 +840,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
791
840
|
__props__ = SecretBackendArgs.__new__(SecretBackendArgs)
|
792
841
|
|
793
842
|
__props__.__dict__["credentials"] = None if credentials is None else pulumi.Output.secret(credentials)
|
843
|
+
__props__.__dict__["credentials_wo_version"] = credentials_wo_version
|
794
844
|
__props__.__dict__["default_lease_ttl_seconds"] = default_lease_ttl_seconds
|
795
845
|
__props__.__dict__["description"] = description
|
796
846
|
__props__.__dict__["disable_automated_rotation"] = disable_automated_rotation
|
@@ -821,6 +871,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
821
871
|
opts: Optional[pulumi.ResourceOptions] = None,
|
822
872
|
accessor: Optional[pulumi.Input[builtins.str]] = None,
|
823
873
|
credentials: Optional[pulumi.Input[builtins.str]] = None,
|
874
|
+
credentials_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
824
875
|
default_lease_ttl_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
825
876
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
826
877
|
disable_automated_rotation: Optional[pulumi.Input[builtins.bool]] = None,
|
@@ -845,6 +896,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
845
896
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
846
897
|
:param pulumi.Input[builtins.str] accessor: The accessor of the created GCP mount.
|
847
898
|
:param pulumi.Input[builtins.str] credentials: JSON-encoded credentials to use to connect to GCP
|
899
|
+
:param pulumi.Input[builtins.int] credentials_wo_version: The version of the `credentials_wo`. For more info see updating write-only attributes.
|
848
900
|
:param pulumi.Input[builtins.int] default_lease_ttl_seconds: The default TTL for credentials
|
849
901
|
issued by this backend. Defaults to '0'.
|
850
902
|
:param pulumi.Input[builtins.str] description: A human-friendly description for this backend.
|
@@ -884,6 +936,7 @@ class SecretBackend(pulumi.CustomResource):
|
|
884
936
|
|
885
937
|
__props__.__dict__["accessor"] = accessor
|
886
938
|
__props__.__dict__["credentials"] = credentials
|
939
|
+
__props__.__dict__["credentials_wo_version"] = credentials_wo_version
|
887
940
|
__props__.__dict__["default_lease_ttl_seconds"] = default_lease_ttl_seconds
|
888
941
|
__props__.__dict__["description"] = description
|
889
942
|
__props__.__dict__["disable_automated_rotation"] = disable_automated_rotation
|
@@ -917,6 +970,14 @@ class SecretBackend(pulumi.CustomResource):
|
|
917
970
|
"""
|
918
971
|
return pulumi.get(self, "credentials")
|
919
972
|
|
973
|
+
@property
|
974
|
+
@pulumi.getter(name="credentialsWoVersion")
|
975
|
+
def credentials_wo_version(self) -> pulumi.Output[Optional[builtins.int]]:
|
976
|
+
"""
|
977
|
+
The version of the `credentials_wo`. For more info see updating write-only attributes.
|
978
|
+
"""
|
979
|
+
return pulumi.get(self, "credentials_wo_version")
|
980
|
+
|
920
981
|
@property
|
921
982
|
@pulumi.getter(name="defaultLeaseTtlSeconds")
|
922
983
|
def default_lease_ttl_seconds(self) -> pulumi.Output[Optional[builtins.int]]:
|
pulumi_vault/kv/_inputs.py
CHANGED
@@ -30,10 +30,10 @@ if not MYPY:
|
|
30
30
|
"""
|
31
31
|
data: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]
|
32
32
|
"""
|
33
|
-
|
34
|
-
Vault
|
35
|
-
|
36
|
-
serialized as JSON.
|
33
|
+
**Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
34
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
35
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
36
|
+
so any non-string values returned from Vault are serialized as JSON.
|
37
37
|
"""
|
38
38
|
delete_version_after: NotRequired[pulumi.Input[builtins.int]]
|
39
39
|
"""
|
@@ -55,10 +55,10 @@ class SecretV2CustomMetadataArgs:
|
|
55
55
|
max_versions: Optional[pulumi.Input[builtins.int]] = None):
|
56
56
|
"""
|
57
57
|
:param pulumi.Input[builtins.bool] cas_required: If true, all keys will require the cas parameter to be set on all write requests.
|
58
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data:
|
59
|
-
Vault
|
60
|
-
|
61
|
-
serialized as JSON.
|
58
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data: **Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
59
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
60
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
61
|
+
so any non-string values returned from Vault are serialized as JSON.
|
62
62
|
:param pulumi.Input[builtins.int] delete_version_after: If set, specifies the length of time before a version is deleted.
|
63
63
|
:param pulumi.Input[builtins.int] max_versions: The number of versions to keep per key.
|
64
64
|
"""
|
@@ -87,10 +87,10 @@ class SecretV2CustomMetadataArgs:
|
|
87
87
|
@pulumi.getter
|
88
88
|
def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
89
89
|
"""
|
90
|
-
|
91
|
-
Vault
|
92
|
-
|
93
|
-
serialized as JSON.
|
90
|
+
**Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
91
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
92
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
93
|
+
so any non-string values returned from Vault are serialized as JSON.
|
94
94
|
"""
|
95
95
|
return pulumi.get(self, "data")
|
96
96
|
|
pulumi_vault/kv/outputs.py
CHANGED
@@ -49,10 +49,10 @@ class SecretV2CustomMetadata(dict):
|
|
49
49
|
max_versions: Optional[builtins.int] = None):
|
50
50
|
"""
|
51
51
|
:param builtins.bool cas_required: If true, all keys will require the cas parameter to be set on all write requests.
|
52
|
-
:param Mapping[str, builtins.str] data:
|
53
|
-
Vault
|
54
|
-
|
55
|
-
serialized as JSON.
|
52
|
+
:param Mapping[str, builtins.str] data: **Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
53
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
54
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
55
|
+
so any non-string values returned from Vault are serialized as JSON.
|
56
56
|
:param builtins.int delete_version_after: If set, specifies the length of time before a version is deleted.
|
57
57
|
:param builtins.int max_versions: The number of versions to keep per key.
|
58
58
|
"""
|
@@ -77,10 +77,10 @@ class SecretV2CustomMetadata(dict):
|
|
77
77
|
@pulumi.getter
|
78
78
|
def data(self) -> Optional[Mapping[str, builtins.str]]:
|
79
79
|
"""
|
80
|
-
|
81
|
-
Vault
|
82
|
-
|
83
|
-
serialized as JSON.
|
80
|
+
**Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
81
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
82
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
83
|
+
so any non-string values returned from Vault are serialized as JSON.
|
84
84
|
"""
|
85
85
|
return pulumi.get(self, "data")
|
86
86
|
|
pulumi_vault/kv/secret_v2.py
CHANGED
@@ -22,10 +22,11 @@ __all__ = ['SecretV2Args', 'SecretV2']
|
|
22
22
|
@pulumi.input_type
|
23
23
|
class SecretV2Args:
|
24
24
|
def __init__(__self__, *,
|
25
|
-
data_json: pulumi.Input[builtins.str],
|
26
25
|
mount: pulumi.Input[builtins.str],
|
27
26
|
cas: Optional[pulumi.Input[builtins.int]] = None,
|
28
27
|
custom_metadata: Optional[pulumi.Input['SecretV2CustomMetadataArgs']] = None,
|
28
|
+
data_json: Optional[pulumi.Input[builtins.str]] = None,
|
29
|
+
data_json_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
29
30
|
delete_all_versions: Optional[pulumi.Input[builtins.bool]] = None,
|
30
31
|
disable_read: Optional[pulumi.Input[builtins.bool]] = None,
|
31
32
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -33,8 +34,6 @@ class SecretV2Args:
|
|
33
34
|
options: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
|
34
35
|
"""
|
35
36
|
The set of arguments for constructing a SecretV2 resource.
|
36
|
-
:param pulumi.Input[builtins.str] data_json: JSON-encoded string that will be
|
37
|
-
written as the secret data at the given path.
|
38
37
|
:param pulumi.Input[builtins.str] mount: Path where KV-V2 engine is mounted.
|
39
38
|
:param pulumi.Input[builtins.int] cas: This flag is required if `cas_required` is set to true
|
40
39
|
on either the secret or the engine's config. In order for a
|
@@ -43,6 +42,9 @@ class SecretV2Args:
|
|
43
42
|
:param pulumi.Input['SecretV2CustomMetadataArgs'] custom_metadata: A nested block that allows configuring metadata for the
|
44
43
|
KV secret. Refer to the
|
45
44
|
Configuration Options for more info.
|
45
|
+
:param pulumi.Input[builtins.str] data_json: JSON-encoded string that will be
|
46
|
+
written as the secret data at the given path.
|
47
|
+
:param pulumi.Input[builtins.int] data_json_wo_version: The version of the `data_json_wo`. For more info see updating write-only attributes.
|
46
48
|
:param pulumi.Input[builtins.bool] delete_all_versions: If set to true, permanently deletes all
|
47
49
|
versions for the specified key.
|
48
50
|
:param pulumi.Input[builtins.bool] disable_read: If set to true, disables reading secret from Vault;
|
@@ -57,12 +59,15 @@ class SecretV2Args:
|
|
57
59
|
*Available only for Vault Enterprise*.
|
58
60
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] options: An object that holds option settings.
|
59
61
|
"""
|
60
|
-
pulumi.set(__self__, "data_json", data_json)
|
61
62
|
pulumi.set(__self__, "mount", mount)
|
62
63
|
if cas is not None:
|
63
64
|
pulumi.set(__self__, "cas", cas)
|
64
65
|
if custom_metadata is not None:
|
65
66
|
pulumi.set(__self__, "custom_metadata", custom_metadata)
|
67
|
+
if data_json is not None:
|
68
|
+
pulumi.set(__self__, "data_json", data_json)
|
69
|
+
if data_json_wo_version is not None:
|
70
|
+
pulumi.set(__self__, "data_json_wo_version", data_json_wo_version)
|
66
71
|
if delete_all_versions is not None:
|
67
72
|
pulumi.set(__self__, "delete_all_versions", delete_all_versions)
|
68
73
|
if disable_read is not None:
|
@@ -74,19 +79,6 @@ class SecretV2Args:
|
|
74
79
|
if options is not None:
|
75
80
|
pulumi.set(__self__, "options", options)
|
76
81
|
|
77
|
-
@property
|
78
|
-
@pulumi.getter(name="dataJson")
|
79
|
-
def data_json(self) -> pulumi.Input[builtins.str]:
|
80
|
-
"""
|
81
|
-
JSON-encoded string that will be
|
82
|
-
written as the secret data at the given path.
|
83
|
-
"""
|
84
|
-
return pulumi.get(self, "data_json")
|
85
|
-
|
86
|
-
@data_json.setter
|
87
|
-
def data_json(self, value: pulumi.Input[builtins.str]):
|
88
|
-
pulumi.set(self, "data_json", value)
|
89
|
-
|
90
82
|
@property
|
91
83
|
@pulumi.getter
|
92
84
|
def mount(self) -> pulumi.Input[builtins.str]:
|
@@ -128,6 +120,31 @@ class SecretV2Args:
|
|
128
120
|
def custom_metadata(self, value: Optional[pulumi.Input['SecretV2CustomMetadataArgs']]):
|
129
121
|
pulumi.set(self, "custom_metadata", value)
|
130
122
|
|
123
|
+
@property
|
124
|
+
@pulumi.getter(name="dataJson")
|
125
|
+
def data_json(self) -> Optional[pulumi.Input[builtins.str]]:
|
126
|
+
"""
|
127
|
+
JSON-encoded string that will be
|
128
|
+
written as the secret data at the given path.
|
129
|
+
"""
|
130
|
+
return pulumi.get(self, "data_json")
|
131
|
+
|
132
|
+
@data_json.setter
|
133
|
+
def data_json(self, value: Optional[pulumi.Input[builtins.str]]):
|
134
|
+
pulumi.set(self, "data_json", value)
|
135
|
+
|
136
|
+
@property
|
137
|
+
@pulumi.getter(name="dataJsonWoVersion")
|
138
|
+
def data_json_wo_version(self) -> Optional[pulumi.Input[builtins.int]]:
|
139
|
+
"""
|
140
|
+
The version of the `data_json_wo`. For more info see updating write-only attributes.
|
141
|
+
"""
|
142
|
+
return pulumi.get(self, "data_json_wo_version")
|
143
|
+
|
144
|
+
@data_json_wo_version.setter
|
145
|
+
def data_json_wo_version(self, value: Optional[pulumi.Input[builtins.int]]):
|
146
|
+
pulumi.set(self, "data_json_wo_version", value)
|
147
|
+
|
131
148
|
@property
|
132
149
|
@pulumi.getter(name="deleteAllVersions")
|
133
150
|
def delete_all_versions(self) -> Optional[pulumi.Input[builtins.bool]]:
|
@@ -204,6 +221,7 @@ class _SecretV2State:
|
|
204
221
|
custom_metadata: Optional[pulumi.Input['SecretV2CustomMetadataArgs']] = None,
|
205
222
|
data: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
206
223
|
data_json: Optional[pulumi.Input[builtins.str]] = None,
|
224
|
+
data_json_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
207
225
|
delete_all_versions: Optional[pulumi.Input[builtins.bool]] = None,
|
208
226
|
disable_read: Optional[pulumi.Input[builtins.bool]] = None,
|
209
227
|
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
@@ -221,12 +239,13 @@ class _SecretV2State:
|
|
221
239
|
:param pulumi.Input['SecretV2CustomMetadataArgs'] custom_metadata: A nested block that allows configuring metadata for the
|
222
240
|
KV secret. Refer to the
|
223
241
|
Configuration Options for more info.
|
224
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data:
|
225
|
-
Vault
|
226
|
-
|
227
|
-
serialized as JSON.
|
242
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data: **Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
243
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
244
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
245
|
+
so any non-string values returned from Vault are serialized as JSON.
|
228
246
|
:param pulumi.Input[builtins.str] data_json: JSON-encoded string that will be
|
229
247
|
written as the secret data at the given path.
|
248
|
+
:param pulumi.Input[builtins.int] data_json_wo_version: The version of the `data_json_wo`. For more info see updating write-only attributes.
|
230
249
|
:param pulumi.Input[builtins.bool] delete_all_versions: If set to true, permanently deletes all
|
231
250
|
versions for the specified key.
|
232
251
|
:param pulumi.Input[builtins.bool] disable_read: If set to true, disables reading secret from Vault;
|
@@ -248,10 +267,15 @@ class _SecretV2State:
|
|
248
267
|
pulumi.set(__self__, "cas", cas)
|
249
268
|
if custom_metadata is not None:
|
250
269
|
pulumi.set(__self__, "custom_metadata", custom_metadata)
|
270
|
+
if data is not None:
|
271
|
+
warnings.warn("""Deprecated. Will no longer be set on a read.""", DeprecationWarning)
|
272
|
+
pulumi.log.warn("""data is deprecated: Deprecated. Will no longer be set on a read.""")
|
251
273
|
if data is not None:
|
252
274
|
pulumi.set(__self__, "data", data)
|
253
275
|
if data_json is not None:
|
254
276
|
pulumi.set(__self__, "data_json", data_json)
|
277
|
+
if data_json_wo_version is not None:
|
278
|
+
pulumi.set(__self__, "data_json_wo_version", data_json_wo_version)
|
255
279
|
if delete_all_versions is not None:
|
256
280
|
pulumi.set(__self__, "delete_all_versions", delete_all_versions)
|
257
281
|
if disable_read is not None:
|
@@ -300,12 +324,13 @@ class _SecretV2State:
|
|
300
324
|
|
301
325
|
@property
|
302
326
|
@pulumi.getter
|
327
|
+
@_utilities.deprecated("""Deprecated. Will no longer be set on a read.""")
|
303
328
|
def data(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
304
329
|
"""
|
305
|
-
|
306
|
-
Vault
|
307
|
-
|
308
|
-
serialized as JSON.
|
330
|
+
**Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
331
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
332
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
333
|
+
so any non-string values returned from Vault are serialized as JSON.
|
309
334
|
"""
|
310
335
|
return pulumi.get(self, "data")
|
311
336
|
|
@@ -326,6 +351,18 @@ class _SecretV2State:
|
|
326
351
|
def data_json(self, value: Optional[pulumi.Input[builtins.str]]):
|
327
352
|
pulumi.set(self, "data_json", value)
|
328
353
|
|
354
|
+
@property
|
355
|
+
@pulumi.getter(name="dataJsonWoVersion")
|
356
|
+
def data_json_wo_version(self) -> Optional[pulumi.Input[builtins.int]]:
|
357
|
+
"""
|
358
|
+
The version of the `data_json_wo`. For more info see updating write-only attributes.
|
359
|
+
"""
|
360
|
+
return pulumi.get(self, "data_json_wo_version")
|
361
|
+
|
362
|
+
@data_json_wo_version.setter
|
363
|
+
def data_json_wo_version(self, value: Optional[pulumi.Input[builtins.int]]):
|
364
|
+
pulumi.set(self, "data_json_wo_version", value)
|
365
|
+
|
329
366
|
@property
|
330
367
|
@pulumi.getter(name="deleteAllVersions")
|
331
368
|
def delete_all_versions(self) -> Optional[pulumi.Input[builtins.bool]]:
|
@@ -440,6 +477,7 @@ class SecretV2(pulumi.CustomResource):
|
|
440
477
|
cas: Optional[pulumi.Input[builtins.int]] = None,
|
441
478
|
custom_metadata: Optional[pulumi.Input[Union['SecretV2CustomMetadataArgs', 'SecretV2CustomMetadataArgsDict']]] = None,
|
442
479
|
data_json: Optional[pulumi.Input[builtins.str]] = None,
|
480
|
+
data_json_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
443
481
|
delete_all_versions: Optional[pulumi.Input[builtins.bool]] = None,
|
444
482
|
disable_read: Optional[pulumi.Input[builtins.bool]] = None,
|
445
483
|
mount: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -504,6 +542,13 @@ class SecretV2(pulumi.CustomResource):
|
|
504
542
|
|
505
543
|
* `data` - (Optional) A string to string map describing the secret.
|
506
544
|
|
545
|
+
## Ephemeral Attributes Reference
|
546
|
+
|
547
|
+
The following write-only attributes are supported:
|
548
|
+
|
549
|
+
* `data_json_wo` - (Optional) JSON-encoded secret data to write to Vault. Can be updated.
|
550
|
+
**Note**: This property is write-only and will not be read from the API.
|
551
|
+
|
507
552
|
## Import
|
508
553
|
|
509
554
|
KV-V2 secrets can be imported using the `path`, e.g.
|
@@ -523,6 +568,7 @@ class SecretV2(pulumi.CustomResource):
|
|
523
568
|
Configuration Options for more info.
|
524
569
|
:param pulumi.Input[builtins.str] data_json: JSON-encoded string that will be
|
525
570
|
written as the secret data at the given path.
|
571
|
+
:param pulumi.Input[builtins.int] data_json_wo_version: The version of the `data_json_wo`. For more info see updating write-only attributes.
|
526
572
|
:param pulumi.Input[builtins.bool] delete_all_versions: If set to true, permanently deletes all
|
527
573
|
versions for the specified key.
|
528
574
|
:param pulumi.Input[builtins.bool] disable_read: If set to true, disables reading secret from Vault;
|
@@ -601,6 +647,13 @@ class SecretV2(pulumi.CustomResource):
|
|
601
647
|
|
602
648
|
* `data` - (Optional) A string to string map describing the secret.
|
603
649
|
|
650
|
+
## Ephemeral Attributes Reference
|
651
|
+
|
652
|
+
The following write-only attributes are supported:
|
653
|
+
|
654
|
+
* `data_json_wo` - (Optional) JSON-encoded secret data to write to Vault. Can be updated.
|
655
|
+
**Note**: This property is write-only and will not be read from the API.
|
656
|
+
|
604
657
|
## Import
|
605
658
|
|
606
659
|
KV-V2 secrets can be imported using the `path`, e.g.
|
@@ -627,6 +680,7 @@ class SecretV2(pulumi.CustomResource):
|
|
627
680
|
cas: Optional[pulumi.Input[builtins.int]] = None,
|
628
681
|
custom_metadata: Optional[pulumi.Input[Union['SecretV2CustomMetadataArgs', 'SecretV2CustomMetadataArgsDict']]] = None,
|
629
682
|
data_json: Optional[pulumi.Input[builtins.str]] = None,
|
683
|
+
data_json_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
630
684
|
delete_all_versions: Optional[pulumi.Input[builtins.bool]] = None,
|
631
685
|
disable_read: Optional[pulumi.Input[builtins.bool]] = None,
|
632
686
|
mount: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -644,9 +698,8 @@ class SecretV2(pulumi.CustomResource):
|
|
644
698
|
|
645
699
|
__props__.__dict__["cas"] = cas
|
646
700
|
__props__.__dict__["custom_metadata"] = custom_metadata
|
647
|
-
if data_json is None and not opts.urn:
|
648
|
-
raise TypeError("Missing required property 'data_json'")
|
649
701
|
__props__.__dict__["data_json"] = None if data_json is None else pulumi.Output.secret(data_json)
|
702
|
+
__props__.__dict__["data_json_wo_version"] = data_json_wo_version
|
650
703
|
__props__.__dict__["delete_all_versions"] = delete_all_versions
|
651
704
|
__props__.__dict__["disable_read"] = disable_read
|
652
705
|
if mount is None and not opts.urn:
|
@@ -674,6 +727,7 @@ class SecretV2(pulumi.CustomResource):
|
|
674
727
|
custom_metadata: Optional[pulumi.Input[Union['SecretV2CustomMetadataArgs', 'SecretV2CustomMetadataArgsDict']]] = None,
|
675
728
|
data: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
676
729
|
data_json: Optional[pulumi.Input[builtins.str]] = None,
|
730
|
+
data_json_wo_version: Optional[pulumi.Input[builtins.int]] = None,
|
677
731
|
delete_all_versions: Optional[pulumi.Input[builtins.bool]] = None,
|
678
732
|
disable_read: Optional[pulumi.Input[builtins.bool]] = None,
|
679
733
|
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
@@ -696,12 +750,13 @@ class SecretV2(pulumi.CustomResource):
|
|
696
750
|
:param pulumi.Input[Union['SecretV2CustomMetadataArgs', 'SecretV2CustomMetadataArgsDict']] custom_metadata: A nested block that allows configuring metadata for the
|
697
751
|
KV secret. Refer to the
|
698
752
|
Configuration Options for more info.
|
699
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data:
|
700
|
-
Vault
|
701
|
-
|
702
|
-
serialized as JSON.
|
753
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] data: **Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
754
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
755
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
756
|
+
so any non-string values returned from Vault are serialized as JSON.
|
703
757
|
:param pulumi.Input[builtins.str] data_json: JSON-encoded string that will be
|
704
758
|
written as the secret data at the given path.
|
759
|
+
:param pulumi.Input[builtins.int] data_json_wo_version: The version of the `data_json_wo`. For more info see updating write-only attributes.
|
705
760
|
:param pulumi.Input[builtins.bool] delete_all_versions: If set to true, permanently deletes all
|
706
761
|
versions for the specified key.
|
707
762
|
:param pulumi.Input[builtins.bool] disable_read: If set to true, disables reading secret from Vault;
|
@@ -727,6 +782,7 @@ class SecretV2(pulumi.CustomResource):
|
|
727
782
|
__props__.__dict__["custom_metadata"] = custom_metadata
|
728
783
|
__props__.__dict__["data"] = data
|
729
784
|
__props__.__dict__["data_json"] = data_json
|
785
|
+
__props__.__dict__["data_json_wo_version"] = data_json_wo_version
|
730
786
|
__props__.__dict__["delete_all_versions"] = delete_all_versions
|
731
787
|
__props__.__dict__["disable_read"] = disable_read
|
732
788
|
__props__.__dict__["metadata"] = metadata
|
@@ -760,24 +816,33 @@ class SecretV2(pulumi.CustomResource):
|
|
760
816
|
|
761
817
|
@property
|
762
818
|
@pulumi.getter
|
819
|
+
@_utilities.deprecated("""Deprecated. Will no longer be set on a read.""")
|
763
820
|
def data(self) -> pulumi.Output[Mapping[str, builtins.str]]:
|
764
821
|
"""
|
765
|
-
|
766
|
-
Vault
|
767
|
-
|
768
|
-
serialized as JSON.
|
822
|
+
**Deprecated. Please use new ephemeral resource `kv.SecretV2` to read back
|
823
|
+
secret data from Vault**. A mapping whose keys are the top-level data keys returned from
|
824
|
+
Vault and whose values are the corresponding values. This map can only represent string data,
|
825
|
+
so any non-string values returned from Vault are serialized as JSON.
|
769
826
|
"""
|
770
827
|
return pulumi.get(self, "data")
|
771
828
|
|
772
829
|
@property
|
773
830
|
@pulumi.getter(name="dataJson")
|
774
|
-
def data_json(self) -> pulumi.Output[builtins.str]:
|
831
|
+
def data_json(self) -> pulumi.Output[Optional[builtins.str]]:
|
775
832
|
"""
|
776
833
|
JSON-encoded string that will be
|
777
834
|
written as the secret data at the given path.
|
778
835
|
"""
|
779
836
|
return pulumi.get(self, "data_json")
|
780
837
|
|
838
|
+
@property
|
839
|
+
@pulumi.getter(name="dataJsonWoVersion")
|
840
|
+
def data_json_wo_version(self) -> pulumi.Output[Optional[builtins.int]]:
|
841
|
+
"""
|
842
|
+
The version of the `data_json_wo`. For more info see updating write-only attributes.
|
843
|
+
"""
|
844
|
+
return pulumi.get(self, "data_json_wo_version")
|
845
|
+
|
781
846
|
@property
|
782
847
|
@pulumi.getter(name="deleteAllVersions")
|
783
848
|
def delete_all_versions(self) -> pulumi.Output[Optional[builtins.bool]]:
|