pulumi-aiven 6.31.0__py3-none-any.whl → 6.31.0a1735016833__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 +0 -9
- pulumi_aiven/_inputs.py +3 -137
- pulumi_aiven/account_team_project.py +7 -7
- pulumi_aiven/get_account_team_project.py +1 -1
- pulumi_aiven/get_project_user.py +1 -1
- pulumi_aiven/organization_group_project.py +7 -7
- pulumi_aiven/outputs.py +2 -187
- pulumi_aiven/project_user.py +7 -7
- pulumi_aiven/pulumi-plugin.json +1 -1
- {pulumi_aiven-6.31.0.dist-info → pulumi_aiven-6.31.0a1735016833.dist-info}/METADATA +2 -2
- {pulumi_aiven-6.31.0.dist-info → pulumi_aiven-6.31.0a1735016833.dist-info}/RECORD +13 -14
- {pulumi_aiven-6.31.0.dist-info → pulumi_aiven-6.31.0a1735016833.dist-info}/WHEEL +1 -1
- pulumi_aiven/kafka_quota.py +0 -604
- {pulumi_aiven-6.31.0.dist-info → pulumi_aiven-6.31.0a1735016833.dist-info}/top_level.txt +0 -0
pulumi_aiven/kafka_quota.py
DELETED
|
@@ -1,604 +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__ = ['KafkaQuotaArgs', 'KafkaQuota']
|
|
18
|
-
|
|
19
|
-
@pulumi.input_type
|
|
20
|
-
class KafkaQuotaArgs:
|
|
21
|
-
def __init__(__self__, *,
|
|
22
|
-
project: pulumi.Input[str],
|
|
23
|
-
service_name: pulumi.Input[str],
|
|
24
|
-
client_id: Optional[pulumi.Input[str]] = None,
|
|
25
|
-
consumer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
26
|
-
producer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
27
|
-
request_percentage: Optional[pulumi.Input[float]] = None,
|
|
28
|
-
user: Optional[pulumi.Input[str]] = None):
|
|
29
|
-
"""
|
|
30
|
-
The set of arguments for constructing a KafkaQuota resource.
|
|
31
|
-
:param pulumi.Input[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.
|
|
32
|
-
:param pulumi.Input[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.
|
|
33
|
-
:param pulumi.Input[str] client_id: Represents a logical group of clients, assigned a unique name by the client application.
|
|
34
|
-
Quotas can be applied based on user, client-id, or both.
|
|
35
|
-
The most relevant quota is chosen for each connection.
|
|
36
|
-
All connections within a quota group share the same quota.
|
|
37
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
38
|
-
:param pulumi.Input[int] consumer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
39
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
40
|
-
Exceeding this limit results in client throttling.
|
|
41
|
-
:param pulumi.Input[int] producer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
42
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
43
|
-
Exceeding this limit results in client throttling.
|
|
44
|
-
:param pulumi.Input[float] request_percentage: Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
45
|
-
Exceeding this limit triggers throttling.
|
|
46
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
47
|
-
:param pulumi.Input[str] user: Represents a logical group of clients, assigned a unique name by the client application.
|
|
48
|
-
Quotas can be applied based on user, client-id, or both.
|
|
49
|
-
The most relevant quota is chosen for each connection.
|
|
50
|
-
All connections within a quota group share the same quota.
|
|
51
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
52
|
-
"""
|
|
53
|
-
pulumi.set(__self__, "project", project)
|
|
54
|
-
pulumi.set(__self__, "service_name", service_name)
|
|
55
|
-
if client_id is not None:
|
|
56
|
-
pulumi.set(__self__, "client_id", client_id)
|
|
57
|
-
if consumer_byte_rate is not None:
|
|
58
|
-
pulumi.set(__self__, "consumer_byte_rate", consumer_byte_rate)
|
|
59
|
-
if producer_byte_rate is not None:
|
|
60
|
-
pulumi.set(__self__, "producer_byte_rate", producer_byte_rate)
|
|
61
|
-
if request_percentage is not None:
|
|
62
|
-
pulumi.set(__self__, "request_percentage", request_percentage)
|
|
63
|
-
if user is not None:
|
|
64
|
-
pulumi.set(__self__, "user", user)
|
|
65
|
-
|
|
66
|
-
@property
|
|
67
|
-
@pulumi.getter
|
|
68
|
-
def project(self) -> pulumi.Input[str]:
|
|
69
|
-
"""
|
|
70
|
-
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.
|
|
71
|
-
"""
|
|
72
|
-
return pulumi.get(self, "project")
|
|
73
|
-
|
|
74
|
-
@project.setter
|
|
75
|
-
def project(self, value: pulumi.Input[str]):
|
|
76
|
-
pulumi.set(self, "project", value)
|
|
77
|
-
|
|
78
|
-
@property
|
|
79
|
-
@pulumi.getter(name="serviceName")
|
|
80
|
-
def service_name(self) -> pulumi.Input[str]:
|
|
81
|
-
"""
|
|
82
|
-
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.
|
|
83
|
-
"""
|
|
84
|
-
return pulumi.get(self, "service_name")
|
|
85
|
-
|
|
86
|
-
@service_name.setter
|
|
87
|
-
def service_name(self, value: pulumi.Input[str]):
|
|
88
|
-
pulumi.set(self, "service_name", value)
|
|
89
|
-
|
|
90
|
-
@property
|
|
91
|
-
@pulumi.getter(name="clientId")
|
|
92
|
-
def client_id(self) -> Optional[pulumi.Input[str]]:
|
|
93
|
-
"""
|
|
94
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
95
|
-
Quotas can be applied based on user, client-id, or both.
|
|
96
|
-
The most relevant quota is chosen for each connection.
|
|
97
|
-
All connections within a quota group share the same quota.
|
|
98
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
99
|
-
"""
|
|
100
|
-
return pulumi.get(self, "client_id")
|
|
101
|
-
|
|
102
|
-
@client_id.setter
|
|
103
|
-
def client_id(self, value: Optional[pulumi.Input[str]]):
|
|
104
|
-
pulumi.set(self, "client_id", value)
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
@pulumi.getter(name="consumerByteRate")
|
|
108
|
-
def consumer_byte_rate(self) -> Optional[pulumi.Input[int]]:
|
|
109
|
-
"""
|
|
110
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
111
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
112
|
-
Exceeding this limit results in client throttling.
|
|
113
|
-
"""
|
|
114
|
-
return pulumi.get(self, "consumer_byte_rate")
|
|
115
|
-
|
|
116
|
-
@consumer_byte_rate.setter
|
|
117
|
-
def consumer_byte_rate(self, value: Optional[pulumi.Input[int]]):
|
|
118
|
-
pulumi.set(self, "consumer_byte_rate", value)
|
|
119
|
-
|
|
120
|
-
@property
|
|
121
|
-
@pulumi.getter(name="producerByteRate")
|
|
122
|
-
def producer_byte_rate(self) -> Optional[pulumi.Input[int]]:
|
|
123
|
-
"""
|
|
124
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
125
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
126
|
-
Exceeding this limit results in client throttling.
|
|
127
|
-
"""
|
|
128
|
-
return pulumi.get(self, "producer_byte_rate")
|
|
129
|
-
|
|
130
|
-
@producer_byte_rate.setter
|
|
131
|
-
def producer_byte_rate(self, value: Optional[pulumi.Input[int]]):
|
|
132
|
-
pulumi.set(self, "producer_byte_rate", value)
|
|
133
|
-
|
|
134
|
-
@property
|
|
135
|
-
@pulumi.getter(name="requestPercentage")
|
|
136
|
-
def request_percentage(self) -> Optional[pulumi.Input[float]]:
|
|
137
|
-
"""
|
|
138
|
-
Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
139
|
-
Exceeding this limit triggers throttling.
|
|
140
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
141
|
-
"""
|
|
142
|
-
return pulumi.get(self, "request_percentage")
|
|
143
|
-
|
|
144
|
-
@request_percentage.setter
|
|
145
|
-
def request_percentage(self, value: Optional[pulumi.Input[float]]):
|
|
146
|
-
pulumi.set(self, "request_percentage", value)
|
|
147
|
-
|
|
148
|
-
@property
|
|
149
|
-
@pulumi.getter
|
|
150
|
-
def user(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
-
"""
|
|
152
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
153
|
-
Quotas can be applied based on user, client-id, or both.
|
|
154
|
-
The most relevant quota is chosen for each connection.
|
|
155
|
-
All connections within a quota group share the same quota.
|
|
156
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
157
|
-
"""
|
|
158
|
-
return pulumi.get(self, "user")
|
|
159
|
-
|
|
160
|
-
@user.setter
|
|
161
|
-
def user(self, value: Optional[pulumi.Input[str]]):
|
|
162
|
-
pulumi.set(self, "user", value)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
@pulumi.input_type
|
|
166
|
-
class _KafkaQuotaState:
|
|
167
|
-
def __init__(__self__, *,
|
|
168
|
-
client_id: Optional[pulumi.Input[str]] = None,
|
|
169
|
-
consumer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
170
|
-
producer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
171
|
-
project: Optional[pulumi.Input[str]] = None,
|
|
172
|
-
request_percentage: Optional[pulumi.Input[float]] = None,
|
|
173
|
-
service_name: Optional[pulumi.Input[str]] = None,
|
|
174
|
-
user: Optional[pulumi.Input[str]] = None):
|
|
175
|
-
"""
|
|
176
|
-
Input properties used for looking up and filtering KafkaQuota resources.
|
|
177
|
-
:param pulumi.Input[str] client_id: Represents a logical group of clients, assigned a unique name by the client application.
|
|
178
|
-
Quotas can be applied based on user, client-id, or both.
|
|
179
|
-
The most relevant quota is chosen for each connection.
|
|
180
|
-
All connections within a quota group share the same quota.
|
|
181
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
182
|
-
:param pulumi.Input[int] consumer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
183
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
184
|
-
Exceeding this limit results in client throttling.
|
|
185
|
-
:param pulumi.Input[int] producer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
186
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
187
|
-
Exceeding this limit results in client throttling.
|
|
188
|
-
:param pulumi.Input[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.
|
|
189
|
-
:param pulumi.Input[float] request_percentage: Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
190
|
-
Exceeding this limit triggers throttling.
|
|
191
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
192
|
-
:param pulumi.Input[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 pulumi.Input[str] user: Represents a logical group of clients, assigned a unique name by the client application.
|
|
194
|
-
Quotas can be applied based on user, client-id, or both.
|
|
195
|
-
The most relevant quota is chosen for each connection.
|
|
196
|
-
All connections within a quota group share the same quota.
|
|
197
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
198
|
-
"""
|
|
199
|
-
if client_id is not None:
|
|
200
|
-
pulumi.set(__self__, "client_id", client_id)
|
|
201
|
-
if consumer_byte_rate is not None:
|
|
202
|
-
pulumi.set(__self__, "consumer_byte_rate", consumer_byte_rate)
|
|
203
|
-
if producer_byte_rate is not None:
|
|
204
|
-
pulumi.set(__self__, "producer_byte_rate", producer_byte_rate)
|
|
205
|
-
if project is not None:
|
|
206
|
-
pulumi.set(__self__, "project", project)
|
|
207
|
-
if request_percentage is not None:
|
|
208
|
-
pulumi.set(__self__, "request_percentage", request_percentage)
|
|
209
|
-
if service_name is not None:
|
|
210
|
-
pulumi.set(__self__, "service_name", service_name)
|
|
211
|
-
if user is not None:
|
|
212
|
-
pulumi.set(__self__, "user", user)
|
|
213
|
-
|
|
214
|
-
@property
|
|
215
|
-
@pulumi.getter(name="clientId")
|
|
216
|
-
def client_id(self) -> Optional[pulumi.Input[str]]:
|
|
217
|
-
"""
|
|
218
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
219
|
-
Quotas can be applied based on user, client-id, or both.
|
|
220
|
-
The most relevant quota is chosen for each connection.
|
|
221
|
-
All connections within a quota group share the same quota.
|
|
222
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
223
|
-
"""
|
|
224
|
-
return pulumi.get(self, "client_id")
|
|
225
|
-
|
|
226
|
-
@client_id.setter
|
|
227
|
-
def client_id(self, value: Optional[pulumi.Input[str]]):
|
|
228
|
-
pulumi.set(self, "client_id", value)
|
|
229
|
-
|
|
230
|
-
@property
|
|
231
|
-
@pulumi.getter(name="consumerByteRate")
|
|
232
|
-
def consumer_byte_rate(self) -> Optional[pulumi.Input[int]]:
|
|
233
|
-
"""
|
|
234
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
235
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
236
|
-
Exceeding this limit results in client throttling.
|
|
237
|
-
"""
|
|
238
|
-
return pulumi.get(self, "consumer_byte_rate")
|
|
239
|
-
|
|
240
|
-
@consumer_byte_rate.setter
|
|
241
|
-
def consumer_byte_rate(self, value: Optional[pulumi.Input[int]]):
|
|
242
|
-
pulumi.set(self, "consumer_byte_rate", value)
|
|
243
|
-
|
|
244
|
-
@property
|
|
245
|
-
@pulumi.getter(name="producerByteRate")
|
|
246
|
-
def producer_byte_rate(self) -> Optional[pulumi.Input[int]]:
|
|
247
|
-
"""
|
|
248
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
249
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
250
|
-
Exceeding this limit results in client throttling.
|
|
251
|
-
"""
|
|
252
|
-
return pulumi.get(self, "producer_byte_rate")
|
|
253
|
-
|
|
254
|
-
@producer_byte_rate.setter
|
|
255
|
-
def producer_byte_rate(self, value: Optional[pulumi.Input[int]]):
|
|
256
|
-
pulumi.set(self, "producer_byte_rate", value)
|
|
257
|
-
|
|
258
|
-
@property
|
|
259
|
-
@pulumi.getter
|
|
260
|
-
def project(self) -> Optional[pulumi.Input[str]]:
|
|
261
|
-
"""
|
|
262
|
-
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.
|
|
263
|
-
"""
|
|
264
|
-
return pulumi.get(self, "project")
|
|
265
|
-
|
|
266
|
-
@project.setter
|
|
267
|
-
def project(self, value: Optional[pulumi.Input[str]]):
|
|
268
|
-
pulumi.set(self, "project", value)
|
|
269
|
-
|
|
270
|
-
@property
|
|
271
|
-
@pulumi.getter(name="requestPercentage")
|
|
272
|
-
def request_percentage(self) -> Optional[pulumi.Input[float]]:
|
|
273
|
-
"""
|
|
274
|
-
Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
275
|
-
Exceeding this limit triggers throttling.
|
|
276
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
277
|
-
"""
|
|
278
|
-
return pulumi.get(self, "request_percentage")
|
|
279
|
-
|
|
280
|
-
@request_percentage.setter
|
|
281
|
-
def request_percentage(self, value: Optional[pulumi.Input[float]]):
|
|
282
|
-
pulumi.set(self, "request_percentage", value)
|
|
283
|
-
|
|
284
|
-
@property
|
|
285
|
-
@pulumi.getter(name="serviceName")
|
|
286
|
-
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
287
|
-
"""
|
|
288
|
-
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.
|
|
289
|
-
"""
|
|
290
|
-
return pulumi.get(self, "service_name")
|
|
291
|
-
|
|
292
|
-
@service_name.setter
|
|
293
|
-
def service_name(self, value: Optional[pulumi.Input[str]]):
|
|
294
|
-
pulumi.set(self, "service_name", value)
|
|
295
|
-
|
|
296
|
-
@property
|
|
297
|
-
@pulumi.getter
|
|
298
|
-
def user(self) -> Optional[pulumi.Input[str]]:
|
|
299
|
-
"""
|
|
300
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
301
|
-
Quotas can be applied based on user, client-id, or both.
|
|
302
|
-
The most relevant quota is chosen for each connection.
|
|
303
|
-
All connections within a quota group share the same quota.
|
|
304
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
305
|
-
"""
|
|
306
|
-
return pulumi.get(self, "user")
|
|
307
|
-
|
|
308
|
-
@user.setter
|
|
309
|
-
def user(self, value: Optional[pulumi.Input[str]]):
|
|
310
|
-
pulumi.set(self, "user", value)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
class KafkaQuota(pulumi.CustomResource):
|
|
314
|
-
@overload
|
|
315
|
-
def __init__(__self__,
|
|
316
|
-
resource_name: str,
|
|
317
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
318
|
-
client_id: Optional[pulumi.Input[str]] = None,
|
|
319
|
-
consumer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
320
|
-
producer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
321
|
-
project: Optional[pulumi.Input[str]] = None,
|
|
322
|
-
request_percentage: Optional[pulumi.Input[float]] = None,
|
|
323
|
-
service_name: Optional[pulumi.Input[str]] = None,
|
|
324
|
-
user: Optional[pulumi.Input[str]] = None,
|
|
325
|
-
__props__=None):
|
|
326
|
-
"""
|
|
327
|
-
Creates and manages quotas for an Aiven for Apache Kafka® service user.
|
|
328
|
-
|
|
329
|
-
## Example Usage
|
|
330
|
-
|
|
331
|
-
```python
|
|
332
|
-
import pulumi
|
|
333
|
-
import pulumi_aiven as aiven
|
|
334
|
-
|
|
335
|
-
example_quota = aiven.KafkaQuota("example_quota",
|
|
336
|
-
project=foo["project"],
|
|
337
|
-
service_name=example_kafka["serviceName"],
|
|
338
|
-
user="example-kafka-user",
|
|
339
|
-
client_id="example_client",
|
|
340
|
-
consumer_byte_rate=1000,
|
|
341
|
-
producer_byte_rate=1000,
|
|
342
|
-
request_percentage=50)
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
## Import
|
|
346
|
-
|
|
347
|
-
When both USER and CLIENT_ID are specified
|
|
348
|
-
|
|
349
|
-
```sh
|
|
350
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME/CLIENT_ID/USER
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
When only USER is specified
|
|
354
|
-
|
|
355
|
-
```sh
|
|
356
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME//USER
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
When only CLIENT_ID is specified
|
|
360
|
-
|
|
361
|
-
```sh
|
|
362
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME/CLIENT_ID/
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
:param str resource_name: The name of the resource.
|
|
366
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
367
|
-
:param pulumi.Input[str] client_id: Represents a logical group of clients, assigned a unique name by the client application.
|
|
368
|
-
Quotas can be applied based on user, client-id, or both.
|
|
369
|
-
The most relevant quota is chosen for each connection.
|
|
370
|
-
All connections within a quota group share the same quota.
|
|
371
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
372
|
-
:param pulumi.Input[int] consumer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
373
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
374
|
-
Exceeding this limit results in client throttling.
|
|
375
|
-
:param pulumi.Input[int] producer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
376
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
377
|
-
Exceeding this limit results in client throttling.
|
|
378
|
-
:param pulumi.Input[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.
|
|
379
|
-
:param pulumi.Input[float] request_percentage: Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
380
|
-
Exceeding this limit triggers throttling.
|
|
381
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
382
|
-
:param pulumi.Input[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.
|
|
383
|
-
:param pulumi.Input[str] user: Represents a logical group of clients, assigned a unique name by the client application.
|
|
384
|
-
Quotas can be applied based on user, client-id, or both.
|
|
385
|
-
The most relevant quota is chosen for each connection.
|
|
386
|
-
All connections within a quota group share the same quota.
|
|
387
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
388
|
-
"""
|
|
389
|
-
...
|
|
390
|
-
@overload
|
|
391
|
-
def __init__(__self__,
|
|
392
|
-
resource_name: str,
|
|
393
|
-
args: KafkaQuotaArgs,
|
|
394
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
395
|
-
"""
|
|
396
|
-
Creates and manages quotas for an Aiven for Apache Kafka® service user.
|
|
397
|
-
|
|
398
|
-
## Example Usage
|
|
399
|
-
|
|
400
|
-
```python
|
|
401
|
-
import pulumi
|
|
402
|
-
import pulumi_aiven as aiven
|
|
403
|
-
|
|
404
|
-
example_quota = aiven.KafkaQuota("example_quota",
|
|
405
|
-
project=foo["project"],
|
|
406
|
-
service_name=example_kafka["serviceName"],
|
|
407
|
-
user="example-kafka-user",
|
|
408
|
-
client_id="example_client",
|
|
409
|
-
consumer_byte_rate=1000,
|
|
410
|
-
producer_byte_rate=1000,
|
|
411
|
-
request_percentage=50)
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
## Import
|
|
415
|
-
|
|
416
|
-
When both USER and CLIENT_ID are specified
|
|
417
|
-
|
|
418
|
-
```sh
|
|
419
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME/CLIENT_ID/USER
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
When only USER is specified
|
|
423
|
-
|
|
424
|
-
```sh
|
|
425
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME//USER
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
When only CLIENT_ID is specified
|
|
429
|
-
|
|
430
|
-
```sh
|
|
431
|
-
$ pulumi import aiven:index/kafkaQuota:KafkaQuota example_quota PROJECT/SERVICE_NAME/CLIENT_ID/
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
:param str resource_name: The name of the resource.
|
|
435
|
-
:param KafkaQuotaArgs args: The arguments to use to populate this resource's properties.
|
|
436
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
437
|
-
"""
|
|
438
|
-
...
|
|
439
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
440
|
-
resource_args, opts = _utilities.get_resource_args_opts(KafkaQuotaArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
441
|
-
if resource_args is not None:
|
|
442
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
443
|
-
else:
|
|
444
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
445
|
-
|
|
446
|
-
def _internal_init(__self__,
|
|
447
|
-
resource_name: str,
|
|
448
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
449
|
-
client_id: Optional[pulumi.Input[str]] = None,
|
|
450
|
-
consumer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
451
|
-
producer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
452
|
-
project: Optional[pulumi.Input[str]] = None,
|
|
453
|
-
request_percentage: Optional[pulumi.Input[float]] = None,
|
|
454
|
-
service_name: Optional[pulumi.Input[str]] = None,
|
|
455
|
-
user: Optional[pulumi.Input[str]] = None,
|
|
456
|
-
__props__=None):
|
|
457
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
458
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
459
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
460
|
-
if opts.id is None:
|
|
461
|
-
if __props__ is not None:
|
|
462
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
463
|
-
__props__ = KafkaQuotaArgs.__new__(KafkaQuotaArgs)
|
|
464
|
-
|
|
465
|
-
__props__.__dict__["client_id"] = client_id
|
|
466
|
-
__props__.__dict__["consumer_byte_rate"] = consumer_byte_rate
|
|
467
|
-
__props__.__dict__["producer_byte_rate"] = producer_byte_rate
|
|
468
|
-
if project is None and not opts.urn:
|
|
469
|
-
raise TypeError("Missing required property 'project'")
|
|
470
|
-
__props__.__dict__["project"] = project
|
|
471
|
-
__props__.__dict__["request_percentage"] = request_percentage
|
|
472
|
-
if service_name is None and not opts.urn:
|
|
473
|
-
raise TypeError("Missing required property 'service_name'")
|
|
474
|
-
__props__.__dict__["service_name"] = service_name
|
|
475
|
-
__props__.__dict__["user"] = user
|
|
476
|
-
super(KafkaQuota, __self__).__init__(
|
|
477
|
-
'aiven:index/kafkaQuota:KafkaQuota',
|
|
478
|
-
resource_name,
|
|
479
|
-
__props__,
|
|
480
|
-
opts)
|
|
481
|
-
|
|
482
|
-
@staticmethod
|
|
483
|
-
def get(resource_name: str,
|
|
484
|
-
id: pulumi.Input[str],
|
|
485
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
486
|
-
client_id: Optional[pulumi.Input[str]] = None,
|
|
487
|
-
consumer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
488
|
-
producer_byte_rate: Optional[pulumi.Input[int]] = None,
|
|
489
|
-
project: Optional[pulumi.Input[str]] = None,
|
|
490
|
-
request_percentage: Optional[pulumi.Input[float]] = None,
|
|
491
|
-
service_name: Optional[pulumi.Input[str]] = None,
|
|
492
|
-
user: Optional[pulumi.Input[str]] = None) -> 'KafkaQuota':
|
|
493
|
-
"""
|
|
494
|
-
Get an existing KafkaQuota resource's state with the given name, id, and optional extra
|
|
495
|
-
properties used to qualify the lookup.
|
|
496
|
-
|
|
497
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
498
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
499
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
500
|
-
:param pulumi.Input[str] client_id: Represents a logical group of clients, assigned a unique name by the client application.
|
|
501
|
-
Quotas can be applied based on user, client-id, or both.
|
|
502
|
-
The most relevant quota is chosen for each connection.
|
|
503
|
-
All connections within a quota group share the same quota.
|
|
504
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
505
|
-
:param pulumi.Input[int] consumer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
506
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
507
|
-
Exceeding this limit results in client throttling.
|
|
508
|
-
:param pulumi.Input[int] producer_byte_rate: Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
509
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
510
|
-
Exceeding this limit results in client throttling.
|
|
511
|
-
:param pulumi.Input[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.
|
|
512
|
-
:param pulumi.Input[float] request_percentage: Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
513
|
-
Exceeding this limit triggers throttling.
|
|
514
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
515
|
-
:param pulumi.Input[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.
|
|
516
|
-
:param pulumi.Input[str] user: Represents a logical group of clients, assigned a unique name by the client application.
|
|
517
|
-
Quotas can be applied based on user, client-id, or both.
|
|
518
|
-
The most relevant quota is chosen for each connection.
|
|
519
|
-
All connections within a quota group share the same quota.
|
|
520
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
521
|
-
"""
|
|
522
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
523
|
-
|
|
524
|
-
__props__ = _KafkaQuotaState.__new__(_KafkaQuotaState)
|
|
525
|
-
|
|
526
|
-
__props__.__dict__["client_id"] = client_id
|
|
527
|
-
__props__.__dict__["consumer_byte_rate"] = consumer_byte_rate
|
|
528
|
-
__props__.__dict__["producer_byte_rate"] = producer_byte_rate
|
|
529
|
-
__props__.__dict__["project"] = project
|
|
530
|
-
__props__.__dict__["request_percentage"] = request_percentage
|
|
531
|
-
__props__.__dict__["service_name"] = service_name
|
|
532
|
-
__props__.__dict__["user"] = user
|
|
533
|
-
return KafkaQuota(resource_name, opts=opts, __props__=__props__)
|
|
534
|
-
|
|
535
|
-
@property
|
|
536
|
-
@pulumi.getter(name="clientId")
|
|
537
|
-
def client_id(self) -> pulumi.Output[Optional[str]]:
|
|
538
|
-
"""
|
|
539
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
540
|
-
Quotas can be applied based on user, client-id, or both.
|
|
541
|
-
The most relevant quota is chosen for each connection.
|
|
542
|
-
All connections within a quota group share the same quota.
|
|
543
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
544
|
-
"""
|
|
545
|
-
return pulumi.get(self, "client_id")
|
|
546
|
-
|
|
547
|
-
@property
|
|
548
|
-
@pulumi.getter(name="consumerByteRate")
|
|
549
|
-
def consumer_byte_rate(self) -> pulumi.Output[Optional[int]]:
|
|
550
|
-
"""
|
|
551
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
552
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
553
|
-
Exceeding this limit results in client throttling.
|
|
554
|
-
"""
|
|
555
|
-
return pulumi.get(self, "consumer_byte_rate")
|
|
556
|
-
|
|
557
|
-
@property
|
|
558
|
-
@pulumi.getter(name="producerByteRate")
|
|
559
|
-
def producer_byte_rate(self) -> pulumi.Output[Optional[int]]:
|
|
560
|
-
"""
|
|
561
|
-
Defines the bandwidth limit in bytes/sec for each group of clients sharing a quota.
|
|
562
|
-
Every distinct client group is allocated a specific quota, as defined by the cluster, on a per-broker basis.
|
|
563
|
-
Exceeding this limit results in client throttling.
|
|
564
|
-
"""
|
|
565
|
-
return pulumi.get(self, "producer_byte_rate")
|
|
566
|
-
|
|
567
|
-
@property
|
|
568
|
-
@pulumi.getter
|
|
569
|
-
def project(self) -> pulumi.Output[str]:
|
|
570
|
-
"""
|
|
571
|
-
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.
|
|
572
|
-
"""
|
|
573
|
-
return pulumi.get(self, "project")
|
|
574
|
-
|
|
575
|
-
@property
|
|
576
|
-
@pulumi.getter(name="requestPercentage")
|
|
577
|
-
def request_percentage(self) -> pulumi.Output[Optional[float]]:
|
|
578
|
-
"""
|
|
579
|
-
Sets the maximum percentage of CPU time that a client group can use on request handler I/O and network threads per broker within a quota window.
|
|
580
|
-
Exceeding this limit triggers throttling.
|
|
581
|
-
The quota, expressed as a percentage, also indicates the total allowable CPU usage for the client groups sharing the quota.
|
|
582
|
-
"""
|
|
583
|
-
return pulumi.get(self, "request_percentage")
|
|
584
|
-
|
|
585
|
-
@property
|
|
586
|
-
@pulumi.getter(name="serviceName")
|
|
587
|
-
def service_name(self) -> pulumi.Output[str]:
|
|
588
|
-
"""
|
|
589
|
-
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.
|
|
590
|
-
"""
|
|
591
|
-
return pulumi.get(self, "service_name")
|
|
592
|
-
|
|
593
|
-
@property
|
|
594
|
-
@pulumi.getter
|
|
595
|
-
def user(self) -> pulumi.Output[Optional[str]]:
|
|
596
|
-
"""
|
|
597
|
-
Represents a logical group of clients, assigned a unique name by the client application.
|
|
598
|
-
Quotas can be applied based on user, client-id, or both.
|
|
599
|
-
The most relevant quota is chosen for each connection.
|
|
600
|
-
All connections within a quota group share the same quota.
|
|
601
|
-
It is possible to set default quotas for each (user, client-id), user or client-id group by specifying 'default'
|
|
602
|
-
"""
|
|
603
|
-
return pulumi.get(self, "user")
|
|
604
|
-
|
|
File without changes
|