pulumi-alicloud 3.84.0a1757017465__py3-none-any.whl → 3.85.0a1757389637__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 +64 -0
- pulumi_alicloud/amqp/get_instances.py +49 -20
- pulumi_alicloud/amqp/outputs.py +20 -20
- pulumi_alicloud/amqp/virtual_host.py +46 -20
- pulumi_alicloud/cloudsso/__init__.py +1 -0
- pulumi_alicloud/cloudsso/delegate_account.py +218 -0
- pulumi_alicloud/cs/node_pool.py +7 -0
- pulumi_alicloud/ddos/bgp_ip.py +57 -48
- pulumi_alicloud/ddos/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/dms/__init__.py +1 -0
- pulumi_alicloud/dms/enterprise_workspace.py +354 -0
- pulumi_alicloud/dns/ddos_bgp_instance.py +246 -106
- pulumi_alicloud/eflo/node.py +54 -7
- pulumi_alicloud/esa/__init__.py +3 -0
- pulumi_alicloud/esa/kv_account.py +145 -0
- pulumi_alicloud/esa/routine_related_record.py +226 -0
- pulumi_alicloud/esa/url_observation.py +352 -0
- pulumi_alicloud/fc/get_service.py +2 -2
- pulumi_alicloud/hologram/instance.py +35 -0
- pulumi_alicloud/kms/instance.py +47 -0
- pulumi_alicloud/log/oss_export.py +6 -0
- pulumi_alicloud/message/service_subscription.py +48 -1
- pulumi_alicloud/mongodb/sharding_instance.py +338 -0
- pulumi_alicloud/nlb/server_group.py +28 -21
- pulumi_alicloud/oss/bucket.py +56 -0
- pulumi_alicloud/privatelink/vpc_endpoint.py +21 -7
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/resourcemanager/__init__.py +1 -0
- pulumi_alicloud/resourcemanager/delegated_administrator.py +22 -50
- pulumi_alicloud/resourcemanager/folder.py +106 -29
- pulumi_alicloud/resourcemanager/get_accounts.py +35 -18
- pulumi_alicloud/resourcemanager/message_contact.py +572 -0
- pulumi_alicloud/resourcemanager/outputs.py +31 -20
- pulumi_alicloud/resourcemanager/resource_directory.py +137 -46
- pulumi_alicloud/resourcemanager/shared_resource.py +81 -45
- pulumi_alicloud/resourcemanager/shared_target.py +60 -24
- pulumi_alicloud/sls/__init__.py +4 -0
- pulumi_alicloud/sls/_inputs.py +128 -0
- pulumi_alicloud/sls/get_logtail_configs.py +395 -0
- pulumi_alicloud/sls/get_machine_groups.py +229 -0
- pulumi_alicloud/sls/logtail_config.py +692 -0
- pulumi_alicloud/sls/machine_group.py +502 -0
- pulumi_alicloud/sls/outputs.py +172 -0
- pulumi_alicloud/vpc/_inputs.py +87 -54
- pulumi_alicloud/vpc/dhcp_options_set.py +97 -58
- pulumi_alicloud/vpc/flow_log.py +25 -25
- pulumi_alicloud/vpc/ha_vip_attachment.py +41 -60
- pulumi_alicloud/vpc/ha_vipv2.py +100 -88
- pulumi_alicloud/vpc/network_acl.py +34 -23
- pulumi_alicloud/vpc/outputs.py +58 -36
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/RECORD +54 -44
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1757017465.dist-info → pulumi_alicloud-3.85.0a1757389637.dist-info}/top_level.txt +0 -0
|
@@ -24,9 +24,9 @@ class SharedResourceArgs:
|
|
|
24
24
|
resource_type: pulumi.Input[_builtins.str]):
|
|
25
25
|
"""
|
|
26
26
|
The set of arguments for constructing a SharedResource resource.
|
|
27
|
-
:param pulumi.Input[_builtins.str] resource_id: The
|
|
28
|
-
:param pulumi.Input[_builtins.str] resource_share_id: The
|
|
29
|
-
:param pulumi.Input[_builtins.str] resource_type: The
|
|
27
|
+
:param pulumi.Input[_builtins.str] resource_id: The ID of the shared resource.
|
|
28
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
29
|
+
:param pulumi.Input[_builtins.str] resource_type: The type of the shared resource. Valid values:
|
|
30
30
|
- `VSwitch`.
|
|
31
31
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
32
32
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -43,7 +43,7 @@ class SharedResourceArgs:
|
|
|
43
43
|
@pulumi.getter(name="resourceId")
|
|
44
44
|
def resource_id(self) -> pulumi.Input[_builtins.str]:
|
|
45
45
|
"""
|
|
46
|
-
The
|
|
46
|
+
The ID of the shared resource.
|
|
47
47
|
"""
|
|
48
48
|
return pulumi.get(self, "resource_id")
|
|
49
49
|
|
|
@@ -55,7 +55,7 @@ class SharedResourceArgs:
|
|
|
55
55
|
@pulumi.getter(name="resourceShareId")
|
|
56
56
|
def resource_share_id(self) -> pulumi.Input[_builtins.str]:
|
|
57
57
|
"""
|
|
58
|
-
The
|
|
58
|
+
The ID of the resource share.
|
|
59
59
|
"""
|
|
60
60
|
return pulumi.get(self, "resource_share_id")
|
|
61
61
|
|
|
@@ -67,7 +67,7 @@ class SharedResourceArgs:
|
|
|
67
67
|
@pulumi.getter(name="resourceType")
|
|
68
68
|
def resource_type(self) -> pulumi.Input[_builtins.str]:
|
|
69
69
|
"""
|
|
70
|
-
The
|
|
70
|
+
The type of the shared resource. Valid values:
|
|
71
71
|
- `VSwitch`.
|
|
72
72
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
73
73
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -86,15 +86,17 @@ class SharedResourceArgs:
|
|
|
86
86
|
@pulumi.input_type
|
|
87
87
|
class _SharedResourceState:
|
|
88
88
|
def __init__(__self__, *,
|
|
89
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
89
90
|
resource_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
90
91
|
resource_share_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
91
92
|
resource_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
92
93
|
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
93
94
|
"""
|
|
94
95
|
Input properties used for looking up and filtering SharedResource resources.
|
|
95
|
-
:param pulumi.Input[_builtins.str]
|
|
96
|
-
:param pulumi.Input[_builtins.str]
|
|
97
|
-
:param pulumi.Input[_builtins.str]
|
|
96
|
+
:param pulumi.Input[_builtins.str] create_time: (Available since v1.259.0) The time when the shared resource was associated with the resource share.
|
|
97
|
+
:param pulumi.Input[_builtins.str] resource_id: The ID of the shared resource.
|
|
98
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
99
|
+
:param pulumi.Input[_builtins.str] resource_type: The type of the shared resource. Valid values:
|
|
98
100
|
- `VSwitch`.
|
|
99
101
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
100
102
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -104,6 +106,8 @@ class _SharedResourceState:
|
|
|
104
106
|
- For more information about the types of resources that can be shared, see [Services that work with Resource Sharing](https://help.aliyun.com/zh/resource-management/resource-sharing/product-overview/services-that-work-with-resource-sharing?spm=api-workbench.API%20Document.0.0.32fff3cdFveEud)
|
|
105
107
|
:param pulumi.Input[_builtins.str] status: The status of the Shared Resource.
|
|
106
108
|
"""
|
|
109
|
+
if create_time is not None:
|
|
110
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
107
111
|
if resource_id is not None:
|
|
108
112
|
pulumi.set(__self__, "resource_id", resource_id)
|
|
109
113
|
if resource_share_id is not None:
|
|
@@ -113,11 +117,23 @@ class _SharedResourceState:
|
|
|
113
117
|
if status is not None:
|
|
114
118
|
pulumi.set(__self__, "status", status)
|
|
115
119
|
|
|
120
|
+
@_builtins.property
|
|
121
|
+
@pulumi.getter(name="createTime")
|
|
122
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
123
|
+
"""
|
|
124
|
+
(Available since v1.259.0) The time when the shared resource was associated with the resource share.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "create_time")
|
|
127
|
+
|
|
128
|
+
@create_time.setter
|
|
129
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
130
|
+
pulumi.set(self, "create_time", value)
|
|
131
|
+
|
|
116
132
|
@_builtins.property
|
|
117
133
|
@pulumi.getter(name="resourceId")
|
|
118
134
|
def resource_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
135
|
"""
|
|
120
|
-
The
|
|
136
|
+
The ID of the shared resource.
|
|
121
137
|
"""
|
|
122
138
|
return pulumi.get(self, "resource_id")
|
|
123
139
|
|
|
@@ -129,7 +145,7 @@ class _SharedResourceState:
|
|
|
129
145
|
@pulumi.getter(name="resourceShareId")
|
|
130
146
|
def resource_share_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
131
147
|
"""
|
|
132
|
-
The
|
|
148
|
+
The ID of the resource share.
|
|
133
149
|
"""
|
|
134
150
|
return pulumi.get(self, "resource_share_id")
|
|
135
151
|
|
|
@@ -141,7 +157,7 @@ class _SharedResourceState:
|
|
|
141
157
|
@pulumi.getter(name="resourceType")
|
|
142
158
|
def resource_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
143
159
|
"""
|
|
144
|
-
The
|
|
160
|
+
The type of the shared resource. Valid values:
|
|
145
161
|
- `VSwitch`.
|
|
146
162
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
147
163
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -193,24 +209,28 @@ class SharedResource(pulumi.CustomResource):
|
|
|
193
209
|
```python
|
|
194
210
|
import pulumi
|
|
195
211
|
import pulumi_alicloud as alicloud
|
|
212
|
+
import pulumi_random as random
|
|
196
213
|
|
|
197
214
|
config = pulumi.Config()
|
|
198
215
|
name = config.get("name")
|
|
199
216
|
if name is None:
|
|
200
|
-
name = "
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
217
|
+
name = "terraform-example"
|
|
218
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
219
|
+
default_integer = random.index.Integer("default",
|
|
220
|
+
min=10000,
|
|
221
|
+
max=99999)
|
|
222
|
+
default_network = alicloud.vpc.Network("default",
|
|
223
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
204
224
|
cidr_block="192.168.0.0/16")
|
|
205
|
-
|
|
206
|
-
zone_id=
|
|
225
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
226
|
+
zone_id=default.zones[0].id,
|
|
207
227
|
cidr_block="192.168.0.0/16",
|
|
208
|
-
vpc_id=
|
|
209
|
-
vswitch_name=name)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
228
|
+
vpc_id=default_network.id,
|
|
229
|
+
vswitch_name=f"{name}-{default_integer['result']}")
|
|
230
|
+
default_resource_share = alicloud.resourcemanager.ResourceShare("default", resource_share_name=f"{name}-{default_integer['result']}")
|
|
231
|
+
default_shared_resource = alicloud.resourcemanager.SharedResource("default",
|
|
232
|
+
resource_share_id=default_resource_share.id,
|
|
233
|
+
resource_id=default_switch.id,
|
|
214
234
|
resource_type="VSwitch")
|
|
215
235
|
```
|
|
216
236
|
|
|
@@ -224,9 +244,9 @@ class SharedResource(pulumi.CustomResource):
|
|
|
224
244
|
|
|
225
245
|
:param str resource_name: The name of the resource.
|
|
226
246
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
227
|
-
:param pulumi.Input[_builtins.str] resource_id: The
|
|
228
|
-
:param pulumi.Input[_builtins.str] resource_share_id: The
|
|
229
|
-
:param pulumi.Input[_builtins.str] resource_type: The
|
|
247
|
+
:param pulumi.Input[_builtins.str] resource_id: The ID of the shared resource.
|
|
248
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
249
|
+
:param pulumi.Input[_builtins.str] resource_type: The type of the shared resource. Valid values:
|
|
230
250
|
- `VSwitch`.
|
|
231
251
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
232
252
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -255,24 +275,28 @@ class SharedResource(pulumi.CustomResource):
|
|
|
255
275
|
```python
|
|
256
276
|
import pulumi
|
|
257
277
|
import pulumi_alicloud as alicloud
|
|
278
|
+
import pulumi_random as random
|
|
258
279
|
|
|
259
280
|
config = pulumi.Config()
|
|
260
281
|
name = config.get("name")
|
|
261
282
|
if name is None:
|
|
262
|
-
name = "
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
283
|
+
name = "terraform-example"
|
|
284
|
+
default = alicloud.get_zones(available_resource_creation="VSwitch")
|
|
285
|
+
default_integer = random.index.Integer("default",
|
|
286
|
+
min=10000,
|
|
287
|
+
max=99999)
|
|
288
|
+
default_network = alicloud.vpc.Network("default",
|
|
289
|
+
vpc_name=f"{name}-{default_integer['result']}",
|
|
266
290
|
cidr_block="192.168.0.0/16")
|
|
267
|
-
|
|
268
|
-
zone_id=
|
|
291
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
292
|
+
zone_id=default.zones[0].id,
|
|
269
293
|
cidr_block="192.168.0.0/16",
|
|
270
|
-
vpc_id=
|
|
271
|
-
vswitch_name=name)
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
294
|
+
vpc_id=default_network.id,
|
|
295
|
+
vswitch_name=f"{name}-{default_integer['result']}")
|
|
296
|
+
default_resource_share = alicloud.resourcemanager.ResourceShare("default", resource_share_name=f"{name}-{default_integer['result']}")
|
|
297
|
+
default_shared_resource = alicloud.resourcemanager.SharedResource("default",
|
|
298
|
+
resource_share_id=default_resource_share.id,
|
|
299
|
+
resource_id=default_switch.id,
|
|
276
300
|
resource_type="VSwitch")
|
|
277
301
|
```
|
|
278
302
|
|
|
@@ -320,6 +344,7 @@ class SharedResource(pulumi.CustomResource):
|
|
|
320
344
|
if resource_type is None and not opts.urn:
|
|
321
345
|
raise TypeError("Missing required property 'resource_type'")
|
|
322
346
|
__props__.__dict__["resource_type"] = resource_type
|
|
347
|
+
__props__.__dict__["create_time"] = None
|
|
323
348
|
__props__.__dict__["status"] = None
|
|
324
349
|
super(SharedResource, __self__).__init__(
|
|
325
350
|
'alicloud:resourcemanager/sharedResource:SharedResource',
|
|
@@ -331,6 +356,7 @@ class SharedResource(pulumi.CustomResource):
|
|
|
331
356
|
def get(resource_name: str,
|
|
332
357
|
id: pulumi.Input[str],
|
|
333
358
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
359
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
334
360
|
resource_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
335
361
|
resource_share_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
336
362
|
resource_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -342,9 +368,10 @@ class SharedResource(pulumi.CustomResource):
|
|
|
342
368
|
:param str resource_name: The unique name of the resulting resource.
|
|
343
369
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
344
370
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
345
|
-
:param pulumi.Input[_builtins.str]
|
|
346
|
-
:param pulumi.Input[_builtins.str]
|
|
347
|
-
:param pulumi.Input[_builtins.str]
|
|
371
|
+
:param pulumi.Input[_builtins.str] create_time: (Available since v1.259.0) The time when the shared resource was associated with the resource share.
|
|
372
|
+
:param pulumi.Input[_builtins.str] resource_id: The ID of the shared resource.
|
|
373
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
374
|
+
:param pulumi.Input[_builtins.str] resource_type: The type of the shared resource. Valid values:
|
|
348
375
|
- `VSwitch`.
|
|
349
376
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
350
377
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -358,17 +385,26 @@ class SharedResource(pulumi.CustomResource):
|
|
|
358
385
|
|
|
359
386
|
__props__ = _SharedResourceState.__new__(_SharedResourceState)
|
|
360
387
|
|
|
388
|
+
__props__.__dict__["create_time"] = create_time
|
|
361
389
|
__props__.__dict__["resource_id"] = resource_id
|
|
362
390
|
__props__.__dict__["resource_share_id"] = resource_share_id
|
|
363
391
|
__props__.__dict__["resource_type"] = resource_type
|
|
364
392
|
__props__.__dict__["status"] = status
|
|
365
393
|
return SharedResource(resource_name, opts=opts, __props__=__props__)
|
|
366
394
|
|
|
395
|
+
@_builtins.property
|
|
396
|
+
@pulumi.getter(name="createTime")
|
|
397
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
398
|
+
"""
|
|
399
|
+
(Available since v1.259.0) The time when the shared resource was associated with the resource share.
|
|
400
|
+
"""
|
|
401
|
+
return pulumi.get(self, "create_time")
|
|
402
|
+
|
|
367
403
|
@_builtins.property
|
|
368
404
|
@pulumi.getter(name="resourceId")
|
|
369
405
|
def resource_id(self) -> pulumi.Output[_builtins.str]:
|
|
370
406
|
"""
|
|
371
|
-
The
|
|
407
|
+
The ID of the shared resource.
|
|
372
408
|
"""
|
|
373
409
|
return pulumi.get(self, "resource_id")
|
|
374
410
|
|
|
@@ -376,7 +412,7 @@ class SharedResource(pulumi.CustomResource):
|
|
|
376
412
|
@pulumi.getter(name="resourceShareId")
|
|
377
413
|
def resource_share_id(self) -> pulumi.Output[_builtins.str]:
|
|
378
414
|
"""
|
|
379
|
-
The
|
|
415
|
+
The ID of the resource share.
|
|
380
416
|
"""
|
|
381
417
|
return pulumi.get(self, "resource_share_id")
|
|
382
418
|
|
|
@@ -384,7 +420,7 @@ class SharedResource(pulumi.CustomResource):
|
|
|
384
420
|
@pulumi.getter(name="resourceType")
|
|
385
421
|
def resource_type(self) -> pulumi.Output[_builtins.str]:
|
|
386
422
|
"""
|
|
387
|
-
The
|
|
423
|
+
The type of the shared resource. Valid values:
|
|
388
424
|
- `VSwitch`.
|
|
389
425
|
- The following types are added after v1.173.0: `ROSTemplate` and `ServiceCatalogPortfolio`.
|
|
390
426
|
- The following types are added after v1.192.0: `PrefixList` and `Image`.
|
|
@@ -23,8 +23,8 @@ class SharedTargetArgs:
|
|
|
23
23
|
target_id: pulumi.Input[_builtins.str]):
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a SharedTarget resource.
|
|
26
|
-
:param pulumi.Input[_builtins.str] resource_share_id: The
|
|
27
|
-
:param pulumi.Input[_builtins.str] target_id: The
|
|
26
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
27
|
+
:param pulumi.Input[_builtins.str] target_id: The ID of the principal.
|
|
28
28
|
"""
|
|
29
29
|
pulumi.set(__self__, "resource_share_id", resource_share_id)
|
|
30
30
|
pulumi.set(__self__, "target_id", target_id)
|
|
@@ -33,7 +33,7 @@ class SharedTargetArgs:
|
|
|
33
33
|
@pulumi.getter(name="resourceShareId")
|
|
34
34
|
def resource_share_id(self) -> pulumi.Input[_builtins.str]:
|
|
35
35
|
"""
|
|
36
|
-
The
|
|
36
|
+
The ID of the resource share.
|
|
37
37
|
"""
|
|
38
38
|
return pulumi.get(self, "resource_share_id")
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ class SharedTargetArgs:
|
|
|
45
45
|
@pulumi.getter(name="targetId")
|
|
46
46
|
def target_id(self) -> pulumi.Input[_builtins.str]:
|
|
47
47
|
"""
|
|
48
|
-
The
|
|
48
|
+
The ID of the principal.
|
|
49
49
|
"""
|
|
50
50
|
return pulumi.get(self, "target_id")
|
|
51
51
|
|
|
@@ -57,15 +57,19 @@ class SharedTargetArgs:
|
|
|
57
57
|
@pulumi.input_type
|
|
58
58
|
class _SharedTargetState:
|
|
59
59
|
def __init__(__self__, *,
|
|
60
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
60
61
|
resource_share_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
62
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
63
|
target_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
63
64
|
"""
|
|
64
65
|
Input properties used for looking up and filtering SharedTarget resources.
|
|
65
|
-
:param pulumi.Input[_builtins.str]
|
|
66
|
+
:param pulumi.Input[_builtins.str] create_time: (Available since v1.259.0) The time when the association of the entity was created.
|
|
67
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
66
68
|
:param pulumi.Input[_builtins.str] status: The status of shared target.
|
|
67
|
-
:param pulumi.Input[_builtins.str] target_id: The
|
|
69
|
+
:param pulumi.Input[_builtins.str] target_id: The ID of the principal.
|
|
68
70
|
"""
|
|
71
|
+
if create_time is not None:
|
|
72
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
69
73
|
if resource_share_id is not None:
|
|
70
74
|
pulumi.set(__self__, "resource_share_id", resource_share_id)
|
|
71
75
|
if status is not None:
|
|
@@ -73,11 +77,23 @@ class _SharedTargetState:
|
|
|
73
77
|
if target_id is not None:
|
|
74
78
|
pulumi.set(__self__, "target_id", target_id)
|
|
75
79
|
|
|
80
|
+
@_builtins.property
|
|
81
|
+
@pulumi.getter(name="createTime")
|
|
82
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
83
|
+
"""
|
|
84
|
+
(Available since v1.259.0) The time when the association of the entity was created.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "create_time")
|
|
87
|
+
|
|
88
|
+
@create_time.setter
|
|
89
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
90
|
+
pulumi.set(self, "create_time", value)
|
|
91
|
+
|
|
76
92
|
@_builtins.property
|
|
77
93
|
@pulumi.getter(name="resourceShareId")
|
|
78
94
|
def resource_share_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
79
95
|
"""
|
|
80
|
-
The
|
|
96
|
+
The ID of the resource share.
|
|
81
97
|
"""
|
|
82
98
|
return pulumi.get(self, "resource_share_id")
|
|
83
99
|
|
|
@@ -101,7 +117,7 @@ class _SharedTargetState:
|
|
|
101
117
|
@pulumi.getter(name="targetId")
|
|
102
118
|
def target_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
103
119
|
"""
|
|
104
|
-
The
|
|
120
|
+
The ID of the principal.
|
|
105
121
|
"""
|
|
106
122
|
return pulumi.get(self, "target_id")
|
|
107
123
|
|
|
@@ -122,7 +138,7 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
122
138
|
"""
|
|
123
139
|
Provides a Resource Manager Shared Target resource.
|
|
124
140
|
|
|
125
|
-
For information about Resource Manager Shared Target and how to use it, see [What is Shared Target](https://www.alibabacloud.com/help/en/
|
|
141
|
+
For information about Resource Manager Shared Target and how to use it, see [What is Shared Target](https://www.alibabacloud.com/help/en/resource-management/resource-sharing/developer-reference/api-resourcesharing-2020-01-10-associateresourceshare).
|
|
126
142
|
|
|
127
143
|
> **NOTE:** Available since v1.111.0.
|
|
128
144
|
|
|
@@ -133,15 +149,19 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
133
149
|
```python
|
|
134
150
|
import pulumi
|
|
135
151
|
import pulumi_alicloud as alicloud
|
|
152
|
+
import pulumi_random as random
|
|
136
153
|
|
|
137
154
|
config = pulumi.Config()
|
|
138
155
|
name = config.get("name")
|
|
139
156
|
if name is None:
|
|
140
|
-
name = "
|
|
157
|
+
name = "terraform-example"
|
|
141
158
|
default = alicloud.resourcemanager.get_accounts()
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
159
|
+
default_integer = random.index.Integer("default",
|
|
160
|
+
min=10000,
|
|
161
|
+
max=99999)
|
|
162
|
+
default_resource_share = alicloud.resourcemanager.ResourceShare("default", resource_share_name=f"{name}-{default_integer['result']}")
|
|
163
|
+
default_shared_target = alicloud.resourcemanager.SharedTarget("default",
|
|
164
|
+
resource_share_id=default_resource_share.id,
|
|
145
165
|
target_id=default.ids[0])
|
|
146
166
|
```
|
|
147
167
|
|
|
@@ -155,8 +175,8 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
155
175
|
|
|
156
176
|
:param str resource_name: The name of the resource.
|
|
157
177
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
158
|
-
:param pulumi.Input[_builtins.str] resource_share_id: The
|
|
159
|
-
:param pulumi.Input[_builtins.str] target_id: The
|
|
178
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
179
|
+
:param pulumi.Input[_builtins.str] target_id: The ID of the principal.
|
|
160
180
|
"""
|
|
161
181
|
...
|
|
162
182
|
@overload
|
|
@@ -167,7 +187,7 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
167
187
|
"""
|
|
168
188
|
Provides a Resource Manager Shared Target resource.
|
|
169
189
|
|
|
170
|
-
For information about Resource Manager Shared Target and how to use it, see [What is Shared Target](https://www.alibabacloud.com/help/en/
|
|
190
|
+
For information about Resource Manager Shared Target and how to use it, see [What is Shared Target](https://www.alibabacloud.com/help/en/resource-management/resource-sharing/developer-reference/api-resourcesharing-2020-01-10-associateresourceshare).
|
|
171
191
|
|
|
172
192
|
> **NOTE:** Available since v1.111.0.
|
|
173
193
|
|
|
@@ -178,15 +198,19 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
178
198
|
```python
|
|
179
199
|
import pulumi
|
|
180
200
|
import pulumi_alicloud as alicloud
|
|
201
|
+
import pulumi_random as random
|
|
181
202
|
|
|
182
203
|
config = pulumi.Config()
|
|
183
204
|
name = config.get("name")
|
|
184
205
|
if name is None:
|
|
185
|
-
name = "
|
|
206
|
+
name = "terraform-example"
|
|
186
207
|
default = alicloud.resourcemanager.get_accounts()
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
208
|
+
default_integer = random.index.Integer("default",
|
|
209
|
+
min=10000,
|
|
210
|
+
max=99999)
|
|
211
|
+
default_resource_share = alicloud.resourcemanager.ResourceShare("default", resource_share_name=f"{name}-{default_integer['result']}")
|
|
212
|
+
default_shared_target = alicloud.resourcemanager.SharedTarget("default",
|
|
213
|
+
resource_share_id=default_resource_share.id,
|
|
190
214
|
target_id=default.ids[0])
|
|
191
215
|
```
|
|
192
216
|
|
|
@@ -230,6 +254,7 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
230
254
|
if target_id is None and not opts.urn:
|
|
231
255
|
raise TypeError("Missing required property 'target_id'")
|
|
232
256
|
__props__.__dict__["target_id"] = target_id
|
|
257
|
+
__props__.__dict__["create_time"] = None
|
|
233
258
|
__props__.__dict__["status"] = None
|
|
234
259
|
super(SharedTarget, __self__).__init__(
|
|
235
260
|
'alicloud:resourcemanager/sharedTarget:SharedTarget',
|
|
@@ -241,6 +266,7 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
241
266
|
def get(resource_name: str,
|
|
242
267
|
id: pulumi.Input[str],
|
|
243
268
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
269
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
244
270
|
resource_share_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
245
271
|
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
246
272
|
target_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'SharedTarget':
|
|
@@ -251,24 +277,34 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
251
277
|
:param str resource_name: The unique name of the resulting resource.
|
|
252
278
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
253
279
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
254
|
-
:param pulumi.Input[_builtins.str]
|
|
280
|
+
:param pulumi.Input[_builtins.str] create_time: (Available since v1.259.0) The time when the association of the entity was created.
|
|
281
|
+
:param pulumi.Input[_builtins.str] resource_share_id: The ID of the resource share.
|
|
255
282
|
:param pulumi.Input[_builtins.str] status: The status of shared target.
|
|
256
|
-
:param pulumi.Input[_builtins.str] target_id: The
|
|
283
|
+
:param pulumi.Input[_builtins.str] target_id: The ID of the principal.
|
|
257
284
|
"""
|
|
258
285
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
259
286
|
|
|
260
287
|
__props__ = _SharedTargetState.__new__(_SharedTargetState)
|
|
261
288
|
|
|
289
|
+
__props__.__dict__["create_time"] = create_time
|
|
262
290
|
__props__.__dict__["resource_share_id"] = resource_share_id
|
|
263
291
|
__props__.__dict__["status"] = status
|
|
264
292
|
__props__.__dict__["target_id"] = target_id
|
|
265
293
|
return SharedTarget(resource_name, opts=opts, __props__=__props__)
|
|
266
294
|
|
|
295
|
+
@_builtins.property
|
|
296
|
+
@pulumi.getter(name="createTime")
|
|
297
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
|
298
|
+
"""
|
|
299
|
+
(Available since v1.259.0) The time when the association of the entity was created.
|
|
300
|
+
"""
|
|
301
|
+
return pulumi.get(self, "create_time")
|
|
302
|
+
|
|
267
303
|
@_builtins.property
|
|
268
304
|
@pulumi.getter(name="resourceShareId")
|
|
269
305
|
def resource_share_id(self) -> pulumi.Output[_builtins.str]:
|
|
270
306
|
"""
|
|
271
|
-
The
|
|
307
|
+
The ID of the resource share.
|
|
272
308
|
"""
|
|
273
309
|
return pulumi.get(self, "resource_share_id")
|
|
274
310
|
|
|
@@ -284,7 +320,7 @@ class SharedTarget(pulumi.CustomResource):
|
|
|
284
320
|
@pulumi.getter(name="targetId")
|
|
285
321
|
def target_id(self) -> pulumi.Output[_builtins.str]:
|
|
286
322
|
"""
|
|
287
|
-
The
|
|
323
|
+
The ID of the principal.
|
|
288
324
|
"""
|
|
289
325
|
return pulumi.get(self, "target_id")
|
|
290
326
|
|
pulumi_alicloud/sls/__init__.py
CHANGED
|
@@ -11,6 +11,10 @@ from .collection_policy import *
|
|
|
11
11
|
from .etl import *
|
|
12
12
|
from .get_alerts import *
|
|
13
13
|
from .get_etls import *
|
|
14
|
+
from .get_logtail_configs import *
|
|
15
|
+
from .get_machine_groups import *
|
|
16
|
+
from .logtail_config import *
|
|
17
|
+
from .machine_group import *
|
|
14
18
|
from .oss_export_sink import *
|
|
15
19
|
from .scheduled_sql import *
|
|
16
20
|
from ._inputs import *
|
pulumi_alicloud/sls/_inputs.py
CHANGED
|
@@ -57,6 +57,10 @@ __all__ = [
|
|
|
57
57
|
'EtlConfigurationArgsDict',
|
|
58
58
|
'EtlConfigurationSinkArgs',
|
|
59
59
|
'EtlConfigurationSinkArgsDict',
|
|
60
|
+
'LogtailConfigOutputDetailArgs',
|
|
61
|
+
'LogtailConfigOutputDetailArgsDict',
|
|
62
|
+
'MachineGroupGroupAttributeArgs',
|
|
63
|
+
'MachineGroupGroupAttributeArgsDict',
|
|
60
64
|
'OssExportSinkConfigurationArgs',
|
|
61
65
|
'OssExportSinkConfigurationArgsDict',
|
|
62
66
|
'OssExportSinkConfigurationSinkArgs',
|
|
@@ -2238,6 +2242,130 @@ class EtlConfigurationSinkArgs:
|
|
|
2238
2242
|
pulumi.set(self, "role_arn", value)
|
|
2239
2243
|
|
|
2240
2244
|
|
|
2245
|
+
if not MYPY:
|
|
2246
|
+
class LogtailConfigOutputDetailArgsDict(TypedDict):
|
|
2247
|
+
endpoint: NotRequired[pulumi.Input[_builtins.str]]
|
|
2248
|
+
"""
|
|
2249
|
+
The endpoint of the log project.
|
|
2250
|
+
"""
|
|
2251
|
+
logstore_name: NotRequired[pulumi.Input[_builtins.str]]
|
|
2252
|
+
"""
|
|
2253
|
+
The name of the output target logstore.
|
|
2254
|
+
"""
|
|
2255
|
+
region: NotRequired[pulumi.Input[_builtins.str]]
|
|
2256
|
+
"""
|
|
2257
|
+
Region
|
|
2258
|
+
"""
|
|
2259
|
+
elif False:
|
|
2260
|
+
LogtailConfigOutputDetailArgsDict: TypeAlias = Mapping[str, Any]
|
|
2261
|
+
|
|
2262
|
+
@pulumi.input_type
|
|
2263
|
+
class LogtailConfigOutputDetailArgs:
|
|
2264
|
+
def __init__(__self__, *,
|
|
2265
|
+
endpoint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
2266
|
+
logstore_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
2267
|
+
region: Optional[pulumi.Input[_builtins.str]] = None):
|
|
2268
|
+
"""
|
|
2269
|
+
:param pulumi.Input[_builtins.str] endpoint: The endpoint of the log project.
|
|
2270
|
+
:param pulumi.Input[_builtins.str] logstore_name: The name of the output target logstore.
|
|
2271
|
+
:param pulumi.Input[_builtins.str] region: Region
|
|
2272
|
+
"""
|
|
2273
|
+
if endpoint is not None:
|
|
2274
|
+
pulumi.set(__self__, "endpoint", endpoint)
|
|
2275
|
+
if logstore_name is not None:
|
|
2276
|
+
pulumi.set(__self__, "logstore_name", logstore_name)
|
|
2277
|
+
if region is not None:
|
|
2278
|
+
pulumi.set(__self__, "region", region)
|
|
2279
|
+
|
|
2280
|
+
@_builtins.property
|
|
2281
|
+
@pulumi.getter
|
|
2282
|
+
def endpoint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2283
|
+
"""
|
|
2284
|
+
The endpoint of the log project.
|
|
2285
|
+
"""
|
|
2286
|
+
return pulumi.get(self, "endpoint")
|
|
2287
|
+
|
|
2288
|
+
@endpoint.setter
|
|
2289
|
+
def endpoint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
2290
|
+
pulumi.set(self, "endpoint", value)
|
|
2291
|
+
|
|
2292
|
+
@_builtins.property
|
|
2293
|
+
@pulumi.getter(name="logstoreName")
|
|
2294
|
+
def logstore_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2295
|
+
"""
|
|
2296
|
+
The name of the output target logstore.
|
|
2297
|
+
"""
|
|
2298
|
+
return pulumi.get(self, "logstore_name")
|
|
2299
|
+
|
|
2300
|
+
@logstore_name.setter
|
|
2301
|
+
def logstore_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
2302
|
+
pulumi.set(self, "logstore_name", value)
|
|
2303
|
+
|
|
2304
|
+
@_builtins.property
|
|
2305
|
+
@pulumi.getter
|
|
2306
|
+
def region(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2307
|
+
"""
|
|
2308
|
+
Region
|
|
2309
|
+
"""
|
|
2310
|
+
return pulumi.get(self, "region")
|
|
2311
|
+
|
|
2312
|
+
@region.setter
|
|
2313
|
+
def region(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
2314
|
+
pulumi.set(self, "region", value)
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
if not MYPY:
|
|
2318
|
+
class MachineGroupGroupAttributeArgsDict(TypedDict):
|
|
2319
|
+
external_name: NotRequired[pulumi.Input[_builtins.str]]
|
|
2320
|
+
"""
|
|
2321
|
+
The external management system identification on which the machine group depends.
|
|
2322
|
+
"""
|
|
2323
|
+
group_topic: NotRequired[pulumi.Input[_builtins.str]]
|
|
2324
|
+
"""
|
|
2325
|
+
The log topic of the machine group.
|
|
2326
|
+
"""
|
|
2327
|
+
elif False:
|
|
2328
|
+
MachineGroupGroupAttributeArgsDict: TypeAlias = Mapping[str, Any]
|
|
2329
|
+
|
|
2330
|
+
@pulumi.input_type
|
|
2331
|
+
class MachineGroupGroupAttributeArgs:
|
|
2332
|
+
def __init__(__self__, *,
|
|
2333
|
+
external_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
2334
|
+
group_topic: Optional[pulumi.Input[_builtins.str]] = None):
|
|
2335
|
+
"""
|
|
2336
|
+
:param pulumi.Input[_builtins.str] external_name: The external management system identification on which the machine group depends.
|
|
2337
|
+
:param pulumi.Input[_builtins.str] group_topic: The log topic of the machine group.
|
|
2338
|
+
"""
|
|
2339
|
+
if external_name is not None:
|
|
2340
|
+
pulumi.set(__self__, "external_name", external_name)
|
|
2341
|
+
if group_topic is not None:
|
|
2342
|
+
pulumi.set(__self__, "group_topic", group_topic)
|
|
2343
|
+
|
|
2344
|
+
@_builtins.property
|
|
2345
|
+
@pulumi.getter(name="externalName")
|
|
2346
|
+
def external_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2347
|
+
"""
|
|
2348
|
+
The external management system identification on which the machine group depends.
|
|
2349
|
+
"""
|
|
2350
|
+
return pulumi.get(self, "external_name")
|
|
2351
|
+
|
|
2352
|
+
@external_name.setter
|
|
2353
|
+
def external_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
2354
|
+
pulumi.set(self, "external_name", value)
|
|
2355
|
+
|
|
2356
|
+
@_builtins.property
|
|
2357
|
+
@pulumi.getter(name="groupTopic")
|
|
2358
|
+
def group_topic(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
2359
|
+
"""
|
|
2360
|
+
The log topic of the machine group.
|
|
2361
|
+
"""
|
|
2362
|
+
return pulumi.get(self, "group_topic")
|
|
2363
|
+
|
|
2364
|
+
@group_topic.setter
|
|
2365
|
+
def group_topic(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
2366
|
+
pulumi.set(self, "group_topic", value)
|
|
2367
|
+
|
|
2368
|
+
|
|
2241
2369
|
if not MYPY:
|
|
2242
2370
|
class OssExportSinkConfigurationArgsDict(TypedDict):
|
|
2243
2371
|
from_time: pulumi.Input[_builtins.int]
|