pulumi-alicloud 3.73.0__py3-none-any.whl → 3.73.0a1736313335__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 +0 -59
- pulumi_alicloud/alb/__init__.py +0 -1
- pulumi_alicloud/alb/_inputs.py +6 -6
- pulumi_alicloud/alb/a_script.py +98 -116
- pulumi_alicloud/alb/outputs.py +4 -4
- pulumi_alicloud/alikafka/instance.py +70 -188
- pulumi_alicloud/amqp/instance.py +28 -77
- pulumi_alicloud/bastionhost/_inputs.py +38 -40
- pulumi_alicloud/bastionhost/get_instances.py +22 -6
- pulumi_alicloud/bastionhost/outputs.py +49 -60
- pulumi_alicloud/cen/instance_grant.py +0 -4
- pulumi_alicloud/cms/_inputs.py +15 -21
- pulumi_alicloud/cms/alarm.py +7 -7
- pulumi_alicloud/cms/outputs.py +10 -14
- pulumi_alicloud/cs/get_edge_kubernetes_clusters.py +2 -4
- pulumi_alicloud/cs/get_managed_kubernetes_clusters.py +0 -2
- pulumi_alicloud/cs/kubernetes.py +14 -14
- pulumi_alicloud/cs/managed_kubernetes.py +47 -137
- pulumi_alicloud/dataworks/__init__.py +0 -4
- pulumi_alicloud/dataworks/_inputs.py +0 -1534
- pulumi_alicloud/dataworks/outputs.py +0 -1247
- pulumi_alicloud/dcdn/waf_rule.py +14 -14
- pulumi_alicloud/dns/get_alidns_domains.py +2 -7
- pulumi_alicloud/dns/outputs.py +0 -8
- pulumi_alicloud/ecs/ecs_launch_template.py +0 -122
- pulumi_alicloud/ecs/ecs_network_interface.py +14 -14
- pulumi_alicloud/ecs/ecs_session_manager_status.py +18 -18
- pulumi_alicloud/ecs/instance.py +7 -7
- pulumi_alicloud/ecs/launch_template.py +0 -88
- pulumi_alicloud/fc/custom_domain.py +2 -2
- pulumi_alicloud/fc/function.py +4 -32
- pulumi_alicloud/fc/v2_function.py +0 -20
- pulumi_alicloud/hbr/__init__.py +0 -1
- pulumi_alicloud/ims/oidc_provider.py +0 -28
- pulumi_alicloud/log/resource_record.py +26 -42
- pulumi_alicloud/message/service_queue.py +59 -106
- pulumi_alicloud/message/service_topic.py +37 -182
- pulumi_alicloud/mongodb/account.py +163 -138
- pulumi_alicloud/oos/secret_parameter.py +9 -84
- pulumi_alicloud/oss/bucket.py +1 -1
- pulumi_alicloud/oss/bucket_policy.py +4 -2
- pulumi_alicloud/oss/bucket_referer.py +4 -2
- pulumi_alicloud/oss/get_buckets.py +2 -16
- pulumi_alicloud/oss/outputs.py +17 -18
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/sae/application.py +7 -84
- pulumi_alicloud/sls/collection_policy.py +2 -2
- pulumi_alicloud/vpc/__init__.py +0 -5
- pulumi_alicloud/vpc/get_networks.py +0 -3
- pulumi_alicloud/vpc/nat_gateway.py +7 -145
- pulumi_alicloud/vpc/outputs.py +0 -777
- pulumi_alicloud/vpc/snat_entry.py +48 -107
- pulumi_alicloud/vpn/_inputs.py +72 -96
- pulumi_alicloud/vpn/connection.py +28 -24
- pulumi_alicloud/vpn/outputs.py +48 -64
- pulumi_alicloud/yundun/_inputs.py +24 -26
- pulumi_alicloud/yundun/outputs.py +22 -37
- {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/METADATA +2 -2
- {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/RECORD +61 -78
- {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/WHEEL +1 -1
- pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +0 -303
- pulumi_alicloud/cloudcontrol/__init__.py +0 -12
- pulumi_alicloud/cloudcontrol/get_prices.py +0 -199
- pulumi_alicloud/cloudcontrol/get_products.py +0 -187
- pulumi_alicloud/cloudcontrol/get_resource_types.py +0 -178
- pulumi_alicloud/cloudcontrol/outputs.py +0 -688
- pulumi_alicloud/cloudcontrol/resource.py +0 -407
- pulumi_alicloud/dataworks/di_alarm_rule.py +0 -708
- pulumi_alicloud/dataworks/di_job.py +0 -1005
- pulumi_alicloud/dataworks/dw_resource_group.py +0 -703
- pulumi_alicloud/dataworks/network.py +0 -331
- pulumi_alicloud/hbr/cross_account.py +0 -338
- pulumi_alicloud/vpc/get_ipam_ipam_pool_allocations.py +0 -295
- pulumi_alicloud/vpc/get_ipam_ipam_pool_cidrs.py +0 -196
- pulumi_alicloud/vpc/get_ipam_ipam_pools.py +0 -353
- pulumi_alicloud/vpc/get_ipam_ipam_scopes.py +0 -333
- pulumi_alicloud/vpc/get_ipam_ipams.py +0 -291
- {pulumi_alicloud-3.73.0.dist-info → pulumi_alicloud-3.73.0a1736313335.dist-info}/top_level.txt +0 -0
|
@@ -1,303 +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__ = ['LoadBalancerAccessLogConfigAttachmentArgs', 'LoadBalancerAccessLogConfigAttachment']
|
|
18
|
-
|
|
19
|
-
@pulumi.input_type
|
|
20
|
-
class LoadBalancerAccessLogConfigAttachmentArgs:
|
|
21
|
-
def __init__(__self__, *,
|
|
22
|
-
load_balancer_id: pulumi.Input[str],
|
|
23
|
-
log_project: pulumi.Input[str],
|
|
24
|
-
log_store: pulumi.Input[str]):
|
|
25
|
-
"""
|
|
26
|
-
The set of arguments for constructing a LoadBalancerAccessLogConfigAttachment resource.
|
|
27
|
-
:param pulumi.Input[str] load_balancer_id: The ID of the load balancing instance.
|
|
28
|
-
:param pulumi.Input[str] log_project: The log items shipped by the access log.
|
|
29
|
-
:param pulumi.Input[str] log_store: Logstore for log delivery.
|
|
30
|
-
"""
|
|
31
|
-
pulumi.set(__self__, "load_balancer_id", load_balancer_id)
|
|
32
|
-
pulumi.set(__self__, "log_project", log_project)
|
|
33
|
-
pulumi.set(__self__, "log_store", log_store)
|
|
34
|
-
|
|
35
|
-
@property
|
|
36
|
-
@pulumi.getter(name="loadBalancerId")
|
|
37
|
-
def load_balancer_id(self) -> pulumi.Input[str]:
|
|
38
|
-
"""
|
|
39
|
-
The ID of the load balancing instance.
|
|
40
|
-
"""
|
|
41
|
-
return pulumi.get(self, "load_balancer_id")
|
|
42
|
-
|
|
43
|
-
@load_balancer_id.setter
|
|
44
|
-
def load_balancer_id(self, value: pulumi.Input[str]):
|
|
45
|
-
pulumi.set(self, "load_balancer_id", value)
|
|
46
|
-
|
|
47
|
-
@property
|
|
48
|
-
@pulumi.getter(name="logProject")
|
|
49
|
-
def log_project(self) -> pulumi.Input[str]:
|
|
50
|
-
"""
|
|
51
|
-
The log items shipped by the access log.
|
|
52
|
-
"""
|
|
53
|
-
return pulumi.get(self, "log_project")
|
|
54
|
-
|
|
55
|
-
@log_project.setter
|
|
56
|
-
def log_project(self, value: pulumi.Input[str]):
|
|
57
|
-
pulumi.set(self, "log_project", value)
|
|
58
|
-
|
|
59
|
-
@property
|
|
60
|
-
@pulumi.getter(name="logStore")
|
|
61
|
-
def log_store(self) -> pulumi.Input[str]:
|
|
62
|
-
"""
|
|
63
|
-
Logstore for log delivery.
|
|
64
|
-
"""
|
|
65
|
-
return pulumi.get(self, "log_store")
|
|
66
|
-
|
|
67
|
-
@log_store.setter
|
|
68
|
-
def log_store(self, value: pulumi.Input[str]):
|
|
69
|
-
pulumi.set(self, "log_store", value)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
@pulumi.input_type
|
|
73
|
-
class _LoadBalancerAccessLogConfigAttachmentState:
|
|
74
|
-
def __init__(__self__, *,
|
|
75
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
|
76
|
-
load_balancer_id: Optional[pulumi.Input[str]] = None,
|
|
77
|
-
log_project: Optional[pulumi.Input[str]] = None,
|
|
78
|
-
log_store: Optional[pulumi.Input[str]] = None):
|
|
79
|
-
"""
|
|
80
|
-
Input properties used for looking up and filtering LoadBalancerAccessLogConfigAttachment resources.
|
|
81
|
-
:param pulumi.Input[str] create_time: The creation time of the resource
|
|
82
|
-
:param pulumi.Input[str] load_balancer_id: The ID of the load balancing instance.
|
|
83
|
-
:param pulumi.Input[str] log_project: The log items shipped by the access log.
|
|
84
|
-
:param pulumi.Input[str] log_store: Logstore for log delivery.
|
|
85
|
-
"""
|
|
86
|
-
if create_time is not None:
|
|
87
|
-
pulumi.set(__self__, "create_time", create_time)
|
|
88
|
-
if load_balancer_id is not None:
|
|
89
|
-
pulumi.set(__self__, "load_balancer_id", load_balancer_id)
|
|
90
|
-
if log_project is not None:
|
|
91
|
-
pulumi.set(__self__, "log_project", log_project)
|
|
92
|
-
if log_store is not None:
|
|
93
|
-
pulumi.set(__self__, "log_store", log_store)
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
@pulumi.getter(name="createTime")
|
|
97
|
-
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
98
|
-
"""
|
|
99
|
-
The creation time of the resource
|
|
100
|
-
"""
|
|
101
|
-
return pulumi.get(self, "create_time")
|
|
102
|
-
|
|
103
|
-
@create_time.setter
|
|
104
|
-
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
105
|
-
pulumi.set(self, "create_time", value)
|
|
106
|
-
|
|
107
|
-
@property
|
|
108
|
-
@pulumi.getter(name="loadBalancerId")
|
|
109
|
-
def load_balancer_id(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
-
"""
|
|
111
|
-
The ID of the load balancing instance.
|
|
112
|
-
"""
|
|
113
|
-
return pulumi.get(self, "load_balancer_id")
|
|
114
|
-
|
|
115
|
-
@load_balancer_id.setter
|
|
116
|
-
def load_balancer_id(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
-
pulumi.set(self, "load_balancer_id", value)
|
|
118
|
-
|
|
119
|
-
@property
|
|
120
|
-
@pulumi.getter(name="logProject")
|
|
121
|
-
def log_project(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
-
"""
|
|
123
|
-
The log items shipped by the access log.
|
|
124
|
-
"""
|
|
125
|
-
return pulumi.get(self, "log_project")
|
|
126
|
-
|
|
127
|
-
@log_project.setter
|
|
128
|
-
def log_project(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
-
pulumi.set(self, "log_project", value)
|
|
130
|
-
|
|
131
|
-
@property
|
|
132
|
-
@pulumi.getter(name="logStore")
|
|
133
|
-
def log_store(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
-
"""
|
|
135
|
-
Logstore for log delivery.
|
|
136
|
-
"""
|
|
137
|
-
return pulumi.get(self, "log_store")
|
|
138
|
-
|
|
139
|
-
@log_store.setter
|
|
140
|
-
def log_store(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
-
pulumi.set(self, "log_store", value)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
class LoadBalancerAccessLogConfigAttachment(pulumi.CustomResource):
|
|
145
|
-
@overload
|
|
146
|
-
def __init__(__self__,
|
|
147
|
-
resource_name: str,
|
|
148
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
149
|
-
load_balancer_id: Optional[pulumi.Input[str]] = None,
|
|
150
|
-
log_project: Optional[pulumi.Input[str]] = None,
|
|
151
|
-
log_store: Optional[pulumi.Input[str]] = None,
|
|
152
|
-
__props__=None):
|
|
153
|
-
"""
|
|
154
|
-
Provides a Application Load Balancer (ALB) Load Balancer Access Log Config Attachment resource.
|
|
155
|
-
|
|
156
|
-
Attachment between ALB and AccessLog.
|
|
157
|
-
|
|
158
|
-
For information about Application Load Balancer (ALB) Load Balancer Access Log Config Attachment and how to use it, see [What is Load Balancer Access Log Config Attachment](https://www.alibabacloud.com/help/en/).
|
|
159
|
-
|
|
160
|
-
> **NOTE:** Available since v1.241.0.
|
|
161
|
-
|
|
162
|
-
## Import
|
|
163
|
-
|
|
164
|
-
Application Load Balancer (ALB) Load Balancer Access Log Config Attachment can be imported using the id, e.g.
|
|
165
|
-
|
|
166
|
-
```sh
|
|
167
|
-
$ pulumi import alicloud:alb/loadBalancerAccessLogConfigAttachment:LoadBalancerAccessLogConfigAttachment example <id>
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
:param str resource_name: The name of the resource.
|
|
171
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
172
|
-
:param pulumi.Input[str] load_balancer_id: The ID of the load balancing instance.
|
|
173
|
-
:param pulumi.Input[str] log_project: The log items shipped by the access log.
|
|
174
|
-
:param pulumi.Input[str] log_store: Logstore for log delivery.
|
|
175
|
-
"""
|
|
176
|
-
...
|
|
177
|
-
@overload
|
|
178
|
-
def __init__(__self__,
|
|
179
|
-
resource_name: str,
|
|
180
|
-
args: LoadBalancerAccessLogConfigAttachmentArgs,
|
|
181
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
|
182
|
-
"""
|
|
183
|
-
Provides a Application Load Balancer (ALB) Load Balancer Access Log Config Attachment resource.
|
|
184
|
-
|
|
185
|
-
Attachment between ALB and AccessLog.
|
|
186
|
-
|
|
187
|
-
For information about Application Load Balancer (ALB) Load Balancer Access Log Config Attachment and how to use it, see [What is Load Balancer Access Log Config Attachment](https://www.alibabacloud.com/help/en/).
|
|
188
|
-
|
|
189
|
-
> **NOTE:** Available since v1.241.0.
|
|
190
|
-
|
|
191
|
-
## Import
|
|
192
|
-
|
|
193
|
-
Application Load Balancer (ALB) Load Balancer Access Log Config Attachment can be imported using the id, e.g.
|
|
194
|
-
|
|
195
|
-
```sh
|
|
196
|
-
$ pulumi import alicloud:alb/loadBalancerAccessLogConfigAttachment:LoadBalancerAccessLogConfigAttachment example <id>
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
:param str resource_name: The name of the resource.
|
|
200
|
-
:param LoadBalancerAccessLogConfigAttachmentArgs args: The arguments to use to populate this resource's properties.
|
|
201
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
202
|
-
"""
|
|
203
|
-
...
|
|
204
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
205
|
-
resource_args, opts = _utilities.get_resource_args_opts(LoadBalancerAccessLogConfigAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
206
|
-
if resource_args is not None:
|
|
207
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
208
|
-
else:
|
|
209
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
|
210
|
-
|
|
211
|
-
def _internal_init(__self__,
|
|
212
|
-
resource_name: str,
|
|
213
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
214
|
-
load_balancer_id: Optional[pulumi.Input[str]] = None,
|
|
215
|
-
log_project: Optional[pulumi.Input[str]] = None,
|
|
216
|
-
log_store: Optional[pulumi.Input[str]] = None,
|
|
217
|
-
__props__=None):
|
|
218
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
219
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
|
220
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
221
|
-
if opts.id is None:
|
|
222
|
-
if __props__ is not None:
|
|
223
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
224
|
-
__props__ = LoadBalancerAccessLogConfigAttachmentArgs.__new__(LoadBalancerAccessLogConfigAttachmentArgs)
|
|
225
|
-
|
|
226
|
-
if load_balancer_id is None and not opts.urn:
|
|
227
|
-
raise TypeError("Missing required property 'load_balancer_id'")
|
|
228
|
-
__props__.__dict__["load_balancer_id"] = load_balancer_id
|
|
229
|
-
if log_project is None and not opts.urn:
|
|
230
|
-
raise TypeError("Missing required property 'log_project'")
|
|
231
|
-
__props__.__dict__["log_project"] = log_project
|
|
232
|
-
if log_store is None and not opts.urn:
|
|
233
|
-
raise TypeError("Missing required property 'log_store'")
|
|
234
|
-
__props__.__dict__["log_store"] = log_store
|
|
235
|
-
__props__.__dict__["create_time"] = None
|
|
236
|
-
super(LoadBalancerAccessLogConfigAttachment, __self__).__init__(
|
|
237
|
-
'alicloud:alb/loadBalancerAccessLogConfigAttachment:LoadBalancerAccessLogConfigAttachment',
|
|
238
|
-
resource_name,
|
|
239
|
-
__props__,
|
|
240
|
-
opts)
|
|
241
|
-
|
|
242
|
-
@staticmethod
|
|
243
|
-
def get(resource_name: str,
|
|
244
|
-
id: pulumi.Input[str],
|
|
245
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
246
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
|
247
|
-
load_balancer_id: Optional[pulumi.Input[str]] = None,
|
|
248
|
-
log_project: Optional[pulumi.Input[str]] = None,
|
|
249
|
-
log_store: Optional[pulumi.Input[str]] = None) -> 'LoadBalancerAccessLogConfigAttachment':
|
|
250
|
-
"""
|
|
251
|
-
Get an existing LoadBalancerAccessLogConfigAttachment resource's state with the given name, id, and optional extra
|
|
252
|
-
properties used to qualify the lookup.
|
|
253
|
-
|
|
254
|
-
:param str resource_name: The unique name of the resulting resource.
|
|
255
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
256
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
257
|
-
:param pulumi.Input[str] create_time: The creation time of the resource
|
|
258
|
-
:param pulumi.Input[str] load_balancer_id: The ID of the load balancing instance.
|
|
259
|
-
:param pulumi.Input[str] log_project: The log items shipped by the access log.
|
|
260
|
-
:param pulumi.Input[str] log_store: Logstore for log delivery.
|
|
261
|
-
"""
|
|
262
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
263
|
-
|
|
264
|
-
__props__ = _LoadBalancerAccessLogConfigAttachmentState.__new__(_LoadBalancerAccessLogConfigAttachmentState)
|
|
265
|
-
|
|
266
|
-
__props__.__dict__["create_time"] = create_time
|
|
267
|
-
__props__.__dict__["load_balancer_id"] = load_balancer_id
|
|
268
|
-
__props__.__dict__["log_project"] = log_project
|
|
269
|
-
__props__.__dict__["log_store"] = log_store
|
|
270
|
-
return LoadBalancerAccessLogConfigAttachment(resource_name, opts=opts, __props__=__props__)
|
|
271
|
-
|
|
272
|
-
@property
|
|
273
|
-
@pulumi.getter(name="createTime")
|
|
274
|
-
def create_time(self) -> pulumi.Output[str]:
|
|
275
|
-
"""
|
|
276
|
-
The creation time of the resource
|
|
277
|
-
"""
|
|
278
|
-
return pulumi.get(self, "create_time")
|
|
279
|
-
|
|
280
|
-
@property
|
|
281
|
-
@pulumi.getter(name="loadBalancerId")
|
|
282
|
-
def load_balancer_id(self) -> pulumi.Output[str]:
|
|
283
|
-
"""
|
|
284
|
-
The ID of the load balancing instance.
|
|
285
|
-
"""
|
|
286
|
-
return pulumi.get(self, "load_balancer_id")
|
|
287
|
-
|
|
288
|
-
@property
|
|
289
|
-
@pulumi.getter(name="logProject")
|
|
290
|
-
def log_project(self) -> pulumi.Output[str]:
|
|
291
|
-
"""
|
|
292
|
-
The log items shipped by the access log.
|
|
293
|
-
"""
|
|
294
|
-
return pulumi.get(self, "log_project")
|
|
295
|
-
|
|
296
|
-
@property
|
|
297
|
-
@pulumi.getter(name="logStore")
|
|
298
|
-
def log_store(self) -> pulumi.Output[str]:
|
|
299
|
-
"""
|
|
300
|
-
Logstore for log delivery.
|
|
301
|
-
"""
|
|
302
|
-
return pulumi.get(self, "log_store")
|
|
303
|
-
|
|
@@ -1,12 +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
|
-
from .. import _utilities
|
|
6
|
-
import typing
|
|
7
|
-
# Export this package's modules as members:
|
|
8
|
-
from .get_prices import *
|
|
9
|
-
from .get_products import *
|
|
10
|
-
from .get_resource_types import *
|
|
11
|
-
from .resource import *
|
|
12
|
-
from . import outputs
|
|
@@ -1,199 +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
|
-
from . import outputs
|
|
17
|
-
|
|
18
|
-
__all__ = [
|
|
19
|
-
'GetPricesResult',
|
|
20
|
-
'AwaitableGetPricesResult',
|
|
21
|
-
'get_prices',
|
|
22
|
-
'get_prices_output',
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
@pulumi.output_type
|
|
26
|
-
class GetPricesResult:
|
|
27
|
-
"""
|
|
28
|
-
A collection of values returned by getPrices.
|
|
29
|
-
"""
|
|
30
|
-
def __init__(__self__, desire_attributes=None, id=None, output_file=None, prices=None, product=None, resource_code=None):
|
|
31
|
-
if desire_attributes and not isinstance(desire_attributes, dict):
|
|
32
|
-
raise TypeError("Expected argument 'desire_attributes' to be a dict")
|
|
33
|
-
pulumi.set(__self__, "desire_attributes", desire_attributes)
|
|
34
|
-
if id and not isinstance(id, str):
|
|
35
|
-
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
-
pulumi.set(__self__, "id", id)
|
|
37
|
-
if output_file and not isinstance(output_file, str):
|
|
38
|
-
raise TypeError("Expected argument 'output_file' to be a str")
|
|
39
|
-
pulumi.set(__self__, "output_file", output_file)
|
|
40
|
-
if prices and not isinstance(prices, list):
|
|
41
|
-
raise TypeError("Expected argument 'prices' to be a list")
|
|
42
|
-
pulumi.set(__self__, "prices", prices)
|
|
43
|
-
if product and not isinstance(product, str):
|
|
44
|
-
raise TypeError("Expected argument 'product' to be a str")
|
|
45
|
-
pulumi.set(__self__, "product", product)
|
|
46
|
-
if resource_code and not isinstance(resource_code, str):
|
|
47
|
-
raise TypeError("Expected argument 'resource_code' to be a str")
|
|
48
|
-
pulumi.set(__self__, "resource_code", resource_code)
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
@pulumi.getter(name="desireAttributes")
|
|
52
|
-
def desire_attributes(self) -> Optional[Mapping[str, str]]:
|
|
53
|
-
return pulumi.get(self, "desire_attributes")
|
|
54
|
-
|
|
55
|
-
@property
|
|
56
|
-
@pulumi.getter
|
|
57
|
-
def id(self) -> str:
|
|
58
|
-
"""
|
|
59
|
-
The provider-assigned unique ID for this managed resource.
|
|
60
|
-
"""
|
|
61
|
-
return pulumi.get(self, "id")
|
|
62
|
-
|
|
63
|
-
@property
|
|
64
|
-
@pulumi.getter(name="outputFile")
|
|
65
|
-
def output_file(self) -> Optional[str]:
|
|
66
|
-
return pulumi.get(self, "output_file")
|
|
67
|
-
|
|
68
|
-
@property
|
|
69
|
-
@pulumi.getter
|
|
70
|
-
def prices(self) -> Sequence['outputs.GetPricesPriceResult']:
|
|
71
|
-
"""
|
|
72
|
-
A list of Price Entries. Each element contains the following attributes:
|
|
73
|
-
"""
|
|
74
|
-
return pulumi.get(self, "prices")
|
|
75
|
-
|
|
76
|
-
@property
|
|
77
|
-
@pulumi.getter
|
|
78
|
-
def product(self) -> str:
|
|
79
|
-
return pulumi.get(self, "product")
|
|
80
|
-
|
|
81
|
-
@property
|
|
82
|
-
@pulumi.getter(name="resourceCode")
|
|
83
|
-
def resource_code(self) -> str:
|
|
84
|
-
return pulumi.get(self, "resource_code")
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class AwaitableGetPricesResult(GetPricesResult):
|
|
88
|
-
# pylint: disable=using-constant-test
|
|
89
|
-
def __await__(self):
|
|
90
|
-
if False:
|
|
91
|
-
yield self
|
|
92
|
-
return GetPricesResult(
|
|
93
|
-
desire_attributes=self.desire_attributes,
|
|
94
|
-
id=self.id,
|
|
95
|
-
output_file=self.output_file,
|
|
96
|
-
prices=self.prices,
|
|
97
|
-
product=self.product,
|
|
98
|
-
resource_code=self.resource_code)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
def get_prices(desire_attributes: Optional[Mapping[str, str]] = None,
|
|
102
|
-
output_file: Optional[str] = None,
|
|
103
|
-
product: Optional[str] = None,
|
|
104
|
-
resource_code: Optional[str] = None,
|
|
105
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPricesResult:
|
|
106
|
-
"""
|
|
107
|
-
This data source provides Cloud Control Price available to the user.[What is Price](https://www.alibabacloud.com/help/en/)
|
|
108
|
-
|
|
109
|
-
> **NOTE:** Available since v1.241.0.
|
|
110
|
-
|
|
111
|
-
## Example Usage
|
|
112
|
-
|
|
113
|
-
```python
|
|
114
|
-
import pulumi
|
|
115
|
-
import pulumi_alicloud as alicloud
|
|
116
|
-
|
|
117
|
-
config = pulumi.Config()
|
|
118
|
-
name = config.get("name")
|
|
119
|
-
if name is None:
|
|
120
|
-
name = "terraform-example"
|
|
121
|
-
default = alicloud.cloudcontrol.get_prices(desire_attributes={
|
|
122
|
-
"AddressType": "internet",
|
|
123
|
-
"PaymentType": "PayAsYouGo",
|
|
124
|
-
},
|
|
125
|
-
product="SLB",
|
|
126
|
-
resource_code="LoadBalancer")
|
|
127
|
-
pulumi.export("alicloudCloudControlPriceExampleId", default.prices[0].discount_price)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
:param Mapping[str, str] desire_attributes: This property represent the detailed configuration of the Resource which you are going to get price. Give same content as DesireAttributes of the 'Resource' Resource when start Create operation. 'PaymentType' is necessary when in DesireAttributes. Here is a probably example when you get the price of SLB LoadBalancer:```json{"LoadBalancerName": "cc-test","Bandwidth": 6,"PaymentType": "PayAsYouGo","AddressType": "internet","LoadBalancerSpec": "slb.s3.small","InternetChargeType": "paybybandwidth"} See `DesireAttributes` below.
|
|
132
|
-
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
133
|
-
:param str product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
|
|
134
|
-
:param str resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
|
|
135
|
-
"""
|
|
136
|
-
__args__ = dict()
|
|
137
|
-
__args__['desireAttributes'] = desire_attributes
|
|
138
|
-
__args__['outputFile'] = output_file
|
|
139
|
-
__args__['product'] = product
|
|
140
|
-
__args__['resourceCode'] = resource_code
|
|
141
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
142
|
-
__ret__ = pulumi.runtime.invoke('alicloud:cloudcontrol/getPrices:getPrices', __args__, opts=opts, typ=GetPricesResult).value
|
|
143
|
-
|
|
144
|
-
return AwaitableGetPricesResult(
|
|
145
|
-
desire_attributes=pulumi.get(__ret__, 'desire_attributes'),
|
|
146
|
-
id=pulumi.get(__ret__, 'id'),
|
|
147
|
-
output_file=pulumi.get(__ret__, 'output_file'),
|
|
148
|
-
prices=pulumi.get(__ret__, 'prices'),
|
|
149
|
-
product=pulumi.get(__ret__, 'product'),
|
|
150
|
-
resource_code=pulumi.get(__ret__, 'resource_code'))
|
|
151
|
-
def get_prices_output(desire_attributes: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
152
|
-
output_file: Optional[pulumi.Input[Optional[str]]] = None,
|
|
153
|
-
product: Optional[pulumi.Input[str]] = None,
|
|
154
|
-
resource_code: Optional[pulumi.Input[str]] = None,
|
|
155
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPricesResult]:
|
|
156
|
-
"""
|
|
157
|
-
This data source provides Cloud Control Price available to the user.[What is Price](https://www.alibabacloud.com/help/en/)
|
|
158
|
-
|
|
159
|
-
> **NOTE:** Available since v1.241.0.
|
|
160
|
-
|
|
161
|
-
## Example Usage
|
|
162
|
-
|
|
163
|
-
```python
|
|
164
|
-
import pulumi
|
|
165
|
-
import pulumi_alicloud as alicloud
|
|
166
|
-
|
|
167
|
-
config = pulumi.Config()
|
|
168
|
-
name = config.get("name")
|
|
169
|
-
if name is None:
|
|
170
|
-
name = "terraform-example"
|
|
171
|
-
default = alicloud.cloudcontrol.get_prices(desire_attributes={
|
|
172
|
-
"AddressType": "internet",
|
|
173
|
-
"PaymentType": "PayAsYouGo",
|
|
174
|
-
},
|
|
175
|
-
product="SLB",
|
|
176
|
-
resource_code="LoadBalancer")
|
|
177
|
-
pulumi.export("alicloudCloudControlPriceExampleId", default.prices[0].discount_price)
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:param Mapping[str, str] desire_attributes: This property represent the detailed configuration of the Resource which you are going to get price. Give same content as DesireAttributes of the 'Resource' Resource when start Create operation. 'PaymentType' is necessary when in DesireAttributes. Here is a probably example when you get the price of SLB LoadBalancer:```json{"LoadBalancerName": "cc-test","Bandwidth": 6,"PaymentType": "PayAsYouGo","AddressType": "internet","LoadBalancerSpec": "slb.s3.small","InternetChargeType": "paybybandwidth"} See `DesireAttributes` below.
|
|
182
|
-
:param str output_file: File name where to save data source results (after running `pulumi preview`).
|
|
183
|
-
:param str product: The product Code represents the product to be operated. Currently supported products and resources can be queried at the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
|
|
184
|
-
:param str resource_code: Resource Code, if there is a parent resource, split with `::`, such as VPC::VSwitch. The supported resource Code can be obtained from the following link: [supported-services-and-resource-types](https://help.aliyun.com/zh/cloud-control-api/product-overview/supported-services-and-resource-types).
|
|
185
|
-
"""
|
|
186
|
-
__args__ = dict()
|
|
187
|
-
__args__['desireAttributes'] = desire_attributes
|
|
188
|
-
__args__['outputFile'] = output_file
|
|
189
|
-
__args__['product'] = product
|
|
190
|
-
__args__['resourceCode'] = resource_code
|
|
191
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
192
|
-
__ret__ = pulumi.runtime.invoke_output('alicloud:cloudcontrol/getPrices:getPrices', __args__, opts=opts, typ=GetPricesResult)
|
|
193
|
-
return __ret__.apply(lambda __response__: GetPricesResult(
|
|
194
|
-
desire_attributes=pulumi.get(__response__, 'desire_attributes'),
|
|
195
|
-
id=pulumi.get(__response__, 'id'),
|
|
196
|
-
output_file=pulumi.get(__response__, 'output_file'),
|
|
197
|
-
prices=pulumi.get(__response__, 'prices'),
|
|
198
|
-
product=pulumi.get(__response__, 'product'),
|
|
199
|
-
resource_code=pulumi.get(__response__, 'resource_code')))
|