pulumi-alicloud 3.74.0a1737523155__py3-none-any.whl → 3.74.0a1737989015__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 +80 -0
- pulumi_alicloud/alb/__init__.py +1 -0
- pulumi_alicloud/alb/_inputs.py +907 -244
- pulumi_alicloud/alb/get_server_groups.py +55 -25
- pulumi_alicloud/alb/listener.py +269 -174
- pulumi_alicloud/alb/load_balancer.py +239 -118
- pulumi_alicloud/alb/load_balancer_zone_shifted_attachment.py +303 -0
- pulumi_alicloud/alb/outputs.py +716 -218
- pulumi_alicloud/alb/server_group.py +532 -122
- pulumi_alicloud/cen/_inputs.py +34 -0
- pulumi_alicloud/cen/outputs.py +37 -0
- pulumi_alicloud/cen/transit_router_multicast_domain.py +123 -36
- pulumi_alicloud/cs/_inputs.py +349 -1
- pulumi_alicloud/cs/kubernetes.py +15 -15
- pulumi_alicloud/cs/node_pool.py +77 -2
- pulumi_alicloud/cs/outputs.py +265 -1
- pulumi_alicloud/dfs/file_system.py +62 -23
- pulumi_alicloud/dfs/mount_point.py +48 -22
- pulumi_alicloud/esa/__init__.py +3 -0
- pulumi_alicloud/esa/_inputs.py +81 -0
- pulumi_alicloud/esa/http_request_header_modification_rule.py +531 -0
- pulumi_alicloud/esa/list.py +361 -0
- pulumi_alicloud/esa/outputs.py +48 -0
- pulumi_alicloud/esa/page.py +376 -0
- pulumi_alicloud/esa/rate_plan_instance.py +63 -7
- pulumi_alicloud/ess/get_scaling_groups.py +64 -10
- pulumi_alicloud/ess/get_scaling_rules.py +74 -10
- pulumi_alicloud/ess/outputs.py +357 -17
- pulumi_alicloud/eventbridge/get_service.py +2 -6
- pulumi_alicloud/fc/_inputs.py +75 -75
- pulumi_alicloud/fc/outputs.py +50 -50
- pulumi_alicloud/fc/v3_function.py +53 -6
- pulumi_alicloud/kms/__init__.py +1 -0
- pulumi_alicloud/kms/get_instances.py +160 -0
- pulumi_alicloud/kms/instance.py +0 -60
- pulumi_alicloud/kms/outputs.py +19 -0
- pulumi_alicloud/maxcompute/__init__.py +5 -0
- pulumi_alicloud/maxcompute/_inputs.py +615 -42
- pulumi_alicloud/maxcompute/outputs.py +486 -28
- pulumi_alicloud/maxcompute/project.py +63 -31
- pulumi_alicloud/maxcompute/quota_plan.py +412 -0
- pulumi_alicloud/maxcompute/quota_schedule.py +260 -0
- pulumi_alicloud/maxcompute/role.py +423 -0
- pulumi_alicloud/maxcompute/role_user_attachment.py +368 -0
- pulumi_alicloud/maxcompute/tunnel_quota_timer.py +287 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/instance.py +68 -0
- pulumi_alicloud/vpc/__init__.py +1 -0
- pulumi_alicloud/vpc/ipam_ipam_pool.py +47 -0
- pulumi_alicloud/vpc/ipam_ipam_scope.py +47 -0
- pulumi_alicloud/vpc/ipam_service.py +144 -0
- pulumi_alicloud/vpc/ipv4_cidr_block.py +162 -51
- {pulumi_alicloud-3.74.0a1737523155.dist-info → pulumi_alicloud-3.74.0a1737989015.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.74.0a1737523155.dist-info → pulumi_alicloud-3.74.0a1737989015.dist-info}/RECORD +56 -45
- {pulumi_alicloud-3.74.0a1737523155.dist-info → pulumi_alicloud-3.74.0a1737989015.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.74.0a1737523155.dist-info → pulumi_alicloud-3.74.0a1737989015.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,376 @@
|
|
|
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__ = ['PageArgs', 'Page']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class PageArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
content_type: pulumi.Input[str],
|
|
23
|
+
page_name: pulumi.Input[str],
|
|
24
|
+
content: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
description: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a Page resource.
|
|
28
|
+
:param pulumi.Input[str] content_type: The description of the custom error page.
|
|
29
|
+
:param pulumi.Input[str] page_name: The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
30
|
+
:param pulumi.Input[str] content: The Content-Type field in the HTTP header. Valid values:
|
|
31
|
+
|
|
32
|
+
- text/html
|
|
33
|
+
- application/json
|
|
34
|
+
:param pulumi.Input[str] description: The name of the custom error page.
|
|
35
|
+
"""
|
|
36
|
+
pulumi.set(__self__, "content_type", content_type)
|
|
37
|
+
pulumi.set(__self__, "page_name", page_name)
|
|
38
|
+
if content is not None:
|
|
39
|
+
pulumi.set(__self__, "content", content)
|
|
40
|
+
if description is not None:
|
|
41
|
+
pulumi.set(__self__, "description", description)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
@pulumi.getter(name="contentType")
|
|
45
|
+
def content_type(self) -> pulumi.Input[str]:
|
|
46
|
+
"""
|
|
47
|
+
The description of the custom error page.
|
|
48
|
+
"""
|
|
49
|
+
return pulumi.get(self, "content_type")
|
|
50
|
+
|
|
51
|
+
@content_type.setter
|
|
52
|
+
def content_type(self, value: pulumi.Input[str]):
|
|
53
|
+
pulumi.set(self, "content_type", value)
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="pageName")
|
|
57
|
+
def page_name(self) -> pulumi.Input[str]:
|
|
58
|
+
"""
|
|
59
|
+
The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "page_name")
|
|
62
|
+
|
|
63
|
+
@page_name.setter
|
|
64
|
+
def page_name(self, value: pulumi.Input[str]):
|
|
65
|
+
pulumi.set(self, "page_name", value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter
|
|
69
|
+
def content(self) -> Optional[pulumi.Input[str]]:
|
|
70
|
+
"""
|
|
71
|
+
The Content-Type field in the HTTP header. Valid values:
|
|
72
|
+
|
|
73
|
+
- text/html
|
|
74
|
+
- application/json
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "content")
|
|
77
|
+
|
|
78
|
+
@content.setter
|
|
79
|
+
def content(self, value: Optional[pulumi.Input[str]]):
|
|
80
|
+
pulumi.set(self, "content", value)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter
|
|
84
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
85
|
+
"""
|
|
86
|
+
The name of the custom error page.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "description")
|
|
89
|
+
|
|
90
|
+
@description.setter
|
|
91
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
92
|
+
pulumi.set(self, "description", value)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
@pulumi.input_type
|
|
96
|
+
class _PageState:
|
|
97
|
+
def __init__(__self__, *,
|
|
98
|
+
content: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
page_name: Optional[pulumi.Input[str]] = None):
|
|
102
|
+
"""
|
|
103
|
+
Input properties used for looking up and filtering Page resources.
|
|
104
|
+
:param pulumi.Input[str] content: The Content-Type field in the HTTP header. Valid values:
|
|
105
|
+
|
|
106
|
+
- text/html
|
|
107
|
+
- application/json
|
|
108
|
+
:param pulumi.Input[str] content_type: The description of the custom error page.
|
|
109
|
+
:param pulumi.Input[str] description: The name of the custom error page.
|
|
110
|
+
:param pulumi.Input[str] page_name: The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
111
|
+
"""
|
|
112
|
+
if content is not None:
|
|
113
|
+
pulumi.set(__self__, "content", content)
|
|
114
|
+
if content_type is not None:
|
|
115
|
+
pulumi.set(__self__, "content_type", content_type)
|
|
116
|
+
if description is not None:
|
|
117
|
+
pulumi.set(__self__, "description", description)
|
|
118
|
+
if page_name is not None:
|
|
119
|
+
pulumi.set(__self__, "page_name", page_name)
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter
|
|
123
|
+
def content(self) -> Optional[pulumi.Input[str]]:
|
|
124
|
+
"""
|
|
125
|
+
The Content-Type field in the HTTP header. Valid values:
|
|
126
|
+
|
|
127
|
+
- text/html
|
|
128
|
+
- application/json
|
|
129
|
+
"""
|
|
130
|
+
return pulumi.get(self, "content")
|
|
131
|
+
|
|
132
|
+
@content.setter
|
|
133
|
+
def content(self, value: Optional[pulumi.Input[str]]):
|
|
134
|
+
pulumi.set(self, "content", value)
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter(name="contentType")
|
|
138
|
+
def content_type(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
"""
|
|
140
|
+
The description of the custom error page.
|
|
141
|
+
"""
|
|
142
|
+
return pulumi.get(self, "content_type")
|
|
143
|
+
|
|
144
|
+
@content_type.setter
|
|
145
|
+
def content_type(self, value: Optional[pulumi.Input[str]]):
|
|
146
|
+
pulumi.set(self, "content_type", value)
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
@pulumi.getter
|
|
150
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
+
"""
|
|
152
|
+
The name of the custom error page.
|
|
153
|
+
"""
|
|
154
|
+
return pulumi.get(self, "description")
|
|
155
|
+
|
|
156
|
+
@description.setter
|
|
157
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
+
pulumi.set(self, "description", value)
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
@pulumi.getter(name="pageName")
|
|
162
|
+
def page_name(self) -> Optional[pulumi.Input[str]]:
|
|
163
|
+
"""
|
|
164
|
+
The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
165
|
+
"""
|
|
166
|
+
return pulumi.get(self, "page_name")
|
|
167
|
+
|
|
168
|
+
@page_name.setter
|
|
169
|
+
def page_name(self, value: Optional[pulumi.Input[str]]):
|
|
170
|
+
pulumi.set(self, "page_name", value)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class Page(pulumi.CustomResource):
|
|
174
|
+
@overload
|
|
175
|
+
def __init__(__self__,
|
|
176
|
+
resource_name: str,
|
|
177
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
178
|
+
content: Optional[pulumi.Input[str]] = None,
|
|
179
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
|
180
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
181
|
+
page_name: Optional[pulumi.Input[str]] = None,
|
|
182
|
+
__props__=None):
|
|
183
|
+
"""
|
|
184
|
+
Provides a ESA Page resource.
|
|
185
|
+
|
|
186
|
+
For information about ESA Page and how to use it, see [What is Page](https://www.alibabacloud.com/help/en/).
|
|
187
|
+
|
|
188
|
+
> **NOTE:** Available since v1.242.0.
|
|
189
|
+
|
|
190
|
+
## Example Usage
|
|
191
|
+
|
|
192
|
+
Basic Usage
|
|
193
|
+
|
|
194
|
+
```python
|
|
195
|
+
import pulumi
|
|
196
|
+
import pulumi_alicloud as alicloud
|
|
197
|
+
|
|
198
|
+
config = pulumi.Config()
|
|
199
|
+
name = config.get("name")
|
|
200
|
+
if name is None:
|
|
201
|
+
name = "terraform-example"
|
|
202
|
+
default = alicloud.esa.Page("default",
|
|
203
|
+
description="example resource html page",
|
|
204
|
+
content_type="text/html",
|
|
205
|
+
content="PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9InpoLUNOIj4KICA8aGVhZD4KICAgIDx0aXRsZT40MDMgRm9yYmlkZGVuPC90aXRsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8aDE+NDAzIEZvcmJpZGRlbjwvaDE+CiAgPC9ib2R5Pgo8L2h0bWw+",
|
|
206
|
+
page_name="resource_example_html_page")
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Import
|
|
210
|
+
|
|
211
|
+
ESA Page can be imported using the id, e.g.
|
|
212
|
+
|
|
213
|
+
```sh
|
|
214
|
+
$ pulumi import alicloud:esa/page:Page example <id>
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
:param str resource_name: The name of the resource.
|
|
218
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
219
|
+
:param pulumi.Input[str] content: The Content-Type field in the HTTP header. Valid values:
|
|
220
|
+
|
|
221
|
+
- text/html
|
|
222
|
+
- application/json
|
|
223
|
+
:param pulumi.Input[str] content_type: The description of the custom error page.
|
|
224
|
+
:param pulumi.Input[str] description: The name of the custom error page.
|
|
225
|
+
:param pulumi.Input[str] page_name: The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
226
|
+
"""
|
|
227
|
+
...
|
|
228
|
+
@overload
|
|
229
|
+
def __init__(__self__,
|
|
230
|
+
resource_name: str,
|
|
231
|
+
args: PageArgs,
|
|
232
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
233
|
+
"""
|
|
234
|
+
Provides a ESA Page resource.
|
|
235
|
+
|
|
236
|
+
For information about ESA Page and how to use it, see [What is Page](https://www.alibabacloud.com/help/en/).
|
|
237
|
+
|
|
238
|
+
> **NOTE:** Available since v1.242.0.
|
|
239
|
+
|
|
240
|
+
## Example Usage
|
|
241
|
+
|
|
242
|
+
Basic Usage
|
|
243
|
+
|
|
244
|
+
```python
|
|
245
|
+
import pulumi
|
|
246
|
+
import pulumi_alicloud as alicloud
|
|
247
|
+
|
|
248
|
+
config = pulumi.Config()
|
|
249
|
+
name = config.get("name")
|
|
250
|
+
if name is None:
|
|
251
|
+
name = "terraform-example"
|
|
252
|
+
default = alicloud.esa.Page("default",
|
|
253
|
+
description="example resource html page",
|
|
254
|
+
content_type="text/html",
|
|
255
|
+
content="PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9InpoLUNOIj4KICA8aGVhZD4KICAgIDx0aXRsZT40MDMgRm9yYmlkZGVuPC90aXRsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8aDE+NDAzIEZvcmJpZGRlbjwvaDE+CiAgPC9ib2R5Pgo8L2h0bWw+",
|
|
256
|
+
page_name="resource_example_html_page")
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## Import
|
|
260
|
+
|
|
261
|
+
ESA Page can be imported using the id, e.g.
|
|
262
|
+
|
|
263
|
+
```sh
|
|
264
|
+
$ pulumi import alicloud:esa/page:Page example <id>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
:param str resource_name: The name of the resource.
|
|
268
|
+
:param PageArgs args: The arguments to use to populate this resource's properties.
|
|
269
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
270
|
+
"""
|
|
271
|
+
...
|
|
272
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
273
|
+
resource_args, opts = _utilities.get_resource_args_opts(PageArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
274
|
+
if resource_args is not None:
|
|
275
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
276
|
+
else:
|
|
277
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
278
|
+
|
|
279
|
+
def _internal_init(__self__,
|
|
280
|
+
resource_name: str,
|
|
281
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
282
|
+
content: Optional[pulumi.Input[str]] = None,
|
|
283
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
|
284
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
285
|
+
page_name: Optional[pulumi.Input[str]] = None,
|
|
286
|
+
__props__=None):
|
|
287
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
288
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
289
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
290
|
+
if opts.id is None:
|
|
291
|
+
if __props__ is not None:
|
|
292
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
293
|
+
__props__ = PageArgs.__new__(PageArgs)
|
|
294
|
+
|
|
295
|
+
__props__.__dict__["content"] = content
|
|
296
|
+
if content_type is None and not opts.urn:
|
|
297
|
+
raise TypeError("Missing required property 'content_type'")
|
|
298
|
+
__props__.__dict__["content_type"] = content_type
|
|
299
|
+
__props__.__dict__["description"] = description
|
|
300
|
+
if page_name is None and not opts.urn:
|
|
301
|
+
raise TypeError("Missing required property 'page_name'")
|
|
302
|
+
__props__.__dict__["page_name"] = page_name
|
|
303
|
+
super(Page, __self__).__init__(
|
|
304
|
+
'alicloud:esa/page:Page',
|
|
305
|
+
resource_name,
|
|
306
|
+
__props__,
|
|
307
|
+
opts)
|
|
308
|
+
|
|
309
|
+
@staticmethod
|
|
310
|
+
def get(resource_name: str,
|
|
311
|
+
id: pulumi.Input[str],
|
|
312
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
313
|
+
content: Optional[pulumi.Input[str]] = None,
|
|
314
|
+
content_type: Optional[pulumi.Input[str]] = None,
|
|
315
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
316
|
+
page_name: Optional[pulumi.Input[str]] = None) -> 'Page':
|
|
317
|
+
"""
|
|
318
|
+
Get an existing Page resource's state with the given name, id, and optional extra
|
|
319
|
+
properties used to qualify the lookup.
|
|
320
|
+
|
|
321
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
322
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
323
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
324
|
+
:param pulumi.Input[str] content: The Content-Type field in the HTTP header. Valid values:
|
|
325
|
+
|
|
326
|
+
- text/html
|
|
327
|
+
- application/json
|
|
328
|
+
:param pulumi.Input[str] content_type: The description of the custom error page.
|
|
329
|
+
:param pulumi.Input[str] description: The name of the custom error page.
|
|
330
|
+
:param pulumi.Input[str] page_name: The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
331
|
+
"""
|
|
332
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
333
|
+
|
|
334
|
+
__props__ = _PageState.__new__(_PageState)
|
|
335
|
+
|
|
336
|
+
__props__.__dict__["content"] = content
|
|
337
|
+
__props__.__dict__["content_type"] = content_type
|
|
338
|
+
__props__.__dict__["description"] = description
|
|
339
|
+
__props__.__dict__["page_name"] = page_name
|
|
340
|
+
return Page(resource_name, opts=opts, __props__=__props__)
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
@pulumi.getter
|
|
344
|
+
def content(self) -> pulumi.Output[Optional[str]]:
|
|
345
|
+
"""
|
|
346
|
+
The Content-Type field in the HTTP header. Valid values:
|
|
347
|
+
|
|
348
|
+
- text/html
|
|
349
|
+
- application/json
|
|
350
|
+
"""
|
|
351
|
+
return pulumi.get(self, "content")
|
|
352
|
+
|
|
353
|
+
@property
|
|
354
|
+
@pulumi.getter(name="contentType")
|
|
355
|
+
def content_type(self) -> pulumi.Output[str]:
|
|
356
|
+
"""
|
|
357
|
+
The description of the custom error page.
|
|
358
|
+
"""
|
|
359
|
+
return pulumi.get(self, "content_type")
|
|
360
|
+
|
|
361
|
+
@property
|
|
362
|
+
@pulumi.getter
|
|
363
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
|
364
|
+
"""
|
|
365
|
+
The name of the custom error page.
|
|
366
|
+
"""
|
|
367
|
+
return pulumi.get(self, "description")
|
|
368
|
+
|
|
369
|
+
@property
|
|
370
|
+
@pulumi.getter(name="pageName")
|
|
371
|
+
def page_name(self) -> pulumi.Output[str]:
|
|
372
|
+
"""
|
|
373
|
+
The ID of the custom error page, which can be obtained by calling the [ListPages](https://www.alibabacloud.com/help/en/doc-detail/2850223.html) operation.
|
|
374
|
+
"""
|
|
375
|
+
return pulumi.get(self, "page_name")
|
|
376
|
+
|
|
@@ -41,7 +41,7 @@ class RatePlanInstanceArgs:
|
|
|
41
41
|
global: global.
|
|
42
42
|
|
|
43
43
|
overseas: Global (excluding Mainland China).
|
|
44
|
-
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
44
|
+
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
45
45
|
:param pulumi.Input[int] period: Purchase cycle (in months).
|
|
46
46
|
:param pulumi.Input[str] plan_name: The plan name, which is obtained from the DescribeRatePlanPrice interface.
|
|
47
47
|
:param pulumi.Input[str] type: Site access type:
|
|
@@ -115,7 +115,7 @@ class RatePlanInstanceArgs:
|
|
|
115
115
|
@pulumi.getter(name="paymentType")
|
|
116
116
|
def payment_type(self) -> Optional[pulumi.Input[str]]:
|
|
117
117
|
"""
|
|
118
|
-
The payment type of the resource
|
|
118
|
+
The payment type of the resource
|
|
119
119
|
"""
|
|
120
120
|
return pulumi.get(self, "payment_type")
|
|
121
121
|
|
|
@@ -194,7 +194,7 @@ class _RatePlanInstanceState:
|
|
|
194
194
|
overseas: Global (excluding Mainland China).
|
|
195
195
|
:param pulumi.Input[str] create_time: The new purchase time of the package instance.
|
|
196
196
|
:param pulumi.Input[str] instance_status: Renewing: renewing
|
|
197
|
-
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
197
|
+
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
198
198
|
:param pulumi.Input[int] period: Purchase cycle (in months).
|
|
199
199
|
:param pulumi.Input[str] plan_name: The plan name, which is obtained from the DescribeRatePlanPrice interface.
|
|
200
200
|
:param pulumi.Input[str] status: The status of the resource
|
|
@@ -299,7 +299,7 @@ class _RatePlanInstanceState:
|
|
|
299
299
|
@pulumi.getter(name="paymentType")
|
|
300
300
|
def payment_type(self) -> Optional[pulumi.Input[str]]:
|
|
301
301
|
"""
|
|
302
|
-
The payment type of the resource
|
|
302
|
+
The payment type of the resource
|
|
303
303
|
"""
|
|
304
304
|
return pulumi.get(self, "payment_type")
|
|
305
305
|
|
|
@@ -374,6 +374,34 @@ class RatePlanInstance(pulumi.CustomResource):
|
|
|
374
374
|
type: Optional[pulumi.Input[str]] = None,
|
|
375
375
|
__props__=None):
|
|
376
376
|
"""
|
|
377
|
+
Provides a ESA Rate Plan Instance resource.
|
|
378
|
+
|
|
379
|
+
For information about ESA Rate Plan Instance and how to use it, see [What is Rate Plan Instance](https://www.alibabacloud.com/help/en/).
|
|
380
|
+
|
|
381
|
+
> **NOTE:** Available since v1.234.0.
|
|
382
|
+
|
|
383
|
+
## Example Usage
|
|
384
|
+
|
|
385
|
+
Basic Usage
|
|
386
|
+
|
|
387
|
+
```python
|
|
388
|
+
import pulumi
|
|
389
|
+
import pulumi_alicloud as alicloud
|
|
390
|
+
|
|
391
|
+
config = pulumi.Config()
|
|
392
|
+
name = config.get("name")
|
|
393
|
+
if name is None:
|
|
394
|
+
name = "terraform-example"
|
|
395
|
+
default = alicloud.esa.RatePlanInstance("default",
|
|
396
|
+
type="NS",
|
|
397
|
+
auto_renew=True,
|
|
398
|
+
period=1,
|
|
399
|
+
payment_type="Subscription",
|
|
400
|
+
coverage="overseas",
|
|
401
|
+
plan_name="basic",
|
|
402
|
+
auto_pay=True)
|
|
403
|
+
```
|
|
404
|
+
|
|
377
405
|
## Import
|
|
378
406
|
|
|
379
407
|
ESA Rate Plan Instance can be imported using the id, e.g.
|
|
@@ -397,7 +425,7 @@ class RatePlanInstance(pulumi.CustomResource):
|
|
|
397
425
|
global: global.
|
|
398
426
|
|
|
399
427
|
overseas: Global (excluding Mainland China).
|
|
400
|
-
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
428
|
+
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
401
429
|
:param pulumi.Input[int] period: Purchase cycle (in months).
|
|
402
430
|
:param pulumi.Input[str] plan_name: The plan name, which is obtained from the DescribeRatePlanPrice interface.
|
|
403
431
|
:param pulumi.Input[str] type: Site access type:
|
|
@@ -413,6 +441,34 @@ class RatePlanInstance(pulumi.CustomResource):
|
|
|
413
441
|
args: Optional[RatePlanInstanceArgs] = None,
|
|
414
442
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
415
443
|
"""
|
|
444
|
+
Provides a ESA Rate Plan Instance resource.
|
|
445
|
+
|
|
446
|
+
For information about ESA Rate Plan Instance and how to use it, see [What is Rate Plan Instance](https://www.alibabacloud.com/help/en/).
|
|
447
|
+
|
|
448
|
+
> **NOTE:** Available since v1.234.0.
|
|
449
|
+
|
|
450
|
+
## Example Usage
|
|
451
|
+
|
|
452
|
+
Basic Usage
|
|
453
|
+
|
|
454
|
+
```python
|
|
455
|
+
import pulumi
|
|
456
|
+
import pulumi_alicloud as alicloud
|
|
457
|
+
|
|
458
|
+
config = pulumi.Config()
|
|
459
|
+
name = config.get("name")
|
|
460
|
+
if name is None:
|
|
461
|
+
name = "terraform-example"
|
|
462
|
+
default = alicloud.esa.RatePlanInstance("default",
|
|
463
|
+
type="NS",
|
|
464
|
+
auto_renew=True,
|
|
465
|
+
period=1,
|
|
466
|
+
payment_type="Subscription",
|
|
467
|
+
coverage="overseas",
|
|
468
|
+
plan_name="basic",
|
|
469
|
+
auto_pay=True)
|
|
470
|
+
```
|
|
471
|
+
|
|
416
472
|
## Import
|
|
417
473
|
|
|
418
474
|
ESA Rate Plan Instance can be imported using the id, e.g.
|
|
@@ -504,7 +560,7 @@ class RatePlanInstance(pulumi.CustomResource):
|
|
|
504
560
|
overseas: Global (excluding Mainland China).
|
|
505
561
|
:param pulumi.Input[str] create_time: The new purchase time of the package instance.
|
|
506
562
|
:param pulumi.Input[str] instance_status: Renewing: renewing
|
|
507
|
-
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
563
|
+
:param pulumi.Input[str] payment_type: The payment type of the resource
|
|
508
564
|
:param pulumi.Input[int] period: Purchase cycle (in months).
|
|
509
565
|
:param pulumi.Input[str] plan_name: The plan name, which is obtained from the DescribeRatePlanPrice interface.
|
|
510
566
|
:param pulumi.Input[str] status: The status of the resource
|
|
@@ -584,7 +640,7 @@ class RatePlanInstance(pulumi.CustomResource):
|
|
|
584
640
|
@pulumi.getter(name="paymentType")
|
|
585
641
|
def payment_type(self) -> pulumi.Output[str]:
|
|
586
642
|
"""
|
|
587
|
-
The payment type of the resource
|
|
643
|
+
The payment type of the resource
|
|
588
644
|
"""
|
|
589
645
|
return pulumi.get(self, "payment_type")
|
|
590
646
|
|
|
@@ -111,17 +111,44 @@ def get_scaling_groups(ids: Optional[Sequence[str]] = None,
|
|
|
111
111
|
"""
|
|
112
112
|
This data source provides available scaling group resources.
|
|
113
113
|
|
|
114
|
+
> **NOTE:** Available since v1.39.0
|
|
115
|
+
|
|
114
116
|
## Example Usage
|
|
115
117
|
|
|
116
118
|
```python
|
|
117
119
|
import pulumi
|
|
118
120
|
import pulumi_alicloud as alicloud
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
import pulumi_random as random
|
|
122
|
+
|
|
123
|
+
config = pulumi.Config()
|
|
124
|
+
name = config.get("name")
|
|
125
|
+
if name is None:
|
|
126
|
+
name = "terraform-example"
|
|
127
|
+
default_integer = random.index.Integer("default",
|
|
128
|
+
min=10000,
|
|
129
|
+
max=99999)
|
|
130
|
+
my_name = f"{name}-{default_integer['result']}"
|
|
131
|
+
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
|
|
132
|
+
available_resource_creation="VSwitch")
|
|
133
|
+
default_network = alicloud.vpc.Network("default",
|
|
134
|
+
vpc_name=my_name,
|
|
135
|
+
cidr_block="172.16.0.0/16")
|
|
136
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
137
|
+
vpc_id=default_network.id,
|
|
138
|
+
cidr_block="172.16.0.0/24",
|
|
139
|
+
zone_id=default.zones[0].id,
|
|
140
|
+
vswitch_name=my_name)
|
|
141
|
+
default_scaling_group = alicloud.ess.ScalingGroup("default",
|
|
142
|
+
min_size=1,
|
|
143
|
+
max_size=1,
|
|
144
|
+
scaling_group_name=my_name,
|
|
145
|
+
removal_policies=[
|
|
146
|
+
"OldestInstance",
|
|
147
|
+
"NewestInstance",
|
|
123
148
|
],
|
|
124
|
-
|
|
149
|
+
vswitch_ids=[default_switch.id])
|
|
150
|
+
scalinggroups_ds = alicloud.ess.get_scaling_groups_output(ids=[default_scaling_group.id],
|
|
151
|
+
name_regex=my_name)
|
|
125
152
|
pulumi.export("firstScalingGroup", scalinggroups_ds.groups[0].id)
|
|
126
153
|
```
|
|
127
154
|
|
|
@@ -151,17 +178,44 @@ def get_scaling_groups_output(ids: Optional[pulumi.Input[Optional[Sequence[str]]
|
|
|
151
178
|
"""
|
|
152
179
|
This data source provides available scaling group resources.
|
|
153
180
|
|
|
181
|
+
> **NOTE:** Available since v1.39.0
|
|
182
|
+
|
|
154
183
|
## Example Usage
|
|
155
184
|
|
|
156
185
|
```python
|
|
157
186
|
import pulumi
|
|
158
187
|
import pulumi_alicloud as alicloud
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
188
|
+
import pulumi_random as random
|
|
189
|
+
|
|
190
|
+
config = pulumi.Config()
|
|
191
|
+
name = config.get("name")
|
|
192
|
+
if name is None:
|
|
193
|
+
name = "terraform-example"
|
|
194
|
+
default_integer = random.index.Integer("default",
|
|
195
|
+
min=10000,
|
|
196
|
+
max=99999)
|
|
197
|
+
my_name = f"{name}-{default_integer['result']}"
|
|
198
|
+
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
|
|
199
|
+
available_resource_creation="VSwitch")
|
|
200
|
+
default_network = alicloud.vpc.Network("default",
|
|
201
|
+
vpc_name=my_name,
|
|
202
|
+
cidr_block="172.16.0.0/16")
|
|
203
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
204
|
+
vpc_id=default_network.id,
|
|
205
|
+
cidr_block="172.16.0.0/24",
|
|
206
|
+
zone_id=default.zones[0].id,
|
|
207
|
+
vswitch_name=my_name)
|
|
208
|
+
default_scaling_group = alicloud.ess.ScalingGroup("default",
|
|
209
|
+
min_size=1,
|
|
210
|
+
max_size=1,
|
|
211
|
+
scaling_group_name=my_name,
|
|
212
|
+
removal_policies=[
|
|
213
|
+
"OldestInstance",
|
|
214
|
+
"NewestInstance",
|
|
163
215
|
],
|
|
164
|
-
|
|
216
|
+
vswitch_ids=[default_switch.id])
|
|
217
|
+
scalinggroups_ds = alicloud.ess.get_scaling_groups_output(ids=[default_scaling_group.id],
|
|
218
|
+
name_regex=my_name)
|
|
165
219
|
pulumi.export("firstScalingGroup", scalinggroups_ds.groups[0].id)
|
|
166
220
|
```
|
|
167
221
|
|