pulumi-alicloud 3.81.0a1750651450__py3-none-any.whl → 3.82.0a1751947305__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-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +32 -0
- pulumi_alicloud/alikafka/__init__.py +2 -0
- pulumi_alicloud/alikafka/_inputs.py +450 -0
- pulumi_alicloud/alikafka/instance.py +331 -95
- pulumi_alicloud/alikafka/outputs.py +346 -0
- pulumi_alicloud/cloudfirewall/__init__.py +1 -0
- pulumi_alicloud/cloudfirewall/policy_advanced_config.py +165 -0
- pulumi_alicloud/ecs/get_ecs_key_pairs.py +57 -13
- pulumi_alicloud/ecs/get_ecs_launch_templates.py +15 -14
- pulumi_alicloud/ecs/get_key_pairs.py +1 -1
- pulumi_alicloud/ecs/instance.py +115 -0
- pulumi_alicloud/ecs/outputs.py +128 -80
- pulumi_alicloud/emrv2/_inputs.py +74 -0
- pulumi_alicloud/emrv2/outputs.py +65 -0
- pulumi_alicloud/esa/__init__.py +2 -0
- pulumi_alicloud/esa/certificate.py +7 -28
- pulumi_alicloud/esa/custom_scene_policy.py +484 -0
- pulumi_alicloud/esa/version.py +406 -0
- pulumi_alicloud/gpdb/instance.py +28 -28
- pulumi_alicloud/hbr/__init__.py +1 -0
- pulumi_alicloud/hbr/get_udm_snapshots.py +282 -0
- pulumi_alicloud/hbr/outputs.py +96 -0
- pulumi_alicloud/kms/secret.py +42 -28
- pulumi_alicloud/maxcompute/_inputs.py +26 -6
- pulumi_alicloud/maxcompute/outputs.py +18 -4
- pulumi_alicloud/maxcompute/project.py +48 -1
- pulumi_alicloud/mongodb/instance.py +63 -16
- pulumi_alicloud/mongodb/sharding_instance.py +249 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/threatdetection/__init__.py +1 -0
- pulumi_alicloud/threatdetection/cycle_task.py +731 -0
- {pulumi_alicloud-3.81.0a1750651450.dist-info → pulumi_alicloud-3.82.0a1751947305.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.81.0a1750651450.dist-info → pulumi_alicloud-3.82.0a1751947305.dist-info}/RECORD +35 -28
- {pulumi_alicloud-3.81.0a1750651450.dist-info → pulumi_alicloud-3.82.0a1751947305.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.81.0a1750651450.dist-info → pulumi_alicloud-3.82.0a1751947305.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'InstanceConfluentConfig',
|
|
20
|
+
'InstanceServerlessConfig',
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
@pulumi.output_type
|
|
24
|
+
class InstanceConfluentConfig(dict):
|
|
25
|
+
@staticmethod
|
|
26
|
+
def __key_warning(key: str):
|
|
27
|
+
suggest = None
|
|
28
|
+
if key == "connectCu":
|
|
29
|
+
suggest = "connect_cu"
|
|
30
|
+
elif key == "connectReplica":
|
|
31
|
+
suggest = "connect_replica"
|
|
32
|
+
elif key == "controlCenterCu":
|
|
33
|
+
suggest = "control_center_cu"
|
|
34
|
+
elif key == "controlCenterReplica":
|
|
35
|
+
suggest = "control_center_replica"
|
|
36
|
+
elif key == "controlCenterStorage":
|
|
37
|
+
suggest = "control_center_storage"
|
|
38
|
+
elif key == "kafkaCu":
|
|
39
|
+
suggest = "kafka_cu"
|
|
40
|
+
elif key == "kafkaReplica":
|
|
41
|
+
suggest = "kafka_replica"
|
|
42
|
+
elif key == "kafkaRestProxyCu":
|
|
43
|
+
suggest = "kafka_rest_proxy_cu"
|
|
44
|
+
elif key == "kafkaRestProxyReplica":
|
|
45
|
+
suggest = "kafka_rest_proxy_replica"
|
|
46
|
+
elif key == "kafkaStorage":
|
|
47
|
+
suggest = "kafka_storage"
|
|
48
|
+
elif key == "ksqlCu":
|
|
49
|
+
suggest = "ksql_cu"
|
|
50
|
+
elif key == "ksqlReplica":
|
|
51
|
+
suggest = "ksql_replica"
|
|
52
|
+
elif key == "ksqlStorage":
|
|
53
|
+
suggest = "ksql_storage"
|
|
54
|
+
elif key == "schemaRegistryCu":
|
|
55
|
+
suggest = "schema_registry_cu"
|
|
56
|
+
elif key == "schemaRegistryReplica":
|
|
57
|
+
suggest = "schema_registry_replica"
|
|
58
|
+
elif key == "zookeeperCu":
|
|
59
|
+
suggest = "zookeeper_cu"
|
|
60
|
+
elif key == "zookeeperReplica":
|
|
61
|
+
suggest = "zookeeper_replica"
|
|
62
|
+
elif key == "zookeeperStorage":
|
|
63
|
+
suggest = "zookeeper_storage"
|
|
64
|
+
|
|
65
|
+
if suggest:
|
|
66
|
+
pulumi.log.warn(f"Key '{key}' not found in InstanceConfluentConfig. Access the value via the '{suggest}' property getter instead.")
|
|
67
|
+
|
|
68
|
+
def __getitem__(self, key: str) -> Any:
|
|
69
|
+
InstanceConfluentConfig.__key_warning(key)
|
|
70
|
+
return super().__getitem__(key)
|
|
71
|
+
|
|
72
|
+
def get(self, key: str, default = None) -> Any:
|
|
73
|
+
InstanceConfluentConfig.__key_warning(key)
|
|
74
|
+
return super().get(key, default)
|
|
75
|
+
|
|
76
|
+
def __init__(__self__, *,
|
|
77
|
+
connect_cu: Optional[builtins.int] = None,
|
|
78
|
+
connect_replica: Optional[builtins.int] = None,
|
|
79
|
+
control_center_cu: Optional[builtins.int] = None,
|
|
80
|
+
control_center_replica: Optional[builtins.int] = None,
|
|
81
|
+
control_center_storage: Optional[builtins.int] = None,
|
|
82
|
+
kafka_cu: Optional[builtins.int] = None,
|
|
83
|
+
kafka_replica: Optional[builtins.int] = None,
|
|
84
|
+
kafka_rest_proxy_cu: Optional[builtins.int] = None,
|
|
85
|
+
kafka_rest_proxy_replica: Optional[builtins.int] = None,
|
|
86
|
+
kafka_storage: Optional[builtins.int] = None,
|
|
87
|
+
ksql_cu: Optional[builtins.int] = None,
|
|
88
|
+
ksql_replica: Optional[builtins.int] = None,
|
|
89
|
+
ksql_storage: Optional[builtins.int] = None,
|
|
90
|
+
schema_registry_cu: Optional[builtins.int] = None,
|
|
91
|
+
schema_registry_replica: Optional[builtins.int] = None,
|
|
92
|
+
zookeeper_cu: Optional[builtins.int] = None,
|
|
93
|
+
zookeeper_replica: Optional[builtins.int] = None,
|
|
94
|
+
zookeeper_storage: Optional[builtins.int] = None):
|
|
95
|
+
"""
|
|
96
|
+
:param builtins.int connect_cu: The number of CPU cores of Connect.
|
|
97
|
+
:param builtins.int connect_replica: The number of replicas of Connect.
|
|
98
|
+
:param builtins.int control_center_cu: The number of CPU cores of Control Center.
|
|
99
|
+
:param builtins.int control_center_replica: The number of replicas of Control Center.
|
|
100
|
+
:param builtins.int control_center_storage: The disk capacity of Control Center.
|
|
101
|
+
:param builtins.int kafka_cu: The number of CPU cores of the Kafka broker.
|
|
102
|
+
:param builtins.int kafka_replica: The number of replicas of the Kafka broker.
|
|
103
|
+
:param builtins.int kafka_rest_proxy_cu: The number of CPU cores of Kafka Rest Proxy.
|
|
104
|
+
:param builtins.int kafka_rest_proxy_replica: The number of replicas of Kafka Rest Proxy.
|
|
105
|
+
:param builtins.int kafka_storage: The disk capacity of the Kafka broker.
|
|
106
|
+
:param builtins.int ksql_cu: The number of CPU cores of ksqlDB.
|
|
107
|
+
:param builtins.int ksql_replica: The number of replicas of ksqlDB.
|
|
108
|
+
:param builtins.int ksql_storage: The disk capacity of ksqlDB.
|
|
109
|
+
:param builtins.int schema_registry_cu: The number of CPU cores of Schema Registry.
|
|
110
|
+
:param builtins.int schema_registry_replica: The number of replicas of Schema Registry.
|
|
111
|
+
:param builtins.int zookeeper_cu: The number of CPU cores of ZooKeeper.
|
|
112
|
+
:param builtins.int zookeeper_replica: The number of replicas of ZooKeeper.
|
|
113
|
+
:param builtins.int zookeeper_storage: The disk capacity of ZooKeeper.
|
|
114
|
+
"""
|
|
115
|
+
if connect_cu is not None:
|
|
116
|
+
pulumi.set(__self__, "connect_cu", connect_cu)
|
|
117
|
+
if connect_replica is not None:
|
|
118
|
+
pulumi.set(__self__, "connect_replica", connect_replica)
|
|
119
|
+
if control_center_cu is not None:
|
|
120
|
+
pulumi.set(__self__, "control_center_cu", control_center_cu)
|
|
121
|
+
if control_center_replica is not None:
|
|
122
|
+
pulumi.set(__self__, "control_center_replica", control_center_replica)
|
|
123
|
+
if control_center_storage is not None:
|
|
124
|
+
pulumi.set(__self__, "control_center_storage", control_center_storage)
|
|
125
|
+
if kafka_cu is not None:
|
|
126
|
+
pulumi.set(__self__, "kafka_cu", kafka_cu)
|
|
127
|
+
if kafka_replica is not None:
|
|
128
|
+
pulumi.set(__self__, "kafka_replica", kafka_replica)
|
|
129
|
+
if kafka_rest_proxy_cu is not None:
|
|
130
|
+
pulumi.set(__self__, "kafka_rest_proxy_cu", kafka_rest_proxy_cu)
|
|
131
|
+
if kafka_rest_proxy_replica is not None:
|
|
132
|
+
pulumi.set(__self__, "kafka_rest_proxy_replica", kafka_rest_proxy_replica)
|
|
133
|
+
if kafka_storage is not None:
|
|
134
|
+
pulumi.set(__self__, "kafka_storage", kafka_storage)
|
|
135
|
+
if ksql_cu is not None:
|
|
136
|
+
pulumi.set(__self__, "ksql_cu", ksql_cu)
|
|
137
|
+
if ksql_replica is not None:
|
|
138
|
+
pulumi.set(__self__, "ksql_replica", ksql_replica)
|
|
139
|
+
if ksql_storage is not None:
|
|
140
|
+
pulumi.set(__self__, "ksql_storage", ksql_storage)
|
|
141
|
+
if schema_registry_cu is not None:
|
|
142
|
+
pulumi.set(__self__, "schema_registry_cu", schema_registry_cu)
|
|
143
|
+
if schema_registry_replica is not None:
|
|
144
|
+
pulumi.set(__self__, "schema_registry_replica", schema_registry_replica)
|
|
145
|
+
if zookeeper_cu is not None:
|
|
146
|
+
pulumi.set(__self__, "zookeeper_cu", zookeeper_cu)
|
|
147
|
+
if zookeeper_replica is not None:
|
|
148
|
+
pulumi.set(__self__, "zookeeper_replica", zookeeper_replica)
|
|
149
|
+
if zookeeper_storage is not None:
|
|
150
|
+
pulumi.set(__self__, "zookeeper_storage", zookeeper_storage)
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
@pulumi.getter(name="connectCu")
|
|
154
|
+
def connect_cu(self) -> Optional[builtins.int]:
|
|
155
|
+
"""
|
|
156
|
+
The number of CPU cores of Connect.
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "connect_cu")
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
@pulumi.getter(name="connectReplica")
|
|
162
|
+
def connect_replica(self) -> Optional[builtins.int]:
|
|
163
|
+
"""
|
|
164
|
+
The number of replicas of Connect.
|
|
165
|
+
"""
|
|
166
|
+
return pulumi.get(self, "connect_replica")
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="controlCenterCu")
|
|
170
|
+
def control_center_cu(self) -> Optional[builtins.int]:
|
|
171
|
+
"""
|
|
172
|
+
The number of CPU cores of Control Center.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "control_center_cu")
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
@pulumi.getter(name="controlCenterReplica")
|
|
178
|
+
def control_center_replica(self) -> Optional[builtins.int]:
|
|
179
|
+
"""
|
|
180
|
+
The number of replicas of Control Center.
|
|
181
|
+
"""
|
|
182
|
+
return pulumi.get(self, "control_center_replica")
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter(name="controlCenterStorage")
|
|
186
|
+
def control_center_storage(self) -> Optional[builtins.int]:
|
|
187
|
+
"""
|
|
188
|
+
The disk capacity of Control Center.
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "control_center_storage")
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter(name="kafkaCu")
|
|
194
|
+
def kafka_cu(self) -> Optional[builtins.int]:
|
|
195
|
+
"""
|
|
196
|
+
The number of CPU cores of the Kafka broker.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "kafka_cu")
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
@pulumi.getter(name="kafkaReplica")
|
|
202
|
+
def kafka_replica(self) -> Optional[builtins.int]:
|
|
203
|
+
"""
|
|
204
|
+
The number of replicas of the Kafka broker.
|
|
205
|
+
"""
|
|
206
|
+
return pulumi.get(self, "kafka_replica")
|
|
207
|
+
|
|
208
|
+
@property
|
|
209
|
+
@pulumi.getter(name="kafkaRestProxyCu")
|
|
210
|
+
def kafka_rest_proxy_cu(self) -> Optional[builtins.int]:
|
|
211
|
+
"""
|
|
212
|
+
The number of CPU cores of Kafka Rest Proxy.
|
|
213
|
+
"""
|
|
214
|
+
return pulumi.get(self, "kafka_rest_proxy_cu")
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter(name="kafkaRestProxyReplica")
|
|
218
|
+
def kafka_rest_proxy_replica(self) -> Optional[builtins.int]:
|
|
219
|
+
"""
|
|
220
|
+
The number of replicas of Kafka Rest Proxy.
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "kafka_rest_proxy_replica")
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter(name="kafkaStorage")
|
|
226
|
+
def kafka_storage(self) -> Optional[builtins.int]:
|
|
227
|
+
"""
|
|
228
|
+
The disk capacity of the Kafka broker.
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "kafka_storage")
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
@pulumi.getter(name="ksqlCu")
|
|
234
|
+
def ksql_cu(self) -> Optional[builtins.int]:
|
|
235
|
+
"""
|
|
236
|
+
The number of CPU cores of ksqlDB.
|
|
237
|
+
"""
|
|
238
|
+
return pulumi.get(self, "ksql_cu")
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
@pulumi.getter(name="ksqlReplica")
|
|
242
|
+
def ksql_replica(self) -> Optional[builtins.int]:
|
|
243
|
+
"""
|
|
244
|
+
The number of replicas of ksqlDB.
|
|
245
|
+
"""
|
|
246
|
+
return pulumi.get(self, "ksql_replica")
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
@pulumi.getter(name="ksqlStorage")
|
|
250
|
+
def ksql_storage(self) -> Optional[builtins.int]:
|
|
251
|
+
"""
|
|
252
|
+
The disk capacity of ksqlDB.
|
|
253
|
+
"""
|
|
254
|
+
return pulumi.get(self, "ksql_storage")
|
|
255
|
+
|
|
256
|
+
@property
|
|
257
|
+
@pulumi.getter(name="schemaRegistryCu")
|
|
258
|
+
def schema_registry_cu(self) -> Optional[builtins.int]:
|
|
259
|
+
"""
|
|
260
|
+
The number of CPU cores of Schema Registry.
|
|
261
|
+
"""
|
|
262
|
+
return pulumi.get(self, "schema_registry_cu")
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
@pulumi.getter(name="schemaRegistryReplica")
|
|
266
|
+
def schema_registry_replica(self) -> Optional[builtins.int]:
|
|
267
|
+
"""
|
|
268
|
+
The number of replicas of Schema Registry.
|
|
269
|
+
"""
|
|
270
|
+
return pulumi.get(self, "schema_registry_replica")
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
@pulumi.getter(name="zookeeperCu")
|
|
274
|
+
def zookeeper_cu(self) -> Optional[builtins.int]:
|
|
275
|
+
"""
|
|
276
|
+
The number of CPU cores of ZooKeeper.
|
|
277
|
+
"""
|
|
278
|
+
return pulumi.get(self, "zookeeper_cu")
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
@pulumi.getter(name="zookeeperReplica")
|
|
282
|
+
def zookeeper_replica(self) -> Optional[builtins.int]:
|
|
283
|
+
"""
|
|
284
|
+
The number of replicas of ZooKeeper.
|
|
285
|
+
"""
|
|
286
|
+
return pulumi.get(self, "zookeeper_replica")
|
|
287
|
+
|
|
288
|
+
@property
|
|
289
|
+
@pulumi.getter(name="zookeeperStorage")
|
|
290
|
+
def zookeeper_storage(self) -> Optional[builtins.int]:
|
|
291
|
+
"""
|
|
292
|
+
The disk capacity of ZooKeeper.
|
|
293
|
+
"""
|
|
294
|
+
return pulumi.get(self, "zookeeper_storage")
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
@pulumi.output_type
|
|
298
|
+
class InstanceServerlessConfig(dict):
|
|
299
|
+
@staticmethod
|
|
300
|
+
def __key_warning(key: str):
|
|
301
|
+
suggest = None
|
|
302
|
+
if key == "reservedPublishCapacity":
|
|
303
|
+
suggest = "reserved_publish_capacity"
|
|
304
|
+
elif key == "reservedSubscribeCapacity":
|
|
305
|
+
suggest = "reserved_subscribe_capacity"
|
|
306
|
+
|
|
307
|
+
if suggest:
|
|
308
|
+
pulumi.log.warn(f"Key '{key}' not found in InstanceServerlessConfig. Access the value via the '{suggest}' property getter instead.")
|
|
309
|
+
|
|
310
|
+
def __getitem__(self, key: str) -> Any:
|
|
311
|
+
InstanceServerlessConfig.__key_warning(key)
|
|
312
|
+
return super().__getitem__(key)
|
|
313
|
+
|
|
314
|
+
def get(self, key: str, default = None) -> Any:
|
|
315
|
+
InstanceServerlessConfig.__key_warning(key)
|
|
316
|
+
return super().get(key, default)
|
|
317
|
+
|
|
318
|
+
def __init__(__self__, *,
|
|
319
|
+
reserved_publish_capacity: Optional[builtins.int] = None,
|
|
320
|
+
reserved_subscribe_capacity: Optional[builtins.int] = None):
|
|
321
|
+
"""
|
|
322
|
+
:param builtins.int reserved_publish_capacity: The reserved capacity for publishing messages.
|
|
323
|
+
:param builtins.int reserved_subscribe_capacity: The reserved capacity for subscribing to message.
|
|
324
|
+
"""
|
|
325
|
+
if reserved_publish_capacity is not None:
|
|
326
|
+
pulumi.set(__self__, "reserved_publish_capacity", reserved_publish_capacity)
|
|
327
|
+
if reserved_subscribe_capacity is not None:
|
|
328
|
+
pulumi.set(__self__, "reserved_subscribe_capacity", reserved_subscribe_capacity)
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
@pulumi.getter(name="reservedPublishCapacity")
|
|
332
|
+
def reserved_publish_capacity(self) -> Optional[builtins.int]:
|
|
333
|
+
"""
|
|
334
|
+
The reserved capacity for publishing messages.
|
|
335
|
+
"""
|
|
336
|
+
return pulumi.get(self, "reserved_publish_capacity")
|
|
337
|
+
|
|
338
|
+
@property
|
|
339
|
+
@pulumi.getter(name="reservedSubscribeCapacity")
|
|
340
|
+
def reserved_subscribe_capacity(self) -> Optional[builtins.int]:
|
|
341
|
+
"""
|
|
342
|
+
The reserved capacity for subscribing to message.
|
|
343
|
+
"""
|
|
344
|
+
return pulumi.get(self, "reserved_subscribe_capacity")
|
|
345
|
+
|
|
346
|
+
|
|
@@ -26,6 +26,7 @@ from .instance_member import *
|
|
|
26
26
|
from .ips_config import *
|
|
27
27
|
from .nat_firewall import *
|
|
28
28
|
from .nat_firewall_control_policy import *
|
|
29
|
+
from .policy_advanced_config import *
|
|
29
30
|
from .vpc_cen_tr_firewall import *
|
|
30
31
|
from ._inputs import *
|
|
31
32
|
from . import outputs
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from .. import _utilities
|
|
17
|
+
|
|
18
|
+
__all__ = ['PolicyAdvancedConfigArgs', 'PolicyAdvancedConfig']
|
|
19
|
+
|
|
20
|
+
@pulumi.input_type
|
|
21
|
+
class PolicyAdvancedConfigArgs:
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
internet_switch: pulumi.Input[builtins.str]):
|
|
24
|
+
"""
|
|
25
|
+
The set of arguments for constructing a PolicyAdvancedConfig resource.
|
|
26
|
+
:param pulumi.Input[builtins.str] internet_switch: Access control policy strict mode of on-state. Valid values:
|
|
27
|
+
"""
|
|
28
|
+
pulumi.set(__self__, "internet_switch", internet_switch)
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
@pulumi.getter(name="internetSwitch")
|
|
32
|
+
def internet_switch(self) -> pulumi.Input[builtins.str]:
|
|
33
|
+
"""
|
|
34
|
+
Access control policy strict mode of on-state. Valid values:
|
|
35
|
+
"""
|
|
36
|
+
return pulumi.get(self, "internet_switch")
|
|
37
|
+
|
|
38
|
+
@internet_switch.setter
|
|
39
|
+
def internet_switch(self, value: pulumi.Input[builtins.str]):
|
|
40
|
+
pulumi.set(self, "internet_switch", value)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@pulumi.input_type
|
|
44
|
+
class _PolicyAdvancedConfigState:
|
|
45
|
+
def __init__(__self__, *,
|
|
46
|
+
internet_switch: Optional[pulumi.Input[builtins.str]] = None):
|
|
47
|
+
"""
|
|
48
|
+
Input properties used for looking up and filtering PolicyAdvancedConfig resources.
|
|
49
|
+
:param pulumi.Input[builtins.str] internet_switch: Access control policy strict mode of on-state. Valid values:
|
|
50
|
+
"""
|
|
51
|
+
if internet_switch is not None:
|
|
52
|
+
pulumi.set(__self__, "internet_switch", internet_switch)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter(name="internetSwitch")
|
|
56
|
+
def internet_switch(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
57
|
+
"""
|
|
58
|
+
Access control policy strict mode of on-state. Valid values:
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "internet_switch")
|
|
61
|
+
|
|
62
|
+
@internet_switch.setter
|
|
63
|
+
def internet_switch(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
64
|
+
pulumi.set(self, "internet_switch", value)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@pulumi.type_token("alicloud:cloudfirewall/policyAdvancedConfig:PolicyAdvancedConfig")
|
|
68
|
+
class PolicyAdvancedConfig(pulumi.CustomResource):
|
|
69
|
+
@overload
|
|
70
|
+
def __init__(__self__,
|
|
71
|
+
resource_name: str,
|
|
72
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
73
|
+
internet_switch: Optional[pulumi.Input[builtins.str]] = None,
|
|
74
|
+
__props__=None):
|
|
75
|
+
"""
|
|
76
|
+
## Import
|
|
77
|
+
|
|
78
|
+
Cloud Firewall Policy Advanced Config can be imported using the id, e.g.
|
|
79
|
+
|
|
80
|
+
```sh
|
|
81
|
+
$ pulumi import alicloud:cloudfirewall/policyAdvancedConfig:PolicyAdvancedConfig example
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
:param str resource_name: The name of the resource.
|
|
85
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
86
|
+
:param pulumi.Input[builtins.str] internet_switch: Access control policy strict mode of on-state. Valid values:
|
|
87
|
+
"""
|
|
88
|
+
...
|
|
89
|
+
@overload
|
|
90
|
+
def __init__(__self__,
|
|
91
|
+
resource_name: str,
|
|
92
|
+
args: PolicyAdvancedConfigArgs,
|
|
93
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
94
|
+
"""
|
|
95
|
+
## Import
|
|
96
|
+
|
|
97
|
+
Cloud Firewall Policy Advanced Config can be imported using the id, e.g.
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
$ pulumi import alicloud:cloudfirewall/policyAdvancedConfig:PolicyAdvancedConfig example
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
:param str resource_name: The name of the resource.
|
|
104
|
+
:param PolicyAdvancedConfigArgs args: The arguments to use to populate this resource's properties.
|
|
105
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
106
|
+
"""
|
|
107
|
+
...
|
|
108
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
109
|
+
resource_args, opts = _utilities.get_resource_args_opts(PolicyAdvancedConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
110
|
+
if resource_args is not None:
|
|
111
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
112
|
+
else:
|
|
113
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
114
|
+
|
|
115
|
+
def _internal_init(__self__,
|
|
116
|
+
resource_name: str,
|
|
117
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
118
|
+
internet_switch: Optional[pulumi.Input[builtins.str]] = None,
|
|
119
|
+
__props__=None):
|
|
120
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
121
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
122
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
123
|
+
if opts.id is None:
|
|
124
|
+
if __props__ is not None:
|
|
125
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
126
|
+
__props__ = PolicyAdvancedConfigArgs.__new__(PolicyAdvancedConfigArgs)
|
|
127
|
+
|
|
128
|
+
if internet_switch is None and not opts.urn:
|
|
129
|
+
raise TypeError("Missing required property 'internet_switch'")
|
|
130
|
+
__props__.__dict__["internet_switch"] = internet_switch
|
|
131
|
+
super(PolicyAdvancedConfig, __self__).__init__(
|
|
132
|
+
'alicloud:cloudfirewall/policyAdvancedConfig:PolicyAdvancedConfig',
|
|
133
|
+
resource_name,
|
|
134
|
+
__props__,
|
|
135
|
+
opts)
|
|
136
|
+
|
|
137
|
+
@staticmethod
|
|
138
|
+
def get(resource_name: str,
|
|
139
|
+
id: pulumi.Input[str],
|
|
140
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
141
|
+
internet_switch: Optional[pulumi.Input[builtins.str]] = None) -> 'PolicyAdvancedConfig':
|
|
142
|
+
"""
|
|
143
|
+
Get an existing PolicyAdvancedConfig resource's state with the given name, id, and optional extra
|
|
144
|
+
properties used to qualify the lookup.
|
|
145
|
+
|
|
146
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
147
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
148
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
149
|
+
:param pulumi.Input[builtins.str] internet_switch: Access control policy strict mode of on-state. Valid values:
|
|
150
|
+
"""
|
|
151
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
152
|
+
|
|
153
|
+
__props__ = _PolicyAdvancedConfigState.__new__(_PolicyAdvancedConfigState)
|
|
154
|
+
|
|
155
|
+
__props__.__dict__["internet_switch"] = internet_switch
|
|
156
|
+
return PolicyAdvancedConfig(resource_name, opts=opts, __props__=__props__)
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
@pulumi.getter(name="internetSwitch")
|
|
160
|
+
def internet_switch(self) -> pulumi.Output[builtins.str]:
|
|
161
|
+
"""
|
|
162
|
+
Access control policy strict mode of on-state. Valid values:
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "internet_switch")
|
|
165
|
+
|
|
@@ -63,6 +63,9 @@ class GetEcsKeyPairsResult:
|
|
|
63
63
|
@property
|
|
64
64
|
@pulumi.getter(name="fingerPrint")
|
|
65
65
|
def finger_print(self) -> Optional[builtins.str]:
|
|
66
|
+
"""
|
|
67
|
+
The fingerprint of the Key Pair.
|
|
68
|
+
"""
|
|
66
69
|
return pulumi.get(self, "finger_print")
|
|
67
70
|
|
|
68
71
|
@property
|
|
@@ -80,8 +83,11 @@ class GetEcsKeyPairsResult:
|
|
|
80
83
|
|
|
81
84
|
@property
|
|
82
85
|
@pulumi.getter(name="keyPairs")
|
|
83
|
-
@_utilities.deprecated("""Field
|
|
86
|
+
@_utilities.deprecated("""Field `key_pairs` has been deprecated from provider version 1.121.0. New field `pairs` instead.""")
|
|
84
87
|
def key_pairs(self) -> Sequence['outputs.GetEcsKeyPairsKeyPairResult']:
|
|
88
|
+
"""
|
|
89
|
+
(Deprecated since v1.121.0) A list of Ecs Key Pairs. Each element contains the following attributes:
|
|
90
|
+
"""
|
|
85
91
|
return pulumi.get(self, "key_pairs")
|
|
86
92
|
|
|
87
93
|
@property
|
|
@@ -92,6 +98,9 @@ class GetEcsKeyPairsResult:
|
|
|
92
98
|
@property
|
|
93
99
|
@pulumi.getter
|
|
94
100
|
def names(self) -> Sequence[builtins.str]:
|
|
101
|
+
"""
|
|
102
|
+
A list of Key Pair names.
|
|
103
|
+
"""
|
|
95
104
|
return pulumi.get(self, "names")
|
|
96
105
|
|
|
97
106
|
@property
|
|
@@ -102,16 +111,25 @@ class GetEcsKeyPairsResult:
|
|
|
102
111
|
@property
|
|
103
112
|
@pulumi.getter
|
|
104
113
|
def pairs(self) -> Sequence['outputs.GetEcsKeyPairsPairResult']:
|
|
114
|
+
"""
|
|
115
|
+
A list of Ecs Key Pairs. Each element contains the following attributes:
|
|
116
|
+
"""
|
|
105
117
|
return pulumi.get(self, "pairs")
|
|
106
118
|
|
|
107
119
|
@property
|
|
108
120
|
@pulumi.getter(name="resourceGroupId")
|
|
109
121
|
def resource_group_id(self) -> Optional[builtins.str]:
|
|
122
|
+
"""
|
|
123
|
+
The ID of the resource group.
|
|
124
|
+
"""
|
|
110
125
|
return pulumi.get(self, "resource_group_id")
|
|
111
126
|
|
|
112
127
|
@property
|
|
113
128
|
@pulumi.getter
|
|
114
129
|
def tags(self) -> Optional[Mapping[str, builtins.str]]:
|
|
130
|
+
"""
|
|
131
|
+
The tags of the Key Pair.
|
|
132
|
+
"""
|
|
115
133
|
return pulumi.get(self, "tags")
|
|
116
134
|
|
|
117
135
|
|
|
@@ -143,7 +161,7 @@ def get_ecs_key_pairs(finger_print: Optional[builtins.str] = None,
|
|
|
143
161
|
"""
|
|
144
162
|
This data source provides the Ecs Key Pairs of the current Alibaba Cloud user.
|
|
145
163
|
|
|
146
|
-
> **NOTE:** Available
|
|
164
|
+
> **NOTE:** Available since v1.121.0.
|
|
147
165
|
|
|
148
166
|
## Example Usage
|
|
149
167
|
|
|
@@ -153,17 +171,30 @@ def get_ecs_key_pairs(finger_print: Optional[builtins.str] = None,
|
|
|
153
171
|
import pulumi
|
|
154
172
|
import pulumi_alicloud as alicloud
|
|
155
173
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
174
|
+
config = pulumi.Config()
|
|
175
|
+
name = config.get("name")
|
|
176
|
+
if name is None:
|
|
177
|
+
name = "terraform-example"
|
|
178
|
+
default = alicloud.resourcemanager.get_resource_groups()
|
|
179
|
+
default_ecs_key_pair = alicloud.ecs.EcsKeyPair("default",
|
|
180
|
+
key_pair_name=name,
|
|
181
|
+
public_key="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
|
|
182
|
+
resource_group_id=default.ids[1],
|
|
183
|
+
tags={
|
|
184
|
+
"Created": "TF",
|
|
185
|
+
"For": "KeyPair",
|
|
186
|
+
})
|
|
187
|
+
ids = alicloud.ecs.get_ecs_key_pairs_output(ids=[default_ecs_key_pair.id])
|
|
188
|
+
pulumi.export("ecsKeyPairId0", ids.pairs[0].id)
|
|
159
189
|
```
|
|
160
190
|
|
|
161
191
|
|
|
162
|
-
:param builtins.str finger_print: The
|
|
192
|
+
:param builtins.str finger_print: The fingerprint of the key pair.
|
|
163
193
|
:param Sequence[builtins.str] ids: A list of Key Pair IDs.
|
|
164
194
|
:param builtins.str name_regex: A regex string to filter results by Key Pair name.
|
|
165
195
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
166
|
-
:param builtins.str resource_group_id: The resource group
|
|
196
|
+
:param builtins.str resource_group_id: The ID of the resource group.
|
|
197
|
+
:param Mapping[str, builtins.str] tags: A mapping of tags to assign to the resource.
|
|
167
198
|
"""
|
|
168
199
|
__args__ = dict()
|
|
169
200
|
__args__['fingerPrint'] = finger_print
|
|
@@ -196,7 +227,7 @@ def get_ecs_key_pairs_output(finger_print: Optional[pulumi.Input[Optional[builti
|
|
|
196
227
|
"""
|
|
197
228
|
This data source provides the Ecs Key Pairs of the current Alibaba Cloud user.
|
|
198
229
|
|
|
199
|
-
> **NOTE:** Available
|
|
230
|
+
> **NOTE:** Available since v1.121.0.
|
|
200
231
|
|
|
201
232
|
## Example Usage
|
|
202
233
|
|
|
@@ -206,17 +237,30 @@ def get_ecs_key_pairs_output(finger_print: Optional[pulumi.Input[Optional[builti
|
|
|
206
237
|
import pulumi
|
|
207
238
|
import pulumi_alicloud as alicloud
|
|
208
239
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
240
|
+
config = pulumi.Config()
|
|
241
|
+
name = config.get("name")
|
|
242
|
+
if name is None:
|
|
243
|
+
name = "terraform-example"
|
|
244
|
+
default = alicloud.resourcemanager.get_resource_groups()
|
|
245
|
+
default_ecs_key_pair = alicloud.ecs.EcsKeyPair("default",
|
|
246
|
+
key_pair_name=name,
|
|
247
|
+
public_key="ssh-rsa AAAAB3Nza12345678qwertyuudsfsg",
|
|
248
|
+
resource_group_id=default.ids[1],
|
|
249
|
+
tags={
|
|
250
|
+
"Created": "TF",
|
|
251
|
+
"For": "KeyPair",
|
|
252
|
+
})
|
|
253
|
+
ids = alicloud.ecs.get_ecs_key_pairs_output(ids=[default_ecs_key_pair.id])
|
|
254
|
+
pulumi.export("ecsKeyPairId0", ids.pairs[0].id)
|
|
212
255
|
```
|
|
213
256
|
|
|
214
257
|
|
|
215
|
-
:param builtins.str finger_print: The
|
|
258
|
+
:param builtins.str finger_print: The fingerprint of the key pair.
|
|
216
259
|
:param Sequence[builtins.str] ids: A list of Key Pair IDs.
|
|
217
260
|
:param builtins.str name_regex: A regex string to filter results by Key Pair name.
|
|
218
261
|
:param builtins.str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
219
|
-
:param builtins.str resource_group_id: The resource group
|
|
262
|
+
:param builtins.str resource_group_id: The ID of the resource group.
|
|
263
|
+
:param Mapping[str, builtins.str] tags: A mapping of tags to assign to the resource.
|
|
220
264
|
"""
|
|
221
265
|
__args__ = dict()
|
|
222
266
|
__args__['fingerPrint'] = finger_print
|