pulumi-harness 0.6.0a1739378270__py3-none-any.whl → 0.6.0a1739425612__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-harness might be problematic. Click here for more details.
- pulumi_harness/__init__.py +8 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +364 -5
- pulumi_harness/platform/aws_kms_connector.py +94 -0
- pulumi_harness/platform/aws_secret_manager_connector.py +141 -0
- pulumi_harness/platform/connector_gcp_kms.py +964 -0
- pulumi_harness/platform/gcp_secret_manager_connector.py +240 -34
- pulumi_harness/platform/get_aws_kms_connector.py +29 -1
- pulumi_harness/platform/get_aws_secret_manager_connector.py +71 -3
- pulumi_harness/platform/get_connector_gcp_kms.py +295 -0
- pulumi_harness/platform/get_gcp_secret_manager_connector.py +46 -3
- pulumi_harness/platform/get_gitlab_connector.py +12 -1
- pulumi_harness/platform/gitlab_connector.py +47 -0
- pulumi_harness/platform/outputs.py +523 -6
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.6.0a1739378270.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/METADATA +1 -1
- {pulumi_harness-0.6.0a1739378270.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/RECORD +19 -17
- {pulumi_harness-0.6.0a1739378270.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.6.0a1739378270.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/top_level.txt +0 -0
|
@@ -27,16 +27,25 @@ class GetAwsSecretManagerConnectorResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getAwsSecretManagerConnector.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, credentials=None, delegate_selectors=None, description=None, id=None, identifier=None, name=None, org_id=None, project_id=None, region=None, secret_name_prefix=None, tags=None, use_put_secret=None):
|
|
30
|
+
def __init__(__self__, credentials=None, default=None, delegate_selectors=None, description=None, execute_on_delegate=None, force_delete_without_recovery=None, id=None, identifier=None, name=None, org_id=None, project_id=None, recovery_window_in_days=None, region=None, secret_name_prefix=None, tags=None, use_put_secret=None):
|
|
31
31
|
if credentials and not isinstance(credentials, list):
|
|
32
32
|
raise TypeError("Expected argument 'credentials' to be a list")
|
|
33
33
|
pulumi.set(__self__, "credentials", credentials)
|
|
34
|
+
if default and not isinstance(default, bool):
|
|
35
|
+
raise TypeError("Expected argument 'default' to be a bool")
|
|
36
|
+
pulumi.set(__self__, "default", default)
|
|
34
37
|
if delegate_selectors and not isinstance(delegate_selectors, list):
|
|
35
38
|
raise TypeError("Expected argument 'delegate_selectors' to be a list")
|
|
36
39
|
pulumi.set(__self__, "delegate_selectors", delegate_selectors)
|
|
37
40
|
if description and not isinstance(description, str):
|
|
38
41
|
raise TypeError("Expected argument 'description' to be a str")
|
|
39
42
|
pulumi.set(__self__, "description", description)
|
|
43
|
+
if execute_on_delegate and not isinstance(execute_on_delegate, bool):
|
|
44
|
+
raise TypeError("Expected argument 'execute_on_delegate' to be a bool")
|
|
45
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
46
|
+
if force_delete_without_recovery and not isinstance(force_delete_without_recovery, bool):
|
|
47
|
+
raise TypeError("Expected argument 'force_delete_without_recovery' to be a bool")
|
|
48
|
+
pulumi.set(__self__, "force_delete_without_recovery", force_delete_without_recovery)
|
|
40
49
|
if id and not isinstance(id, str):
|
|
41
50
|
raise TypeError("Expected argument 'id' to be a str")
|
|
42
51
|
pulumi.set(__self__, "id", id)
|
|
@@ -52,6 +61,9 @@ class GetAwsSecretManagerConnectorResult:
|
|
|
52
61
|
if project_id and not isinstance(project_id, str):
|
|
53
62
|
raise TypeError("Expected argument 'project_id' to be a str")
|
|
54
63
|
pulumi.set(__self__, "project_id", project_id)
|
|
64
|
+
if recovery_window_in_days and not isinstance(recovery_window_in_days, int):
|
|
65
|
+
raise TypeError("Expected argument 'recovery_window_in_days' to be a int")
|
|
66
|
+
pulumi.set(__self__, "recovery_window_in_days", recovery_window_in_days)
|
|
55
67
|
if region and not isinstance(region, str):
|
|
56
68
|
raise TypeError("Expected argument 'region' to be a str")
|
|
57
69
|
pulumi.set(__self__, "region", region)
|
|
@@ -73,6 +85,14 @@ class GetAwsSecretManagerConnectorResult:
|
|
|
73
85
|
"""
|
|
74
86
|
return pulumi.get(self, "credentials")
|
|
75
87
|
|
|
88
|
+
@property
|
|
89
|
+
@pulumi.getter
|
|
90
|
+
def default(self) -> bool:
|
|
91
|
+
"""
|
|
92
|
+
Whether this is the default connector.
|
|
93
|
+
"""
|
|
94
|
+
return pulumi.get(self, "default")
|
|
95
|
+
|
|
76
96
|
@property
|
|
77
97
|
@pulumi.getter(name="delegateSelectors")
|
|
78
98
|
def delegate_selectors(self) -> Sequence[str]:
|
|
@@ -89,6 +109,22 @@ class GetAwsSecretManagerConnectorResult:
|
|
|
89
109
|
"""
|
|
90
110
|
return pulumi.get(self, "description")
|
|
91
111
|
|
|
112
|
+
@property
|
|
113
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
114
|
+
def execute_on_delegate(self) -> bool:
|
|
115
|
+
"""
|
|
116
|
+
The delegate to execute the action on.
|
|
117
|
+
"""
|
|
118
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter(name="forceDeleteWithoutRecovery")
|
|
122
|
+
def force_delete_without_recovery(self) -> Optional[bool]:
|
|
123
|
+
"""
|
|
124
|
+
Whether to force delete secret value or not.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "force_delete_without_recovery")
|
|
127
|
+
|
|
92
128
|
@property
|
|
93
129
|
@pulumi.getter
|
|
94
130
|
def id(self) -> str:
|
|
@@ -129,6 +165,14 @@ class GetAwsSecretManagerConnectorResult:
|
|
|
129
165
|
"""
|
|
130
166
|
return pulumi.get(self, "project_id")
|
|
131
167
|
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="recoveryWindowInDays")
|
|
170
|
+
def recovery_window_in_days(self) -> Optional[int]:
|
|
171
|
+
"""
|
|
172
|
+
recovery duration in days in AWS Secrets Manager.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "recovery_window_in_days")
|
|
175
|
+
|
|
132
176
|
@property
|
|
133
177
|
@pulumi.getter
|
|
134
178
|
def region(self) -> str:
|
|
@@ -169,23 +213,29 @@ class AwaitableGetAwsSecretManagerConnectorResult(GetAwsSecretManagerConnectorRe
|
|
|
169
213
|
yield self
|
|
170
214
|
return GetAwsSecretManagerConnectorResult(
|
|
171
215
|
credentials=self.credentials,
|
|
216
|
+
default=self.default,
|
|
172
217
|
delegate_selectors=self.delegate_selectors,
|
|
173
218
|
description=self.description,
|
|
219
|
+
execute_on_delegate=self.execute_on_delegate,
|
|
220
|
+
force_delete_without_recovery=self.force_delete_without_recovery,
|
|
174
221
|
id=self.id,
|
|
175
222
|
identifier=self.identifier,
|
|
176
223
|
name=self.name,
|
|
177
224
|
org_id=self.org_id,
|
|
178
225
|
project_id=self.project_id,
|
|
226
|
+
recovery_window_in_days=self.recovery_window_in_days,
|
|
179
227
|
region=self.region,
|
|
180
228
|
secret_name_prefix=self.secret_name_prefix,
|
|
181
229
|
tags=self.tags,
|
|
182
230
|
use_put_secret=self.use_put_secret)
|
|
183
231
|
|
|
184
232
|
|
|
185
|
-
def get_aws_secret_manager_connector(
|
|
233
|
+
def get_aws_secret_manager_connector(force_delete_without_recovery: Optional[bool] = None,
|
|
234
|
+
identifier: Optional[str] = None,
|
|
186
235
|
name: Optional[str] = None,
|
|
187
236
|
org_id: Optional[str] = None,
|
|
188
237
|
project_id: Optional[str] = None,
|
|
238
|
+
recovery_window_in_days: Optional[int] = None,
|
|
189
239
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAwsSecretManagerConnectorResult:
|
|
190
240
|
"""
|
|
191
241
|
## Example Usage
|
|
@@ -198,36 +248,46 @@ def get_aws_secret_manager_connector(identifier: Optional[str] = None,
|
|
|
198
248
|
```
|
|
199
249
|
|
|
200
250
|
|
|
251
|
+
:param bool force_delete_without_recovery: Whether to force delete secret value or not.
|
|
201
252
|
:param str identifier: Unique identifier of the resource.
|
|
202
253
|
:param str name: Name of the resource.
|
|
203
254
|
:param str org_id: Unique identifier of the organization.
|
|
204
255
|
:param str project_id: Unique identifier of the project.
|
|
256
|
+
:param int recovery_window_in_days: recovery duration in days in AWS Secrets Manager.
|
|
205
257
|
"""
|
|
206
258
|
__args__ = dict()
|
|
259
|
+
__args__['forceDeleteWithoutRecovery'] = force_delete_without_recovery
|
|
207
260
|
__args__['identifier'] = identifier
|
|
208
261
|
__args__['name'] = name
|
|
209
262
|
__args__['orgId'] = org_id
|
|
210
263
|
__args__['projectId'] = project_id
|
|
264
|
+
__args__['recoveryWindowInDays'] = recovery_window_in_days
|
|
211
265
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
212
266
|
__ret__ = pulumi.runtime.invoke('harness:platform/getAwsSecretManagerConnector:getAwsSecretManagerConnector', __args__, opts=opts, typ=GetAwsSecretManagerConnectorResult).value
|
|
213
267
|
|
|
214
268
|
return AwaitableGetAwsSecretManagerConnectorResult(
|
|
215
269
|
credentials=pulumi.get(__ret__, 'credentials'),
|
|
270
|
+
default=pulumi.get(__ret__, 'default'),
|
|
216
271
|
delegate_selectors=pulumi.get(__ret__, 'delegate_selectors'),
|
|
217
272
|
description=pulumi.get(__ret__, 'description'),
|
|
273
|
+
execute_on_delegate=pulumi.get(__ret__, 'execute_on_delegate'),
|
|
274
|
+
force_delete_without_recovery=pulumi.get(__ret__, 'force_delete_without_recovery'),
|
|
218
275
|
id=pulumi.get(__ret__, 'id'),
|
|
219
276
|
identifier=pulumi.get(__ret__, 'identifier'),
|
|
220
277
|
name=pulumi.get(__ret__, 'name'),
|
|
221
278
|
org_id=pulumi.get(__ret__, 'org_id'),
|
|
222
279
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
280
|
+
recovery_window_in_days=pulumi.get(__ret__, 'recovery_window_in_days'),
|
|
223
281
|
region=pulumi.get(__ret__, 'region'),
|
|
224
282
|
secret_name_prefix=pulumi.get(__ret__, 'secret_name_prefix'),
|
|
225
283
|
tags=pulumi.get(__ret__, 'tags'),
|
|
226
284
|
use_put_secret=pulumi.get(__ret__, 'use_put_secret'))
|
|
227
|
-
def get_aws_secret_manager_connector_output(
|
|
285
|
+
def get_aws_secret_manager_connector_output(force_delete_without_recovery: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
286
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
228
287
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
229
288
|
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
230
289
|
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
290
|
+
recovery_window_in_days: Optional[pulumi.Input[Optional[int]]] = None,
|
|
231
291
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAwsSecretManagerConnectorResult]:
|
|
232
292
|
"""
|
|
233
293
|
## Example Usage
|
|
@@ -240,27 +300,35 @@ def get_aws_secret_manager_connector_output(identifier: Optional[pulumi.Input[st
|
|
|
240
300
|
```
|
|
241
301
|
|
|
242
302
|
|
|
303
|
+
:param bool force_delete_without_recovery: Whether to force delete secret value or not.
|
|
243
304
|
:param str identifier: Unique identifier of the resource.
|
|
244
305
|
:param str name: Name of the resource.
|
|
245
306
|
:param str org_id: Unique identifier of the organization.
|
|
246
307
|
:param str project_id: Unique identifier of the project.
|
|
308
|
+
:param int recovery_window_in_days: recovery duration in days in AWS Secrets Manager.
|
|
247
309
|
"""
|
|
248
310
|
__args__ = dict()
|
|
311
|
+
__args__['forceDeleteWithoutRecovery'] = force_delete_without_recovery
|
|
249
312
|
__args__['identifier'] = identifier
|
|
250
313
|
__args__['name'] = name
|
|
251
314
|
__args__['orgId'] = org_id
|
|
252
315
|
__args__['projectId'] = project_id
|
|
316
|
+
__args__['recoveryWindowInDays'] = recovery_window_in_days
|
|
253
317
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
254
318
|
__ret__ = pulumi.runtime.invoke_output('harness:platform/getAwsSecretManagerConnector:getAwsSecretManagerConnector', __args__, opts=opts, typ=GetAwsSecretManagerConnectorResult)
|
|
255
319
|
return __ret__.apply(lambda __response__: GetAwsSecretManagerConnectorResult(
|
|
256
320
|
credentials=pulumi.get(__response__, 'credentials'),
|
|
321
|
+
default=pulumi.get(__response__, 'default'),
|
|
257
322
|
delegate_selectors=pulumi.get(__response__, 'delegate_selectors'),
|
|
258
323
|
description=pulumi.get(__response__, 'description'),
|
|
324
|
+
execute_on_delegate=pulumi.get(__response__, 'execute_on_delegate'),
|
|
325
|
+
force_delete_without_recovery=pulumi.get(__response__, 'force_delete_without_recovery'),
|
|
259
326
|
id=pulumi.get(__response__, 'id'),
|
|
260
327
|
identifier=pulumi.get(__response__, 'identifier'),
|
|
261
328
|
name=pulumi.get(__response__, 'name'),
|
|
262
329
|
org_id=pulumi.get(__response__, 'org_id'),
|
|
263
330
|
project_id=pulumi.get(__response__, 'project_id'),
|
|
331
|
+
recovery_window_in_days=pulumi.get(__response__, 'recovery_window_in_days'),
|
|
264
332
|
region=pulumi.get(__response__, 'region'),
|
|
265
333
|
secret_name_prefix=pulumi.get(__response__, 'secret_name_prefix'),
|
|
266
334
|
tags=pulumi.get(__response__, 'tags'),
|
|
@@ -0,0 +1,295 @@
|
|
|
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
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetConnectorGcpKmsResult',
|
|
20
|
+
'AwaitableGetConnectorGcpKmsResult',
|
|
21
|
+
'get_connector_gcp_kms',
|
|
22
|
+
'get_connector_gcp_kms_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetConnectorGcpKmsResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getConnectorGcpKms.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, default=None, description=None, execute_on_delegate=None, gcp_project_id=None, id=None, identifier=None, key_name=None, key_ring=None, manuals=None, name=None, oidc_authentications=None, org_id=None, project_id=None, region=None, tags=None):
|
|
31
|
+
if default and not isinstance(default, bool):
|
|
32
|
+
raise TypeError("Expected argument 'default' to be a bool")
|
|
33
|
+
pulumi.set(__self__, "default", default)
|
|
34
|
+
if description and not isinstance(description, str):
|
|
35
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
36
|
+
pulumi.set(__self__, "description", description)
|
|
37
|
+
if execute_on_delegate and not isinstance(execute_on_delegate, bool):
|
|
38
|
+
raise TypeError("Expected argument 'execute_on_delegate' to be a bool")
|
|
39
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
40
|
+
if gcp_project_id and not isinstance(gcp_project_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'gcp_project_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "gcp_project_id", gcp_project_id)
|
|
43
|
+
if id and not isinstance(id, str):
|
|
44
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "id", id)
|
|
46
|
+
if identifier and not isinstance(identifier, str):
|
|
47
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
48
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
49
|
+
if key_name and not isinstance(key_name, str):
|
|
50
|
+
raise TypeError("Expected argument 'key_name' to be a str")
|
|
51
|
+
pulumi.set(__self__, "key_name", key_name)
|
|
52
|
+
if key_ring and not isinstance(key_ring, str):
|
|
53
|
+
raise TypeError("Expected argument 'key_ring' to be a str")
|
|
54
|
+
pulumi.set(__self__, "key_ring", key_ring)
|
|
55
|
+
if manuals and not isinstance(manuals, list):
|
|
56
|
+
raise TypeError("Expected argument 'manuals' to be a list")
|
|
57
|
+
pulumi.set(__self__, "manuals", manuals)
|
|
58
|
+
if name and not isinstance(name, str):
|
|
59
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
60
|
+
pulumi.set(__self__, "name", name)
|
|
61
|
+
if oidc_authentications and not isinstance(oidc_authentications, list):
|
|
62
|
+
raise TypeError("Expected argument 'oidc_authentications' to be a list")
|
|
63
|
+
pulumi.set(__self__, "oidc_authentications", oidc_authentications)
|
|
64
|
+
if org_id and not isinstance(org_id, str):
|
|
65
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
66
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
67
|
+
if project_id and not isinstance(project_id, str):
|
|
68
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
69
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
70
|
+
if region and not isinstance(region, str):
|
|
71
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
72
|
+
pulumi.set(__self__, "region", region)
|
|
73
|
+
if tags and not isinstance(tags, list):
|
|
74
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
75
|
+
pulumi.set(__self__, "tags", tags)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def default(self) -> bool:
|
|
80
|
+
"""
|
|
81
|
+
Set this flag to set this secret manager as default secret manager.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "default")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter
|
|
87
|
+
def description(self) -> str:
|
|
88
|
+
"""
|
|
89
|
+
Description of the resource.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "description")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
95
|
+
def execute_on_delegate(self) -> bool:
|
|
96
|
+
"""
|
|
97
|
+
Enable this flag to execute on Delegate.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter(name="gcpProjectId")
|
|
103
|
+
def gcp_project_id(self) -> str:
|
|
104
|
+
"""
|
|
105
|
+
The project ID of the GCP KMS.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "gcp_project_id")
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter
|
|
111
|
+
def id(self) -> str:
|
|
112
|
+
"""
|
|
113
|
+
The provider-assigned unique ID for this managed resource.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "id")
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter
|
|
119
|
+
def identifier(self) -> str:
|
|
120
|
+
"""
|
|
121
|
+
Unique identifier of the resource.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "identifier")
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
@pulumi.getter(name="keyName")
|
|
127
|
+
def key_name(self) -> str:
|
|
128
|
+
"""
|
|
129
|
+
The key name of the GCP KMS.
|
|
130
|
+
"""
|
|
131
|
+
return pulumi.get(self, "key_name")
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
@pulumi.getter(name="keyRing")
|
|
135
|
+
def key_ring(self) -> str:
|
|
136
|
+
"""
|
|
137
|
+
The key ring of the GCP KMS.
|
|
138
|
+
"""
|
|
139
|
+
return pulumi.get(self, "key_ring")
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter
|
|
143
|
+
def manuals(self) -> Sequence['outputs.GetConnectorGcpKmsManualResult']:
|
|
144
|
+
"""
|
|
145
|
+
Manual credential configuration.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "manuals")
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
@pulumi.getter
|
|
151
|
+
def name(self) -> Optional[str]:
|
|
152
|
+
"""
|
|
153
|
+
Name of the resource.
|
|
154
|
+
"""
|
|
155
|
+
return pulumi.get(self, "name")
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
@pulumi.getter(name="oidcAuthentications")
|
|
159
|
+
def oidc_authentications(self) -> Sequence['outputs.GetConnectorGcpKmsOidcAuthenticationResult']:
|
|
160
|
+
"""
|
|
161
|
+
Authentication using harness oidc.
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "oidc_authentications")
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter(name="orgId")
|
|
167
|
+
def org_id(self) -> Optional[str]:
|
|
168
|
+
"""
|
|
169
|
+
Unique identifier of the organization.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "org_id")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter(name="projectId")
|
|
175
|
+
def project_id(self) -> Optional[str]:
|
|
176
|
+
"""
|
|
177
|
+
Unique identifier of the project.
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "project_id")
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
@pulumi.getter
|
|
183
|
+
def region(self) -> str:
|
|
184
|
+
"""
|
|
185
|
+
The region of the GCP KMS.
|
|
186
|
+
"""
|
|
187
|
+
return pulumi.get(self, "region")
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter
|
|
191
|
+
def tags(self) -> Sequence[str]:
|
|
192
|
+
"""
|
|
193
|
+
Tags to associate with the resource.
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "tags")
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class AwaitableGetConnectorGcpKmsResult(GetConnectorGcpKmsResult):
|
|
199
|
+
# pylint: disable=using-constant-test
|
|
200
|
+
def __await__(self):
|
|
201
|
+
if False:
|
|
202
|
+
yield self
|
|
203
|
+
return GetConnectorGcpKmsResult(
|
|
204
|
+
default=self.default,
|
|
205
|
+
description=self.description,
|
|
206
|
+
execute_on_delegate=self.execute_on_delegate,
|
|
207
|
+
gcp_project_id=self.gcp_project_id,
|
|
208
|
+
id=self.id,
|
|
209
|
+
identifier=self.identifier,
|
|
210
|
+
key_name=self.key_name,
|
|
211
|
+
key_ring=self.key_ring,
|
|
212
|
+
manuals=self.manuals,
|
|
213
|
+
name=self.name,
|
|
214
|
+
oidc_authentications=self.oidc_authentications,
|
|
215
|
+
org_id=self.org_id,
|
|
216
|
+
project_id=self.project_id,
|
|
217
|
+
region=self.region,
|
|
218
|
+
tags=self.tags)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def get_connector_gcp_kms(identifier: Optional[str] = None,
|
|
222
|
+
name: Optional[str] = None,
|
|
223
|
+
org_id: Optional[str] = None,
|
|
224
|
+
project_id: Optional[str] = None,
|
|
225
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConnectorGcpKmsResult:
|
|
226
|
+
"""
|
|
227
|
+
Datasource for looking up GCP KMS connector.
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
:param str identifier: Unique identifier of the resource.
|
|
231
|
+
:param str name: Name of the resource.
|
|
232
|
+
:param str org_id: Unique identifier of the organization.
|
|
233
|
+
:param str project_id: Unique identifier of the project.
|
|
234
|
+
"""
|
|
235
|
+
__args__ = dict()
|
|
236
|
+
__args__['identifier'] = identifier
|
|
237
|
+
__args__['name'] = name
|
|
238
|
+
__args__['orgId'] = org_id
|
|
239
|
+
__args__['projectId'] = project_id
|
|
240
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
241
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getConnectorGcpKms:getConnectorGcpKms', __args__, opts=opts, typ=GetConnectorGcpKmsResult).value
|
|
242
|
+
|
|
243
|
+
return AwaitableGetConnectorGcpKmsResult(
|
|
244
|
+
default=pulumi.get(__ret__, 'default'),
|
|
245
|
+
description=pulumi.get(__ret__, 'description'),
|
|
246
|
+
execute_on_delegate=pulumi.get(__ret__, 'execute_on_delegate'),
|
|
247
|
+
gcp_project_id=pulumi.get(__ret__, 'gcp_project_id'),
|
|
248
|
+
id=pulumi.get(__ret__, 'id'),
|
|
249
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
250
|
+
key_name=pulumi.get(__ret__, 'key_name'),
|
|
251
|
+
key_ring=pulumi.get(__ret__, 'key_ring'),
|
|
252
|
+
manuals=pulumi.get(__ret__, 'manuals'),
|
|
253
|
+
name=pulumi.get(__ret__, 'name'),
|
|
254
|
+
oidc_authentications=pulumi.get(__ret__, 'oidc_authentications'),
|
|
255
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
256
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
257
|
+
region=pulumi.get(__ret__, 'region'),
|
|
258
|
+
tags=pulumi.get(__ret__, 'tags'))
|
|
259
|
+
def get_connector_gcp_kms_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
260
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
261
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
262
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
263
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConnectorGcpKmsResult]:
|
|
264
|
+
"""
|
|
265
|
+
Datasource for looking up GCP KMS connector.
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:param str identifier: Unique identifier of the resource.
|
|
269
|
+
:param str name: Name of the resource.
|
|
270
|
+
:param str org_id: Unique identifier of the organization.
|
|
271
|
+
:param str project_id: Unique identifier of the project.
|
|
272
|
+
"""
|
|
273
|
+
__args__ = dict()
|
|
274
|
+
__args__['identifier'] = identifier
|
|
275
|
+
__args__['name'] = name
|
|
276
|
+
__args__['orgId'] = org_id
|
|
277
|
+
__args__['projectId'] = project_id
|
|
278
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
279
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getConnectorGcpKms:getConnectorGcpKms', __args__, opts=opts, typ=GetConnectorGcpKmsResult)
|
|
280
|
+
return __ret__.apply(lambda __response__: GetConnectorGcpKmsResult(
|
|
281
|
+
default=pulumi.get(__response__, 'default'),
|
|
282
|
+
description=pulumi.get(__response__, 'description'),
|
|
283
|
+
execute_on_delegate=pulumi.get(__response__, 'execute_on_delegate'),
|
|
284
|
+
gcp_project_id=pulumi.get(__response__, 'gcp_project_id'),
|
|
285
|
+
id=pulumi.get(__response__, 'id'),
|
|
286
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
287
|
+
key_name=pulumi.get(__response__, 'key_name'),
|
|
288
|
+
key_ring=pulumi.get(__response__, 'key_ring'),
|
|
289
|
+
manuals=pulumi.get(__response__, 'manuals'),
|
|
290
|
+
name=pulumi.get(__response__, 'name'),
|
|
291
|
+
oidc_authentications=pulumi.get(__response__, 'oidc_authentications'),
|
|
292
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
293
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
294
|
+
region=pulumi.get(__response__, 'region'),
|
|
295
|
+
tags=pulumi.get(__response__, 'tags')))
|
|
@@ -13,6 +13,7 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
16
17
|
|
|
17
18
|
__all__ = [
|
|
18
19
|
'GetGcpSecretManagerConnectorResult',
|
|
@@ -26,7 +27,7 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
26
27
|
"""
|
|
27
28
|
A collection of values returned by getGcpSecretManagerConnector.
|
|
28
29
|
"""
|
|
29
|
-
def __init__(__self__, credentials_ref=None, delegate_selectors=None, description=None, id=None, identifier=None, is_default=None, name=None, org_id=None, project_id=None, tags=None):
|
|
30
|
+
def __init__(__self__, credentials_ref=None, delegate_selectors=None, description=None, execute_on_delegate=None, id=None, identifier=None, inherit_from_delegate=None, is_default=None, name=None, oidc_authentications=None, org_id=None, project_id=None, tags=None):
|
|
30
31
|
if credentials_ref and not isinstance(credentials_ref, str):
|
|
31
32
|
raise TypeError("Expected argument 'credentials_ref' to be a str")
|
|
32
33
|
pulumi.set(__self__, "credentials_ref", credentials_ref)
|
|
@@ -36,18 +37,27 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
36
37
|
if description and not isinstance(description, str):
|
|
37
38
|
raise TypeError("Expected argument 'description' to be a str")
|
|
38
39
|
pulumi.set(__self__, "description", description)
|
|
40
|
+
if execute_on_delegate and not isinstance(execute_on_delegate, bool):
|
|
41
|
+
raise TypeError("Expected argument 'execute_on_delegate' to be a bool")
|
|
42
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
39
43
|
if id and not isinstance(id, str):
|
|
40
44
|
raise TypeError("Expected argument 'id' to be a str")
|
|
41
45
|
pulumi.set(__self__, "id", id)
|
|
42
46
|
if identifier and not isinstance(identifier, str):
|
|
43
47
|
raise TypeError("Expected argument 'identifier' to be a str")
|
|
44
48
|
pulumi.set(__self__, "identifier", identifier)
|
|
49
|
+
if inherit_from_delegate and not isinstance(inherit_from_delegate, bool):
|
|
50
|
+
raise TypeError("Expected argument 'inherit_from_delegate' to be a bool")
|
|
51
|
+
pulumi.set(__self__, "inherit_from_delegate", inherit_from_delegate)
|
|
45
52
|
if is_default and not isinstance(is_default, bool):
|
|
46
53
|
raise TypeError("Expected argument 'is_default' to be a bool")
|
|
47
54
|
pulumi.set(__self__, "is_default", is_default)
|
|
48
55
|
if name and not isinstance(name, str):
|
|
49
56
|
raise TypeError("Expected argument 'name' to be a str")
|
|
50
57
|
pulumi.set(__self__, "name", name)
|
|
58
|
+
if oidc_authentications and not isinstance(oidc_authentications, list):
|
|
59
|
+
raise TypeError("Expected argument 'oidc_authentications' to be a list")
|
|
60
|
+
pulumi.set(__self__, "oidc_authentications", oidc_authentications)
|
|
51
61
|
if org_id and not isinstance(org_id, str):
|
|
52
62
|
raise TypeError("Expected argument 'org_id' to be a str")
|
|
53
63
|
pulumi.set(__self__, "org_id", org_id)
|
|
@@ -70,7 +80,7 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
70
80
|
@pulumi.getter(name="delegateSelectors")
|
|
71
81
|
def delegate_selectors(self) -> Sequence[str]:
|
|
72
82
|
"""
|
|
73
|
-
|
|
83
|
+
The delegates to inherit the credentials from.
|
|
74
84
|
"""
|
|
75
85
|
return pulumi.get(self, "delegate_selectors")
|
|
76
86
|
|
|
@@ -82,6 +92,14 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
82
92
|
"""
|
|
83
93
|
return pulumi.get(self, "description")
|
|
84
94
|
|
|
95
|
+
@property
|
|
96
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
97
|
+
def execute_on_delegate(self) -> bool:
|
|
98
|
+
"""
|
|
99
|
+
Execute on delegate or not.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
102
|
+
|
|
85
103
|
@property
|
|
86
104
|
@pulumi.getter
|
|
87
105
|
def id(self) -> str:
|
|
@@ -98,11 +116,19 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
98
116
|
"""
|
|
99
117
|
return pulumi.get(self, "identifier")
|
|
100
118
|
|
|
119
|
+
@property
|
|
120
|
+
@pulumi.getter(name="inheritFromDelegate")
|
|
121
|
+
def inherit_from_delegate(self) -> bool:
|
|
122
|
+
"""
|
|
123
|
+
Inherit configuration from delegate.
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "inherit_from_delegate")
|
|
126
|
+
|
|
101
127
|
@property
|
|
102
128
|
@pulumi.getter(name="isDefault")
|
|
103
129
|
def is_default(self) -> bool:
|
|
104
130
|
"""
|
|
105
|
-
|
|
131
|
+
Set this flag to set this secret manager as default secret manager.
|
|
106
132
|
"""
|
|
107
133
|
return pulumi.get(self, "is_default")
|
|
108
134
|
|
|
@@ -114,6 +140,14 @@ class GetGcpSecretManagerConnectorResult:
|
|
|
114
140
|
"""
|
|
115
141
|
return pulumi.get(self, "name")
|
|
116
142
|
|
|
143
|
+
@property
|
|
144
|
+
@pulumi.getter(name="oidcAuthentications")
|
|
145
|
+
def oidc_authentications(self) -> Sequence['outputs.GetGcpSecretManagerConnectorOidcAuthenticationResult']:
|
|
146
|
+
"""
|
|
147
|
+
Authentication using harness oidc.
|
|
148
|
+
"""
|
|
149
|
+
return pulumi.get(self, "oidc_authentications")
|
|
150
|
+
|
|
117
151
|
@property
|
|
118
152
|
@pulumi.getter(name="orgId")
|
|
119
153
|
def org_id(self) -> Optional[str]:
|
|
@@ -148,10 +182,13 @@ class AwaitableGetGcpSecretManagerConnectorResult(GetGcpSecretManagerConnectorRe
|
|
|
148
182
|
credentials_ref=self.credentials_ref,
|
|
149
183
|
delegate_selectors=self.delegate_selectors,
|
|
150
184
|
description=self.description,
|
|
185
|
+
execute_on_delegate=self.execute_on_delegate,
|
|
151
186
|
id=self.id,
|
|
152
187
|
identifier=self.identifier,
|
|
188
|
+
inherit_from_delegate=self.inherit_from_delegate,
|
|
153
189
|
is_default=self.is_default,
|
|
154
190
|
name=self.name,
|
|
191
|
+
oidc_authentications=self.oidc_authentications,
|
|
155
192
|
org_id=self.org_id,
|
|
156
193
|
project_id=self.project_id,
|
|
157
194
|
tags=self.tags)
|
|
@@ -190,10 +227,13 @@ def get_gcp_secret_manager_connector(identifier: Optional[str] = None,
|
|
|
190
227
|
credentials_ref=pulumi.get(__ret__, 'credentials_ref'),
|
|
191
228
|
delegate_selectors=pulumi.get(__ret__, 'delegate_selectors'),
|
|
192
229
|
description=pulumi.get(__ret__, 'description'),
|
|
230
|
+
execute_on_delegate=pulumi.get(__ret__, 'execute_on_delegate'),
|
|
193
231
|
id=pulumi.get(__ret__, 'id'),
|
|
194
232
|
identifier=pulumi.get(__ret__, 'identifier'),
|
|
233
|
+
inherit_from_delegate=pulumi.get(__ret__, 'inherit_from_delegate'),
|
|
195
234
|
is_default=pulumi.get(__ret__, 'is_default'),
|
|
196
235
|
name=pulumi.get(__ret__, 'name'),
|
|
236
|
+
oidc_authentications=pulumi.get(__ret__, 'oidc_authentications'),
|
|
197
237
|
org_id=pulumi.get(__ret__, 'org_id'),
|
|
198
238
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
199
239
|
tags=pulumi.get(__ret__, 'tags'))
|
|
@@ -229,10 +269,13 @@ def get_gcp_secret_manager_connector_output(identifier: Optional[pulumi.Input[st
|
|
|
229
269
|
credentials_ref=pulumi.get(__response__, 'credentials_ref'),
|
|
230
270
|
delegate_selectors=pulumi.get(__response__, 'delegate_selectors'),
|
|
231
271
|
description=pulumi.get(__response__, 'description'),
|
|
272
|
+
execute_on_delegate=pulumi.get(__response__, 'execute_on_delegate'),
|
|
232
273
|
id=pulumi.get(__response__, 'id'),
|
|
233
274
|
identifier=pulumi.get(__response__, 'identifier'),
|
|
275
|
+
inherit_from_delegate=pulumi.get(__response__, 'inherit_from_delegate'),
|
|
234
276
|
is_default=pulumi.get(__response__, 'is_default'),
|
|
235
277
|
name=pulumi.get(__response__, 'name'),
|
|
278
|
+
oidc_authentications=pulumi.get(__response__, 'oidc_authentications'),
|
|
236
279
|
org_id=pulumi.get(__response__, 'org_id'),
|
|
237
280
|
project_id=pulumi.get(__response__, 'project_id'),
|
|
238
281
|
tags=pulumi.get(__response__, 'tags')))
|