pulumi-vault 6.1.0__py3-none-any.whl → 6.1.0a1711522308__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 -2
- pulumi_vault/kubernetes/secret_backend_role.py +25 -99
- pulumi_vault/mongodbatlas/secret_backend.py +6 -6
- pulumi_vault/mongodbatlas/secret_role.py +27 -27
- pulumi_vault/secrets/__init__.py +0 -2
- pulumi_vault/secrets/sync_association.py +58 -32
- pulumi_vault/secrets/sync_aws_destination.py +0 -54
- pulumi_vault/secrets/sync_azure_destination.py +0 -54
- pulumi_vault/secrets/sync_gcp_destination.py +0 -54
- pulumi_vault/secrets/sync_gh_destination.py +0 -54
- pulumi_vault/secrets/sync_vercel_destination.py +0 -54
- {pulumi_vault-6.1.0.dist-info → pulumi_vault-6.1.0a1711522308.dist-info}/METADATA +1 -1
- {pulumi_vault-6.1.0.dist-info → pulumi_vault-6.1.0a1711522308.dist-info}/RECORD +15 -19
- pulumi_vault/get_namespace.py +0 -225
- pulumi_vault/get_namespaces.py +0 -152
- pulumi_vault/secrets/_inputs.py +0 -80
- pulumi_vault/secrets/outputs.py +0 -89
- {pulumi_vault-6.1.0.dist-info → pulumi_vault-6.1.0a1711522308.dist-info}/WHEEL +0 -0
- {pulumi_vault-6.1.0.dist-info → pulumi_vault-6.1.0a1711522308.dist-info}/top_level.txt +0 -0
pulumi_vault/get_namespace.py
DELETED
@@ -1,225 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import copy
|
6
|
-
import warnings
|
7
|
-
import pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from . import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'GetNamespaceResult',
|
14
|
-
'AwaitableGetNamespaceResult',
|
15
|
-
'get_namespace',
|
16
|
-
'get_namespace_output',
|
17
|
-
]
|
18
|
-
|
19
|
-
@pulumi.output_type
|
20
|
-
class GetNamespaceResult:
|
21
|
-
"""
|
22
|
-
A collection of values returned by getNamespace.
|
23
|
-
"""
|
24
|
-
def __init__(__self__, custom_metadata=None, id=None, namespace=None, namespace_id=None, path=None, path_fq=None):
|
25
|
-
if custom_metadata and not isinstance(custom_metadata, dict):
|
26
|
-
raise TypeError("Expected argument 'custom_metadata' to be a dict")
|
27
|
-
pulumi.set(__self__, "custom_metadata", custom_metadata)
|
28
|
-
if id and not isinstance(id, str):
|
29
|
-
raise TypeError("Expected argument 'id' to be a str")
|
30
|
-
pulumi.set(__self__, "id", id)
|
31
|
-
if namespace and not isinstance(namespace, str):
|
32
|
-
raise TypeError("Expected argument 'namespace' to be a str")
|
33
|
-
pulumi.set(__self__, "namespace", namespace)
|
34
|
-
if namespace_id and not isinstance(namespace_id, str):
|
35
|
-
raise TypeError("Expected argument 'namespace_id' to be a str")
|
36
|
-
pulumi.set(__self__, "namespace_id", namespace_id)
|
37
|
-
if path and not isinstance(path, str):
|
38
|
-
raise TypeError("Expected argument 'path' to be a str")
|
39
|
-
pulumi.set(__self__, "path", path)
|
40
|
-
if path_fq and not isinstance(path_fq, str):
|
41
|
-
raise TypeError("Expected argument 'path_fq' to be a str")
|
42
|
-
pulumi.set(__self__, "path_fq", path_fq)
|
43
|
-
|
44
|
-
@property
|
45
|
-
@pulumi.getter(name="customMetadata")
|
46
|
-
def custom_metadata(self) -> Mapping[str, Any]:
|
47
|
-
"""
|
48
|
-
(Optional) A map of strings containing arbitrary metadata for the namespace.
|
49
|
-
Only fetched if `path` is specified.
|
50
|
-
*Requires Vault 1.12+.*
|
51
|
-
"""
|
52
|
-
return pulumi.get(self, "custom_metadata")
|
53
|
-
|
54
|
-
@property
|
55
|
-
@pulumi.getter
|
56
|
-
def id(self) -> str:
|
57
|
-
"""
|
58
|
-
The provider-assigned unique ID for this managed resource.
|
59
|
-
"""
|
60
|
-
return pulumi.get(self, "id")
|
61
|
-
|
62
|
-
@property
|
63
|
-
@pulumi.getter
|
64
|
-
def namespace(self) -> Optional[str]:
|
65
|
-
return pulumi.get(self, "namespace")
|
66
|
-
|
67
|
-
@property
|
68
|
-
@pulumi.getter(name="namespaceId")
|
69
|
-
def namespace_id(self) -> str:
|
70
|
-
"""
|
71
|
-
Vault server's internal ID of the namespace.
|
72
|
-
Only fetched if `path` is specified.
|
73
|
-
"""
|
74
|
-
return pulumi.get(self, "namespace_id")
|
75
|
-
|
76
|
-
@property
|
77
|
-
@pulumi.getter
|
78
|
-
def path(self) -> Optional[str]:
|
79
|
-
return pulumi.get(self, "path")
|
80
|
-
|
81
|
-
@property
|
82
|
-
@pulumi.getter(name="pathFq")
|
83
|
-
def path_fq(self) -> str:
|
84
|
-
"""
|
85
|
-
The fully qualified path to the namespace. Useful when provisioning resources in a child `namespace`.
|
86
|
-
The path is relative to the provider's `namespace` argument.
|
87
|
-
"""
|
88
|
-
return pulumi.get(self, "path_fq")
|
89
|
-
|
90
|
-
|
91
|
-
class AwaitableGetNamespaceResult(GetNamespaceResult):
|
92
|
-
# pylint: disable=using-constant-test
|
93
|
-
def __await__(self):
|
94
|
-
if False:
|
95
|
-
yield self
|
96
|
-
return GetNamespaceResult(
|
97
|
-
custom_metadata=self.custom_metadata,
|
98
|
-
id=self.id,
|
99
|
-
namespace=self.namespace,
|
100
|
-
namespace_id=self.namespace_id,
|
101
|
-
path=self.path,
|
102
|
-
path_fq=self.path_fq)
|
103
|
-
|
104
|
-
|
105
|
-
def get_namespace(namespace: Optional[str] = None,
|
106
|
-
path: Optional[str] = None,
|
107
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNamespaceResult:
|
108
|
-
"""
|
109
|
-
## Example Usage
|
110
|
-
|
111
|
-
### Current namespace
|
112
|
-
|
113
|
-
<!--Start PulumiCodeChooser -->
|
114
|
-
```python
|
115
|
-
import pulumi
|
116
|
-
import pulumi_vault as vault
|
117
|
-
|
118
|
-
current = vault.get_namespace()
|
119
|
-
```
|
120
|
-
<!--End PulumiCodeChooser -->
|
121
|
-
|
122
|
-
### Single namespace
|
123
|
-
|
124
|
-
<!--Start PulumiCodeChooser -->
|
125
|
-
```python
|
126
|
-
import pulumi
|
127
|
-
import pulumi_vault as vault
|
128
|
-
|
129
|
-
ns1 = vault.get_namespace(path="ns1")
|
130
|
-
```
|
131
|
-
<!--End PulumiCodeChooser -->
|
132
|
-
|
133
|
-
### Nested namespace
|
134
|
-
|
135
|
-
<!--Start PulumiCodeChooser -->
|
136
|
-
```python
|
137
|
-
import pulumi
|
138
|
-
import pulumi_vault as vault
|
139
|
-
|
140
|
-
child = vault.get_namespace(namespace="parent",
|
141
|
-
path="child")
|
142
|
-
full_path = child.id
|
143
|
-
# -> foo/parent/child/
|
144
|
-
path_fq = child.path_fq
|
145
|
-
```
|
146
|
-
<!--End PulumiCodeChooser -->
|
147
|
-
|
148
|
-
|
149
|
-
:param str namespace: The namespace to provision the resource in.
|
150
|
-
The value should not contain leading or trailing forward slashes.
|
151
|
-
The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
|
152
|
-
:param str path: The path of the namespace. Must not have a trailing `/`.
|
153
|
-
If not specified or empty, path attributes are set for the current namespace
|
154
|
-
based on the `namespace` arguments of the provider and this data source.
|
155
|
-
Other path related attributes will be empty in this case.
|
156
|
-
"""
|
157
|
-
__args__ = dict()
|
158
|
-
__args__['namespace'] = namespace
|
159
|
-
__args__['path'] = path
|
160
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
161
|
-
__ret__ = pulumi.runtime.invoke('vault:index/getNamespace:getNamespace', __args__, opts=opts, typ=GetNamespaceResult).value
|
162
|
-
|
163
|
-
return AwaitableGetNamespaceResult(
|
164
|
-
custom_metadata=pulumi.get(__ret__, 'custom_metadata'),
|
165
|
-
id=pulumi.get(__ret__, 'id'),
|
166
|
-
namespace=pulumi.get(__ret__, 'namespace'),
|
167
|
-
namespace_id=pulumi.get(__ret__, 'namespace_id'),
|
168
|
-
path=pulumi.get(__ret__, 'path'),
|
169
|
-
path_fq=pulumi.get(__ret__, 'path_fq'))
|
170
|
-
|
171
|
-
|
172
|
-
@_utilities.lift_output_func(get_namespace)
|
173
|
-
def get_namespace_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
174
|
-
path: Optional[pulumi.Input[Optional[str]]] = None,
|
175
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNamespaceResult]:
|
176
|
-
"""
|
177
|
-
## Example Usage
|
178
|
-
|
179
|
-
### Current namespace
|
180
|
-
|
181
|
-
<!--Start PulumiCodeChooser -->
|
182
|
-
```python
|
183
|
-
import pulumi
|
184
|
-
import pulumi_vault as vault
|
185
|
-
|
186
|
-
current = vault.get_namespace()
|
187
|
-
```
|
188
|
-
<!--End PulumiCodeChooser -->
|
189
|
-
|
190
|
-
### Single namespace
|
191
|
-
|
192
|
-
<!--Start PulumiCodeChooser -->
|
193
|
-
```python
|
194
|
-
import pulumi
|
195
|
-
import pulumi_vault as vault
|
196
|
-
|
197
|
-
ns1 = vault.get_namespace(path="ns1")
|
198
|
-
```
|
199
|
-
<!--End PulumiCodeChooser -->
|
200
|
-
|
201
|
-
### Nested namespace
|
202
|
-
|
203
|
-
<!--Start PulumiCodeChooser -->
|
204
|
-
```python
|
205
|
-
import pulumi
|
206
|
-
import pulumi_vault as vault
|
207
|
-
|
208
|
-
child = vault.get_namespace(namespace="parent",
|
209
|
-
path="child")
|
210
|
-
full_path = child.id
|
211
|
-
# -> foo/parent/child/
|
212
|
-
path_fq = child.path_fq
|
213
|
-
```
|
214
|
-
<!--End PulumiCodeChooser -->
|
215
|
-
|
216
|
-
|
217
|
-
:param str namespace: The namespace to provision the resource in.
|
218
|
-
The value should not contain leading or trailing forward slashes.
|
219
|
-
The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
|
220
|
-
:param str path: The path of the namespace. Must not have a trailing `/`.
|
221
|
-
If not specified or empty, path attributes are set for the current namespace
|
222
|
-
based on the `namespace` arguments of the provider and this data source.
|
223
|
-
Other path related attributes will be empty in this case.
|
224
|
-
"""
|
225
|
-
...
|
pulumi_vault/get_namespaces.py
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import copy
|
6
|
-
import warnings
|
7
|
-
import pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from . import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'GetNamespacesResult',
|
14
|
-
'AwaitableGetNamespacesResult',
|
15
|
-
'get_namespaces',
|
16
|
-
'get_namespaces_output',
|
17
|
-
]
|
18
|
-
|
19
|
-
@pulumi.output_type
|
20
|
-
class GetNamespacesResult:
|
21
|
-
"""
|
22
|
-
A collection of values returned by getNamespaces.
|
23
|
-
"""
|
24
|
-
def __init__(__self__, id=None, namespace=None, paths=None):
|
25
|
-
if id and not isinstance(id, str):
|
26
|
-
raise TypeError("Expected argument 'id' to be a str")
|
27
|
-
pulumi.set(__self__, "id", id)
|
28
|
-
if namespace and not isinstance(namespace, str):
|
29
|
-
raise TypeError("Expected argument 'namespace' to be a str")
|
30
|
-
pulumi.set(__self__, "namespace", namespace)
|
31
|
-
if paths and not isinstance(paths, list):
|
32
|
-
raise TypeError("Expected argument 'paths' to be a list")
|
33
|
-
pulumi.set(__self__, "paths", paths)
|
34
|
-
|
35
|
-
@property
|
36
|
-
@pulumi.getter
|
37
|
-
def id(self) -> str:
|
38
|
-
"""
|
39
|
-
The provider-assigned unique ID for this managed resource.
|
40
|
-
"""
|
41
|
-
return pulumi.get(self, "id")
|
42
|
-
|
43
|
-
@property
|
44
|
-
@pulumi.getter
|
45
|
-
def namespace(self) -> Optional[str]:
|
46
|
-
return pulumi.get(self, "namespace")
|
47
|
-
|
48
|
-
@property
|
49
|
-
@pulumi.getter
|
50
|
-
def paths(self) -> Sequence[str]:
|
51
|
-
"""
|
52
|
-
Set of the paths of direct child namespaces.
|
53
|
-
"""
|
54
|
-
return pulumi.get(self, "paths")
|
55
|
-
|
56
|
-
|
57
|
-
class AwaitableGetNamespacesResult(GetNamespacesResult):
|
58
|
-
# pylint: disable=using-constant-test
|
59
|
-
def __await__(self):
|
60
|
-
if False:
|
61
|
-
yield self
|
62
|
-
return GetNamespacesResult(
|
63
|
-
id=self.id,
|
64
|
-
namespace=self.namespace,
|
65
|
-
paths=self.paths)
|
66
|
-
|
67
|
-
|
68
|
-
def get_namespaces(namespace: Optional[str] = None,
|
69
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNamespacesResult:
|
70
|
-
"""
|
71
|
-
## Example Usage
|
72
|
-
|
73
|
-
### Child namespaces
|
74
|
-
|
75
|
-
<!--Start PulumiCodeChooser -->
|
76
|
-
```python
|
77
|
-
import pulumi
|
78
|
-
import pulumi_vault as vault
|
79
|
-
|
80
|
-
children = vault.get_namespaces()
|
81
|
-
```
|
82
|
-
<!--End PulumiCodeChooser -->
|
83
|
-
|
84
|
-
### Nested namespace
|
85
|
-
|
86
|
-
To fetch the details of nested namespaces:
|
87
|
-
|
88
|
-
<!--Start PulumiCodeChooser -->
|
89
|
-
```python
|
90
|
-
import pulumi
|
91
|
-
import pulumi_vault as vault
|
92
|
-
|
93
|
-
children = vault.get_namespaces(namespace="parent")
|
94
|
-
child = [vault.get_namespace(namespace=children.namespace,
|
95
|
-
path=__key) for __key, __value in children.paths]
|
96
|
-
```
|
97
|
-
<!--End PulumiCodeChooser -->
|
98
|
-
|
99
|
-
|
100
|
-
:param str namespace: The namespace to provision the resource in.
|
101
|
-
The value should not contain leading or trailing forward slashes.
|
102
|
-
The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
|
103
|
-
"""
|
104
|
-
__args__ = dict()
|
105
|
-
__args__['namespace'] = namespace
|
106
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
107
|
-
__ret__ = pulumi.runtime.invoke('vault:index/getNamespaces:getNamespaces', __args__, opts=opts, typ=GetNamespacesResult).value
|
108
|
-
|
109
|
-
return AwaitableGetNamespacesResult(
|
110
|
-
id=pulumi.get(__ret__, 'id'),
|
111
|
-
namespace=pulumi.get(__ret__, 'namespace'),
|
112
|
-
paths=pulumi.get(__ret__, 'paths'))
|
113
|
-
|
114
|
-
|
115
|
-
@_utilities.lift_output_func(get_namespaces)
|
116
|
-
def get_namespaces_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
117
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNamespacesResult]:
|
118
|
-
"""
|
119
|
-
## Example Usage
|
120
|
-
|
121
|
-
### Child namespaces
|
122
|
-
|
123
|
-
<!--Start PulumiCodeChooser -->
|
124
|
-
```python
|
125
|
-
import pulumi
|
126
|
-
import pulumi_vault as vault
|
127
|
-
|
128
|
-
children = vault.get_namespaces()
|
129
|
-
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
|
-
|
132
|
-
### Nested namespace
|
133
|
-
|
134
|
-
To fetch the details of nested namespaces:
|
135
|
-
|
136
|
-
<!--Start PulumiCodeChooser -->
|
137
|
-
```python
|
138
|
-
import pulumi
|
139
|
-
import pulumi_vault as vault
|
140
|
-
|
141
|
-
children = vault.get_namespaces(namespace="parent")
|
142
|
-
child = [vault.get_namespace(namespace=children.namespace,
|
143
|
-
path=__key) for __key, __value in children.paths]
|
144
|
-
```
|
145
|
-
<!--End PulumiCodeChooser -->
|
146
|
-
|
147
|
-
|
148
|
-
:param str namespace: The namespace to provision the resource in.
|
149
|
-
The value should not contain leading or trailing forward slashes.
|
150
|
-
The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault#namespace).
|
151
|
-
"""
|
152
|
-
...
|
pulumi_vault/secrets/_inputs.py
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import copy
|
6
|
-
import warnings
|
7
|
-
import pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'SyncAssociationMetadataArgs',
|
14
|
-
]
|
15
|
-
|
16
|
-
@pulumi.input_type
|
17
|
-
class SyncAssociationMetadataArgs:
|
18
|
-
def __init__(__self__, *,
|
19
|
-
sub_key: Optional[pulumi.Input[str]] = None,
|
20
|
-
sync_status: Optional[pulumi.Input[str]] = None,
|
21
|
-
updated_at: Optional[pulumi.Input[str]] = None):
|
22
|
-
"""
|
23
|
-
:param pulumi.Input[str] sub_key: Subkey of the associated secret.
|
24
|
-
:param pulumi.Input[str] sync_status: A map of sync statuses for each subkey of the associated secret
|
25
|
-
(for ex. `{kv_624bea/aws-token/dev: "SYNCED", kv_624bea/aws-token/prod: "SYNCED"}`).
|
26
|
-
:param pulumi.Input[str] updated_at: A map of duration strings specifying when each subkey of the associated
|
27
|
-
secret was last updated.
|
28
|
-
(for ex.
|
29
|
-
`{kv_624bea/aws-token/dev: "2024-03-21T12:42:02.558533-07:00",
|
30
|
-
kv_624bea/aws-token/prod: "2024-03-21T12:42:02.558533-07:00"}`).
|
31
|
-
"""
|
32
|
-
if sub_key is not None:
|
33
|
-
pulumi.set(__self__, "sub_key", sub_key)
|
34
|
-
if sync_status is not None:
|
35
|
-
pulumi.set(__self__, "sync_status", sync_status)
|
36
|
-
if updated_at is not None:
|
37
|
-
pulumi.set(__self__, "updated_at", updated_at)
|
38
|
-
|
39
|
-
@property
|
40
|
-
@pulumi.getter(name="subKey")
|
41
|
-
def sub_key(self) -> Optional[pulumi.Input[str]]:
|
42
|
-
"""
|
43
|
-
Subkey of the associated secret.
|
44
|
-
"""
|
45
|
-
return pulumi.get(self, "sub_key")
|
46
|
-
|
47
|
-
@sub_key.setter
|
48
|
-
def sub_key(self, value: Optional[pulumi.Input[str]]):
|
49
|
-
pulumi.set(self, "sub_key", value)
|
50
|
-
|
51
|
-
@property
|
52
|
-
@pulumi.getter(name="syncStatus")
|
53
|
-
def sync_status(self) -> Optional[pulumi.Input[str]]:
|
54
|
-
"""
|
55
|
-
A map of sync statuses for each subkey of the associated secret
|
56
|
-
(for ex. `{kv_624bea/aws-token/dev: "SYNCED", kv_624bea/aws-token/prod: "SYNCED"}`).
|
57
|
-
"""
|
58
|
-
return pulumi.get(self, "sync_status")
|
59
|
-
|
60
|
-
@sync_status.setter
|
61
|
-
def sync_status(self, value: Optional[pulumi.Input[str]]):
|
62
|
-
pulumi.set(self, "sync_status", value)
|
63
|
-
|
64
|
-
@property
|
65
|
-
@pulumi.getter(name="updatedAt")
|
66
|
-
def updated_at(self) -> Optional[pulumi.Input[str]]:
|
67
|
-
"""
|
68
|
-
A map of duration strings specifying when each subkey of the associated
|
69
|
-
secret was last updated.
|
70
|
-
(for ex.
|
71
|
-
`{kv_624bea/aws-token/dev: "2024-03-21T12:42:02.558533-07:00",
|
72
|
-
kv_624bea/aws-token/prod: "2024-03-21T12:42:02.558533-07:00"}`).
|
73
|
-
"""
|
74
|
-
return pulumi.get(self, "updated_at")
|
75
|
-
|
76
|
-
@updated_at.setter
|
77
|
-
def updated_at(self, value: Optional[pulumi.Input[str]]):
|
78
|
-
pulumi.set(self, "updated_at", value)
|
79
|
-
|
80
|
-
|
pulumi_vault/secrets/outputs.py
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import copy
|
6
|
-
import warnings
|
7
|
-
import pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'SyncAssociationMetadata',
|
14
|
-
]
|
15
|
-
|
16
|
-
@pulumi.output_type
|
17
|
-
class SyncAssociationMetadata(dict):
|
18
|
-
@staticmethod
|
19
|
-
def __key_warning(key: str):
|
20
|
-
suggest = None
|
21
|
-
if key == "subKey":
|
22
|
-
suggest = "sub_key"
|
23
|
-
elif key == "syncStatus":
|
24
|
-
suggest = "sync_status"
|
25
|
-
elif key == "updatedAt":
|
26
|
-
suggest = "updated_at"
|
27
|
-
|
28
|
-
if suggest:
|
29
|
-
pulumi.log.warn(f"Key '{key}' not found in SyncAssociationMetadata. Access the value via the '{suggest}' property getter instead.")
|
30
|
-
|
31
|
-
def __getitem__(self, key: str) -> Any:
|
32
|
-
SyncAssociationMetadata.__key_warning(key)
|
33
|
-
return super().__getitem__(key)
|
34
|
-
|
35
|
-
def get(self, key: str, default = None) -> Any:
|
36
|
-
SyncAssociationMetadata.__key_warning(key)
|
37
|
-
return super().get(key, default)
|
38
|
-
|
39
|
-
def __init__(__self__, *,
|
40
|
-
sub_key: Optional[str] = None,
|
41
|
-
sync_status: Optional[str] = None,
|
42
|
-
updated_at: Optional[str] = None):
|
43
|
-
"""
|
44
|
-
:param str sub_key: Subkey of the associated secret.
|
45
|
-
:param str sync_status: A map of sync statuses for each subkey of the associated secret
|
46
|
-
(for ex. `{kv_624bea/aws-token/dev: "SYNCED", kv_624bea/aws-token/prod: "SYNCED"}`).
|
47
|
-
:param str updated_at: A map of duration strings specifying when each subkey of the associated
|
48
|
-
secret was last updated.
|
49
|
-
(for ex.
|
50
|
-
`{kv_624bea/aws-token/dev: "2024-03-21T12:42:02.558533-07:00",
|
51
|
-
kv_624bea/aws-token/prod: "2024-03-21T12:42:02.558533-07:00"}`).
|
52
|
-
"""
|
53
|
-
if sub_key is not None:
|
54
|
-
pulumi.set(__self__, "sub_key", sub_key)
|
55
|
-
if sync_status is not None:
|
56
|
-
pulumi.set(__self__, "sync_status", sync_status)
|
57
|
-
if updated_at is not None:
|
58
|
-
pulumi.set(__self__, "updated_at", updated_at)
|
59
|
-
|
60
|
-
@property
|
61
|
-
@pulumi.getter(name="subKey")
|
62
|
-
def sub_key(self) -> Optional[str]:
|
63
|
-
"""
|
64
|
-
Subkey of the associated secret.
|
65
|
-
"""
|
66
|
-
return pulumi.get(self, "sub_key")
|
67
|
-
|
68
|
-
@property
|
69
|
-
@pulumi.getter(name="syncStatus")
|
70
|
-
def sync_status(self) -> Optional[str]:
|
71
|
-
"""
|
72
|
-
A map of sync statuses for each subkey of the associated secret
|
73
|
-
(for ex. `{kv_624bea/aws-token/dev: "SYNCED", kv_624bea/aws-token/prod: "SYNCED"}`).
|
74
|
-
"""
|
75
|
-
return pulumi.get(self, "sync_status")
|
76
|
-
|
77
|
-
@property
|
78
|
-
@pulumi.getter(name="updatedAt")
|
79
|
-
def updated_at(self) -> Optional[str]:
|
80
|
-
"""
|
81
|
-
A map of duration strings specifying when each subkey of the associated
|
82
|
-
secret was last updated.
|
83
|
-
(for ex.
|
84
|
-
`{kv_624bea/aws-token/dev: "2024-03-21T12:42:02.558533-07:00",
|
85
|
-
kv_624bea/aws-token/prod: "2024-03-21T12:42:02.558533-07:00"}`).
|
86
|
-
"""
|
87
|
-
return pulumi.get(self, "updated_at")
|
88
|
-
|
89
|
-
|
File without changes
|
File without changes
|