pulumi-aiven 6.30.0__py3-none-any.whl → 6.30.0a1733787482__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.

@@ -1,210 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from . import _utilities
16
-
17
- __all__ = [
18
- 'GetAlloydbomniUserResult',
19
- 'AwaitableGetAlloydbomniUserResult',
20
- 'get_alloydbomni_user',
21
- 'get_alloydbomni_user_output',
22
- ]
23
-
24
- @pulumi.output_type
25
- class GetAlloydbomniUserResult:
26
- """
27
- A collection of values returned by getAlloydbomniUser.
28
- """
29
- def __init__(__self__, access_cert=None, access_key=None, id=None, password=None, pg_allow_replication=None, project=None, service_name=None, type=None, username=None):
30
- if access_cert and not isinstance(access_cert, str):
31
- raise TypeError("Expected argument 'access_cert' to be a str")
32
- pulumi.set(__self__, "access_cert", access_cert)
33
- if access_key and not isinstance(access_key, str):
34
- raise TypeError("Expected argument 'access_key' to be a str")
35
- pulumi.set(__self__, "access_key", access_key)
36
- if id and not isinstance(id, str):
37
- raise TypeError("Expected argument 'id' to be a str")
38
- pulumi.set(__self__, "id", id)
39
- if password and not isinstance(password, str):
40
- raise TypeError("Expected argument 'password' to be a str")
41
- pulumi.set(__self__, "password", password)
42
- if pg_allow_replication and not isinstance(pg_allow_replication, bool):
43
- raise TypeError("Expected argument 'pg_allow_replication' to be a bool")
44
- pulumi.set(__self__, "pg_allow_replication", pg_allow_replication)
45
- if project and not isinstance(project, str):
46
- raise TypeError("Expected argument 'project' to be a str")
47
- pulumi.set(__self__, "project", project)
48
- if service_name and not isinstance(service_name, str):
49
- raise TypeError("Expected argument 'service_name' to be a str")
50
- pulumi.set(__self__, "service_name", service_name)
51
- if type and not isinstance(type, str):
52
- raise TypeError("Expected argument 'type' to be a str")
53
- pulumi.set(__self__, "type", type)
54
- if username and not isinstance(username, str):
55
- raise TypeError("Expected argument 'username' to be a str")
56
- pulumi.set(__self__, "username", username)
57
-
58
- @property
59
- @pulumi.getter(name="accessCert")
60
- def access_cert(self) -> str:
61
- """
62
- The access certificate for the servie user.
63
- """
64
- return pulumi.get(self, "access_cert")
65
-
66
- @property
67
- @pulumi.getter(name="accessKey")
68
- def access_key(self) -> str:
69
- """
70
- The access certificate key for the service user.
71
- """
72
- return pulumi.get(self, "access_key")
73
-
74
- @property
75
- @pulumi.getter
76
- def id(self) -> str:
77
- """
78
- The provider-assigned unique ID for this managed resource.
79
- """
80
- return pulumi.get(self, "id")
81
-
82
- @property
83
- @pulumi.getter
84
- def password(self) -> str:
85
- """
86
- The password of the service user.
87
- """
88
- return pulumi.get(self, "password")
89
-
90
- @property
91
- @pulumi.getter(name="pgAllowReplication")
92
- def pg_allow_replication(self) -> bool:
93
- """
94
- Allows replication. For the default avnadmin user this attribute is required and is always `true`.
95
- """
96
- return pulumi.get(self, "pg_allow_replication")
97
-
98
- @property
99
- @pulumi.getter
100
- def project(self) -> str:
101
- """
102
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
103
- """
104
- return pulumi.get(self, "project")
105
-
106
- @property
107
- @pulumi.getter(name="serviceName")
108
- def service_name(self) -> str:
109
- """
110
- The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
111
- """
112
- return pulumi.get(self, "service_name")
113
-
114
- @property
115
- @pulumi.getter
116
- def type(self) -> str:
117
- """
118
- The service user account type, either primary or regular.
119
- """
120
- return pulumi.get(self, "type")
121
-
122
- @property
123
- @pulumi.getter
124
- def username(self) -> str:
125
- """
126
- The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
127
- """
128
- return pulumi.get(self, "username")
129
-
130
-
131
- class AwaitableGetAlloydbomniUserResult(GetAlloydbomniUserResult):
132
- # pylint: disable=using-constant-test
133
- def __await__(self):
134
- if False:
135
- yield self
136
- return GetAlloydbomniUserResult(
137
- access_cert=self.access_cert,
138
- access_key=self.access_key,
139
- id=self.id,
140
- password=self.password,
141
- pg_allow_replication=self.pg_allow_replication,
142
- project=self.project,
143
- service_name=self.service_name,
144
- type=self.type,
145
- username=self.username)
146
-
147
-
148
- def get_alloydbomni_user(project: Optional[str] = None,
149
- service_name: Optional[str] = None,
150
- username: Optional[str] = None,
151
- opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlloydbomniUserResult:
152
- """
153
- Gets information about an Aiven for AlloyDB Omni service user.
154
-
155
- **This resource is in the beta stage and may change without notice.** Set
156
- the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
157
-
158
-
159
- :param str project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
160
- :param str service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
161
- :param str username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
162
- """
163
- __args__ = dict()
164
- __args__['project'] = project
165
- __args__['serviceName'] = service_name
166
- __args__['username'] = username
167
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
168
- __ret__ = pulumi.runtime.invoke('aiven:index/getAlloydbomniUser:getAlloydbomniUser', __args__, opts=opts, typ=GetAlloydbomniUserResult).value
169
-
170
- return AwaitableGetAlloydbomniUserResult(
171
- access_cert=pulumi.get(__ret__, 'access_cert'),
172
- access_key=pulumi.get(__ret__, 'access_key'),
173
- id=pulumi.get(__ret__, 'id'),
174
- password=pulumi.get(__ret__, 'password'),
175
- pg_allow_replication=pulumi.get(__ret__, 'pg_allow_replication'),
176
- project=pulumi.get(__ret__, 'project'),
177
- service_name=pulumi.get(__ret__, 'service_name'),
178
- type=pulumi.get(__ret__, 'type'),
179
- username=pulumi.get(__ret__, 'username'))
180
- def get_alloydbomni_user_output(project: Optional[pulumi.Input[str]] = None,
181
- service_name: Optional[pulumi.Input[str]] = None,
182
- username: Optional[pulumi.Input[str]] = None,
183
- opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlloydbomniUserResult]:
184
- """
185
- Gets information about an Aiven for AlloyDB Omni service user.
186
-
187
- **This resource is in the beta stage and may change without notice.** Set
188
- the `PROVIDER_AIVEN_ENABLE_BETA` environment variable to use the resource.
189
-
190
-
191
- :param str project: The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
192
- :param str service_name: The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
193
- :param str username: The name of the service user for this service. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
194
- """
195
- __args__ = dict()
196
- __args__['project'] = project
197
- __args__['serviceName'] = service_name
198
- __args__['username'] = username
199
- opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
200
- __ret__ = pulumi.runtime.invoke_output('aiven:index/getAlloydbomniUser:getAlloydbomniUser', __args__, opts=opts, typ=GetAlloydbomniUserResult)
201
- return __ret__.apply(lambda __response__: GetAlloydbomniUserResult(
202
- access_cert=pulumi.get(__response__, 'access_cert'),
203
- access_key=pulumi.get(__response__, 'access_key'),
204
- id=pulumi.get(__response__, 'id'),
205
- password=pulumi.get(__response__, 'password'),
206
- pg_allow_replication=pulumi.get(__response__, 'pg_allow_replication'),
207
- project=pulumi.get(__response__, 'project'),
208
- service_name=pulumi.get(__response__, 'service_name'),
209
- type=pulumi.get(__response__, 'type'),
210
- username=pulumi.get(__response__, 'username')))