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,258 @@
|
|
|
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__ = ['BucketPublicAccessBlockArgs', 'BucketPublicAccessBlock']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class BucketPublicAccessBlockArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
block_public_access: pulumi.Input[bool],
|
|
18
|
+
bucket: pulumi.Input[str]):
|
|
19
|
+
"""
|
|
20
|
+
The set of arguments for constructing a BucketPublicAccessBlock resource.
|
|
21
|
+
:param pulumi.Input[bool] block_public_access: Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
22
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
23
|
+
"""
|
|
24
|
+
pulumi.set(__self__, "block_public_access", block_public_access)
|
|
25
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
@pulumi.getter(name="blockPublicAccess")
|
|
29
|
+
def block_public_access(self) -> pulumi.Input[bool]:
|
|
30
|
+
"""
|
|
31
|
+
Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
32
|
+
"""
|
|
33
|
+
return pulumi.get(self, "block_public_access")
|
|
34
|
+
|
|
35
|
+
@block_public_access.setter
|
|
36
|
+
def block_public_access(self, value: pulumi.Input[bool]):
|
|
37
|
+
pulumi.set(self, "block_public_access", value)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
@pulumi.getter
|
|
41
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
42
|
+
"""
|
|
43
|
+
The name of the bucket.
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "bucket")
|
|
46
|
+
|
|
47
|
+
@bucket.setter
|
|
48
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
49
|
+
pulumi.set(self, "bucket", value)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@pulumi.input_type
|
|
53
|
+
class _BucketPublicAccessBlockState:
|
|
54
|
+
def __init__(__self__, *,
|
|
55
|
+
block_public_access: Optional[pulumi.Input[bool]] = None,
|
|
56
|
+
bucket: Optional[pulumi.Input[str]] = None):
|
|
57
|
+
"""
|
|
58
|
+
Input properties used for looking up and filtering BucketPublicAccessBlock resources.
|
|
59
|
+
:param pulumi.Input[bool] block_public_access: Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
60
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
61
|
+
"""
|
|
62
|
+
if block_public_access is not None:
|
|
63
|
+
pulumi.set(__self__, "block_public_access", block_public_access)
|
|
64
|
+
if bucket is not None:
|
|
65
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="blockPublicAccess")
|
|
69
|
+
def block_public_access(self) -> Optional[pulumi.Input[bool]]:
|
|
70
|
+
"""
|
|
71
|
+
Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "block_public_access")
|
|
74
|
+
|
|
75
|
+
@block_public_access.setter
|
|
76
|
+
def block_public_access(self, value: Optional[pulumi.Input[bool]]):
|
|
77
|
+
pulumi.set(self, "block_public_access", value)
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter
|
|
81
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
82
|
+
"""
|
|
83
|
+
The name of the bucket.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "bucket")
|
|
86
|
+
|
|
87
|
+
@bucket.setter
|
|
88
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
89
|
+
pulumi.set(self, "bucket", value)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class BucketPublicAccessBlock(pulumi.CustomResource):
|
|
93
|
+
@overload
|
|
94
|
+
def __init__(__self__,
|
|
95
|
+
resource_name: str,
|
|
96
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
97
|
+
block_public_access: Optional[pulumi.Input[bool]] = None,
|
|
98
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
__props__=None):
|
|
100
|
+
"""
|
|
101
|
+
Provides a OSS Bucket Public Access Block resource. Blocking public access at the bucket-level.
|
|
102
|
+
|
|
103
|
+
For information about OSS Bucket Public Access Block and how to use it, see [What is Bucket Public Access Block](https://www.alibabacloud.com/help/en/oss/developer-reference/putbucketpublicaccessblock).
|
|
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
|
+
|
|
115
|
+
config = pulumi.Config()
|
|
116
|
+
name = config.get("name")
|
|
117
|
+
if name is None:
|
|
118
|
+
name = "terraform-example"
|
|
119
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
120
|
+
storage_class="Standard",
|
|
121
|
+
bucket=name)
|
|
122
|
+
default = alicloud.oss.BucketPublicAccessBlock("default",
|
|
123
|
+
bucket=create_bucket.bucket,
|
|
124
|
+
block_public_access=True)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Import
|
|
128
|
+
|
|
129
|
+
OSS Bucket Public Access Block can be imported using the id, e.g.
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
$ pulumi import alicloud:oss/bucketPublicAccessBlock:BucketPublicAccessBlock example <id>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
:param str resource_name: The name of the resource.
|
|
136
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
137
|
+
:param pulumi.Input[bool] block_public_access: Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
138
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
139
|
+
"""
|
|
140
|
+
...
|
|
141
|
+
@overload
|
|
142
|
+
def __init__(__self__,
|
|
143
|
+
resource_name: str,
|
|
144
|
+
args: BucketPublicAccessBlockArgs,
|
|
145
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
146
|
+
"""
|
|
147
|
+
Provides a OSS Bucket Public Access Block resource. Blocking public access at the bucket-level.
|
|
148
|
+
|
|
149
|
+
For information about OSS Bucket Public Access Block and how to use it, see [What is Bucket Public Access Block](https://www.alibabacloud.com/help/en/oss/developer-reference/putbucketpublicaccessblock).
|
|
150
|
+
|
|
151
|
+
> **NOTE:** Available since v1.224.0.
|
|
152
|
+
|
|
153
|
+
## Example Usage
|
|
154
|
+
|
|
155
|
+
Basic Usage
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
import pulumi
|
|
159
|
+
import pulumi_alicloud as alicloud
|
|
160
|
+
|
|
161
|
+
config = pulumi.Config()
|
|
162
|
+
name = config.get("name")
|
|
163
|
+
if name is None:
|
|
164
|
+
name = "terraform-example"
|
|
165
|
+
create_bucket = alicloud.oss.Bucket("CreateBucket",
|
|
166
|
+
storage_class="Standard",
|
|
167
|
+
bucket=name)
|
|
168
|
+
default = alicloud.oss.BucketPublicAccessBlock("default",
|
|
169
|
+
bucket=create_bucket.bucket,
|
|
170
|
+
block_public_access=True)
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Import
|
|
174
|
+
|
|
175
|
+
OSS Bucket Public Access Block can be imported using the id, e.g.
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
$ pulumi import alicloud:oss/bucketPublicAccessBlock:BucketPublicAccessBlock example <id>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
:param str resource_name: The name of the resource.
|
|
182
|
+
:param BucketPublicAccessBlockArgs args: The arguments to use to populate this resource's properties.
|
|
183
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
184
|
+
"""
|
|
185
|
+
...
|
|
186
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
187
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketPublicAccessBlockArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
188
|
+
if resource_args is not None:
|
|
189
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
190
|
+
else:
|
|
191
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
192
|
+
|
|
193
|
+
def _internal_init(__self__,
|
|
194
|
+
resource_name: str,
|
|
195
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
196
|
+
block_public_access: Optional[pulumi.Input[bool]] = None,
|
|
197
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
198
|
+
__props__=None):
|
|
199
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
200
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
201
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
202
|
+
if opts.id is None:
|
|
203
|
+
if __props__ is not None:
|
|
204
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
205
|
+
__props__ = BucketPublicAccessBlockArgs.__new__(BucketPublicAccessBlockArgs)
|
|
206
|
+
|
|
207
|
+
if block_public_access is None and not opts.urn:
|
|
208
|
+
raise TypeError("Missing required property 'block_public_access'")
|
|
209
|
+
__props__.__dict__["block_public_access"] = block_public_access
|
|
210
|
+
if bucket is None and not opts.urn:
|
|
211
|
+
raise TypeError("Missing required property 'bucket'")
|
|
212
|
+
__props__.__dict__["bucket"] = bucket
|
|
213
|
+
super(BucketPublicAccessBlock, __self__).__init__(
|
|
214
|
+
'alicloud:oss/bucketPublicAccessBlock:BucketPublicAccessBlock',
|
|
215
|
+
resource_name,
|
|
216
|
+
__props__,
|
|
217
|
+
opts)
|
|
218
|
+
|
|
219
|
+
@staticmethod
|
|
220
|
+
def get(resource_name: str,
|
|
221
|
+
id: pulumi.Input[str],
|
|
222
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
223
|
+
block_public_access: Optional[pulumi.Input[bool]] = None,
|
|
224
|
+
bucket: Optional[pulumi.Input[str]] = None) -> 'BucketPublicAccessBlock':
|
|
225
|
+
"""
|
|
226
|
+
Get an existing BucketPublicAccessBlock resource's state with the given name, id, and optional extra
|
|
227
|
+
properties used to qualify the lookup.
|
|
228
|
+
|
|
229
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
230
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
231
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
232
|
+
:param pulumi.Input[bool] block_public_access: Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
233
|
+
:param pulumi.Input[str] bucket: The name of the bucket.
|
|
234
|
+
"""
|
|
235
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
236
|
+
|
|
237
|
+
__props__ = _BucketPublicAccessBlockState.__new__(_BucketPublicAccessBlockState)
|
|
238
|
+
|
|
239
|
+
__props__.__dict__["block_public_access"] = block_public_access
|
|
240
|
+
__props__.__dict__["bucket"] = bucket
|
|
241
|
+
return BucketPublicAccessBlock(resource_name, opts=opts, __props__=__props__)
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
@pulumi.getter(name="blockPublicAccess")
|
|
245
|
+
def block_public_access(self) -> pulumi.Output[bool]:
|
|
246
|
+
"""
|
|
247
|
+
Whether AlibabaCloud OSS should block public bucket policies and ACL for this bucket.
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "block_public_access")
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
@pulumi.getter
|
|
253
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
254
|
+
"""
|
|
255
|
+
The name of the bucket.
|
|
256
|
+
"""
|
|
257
|
+
return pulumi.get(self, "bucket")
|
|
258
|
+
|
|
@@ -0,0 +1,205 @@
|
|
|
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__ = ['BucketTransferAccelerationInitArgs', 'BucketTransferAcceleration']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class BucketTransferAccelerationInitArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
bucket: pulumi.Input[str],
|
|
18
|
+
enabled: Optional[pulumi.Input[bool]] = None):
|
|
19
|
+
"""
|
|
20
|
+
The set of arguments for constructing a BucketTransferAcceleration resource.
|
|
21
|
+
:param pulumi.Input[str] bucket: The name of the Bucket.
|
|
22
|
+
:param pulumi.Input[bool] enabled: Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
23
|
+
"""
|
|
24
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
25
|
+
if enabled is not None:
|
|
26
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
27
|
+
|
|
28
|
+
@property
|
|
29
|
+
@pulumi.getter
|
|
30
|
+
def bucket(self) -> pulumi.Input[str]:
|
|
31
|
+
"""
|
|
32
|
+
The name of the Bucket.
|
|
33
|
+
"""
|
|
34
|
+
return pulumi.get(self, "bucket")
|
|
35
|
+
|
|
36
|
+
@bucket.setter
|
|
37
|
+
def bucket(self, value: pulumi.Input[str]):
|
|
38
|
+
pulumi.set(self, "bucket", value)
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
43
|
+
"""
|
|
44
|
+
Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "enabled")
|
|
47
|
+
|
|
48
|
+
@enabled.setter
|
|
49
|
+
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
50
|
+
pulumi.set(self, "enabled", value)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@pulumi.input_type
|
|
54
|
+
class _BucketTransferAccelerationState:
|
|
55
|
+
def __init__(__self__, *,
|
|
56
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
57
|
+
enabled: Optional[pulumi.Input[bool]] = None):
|
|
58
|
+
"""
|
|
59
|
+
Input properties used for looking up and filtering BucketTransferAcceleration resources.
|
|
60
|
+
:param pulumi.Input[str] bucket: The name of the Bucket.
|
|
61
|
+
:param pulumi.Input[bool] enabled: Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
62
|
+
"""
|
|
63
|
+
if bucket is not None:
|
|
64
|
+
pulumi.set(__self__, "bucket", bucket)
|
|
65
|
+
if enabled is not None:
|
|
66
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
@pulumi.getter
|
|
70
|
+
def bucket(self) -> Optional[pulumi.Input[str]]:
|
|
71
|
+
"""
|
|
72
|
+
The name of the Bucket.
|
|
73
|
+
"""
|
|
74
|
+
return pulumi.get(self, "bucket")
|
|
75
|
+
|
|
76
|
+
@bucket.setter
|
|
77
|
+
def bucket(self, value: Optional[pulumi.Input[str]]):
|
|
78
|
+
pulumi.set(self, "bucket", value)
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
@pulumi.getter
|
|
82
|
+
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
83
|
+
"""
|
|
84
|
+
Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
85
|
+
"""
|
|
86
|
+
return pulumi.get(self, "enabled")
|
|
87
|
+
|
|
88
|
+
@enabled.setter
|
|
89
|
+
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
90
|
+
pulumi.set(self, "enabled", value)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class BucketTransferAcceleration(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
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
100
|
+
__props__=None):
|
|
101
|
+
"""
|
|
102
|
+
## Import
|
|
103
|
+
|
|
104
|
+
OSS Bucket Transfer Acceleration can be imported using the id, e.g.
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
$ pulumi import alicloud:oss/bucketTransferAcceleration:BucketTransferAcceleration example <id>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
:param str resource_name: The name of the resource.
|
|
111
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
112
|
+
:param pulumi.Input[str] bucket: The name of the Bucket.
|
|
113
|
+
:param pulumi.Input[bool] enabled: Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
114
|
+
"""
|
|
115
|
+
...
|
|
116
|
+
@overload
|
|
117
|
+
def __init__(__self__,
|
|
118
|
+
resource_name: str,
|
|
119
|
+
args: BucketTransferAccelerationInitArgs,
|
|
120
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
121
|
+
"""
|
|
122
|
+
## Import
|
|
123
|
+
|
|
124
|
+
OSS Bucket Transfer Acceleration can be imported using the id, e.g.
|
|
125
|
+
|
|
126
|
+
```sh
|
|
127
|
+
$ pulumi import alicloud:oss/bucketTransferAcceleration:BucketTransferAcceleration example <id>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
:param str resource_name: The name of the resource.
|
|
131
|
+
:param BucketTransferAccelerationInitArgs args: The arguments to use to populate this resource's properties.
|
|
132
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
133
|
+
"""
|
|
134
|
+
...
|
|
135
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
136
|
+
resource_args, opts = _utilities.get_resource_args_opts(BucketTransferAccelerationInitArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
137
|
+
if resource_args is not None:
|
|
138
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
139
|
+
else:
|
|
140
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
141
|
+
|
|
142
|
+
def _internal_init(__self__,
|
|
143
|
+
resource_name: str,
|
|
144
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
145
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
146
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
147
|
+
__props__=None):
|
|
148
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
149
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
150
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
151
|
+
if opts.id is None:
|
|
152
|
+
if __props__ is not None:
|
|
153
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
154
|
+
__props__ = BucketTransferAccelerationInitArgs.__new__(BucketTransferAccelerationInitArgs)
|
|
155
|
+
|
|
156
|
+
if bucket is None and not opts.urn:
|
|
157
|
+
raise TypeError("Missing required property 'bucket'")
|
|
158
|
+
__props__.__dict__["bucket"] = bucket
|
|
159
|
+
__props__.__dict__["enabled"] = enabled
|
|
160
|
+
super(BucketTransferAcceleration, __self__).__init__(
|
|
161
|
+
'alicloud:oss/bucketTransferAcceleration:BucketTransferAcceleration',
|
|
162
|
+
resource_name,
|
|
163
|
+
__props__,
|
|
164
|
+
opts)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def get(resource_name: str,
|
|
168
|
+
id: pulumi.Input[str],
|
|
169
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
170
|
+
bucket: Optional[pulumi.Input[str]] = None,
|
|
171
|
+
enabled: Optional[pulumi.Input[bool]] = None) -> 'BucketTransferAcceleration':
|
|
172
|
+
"""
|
|
173
|
+
Get an existing BucketTransferAcceleration resource's state with the given name, id, and optional extra
|
|
174
|
+
properties used to qualify the lookup.
|
|
175
|
+
|
|
176
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
177
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
178
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
179
|
+
:param pulumi.Input[str] bucket: The name of the Bucket.
|
|
180
|
+
:param pulumi.Input[bool] enabled: Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
181
|
+
"""
|
|
182
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
183
|
+
|
|
184
|
+
__props__ = _BucketTransferAccelerationState.__new__(_BucketTransferAccelerationState)
|
|
185
|
+
|
|
186
|
+
__props__.__dict__["bucket"] = bucket
|
|
187
|
+
__props__.__dict__["enabled"] = enabled
|
|
188
|
+
return BucketTransferAcceleration(resource_name, opts=opts, __props__=__props__)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
@pulumi.getter
|
|
192
|
+
def bucket(self) -> pulumi.Output[str]:
|
|
193
|
+
"""
|
|
194
|
+
The name of the Bucket.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "bucket")
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
@pulumi.getter
|
|
200
|
+
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
201
|
+
"""
|
|
202
|
+
Specifies whether to enable transfer acceleration for the bucket. Valid values: true: transfer acceleration for the bucket is enabled. false: transfer acceleration for the bucket is disabled.
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "enabled")
|
|
205
|
+
|