pulumi-aiven 6.34.0a1739855222__py3-none-any.whl → 6.34.0a1740021642__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-aiven might be problematic. Click here for more details.
- pulumi_aiven/__init__.py +10 -0
- pulumi_aiven/_inputs.py +52 -0
- pulumi_aiven/account.py +2 -4
- pulumi_aiven/account_authentication.py +2 -4
- pulumi_aiven/get_account.py +2 -4
- pulumi_aiven/get_account_authentication.py +2 -4
- pulumi_aiven/get_organization_project.py +197 -0
- pulumi_aiven/get_project_user.py +8 -6
- pulumi_aiven/organization_project.py +440 -0
- pulumi_aiven/outputs.py +60 -0
- pulumi_aiven/project_user.py +6 -12
- pulumi_aiven/pulumi-plugin.json +1 -1
- {pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/METADATA +1 -1
- {pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/RECORD +16 -14
- {pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/top_level.txt +0 -0
pulumi_aiven/__init__.py
CHANGED
|
@@ -93,6 +93,7 @@ from .get_opensearch_security_plugin_config import *
|
|
|
93
93
|
from .get_opensearch_user import *
|
|
94
94
|
from .get_organization import *
|
|
95
95
|
from .get_organization_application_user import *
|
|
96
|
+
from .get_organization_project import *
|
|
96
97
|
from .get_organization_user import *
|
|
97
98
|
from .get_organization_user_group import *
|
|
98
99
|
from .get_organization_user_list import *
|
|
@@ -145,6 +146,7 @@ from .organization_application_user import *
|
|
|
145
146
|
from .organization_application_user_token import *
|
|
146
147
|
from .organization_group_project import *
|
|
147
148
|
from .organization_permission import *
|
|
149
|
+
from .organization_project import *
|
|
148
150
|
from .organization_user import *
|
|
149
151
|
from .organization_user_group import *
|
|
150
152
|
from .organization_user_group_member import *
|
|
@@ -706,6 +708,14 @@ _utilities.register(
|
|
|
706
708
|
"aiven:index/organizationPermission:OrganizationPermission": "OrganizationPermission"
|
|
707
709
|
}
|
|
708
710
|
},
|
|
711
|
+
{
|
|
712
|
+
"pkg": "aiven",
|
|
713
|
+
"mod": "index/organizationProject",
|
|
714
|
+
"fqn": "pulumi_aiven",
|
|
715
|
+
"classes": {
|
|
716
|
+
"aiven:index/organizationProject:OrganizationProject": "OrganizationProject"
|
|
717
|
+
}
|
|
718
|
+
},
|
|
709
719
|
{
|
|
710
720
|
"pkg": "aiven",
|
|
711
721
|
"mod": "index/organizationUser",
|
pulumi_aiven/_inputs.py
CHANGED
|
@@ -453,6 +453,8 @@ __all__ = [
|
|
|
453
453
|
'OrganizationGroupProjectTimeoutsArgsDict',
|
|
454
454
|
'OrganizationPermissionPermissionArgs',
|
|
455
455
|
'OrganizationPermissionPermissionArgsDict',
|
|
456
|
+
'OrganizationProjectTagArgs',
|
|
457
|
+
'OrganizationProjectTagArgsDict',
|
|
456
458
|
'OrganizationTimeoutsArgs',
|
|
457
459
|
'OrganizationTimeoutsArgsDict',
|
|
458
460
|
'OrganizationUserGroupMemberTimeoutsArgs',
|
|
@@ -28225,6 +28227,56 @@ class OrganizationPermissionPermissionArgs:
|
|
|
28225
28227
|
pulumi.set(self, "update_time", value)
|
|
28226
28228
|
|
|
28227
28229
|
|
|
28230
|
+
if not MYPY:
|
|
28231
|
+
class OrganizationProjectTagArgsDict(TypedDict):
|
|
28232
|
+
key: pulumi.Input[str]
|
|
28233
|
+
"""
|
|
28234
|
+
Project tag key.
|
|
28235
|
+
"""
|
|
28236
|
+
value: pulumi.Input[str]
|
|
28237
|
+
"""
|
|
28238
|
+
Project tag value.
|
|
28239
|
+
"""
|
|
28240
|
+
elif False:
|
|
28241
|
+
OrganizationProjectTagArgsDict: TypeAlias = Mapping[str, Any]
|
|
28242
|
+
|
|
28243
|
+
@pulumi.input_type
|
|
28244
|
+
class OrganizationProjectTagArgs:
|
|
28245
|
+
def __init__(__self__, *,
|
|
28246
|
+
key: pulumi.Input[str],
|
|
28247
|
+
value: pulumi.Input[str]):
|
|
28248
|
+
"""
|
|
28249
|
+
:param pulumi.Input[str] key: Project tag key.
|
|
28250
|
+
:param pulumi.Input[str] value: Project tag value.
|
|
28251
|
+
"""
|
|
28252
|
+
pulumi.set(__self__, "key", key)
|
|
28253
|
+
pulumi.set(__self__, "value", value)
|
|
28254
|
+
|
|
28255
|
+
@property
|
|
28256
|
+
@pulumi.getter
|
|
28257
|
+
def key(self) -> pulumi.Input[str]:
|
|
28258
|
+
"""
|
|
28259
|
+
Project tag key.
|
|
28260
|
+
"""
|
|
28261
|
+
return pulumi.get(self, "key")
|
|
28262
|
+
|
|
28263
|
+
@key.setter
|
|
28264
|
+
def key(self, value: pulumi.Input[str]):
|
|
28265
|
+
pulumi.set(self, "key", value)
|
|
28266
|
+
|
|
28267
|
+
@property
|
|
28268
|
+
@pulumi.getter
|
|
28269
|
+
def value(self) -> pulumi.Input[str]:
|
|
28270
|
+
"""
|
|
28271
|
+
Project tag value.
|
|
28272
|
+
"""
|
|
28273
|
+
return pulumi.get(self, "value")
|
|
28274
|
+
|
|
28275
|
+
@value.setter
|
|
28276
|
+
def value(self, value: pulumi.Input[str]):
|
|
28277
|
+
pulumi.set(self, "value", value)
|
|
28278
|
+
|
|
28279
|
+
|
|
28228
28280
|
if not MYPY:
|
|
28229
28281
|
class OrganizationTimeoutsArgsDict(TypedDict):
|
|
28230
28282
|
create: NotRequired[pulumi.Input[str]]
|
pulumi_aiven/account.py
CHANGED
|
@@ -223,8 +223,7 @@ class Account(pulumi.CustomResource):
|
|
|
223
223
|
"""
|
|
224
224
|
Creates and manages an Aiven account.
|
|
225
225
|
|
|
226
|
-
> **This resource is deprecated
|
|
227
|
-
|
|
226
|
+
> **This resource is deprecated**
|
|
228
227
|
This resource will be removed in v5.0.0. Use `Organization` instead.
|
|
229
228
|
|
|
230
229
|
## Example Usage
|
|
@@ -256,8 +255,7 @@ class Account(pulumi.CustomResource):
|
|
|
256
255
|
"""
|
|
257
256
|
Creates and manages an Aiven account.
|
|
258
257
|
|
|
259
|
-
> **This resource is deprecated
|
|
260
|
-
|
|
258
|
+
> **This resource is deprecated**
|
|
261
259
|
This resource will be removed in v5.0.0. Use `Organization` instead.
|
|
262
260
|
|
|
263
261
|
## Example Usage
|
|
@@ -550,8 +550,7 @@ class AccountAuthentication(pulumi.CustomResource):
|
|
|
550
550
|
"""
|
|
551
551
|
Creates and manages an authentication method.
|
|
552
552
|
|
|
553
|
-
> **This resource is deprecated
|
|
554
|
-
|
|
553
|
+
> **This resource is deprecated**
|
|
555
554
|
To set up an identity provider as an authentication method for your organization,
|
|
556
555
|
[use the Aiven Console](https://aiven.io/docs/platform/howto/saml/add-identity-providers).
|
|
557
556
|
It guides you through the steps and explains the settings.
|
|
@@ -587,8 +586,7 @@ class AccountAuthentication(pulumi.CustomResource):
|
|
|
587
586
|
"""
|
|
588
587
|
Creates and manages an authentication method.
|
|
589
588
|
|
|
590
|
-
> **This resource is deprecated
|
|
591
|
-
|
|
589
|
+
> **This resource is deprecated**
|
|
592
590
|
To set up an identity provider as an authentication method for your organization,
|
|
593
591
|
[use the Aiven Console](https://aiven.io/docs/platform/howto/saml/add-identity-providers).
|
|
594
592
|
It guides you through the steps and explains the settings.
|
pulumi_aiven/get_account.py
CHANGED
|
@@ -150,8 +150,7 @@ def get_account(name: Optional[str] = None,
|
|
|
150
150
|
"""
|
|
151
151
|
The Account data source provides information about the existing Aiven Account.
|
|
152
152
|
|
|
153
|
-
> **This resource is deprecated
|
|
154
|
-
|
|
153
|
+
> **This resource is deprecated**
|
|
155
154
|
This resource will be removed in v5.0.0. Use `Organization` instead.
|
|
156
155
|
|
|
157
156
|
## Example Usage
|
|
@@ -186,8 +185,7 @@ def get_account_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
186
185
|
"""
|
|
187
186
|
The Account data source provides information about the existing Aiven Account.
|
|
188
187
|
|
|
189
|
-
> **This resource is deprecated
|
|
190
|
-
|
|
188
|
+
> **This resource is deprecated**
|
|
191
189
|
This resource will be removed in v5.0.0. Use `Organization` instead.
|
|
192
190
|
|
|
193
191
|
## Example Usage
|
|
@@ -272,8 +272,7 @@ def get_account_authentication(account_id: Optional[str] = None,
|
|
|
272
272
|
"""
|
|
273
273
|
The Account Authentication data source provides information about the existing Aiven Account Authentication.
|
|
274
274
|
|
|
275
|
-
> **This resource is deprecated
|
|
276
|
-
|
|
275
|
+
> **This resource is deprecated**
|
|
277
276
|
This resource is deprecated
|
|
278
277
|
|
|
279
278
|
|
|
@@ -312,8 +311,7 @@ def get_account_authentication_output(account_id: Optional[pulumi.Input[str]] =
|
|
|
312
311
|
"""
|
|
313
312
|
The Account Authentication data source provides information about the existing Aiven Account Authentication.
|
|
314
313
|
|
|
315
|
-
> **This resource is deprecated
|
|
316
|
-
|
|
314
|
+
> **This resource is deprecated**
|
|
317
315
|
This resource is deprecated
|
|
318
316
|
|
|
319
317
|
|
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
'GetOrganizationProjectResult',
|
|
20
|
+
'AwaitableGetOrganizationProjectResult',
|
|
21
|
+
'get_organization_project',
|
|
22
|
+
'get_organization_project_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetOrganizationProjectResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getOrganizationProject.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, billing_group_id=None, id=None, organization_id=None, parent_id=None, project_id=None, tags=None, technical_emails=None):
|
|
31
|
+
if billing_group_id and not isinstance(billing_group_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'billing_group_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "billing_group_id", billing_group_id)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if organization_id and not isinstance(organization_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'organization_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
40
|
+
if parent_id and not isinstance(parent_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'parent_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "parent_id", parent_id)
|
|
43
|
+
if project_id and not isinstance(project_id, str):
|
|
44
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
45
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
46
|
+
if tags and not isinstance(tags, list):
|
|
47
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
48
|
+
pulumi.set(__self__, "tags", tags)
|
|
49
|
+
if technical_emails and not isinstance(technical_emails, list):
|
|
50
|
+
raise TypeError("Expected argument 'technical_emails' to be a list")
|
|
51
|
+
pulumi.set(__self__, "technical_emails", technical_emails)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="billingGroupId")
|
|
55
|
+
def billing_group_id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
Billing group ID to assign to the project.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "billing_group_id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def id(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
The provider-assigned unique ID for this managed resource.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "id")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter(name="organizationId")
|
|
71
|
+
def organization_id(self) -> str:
|
|
72
|
+
"""
|
|
73
|
+
ID of an organization. Changing this property forces recreation of the resource.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "organization_id")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter(name="parentId")
|
|
79
|
+
def parent_id(self) -> str:
|
|
80
|
+
"""
|
|
81
|
+
Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "parent_id")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="projectId")
|
|
87
|
+
def project_id(self) -> str:
|
|
88
|
+
"""
|
|
89
|
+
Unique identifier for the project that also serves as the project name.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "project_id")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter
|
|
95
|
+
def tags(self) -> Sequence['outputs.GetOrganizationProjectTagResult']:
|
|
96
|
+
"""
|
|
97
|
+
Tags are key-value pairs that allow you to categorize projects.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "tags")
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter(name="technicalEmails")
|
|
103
|
+
def technical_emails(self) -> Sequence[str]:
|
|
104
|
+
"""
|
|
105
|
+
The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "technical_emails")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AwaitableGetOrganizationProjectResult(GetOrganizationProjectResult):
|
|
111
|
+
# pylint: disable=using-constant-test
|
|
112
|
+
def __await__(self):
|
|
113
|
+
if False:
|
|
114
|
+
yield self
|
|
115
|
+
return GetOrganizationProjectResult(
|
|
116
|
+
billing_group_id=self.billing_group_id,
|
|
117
|
+
id=self.id,
|
|
118
|
+
organization_id=self.organization_id,
|
|
119
|
+
parent_id=self.parent_id,
|
|
120
|
+
project_id=self.project_id,
|
|
121
|
+
tags=self.tags,
|
|
122
|
+
technical_emails=self.technical_emails)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def get_organization_project(organization_id: Optional[str] = None,
|
|
126
|
+
project_id: Optional[str] = None,
|
|
127
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrganizationProjectResult:
|
|
128
|
+
"""
|
|
129
|
+
Gets information about an Aiven project.
|
|
130
|
+
|
|
131
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
132
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
133
|
+
|
|
134
|
+
## Example Usage
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
import pulumi
|
|
138
|
+
import pulumi_aiven as aiven
|
|
139
|
+
|
|
140
|
+
example = aiven.get_organization_project(project_id=foo["projectId"],
|
|
141
|
+
organization_id=foo["organizationId"])
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param str organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
146
|
+
:param str project_id: Unique identifier for the project that also serves as the project name.
|
|
147
|
+
"""
|
|
148
|
+
__args__ = dict()
|
|
149
|
+
__args__['organizationId'] = organization_id
|
|
150
|
+
__args__['projectId'] = project_id
|
|
151
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
+
__ret__ = pulumi.runtime.invoke('aiven:index/getOrganizationProject:getOrganizationProject', __args__, opts=opts, typ=GetOrganizationProjectResult).value
|
|
153
|
+
|
|
154
|
+
return AwaitableGetOrganizationProjectResult(
|
|
155
|
+
billing_group_id=pulumi.get(__ret__, 'billing_group_id'),
|
|
156
|
+
id=pulumi.get(__ret__, 'id'),
|
|
157
|
+
organization_id=pulumi.get(__ret__, 'organization_id'),
|
|
158
|
+
parent_id=pulumi.get(__ret__, 'parent_id'),
|
|
159
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
160
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
161
|
+
technical_emails=pulumi.get(__ret__, 'technical_emails'))
|
|
162
|
+
def get_organization_project_output(organization_id: Optional[pulumi.Input[str]] = None,
|
|
163
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
164
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrganizationProjectResult]:
|
|
165
|
+
"""
|
|
166
|
+
Gets information about an Aiven project.
|
|
167
|
+
|
|
168
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
169
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
170
|
+
|
|
171
|
+
## Example Usage
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
import pulumi
|
|
175
|
+
import pulumi_aiven as aiven
|
|
176
|
+
|
|
177
|
+
example = aiven.get_organization_project(project_id=foo["projectId"],
|
|
178
|
+
organization_id=foo["organizationId"])
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param str organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
183
|
+
:param str project_id: Unique identifier for the project that also serves as the project name.
|
|
184
|
+
"""
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['organizationId'] = organization_id
|
|
187
|
+
__args__['projectId'] = project_id
|
|
188
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
189
|
+
__ret__ = pulumi.runtime.invoke_output('aiven:index/getOrganizationProject:getOrganizationProject', __args__, opts=opts, typ=GetOrganizationProjectResult)
|
|
190
|
+
return __ret__.apply(lambda __response__: GetOrganizationProjectResult(
|
|
191
|
+
billing_group_id=pulumi.get(__response__, 'billing_group_id'),
|
|
192
|
+
id=pulumi.get(__response__, 'id'),
|
|
193
|
+
organization_id=pulumi.get(__response__, 'organization_id'),
|
|
194
|
+
parent_id=pulumi.get(__response__, 'parent_id'),
|
|
195
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
196
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
197
|
+
technical_emails=pulumi.get(__response__, 'technical_emails')))
|
pulumi_aiven/get_project_user.py
CHANGED
|
@@ -103,9 +103,10 @@ def get_project_user(email: Optional[str] = None,
|
|
|
103
103
|
"""
|
|
104
104
|
The Project User data source provides information about the existing Aiven Project User.
|
|
105
105
|
|
|
106
|
-
> **This resource is deprecated
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
> **This resource is deprecated**
|
|
107
|
+
Use `OrganizationPermission` instead and
|
|
108
|
+
migrate existing `ProjectUser` resources
|
|
109
|
+
to the new resource.
|
|
109
110
|
|
|
110
111
|
## Example Usage
|
|
111
112
|
|
|
@@ -139,9 +140,10 @@ def get_project_user_output(email: Optional[pulumi.Input[str]] = None,
|
|
|
139
140
|
"""
|
|
140
141
|
The Project User data source provides information about the existing Aiven Project User.
|
|
141
142
|
|
|
142
|
-
> **This resource is deprecated
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
> **This resource is deprecated**
|
|
144
|
+
Use `OrganizationPermission` instead and
|
|
145
|
+
migrate existing `ProjectUser` resources
|
|
146
|
+
to the new resource.
|
|
145
147
|
|
|
146
148
|
## Example Usage
|
|
147
149
|
|
|
@@ -0,0 +1,440 @@
|
|
|
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
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['OrganizationProjectArgs', 'OrganizationProject']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class OrganizationProjectArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
billing_group_id: pulumi.Input[str],
|
|
25
|
+
organization_id: pulumi.Input[str],
|
|
26
|
+
project_id: pulumi.Input[str],
|
|
27
|
+
parent_id: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]] = None,
|
|
29
|
+
technical_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a OrganizationProject resource.
|
|
32
|
+
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
33
|
+
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
34
|
+
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
35
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
36
|
+
:param pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
37
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
38
|
+
"""
|
|
39
|
+
pulumi.set(__self__, "billing_group_id", billing_group_id)
|
|
40
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
41
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
42
|
+
if parent_id is not None:
|
|
43
|
+
pulumi.set(__self__, "parent_id", parent_id)
|
|
44
|
+
if tags is not None:
|
|
45
|
+
pulumi.set(__self__, "tags", tags)
|
|
46
|
+
if technical_emails is not None:
|
|
47
|
+
pulumi.set(__self__, "technical_emails", technical_emails)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter(name="billingGroupId")
|
|
51
|
+
def billing_group_id(self) -> pulumi.Input[str]:
|
|
52
|
+
"""
|
|
53
|
+
Billing group ID to assign to the project.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "billing_group_id")
|
|
56
|
+
|
|
57
|
+
@billing_group_id.setter
|
|
58
|
+
def billing_group_id(self, value: pulumi.Input[str]):
|
|
59
|
+
pulumi.set(self, "billing_group_id", value)
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter(name="organizationId")
|
|
63
|
+
def organization_id(self) -> pulumi.Input[str]:
|
|
64
|
+
"""
|
|
65
|
+
ID of an organization. Changing this property forces recreation of the resource.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "organization_id")
|
|
68
|
+
|
|
69
|
+
@organization_id.setter
|
|
70
|
+
def organization_id(self, value: pulumi.Input[str]):
|
|
71
|
+
pulumi.set(self, "organization_id", value)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter(name="projectId")
|
|
75
|
+
def project_id(self) -> pulumi.Input[str]:
|
|
76
|
+
"""
|
|
77
|
+
Unique identifier for the project that also serves as the project name.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "project_id")
|
|
80
|
+
|
|
81
|
+
@project_id.setter
|
|
82
|
+
def project_id(self, value: pulumi.Input[str]):
|
|
83
|
+
pulumi.set(self, "project_id", value)
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="parentId")
|
|
87
|
+
def parent_id(self) -> Optional[pulumi.Input[str]]:
|
|
88
|
+
"""
|
|
89
|
+
Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "parent_id")
|
|
92
|
+
|
|
93
|
+
@parent_id.setter
|
|
94
|
+
def parent_id(self, value: Optional[pulumi.Input[str]]):
|
|
95
|
+
pulumi.set(self, "parent_id", value)
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter
|
|
99
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]]:
|
|
100
|
+
"""
|
|
101
|
+
Tags are key-value pairs that allow you to categorize projects.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "tags")
|
|
104
|
+
|
|
105
|
+
@tags.setter
|
|
106
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]]):
|
|
107
|
+
pulumi.set(self, "tags", value)
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
@pulumi.getter(name="technicalEmails")
|
|
111
|
+
def technical_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
112
|
+
"""
|
|
113
|
+
The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
114
|
+
"""
|
|
115
|
+
return pulumi.get(self, "technical_emails")
|
|
116
|
+
|
|
117
|
+
@technical_emails.setter
|
|
118
|
+
def technical_emails(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
119
|
+
pulumi.set(self, "technical_emails", value)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@pulumi.input_type
|
|
123
|
+
class _OrganizationProjectState:
|
|
124
|
+
def __init__(__self__, *,
|
|
125
|
+
billing_group_id: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
parent_id: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]] = None,
|
|
130
|
+
technical_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
131
|
+
"""
|
|
132
|
+
Input properties used for looking up and filtering OrganizationProject resources.
|
|
133
|
+
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
134
|
+
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
135
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
136
|
+
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
137
|
+
:param pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
138
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
139
|
+
"""
|
|
140
|
+
if billing_group_id is not None:
|
|
141
|
+
pulumi.set(__self__, "billing_group_id", billing_group_id)
|
|
142
|
+
if organization_id is not None:
|
|
143
|
+
pulumi.set(__self__, "organization_id", organization_id)
|
|
144
|
+
if parent_id is not None:
|
|
145
|
+
pulumi.set(__self__, "parent_id", parent_id)
|
|
146
|
+
if project_id is not None:
|
|
147
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
148
|
+
if tags is not None:
|
|
149
|
+
pulumi.set(__self__, "tags", tags)
|
|
150
|
+
if technical_emails is not None:
|
|
151
|
+
pulumi.set(__self__, "technical_emails", technical_emails)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="billingGroupId")
|
|
155
|
+
def billing_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
156
|
+
"""
|
|
157
|
+
Billing group ID to assign to the project.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "billing_group_id")
|
|
160
|
+
|
|
161
|
+
@billing_group_id.setter
|
|
162
|
+
def billing_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
163
|
+
pulumi.set(self, "billing_group_id", value)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter(name="organizationId")
|
|
167
|
+
def organization_id(self) -> Optional[pulumi.Input[str]]:
|
|
168
|
+
"""
|
|
169
|
+
ID of an organization. Changing this property forces recreation of the resource.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "organization_id")
|
|
172
|
+
|
|
173
|
+
@organization_id.setter
|
|
174
|
+
def organization_id(self, value: Optional[pulumi.Input[str]]):
|
|
175
|
+
pulumi.set(self, "organization_id", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter(name="parentId")
|
|
179
|
+
def parent_id(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
"""
|
|
181
|
+
Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "parent_id")
|
|
184
|
+
|
|
185
|
+
@parent_id.setter
|
|
186
|
+
def parent_id(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
pulumi.set(self, "parent_id", value)
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter(name="projectId")
|
|
191
|
+
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
192
|
+
"""
|
|
193
|
+
Unique identifier for the project that also serves as the project name.
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "project_id")
|
|
196
|
+
|
|
197
|
+
@project_id.setter
|
|
198
|
+
def project_id(self, value: Optional[pulumi.Input[str]]):
|
|
199
|
+
pulumi.set(self, "project_id", value)
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]]:
|
|
204
|
+
"""
|
|
205
|
+
Tags are key-value pairs that allow you to categorize projects.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "tags")
|
|
208
|
+
|
|
209
|
+
@tags.setter
|
|
210
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationProjectTagArgs']]]]):
|
|
211
|
+
pulumi.set(self, "tags", value)
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
@pulumi.getter(name="technicalEmails")
|
|
215
|
+
def technical_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
216
|
+
"""
|
|
217
|
+
The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
218
|
+
"""
|
|
219
|
+
return pulumi.get(self, "technical_emails")
|
|
220
|
+
|
|
221
|
+
@technical_emails.setter
|
|
222
|
+
def technical_emails(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
223
|
+
pulumi.set(self, "technical_emails", value)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class OrganizationProject(pulumi.CustomResource):
|
|
227
|
+
@overload
|
|
228
|
+
def __init__(__self__,
|
|
229
|
+
resource_name: str,
|
|
230
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
231
|
+
billing_group_id: Optional[pulumi.Input[str]] = None,
|
|
232
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
233
|
+
parent_id: Optional[pulumi.Input[str]] = None,
|
|
234
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]]] = None,
|
|
236
|
+
technical_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
237
|
+
__props__=None):
|
|
238
|
+
"""
|
|
239
|
+
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects).
|
|
240
|
+
|
|
241
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
242
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
243
|
+
|
|
244
|
+
## Example Usage
|
|
245
|
+
|
|
246
|
+
```python
|
|
247
|
+
import pulumi
|
|
248
|
+
import pulumi_aiven as aiven
|
|
249
|
+
|
|
250
|
+
foo = aiven.OrganizationProject("foo",
|
|
251
|
+
project_id="example-project",
|
|
252
|
+
organization_id=foo_aiven_organization["id"],
|
|
253
|
+
billing_group_id=foo_aiven_billing_group["id"],
|
|
254
|
+
tags=[{
|
|
255
|
+
"key": "key_1",
|
|
256
|
+
"value": "value_1",
|
|
257
|
+
}])
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## Import
|
|
261
|
+
|
|
262
|
+
```sh
|
|
263
|
+
$ pulumi import aiven:index/organizationProject:OrganizationProject main ORGANIZATION_ID/PROJECT_ID
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
:param str resource_name: The name of the resource.
|
|
267
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
268
|
+
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
269
|
+
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
270
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
271
|
+
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
272
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
273
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
274
|
+
"""
|
|
275
|
+
...
|
|
276
|
+
@overload
|
|
277
|
+
def __init__(__self__,
|
|
278
|
+
resource_name: str,
|
|
279
|
+
args: OrganizationProjectArgs,
|
|
280
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
281
|
+
"""
|
|
282
|
+
Creates and manages an [Aiven project](https://aiven.io/docs/platform/concepts/orgs-units-projects#projects).
|
|
283
|
+
|
|
284
|
+
**This resource is in the beta stage and may change without notice.** Set
|
|
285
|
+
the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
|
|
286
|
+
|
|
287
|
+
## Example Usage
|
|
288
|
+
|
|
289
|
+
```python
|
|
290
|
+
import pulumi
|
|
291
|
+
import pulumi_aiven as aiven
|
|
292
|
+
|
|
293
|
+
foo = aiven.OrganizationProject("foo",
|
|
294
|
+
project_id="example-project",
|
|
295
|
+
organization_id=foo_aiven_organization["id"],
|
|
296
|
+
billing_group_id=foo_aiven_billing_group["id"],
|
|
297
|
+
tags=[{
|
|
298
|
+
"key": "key_1",
|
|
299
|
+
"value": "value_1",
|
|
300
|
+
}])
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## Import
|
|
304
|
+
|
|
305
|
+
```sh
|
|
306
|
+
$ pulumi import aiven:index/organizationProject:OrganizationProject main ORGANIZATION_ID/PROJECT_ID
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
:param str resource_name: The name of the resource.
|
|
310
|
+
:param OrganizationProjectArgs args: The arguments to use to populate this resource's properties.
|
|
311
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
312
|
+
"""
|
|
313
|
+
...
|
|
314
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
315
|
+
resource_args, opts = _utilities.get_resource_args_opts(OrganizationProjectArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
316
|
+
if resource_args is not None:
|
|
317
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
318
|
+
else:
|
|
319
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
320
|
+
|
|
321
|
+
def _internal_init(__self__,
|
|
322
|
+
resource_name: str,
|
|
323
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
324
|
+
billing_group_id: Optional[pulumi.Input[str]] = None,
|
|
325
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
326
|
+
parent_id: Optional[pulumi.Input[str]] = None,
|
|
327
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
328
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]]] = None,
|
|
329
|
+
technical_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
330
|
+
__props__=None):
|
|
331
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
332
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
333
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
334
|
+
if opts.id is None:
|
|
335
|
+
if __props__ is not None:
|
|
336
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
337
|
+
__props__ = OrganizationProjectArgs.__new__(OrganizationProjectArgs)
|
|
338
|
+
|
|
339
|
+
if billing_group_id is None and not opts.urn:
|
|
340
|
+
raise TypeError("Missing required property 'billing_group_id'")
|
|
341
|
+
__props__.__dict__["billing_group_id"] = billing_group_id
|
|
342
|
+
if organization_id is None and not opts.urn:
|
|
343
|
+
raise TypeError("Missing required property 'organization_id'")
|
|
344
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
345
|
+
__props__.__dict__["parent_id"] = parent_id
|
|
346
|
+
if project_id is None and not opts.urn:
|
|
347
|
+
raise TypeError("Missing required property 'project_id'")
|
|
348
|
+
__props__.__dict__["project_id"] = project_id
|
|
349
|
+
__props__.__dict__["tags"] = tags
|
|
350
|
+
__props__.__dict__["technical_emails"] = technical_emails
|
|
351
|
+
super(OrganizationProject, __self__).__init__(
|
|
352
|
+
'aiven:index/organizationProject:OrganizationProject',
|
|
353
|
+
resource_name,
|
|
354
|
+
__props__,
|
|
355
|
+
opts)
|
|
356
|
+
|
|
357
|
+
@staticmethod
|
|
358
|
+
def get(resource_name: str,
|
|
359
|
+
id: pulumi.Input[str],
|
|
360
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
361
|
+
billing_group_id: Optional[pulumi.Input[str]] = None,
|
|
362
|
+
organization_id: Optional[pulumi.Input[str]] = None,
|
|
363
|
+
parent_id: Optional[pulumi.Input[str]] = None,
|
|
364
|
+
project_id: Optional[pulumi.Input[str]] = None,
|
|
365
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]]] = None,
|
|
366
|
+
technical_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'OrganizationProject':
|
|
367
|
+
"""
|
|
368
|
+
Get an existing OrganizationProject resource's state with the given name, id, and optional extra
|
|
369
|
+
properties used to qualify the lookup.
|
|
370
|
+
|
|
371
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
372
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
373
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
374
|
+
:param pulumi.Input[str] billing_group_id: Billing group ID to assign to the project.
|
|
375
|
+
:param pulumi.Input[str] organization_id: ID of an organization. Changing this property forces recreation of the resource.
|
|
376
|
+
:param pulumi.Input[str] parent_id: Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
377
|
+
:param pulumi.Input[str] project_id: Unique identifier for the project that also serves as the project name.
|
|
378
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OrganizationProjectTagArgs', 'OrganizationProjectTagArgsDict']]]] tags: Tags are key-value pairs that allow you to categorize projects.
|
|
379
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] technical_emails: The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
380
|
+
"""
|
|
381
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
382
|
+
|
|
383
|
+
__props__ = _OrganizationProjectState.__new__(_OrganizationProjectState)
|
|
384
|
+
|
|
385
|
+
__props__.__dict__["billing_group_id"] = billing_group_id
|
|
386
|
+
__props__.__dict__["organization_id"] = organization_id
|
|
387
|
+
__props__.__dict__["parent_id"] = parent_id
|
|
388
|
+
__props__.__dict__["project_id"] = project_id
|
|
389
|
+
__props__.__dict__["tags"] = tags
|
|
390
|
+
__props__.__dict__["technical_emails"] = technical_emails
|
|
391
|
+
return OrganizationProject(resource_name, opts=opts, __props__=__props__)
|
|
392
|
+
|
|
393
|
+
@property
|
|
394
|
+
@pulumi.getter(name="billingGroupId")
|
|
395
|
+
def billing_group_id(self) -> pulumi.Output[str]:
|
|
396
|
+
"""
|
|
397
|
+
Billing group ID to assign to the project.
|
|
398
|
+
"""
|
|
399
|
+
return pulumi.get(self, "billing_group_id")
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
@pulumi.getter(name="organizationId")
|
|
403
|
+
def organization_id(self) -> pulumi.Output[str]:
|
|
404
|
+
"""
|
|
405
|
+
ID of an organization. Changing this property forces recreation of the resource.
|
|
406
|
+
"""
|
|
407
|
+
return pulumi.get(self, "organization_id")
|
|
408
|
+
|
|
409
|
+
@property
|
|
410
|
+
@pulumi.getter(name="parentId")
|
|
411
|
+
def parent_id(self) -> pulumi.Output[str]:
|
|
412
|
+
"""
|
|
413
|
+
Link a project to an [organization, organizational unit,](https://aiven.io/docs/platform/concepts/orgs-units-projects) or account by using its ID. To set up proper dependencies please refer to this variable as a reference.
|
|
414
|
+
"""
|
|
415
|
+
return pulumi.get(self, "parent_id")
|
|
416
|
+
|
|
417
|
+
@property
|
|
418
|
+
@pulumi.getter(name="projectId")
|
|
419
|
+
def project_id(self) -> pulumi.Output[str]:
|
|
420
|
+
"""
|
|
421
|
+
Unique identifier for the project that also serves as the project name.
|
|
422
|
+
"""
|
|
423
|
+
return pulumi.get(self, "project_id")
|
|
424
|
+
|
|
425
|
+
@property
|
|
426
|
+
@pulumi.getter
|
|
427
|
+
def tags(self) -> pulumi.Output[Optional[Sequence['outputs.OrganizationProjectTag']]]:
|
|
428
|
+
"""
|
|
429
|
+
Tags are key-value pairs that allow you to categorize projects.
|
|
430
|
+
"""
|
|
431
|
+
return pulumi.get(self, "tags")
|
|
432
|
+
|
|
433
|
+
@property
|
|
434
|
+
@pulumi.getter(name="technicalEmails")
|
|
435
|
+
def technical_emails(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
436
|
+
"""
|
|
437
|
+
The email addresses for [project contacts](https://aiven.io/docs/platform/howto/technical-emails), who will receive important alerts and updates about this project and its services. You can also set email contacts at the service level. It's good practice to keep these up-to-date to be aware of any potential issues with your project.
|
|
438
|
+
"""
|
|
439
|
+
return pulumi.get(self, "technical_emails")
|
|
440
|
+
|
pulumi_aiven/outputs.py
CHANGED
|
@@ -235,6 +235,7 @@ __all__ = [
|
|
|
235
235
|
'OpenSearchTechEmail',
|
|
236
236
|
'OrganizationGroupProjectTimeouts',
|
|
237
237
|
'OrganizationPermissionPermission',
|
|
238
|
+
'OrganizationProjectTag',
|
|
238
239
|
'OrganizationTimeouts',
|
|
239
240
|
'OrganizationUserGroupMemberTimeouts',
|
|
240
241
|
'PgComponent',
|
|
@@ -562,6 +563,7 @@ __all__ = [
|
|
|
562
563
|
'GetOpenSearchServiceIntegrationResult',
|
|
563
564
|
'GetOpenSearchTagResult',
|
|
564
565
|
'GetOpenSearchTechEmailResult',
|
|
566
|
+
'GetOrganizationProjectTagResult',
|
|
565
567
|
'GetOrganizationUserListUserResult',
|
|
566
568
|
'GetOrganizationUserListUserUserInfoResult',
|
|
567
569
|
'GetPgComponentResult',
|
|
@@ -20824,6 +20826,35 @@ class OrganizationPermissionPermission(dict):
|
|
|
20824
20826
|
return pulumi.get(self, "update_time")
|
|
20825
20827
|
|
|
20826
20828
|
|
|
20829
|
+
@pulumi.output_type
|
|
20830
|
+
class OrganizationProjectTag(dict):
|
|
20831
|
+
def __init__(__self__, *,
|
|
20832
|
+
key: str,
|
|
20833
|
+
value: str):
|
|
20834
|
+
"""
|
|
20835
|
+
:param str key: Project tag key.
|
|
20836
|
+
:param str value: Project tag value.
|
|
20837
|
+
"""
|
|
20838
|
+
pulumi.set(__self__, "key", key)
|
|
20839
|
+
pulumi.set(__self__, "value", value)
|
|
20840
|
+
|
|
20841
|
+
@property
|
|
20842
|
+
@pulumi.getter
|
|
20843
|
+
def key(self) -> str:
|
|
20844
|
+
"""
|
|
20845
|
+
Project tag key.
|
|
20846
|
+
"""
|
|
20847
|
+
return pulumi.get(self, "key")
|
|
20848
|
+
|
|
20849
|
+
@property
|
|
20850
|
+
@pulumi.getter
|
|
20851
|
+
def value(self) -> str:
|
|
20852
|
+
"""
|
|
20853
|
+
Project tag value.
|
|
20854
|
+
"""
|
|
20855
|
+
return pulumi.get(self, "value")
|
|
20856
|
+
|
|
20857
|
+
|
|
20827
20858
|
@pulumi.output_type
|
|
20828
20859
|
class OrganizationTimeouts(dict):
|
|
20829
20860
|
def __init__(__self__, *,
|
|
@@ -46063,6 +46094,35 @@ class GetOpenSearchTechEmailResult(dict):
|
|
|
46063
46094
|
return pulumi.get(self, "email")
|
|
46064
46095
|
|
|
46065
46096
|
|
|
46097
|
+
@pulumi.output_type
|
|
46098
|
+
class GetOrganizationProjectTagResult(dict):
|
|
46099
|
+
def __init__(__self__, *,
|
|
46100
|
+
key: str,
|
|
46101
|
+
value: str):
|
|
46102
|
+
"""
|
|
46103
|
+
:param str key: Project tag key.
|
|
46104
|
+
:param str value: Project tag value.
|
|
46105
|
+
"""
|
|
46106
|
+
pulumi.set(__self__, "key", key)
|
|
46107
|
+
pulumi.set(__self__, "value", value)
|
|
46108
|
+
|
|
46109
|
+
@property
|
|
46110
|
+
@pulumi.getter
|
|
46111
|
+
def key(self) -> str:
|
|
46112
|
+
"""
|
|
46113
|
+
Project tag key.
|
|
46114
|
+
"""
|
|
46115
|
+
return pulumi.get(self, "key")
|
|
46116
|
+
|
|
46117
|
+
@property
|
|
46118
|
+
@pulumi.getter
|
|
46119
|
+
def value(self) -> str:
|
|
46120
|
+
"""
|
|
46121
|
+
Project tag value.
|
|
46122
|
+
"""
|
|
46123
|
+
return pulumi.get(self, "value")
|
|
46124
|
+
|
|
46125
|
+
|
|
46066
46126
|
@pulumi.output_type
|
|
46067
46127
|
class GetOrganizationUserListUserResult(dict):
|
|
46068
46128
|
def __init__(__self__, *,
|
pulumi_aiven/project_user.py
CHANGED
|
@@ -153,14 +153,11 @@ class ProjectUser(pulumi.CustomResource):
|
|
|
153
153
|
"""
|
|
154
154
|
Creates and manages an Aiven project member.
|
|
155
155
|
|
|
156
|
-
**This resource is deprecated
|
|
157
|
-
|
|
156
|
+
> **This resource is deprecated**
|
|
157
|
+
Use `OrganizationPermission` instead and
|
|
158
|
+
migrate existing `ProjectUser` resources
|
|
158
159
|
to the new resource.
|
|
159
160
|
|
|
160
|
-
> **This resource is deprecated**.
|
|
161
|
-
|
|
162
|
-
Use `OrganizationPermission` instead.
|
|
163
|
-
|
|
164
161
|
## Example Usage
|
|
165
162
|
|
|
166
163
|
```python
|
|
@@ -194,14 +191,11 @@ class ProjectUser(pulumi.CustomResource):
|
|
|
194
191
|
"""
|
|
195
192
|
Creates and manages an Aiven project member.
|
|
196
193
|
|
|
197
|
-
**This resource is deprecated
|
|
198
|
-
|
|
194
|
+
> **This resource is deprecated**
|
|
195
|
+
Use `OrganizationPermission` instead and
|
|
196
|
+
migrate existing `ProjectUser` resources
|
|
199
197
|
to the new resource.
|
|
200
198
|
|
|
201
|
-
> **This resource is deprecated**.
|
|
202
|
-
|
|
203
|
-
Use `OrganizationPermission` instead.
|
|
204
|
-
|
|
205
199
|
## Example Usage
|
|
206
200
|
|
|
207
201
|
```python
|
pulumi_aiven/pulumi-plugin.json
CHANGED
{pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/RECORD
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
pulumi_aiven/__init__.py,sha256=
|
|
2
|
-
pulumi_aiven/_inputs.py,sha256=
|
|
1
|
+
pulumi_aiven/__init__.py,sha256=BfNToi91APxp1maHbzPlcrcpDuShj9ZUWxd9-C0Fo4w,20969
|
|
2
|
+
pulumi_aiven/_inputs.py,sha256=_twbRhZ_goQoV9GQDxMvGuutmP0F_PDCw-8wW4uDMpk,1855631
|
|
3
3
|
pulumi_aiven/_utilities.py,sha256=yyuODPikZ9pto3JWJRfMJo98dWmQ5_y45-TVcZG_K8Y,10807
|
|
4
|
-
pulumi_aiven/account.py,sha256=
|
|
5
|
-
pulumi_aiven/account_authentication.py,sha256=
|
|
4
|
+
pulumi_aiven/account.py,sha256=pPdtrvwgHKvtkRkP3GMT447gPJOVsKFzBhZTAkLihhQ,17125
|
|
5
|
+
pulumi_aiven/account_authentication.py,sha256=6YMnR97tSsbDGTeC-4Z0WRG3PyRxeZZyi3o6X1BX3jg,37749
|
|
6
6
|
pulumi_aiven/account_team.py,sha256=_HPLXw0kVDC6tKXorSGLIctFDmp2tykVPqvc1XijNm4,12945
|
|
7
7
|
pulumi_aiven/account_team_member.py,sha256=-QIuU79vVFpPVp3AztyablFZZmti_AQBb_7AfPSBLdg,19083
|
|
8
8
|
pulumi_aiven/account_team_project.py,sha256=rRuRcpVKkRPONv5vlDN3EgttJ5aP5ve5zophKEtVppk,20453
|
|
@@ -34,8 +34,8 @@ pulumi_aiven/flink_jar_application_version.py,sha256=iZUJyZmkloDzLzRzqIZkAfBogPY
|
|
|
34
34
|
pulumi_aiven/gcp_privatelink.py,sha256=BwvWda8bc7RCNnxmzJ0WFGSdUo2tIn6JVYESdCNiSgw,14178
|
|
35
35
|
pulumi_aiven/gcp_privatelink_connection_approval.py,sha256=V6AKvAlaSeveYgPWMRoqAuW2Hxx56Xh51QOWl-bg4n8,17064
|
|
36
36
|
pulumi_aiven/gcp_vpc_peering_connection.py,sha256=3WAsDLGtnKvpYCn2zbN8yCczZNTQFHRm361drkwpCAQ,15112
|
|
37
|
-
pulumi_aiven/get_account.py,sha256=
|
|
38
|
-
pulumi_aiven/get_account_authentication.py,sha256=
|
|
37
|
+
pulumi_aiven/get_account.py,sha256=SvbmU5P6_hYDig2T0HA4fYOSFpeRI63RvNtiHHnyV1k,7765
|
|
38
|
+
pulumi_aiven/get_account_authentication.py,sha256=bar9qNpRkqhSS5wPdjXzVP3MngRTERrih3HXVdZwvMo,14691
|
|
39
39
|
pulumi_aiven/get_account_team.py,sha256=AnjIddccn60_Y89nQMxjVN4GzGxh3IrSvGXoisiHOho,7524
|
|
40
40
|
pulumi_aiven/get_account_team_member.py,sha256=8ZOFhu96wQlQqgh2kA1FWx4EexiCyAy3RgMfAeuYk6g,9946
|
|
41
41
|
pulumi_aiven/get_account_team_project.py,sha256=TmhEAspaFoVpy6UutjZ2NoapEgexUaQzB_xdB1ryZKY,8455
|
|
@@ -89,6 +89,7 @@ pulumi_aiven/get_opensearch_security_plugin_config.py,sha256=NQoupeUg-KsfMs8vdzJ
|
|
|
89
89
|
pulumi_aiven/get_opensearch_user.py,sha256=Hs_oNxsL7ucFSIncl6rvU88d47c0xViZocpQ7GTQ0s4,7974
|
|
90
90
|
pulumi_aiven/get_organization.py,sha256=TTO1zDKARL0i73H3l5DXoa4MxtegDKDYNY6sJ9Es4wU,5438
|
|
91
91
|
pulumi_aiven/get_organization_application_user.py,sha256=bObrEY9lPB_ocoFvUS2c30CdPHhy0ymByqlPWHFBBSA,6937
|
|
92
|
+
pulumi_aiven/get_organization_project.py,sha256=YRXCvtKktOdWGCM6bUHI_LrHuBPYvgY3giMVe1VeXxk,8418
|
|
92
93
|
pulumi_aiven/get_organization_user.py,sha256=YuDc8BUhFEpDnVX54MfSauREXdpAPjV0MxOZKdGe9Ic,5880
|
|
93
94
|
pulumi_aiven/get_organization_user_group.py,sha256=irnL7RTUKwo8feqGLxiEBoDr9xRUxCTn3ULfysJH21U,7432
|
|
94
95
|
pulumi_aiven/get_organization_user_list.py,sha256=_R_-_YErRlLhzzbTlziPO6-qrYUjtrDkemxeHp6xdhY,4559
|
|
@@ -97,7 +98,7 @@ pulumi_aiven/get_pg.py,sha256=B9yOq-ETPbZijDF8MD6z1lR1F4z8vV76DhvI0Yq_Ppw,24891
|
|
|
97
98
|
pulumi_aiven/get_pg_database.py,sha256=nbthL5lzecWQBNX5zgYaVe4vcsAID_sazsyWvNHSL4c,8761
|
|
98
99
|
pulumi_aiven/get_pg_user.py,sha256=m1_Ni-H0sA1ko0tjF9Xc2GIZKg_Oopkrr7Mq-xzogK4,9694
|
|
99
100
|
pulumi_aiven/get_project.py,sha256=fOV7n7uiTuuIKKFLPnNvCQjtD7ZpG0_RrDAtV0OqKz8,13799
|
|
100
|
-
pulumi_aiven/get_project_user.py,sha256=
|
|
101
|
+
pulumi_aiven/get_project_user.py,sha256=VMVR-hdFB8ruTDODbeftoU0IahSFFHVofF3igX9lF4g,7396
|
|
101
102
|
pulumi_aiven/get_project_vpc.py,sha256=JYEsp1qhlCsN0EFgeFpkSdrpM8jrzg2aFxMfxR2otKA,7213
|
|
102
103
|
pulumi_aiven/get_redis.py,sha256=a2OkD_MGj8g5tqGLh4SiBuJmDF5DVfvnHx46flZ1nfU,26630
|
|
103
104
|
pulumi_aiven/get_redis_user.py,sha256=rhyr5EjpY83HK0dWVSnuQ_bZJMIscs8SQiOx3iJjTVo,12551
|
|
@@ -141,19 +142,20 @@ pulumi_aiven/organization_application_user.py,sha256=DvyL7Ujh7oGysLAT6WVSFk02iYV
|
|
|
141
142
|
pulumi_aiven/organization_application_user_token.py,sha256=-RgkHO9OHKTzSEaO22NXoaNCthi850msfDNniM2Q80w,33026
|
|
142
143
|
pulumi_aiven/organization_group_project.py,sha256=8_HhJEEGWoSCajubHdlq1cHlzpcvUT2yBwc6wRMgYZU,19653
|
|
143
144
|
pulumi_aiven/organization_permission.py,sha256=AUnkGLzmN8FP1RBahWCLWwxlXN_cAloP-ENG-KM7_GU,18103
|
|
145
|
+
pulumi_aiven/organization_project.py,sha256=BbwBleYV544jTuEzwxGXGzkiAojtpWHnj6ij5J6jlow,22812
|
|
144
146
|
pulumi_aiven/organization_user.py,sha256=4FHd1BCXslZnBdd9r_TpVaaLWdzTngJG5wFB695GnIc,15729
|
|
145
147
|
pulumi_aiven/organization_user_group.py,sha256=133e0-VfMmTnWDZPPnS4xzE-UU6R4PY4am7zMGMUrGo,14832
|
|
146
148
|
pulumi_aiven/organization_user_group_member.py,sha256=zFrHP5w71oTTFUWi7BlCh9HzsXMzJTJ4JZdbo2wAHOg,15120
|
|
147
149
|
pulumi_aiven/organizational_unit.py,sha256=OnowaL-y9MDhQAQeTxuv9gmAC8iau2ZVnKCBdbNJfo8,11639
|
|
148
|
-
pulumi_aiven/outputs.py,sha256=
|
|
150
|
+
pulumi_aiven/outputs.py,sha256=eexQjwBNRvoWhRyLrh1DzFGDm870kGLVYvvbb5-YLMk,2379520
|
|
149
151
|
pulumi_aiven/pg.py,sha256=BxqlB_ztH5jyvRw7QdQWPaxZ6QMnzPsYqBroLXFrAG0,80239
|
|
150
152
|
pulumi_aiven/pg_database.py,sha256=bnts8s-gR6mPTf5fHY3EVPRqiHhze8roG6V16h2-Llc,20153
|
|
151
153
|
pulumi_aiven/pg_user.py,sha256=__gTbX36EdjtCthLm09hZn2PRerlPt7jpRCQuzqJ4k0,22036
|
|
152
154
|
pulumi_aiven/project.py,sha256=xsogAQa9_PwhfTou7-e8ACsaaTqGmCh_S5rkCVKXNag,45569
|
|
153
|
-
pulumi_aiven/project_user.py,sha256=
|
|
155
|
+
pulumi_aiven/project_user.py,sha256=fUAQeCXclvmNZ0hEFKKaqGRXDpOmrlNVi-GNtILH1j0,18659
|
|
154
156
|
pulumi_aiven/project_vpc.py,sha256=rcWiFl2dHdwrXFTZ2WYLpxiUZX-q9tPPZVUvl2bjWAQ,14082
|
|
155
157
|
pulumi_aiven/provider.py,sha256=N7Y-HFsoDOWeKC6iV1NEkU07Eg9ZV8d4FKFHKu5jHbY,5055
|
|
156
|
-
pulumi_aiven/pulumi-plugin.json,sha256=
|
|
158
|
+
pulumi_aiven/pulumi-plugin.json,sha256=TcoVuZBXnLQXk5ExAf2SRpNCuL1E4d5tSCL9bgB4jeQ,82
|
|
157
159
|
pulumi_aiven/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
158
160
|
pulumi_aiven/redis.py,sha256=digQI_P2fM37fhnazQ9QSfvsEcuF5uo9KAzVUdNdCvM,83896
|
|
159
161
|
pulumi_aiven/redis_user.py,sha256=dzylOGpSG9dWeAFqBe_k-FLtuyjUtNjJhgn-j6Y_HIA,31118
|
|
@@ -167,7 +169,7 @@ pulumi_aiven/valkey_user.py,sha256=fiaXYiB5NUMWh3Q3goGrGU6eYRU26z7BunaJiaxrPmY,3
|
|
|
167
169
|
pulumi_aiven/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
168
170
|
pulumi_aiven/config/__init__.pyi,sha256=6XkZH3EU98MVgoMLPFHFfEK17BQQzz0S0QFMh1FZrs0,639
|
|
169
171
|
pulumi_aiven/config/vars.py,sha256=jRqbkEfNSP8ga5cnbMhAzHUUb7ahIUROUqR5_KGkobM,832
|
|
170
|
-
pulumi_aiven-6.34.
|
|
171
|
-
pulumi_aiven-6.34.
|
|
172
|
-
pulumi_aiven-6.34.
|
|
173
|
-
pulumi_aiven-6.34.
|
|
172
|
+
pulumi_aiven-6.34.0a1740021642.dist-info/METADATA,sha256=nBrX8GveuO_L51WjH5UQao7H5Ka0I2oYT2KUkSuyr1I,2595
|
|
173
|
+
pulumi_aiven-6.34.0a1740021642.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
174
|
+
pulumi_aiven-6.34.0a1740021642.dist-info/top_level.txt,sha256=4rjz_Hec4Y2PFX4LhJ-JcnMU5H7z-y7r1yiK_xEduWU,13
|
|
175
|
+
pulumi_aiven-6.34.0a1740021642.dist-info/RECORD,,
|
|
File without changes
|
{pulumi_aiven-6.34.0a1739855222.dist-info → pulumi_aiven-6.34.0a1740021642.dist-info}/top_level.txt
RENAMED
|
File without changes
|