pulumi-alicloud 3.69.0a1733375908__py3-none-any.whl → 3.69.0a1733740345__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 +56 -0
- pulumi_alicloud/adb/db_cluster.py +7 -0
- pulumi_alicloud/arms/__init__.py +2 -0
- pulumi_alicloud/arms/_inputs.py +42 -4
- pulumi_alicloud/arms/alert_robot.py +421 -0
- pulumi_alicloud/arms/dispatch_rule.py +4 -0
- pulumi_alicloud/arms/get_alert_robots.py +230 -0
- pulumi_alicloud/arms/get_dispatch_rules.py +99 -6
- pulumi_alicloud/arms/outputs.py +154 -13
- pulumi_alicloud/cfg/rule.py +4 -4
- pulumi_alicloud/cs/autoscaling_config.py +51 -0
- pulumi_alicloud/dataworks/__init__.py +4 -0
- pulumi_alicloud/dataworks/_inputs.py +95 -0
- pulumi_alicloud/dataworks/data_source.py +686 -0
- pulumi_alicloud/dataworks/data_source_shared_rule.py +378 -0
- pulumi_alicloud/dataworks/outputs.py +44 -0
- pulumi_alicloud/dataworks/project.py +294 -140
- pulumi_alicloud/dataworks/project_member.py +380 -0
- pulumi_alicloud/ecs/__init__.py +1 -0
- pulumi_alicloud/ecs/_inputs.py +34 -0
- pulumi_alicloud/ecs/disk.py +156 -14
- pulumi_alicloud/ecs/ecs_disk.py +308 -97
- pulumi_alicloud/ecs/ecs_key_pair.py +77 -49
- pulumi_alicloud/ecs/image_pipeline_execution.py +245 -0
- pulumi_alicloud/ecs/instance.py +145 -0
- pulumi_alicloud/ecs/key_pair.py +27 -7
- pulumi_alicloud/ecs/outputs.py +37 -0
- pulumi_alicloud/oss/__init__.py +1 -0
- pulumi_alicloud/oss/_inputs.py +1750 -0
- pulumi_alicloud/oss/bucket_website.py +416 -0
- pulumi_alicloud/oss/outputs.py +1338 -0
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/polardb/get_clusters.py +1 -1
- pulumi_alicloud/polardb/outputs.py +2 -2
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +63 -30
- pulumi_alicloud/sae/application.py +1 -1
- pulumi_alicloud/slb/attachment.py +2 -6
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +484 -0
- pulumi_alicloud/sls/oss_export_sink.py +428 -0
- pulumi_alicloud/sls/outputs.py +346 -0
- pulumi_alicloud/vpc/network.py +7 -7
- {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/RECORD +47 -38
- {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.69.0a1733375908.dist-info → pulumi_alicloud-3.69.0a1733740345.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,416 @@
|
|
|
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
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['BucketWebsiteInitArgs', 'BucketWebsite']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class BucketWebsiteInitArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
bucket: pulumi.Input[str],
|
|
25
|
+
error_document: Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']] = None,
|
|
26
|
+
index_document: Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']] = None,
|
|
27
|
+
routing_rules: Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']] = None):
|
|
28
|
+
"""
|
|
29
|
+
The set of arguments for constructing a BucketWebsite resource.
|
|
30
|
+
:param pulumi.Input[str] bucket: The name of the bucket
|
|
31
|
+
:param pulumi.Input['BucketWebsiteErrorDocumentArgs'] error_document: The container that holds the error page configuration information. See `error_document` below.
|
|
32
|
+
:param pulumi.Input['BucketWebsiteIndexDocumentArgs'] index_document: Static Website Default Home Page Configuration See `index_document` below.
|
|
33
|
+
:param pulumi.Input['BucketWebsiteRoutingRulesArgs'] routing_rules: The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
36
|
+
if error_document is not None:
|
|
37
|
+
pulumi.set(__self__, "error_document", error_document)
|
|
38
|
+
if index_document is not None:
|
|
39
|
+
pulumi.set(__self__, "index_document", index_document)
|
|
40
|
+
if routing_rules is not None:
|
|
41
|
+
pulumi.set(__self__, "routing_rules", routing_rules)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
@pulumi.getter
|
|
45
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
46
|
+
"""
|
|
47
|
+
The name of the bucket
|
|
48
|
+
"""
|
|
49
|
+
return pulumi.get(self, "bucket")
|
|
50
|
+
|
|
51
|
+
@bucket.setter
|
|
52
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
53
|
+
pulumi.set(self, "bucket", value)
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="errorDocument")
|
|
57
|
+
def error_document(self) -> Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']]:
|
|
58
|
+
"""
|
|
59
|
+
The container that holds the error page configuration information. See `error_document` below.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "error_document")
|
|
62
|
+
|
|
63
|
+
@error_document.setter
|
|
64
|
+
def error_document(self, value: Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']]):
|
|
65
|
+
pulumi.set(self, "error_document", value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="indexDocument")
|
|
69
|
+
def index_document(self) -> Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']]:
|
|
70
|
+
"""
|
|
71
|
+
Static Website Default Home Page Configuration See `index_document` below.
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "index_document")
|
|
74
|
+
|
|
75
|
+
@index_document.setter
|
|
76
|
+
def index_document(self, value: Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']]):
|
|
77
|
+
pulumi.set(self, "index_document", value)
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter(name="routingRules")
|
|
81
|
+
def routing_rules(self) -> Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']]:
|
|
82
|
+
"""
|
|
83
|
+
The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "routing_rules")
|
|
86
|
+
|
|
87
|
+
@routing_rules.setter
|
|
88
|
+
def routing_rules(self, value: Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']]):
|
|
89
|
+
pulumi.set(self, "routing_rules", value)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@pulumi.input_type
|
|
93
|
+
class _BucketWebsiteState:
|
|
94
|
+
def __init__(__self__, *,
|
|
95
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
96
|
+
error_document: Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']] = None,
|
|
97
|
+
index_document: Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']] = None,
|
|
98
|
+
routing_rules: Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']] = None):
|
|
99
|
+
"""
|
|
100
|
+
Input properties used for looking up and filtering BucketWebsite resources.
|
|
101
|
+
:param pulumi.Input[str] bucket: The name of the bucket
|
|
102
|
+
:param pulumi.Input['BucketWebsiteErrorDocumentArgs'] error_document: The container that holds the error page configuration information. See `error_document` below.
|
|
103
|
+
:param pulumi.Input['BucketWebsiteIndexDocumentArgs'] index_document: Static Website Default Home Page Configuration See `index_document` below.
|
|
104
|
+
:param pulumi.Input['BucketWebsiteRoutingRulesArgs'] routing_rules: The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
105
|
+
"""
|
|
106
|
+
if bucket is not None:
|
|
107
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
108
|
+
if error_document is not None:
|
|
109
|
+
pulumi.set(__self__, "error_document", error_document)
|
|
110
|
+
if index_document is not None:
|
|
111
|
+
pulumi.set(__self__, "index_document", index_document)
|
|
112
|
+
if routing_rules is not None:
|
|
113
|
+
pulumi.set(__self__, "routing_rules", routing_rules)
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
@pulumi.getter
|
|
117
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
118
|
+
"""
|
|
119
|
+
The name of the bucket
|
|
120
|
+
"""
|
|
121
|
+
return pulumi.get(self, "bucket")
|
|
122
|
+
|
|
123
|
+
@bucket.setter
|
|
124
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
125
|
+
pulumi.set(self, "bucket", value)
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
@pulumi.getter(name="errorDocument")
|
|
129
|
+
def error_document(self) -> Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']]:
|
|
130
|
+
"""
|
|
131
|
+
The container that holds the error page configuration information. See `error_document` below.
|
|
132
|
+
"""
|
|
133
|
+
return pulumi.get(self, "error_document")
|
|
134
|
+
|
|
135
|
+
@error_document.setter
|
|
136
|
+
def error_document(self, value: Optional[pulumi.Input['BucketWebsiteErrorDocumentArgs']]):
|
|
137
|
+
pulumi.set(self, "error_document", value)
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
@pulumi.getter(name="indexDocument")
|
|
141
|
+
def index_document(self) -> Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']]:
|
|
142
|
+
"""
|
|
143
|
+
Static Website Default Home Page Configuration See `index_document` below.
|
|
144
|
+
"""
|
|
145
|
+
return pulumi.get(self, "index_document")
|
|
146
|
+
|
|
147
|
+
@index_document.setter
|
|
148
|
+
def index_document(self, value: Optional[pulumi.Input['BucketWebsiteIndexDocumentArgs']]):
|
|
149
|
+
pulumi.set(self, "index_document", value)
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
@pulumi.getter(name="routingRules")
|
|
153
|
+
def routing_rules(self) -> Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']]:
|
|
154
|
+
"""
|
|
155
|
+
The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
156
|
+
"""
|
|
157
|
+
return pulumi.get(self, "routing_rules")
|
|
158
|
+
|
|
159
|
+
@routing_rules.setter
|
|
160
|
+
def routing_rules(self, value: Optional[pulumi.Input['BucketWebsiteRoutingRulesArgs']]):
|
|
161
|
+
pulumi.set(self, "routing_rules", value)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
class BucketWebsite(pulumi.CustomResource):
|
|
165
|
+
@overload
|
|
166
|
+
def __init__(__self__,
|
|
167
|
+
resource_name: str,
|
|
168
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
169
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
170
|
+
error_document: Optional[pulumi.Input[Union['BucketWebsiteErrorDocumentArgs', 'BucketWebsiteErrorDocumentArgsDict']]] = None,
|
|
171
|
+
index_document: Optional[pulumi.Input[Union['BucketWebsiteIndexDocumentArgs', 'BucketWebsiteIndexDocumentArgsDict']]] = None,
|
|
172
|
+
routing_rules: Optional[pulumi.Input[Union['BucketWebsiteRoutingRulesArgs', 'BucketWebsiteRoutingRulesArgsDict']]] = None,
|
|
173
|
+
__props__=None):
|
|
174
|
+
"""
|
|
175
|
+
Provides a OSS Bucket Website resource.
|
|
176
|
+
|
|
177
|
+
the static website configuration and mirror configuration of the bucket.
|
|
178
|
+
|
|
179
|
+
For information about OSS Bucket Website and how to use it, see [What is Bucket Website](https://www.alibabacloud.com/help/en/).
|
|
180
|
+
|
|
181
|
+
> **NOTE:** Available since v1.237.0.
|
|
182
|
+
|
|
183
|
+
## Example Usage
|
|
184
|
+
|
|
185
|
+
Basic Usage
|
|
186
|
+
|
|
187
|
+
```python
|
|
188
|
+
import pulumi
|
|
189
|
+
import pulumi_alicloud as alicloud
|
|
190
|
+
import pulumi_random as random
|
|
191
|
+
|
|
192
|
+
config = pulumi.Config()
|
|
193
|
+
name = config.get("name")
|
|
194
|
+
if name is None:
|
|
195
|
+
name = "terraform-example"
|
|
196
|
+
default = random.index.Uuid("default")
|
|
197
|
+
defaultn_vj9x3 = alicloud.oss.Bucket("defaultnVj9x3",
|
|
198
|
+
bucket=f"{name}-{default['result']}",
|
|
199
|
+
storage_class="Standard")
|
|
200
|
+
default_bucket_website = alicloud.oss.BucketWebsite("default",
|
|
201
|
+
index_document={
|
|
202
|
+
"suffix": "index.html",
|
|
203
|
+
"support_sub_dir": True,
|
|
204
|
+
"type": "0",
|
|
205
|
+
},
|
|
206
|
+
error_document={
|
|
207
|
+
"key": "error.html",
|
|
208
|
+
"http_status": 404,
|
|
209
|
+
},
|
|
210
|
+
bucket=defaultn_vj9x3.bucket,
|
|
211
|
+
routing_rules={
|
|
212
|
+
"routing_rules": [{
|
|
213
|
+
"rule_number": 1,
|
|
214
|
+
"condition": {
|
|
215
|
+
"http_error_code_returned_equals": "404",
|
|
216
|
+
},
|
|
217
|
+
"redirect": {
|
|
218
|
+
"protocol": "https",
|
|
219
|
+
"http_redirect_code": "305",
|
|
220
|
+
"redirect_type": "AliCDN",
|
|
221
|
+
"host_name": "www.alicdn-master.com",
|
|
222
|
+
},
|
|
223
|
+
"lua_config": {
|
|
224
|
+
"script": "example.lua",
|
|
225
|
+
},
|
|
226
|
+
}],
|
|
227
|
+
})
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## Import
|
|
231
|
+
|
|
232
|
+
OSS Bucket Website can be imported using the id, e.g.
|
|
233
|
+
|
|
234
|
+
```sh
|
|
235
|
+
$ pulumi import alicloud:oss/bucketWebsite:BucketWebsite example <id>
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
:param str resource_name: The name of the resource.
|
|
239
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
240
|
+
:param pulumi.Input[str] bucket: The name of the bucket
|
|
241
|
+
:param pulumi.Input[Union['BucketWebsiteErrorDocumentArgs', 'BucketWebsiteErrorDocumentArgsDict']] error_document: The container that holds the error page configuration information. See `error_document` below.
|
|
242
|
+
:param pulumi.Input[Union['BucketWebsiteIndexDocumentArgs', 'BucketWebsiteIndexDocumentArgsDict']] index_document: Static Website Default Home Page Configuration See `index_document` below.
|
|
243
|
+
:param pulumi.Input[Union['BucketWebsiteRoutingRulesArgs', 'BucketWebsiteRoutingRulesArgsDict']] routing_rules: The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
244
|
+
"""
|
|
245
|
+
...
|
|
246
|
+
@overload
|
|
247
|
+
def __init__(__self__,
|
|
248
|
+
resource_name: str,
|
|
249
|
+
args: BucketWebsiteInitArgs,
|
|
250
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
251
|
+
"""
|
|
252
|
+
Provides a OSS Bucket Website resource.
|
|
253
|
+
|
|
254
|
+
the static website configuration and mirror configuration of the bucket.
|
|
255
|
+
|
|
256
|
+
For information about OSS Bucket Website and how to use it, see [What is Bucket Website](https://www.alibabacloud.com/help/en/).
|
|
257
|
+
|
|
258
|
+
> **NOTE:** Available since v1.237.0.
|
|
259
|
+
|
|
260
|
+
## Example Usage
|
|
261
|
+
|
|
262
|
+
Basic Usage
|
|
263
|
+
|
|
264
|
+
```python
|
|
265
|
+
import pulumi
|
|
266
|
+
import pulumi_alicloud as alicloud
|
|
267
|
+
import pulumi_random as random
|
|
268
|
+
|
|
269
|
+
config = pulumi.Config()
|
|
270
|
+
name = config.get("name")
|
|
271
|
+
if name is None:
|
|
272
|
+
name = "terraform-example"
|
|
273
|
+
default = random.index.Uuid("default")
|
|
274
|
+
defaultn_vj9x3 = alicloud.oss.Bucket("defaultnVj9x3",
|
|
275
|
+
bucket=f"{name}-{default['result']}",
|
|
276
|
+
storage_class="Standard")
|
|
277
|
+
default_bucket_website = alicloud.oss.BucketWebsite("default",
|
|
278
|
+
index_document={
|
|
279
|
+
"suffix": "index.html",
|
|
280
|
+
"support_sub_dir": True,
|
|
281
|
+
"type": "0",
|
|
282
|
+
},
|
|
283
|
+
error_document={
|
|
284
|
+
"key": "error.html",
|
|
285
|
+
"http_status": 404,
|
|
286
|
+
},
|
|
287
|
+
bucket=defaultn_vj9x3.bucket,
|
|
288
|
+
routing_rules={
|
|
289
|
+
"routing_rules": [{
|
|
290
|
+
"rule_number": 1,
|
|
291
|
+
"condition": {
|
|
292
|
+
"http_error_code_returned_equals": "404",
|
|
293
|
+
},
|
|
294
|
+
"redirect": {
|
|
295
|
+
"protocol": "https",
|
|
296
|
+
"http_redirect_code": "305",
|
|
297
|
+
"redirect_type": "AliCDN",
|
|
298
|
+
"host_name": "www.alicdn-master.com",
|
|
299
|
+
},
|
|
300
|
+
"lua_config": {
|
|
301
|
+
"script": "example.lua",
|
|
302
|
+
},
|
|
303
|
+
}],
|
|
304
|
+
})
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Import
|
|
308
|
+
|
|
309
|
+
OSS Bucket Website can be imported using the id, e.g.
|
|
310
|
+
|
|
311
|
+
```sh
|
|
312
|
+
$ pulumi import alicloud:oss/bucketWebsite:BucketWebsite example <id>
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
:param str resource_name: The name of the resource.
|
|
316
|
+
:param BucketWebsiteInitArgs args: The arguments to use to populate this resource's properties.
|
|
317
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
318
|
+
"""
|
|
319
|
+
...
|
|
320
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
321
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketWebsiteInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
322
|
+
if resource_args is not None:
|
|
323
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
324
|
+
else:
|
|
325
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
326
|
+
|
|
327
|
+
def _internal_init(__self__,
|
|
328
|
+
resource_name: str,
|
|
329
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
330
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
331
|
+
error_document: Optional[pulumi.Input[Union['BucketWebsiteErrorDocumentArgs', 'BucketWebsiteErrorDocumentArgsDict']]] = None,
|
|
332
|
+
index_document: Optional[pulumi.Input[Union['BucketWebsiteIndexDocumentArgs', 'BucketWebsiteIndexDocumentArgsDict']]] = None,
|
|
333
|
+
routing_rules: Optional[pulumi.Input[Union['BucketWebsiteRoutingRulesArgs', 'BucketWebsiteRoutingRulesArgsDict']]] = None,
|
|
334
|
+
__props__=None):
|
|
335
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
336
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
337
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
338
|
+
if opts.id is None:
|
|
339
|
+
if __props__ is not None:
|
|
340
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
341
|
+
__props__ = BucketWebsiteInitArgs.__new__(BucketWebsiteInitArgs)
|
|
342
|
+
|
|
343
|
+
if bucket is None and not opts.urn:
|
|
344
|
+
raise TypeError("Missing required property 'bucket'")
|
|
345
|
+
__props__.__dict__["bucket"] = bucket
|
|
346
|
+
__props__.__dict__["error_document"] = error_document
|
|
347
|
+
__props__.__dict__["index_document"] = index_document
|
|
348
|
+
__props__.__dict__["routing_rules"] = routing_rules
|
|
349
|
+
super(BucketWebsite, __self__).__init__(
|
|
350
|
+
'alicloud:oss/bucketWebsite:BucketWebsite',
|
|
351
|
+
resource_name,
|
|
352
|
+
__props__,
|
|
353
|
+
opts)
|
|
354
|
+
|
|
355
|
+
@staticmethod
|
|
356
|
+
def get(resource_name: str,
|
|
357
|
+
id: pulumi.Input[str],
|
|
358
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
359
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
360
|
+
error_document: Optional[pulumi.Input[Union['BucketWebsiteErrorDocumentArgs', 'BucketWebsiteErrorDocumentArgsDict']]] = None,
|
|
361
|
+
index_document: Optional[pulumi.Input[Union['BucketWebsiteIndexDocumentArgs', 'BucketWebsiteIndexDocumentArgsDict']]] = None,
|
|
362
|
+
routing_rules: Optional[pulumi.Input[Union['BucketWebsiteRoutingRulesArgs', 'BucketWebsiteRoutingRulesArgsDict']]] = None) -> 'BucketWebsite':
|
|
363
|
+
"""
|
|
364
|
+
Get an existing BucketWebsite resource's state with the given name, id, and optional extra
|
|
365
|
+
properties used to qualify the lookup.
|
|
366
|
+
|
|
367
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
368
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
369
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
370
|
+
:param pulumi.Input[str] bucket: The name of the bucket
|
|
371
|
+
:param pulumi.Input[Union['BucketWebsiteErrorDocumentArgs', 'BucketWebsiteErrorDocumentArgsDict']] error_document: The container that holds the error page configuration information. See `error_document` below.
|
|
372
|
+
:param pulumi.Input[Union['BucketWebsiteIndexDocumentArgs', 'BucketWebsiteIndexDocumentArgsDict']] index_document: Static Website Default Home Page Configuration See `index_document` below.
|
|
373
|
+
:param pulumi.Input[Union['BucketWebsiteRoutingRulesArgs', 'BucketWebsiteRoutingRulesArgsDict']] routing_rules: The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
374
|
+
"""
|
|
375
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
376
|
+
|
|
377
|
+
__props__ = _BucketWebsiteState.__new__(_BucketWebsiteState)
|
|
378
|
+
|
|
379
|
+
__props__.__dict__["bucket"] = bucket
|
|
380
|
+
__props__.__dict__["error_document"] = error_document
|
|
381
|
+
__props__.__dict__["index_document"] = index_document
|
|
382
|
+
__props__.__dict__["routing_rules"] = routing_rules
|
|
383
|
+
return BucketWebsite(resource_name, opts=opts, __props__=__props__)
|
|
384
|
+
|
|
385
|
+
@property
|
|
386
|
+
@pulumi.getter
|
|
387
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
388
|
+
"""
|
|
389
|
+
The name of the bucket
|
|
390
|
+
"""
|
|
391
|
+
return pulumi.get(self, "bucket")
|
|
392
|
+
|
|
393
|
+
@property
|
|
394
|
+
@pulumi.getter(name="errorDocument")
|
|
395
|
+
def error_document(self) -> pulumi.Output[Optional['outputs.BucketWebsiteErrorDocument']]:
|
|
396
|
+
"""
|
|
397
|
+
The container that holds the error page configuration information. See `error_document` below.
|
|
398
|
+
"""
|
|
399
|
+
return pulumi.get(self, "error_document")
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
@pulumi.getter(name="indexDocument")
|
|
403
|
+
def index_document(self) -> pulumi.Output[Optional['outputs.BucketWebsiteIndexDocument']]:
|
|
404
|
+
"""
|
|
405
|
+
Static Website Default Home Page Configuration See `index_document` below.
|
|
406
|
+
"""
|
|
407
|
+
return pulumi.get(self, "index_document")
|
|
408
|
+
|
|
409
|
+
@property
|
|
410
|
+
@pulumi.getter(name="routingRules")
|
|
411
|
+
def routing_rules(self) -> pulumi.Output[Optional['outputs.BucketWebsiteRoutingRules']]:
|
|
412
|
+
"""
|
|
413
|
+
The container that holds the jump rule or the mirroring back-to-origin rule. See `routing_rules` below.
|
|
414
|
+
"""
|
|
415
|
+
return pulumi.get(self, "routing_rules")
|
|
416
|
+
|