pulumi-alicloud 3.56.0a1717132537__py3-none-any.whl → 3.56.0a1717175543__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 +96 -0
- pulumi_alicloud/alikafka/instance.py +47 -0
- pulumi_alicloud/apigateway/__init__.py +1 -0
- pulumi_alicloud/apigateway/_inputs.py +40 -0
- pulumi_alicloud/apigateway/access_control_list.py +322 -0
- pulumi_alicloud/apigateway/get_apis.py +96 -23
- pulumi_alicloud/apigateway/outputs.py +72 -14
- pulumi_alicloud/apigateway/plugin.py +225 -73
- pulumi_alicloud/cen/get_transit_router_vpc_attachments.py +171 -18
- pulumi_alicloud/cen/outputs.py +51 -22
- pulumi_alicloud/cloudfirewall/__init__.py +2 -0
- pulumi_alicloud/cloudfirewall/_inputs.py +68 -0
- pulumi_alicloud/cloudfirewall/nat_firewall.py +811 -0
- pulumi_alicloud/cloudfirewall/nat_firewall_control_policy.py +1589 -0
- pulumi_alicloud/cloudfirewall/outputs.py +75 -0
- pulumi_alicloud/ecs/security_group_rule.py +75 -53
- pulumi_alicloud/ess/_inputs.py +56 -0
- pulumi_alicloud/ess/outputs.py +61 -0
- pulumi_alicloud/ess/scaling_group.py +101 -7
- pulumi_alicloud/kms/key.py +251 -333
- pulumi_alicloud/kms/secret.py +210 -125
- pulumi_alicloud/nas/__init__.py +2 -0
- pulumi_alicloud/nas/_inputs.py +126 -0
- pulumi_alicloud/nas/access_point.py +743 -0
- pulumi_alicloud/nas/outputs.py +128 -0
- pulumi_alicloud/oss/__init__.py +7 -0
- pulumi_alicloud/oss/account_public_access_block.py +200 -0
- pulumi_alicloud/oss/bucket_access_monitor.py +206 -0
- pulumi_alicloud/oss/bucket_data_redundancy_transition.py +290 -0
- pulumi_alicloud/oss/bucket_meta_query.py +270 -0
- pulumi_alicloud/oss/bucket_public_access_block.py +258 -0
- pulumi_alicloud/oss/bucket_transfer_acceleration.py +205 -0
- pulumi_alicloud/oss/bucket_user_defined_log_fields.py +328 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +188 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +384 -0
- pulumi_alicloud/sls/outputs.py +358 -0
- pulumi_alicloud/sls/scheduled_sql.py +523 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/RECORD +43 -30
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,290 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from .. import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['BucketDataRedundancyTransitionArgs', 'BucketDataRedundancyTransition']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class BucketDataRedundancyTransitionArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
bucket: pulumi.Input[str]):
|
|
18
|
+
"""
|
|
19
|
+
The set of arguments for constructing a BucketDataRedundancyTransition resource.
|
|
20
|
+
:param pulumi.Input[str] bucket: Storage space name.
|
|
21
|
+
"""
|
|
22
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
@pulumi.getter
|
|
26
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
27
|
+
"""
|
|
28
|
+
Storage space name.
|
|
29
|
+
"""
|
|
30
|
+
return pulumi.get(self, "bucket")
|
|
31
|
+
|
|
32
|
+
@bucket.setter
|
|
33
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
34
|
+
pulumi.set(self, "bucket", value)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@pulumi.input_type
|
|
38
|
+
class _BucketDataRedundancyTransitionState:
|
|
39
|
+
def __init__(__self__, *,
|
|
40
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
41
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
42
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
43
|
+
task_id: Optional[pulumi.Input[str]] = None):
|
|
44
|
+
"""
|
|
45
|
+
Input properties used for looking up and filtering BucketDataRedundancyTransition resources.
|
|
46
|
+
:param pulumi.Input[str] bucket: Storage space name.
|
|
47
|
+
:param pulumi.Input[str] create_time: Stores the creation time of the redundant transformation task.
|
|
48
|
+
:param pulumi.Input[str] status: Stores the state of the redundant translation task. The values are as follows: Queueing: in the queue. Processing: In progress. Finished: Finished.
|
|
49
|
+
:param pulumi.Input[str] task_id: Unique identification of the storage redundancy conversion task.
|
|
50
|
+
"""
|
|
51
|
+
if bucket is not None:
|
|
52
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
53
|
+
if create_time is not None:
|
|
54
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
55
|
+
if status is not None:
|
|
56
|
+
pulumi.set(__self__, "status", status)
|
|
57
|
+
if task_id is not None:
|
|
58
|
+
pulumi.set(__self__, "task_id", task_id)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
@pulumi.getter
|
|
62
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
63
|
+
"""
|
|
64
|
+
Storage space name.
|
|
65
|
+
"""
|
|
66
|
+
return pulumi.get(self, "bucket")
|
|
67
|
+
|
|
68
|
+
@bucket.setter
|
|
69
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
70
|
+
pulumi.set(self, "bucket", value)
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter(name="createTime")
|
|
74
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
75
|
+
"""
|
|
76
|
+
Stores the creation time of the redundant transformation task.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "create_time")
|
|
79
|
+
|
|
80
|
+
@create_time.setter
|
|
81
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
82
|
+
pulumi.set(self, "create_time", value)
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@pulumi.getter
|
|
86
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
87
|
+
"""
|
|
88
|
+
Stores the state of the redundant translation task. The values are as follows: Queueing: in the queue. Processing: In progress. Finished: Finished.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "status")
|
|
91
|
+
|
|
92
|
+
@status.setter
|
|
93
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
94
|
+
pulumi.set(self, "status", value)
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
@pulumi.getter(name="taskId")
|
|
98
|
+
def task_id(self) -> Optional[pulumi.Input[str]]:
|
|
99
|
+
"""
|
|
100
|
+
Unique identification of the storage redundancy conversion task.
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "task_id")
|
|
103
|
+
|
|
104
|
+
@task_id.setter
|
|
105
|
+
def task_id(self, value: Optional[pulumi.Input[str]]):
|
|
106
|
+
pulumi.set(self, "task_id", value)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class BucketDataRedundancyTransition(pulumi.CustomResource):
|
|
110
|
+
@overload
|
|
111
|
+
def __init__(__self__,
|
|
112
|
+
resource_name: str,
|
|
113
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
114
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
115
|
+
__props__=None):
|
|
116
|
+
"""
|
|
117
|
+
Provides a OSS Bucket Data Redundancy Transition resource. Create a storage redundancy transition task to convert local redundant storage(LRS) to zone redundant storage(ZRS).
|
|
118
|
+
|
|
119
|
+
For information about OSS Bucket Data Redundancy Transition and how to use it, see [What is Bucket Data Redundancy Transition](https://www.alibabacloud.com/help/en/oss/developer-reference/createbucketdataredundancytransition).
|
|
120
|
+
|
|
121
|
+
> **NOTE:** Available since v1.224.0.
|
|
122
|
+
|
|
123
|
+
## Example Usage
|
|
124
|
+
|
|
125
|
+
Basic Usage
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
import pulumi
|
|
129
|
+
import pulumi_alicloud as alicloud
|
|
130
|
+
|
|
131
|
+
config = pulumi.Config()
|
|
132
|
+
name = config.get("name")
|
|
133
|
+
if name is None:
|
|
134
|
+
name = "terraform-example"
|
|
135
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
136
|
+
storage_class="Standard",
|
|
137
|
+
bucket=name)
|
|
138
|
+
default = alicloud.oss.BucketDataRedundancyTransition("default", bucket=create_bucket.bucket)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Import
|
|
142
|
+
|
|
143
|
+
OSS Bucket Data Redundancy Transition can be imported using the id, e.g.
|
|
144
|
+
|
|
145
|
+
```sh
|
|
146
|
+
$ pulumi import alicloud:oss/bucketDataRedundancyTransition:BucketDataRedundancyTransition example <bucket>:<task_id>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
:param str resource_name: The name of the resource.
|
|
150
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
151
|
+
:param pulumi.Input[str] bucket: Storage space name.
|
|
152
|
+
"""
|
|
153
|
+
...
|
|
154
|
+
@overload
|
|
155
|
+
def __init__(__self__,
|
|
156
|
+
resource_name: str,
|
|
157
|
+
args: BucketDataRedundancyTransitionArgs,
|
|
158
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
159
|
+
"""
|
|
160
|
+
Provides a OSS Bucket Data Redundancy Transition resource. Create a storage redundancy transition task to convert local redundant storage(LRS) to zone redundant storage(ZRS).
|
|
161
|
+
|
|
162
|
+
For information about OSS Bucket Data Redundancy Transition and how to use it, see [What is Bucket Data Redundancy Transition](https://www.alibabacloud.com/help/en/oss/developer-reference/createbucketdataredundancytransition).
|
|
163
|
+
|
|
164
|
+
> **NOTE:** Available since v1.224.0.
|
|
165
|
+
|
|
166
|
+
## Example Usage
|
|
167
|
+
|
|
168
|
+
Basic Usage
|
|
169
|
+
|
|
170
|
+
```python
|
|
171
|
+
import pulumi
|
|
172
|
+
import pulumi_alicloud as alicloud
|
|
173
|
+
|
|
174
|
+
config = pulumi.Config()
|
|
175
|
+
name = config.get("name")
|
|
176
|
+
if name is None:
|
|
177
|
+
name = "terraform-example"
|
|
178
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
179
|
+
storage_class="Standard",
|
|
180
|
+
bucket=name)
|
|
181
|
+
default = alicloud.oss.BucketDataRedundancyTransition("default", bucket=create_bucket.bucket)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Import
|
|
185
|
+
|
|
186
|
+
OSS Bucket Data Redundancy Transition can be imported using the id, e.g.
|
|
187
|
+
|
|
188
|
+
```sh
|
|
189
|
+
$ pulumi import alicloud:oss/bucketDataRedundancyTransition:BucketDataRedundancyTransition example <bucket>:<task_id>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
:param str resource_name: The name of the resource.
|
|
193
|
+
:param BucketDataRedundancyTransitionArgs args: The arguments to use to populate this resource's properties.
|
|
194
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
195
|
+
"""
|
|
196
|
+
...
|
|
197
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
198
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketDataRedundancyTransitionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
199
|
+
if resource_args is not None:
|
|
200
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
201
|
+
else:
|
|
202
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
203
|
+
|
|
204
|
+
def _internal_init(__self__,
|
|
205
|
+
resource_name: str,
|
|
206
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
207
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
208
|
+
__props__=None):
|
|
209
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
210
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
211
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
212
|
+
if opts.id is None:
|
|
213
|
+
if __props__ is not None:
|
|
214
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
215
|
+
__props__ = BucketDataRedundancyTransitionArgs.__new__(BucketDataRedundancyTransitionArgs)
|
|
216
|
+
|
|
217
|
+
if bucket is None and not opts.urn:
|
|
218
|
+
raise TypeError("Missing required property 'bucket'")
|
|
219
|
+
__props__.__dict__["bucket"] = bucket
|
|
220
|
+
__props__.__dict__["create_time"] = None
|
|
221
|
+
__props__.__dict__["status"] = None
|
|
222
|
+
__props__.__dict__["task_id"] = None
|
|
223
|
+
super(BucketDataRedundancyTransition, __self__).__init__(
|
|
224
|
+
'alicloud:oss/bucketDataRedundancyTransition:BucketDataRedundancyTransition',
|
|
225
|
+
resource_name,
|
|
226
|
+
__props__,
|
|
227
|
+
opts)
|
|
228
|
+
|
|
229
|
+
@staticmethod
|
|
230
|
+
def get(resource_name: str,
|
|
231
|
+
id: pulumi.Input[str],
|
|
232
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
233
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
234
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
236
|
+
task_id: Optional[pulumi.Input[str]] = None) -> 'BucketDataRedundancyTransition':
|
|
237
|
+
"""
|
|
238
|
+
Get an existing BucketDataRedundancyTransition resource's state with the given name, id, and optional extra
|
|
239
|
+
properties used to qualify the lookup.
|
|
240
|
+
|
|
241
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
242
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
243
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
244
|
+
:param pulumi.Input[str] bucket: Storage space name.
|
|
245
|
+
:param pulumi.Input[str] create_time: Stores the creation time of the redundant transformation task.
|
|
246
|
+
:param pulumi.Input[str] status: Stores the state of the redundant translation task. The values are as follows: Queueing: in the queue. Processing: In progress. Finished: Finished.
|
|
247
|
+
:param pulumi.Input[str] task_id: Unique identification of the storage redundancy conversion task.
|
|
248
|
+
"""
|
|
249
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
250
|
+
|
|
251
|
+
__props__ = _BucketDataRedundancyTransitionState.__new__(_BucketDataRedundancyTransitionState)
|
|
252
|
+
|
|
253
|
+
__props__.__dict__["bucket"] = bucket
|
|
254
|
+
__props__.__dict__["create_time"] = create_time
|
|
255
|
+
__props__.__dict__["status"] = status
|
|
256
|
+
__props__.__dict__["task_id"] = task_id
|
|
257
|
+
return BucketDataRedundancyTransition(resource_name, opts=opts, __props__=__props__)
|
|
258
|
+
|
|
259
|
+
@property
|
|
260
|
+
@pulumi.getter
|
|
261
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
262
|
+
"""
|
|
263
|
+
Storage space name.
|
|
264
|
+
"""
|
|
265
|
+
return pulumi.get(self, "bucket")
|
|
266
|
+
|
|
267
|
+
@property
|
|
268
|
+
@pulumi.getter(name="createTime")
|
|
269
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
270
|
+
"""
|
|
271
|
+
Stores the creation time of the redundant transformation task.
|
|
272
|
+
"""
|
|
273
|
+
return pulumi.get(self, "create_time")
|
|
274
|
+
|
|
275
|
+
@property
|
|
276
|
+
@pulumi.getter
|
|
277
|
+
def status(self) -> pulumi.Output[str]:
|
|
278
|
+
"""
|
|
279
|
+
Stores the state of the redundant translation task. The values are as follows: Queueing: in the queue. Processing: In progress. Finished: Finished.
|
|
280
|
+
"""
|
|
281
|
+
return pulumi.get(self, "status")
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
@pulumi.getter(name="taskId")
|
|
285
|
+
def task_id(self) -> pulumi.Output[str]:
|
|
286
|
+
"""
|
|
287
|
+
Unique identification of the storage redundancy conversion task.
|
|
288
|
+
"""
|
|
289
|
+
return pulumi.get(self, "task_id")
|
|
290
|
+
|
|
@@ -0,0 +1,270 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from .. import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = ['BucketMetaQueryArgs', 'BucketMetaQuery']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class BucketMetaQueryArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
bucket: pulumi.Input[str]):
|
|
18
|
+
"""
|
|
19
|
+
The set of arguments for constructing a BucketMetaQuery resource.
|
|
20
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
21
|
+
"""
|
|
22
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
@pulumi.getter
|
|
26
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
27
|
+
"""
|
|
28
|
+
The name of the bucket.
|
|
29
|
+
"""
|
|
30
|
+
return pulumi.get(self, "bucket")
|
|
31
|
+
|
|
32
|
+
@bucket.setter
|
|
33
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
34
|
+
pulumi.set(self, "bucket", value)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@pulumi.input_type
|
|
38
|
+
class _BucketMetaQueryState:
|
|
39
|
+
def __init__(__self__, *,
|
|
40
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
41
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
42
|
+
status: Optional[pulumi.Input[str]] = None):
|
|
43
|
+
"""
|
|
44
|
+
Input properties used for looking up and filtering BucketMetaQuery resources.
|
|
45
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
46
|
+
:param pulumi.Input[str] create_time: The creation time of the metadata index database. The format is mm:ss + TIMEZONE in the YYYY-MM-DDTHH format of RFC 3339. Where YYYY-MM-DD indicates the year, month and day, T indicates the beginning of the time element, HH:mm:ss indicates the hour, minute and second, and TIMEZONE indicates the time zone.
|
|
47
|
+
:param pulumi.Input[str] status: The status of the resource.
|
|
48
|
+
"""
|
|
49
|
+
if bucket is not None:
|
|
50
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
51
|
+
if create_time is not None:
|
|
52
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
53
|
+
if status is not None:
|
|
54
|
+
pulumi.set(__self__, "status", status)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
59
|
+
"""
|
|
60
|
+
The name of the bucket.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "bucket")
|
|
63
|
+
|
|
64
|
+
@bucket.setter
|
|
65
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
66
|
+
pulumi.set(self, "bucket", value)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter(name="createTime")
|
|
70
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
The creation time of the metadata index database. The format is mm:ss + TIMEZONE in the YYYY-MM-DDTHH format of RFC 3339. Where YYYY-MM-DD indicates the year, month and day, T indicates the beginning of the time element, HH:mm:ss indicates the hour, minute and second, and TIMEZONE indicates the time zone.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "create_time")
|
|
75
|
+
|
|
76
|
+
@create_time.setter
|
|
77
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "create_time", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
83
|
+
"""
|
|
84
|
+
The status of the resource.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "status")
|
|
87
|
+
|
|
88
|
+
@status.setter
|
|
89
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
90
|
+
pulumi.set(self, "status", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class BucketMetaQuery(pulumi.CustomResource):
|
|
94
|
+
@overload
|
|
95
|
+
def __init__(__self__,
|
|
96
|
+
resource_name: str,
|
|
97
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
98
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
__props__=None):
|
|
100
|
+
"""
|
|
101
|
+
Provides a OSS Bucket Meta Query resource. Enables the metadata management feature for a bucket.
|
|
102
|
+
|
|
103
|
+
For information about OSS Bucket Meta Query and how to use it, see [What is Bucket Meta Query](https://www.alibabacloud.com/help/en/oss/developer-reference/openmetaquery).
|
|
104
|
+
|
|
105
|
+
> **NOTE:** Available since v1.224.0.
|
|
106
|
+
|
|
107
|
+
## Example Usage
|
|
108
|
+
|
|
109
|
+
Basic Usage
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
import pulumi
|
|
113
|
+
import pulumi_alicloud as alicloud
|
|
114
|
+
import pulumi_random as random
|
|
115
|
+
|
|
116
|
+
config = pulumi.Config()
|
|
117
|
+
name = config.get("name")
|
|
118
|
+
if name is None:
|
|
119
|
+
name = "terraform-example"
|
|
120
|
+
default = random.index.Integer("default",
|
|
121
|
+
min=10000,
|
|
122
|
+
max=99999)
|
|
123
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
124
|
+
storage_class="Standard",
|
|
125
|
+
bucket=f"{name}-{default['result']}")
|
|
126
|
+
default_bucket_meta_query = alicloud.oss.BucketMetaQuery("default", bucket=create_bucket.bucket)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Import
|
|
130
|
+
|
|
131
|
+
OSS Bucket Meta Query can be imported using the id, e.g.
|
|
132
|
+
|
|
133
|
+
```sh
|
|
134
|
+
$ pulumi import alicloud:oss/bucketMetaQuery:BucketMetaQuery example <id>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
:param str resource_name: The name of the resource.
|
|
138
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
139
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
140
|
+
"""
|
|
141
|
+
...
|
|
142
|
+
@overload
|
|
143
|
+
def __init__(__self__,
|
|
144
|
+
resource_name: str,
|
|
145
|
+
args: BucketMetaQueryArgs,
|
|
146
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
147
|
+
"""
|
|
148
|
+
Provides a OSS Bucket Meta Query resource. Enables the metadata management feature for a bucket.
|
|
149
|
+
|
|
150
|
+
For information about OSS Bucket Meta Query and how to use it, see [What is Bucket Meta Query](https://www.alibabacloud.com/help/en/oss/developer-reference/openmetaquery).
|
|
151
|
+
|
|
152
|
+
> **NOTE:** Available since v1.224.0.
|
|
153
|
+
|
|
154
|
+
## Example Usage
|
|
155
|
+
|
|
156
|
+
Basic Usage
|
|
157
|
+
|
|
158
|
+
```python
|
|
159
|
+
import pulumi
|
|
160
|
+
import pulumi_alicloud as alicloud
|
|
161
|
+
import pulumi_random as random
|
|
162
|
+
|
|
163
|
+
config = pulumi.Config()
|
|
164
|
+
name = config.get("name")
|
|
165
|
+
if name is None:
|
|
166
|
+
name = "terraform-example"
|
|
167
|
+
default = random.index.Integer("default",
|
|
168
|
+
min=10000,
|
|
169
|
+
max=99999)
|
|
170
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
171
|
+
storage_class="Standard",
|
|
172
|
+
bucket=f"{name}-{default['result']}")
|
|
173
|
+
default_bucket_meta_query = alicloud.oss.BucketMetaQuery("default", bucket=create_bucket.bucket)
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Import
|
|
177
|
+
|
|
178
|
+
OSS Bucket Meta Query can be imported using the id, e.g.
|
|
179
|
+
|
|
180
|
+
```sh
|
|
181
|
+
$ pulumi import alicloud:oss/bucketMetaQuery:BucketMetaQuery example <id>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
:param str resource_name: The name of the resource.
|
|
185
|
+
:param BucketMetaQueryArgs args: The arguments to use to populate this resource's properties.
|
|
186
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
187
|
+
"""
|
|
188
|
+
...
|
|
189
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
190
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketMetaQueryArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
191
|
+
if resource_args is not None:
|
|
192
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
193
|
+
else:
|
|
194
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
195
|
+
|
|
196
|
+
def _internal_init(__self__,
|
|
197
|
+
resource_name: str,
|
|
198
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
199
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
200
|
+
__props__=None):
|
|
201
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
202
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
203
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
204
|
+
if opts.id is None:
|
|
205
|
+
if __props__ is not None:
|
|
206
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
207
|
+
__props__ = BucketMetaQueryArgs.__new__(BucketMetaQueryArgs)
|
|
208
|
+
|
|
209
|
+
if bucket is None and not opts.urn:
|
|
210
|
+
raise TypeError("Missing required property 'bucket'")
|
|
211
|
+
__props__.__dict__["bucket"] = bucket
|
|
212
|
+
__props__.__dict__["create_time"] = None
|
|
213
|
+
__props__.__dict__["status"] = None
|
|
214
|
+
super(BucketMetaQuery, __self__).__init__(
|
|
215
|
+
'alicloud:oss/bucketMetaQuery:BucketMetaQuery',
|
|
216
|
+
resource_name,
|
|
217
|
+
__props__,
|
|
218
|
+
opts)
|
|
219
|
+
|
|
220
|
+
@staticmethod
|
|
221
|
+
def get(resource_name: str,
|
|
222
|
+
id: pulumi.Input[str],
|
|
223
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
224
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
225
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
226
|
+
status: Optional[pulumi.Input[str]] = None) -> 'BucketMetaQuery':
|
|
227
|
+
"""
|
|
228
|
+
Get an existing BucketMetaQuery resource's state with the given name, id, and optional extra
|
|
229
|
+
properties used to qualify the lookup.
|
|
230
|
+
|
|
231
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
232
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
233
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
234
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
235
|
+
:param pulumi.Input[str] create_time: The creation time of the metadata index database. The format is mm:ss + TIMEZONE in the YYYY-MM-DDTHH format of RFC 3339. Where YYYY-MM-DD indicates the year, month and day, T indicates the beginning of the time element, HH:mm:ss indicates the hour, minute and second, and TIMEZONE indicates the time zone.
|
|
236
|
+
:param pulumi.Input[str] status: The status of the resource.
|
|
237
|
+
"""
|
|
238
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
239
|
+
|
|
240
|
+
__props__ = _BucketMetaQueryState.__new__(_BucketMetaQueryState)
|
|
241
|
+
|
|
242
|
+
__props__.__dict__["bucket"] = bucket
|
|
243
|
+
__props__.__dict__["create_time"] = create_time
|
|
244
|
+
__props__.__dict__["status"] = status
|
|
245
|
+
return BucketMetaQuery(resource_name, opts=opts, __props__=__props__)
|
|
246
|
+
|
|
247
|
+
@property
|
|
248
|
+
@pulumi.getter
|
|
249
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
250
|
+
"""
|
|
251
|
+
The name of the bucket.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "bucket")
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
@pulumi.getter(name="createTime")
|
|
257
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
258
|
+
"""
|
|
259
|
+
The creation time of the metadata index database. The format is mm:ss + TIMEZONE in the YYYY-MM-DDTHH format of RFC 3339. Where YYYY-MM-DD indicates the year, month and day, T indicates the beginning of the time element, HH:mm:ss indicates the hour, minute and second, and TIMEZONE indicates the time zone.
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "create_time")
|
|
262
|
+
|
|
263
|
+
@property
|
|
264
|
+
@pulumi.getter
|
|
265
|
+
def status(self) -> pulumi.Output[str]:
|
|
266
|
+
"""
|
|
267
|
+
The status of the resource.
|
|
268
|
+
"""
|
|
269
|
+
return pulumi.get(self, "status")
|
|
270
|
+
|