pulumi-venafi 1.10.0a1715766105__py3-none-any.whl → 1.11.0a1736835975__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-venafi might be problematic. Click here for more details.
- pulumi_venafi/__init__.py +11 -0
- pulumi_venafi/_utilities.py +41 -5
- pulumi_venafi/certificate.py +315 -0
- pulumi_venafi/cloud_keystore_installation.py +409 -0
- pulumi_venafi/config/__init__.pyi +6 -1
- pulumi_venafi/config/vars.py +6 -1
- pulumi_venafi/get_cloud_keystore.py +166 -0
- pulumi_venafi/get_cloud_provider.py +167 -0
- pulumi_venafi/policy.py +5 -0
- pulumi_venafi/provider.py +12 -15
- pulumi_venafi/pulumi-plugin.json +1 -1
- pulumi_venafi/ssh_certificate.py +8 -9
- pulumi_venafi/ssh_config.py +5 -0
- {pulumi_venafi-1.10.0a1715766105.dist-info → pulumi_venafi-1.11.0a1736835975.dist-info}/METADATA +7 -6
- pulumi_venafi-1.11.0a1736835975.dist-info/RECORD +19 -0
- {pulumi_venafi-1.10.0a1715766105.dist-info → pulumi_venafi-1.11.0a1736835975.dist-info}/WHEEL +1 -1
- pulumi_venafi-1.10.0a1715766105.dist-info/RECORD +0 -16
- {pulumi_venafi-1.10.0a1715766105.dist-info → pulumi_venafi-1.11.0a1736835975.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,409 @@
|
|
|
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 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
|
+
|
|
17
|
+
__all__ = ['CloudKeystoreInstallationArgs', 'CloudKeystoreInstallation']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class CloudKeystoreInstallationArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
certificate_id: pulumi.Input[str],
|
|
23
|
+
cloud_keystore_id: pulumi.Input[str],
|
|
24
|
+
arn: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
cloud_certificate_name: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a CloudKeystoreInstallation resource.
|
|
28
|
+
:param pulumi.Input[str] certificate_id: ID of the certificate to be provisioned to the given `keystore_id`.
|
|
29
|
+
:param pulumi.Input[str] cloud_keystore_id: ID of the cloud keystore where the certificate will be provisioned.
|
|
30
|
+
:param pulumi.Input[str] arn: ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
31
|
+
:param pulumi.Input[str] cloud_certificate_name: Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "certificate_id", certificate_id)
|
|
34
|
+
pulumi.set(__self__, "cloud_keystore_id", cloud_keystore_id)
|
|
35
|
+
if arn is not None:
|
|
36
|
+
pulumi.set(__self__, "arn", arn)
|
|
37
|
+
if cloud_certificate_name is not None:
|
|
38
|
+
pulumi.set(__self__, "cloud_certificate_name", cloud_certificate_name)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter(name="certificateId")
|
|
42
|
+
def certificate_id(self) -> pulumi.Input[str]:
|
|
43
|
+
"""
|
|
44
|
+
ID of the certificate to be provisioned to the given `keystore_id`.
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "certificate_id")
|
|
47
|
+
|
|
48
|
+
@certificate_id.setter
|
|
49
|
+
def certificate_id(self, value: pulumi.Input[str]):
|
|
50
|
+
pulumi.set(self, "certificate_id", value)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
@pulumi.getter(name="cloudKeystoreId")
|
|
54
|
+
def cloud_keystore_id(self) -> pulumi.Input[str]:
|
|
55
|
+
"""
|
|
56
|
+
ID of the cloud keystore where the certificate will be provisioned.
|
|
57
|
+
"""
|
|
58
|
+
return pulumi.get(self, "cloud_keystore_id")
|
|
59
|
+
|
|
60
|
+
@cloud_keystore_id.setter
|
|
61
|
+
def cloud_keystore_id(self, value: pulumi.Input[str]):
|
|
62
|
+
pulumi.set(self, "cloud_keystore_id", value)
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter
|
|
66
|
+
def arn(self) -> Optional[pulumi.Input[str]]:
|
|
67
|
+
"""
|
|
68
|
+
ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "arn")
|
|
71
|
+
|
|
72
|
+
@arn.setter
|
|
73
|
+
def arn(self, value: Optional[pulumi.Input[str]]):
|
|
74
|
+
pulumi.set(self, "arn", value)
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
@pulumi.getter(name="cloudCertificateName")
|
|
78
|
+
def cloud_certificate_name(self) -> Optional[pulumi.Input[str]]:
|
|
79
|
+
"""
|
|
80
|
+
Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
81
|
+
"""
|
|
82
|
+
return pulumi.get(self, "cloud_certificate_name")
|
|
83
|
+
|
|
84
|
+
@cloud_certificate_name.setter
|
|
85
|
+
def cloud_certificate_name(self, value: Optional[pulumi.Input[str]]):
|
|
86
|
+
pulumi.set(self, "cloud_certificate_name", value)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@pulumi.input_type
|
|
90
|
+
class _CloudKeystoreInstallationState:
|
|
91
|
+
def __init__(__self__, *,
|
|
92
|
+
arn: Optional[pulumi.Input[str]] = None,
|
|
93
|
+
certificate_id: Optional[pulumi.Input[str]] = None,
|
|
94
|
+
cloud_certificate_id: Optional[pulumi.Input[str]] = None,
|
|
95
|
+
cloud_certificate_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
96
|
+
cloud_certificate_name: Optional[pulumi.Input[str]] = None,
|
|
97
|
+
cloud_keystore_id: Optional[pulumi.Input[str]] = None):
|
|
98
|
+
"""
|
|
99
|
+
Input properties used for looking up and filtering CloudKeystoreInstallation resources.
|
|
100
|
+
:param pulumi.Input[str] arn: ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
101
|
+
:param pulumi.Input[str] certificate_id: ID of the certificate to be provisioned to the given `keystore_id`.
|
|
102
|
+
:param pulumi.Input[str] cloud_certificate_id: The ID of the provisioned certificate within the Cloud Keystore
|
|
103
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] cloud_certificate_metadata: Metadata of the provisioned certificate from the Cloud Keystore
|
|
104
|
+
:param pulumi.Input[str] cloud_certificate_name: Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
105
|
+
:param pulumi.Input[str] cloud_keystore_id: ID of the cloud keystore where the certificate will be provisioned.
|
|
106
|
+
"""
|
|
107
|
+
if arn is not None:
|
|
108
|
+
pulumi.set(__self__, "arn", arn)
|
|
109
|
+
if certificate_id is not None:
|
|
110
|
+
pulumi.set(__self__, "certificate_id", certificate_id)
|
|
111
|
+
if cloud_certificate_id is not None:
|
|
112
|
+
pulumi.set(__self__, "cloud_certificate_id", cloud_certificate_id)
|
|
113
|
+
if cloud_certificate_metadata is not None:
|
|
114
|
+
pulumi.set(__self__, "cloud_certificate_metadata", cloud_certificate_metadata)
|
|
115
|
+
if cloud_certificate_name is not None:
|
|
116
|
+
pulumi.set(__self__, "cloud_certificate_name", cloud_certificate_name)
|
|
117
|
+
if cloud_keystore_id is not None:
|
|
118
|
+
pulumi.set(__self__, "cloud_keystore_id", cloud_keystore_id)
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter
|
|
122
|
+
def arn(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
"""
|
|
124
|
+
ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "arn")
|
|
127
|
+
|
|
128
|
+
@arn.setter
|
|
129
|
+
def arn(self, value: Optional[pulumi.Input[str]]):
|
|
130
|
+
pulumi.set(self, "arn", value)
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter(name="certificateId")
|
|
134
|
+
def certificate_id(self) -> Optional[pulumi.Input[str]]:
|
|
135
|
+
"""
|
|
136
|
+
ID of the certificate to be provisioned to the given `keystore_id`.
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "certificate_id")
|
|
139
|
+
|
|
140
|
+
@certificate_id.setter
|
|
141
|
+
def certificate_id(self, value: Optional[pulumi.Input[str]]):
|
|
142
|
+
pulumi.set(self, "certificate_id", value)
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter(name="cloudCertificateId")
|
|
146
|
+
def cloud_certificate_id(self) -> Optional[pulumi.Input[str]]:
|
|
147
|
+
"""
|
|
148
|
+
The ID of the provisioned certificate within the Cloud Keystore
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "cloud_certificate_id")
|
|
151
|
+
|
|
152
|
+
@cloud_certificate_id.setter
|
|
153
|
+
def cloud_certificate_id(self, value: Optional[pulumi.Input[str]]):
|
|
154
|
+
pulumi.set(self, "cloud_certificate_id", value)
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter(name="cloudCertificateMetadata")
|
|
158
|
+
def cloud_certificate_metadata(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
159
|
+
"""
|
|
160
|
+
Metadata of the provisioned certificate from the Cloud Keystore
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "cloud_certificate_metadata")
|
|
163
|
+
|
|
164
|
+
@cloud_certificate_metadata.setter
|
|
165
|
+
def cloud_certificate_metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
166
|
+
pulumi.set(self, "cloud_certificate_metadata", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="cloudCertificateName")
|
|
170
|
+
def cloud_certificate_name(self) -> Optional[pulumi.Input[str]]:
|
|
171
|
+
"""
|
|
172
|
+
Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "cloud_certificate_name")
|
|
175
|
+
|
|
176
|
+
@cloud_certificate_name.setter
|
|
177
|
+
def cloud_certificate_name(self, value: Optional[pulumi.Input[str]]):
|
|
178
|
+
pulumi.set(self, "cloud_certificate_name", value)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter(name="cloudKeystoreId")
|
|
182
|
+
def cloud_keystore_id(self) -> Optional[pulumi.Input[str]]:
|
|
183
|
+
"""
|
|
184
|
+
ID of the cloud keystore where the certificate will be provisioned.
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "cloud_keystore_id")
|
|
187
|
+
|
|
188
|
+
@cloud_keystore_id.setter
|
|
189
|
+
def cloud_keystore_id(self, value: Optional[pulumi.Input[str]]):
|
|
190
|
+
pulumi.set(self, "cloud_keystore_id", value)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
class CloudKeystoreInstallation(pulumi.CustomResource):
|
|
194
|
+
@overload
|
|
195
|
+
def __init__(__self__,
|
|
196
|
+
resource_name: str,
|
|
197
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
198
|
+
arn: Optional[pulumi.Input[str]] = None,
|
|
199
|
+
certificate_id: Optional[pulumi.Input[str]] = None,
|
|
200
|
+
cloud_certificate_name: Optional[pulumi.Input[str]] = None,
|
|
201
|
+
cloud_keystore_id: Optional[pulumi.Input[str]] = None,
|
|
202
|
+
__props__=None):
|
|
203
|
+
"""
|
|
204
|
+
Provisions a certificate from Venafi Control Plane's inventory to any of the supported Cloud Providers: Amazon
|
|
205
|
+
Certificate Manager, Azure KeyVault or Google Certificate Manager. Exports the ID of the provisioned certificate:
|
|
206
|
+
certificate name for AKV and GCM or ARN for ACM.
|
|
207
|
+
|
|
208
|
+
## Example Usage
|
|
209
|
+
|
|
210
|
+
```python
|
|
211
|
+
import pulumi
|
|
212
|
+
import pulumi_venafi as venafi
|
|
213
|
+
|
|
214
|
+
# Provision a certificate to cloud keystore with static values
|
|
215
|
+
ck_installation_example_by_id = venafi.CloudKeystoreInstallation("ck_installation_example_by_id",
|
|
216
|
+
cloud_keystore_id="e48897d0-2762-11ef-198k-79ac590dd358",
|
|
217
|
+
certificate_id="1877af16-2762-11ef-8fab-cc123456ff7",
|
|
218
|
+
cloud_certificate_name="com-terraform-example-com")
|
|
219
|
+
# Provision a certificate to cloud keystore
|
|
220
|
+
ck_installation_example = venafi.CloudKeystoreInstallation("ck_installation_example",
|
|
221
|
+
cloud_keystore_id=ck_example["id"],
|
|
222
|
+
certificate_id=certificate_example["certificateId"],
|
|
223
|
+
cloud_certificate_name=certificate_example["commonName"])
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Import
|
|
227
|
+
|
|
228
|
+
Using `pulumi import`, import a Machine Identity from Venafi Control Plane using their ID. For example:
|
|
229
|
+
|
|
230
|
+
console
|
|
231
|
+
|
|
232
|
+
```sh
|
|
233
|
+
$ pulumi import venafi:index/cloudKeystoreInstallation:CloudKeystoreInstallation example 2155bd32-2234-22ac-7cfd-ff1198845aa2
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
:param str resource_name: The name of the resource.
|
|
237
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
238
|
+
:param pulumi.Input[str] arn: ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
239
|
+
:param pulumi.Input[str] certificate_id: ID of the certificate to be provisioned to the given `keystore_id`.
|
|
240
|
+
:param pulumi.Input[str] cloud_certificate_name: Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
241
|
+
:param pulumi.Input[str] cloud_keystore_id: ID of the cloud keystore where the certificate will be provisioned.
|
|
242
|
+
"""
|
|
243
|
+
...
|
|
244
|
+
@overload
|
|
245
|
+
def __init__(__self__,
|
|
246
|
+
resource_name: str,
|
|
247
|
+
args: CloudKeystoreInstallationArgs,
|
|
248
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
249
|
+
"""
|
|
250
|
+
Provisions a certificate from Venafi Control Plane's inventory to any of the supported Cloud Providers: Amazon
|
|
251
|
+
Certificate Manager, Azure KeyVault or Google Certificate Manager. Exports the ID of the provisioned certificate:
|
|
252
|
+
certificate name for AKV and GCM or ARN for ACM.
|
|
253
|
+
|
|
254
|
+
## Example Usage
|
|
255
|
+
|
|
256
|
+
```python
|
|
257
|
+
import pulumi
|
|
258
|
+
import pulumi_venafi as venafi
|
|
259
|
+
|
|
260
|
+
# Provision a certificate to cloud keystore with static values
|
|
261
|
+
ck_installation_example_by_id = venafi.CloudKeystoreInstallation("ck_installation_example_by_id",
|
|
262
|
+
cloud_keystore_id="e48897d0-2762-11ef-198k-79ac590dd358",
|
|
263
|
+
certificate_id="1877af16-2762-11ef-8fab-cc123456ff7",
|
|
264
|
+
cloud_certificate_name="com-terraform-example-com")
|
|
265
|
+
# Provision a certificate to cloud keystore
|
|
266
|
+
ck_installation_example = venafi.CloudKeystoreInstallation("ck_installation_example",
|
|
267
|
+
cloud_keystore_id=ck_example["id"],
|
|
268
|
+
certificate_id=certificate_example["certificateId"],
|
|
269
|
+
cloud_certificate_name=certificate_example["commonName"])
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
## Import
|
|
273
|
+
|
|
274
|
+
Using `pulumi import`, import a Machine Identity from Venafi Control Plane using their ID. For example:
|
|
275
|
+
|
|
276
|
+
console
|
|
277
|
+
|
|
278
|
+
```sh
|
|
279
|
+
$ pulumi import venafi:index/cloudKeystoreInstallation:CloudKeystoreInstallation example 2155bd32-2234-22ac-7cfd-ff1198845aa2
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
:param str resource_name: The name of the resource.
|
|
283
|
+
:param CloudKeystoreInstallationArgs args: The arguments to use to populate this resource's properties.
|
|
284
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
285
|
+
"""
|
|
286
|
+
...
|
|
287
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
288
|
+
resource_args, opts = _utilities.get_resource_args_opts(CloudKeystoreInstallationArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
289
|
+
if resource_args is not None:
|
|
290
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
291
|
+
else:
|
|
292
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
293
|
+
|
|
294
|
+
def _internal_init(__self__,
|
|
295
|
+
resource_name: str,
|
|
296
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
297
|
+
arn: Optional[pulumi.Input[str]] = None,
|
|
298
|
+
certificate_id: Optional[pulumi.Input[str]] = None,
|
|
299
|
+
cloud_certificate_name: Optional[pulumi.Input[str]] = None,
|
|
300
|
+
cloud_keystore_id: Optional[pulumi.Input[str]] = None,
|
|
301
|
+
__props__=None):
|
|
302
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
303
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
304
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
305
|
+
if opts.id is None:
|
|
306
|
+
if __props__ is not None:
|
|
307
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
308
|
+
__props__ = CloudKeystoreInstallationArgs.__new__(CloudKeystoreInstallationArgs)
|
|
309
|
+
|
|
310
|
+
__props__.__dict__["arn"] = arn
|
|
311
|
+
if certificate_id is None and not opts.urn:
|
|
312
|
+
raise TypeError("Missing required property 'certificate_id'")
|
|
313
|
+
__props__.__dict__["certificate_id"] = certificate_id
|
|
314
|
+
__props__.__dict__["cloud_certificate_name"] = cloud_certificate_name
|
|
315
|
+
if cloud_keystore_id is None and not opts.urn:
|
|
316
|
+
raise TypeError("Missing required property 'cloud_keystore_id'")
|
|
317
|
+
__props__.__dict__["cloud_keystore_id"] = cloud_keystore_id
|
|
318
|
+
__props__.__dict__["cloud_certificate_id"] = None
|
|
319
|
+
__props__.__dict__["cloud_certificate_metadata"] = None
|
|
320
|
+
super(CloudKeystoreInstallation, __self__).__init__(
|
|
321
|
+
'venafi:index/cloudKeystoreInstallation:CloudKeystoreInstallation',
|
|
322
|
+
resource_name,
|
|
323
|
+
__props__,
|
|
324
|
+
opts)
|
|
325
|
+
|
|
326
|
+
@staticmethod
|
|
327
|
+
def get(resource_name: str,
|
|
328
|
+
id: pulumi.Input[str],
|
|
329
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
330
|
+
arn: Optional[pulumi.Input[str]] = None,
|
|
331
|
+
certificate_id: Optional[pulumi.Input[str]] = None,
|
|
332
|
+
cloud_certificate_id: Optional[pulumi.Input[str]] = None,
|
|
333
|
+
cloud_certificate_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
334
|
+
cloud_certificate_name: Optional[pulumi.Input[str]] = None,
|
|
335
|
+
cloud_keystore_id: Optional[pulumi.Input[str]] = None) -> 'CloudKeystoreInstallation':
|
|
336
|
+
"""
|
|
337
|
+
Get an existing CloudKeystoreInstallation resource's state with the given name, id, and optional extra
|
|
338
|
+
properties used to qualify the lookup.
|
|
339
|
+
|
|
340
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
341
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
342
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
343
|
+
:param pulumi.Input[str] arn: ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
344
|
+
:param pulumi.Input[str] certificate_id: ID of the certificate to be provisioned to the given `keystore_id`.
|
|
345
|
+
:param pulumi.Input[str] cloud_certificate_id: The ID of the provisioned certificate within the Cloud Keystore
|
|
346
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] cloud_certificate_metadata: Metadata of the provisioned certificate from the Cloud Keystore
|
|
347
|
+
:param pulumi.Input[str] cloud_certificate_name: Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
348
|
+
:param pulumi.Input[str] cloud_keystore_id: ID of the cloud keystore where the certificate will be provisioned.
|
|
349
|
+
"""
|
|
350
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
351
|
+
|
|
352
|
+
__props__ = _CloudKeystoreInstallationState.__new__(_CloudKeystoreInstallationState)
|
|
353
|
+
|
|
354
|
+
__props__.__dict__["arn"] = arn
|
|
355
|
+
__props__.__dict__["certificate_id"] = certificate_id
|
|
356
|
+
__props__.__dict__["cloud_certificate_id"] = cloud_certificate_id
|
|
357
|
+
__props__.__dict__["cloud_certificate_metadata"] = cloud_certificate_metadata
|
|
358
|
+
__props__.__dict__["cloud_certificate_name"] = cloud_certificate_name
|
|
359
|
+
__props__.__dict__["cloud_keystore_id"] = cloud_keystore_id
|
|
360
|
+
return CloudKeystoreInstallation(resource_name, opts=opts, __props__=__props__)
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
@pulumi.getter
|
|
364
|
+
def arn(self) -> pulumi.Output[Optional[str]]:
|
|
365
|
+
"""
|
|
366
|
+
ARN of the AWS certificate. Use it to provision the VCP certificate to an existing ACM certificate, instead of a new one. Only valid for ACM keystores.
|
|
367
|
+
"""
|
|
368
|
+
return pulumi.get(self, "arn")
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
@pulumi.getter(name="certificateId")
|
|
372
|
+
def certificate_id(self) -> pulumi.Output[str]:
|
|
373
|
+
"""
|
|
374
|
+
ID of the certificate to be provisioned to the given `keystore_id`.
|
|
375
|
+
"""
|
|
376
|
+
return pulumi.get(self, "certificate_id")
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
@pulumi.getter(name="cloudCertificateId")
|
|
380
|
+
def cloud_certificate_id(self) -> pulumi.Output[str]:
|
|
381
|
+
"""
|
|
382
|
+
The ID of the provisioned certificate within the Cloud Keystore
|
|
383
|
+
"""
|
|
384
|
+
return pulumi.get(self, "cloud_certificate_id")
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
@pulumi.getter(name="cloudCertificateMetadata")
|
|
388
|
+
def cloud_certificate_metadata(self) -> pulumi.Output[Mapping[str, str]]:
|
|
389
|
+
"""
|
|
390
|
+
Metadata of the provisioned certificate from the Cloud Keystore
|
|
391
|
+
"""
|
|
392
|
+
return pulumi.get(self, "cloud_certificate_metadata")
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
@pulumi.getter(name="cloudCertificateName")
|
|
396
|
+
def cloud_certificate_name(self) -> pulumi.Output[Optional[str]]:
|
|
397
|
+
"""
|
|
398
|
+
Name for the provisioned certificate in the keystore. If the name already exists, the provisioning will replace the previous certificate with the one from `certificate_id`. Only valid for AKV and GCM keystores.
|
|
399
|
+
"""
|
|
400
|
+
return pulumi.get(self, "cloud_certificate_name")
|
|
401
|
+
|
|
402
|
+
@property
|
|
403
|
+
@pulumi.getter(name="cloudKeystoreId")
|
|
404
|
+
def cloud_keystore_id(self) -> pulumi.Output[str]:
|
|
405
|
+
"""
|
|
406
|
+
ID of the cloud keystore where the certificate will be provisioned.
|
|
407
|
+
"""
|
|
408
|
+
return pulumi.get(self, "cloud_keystore_id")
|
|
409
|
+
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
accessToken: Optional[str]
|
|
@@ -27,7 +32,7 @@ application that will be using the token
|
|
|
27
32
|
devMode: Optional[bool]
|
|
28
33
|
"""
|
|
29
34
|
When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
30
|
-
Venafi as a Service or Trust Protection Platform. Useful for development and testing
|
|
35
|
+
Venafi as a Service or Trust Protection Platform. Useful for development and testing
|
|
31
36
|
"""
|
|
32
37
|
|
|
33
38
|
externalJwt: Optional[str]
|
pulumi_venafi/config/vars.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
import types
|
|
@@ -40,7 +45,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
40
45
|
def dev_mode(self) -> Optional[bool]:
|
|
41
46
|
"""
|
|
42
47
|
When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
43
|
-
Venafi as a Service or Trust Protection Platform. Useful for development and testing
|
|
48
|
+
Venafi as a Service or Trust Protection Platform. Useful for development and testing
|
|
44
49
|
"""
|
|
45
50
|
return __config__.get_bool('devMode')
|
|
46
51
|
|
|
@@ -0,0 +1,166 @@
|
|
|
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 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
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetCloudKeystoreResult',
|
|
19
|
+
'AwaitableGetCloudKeystoreResult',
|
|
20
|
+
'get_cloud_keystore',
|
|
21
|
+
'get_cloud_keystore_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetCloudKeystoreResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getCloudKeystore.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, cloud_provider_id=None, id=None, machine_identities_count=None, name=None, type=None):
|
|
30
|
+
if cloud_provider_id and not isinstance(cloud_provider_id, str):
|
|
31
|
+
raise TypeError("Expected argument 'cloud_provider_id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "cloud_provider_id", cloud_provider_id)
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if machine_identities_count and not isinstance(machine_identities_count, int):
|
|
37
|
+
raise TypeError("Expected argument 'machine_identities_count' to be a int")
|
|
38
|
+
pulumi.set(__self__, "machine_identities_count", machine_identities_count)
|
|
39
|
+
if name and not isinstance(name, str):
|
|
40
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
41
|
+
pulumi.set(__self__, "name", name)
|
|
42
|
+
if type and not isinstance(type, str):
|
|
43
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
44
|
+
pulumi.set(__self__, "type", type)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter(name="cloudProviderId")
|
|
48
|
+
def cloud_provider_id(self) -> str:
|
|
49
|
+
return pulumi.get(self, "cloud_provider_id")
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
@pulumi.getter
|
|
53
|
+
def id(self) -> str:
|
|
54
|
+
"""
|
|
55
|
+
The provider-assigned unique ID for this managed resource.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "id")
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter(name="machineIdentitiesCount")
|
|
61
|
+
def machine_identities_count(self) -> int:
|
|
62
|
+
"""
|
|
63
|
+
Number of machine identities provisioned to the cloud keystore.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "machine_identities_count")
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter
|
|
69
|
+
def name(self) -> str:
|
|
70
|
+
return pulumi.get(self, "name")
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def type(self) -> str:
|
|
75
|
+
"""
|
|
76
|
+
The cloud keystore type. Either `ACM`, `AKV` or `GCM`.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "type")
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class AwaitableGetCloudKeystoreResult(GetCloudKeystoreResult):
|
|
82
|
+
# pylint: disable=using-constant-test
|
|
83
|
+
def __await__(self):
|
|
84
|
+
if False:
|
|
85
|
+
yield self
|
|
86
|
+
return GetCloudKeystoreResult(
|
|
87
|
+
cloud_provider_id=self.cloud_provider_id,
|
|
88
|
+
id=self.id,
|
|
89
|
+
machine_identities_count=self.machine_identities_count,
|
|
90
|
+
name=self.name,
|
|
91
|
+
type=self.type)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def get_cloud_keystore(cloud_provider_id: Optional[str] = None,
|
|
95
|
+
name: Optional[str] = None,
|
|
96
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudKeystoreResult:
|
|
97
|
+
"""
|
|
98
|
+
Use this data source to get the `ID` of a cloud keystore in Venafi Control Plane, referenced by its name and parent
|
|
99
|
+
cloud provider ID. You can use `get_cloud_provider` data source to obtain the ID of the parent cloud provider.
|
|
100
|
+
|
|
101
|
+
## Example Usage
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
import pulumi
|
|
105
|
+
import pulumi_venafi as venafi
|
|
106
|
+
|
|
107
|
+
# Find a cloud keystore with a static cloud provider id
|
|
108
|
+
ck_example_by_id = venafi.get_cloud_keystore(cloud_provider_id="e48897d0-2762-11ef-8fab-79ac590dd358",
|
|
109
|
+
name="Cloud Keystore Example")
|
|
110
|
+
# Find a cloud keystore by using venafi_cloud_provider data source as input
|
|
111
|
+
ck_example = venafi.get_cloud_keystore(cloud_provider_id=cp_example["id"],
|
|
112
|
+
name="Cloud Keystore example")
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:param str cloud_provider_id: ID of the cloud provider whom the cloud keystore to look up belongs to.
|
|
117
|
+
:param str name: Name of the cloud keystore to look up.
|
|
118
|
+
"""
|
|
119
|
+
__args__ = dict()
|
|
120
|
+
__args__['cloudProviderId'] = cloud_provider_id
|
|
121
|
+
__args__['name'] = name
|
|
122
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
123
|
+
__ret__ = pulumi.runtime.invoke('venafi:index/getCloudKeystore:getCloudKeystore', __args__, opts=opts, typ=GetCloudKeystoreResult).value
|
|
124
|
+
|
|
125
|
+
return AwaitableGetCloudKeystoreResult(
|
|
126
|
+
cloud_provider_id=pulumi.get(__ret__, 'cloud_provider_id'),
|
|
127
|
+
id=pulumi.get(__ret__, 'id'),
|
|
128
|
+
machine_identities_count=pulumi.get(__ret__, 'machine_identities_count'),
|
|
129
|
+
name=pulumi.get(__ret__, 'name'),
|
|
130
|
+
type=pulumi.get(__ret__, 'type'))
|
|
131
|
+
def get_cloud_keystore_output(cloud_provider_id: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
133
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCloudKeystoreResult]:
|
|
134
|
+
"""
|
|
135
|
+
Use this data source to get the `ID` of a cloud keystore in Venafi Control Plane, referenced by its name and parent
|
|
136
|
+
cloud provider ID. You can use `get_cloud_provider` data source to obtain the ID of the parent cloud provider.
|
|
137
|
+
|
|
138
|
+
## Example Usage
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import pulumi
|
|
142
|
+
import pulumi_venafi as venafi
|
|
143
|
+
|
|
144
|
+
# Find a cloud keystore with a static cloud provider id
|
|
145
|
+
ck_example_by_id = venafi.get_cloud_keystore(cloud_provider_id="e48897d0-2762-11ef-8fab-79ac590dd358",
|
|
146
|
+
name="Cloud Keystore Example")
|
|
147
|
+
# Find a cloud keystore by using venafi_cloud_provider data source as input
|
|
148
|
+
ck_example = venafi.get_cloud_keystore(cloud_provider_id=cp_example["id"],
|
|
149
|
+
name="Cloud Keystore example")
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param str cloud_provider_id: ID of the cloud provider whom the cloud keystore to look up belongs to.
|
|
154
|
+
:param str name: Name of the cloud keystore to look up.
|
|
155
|
+
"""
|
|
156
|
+
__args__ = dict()
|
|
157
|
+
__args__['cloudProviderId'] = cloud_provider_id
|
|
158
|
+
__args__['name'] = name
|
|
159
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
160
|
+
__ret__ = pulumi.runtime.invoke_output('venafi:index/getCloudKeystore:getCloudKeystore', __args__, opts=opts, typ=GetCloudKeystoreResult)
|
|
161
|
+
return __ret__.apply(lambda __response__: GetCloudKeystoreResult(
|
|
162
|
+
cloud_provider_id=pulumi.get(__response__, 'cloud_provider_id'),
|
|
163
|
+
id=pulumi.get(__response__, 'id'),
|
|
164
|
+
machine_identities_count=pulumi.get(__response__, 'machine_identities_count'),
|
|
165
|
+
name=pulumi.get(__response__, 'name'),
|
|
166
|
+
type=pulumi.get(__response__, 'type')))
|