pulumi-harness 0.6.0a1739339279__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/_utilities.py +8 -4
- 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.0a1739339279.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/METADATA +1 -1
- {pulumi_harness-0.6.0a1739339279.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/RECORD +20 -18
- {pulumi_harness-0.6.0a1739339279.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.6.0a1739339279.dist-info → pulumi_harness-0.6.0a1739425612.dist-info}/top_level.txt +0 -0
|
@@ -13,43 +13,58 @@ 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
|
|
17
|
+
from ._inputs import *
|
|
16
18
|
|
|
17
19
|
__all__ = ['GcpSecretManagerConnectorArgs', 'GcpSecretManagerConnector']
|
|
18
20
|
|
|
19
21
|
@pulumi.input_type
|
|
20
22
|
class GcpSecretManagerConnectorArgs:
|
|
21
23
|
def __init__(__self__, *,
|
|
22
|
-
credentials_ref: pulumi.Input[str],
|
|
23
24
|
identifier: pulumi.Input[str],
|
|
25
|
+
credentials_ref: Optional[pulumi.Input[str]] = None,
|
|
24
26
|
delegate_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
25
27
|
description: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
execute_on_delegate: Optional[pulumi.Input[bool]] = None,
|
|
29
|
+
inherit_from_delegate: Optional[pulumi.Input[bool]] = None,
|
|
26
30
|
is_default: Optional[pulumi.Input[bool]] = None,
|
|
27
31
|
name: Optional[pulumi.Input[str]] = None,
|
|
32
|
+
oidc_authentications: Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]] = None,
|
|
28
33
|
org_id: Optional[pulumi.Input[str]] = None,
|
|
29
34
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
30
35
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
31
36
|
"""
|
|
32
37
|
The set of arguments for constructing a GcpSecretManagerConnector resource.
|
|
33
|
-
:param pulumi.Input[str] credentials_ref: Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
34
38
|
:param pulumi.Input[str] identifier: Unique identifier of the resource.
|
|
35
|
-
:param pulumi.Input[
|
|
39
|
+
:param pulumi.Input[str] credentials_ref: Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors: The delegates to inherit the credentials from.
|
|
36
41
|
:param pulumi.Input[str] description: Description of the resource.
|
|
37
|
-
:param pulumi.Input[bool]
|
|
42
|
+
:param pulumi.Input[bool] execute_on_delegate: Execute on delegate or not.
|
|
43
|
+
:param pulumi.Input[bool] inherit_from_delegate: Inherit configuration from delegate.
|
|
44
|
+
:param pulumi.Input[bool] is_default: Set this flag to set this secret manager as default secret manager.
|
|
38
45
|
:param pulumi.Input[str] name: Name of the resource.
|
|
46
|
+
:param pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]] oidc_authentications: Authentication using harness oidc.
|
|
39
47
|
:param pulumi.Input[str] org_id: Unique identifier of the organization.
|
|
40
48
|
:param pulumi.Input[str] project_id: Unique identifier of the project.
|
|
41
49
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags to associate with the resource.
|
|
42
50
|
"""
|
|
43
|
-
pulumi.set(__self__, "credentials_ref", credentials_ref)
|
|
44
51
|
pulumi.set(__self__, "identifier", identifier)
|
|
52
|
+
if credentials_ref is not None:
|
|
53
|
+
pulumi.set(__self__, "credentials_ref", credentials_ref)
|
|
45
54
|
if delegate_selectors is not None:
|
|
46
55
|
pulumi.set(__self__, "delegate_selectors", delegate_selectors)
|
|
47
56
|
if description is not None:
|
|
48
57
|
pulumi.set(__self__, "description", description)
|
|
58
|
+
if execute_on_delegate is not None:
|
|
59
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
60
|
+
if inherit_from_delegate is not None:
|
|
61
|
+
pulumi.set(__self__, "inherit_from_delegate", inherit_from_delegate)
|
|
49
62
|
if is_default is not None:
|
|
50
63
|
pulumi.set(__self__, "is_default", is_default)
|
|
51
64
|
if name is not None:
|
|
52
65
|
pulumi.set(__self__, "name", name)
|
|
66
|
+
if oidc_authentications is not None:
|
|
67
|
+
pulumi.set(__self__, "oidc_authentications", oidc_authentications)
|
|
53
68
|
if org_id is not None:
|
|
54
69
|
pulumi.set(__self__, "org_id", org_id)
|
|
55
70
|
if project_id is not None:
|
|
@@ -57,18 +72,6 @@ class GcpSecretManagerConnectorArgs:
|
|
|
57
72
|
if tags is not None:
|
|
58
73
|
pulumi.set(__self__, "tags", tags)
|
|
59
74
|
|
|
60
|
-
@property
|
|
61
|
-
@pulumi.getter(name="credentialsRef")
|
|
62
|
-
def credentials_ref(self) -> pulumi.Input[str]:
|
|
63
|
-
"""
|
|
64
|
-
Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
65
|
-
"""
|
|
66
|
-
return pulumi.get(self, "credentials_ref")
|
|
67
|
-
|
|
68
|
-
@credentials_ref.setter
|
|
69
|
-
def credentials_ref(self, value: pulumi.Input[str]):
|
|
70
|
-
pulumi.set(self, "credentials_ref", value)
|
|
71
|
-
|
|
72
75
|
@property
|
|
73
76
|
@pulumi.getter
|
|
74
77
|
def identifier(self) -> pulumi.Input[str]:
|
|
@@ -81,11 +84,23 @@ class GcpSecretManagerConnectorArgs:
|
|
|
81
84
|
def identifier(self, value: pulumi.Input[str]):
|
|
82
85
|
pulumi.set(self, "identifier", value)
|
|
83
86
|
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter(name="credentialsRef")
|
|
89
|
+
def credentials_ref(self) -> Optional[pulumi.Input[str]]:
|
|
90
|
+
"""
|
|
91
|
+
Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "credentials_ref")
|
|
94
|
+
|
|
95
|
+
@credentials_ref.setter
|
|
96
|
+
def credentials_ref(self, value: Optional[pulumi.Input[str]]):
|
|
97
|
+
pulumi.set(self, "credentials_ref", value)
|
|
98
|
+
|
|
84
99
|
@property
|
|
85
100
|
@pulumi.getter(name="delegateSelectors")
|
|
86
101
|
def delegate_selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
87
102
|
"""
|
|
88
|
-
|
|
103
|
+
The delegates to inherit the credentials from.
|
|
89
104
|
"""
|
|
90
105
|
return pulumi.get(self, "delegate_selectors")
|
|
91
106
|
|
|
@@ -105,11 +120,35 @@ class GcpSecretManagerConnectorArgs:
|
|
|
105
120
|
def description(self, value: Optional[pulumi.Input[str]]):
|
|
106
121
|
pulumi.set(self, "description", value)
|
|
107
122
|
|
|
123
|
+
@property
|
|
124
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
125
|
+
def execute_on_delegate(self) -> Optional[pulumi.Input[bool]]:
|
|
126
|
+
"""
|
|
127
|
+
Execute on delegate or not.
|
|
128
|
+
"""
|
|
129
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
130
|
+
|
|
131
|
+
@execute_on_delegate.setter
|
|
132
|
+
def execute_on_delegate(self, value: Optional[pulumi.Input[bool]]):
|
|
133
|
+
pulumi.set(self, "execute_on_delegate", value)
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
@pulumi.getter(name="inheritFromDelegate")
|
|
137
|
+
def inherit_from_delegate(self) -> Optional[pulumi.Input[bool]]:
|
|
138
|
+
"""
|
|
139
|
+
Inherit configuration from delegate.
|
|
140
|
+
"""
|
|
141
|
+
return pulumi.get(self, "inherit_from_delegate")
|
|
142
|
+
|
|
143
|
+
@inherit_from_delegate.setter
|
|
144
|
+
def inherit_from_delegate(self, value: Optional[pulumi.Input[bool]]):
|
|
145
|
+
pulumi.set(self, "inherit_from_delegate", value)
|
|
146
|
+
|
|
108
147
|
@property
|
|
109
148
|
@pulumi.getter(name="isDefault")
|
|
110
149
|
def is_default(self) -> Optional[pulumi.Input[bool]]:
|
|
111
150
|
"""
|
|
112
|
-
|
|
151
|
+
Set this flag to set this secret manager as default secret manager.
|
|
113
152
|
"""
|
|
114
153
|
return pulumi.get(self, "is_default")
|
|
115
154
|
|
|
@@ -129,6 +168,18 @@ class GcpSecretManagerConnectorArgs:
|
|
|
129
168
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
130
169
|
pulumi.set(self, "name", value)
|
|
131
170
|
|
|
171
|
+
@property
|
|
172
|
+
@pulumi.getter(name="oidcAuthentications")
|
|
173
|
+
def oidc_authentications(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]]:
|
|
174
|
+
"""
|
|
175
|
+
Authentication using harness oidc.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "oidc_authentications")
|
|
178
|
+
|
|
179
|
+
@oidc_authentications.setter
|
|
180
|
+
def oidc_authentications(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]]):
|
|
181
|
+
pulumi.set(self, "oidc_authentications", value)
|
|
182
|
+
|
|
132
183
|
@property
|
|
133
184
|
@pulumi.getter(name="orgId")
|
|
134
185
|
def org_id(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -172,20 +223,26 @@ class _GcpSecretManagerConnectorState:
|
|
|
172
223
|
credentials_ref: Optional[pulumi.Input[str]] = None,
|
|
173
224
|
delegate_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
174
225
|
description: Optional[pulumi.Input[str]] = None,
|
|
226
|
+
execute_on_delegate: Optional[pulumi.Input[bool]] = None,
|
|
175
227
|
identifier: Optional[pulumi.Input[str]] = None,
|
|
228
|
+
inherit_from_delegate: Optional[pulumi.Input[bool]] = None,
|
|
176
229
|
is_default: Optional[pulumi.Input[bool]] = None,
|
|
177
230
|
name: Optional[pulumi.Input[str]] = None,
|
|
231
|
+
oidc_authentications: Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]] = None,
|
|
178
232
|
org_id: Optional[pulumi.Input[str]] = None,
|
|
179
233
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
180
234
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
181
235
|
"""
|
|
182
236
|
Input properties used for looking up and filtering GcpSecretManagerConnector resources.
|
|
183
237
|
:param pulumi.Input[str] credentials_ref: Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
184
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors:
|
|
238
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors: The delegates to inherit the credentials from.
|
|
185
239
|
:param pulumi.Input[str] description: Description of the resource.
|
|
240
|
+
:param pulumi.Input[bool] execute_on_delegate: Execute on delegate or not.
|
|
186
241
|
:param pulumi.Input[str] identifier: Unique identifier of the resource.
|
|
187
|
-
:param pulumi.Input[bool]
|
|
242
|
+
:param pulumi.Input[bool] inherit_from_delegate: Inherit configuration from delegate.
|
|
243
|
+
:param pulumi.Input[bool] is_default: Set this flag to set this secret manager as default secret manager.
|
|
188
244
|
:param pulumi.Input[str] name: Name of the resource.
|
|
245
|
+
:param pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]] oidc_authentications: Authentication using harness oidc.
|
|
189
246
|
:param pulumi.Input[str] org_id: Unique identifier of the organization.
|
|
190
247
|
:param pulumi.Input[str] project_id: Unique identifier of the project.
|
|
191
248
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags to associate with the resource.
|
|
@@ -196,12 +253,18 @@ class _GcpSecretManagerConnectorState:
|
|
|
196
253
|
pulumi.set(__self__, "delegate_selectors", delegate_selectors)
|
|
197
254
|
if description is not None:
|
|
198
255
|
pulumi.set(__self__, "description", description)
|
|
256
|
+
if execute_on_delegate is not None:
|
|
257
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
199
258
|
if identifier is not None:
|
|
200
259
|
pulumi.set(__self__, "identifier", identifier)
|
|
260
|
+
if inherit_from_delegate is not None:
|
|
261
|
+
pulumi.set(__self__, "inherit_from_delegate", inherit_from_delegate)
|
|
201
262
|
if is_default is not None:
|
|
202
263
|
pulumi.set(__self__, "is_default", is_default)
|
|
203
264
|
if name is not None:
|
|
204
265
|
pulumi.set(__self__, "name", name)
|
|
266
|
+
if oidc_authentications is not None:
|
|
267
|
+
pulumi.set(__self__, "oidc_authentications", oidc_authentications)
|
|
205
268
|
if org_id is not None:
|
|
206
269
|
pulumi.set(__self__, "org_id", org_id)
|
|
207
270
|
if project_id is not None:
|
|
@@ -225,7 +288,7 @@ class _GcpSecretManagerConnectorState:
|
|
|
225
288
|
@pulumi.getter(name="delegateSelectors")
|
|
226
289
|
def delegate_selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
227
290
|
"""
|
|
228
|
-
|
|
291
|
+
The delegates to inherit the credentials from.
|
|
229
292
|
"""
|
|
230
293
|
return pulumi.get(self, "delegate_selectors")
|
|
231
294
|
|
|
@@ -245,6 +308,18 @@ class _GcpSecretManagerConnectorState:
|
|
|
245
308
|
def description(self, value: Optional[pulumi.Input[str]]):
|
|
246
309
|
pulumi.set(self, "description", value)
|
|
247
310
|
|
|
311
|
+
@property
|
|
312
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
313
|
+
def execute_on_delegate(self) -> Optional[pulumi.Input[bool]]:
|
|
314
|
+
"""
|
|
315
|
+
Execute on delegate or not.
|
|
316
|
+
"""
|
|
317
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
318
|
+
|
|
319
|
+
@execute_on_delegate.setter
|
|
320
|
+
def execute_on_delegate(self, value: Optional[pulumi.Input[bool]]):
|
|
321
|
+
pulumi.set(self, "execute_on_delegate", value)
|
|
322
|
+
|
|
248
323
|
@property
|
|
249
324
|
@pulumi.getter
|
|
250
325
|
def identifier(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -257,11 +332,23 @@ class _GcpSecretManagerConnectorState:
|
|
|
257
332
|
def identifier(self, value: Optional[pulumi.Input[str]]):
|
|
258
333
|
pulumi.set(self, "identifier", value)
|
|
259
334
|
|
|
335
|
+
@property
|
|
336
|
+
@pulumi.getter(name="inheritFromDelegate")
|
|
337
|
+
def inherit_from_delegate(self) -> Optional[pulumi.Input[bool]]:
|
|
338
|
+
"""
|
|
339
|
+
Inherit configuration from delegate.
|
|
340
|
+
"""
|
|
341
|
+
return pulumi.get(self, "inherit_from_delegate")
|
|
342
|
+
|
|
343
|
+
@inherit_from_delegate.setter
|
|
344
|
+
def inherit_from_delegate(self, value: Optional[pulumi.Input[bool]]):
|
|
345
|
+
pulumi.set(self, "inherit_from_delegate", value)
|
|
346
|
+
|
|
260
347
|
@property
|
|
261
348
|
@pulumi.getter(name="isDefault")
|
|
262
349
|
def is_default(self) -> Optional[pulumi.Input[bool]]:
|
|
263
350
|
"""
|
|
264
|
-
|
|
351
|
+
Set this flag to set this secret manager as default secret manager.
|
|
265
352
|
"""
|
|
266
353
|
return pulumi.get(self, "is_default")
|
|
267
354
|
|
|
@@ -281,6 +368,18 @@ class _GcpSecretManagerConnectorState:
|
|
|
281
368
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
282
369
|
pulumi.set(self, "name", value)
|
|
283
370
|
|
|
371
|
+
@property
|
|
372
|
+
@pulumi.getter(name="oidcAuthentications")
|
|
373
|
+
def oidc_authentications(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]]:
|
|
374
|
+
"""
|
|
375
|
+
Authentication using harness oidc.
|
|
376
|
+
"""
|
|
377
|
+
return pulumi.get(self, "oidc_authentications")
|
|
378
|
+
|
|
379
|
+
@oidc_authentications.setter
|
|
380
|
+
def oidc_authentications(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GcpSecretManagerConnectorOidcAuthenticationArgs']]]]):
|
|
381
|
+
pulumi.set(self, "oidc_authentications", value)
|
|
382
|
+
|
|
284
383
|
@property
|
|
285
384
|
@pulumi.getter(name="orgId")
|
|
286
385
|
def org_id(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -326,9 +425,12 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
326
425
|
credentials_ref: Optional[pulumi.Input[str]] = None,
|
|
327
426
|
delegate_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
328
427
|
description: Optional[pulumi.Input[str]] = None,
|
|
428
|
+
execute_on_delegate: Optional[pulumi.Input[bool]] = None,
|
|
329
429
|
identifier: Optional[pulumi.Input[str]] = None,
|
|
430
|
+
inherit_from_delegate: Optional[pulumi.Input[bool]] = None,
|
|
330
431
|
is_default: Optional[pulumi.Input[bool]] = None,
|
|
331
432
|
name: Optional[pulumi.Input[str]] = None,
|
|
433
|
+
oidc_authentications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['GcpSecretManagerConnectorOidcAuthenticationArgs', 'GcpSecretManagerConnectorOidcAuthenticationArgsDict']]]]] = None,
|
|
332
434
|
org_id: Optional[pulumi.Input[str]] = None,
|
|
333
435
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
334
436
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -340,13 +442,45 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
340
442
|
import pulumi
|
|
341
443
|
import pulumi_harness as harness
|
|
342
444
|
|
|
343
|
-
|
|
445
|
+
gcp_sm_manual = harness.platform.GcpSecretManagerConnector("gcp_sm_manual",
|
|
344
446
|
identifier="identifier",
|
|
345
447
|
name="name",
|
|
346
448
|
description="test",
|
|
347
449
|
tags=["foo:bar"],
|
|
348
450
|
delegate_selectors=["harness-delegate"],
|
|
349
451
|
credentials_ref=f"account.{test['id']}")
|
|
452
|
+
gcp_sm_inherit = harness.platform.GcpSecretManagerConnector("gcp_sm_inherit",
|
|
453
|
+
identifier="identifier",
|
|
454
|
+
name="name",
|
|
455
|
+
description="test",
|
|
456
|
+
tags=["foo:bar"],
|
|
457
|
+
delegate_selectors=["harness-delegate"],
|
|
458
|
+
inherit_from_delegate=True)
|
|
459
|
+
gcp_sm_oidc_platform = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform",
|
|
460
|
+
identifier="identifier",
|
|
461
|
+
name="name",
|
|
462
|
+
description="test",
|
|
463
|
+
tags=["foo:bar"],
|
|
464
|
+
execute_on_delegate=False,
|
|
465
|
+
oidc_authentications=[{
|
|
466
|
+
"workload_pool_id": "harness-pool-test",
|
|
467
|
+
"provider_id": "harness",
|
|
468
|
+
"gcp_project_id": "1234567",
|
|
469
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
470
|
+
}])
|
|
471
|
+
gcp_sm_oidc_delegate = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate",
|
|
472
|
+
identifier="identifier",
|
|
473
|
+
name="name",
|
|
474
|
+
description="test",
|
|
475
|
+
tags=["foo:bar"],
|
|
476
|
+
is_default=True,
|
|
477
|
+
delegate_selectors=["harness-delegate"],
|
|
478
|
+
oidc_authentications=[{
|
|
479
|
+
"workload_pool_id": "harness-pool-test",
|
|
480
|
+
"provider_id": "harness",
|
|
481
|
+
"gcp_project_id": "1234567",
|
|
482
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
483
|
+
}])
|
|
350
484
|
```
|
|
351
485
|
|
|
352
486
|
## Import
|
|
@@ -372,11 +506,14 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
372
506
|
:param str resource_name: The name of the resource.
|
|
373
507
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
374
508
|
:param pulumi.Input[str] credentials_ref: Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
375
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors:
|
|
509
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors: The delegates to inherit the credentials from.
|
|
376
510
|
:param pulumi.Input[str] description: Description of the resource.
|
|
511
|
+
:param pulumi.Input[bool] execute_on_delegate: Execute on delegate or not.
|
|
377
512
|
:param pulumi.Input[str] identifier: Unique identifier of the resource.
|
|
378
|
-
:param pulumi.Input[bool]
|
|
513
|
+
:param pulumi.Input[bool] inherit_from_delegate: Inherit configuration from delegate.
|
|
514
|
+
:param pulumi.Input[bool] is_default: Set this flag to set this secret manager as default secret manager.
|
|
379
515
|
:param pulumi.Input[str] name: Name of the resource.
|
|
516
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['GcpSecretManagerConnectorOidcAuthenticationArgs', 'GcpSecretManagerConnectorOidcAuthenticationArgsDict']]]] oidc_authentications: Authentication using harness oidc.
|
|
380
517
|
:param pulumi.Input[str] org_id: Unique identifier of the organization.
|
|
381
518
|
:param pulumi.Input[str] project_id: Unique identifier of the project.
|
|
382
519
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags to associate with the resource.
|
|
@@ -394,13 +531,45 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
394
531
|
import pulumi
|
|
395
532
|
import pulumi_harness as harness
|
|
396
533
|
|
|
397
|
-
|
|
534
|
+
gcp_sm_manual = harness.platform.GcpSecretManagerConnector("gcp_sm_manual",
|
|
398
535
|
identifier="identifier",
|
|
399
536
|
name="name",
|
|
400
537
|
description="test",
|
|
401
538
|
tags=["foo:bar"],
|
|
402
539
|
delegate_selectors=["harness-delegate"],
|
|
403
540
|
credentials_ref=f"account.{test['id']}")
|
|
541
|
+
gcp_sm_inherit = harness.platform.GcpSecretManagerConnector("gcp_sm_inherit",
|
|
542
|
+
identifier="identifier",
|
|
543
|
+
name="name",
|
|
544
|
+
description="test",
|
|
545
|
+
tags=["foo:bar"],
|
|
546
|
+
delegate_selectors=["harness-delegate"],
|
|
547
|
+
inherit_from_delegate=True)
|
|
548
|
+
gcp_sm_oidc_platform = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform",
|
|
549
|
+
identifier="identifier",
|
|
550
|
+
name="name",
|
|
551
|
+
description="test",
|
|
552
|
+
tags=["foo:bar"],
|
|
553
|
+
execute_on_delegate=False,
|
|
554
|
+
oidc_authentications=[{
|
|
555
|
+
"workload_pool_id": "harness-pool-test",
|
|
556
|
+
"provider_id": "harness",
|
|
557
|
+
"gcp_project_id": "1234567",
|
|
558
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
559
|
+
}])
|
|
560
|
+
gcp_sm_oidc_delegate = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate",
|
|
561
|
+
identifier="identifier",
|
|
562
|
+
name="name",
|
|
563
|
+
description="test",
|
|
564
|
+
tags=["foo:bar"],
|
|
565
|
+
is_default=True,
|
|
566
|
+
delegate_selectors=["harness-delegate"],
|
|
567
|
+
oidc_authentications=[{
|
|
568
|
+
"workload_pool_id": "harness-pool-test",
|
|
569
|
+
"provider_id": "harness",
|
|
570
|
+
"gcp_project_id": "1234567",
|
|
571
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
572
|
+
}])
|
|
404
573
|
```
|
|
405
574
|
|
|
406
575
|
## Import
|
|
@@ -441,9 +610,12 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
441
610
|
credentials_ref: Optional[pulumi.Input[str]] = None,
|
|
442
611
|
delegate_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
443
612
|
description: Optional[pulumi.Input[str]] = None,
|
|
613
|
+
execute_on_delegate: Optional[pulumi.Input[bool]] = None,
|
|
444
614
|
identifier: Optional[pulumi.Input[str]] = None,
|
|
615
|
+
inherit_from_delegate: Optional[pulumi.Input[bool]] = None,
|
|
445
616
|
is_default: Optional[pulumi.Input[bool]] = None,
|
|
446
617
|
name: Optional[pulumi.Input[str]] = None,
|
|
618
|
+
oidc_authentications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['GcpSecretManagerConnectorOidcAuthenticationArgs', 'GcpSecretManagerConnectorOidcAuthenticationArgsDict']]]]] = None,
|
|
447
619
|
org_id: Optional[pulumi.Input[str]] = None,
|
|
448
620
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
449
621
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
@@ -456,16 +628,17 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
456
628
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
457
629
|
__props__ = GcpSecretManagerConnectorArgs.__new__(GcpSecretManagerConnectorArgs)
|
|
458
630
|
|
|
459
|
-
if credentials_ref is None and not opts.urn:
|
|
460
|
-
raise TypeError("Missing required property 'credentials_ref'")
|
|
461
631
|
__props__.__dict__["credentials_ref"] = credentials_ref
|
|
462
632
|
__props__.__dict__["delegate_selectors"] = delegate_selectors
|
|
463
633
|
__props__.__dict__["description"] = description
|
|
634
|
+
__props__.__dict__["execute_on_delegate"] = execute_on_delegate
|
|
464
635
|
if identifier is None and not opts.urn:
|
|
465
636
|
raise TypeError("Missing required property 'identifier'")
|
|
466
637
|
__props__.__dict__["identifier"] = identifier
|
|
638
|
+
__props__.__dict__["inherit_from_delegate"] = inherit_from_delegate
|
|
467
639
|
__props__.__dict__["is_default"] = is_default
|
|
468
640
|
__props__.__dict__["name"] = name
|
|
641
|
+
__props__.__dict__["oidc_authentications"] = oidc_authentications
|
|
469
642
|
__props__.__dict__["org_id"] = org_id
|
|
470
643
|
__props__.__dict__["project_id"] = project_id
|
|
471
644
|
__props__.__dict__["tags"] = tags
|
|
@@ -482,9 +655,12 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
482
655
|
credentials_ref: Optional[pulumi.Input[str]] = None,
|
|
483
656
|
delegate_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
484
657
|
description: Optional[pulumi.Input[str]] = None,
|
|
658
|
+
execute_on_delegate: Optional[pulumi.Input[bool]] = None,
|
|
485
659
|
identifier: Optional[pulumi.Input[str]] = None,
|
|
660
|
+
inherit_from_delegate: Optional[pulumi.Input[bool]] = None,
|
|
486
661
|
is_default: Optional[pulumi.Input[bool]] = None,
|
|
487
662
|
name: Optional[pulumi.Input[str]] = None,
|
|
663
|
+
oidc_authentications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['GcpSecretManagerConnectorOidcAuthenticationArgs', 'GcpSecretManagerConnectorOidcAuthenticationArgsDict']]]]] = None,
|
|
488
664
|
org_id: Optional[pulumi.Input[str]] = None,
|
|
489
665
|
project_id: Optional[pulumi.Input[str]] = None,
|
|
490
666
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'GcpSecretManagerConnector':
|
|
@@ -496,11 +672,14 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
496
672
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
497
673
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
498
674
|
:param pulumi.Input[str] credentials_ref: Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
499
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors:
|
|
675
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] delegate_selectors: The delegates to inherit the credentials from.
|
|
500
676
|
:param pulumi.Input[str] description: Description of the resource.
|
|
677
|
+
:param pulumi.Input[bool] execute_on_delegate: Execute on delegate or not.
|
|
501
678
|
:param pulumi.Input[str] identifier: Unique identifier of the resource.
|
|
502
|
-
:param pulumi.Input[bool]
|
|
679
|
+
:param pulumi.Input[bool] inherit_from_delegate: Inherit configuration from delegate.
|
|
680
|
+
:param pulumi.Input[bool] is_default: Set this flag to set this secret manager as default secret manager.
|
|
503
681
|
:param pulumi.Input[str] name: Name of the resource.
|
|
682
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['GcpSecretManagerConnectorOidcAuthenticationArgs', 'GcpSecretManagerConnectorOidcAuthenticationArgsDict']]]] oidc_authentications: Authentication using harness oidc.
|
|
504
683
|
:param pulumi.Input[str] org_id: Unique identifier of the organization.
|
|
505
684
|
:param pulumi.Input[str] project_id: Unique identifier of the project.
|
|
506
685
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags to associate with the resource.
|
|
@@ -512,9 +691,12 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
512
691
|
__props__.__dict__["credentials_ref"] = credentials_ref
|
|
513
692
|
__props__.__dict__["delegate_selectors"] = delegate_selectors
|
|
514
693
|
__props__.__dict__["description"] = description
|
|
694
|
+
__props__.__dict__["execute_on_delegate"] = execute_on_delegate
|
|
515
695
|
__props__.__dict__["identifier"] = identifier
|
|
696
|
+
__props__.__dict__["inherit_from_delegate"] = inherit_from_delegate
|
|
516
697
|
__props__.__dict__["is_default"] = is_default
|
|
517
698
|
__props__.__dict__["name"] = name
|
|
699
|
+
__props__.__dict__["oidc_authentications"] = oidc_authentications
|
|
518
700
|
__props__.__dict__["org_id"] = org_id
|
|
519
701
|
__props__.__dict__["project_id"] = project_id
|
|
520
702
|
__props__.__dict__["tags"] = tags
|
|
@@ -522,7 +704,7 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
522
704
|
|
|
523
705
|
@property
|
|
524
706
|
@pulumi.getter(name="credentialsRef")
|
|
525
|
-
def credentials_ref(self) -> pulumi.Output[str]:
|
|
707
|
+
def credentials_ref(self) -> pulumi.Output[Optional[str]]:
|
|
526
708
|
"""
|
|
527
709
|
Reference to the secret containing credentials of IAM service account for Google Secret Manager. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}.
|
|
528
710
|
"""
|
|
@@ -532,7 +714,7 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
532
714
|
@pulumi.getter(name="delegateSelectors")
|
|
533
715
|
def delegate_selectors(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
534
716
|
"""
|
|
535
|
-
|
|
717
|
+
The delegates to inherit the credentials from.
|
|
536
718
|
"""
|
|
537
719
|
return pulumi.get(self, "delegate_selectors")
|
|
538
720
|
|
|
@@ -544,6 +726,14 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
544
726
|
"""
|
|
545
727
|
return pulumi.get(self, "description")
|
|
546
728
|
|
|
729
|
+
@property
|
|
730
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
731
|
+
def execute_on_delegate(self) -> pulumi.Output[Optional[bool]]:
|
|
732
|
+
"""
|
|
733
|
+
Execute on delegate or not.
|
|
734
|
+
"""
|
|
735
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
736
|
+
|
|
547
737
|
@property
|
|
548
738
|
@pulumi.getter
|
|
549
739
|
def identifier(self) -> pulumi.Output[str]:
|
|
@@ -552,11 +742,19 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
552
742
|
"""
|
|
553
743
|
return pulumi.get(self, "identifier")
|
|
554
744
|
|
|
745
|
+
@property
|
|
746
|
+
@pulumi.getter(name="inheritFromDelegate")
|
|
747
|
+
def inherit_from_delegate(self) -> pulumi.Output[Optional[bool]]:
|
|
748
|
+
"""
|
|
749
|
+
Inherit configuration from delegate.
|
|
750
|
+
"""
|
|
751
|
+
return pulumi.get(self, "inherit_from_delegate")
|
|
752
|
+
|
|
555
753
|
@property
|
|
556
754
|
@pulumi.getter(name="isDefault")
|
|
557
755
|
def is_default(self) -> pulumi.Output[Optional[bool]]:
|
|
558
756
|
"""
|
|
559
|
-
|
|
757
|
+
Set this flag to set this secret manager as default secret manager.
|
|
560
758
|
"""
|
|
561
759
|
return pulumi.get(self, "is_default")
|
|
562
760
|
|
|
@@ -568,6 +766,14 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
568
766
|
"""
|
|
569
767
|
return pulumi.get(self, "name")
|
|
570
768
|
|
|
769
|
+
@property
|
|
770
|
+
@pulumi.getter(name="oidcAuthentications")
|
|
771
|
+
def oidc_authentications(self) -> pulumi.Output[Optional[Sequence['outputs.GcpSecretManagerConnectorOidcAuthentication']]]:
|
|
772
|
+
"""
|
|
773
|
+
Authentication using harness oidc.
|
|
774
|
+
"""
|
|
775
|
+
return pulumi.get(self, "oidc_authentications")
|
|
776
|
+
|
|
571
777
|
@property
|
|
572
778
|
@pulumi.getter(name="orgId")
|
|
573
779
|
def org_id(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -27,19 +27,25 @@ class GetAwsKmsConnectorResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getAwsKmsConnector.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, arn_ref=None, credentials=None, delegate_selectors=None, description=None, id=None, identifier=None, name=None, org_id=None, project_id=None, region=None, tags=None):
|
|
30
|
+
def __init__(__self__, arn_ref=None, credentials=None, default=None, delegate_selectors=None, description=None, execute_on_delegate=None, id=None, identifier=None, name=None, org_id=None, project_id=None, region=None, tags=None):
|
|
31
31
|
if arn_ref and not isinstance(arn_ref, str):
|
|
32
32
|
raise TypeError("Expected argument 'arn_ref' to be a str")
|
|
33
33
|
pulumi.set(__self__, "arn_ref", arn_ref)
|
|
34
34
|
if credentials and not isinstance(credentials, list):
|
|
35
35
|
raise TypeError("Expected argument 'credentials' to be a list")
|
|
36
36
|
pulumi.set(__self__, "credentials", credentials)
|
|
37
|
+
if default and not isinstance(default, bool):
|
|
38
|
+
raise TypeError("Expected argument 'default' to be a bool")
|
|
39
|
+
pulumi.set(__self__, "default", default)
|
|
37
40
|
if delegate_selectors and not isinstance(delegate_selectors, list):
|
|
38
41
|
raise TypeError("Expected argument 'delegate_selectors' to be a list")
|
|
39
42
|
pulumi.set(__self__, "delegate_selectors", delegate_selectors)
|
|
40
43
|
if description and not isinstance(description, str):
|
|
41
44
|
raise TypeError("Expected argument 'description' to be a str")
|
|
42
45
|
pulumi.set(__self__, "description", description)
|
|
46
|
+
if execute_on_delegate and not isinstance(execute_on_delegate, bool):
|
|
47
|
+
raise TypeError("Expected argument 'execute_on_delegate' to be a bool")
|
|
48
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
43
49
|
if id and not isinstance(id, str):
|
|
44
50
|
raise TypeError("Expected argument 'id' to be a str")
|
|
45
51
|
pulumi.set(__self__, "id", id)
|
|
@@ -78,6 +84,14 @@ class GetAwsKmsConnectorResult:
|
|
|
78
84
|
"""
|
|
79
85
|
return pulumi.get(self, "credentials")
|
|
80
86
|
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter
|
|
89
|
+
def default(self) -> bool:
|
|
90
|
+
"""
|
|
91
|
+
Whether this is the default connector.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "default")
|
|
94
|
+
|
|
81
95
|
@property
|
|
82
96
|
@pulumi.getter(name="delegateSelectors")
|
|
83
97
|
def delegate_selectors(self) -> Sequence[str]:
|
|
@@ -94,6 +108,14 @@ class GetAwsKmsConnectorResult:
|
|
|
94
108
|
"""
|
|
95
109
|
return pulumi.get(self, "description")
|
|
96
110
|
|
|
111
|
+
@property
|
|
112
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
113
|
+
def execute_on_delegate(self) -> bool:
|
|
114
|
+
"""
|
|
115
|
+
The delegate to execute the action on.
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
118
|
+
|
|
97
119
|
@property
|
|
98
120
|
@pulumi.getter
|
|
99
121
|
def id(self) -> str:
|
|
@@ -159,8 +181,10 @@ class AwaitableGetAwsKmsConnectorResult(GetAwsKmsConnectorResult):
|
|
|
159
181
|
return GetAwsKmsConnectorResult(
|
|
160
182
|
arn_ref=self.arn_ref,
|
|
161
183
|
credentials=self.credentials,
|
|
184
|
+
default=self.default,
|
|
162
185
|
delegate_selectors=self.delegate_selectors,
|
|
163
186
|
description=self.description,
|
|
187
|
+
execute_on_delegate=self.execute_on_delegate,
|
|
164
188
|
id=self.id,
|
|
165
189
|
identifier=self.identifier,
|
|
166
190
|
name=self.name,
|
|
@@ -202,8 +226,10 @@ def get_aws_kms_connector(identifier: Optional[str] = None,
|
|
|
202
226
|
return AwaitableGetAwsKmsConnectorResult(
|
|
203
227
|
arn_ref=pulumi.get(__ret__, 'arn_ref'),
|
|
204
228
|
credentials=pulumi.get(__ret__, 'credentials'),
|
|
229
|
+
default=pulumi.get(__ret__, 'default'),
|
|
205
230
|
delegate_selectors=pulumi.get(__ret__, 'delegate_selectors'),
|
|
206
231
|
description=pulumi.get(__ret__, 'description'),
|
|
232
|
+
execute_on_delegate=pulumi.get(__ret__, 'execute_on_delegate'),
|
|
207
233
|
id=pulumi.get(__ret__, 'id'),
|
|
208
234
|
identifier=pulumi.get(__ret__, 'identifier'),
|
|
209
235
|
name=pulumi.get(__ret__, 'name'),
|
|
@@ -242,8 +268,10 @@ def get_aws_kms_connector_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
|
242
268
|
return __ret__.apply(lambda __response__: GetAwsKmsConnectorResult(
|
|
243
269
|
arn_ref=pulumi.get(__response__, 'arn_ref'),
|
|
244
270
|
credentials=pulumi.get(__response__, 'credentials'),
|
|
271
|
+
default=pulumi.get(__response__, 'default'),
|
|
245
272
|
delegate_selectors=pulumi.get(__response__, 'delegate_selectors'),
|
|
246
273
|
description=pulumi.get(__response__, 'description'),
|
|
274
|
+
execute_on_delegate=pulumi.get(__response__, 'execute_on_delegate'),
|
|
247
275
|
id=pulumi.get(__response__, 'id'),
|
|
248
276
|
identifier=pulumi.get(__response__, 'identifier'),
|
|
249
277
|
name=pulumi.get(__response__, 'name'),
|