pulumi-alicloud 3.84.0a1756507491__py3-none-any.whl → 3.84.0a1757017465__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 +108 -0
- pulumi_alicloud/_inputs.py +635 -0
- pulumi_alicloud/ackone/membership_attachment.py +122 -0
- pulumi_alicloud/actiontrail/__init__.py +1 -0
- pulumi_alicloud/actiontrail/advanced_query_template.py +311 -0
- pulumi_alicloud/actiontrail/trail.py +303 -149
- pulumi_alicloud/actiontrail/trail_deprecated.py +131 -23
- pulumi_alicloud/alb/a_script.py +170 -0
- pulumi_alicloud/alb/get_rules.py +206 -0
- pulumi_alicloud/alb/listener.py +240 -0
- pulumi_alicloud/alb/listener_acl_attachment.py +180 -0
- pulumi_alicloud/alb/listener_additional_certificate_attachment.py +314 -0
- pulumi_alicloud/alb/load_balancer_access_log_config_attachment.py +136 -0
- pulumi_alicloud/alb/load_balancer_common_bandwidth_package_attachment.py +122 -0
- pulumi_alicloud/alb/load_balancer_zone_shifted_attachment.py +124 -0
- pulumi_alicloud/alb/rule.py +202 -0
- pulumi_alicloud/alikafka/sasl_user.py +2 -2
- pulumi_alicloud/apig/environment.py +86 -0
- pulumi_alicloud/arms/__init__.py +6 -0
- pulumi_alicloud/arms/addon_release.py +174 -0
- pulumi_alicloud/arms/env_feature.py +158 -0
- pulumi_alicloud/arms/env_pod_monitor.py +206 -0
- pulumi_alicloud/arms/env_service_monitor.py +204 -0
- pulumi_alicloud/arms/environment.py +150 -0
- pulumi_alicloud/arms/get_addon_releases.py +354 -0
- pulumi_alicloud/arms/get_env_custom_jobs.py +268 -0
- pulumi_alicloud/arms/get_env_features.py +342 -0
- pulumi_alicloud/arms/get_env_pod_monitors.py +390 -0
- pulumi_alicloud/arms/get_env_service_monitors.py +388 -0
- pulumi_alicloud/arms/get_environments.py +282 -0
- pulumi_alicloud/arms/outputs.py +620 -0
- pulumi_alicloud/arms/prometheus_monitoring.py +190 -0
- pulumi_alicloud/cen/transit_router_multicast_domain_member.py +118 -0
- pulumi_alicloud/cen/transit_router_multicast_domain_source.py +160 -0
- pulumi_alicloud/cfg/aggregate_delivery.py +100 -0
- pulumi_alicloud/cfg/delivery_channel.py +54 -0
- pulumi_alicloud/cloudauth/face_config.py +48 -0
- pulumi_alicloud/cloudfirewall/nat_firewall_control_policy.py +236 -0
- pulumi_alicloud/cloudmonitor/__init__.py +1 -0
- pulumi_alicloud/cloudmonitor/get_service_metric_alarm_rules.py +333 -0
- pulumi_alicloud/cloudmonitor/outputs.py +696 -0
- pulumi_alicloud/cloudsso/access_configuration.py +12 -12
- pulumi_alicloud/cloudsso/access_configuration_provisioning.py +84 -0
- pulumi_alicloud/cloudsso/access_management.py +90 -0
- pulumi_alicloud/cloudsso/group.py +60 -0
- pulumi_alicloud/cloudsso/user.py +66 -0
- pulumi_alicloud/cloudsso/user_attachment.py +82 -0
- pulumi_alicloud/cloudstoragegateway/express_sync.py +154 -0
- pulumi_alicloud/cloudstoragegateway/express_sync_share_attachment.py +160 -0
- pulumi_alicloud/cloudstoragegateway/gateway.py +0 -13
- pulumi_alicloud/cloudstoragegateway/gateway_block_volume.py +132 -0
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +92 -0
- pulumi_alicloud/cloudstoragegateway/gateway_file_share.py +130 -0
- pulumi_alicloud/cloudstoragegateway/gateway_logging.py +120 -0
- pulumi_alicloud/cloudstoragegateway/gateway_smb_user.py +92 -0
- pulumi_alicloud/cms/alarm.py +4 -4
- pulumi_alicloud/cms/get_site_monitors.py +20 -20
- pulumi_alicloud/cms/hybrid_monitor_fc_task.py +24 -24
- pulumi_alicloud/cms/hybrid_monitor_sls_task.py +164 -0
- pulumi_alicloud/cms/site_monitor.py +20 -20
- pulumi_alicloud/cms/sls_group.py +80 -0
- pulumi_alicloud/compute/nest_service_instance.py +10 -10
- pulumi_alicloud/cs/_inputs.py +565 -0
- pulumi_alicloud/cs/autoscaling_config.py +260 -35
- pulumi_alicloud/cs/get_cluster_credential.py +30 -0
- pulumi_alicloud/cs/get_kubernetes_addon_metadata.py +78 -0
- pulumi_alicloud/cs/get_kubernetes_addons.py +72 -0
- pulumi_alicloud/cs/get_kubernetes_node_pools.py +124 -0
- pulumi_alicloud/cs/kubernetes.py +296 -0
- pulumi_alicloud/cs/kubernetes_addon.py +108 -0
- pulumi_alicloud/cs/kubernetes_permission.py +162 -0
- pulumi_alicloud/cs/managed_kubernetes.py +583 -14
- pulumi_alicloud/cs/node_pool.py +416 -0
- pulumi_alicloud/cs/outputs.py +374 -0
- pulumi_alicloud/dataworks/data_source_shared_rule.py +116 -0
- pulumi_alicloud/dataworks/dw_resource_group.py +82 -0
- pulumi_alicloud/dataworks/network.py +100 -0
- pulumi_alicloud/ddos/domain_resource.py +6 -6
- pulumi_alicloud/directmail/mail_address.py +62 -0
- pulumi_alicloud/directmail/receivers.py +40 -0
- pulumi_alicloud/dns/access_strategy.py +152 -0
- pulumi_alicloud/dns/address_pool.py +4 -4
- pulumi_alicloud/dts/job_monitor_rule.py +228 -0
- pulumi_alicloud/dts/migration_job.py +238 -0
- pulumi_alicloud/dts/synchronization_job.py +266 -14
- pulumi_alicloud/ebs/disk_replica_pair.py +112 -0
- pulumi_alicloud/ecs/ecs_network_interface_permission.py +84 -0
- pulumi_alicloud/ecs/image_import.py +2 -2
- pulumi_alicloud/ecs/ram_role_attachment.py +28 -28
- pulumi_alicloud/edas/k8s_application.py +124 -0
- pulumi_alicloud/edas/k8s_cluster.py +104 -0
- pulumi_alicloud/edas/k8s_slb_attachment.py +152 -0
- pulumi_alicloud/eflo/__init__.py +2 -0
- pulumi_alicloud/eflo/_inputs.py +94 -0
- pulumi_alicloud/eflo/er.py +487 -0
- pulumi_alicloud/eflo/node_group_attachment.py +604 -0
- pulumi_alicloud/eflo/outputs.py +75 -0
- pulumi_alicloud/emr/cluster.py +64 -64
- pulumi_alicloud/emr/get_clusters.py +16 -16
- pulumi_alicloud/emrv2/cluster.py +16 -16
- pulumi_alicloud/emrv2/get_cluster_instances.py +16 -16
- pulumi_alicloud/esa/__init__.py +4 -0
- pulumi_alicloud/esa/origin_ca_certificate.py +441 -0
- pulumi_alicloud/esa/origin_client_certificate.py +564 -0
- pulumi_alicloud/esa/origin_protection.py +290 -0
- pulumi_alicloud/esa/site_origin_client_certificate.py +515 -0
- pulumi_alicloud/eventbridge/rule.py +102 -0
- pulumi_alicloud/fc/_inputs.py +77 -3
- pulumi_alicloud/fc/custom_domain.py +14 -14
- pulumi_alicloud/fc/function.py +14 -14
- pulumi_alicloud/fc/function_async_invoke_config.py +48 -48
- pulumi_alicloud/fc/outputs.py +63 -2
- pulumi_alicloud/fc/trigger.py +100 -100
- pulumi_alicloud/fc/v3_async_invoke_config.py +154 -0
- pulumi_alicloud/fc/v3_function.py +189 -3
- pulumi_alicloud/fc/v3_function_version.py +30 -2
- pulumi_alicloud/fnf/execution.py +14 -14
- pulumi_alicloud/fnf/flow.py +14 -14
- pulumi_alicloud/ga/additional_certificate.py +236 -0
- pulumi_alicloud/gpdb/hadoop_data_source.py +16 -16
- pulumi_alicloud/gpdb/streaming_job.py +4 -4
- pulumi_alicloud/gwlb/listener.py +172 -0
- pulumi_alicloud/gwlb/load_balancer.py +96 -0
- pulumi_alicloud/gwlb/server_group.py +160 -0
- pulumi_alicloud/hbr/ecs_backup_plan.py +4 -4
- pulumi_alicloud/hbr/ots_backup_plan.py +28 -28
- pulumi_alicloud/hbr/restore_job.py +4 -4
- pulumi_alicloud/imm/project.py +14 -14
- pulumi_alicloud/kms/get_aliases.py +6 -6
- pulumi_alicloud/kms/get_instances.py +178 -0
- pulumi_alicloud/kms/instance.py +423 -16
- pulumi_alicloud/kms/policy.py +96 -0
- pulumi_alicloud/log/dashboard.py +40 -40
- pulumi_alicloud/log/ingestion.py +38 -38
- pulumi_alicloud/log/log_tail_attachment.py +20 -20
- pulumi_alicloud/log/log_tail_config.py +20 -20
- pulumi_alicloud/log/project.py +20 -20
- pulumi_alicloud/log/resource.py +22 -22
- pulumi_alicloud/log/resource_record.py +40 -40
- pulumi_alicloud/maxcompute/get_service.py +2 -2
- pulumi_alicloud/message/__init__.py +1 -0
- pulumi_alicloud/message/_inputs.py +141 -0
- pulumi_alicloud/message/outputs.py +120 -0
- pulumi_alicloud/message/service_event_rule.py +490 -0
- pulumi_alicloud/mongodb/__init__.py +1 -0
- pulumi_alicloud/mongodb/global_security_ip_group.py +304 -0
- pulumi_alicloud/mongodb/instance.py +47 -0
- pulumi_alicloud/mongodb/sharding_instance.py +47 -0
- pulumi_alicloud/msc_sub_webhook.py +44 -0
- pulumi_alicloud/mse/cluster.py +47 -0
- pulumi_alicloud/mse/gateway.py +62 -0
- pulumi_alicloud/nas/access_group.py +46 -18
- pulumi_alicloud/nas/access_rule.py +28 -0
- pulumi_alicloud/nas/data_flow.py +114 -0
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +328 -0
- pulumi_alicloud/oos/execution.py +30 -30
- pulumi_alicloud/oos/get_parameters.py +10 -10
- pulumi_alicloud/oos/get_secret_parameters.py +10 -10
- pulumi_alicloud/oos/template.py +28 -28
- pulumi_alicloud/oss/bucket.py +578 -0
- pulumi_alicloud/oss/bucket_replication.py +56 -56
- pulumi_alicloud/outputs.py +489 -0
- pulumi_alicloud/pai/flow_pipeline.py +70 -70
- pulumi_alicloud/pai/workspace_datasetversion.py +108 -0
- pulumi_alicloud/pai/workspace_run.py +62 -0
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +11 -11
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/endpoint.py +96 -0
- pulumi_alicloud/pvtz/rule.py +122 -0
- pulumi_alicloud/pvtz/rule_attachment.py +150 -0
- pulumi_alicloud/ram/get_policies.py +18 -18
- pulumi_alicloud/ram/get_policy_document.py +2 -2
- pulumi_alicloud/ram/get_role_policy_attachments.py +34 -34
- pulumi_alicloud/ram/get_users.py +32 -32
- pulumi_alicloud/ram/group_membership.py +74 -0
- pulumi_alicloud/ram/group_policy_attachment.py +18 -18
- pulumi_alicloud/ram/policy.py +18 -18
- pulumi_alicloud/ram/role.py +16 -16
- pulumi_alicloud/ram/role_attachment.py +14 -14
- pulumi_alicloud/ram/role_policy_attachment.py +34 -34
- pulumi_alicloud/ram/user_policy_attachment.py +18 -18
- pulumi_alicloud/rds/get_instance_classes.py +6 -4
- pulumi_alicloud/rds/outputs.py +4 -0
- pulumi_alicloud/rds/rds_clone_db_instance.py +8 -1
- pulumi_alicloud/resourcemanager/auto_grouping_rule.py +24 -24
- pulumi_alicloud/resourcemanager/control_policy.py +18 -18
- pulumi_alicloud/resourcemanager/control_policy_attachment.py +18 -18
- pulumi_alicloud/resourcemanager/get_shared_resources.py +64 -0
- pulumi_alicloud/resourcemanager/policy.py +16 -16
- pulumi_alicloud/resourcemanager/policy_attachment.py +82 -0
- pulumi_alicloud/resourcemanager/policy_version.py +32 -32
- pulumi_alicloud/resourcemanager/role.py +14 -14
- pulumi_alicloud/rocketmq/qos_policy.py +70 -0
- pulumi_alicloud/ros/_inputs.py +70 -18
- pulumi_alicloud/ros/outputs.py +59 -12
- pulumi_alicloud/ros/stack.py +14 -14
- pulumi_alicloud/ros/stack_group.py +342 -223
- pulumi_alicloud/ros/template.py +2 -2
- pulumi_alicloud/sag/qos_policy.py +70 -0
- pulumi_alicloud/sddp/data_limit.py +148 -0
- pulumi_alicloud/sddp/rule.py +10 -10
- pulumi_alicloud/servicecatalog/principal_portfolio_association.py +16 -16
- pulumi_alicloud/servicecatalog/product_portfolio_association.py +54 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/collection_policy.py +276 -0
- pulumi_alicloud/sls/get_etls.py +294 -0
- pulumi_alicloud/sls/oss_export_sink.py +134 -0
- pulumi_alicloud/sls/outputs.py +277 -0
- pulumi_alicloud/sslcertificatesservice/__init__.py +9 -0
- pulumi_alicloud/sslcertificatesservice/pca_certificate.py +646 -0
- pulumi_alicloud/star_rocks_instance.py +1425 -0
- pulumi_alicloud/tag/policy.py +2 -2
- pulumi_alicloud/tag/policy_attachment.py +2 -2
- pulumi_alicloud/threatdetection/__init__.py +1 -0
- pulumi_alicloud/threatdetection/_inputs.py +183 -0
- pulumi_alicloud/threatdetection/anti_brute_force_rule.py +50 -1
- pulumi_alicloud/threatdetection/attack_path_sensitive_asset_config.py +218 -0
- pulumi_alicloud/threatdetection/image_event_operation.py +191 -90
- pulumi_alicloud/threatdetection/oss_scan_config.py +257 -65
- pulumi_alicloud/threatdetection/outputs.py +147 -0
- pulumi_alicloud/vod/editing_project.py +8 -8
- pulumi_alicloud/vpc/common_bandwith_package.py +28 -0
- pulumi_alicloud/vpc/flow_log.py +92 -0
- pulumi_alicloud/vpc/gateway_endpoint.py +12 -12
- pulumi_alicloud/vpc/gateway_endpoint_route_table_attachment.py +12 -12
- pulumi_alicloud/vpc/ipam_ipam_pool.py +54 -0
- pulumi_alicloud/vpc/route_entry.py +6 -2
- pulumi_alicloud/vpc/vbr_ha.py +100 -0
- pulumi_alicloud/vpc/vpc_network_acl_attachment.py +48 -0
- pulumi_alicloud/vpn/get_gateways.py +98 -0
- pulumi_alicloud/vpn/ssl_vpn_client_cert.py +82 -0
- pulumi_alicloud/vpn/ssl_vpn_server.py +76 -0
- pulumi_alicloud/wafv3/__init__.py +1 -0
- pulumi_alicloud/wafv3/_inputs.py +1318 -182
- pulumi_alicloud/wafv3/defense_rule.py +806 -0
- pulumi_alicloud/wafv3/defense_template.py +87 -124
- pulumi_alicloud/wafv3/domain.py +136 -35
- pulumi_alicloud/wafv3/outputs.py +925 -123
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/RECORD +243 -221
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1756507491.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/top_level.txt +0 -0
|
@@ -142,6 +142,86 @@ class ExpressSyncShareAttachment(pulumi.CustomResource):
|
|
|
142
142
|
|
|
143
143
|
> **NOTE:** Available since v1.144.0.
|
|
144
144
|
|
|
145
|
+
## Example Usage
|
|
146
|
+
|
|
147
|
+
Basic Usage
|
|
148
|
+
|
|
149
|
+
```python
|
|
150
|
+
import pulumi
|
|
151
|
+
import pulumi_alicloud as alicloud
|
|
152
|
+
import pulumi_random as random
|
|
153
|
+
import pulumi_std as std
|
|
154
|
+
|
|
155
|
+
config = pulumi.Config()
|
|
156
|
+
name = config.get("name")
|
|
157
|
+
if name is None:
|
|
158
|
+
name = "tf-example"
|
|
159
|
+
default_integer = random.index.Integer("default",
|
|
160
|
+
min=10000,
|
|
161
|
+
max=99999)
|
|
162
|
+
default = alicloud.get_regions(current=True)
|
|
163
|
+
default_uuid = random.index.Uuid("default")
|
|
164
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
165
|
+
search='-',
|
|
166
|
+
replace='').result}",
|
|
167
|
+
offset=0,
|
|
168
|
+
length=16).result)
|
|
169
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
170
|
+
search='-',
|
|
171
|
+
replace='').result}",
|
|
172
|
+
offset=0,
|
|
173
|
+
length=16).result)
|
|
174
|
+
default_bucket_acl = alicloud.oss.BucketAcl("default",
|
|
175
|
+
bucket=default_bucket.bucket,
|
|
176
|
+
acl="public-read-write")
|
|
177
|
+
default_network = alicloud.vpc.Network("default",
|
|
178
|
+
vpc_name=name,
|
|
179
|
+
cidr_block="172.16.0.0/12")
|
|
180
|
+
default_get_stocks = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
181
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
182
|
+
vpc_id=default_network.id,
|
|
183
|
+
cidr_block="172.16.0.0/21",
|
|
184
|
+
zone_id=default_get_stocks.stocks[0].zone_id,
|
|
185
|
+
vswitch_name=name)
|
|
186
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
187
|
+
gateway_name=name,
|
|
188
|
+
description=name,
|
|
189
|
+
gateway_class="Standard",
|
|
190
|
+
type="File",
|
|
191
|
+
payment_type="PayAsYouGo",
|
|
192
|
+
vswitch_id=default_switch.id,
|
|
193
|
+
release_after_expiration=True,
|
|
194
|
+
public_network_bandwidth=40,
|
|
195
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
196
|
+
location="Cloud")
|
|
197
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
198
|
+
cache_disk_category="cloud_efficiency",
|
|
199
|
+
gateway_id=default_gateway.id,
|
|
200
|
+
cache_disk_size_in_gb=50)
|
|
201
|
+
default_gateway_file_share = alicloud.cloudstoragegateway.GatewayFileShare("default",
|
|
202
|
+
gateway_file_share_name=name,
|
|
203
|
+
gateway_id=default_gateway.id,
|
|
204
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
205
|
+
oss_bucket_name=default_bucket.bucket,
|
|
206
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
207
|
+
protocol="NFS",
|
|
208
|
+
remote_sync=False,
|
|
209
|
+
fe_limit=0,
|
|
210
|
+
backend_limit=0,
|
|
211
|
+
cache_mode="Cache",
|
|
212
|
+
squash="none",
|
|
213
|
+
lag_period=5)
|
|
214
|
+
default_express_sync = alicloud.cloudstoragegateway.ExpressSync("default",
|
|
215
|
+
bucket_name=default_gateway_file_share.oss_bucket_name,
|
|
216
|
+
bucket_region=default.regions[0].id,
|
|
217
|
+
description=name,
|
|
218
|
+
express_sync_name=f"{name}-{default_integer['result']}")
|
|
219
|
+
default_express_sync_share_attachment = alicloud.cloudstoragegateway.ExpressSyncShareAttachment("default",
|
|
220
|
+
express_sync_id=default_express_sync.id,
|
|
221
|
+
gateway_id=default_gateway.id,
|
|
222
|
+
share_name=default_gateway_file_share.gateway_file_share_name)
|
|
223
|
+
```
|
|
224
|
+
|
|
145
225
|
## Import
|
|
146
226
|
|
|
147
227
|
Cloud Storage Gateway Express Sync Share Attachment can be imported using the id, e.g.
|
|
@@ -169,6 +249,86 @@ class ExpressSyncShareAttachment(pulumi.CustomResource):
|
|
|
169
249
|
|
|
170
250
|
> **NOTE:** Available since v1.144.0.
|
|
171
251
|
|
|
252
|
+
## Example Usage
|
|
253
|
+
|
|
254
|
+
Basic Usage
|
|
255
|
+
|
|
256
|
+
```python
|
|
257
|
+
import pulumi
|
|
258
|
+
import pulumi_alicloud as alicloud
|
|
259
|
+
import pulumi_random as random
|
|
260
|
+
import pulumi_std as std
|
|
261
|
+
|
|
262
|
+
config = pulumi.Config()
|
|
263
|
+
name = config.get("name")
|
|
264
|
+
if name is None:
|
|
265
|
+
name = "tf-example"
|
|
266
|
+
default_integer = random.index.Integer("default",
|
|
267
|
+
min=10000,
|
|
268
|
+
max=99999)
|
|
269
|
+
default = alicloud.get_regions(current=True)
|
|
270
|
+
default_uuid = random.index.Uuid("default")
|
|
271
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
272
|
+
search='-',
|
|
273
|
+
replace='').result}",
|
|
274
|
+
offset=0,
|
|
275
|
+
length=16).result)
|
|
276
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
277
|
+
search='-',
|
|
278
|
+
replace='').result}",
|
|
279
|
+
offset=0,
|
|
280
|
+
length=16).result)
|
|
281
|
+
default_bucket_acl = alicloud.oss.BucketAcl("default",
|
|
282
|
+
bucket=default_bucket.bucket,
|
|
283
|
+
acl="public-read-write")
|
|
284
|
+
default_network = alicloud.vpc.Network("default",
|
|
285
|
+
vpc_name=name,
|
|
286
|
+
cidr_block="172.16.0.0/12")
|
|
287
|
+
default_get_stocks = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
288
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
289
|
+
vpc_id=default_network.id,
|
|
290
|
+
cidr_block="172.16.0.0/21",
|
|
291
|
+
zone_id=default_get_stocks.stocks[0].zone_id,
|
|
292
|
+
vswitch_name=name)
|
|
293
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
294
|
+
gateway_name=name,
|
|
295
|
+
description=name,
|
|
296
|
+
gateway_class="Standard",
|
|
297
|
+
type="File",
|
|
298
|
+
payment_type="PayAsYouGo",
|
|
299
|
+
vswitch_id=default_switch.id,
|
|
300
|
+
release_after_expiration=True,
|
|
301
|
+
public_network_bandwidth=40,
|
|
302
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
303
|
+
location="Cloud")
|
|
304
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
305
|
+
cache_disk_category="cloud_efficiency",
|
|
306
|
+
gateway_id=default_gateway.id,
|
|
307
|
+
cache_disk_size_in_gb=50)
|
|
308
|
+
default_gateway_file_share = alicloud.cloudstoragegateway.GatewayFileShare("default",
|
|
309
|
+
gateway_file_share_name=name,
|
|
310
|
+
gateway_id=default_gateway.id,
|
|
311
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
312
|
+
oss_bucket_name=default_bucket.bucket,
|
|
313
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
314
|
+
protocol="NFS",
|
|
315
|
+
remote_sync=False,
|
|
316
|
+
fe_limit=0,
|
|
317
|
+
backend_limit=0,
|
|
318
|
+
cache_mode="Cache",
|
|
319
|
+
squash="none",
|
|
320
|
+
lag_period=5)
|
|
321
|
+
default_express_sync = alicloud.cloudstoragegateway.ExpressSync("default",
|
|
322
|
+
bucket_name=default_gateway_file_share.oss_bucket_name,
|
|
323
|
+
bucket_region=default.regions[0].id,
|
|
324
|
+
description=name,
|
|
325
|
+
express_sync_name=f"{name}-{default_integer['result']}")
|
|
326
|
+
default_express_sync_share_attachment = alicloud.cloudstoragegateway.ExpressSyncShareAttachment("default",
|
|
327
|
+
express_sync_id=default_express_sync.id,
|
|
328
|
+
gateway_id=default_gateway.id,
|
|
329
|
+
share_name=default_gateway_file_share.gateway_file_share_name)
|
|
330
|
+
```
|
|
331
|
+
|
|
172
332
|
## Import
|
|
173
333
|
|
|
174
334
|
Cloud Storage Gateway Express Sync Share Attachment can be imported using the id, e.g.
|
|
@@ -39,7 +39,6 @@ class GatewayArgs:
|
|
|
39
39
|
:param pulumi.Input[_builtins.str] type: The type of the gateway. Valid values: `File`, `Iscsi`.
|
|
40
40
|
:param pulumi.Input[_builtins.str] description: The description of the gateway.
|
|
41
41
|
:param pulumi.Input[_builtins.str] gateway_class: The specification of the gateway. Valid values: `Basic`, `Standard`, `Enhanced`, `Advanced`. **NOTE:** If `location` is set to `Cloud`, `gateway_class` is required. Otherwise, `gateway_class` will be ignored. If `payment_type` is set to `Subscription`, `gateway_class` cannot be modified.
|
|
42
|
-
:param pulumi.Input[_builtins.str] payment_type: The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
43
42
|
:param pulumi.Input[_builtins.int] public_network_bandwidth: The public bandwidth of the gateway. Default value: `5`. Valid values: `5` to `200`. **NOTE:** `public_network_bandwidth` is only valid when `location` is `Cloud`. If `payment_type` is set to `Subscription`, `public_network_bandwidth` cannot be modified.
|
|
44
43
|
:param pulumi.Input[_builtins.str] reason_detail: The detailed reason why you want to delete the gateway.
|
|
45
44
|
:param pulumi.Input[_builtins.str] reason_type: The type of the reason why you want to delete the gateway.
|
|
@@ -142,9 +141,6 @@ class GatewayArgs:
|
|
|
142
141
|
@_builtins.property
|
|
143
142
|
@pulumi.getter(name="paymentType")
|
|
144
143
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
145
|
-
"""
|
|
146
|
-
The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
147
|
-
"""
|
|
148
144
|
return pulumi.get(self, "payment_type")
|
|
149
145
|
|
|
150
146
|
@payment_type.setter
|
|
@@ -234,7 +230,6 @@ class _GatewayState:
|
|
|
234
230
|
:param pulumi.Input[_builtins.str] gateway_class: The specification of the gateway. Valid values: `Basic`, `Standard`, `Enhanced`, `Advanced`. **NOTE:** If `location` is set to `Cloud`, `gateway_class` is required. Otherwise, `gateway_class` will be ignored. If `payment_type` is set to `Subscription`, `gateway_class` cannot be modified.
|
|
235
231
|
:param pulumi.Input[_builtins.str] gateway_name: The name of the gateway. The name must be `1` to `60` characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
|
|
236
232
|
:param pulumi.Input[_builtins.str] location: The location of the gateway. Valid values: `Cloud`, `On_Premise`.
|
|
237
|
-
:param pulumi.Input[_builtins.str] payment_type: The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
238
233
|
:param pulumi.Input[_builtins.int] public_network_bandwidth: The public bandwidth of the gateway. Default value: `5`. Valid values: `5` to `200`. **NOTE:** `public_network_bandwidth` is only valid when `location` is `Cloud`. If `payment_type` is set to `Subscription`, `public_network_bandwidth` cannot be modified.
|
|
239
234
|
:param pulumi.Input[_builtins.str] reason_detail: The detailed reason why you want to delete the gateway.
|
|
240
235
|
:param pulumi.Input[_builtins.str] reason_type: The type of the reason why you want to delete the gateway.
|
|
@@ -322,9 +317,6 @@ class _GatewayState:
|
|
|
322
317
|
@_builtins.property
|
|
323
318
|
@pulumi.getter(name="paymentType")
|
|
324
319
|
def payment_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
325
|
-
"""
|
|
326
|
-
The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
327
|
-
"""
|
|
328
320
|
return pulumi.get(self, "payment_type")
|
|
329
321
|
|
|
330
322
|
@payment_type.setter
|
|
@@ -506,7 +498,6 @@ class Gateway(pulumi.CustomResource):
|
|
|
506
498
|
:param pulumi.Input[_builtins.str] gateway_class: The specification of the gateway. Valid values: `Basic`, `Standard`, `Enhanced`, `Advanced`. **NOTE:** If `location` is set to `Cloud`, `gateway_class` is required. Otherwise, `gateway_class` will be ignored. If `payment_type` is set to `Subscription`, `gateway_class` cannot be modified.
|
|
507
499
|
:param pulumi.Input[_builtins.str] gateway_name: The name of the gateway. The name must be `1` to `60` characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
|
|
508
500
|
:param pulumi.Input[_builtins.str] location: The location of the gateway. Valid values: `Cloud`, `On_Premise`.
|
|
509
|
-
:param pulumi.Input[_builtins.str] payment_type: The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
510
501
|
:param pulumi.Input[_builtins.int] public_network_bandwidth: The public bandwidth of the gateway. Default value: `5`. Valid values: `5` to `200`. **NOTE:** `public_network_bandwidth` is only valid when `location` is `Cloud`. If `payment_type` is set to `Subscription`, `public_network_bandwidth` cannot be modified.
|
|
511
502
|
:param pulumi.Input[_builtins.str] reason_detail: The detailed reason why you want to delete the gateway.
|
|
512
503
|
:param pulumi.Input[_builtins.str] reason_type: The type of the reason why you want to delete the gateway.
|
|
@@ -665,7 +656,6 @@ class Gateway(pulumi.CustomResource):
|
|
|
665
656
|
:param pulumi.Input[_builtins.str] gateway_class: The specification of the gateway. Valid values: `Basic`, `Standard`, `Enhanced`, `Advanced`. **NOTE:** If `location` is set to `Cloud`, `gateway_class` is required. Otherwise, `gateway_class` will be ignored. If `payment_type` is set to `Subscription`, `gateway_class` cannot be modified.
|
|
666
657
|
:param pulumi.Input[_builtins.str] gateway_name: The name of the gateway. The name must be `1` to `60` characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.
|
|
667
658
|
:param pulumi.Input[_builtins.str] location: The location of the gateway. Valid values: `Cloud`, `On_Premise`.
|
|
668
|
-
:param pulumi.Input[_builtins.str] payment_type: The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
669
659
|
:param pulumi.Input[_builtins.int] public_network_bandwidth: The public bandwidth of the gateway. Default value: `5`. Valid values: `5` to `200`. **NOTE:** `public_network_bandwidth` is only valid when `location` is `Cloud`. If `payment_type` is set to `Subscription`, `public_network_bandwidth` cannot be modified.
|
|
670
660
|
:param pulumi.Input[_builtins.str] reason_detail: The detailed reason why you want to delete the gateway.
|
|
671
661
|
:param pulumi.Input[_builtins.str] reason_type: The type of the reason why you want to delete the gateway.
|
|
@@ -729,9 +719,6 @@ class Gateway(pulumi.CustomResource):
|
|
|
729
719
|
@_builtins.property
|
|
730
720
|
@pulumi.getter(name="paymentType")
|
|
731
721
|
def payment_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
732
|
-
"""
|
|
733
|
-
The Payment type of gateway. Valid values: `PayAsYouGo`, `Subscription`. **NOTE:** From version 1.233.0, `payment_type` can be set to `Subscription`.
|
|
734
|
-
"""
|
|
735
722
|
return pulumi.get(self, "payment_type")
|
|
736
723
|
|
|
737
724
|
@_builtins.property
|
|
@@ -568,6 +568,72 @@ class GatewayBlockVolume(pulumi.CustomResource):
|
|
|
568
568
|
|
|
569
569
|
> **NOTE:** Available since v1.144.0.
|
|
570
570
|
|
|
571
|
+
## Example Usage
|
|
572
|
+
|
|
573
|
+
Basic Usage
|
|
574
|
+
|
|
575
|
+
```python
|
|
576
|
+
import pulumi
|
|
577
|
+
import pulumi_alicloud as alicloud
|
|
578
|
+
import pulumi_random as random
|
|
579
|
+
import pulumi_std as std
|
|
580
|
+
|
|
581
|
+
config = pulumi.Config()
|
|
582
|
+
name = config.get("name")
|
|
583
|
+
if name is None:
|
|
584
|
+
name = "tf-example"
|
|
585
|
+
default_uuid = random.index.Uuid("default")
|
|
586
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
587
|
+
search='-',
|
|
588
|
+
replace='').result}",
|
|
589
|
+
offset=0,
|
|
590
|
+
length=16).result)
|
|
591
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
592
|
+
search='-',
|
|
593
|
+
replace='').result}",
|
|
594
|
+
offset=0,
|
|
595
|
+
length=16).result)
|
|
596
|
+
default_bucket_acl = alicloud.oss.BucketAcl("default",
|
|
597
|
+
bucket=default_bucket.bucket,
|
|
598
|
+
acl="public-read-write")
|
|
599
|
+
default_network = alicloud.vpc.Network("default",
|
|
600
|
+
vpc_name=name,
|
|
601
|
+
cidr_block="172.16.0.0/12")
|
|
602
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
603
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
604
|
+
vpc_id=default_network.id,
|
|
605
|
+
cidr_block="172.16.0.0/21",
|
|
606
|
+
zone_id=default.stocks[0].zone_id,
|
|
607
|
+
vswitch_name=name)
|
|
608
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
609
|
+
gateway_name=name,
|
|
610
|
+
description=name,
|
|
611
|
+
gateway_class="Standard",
|
|
612
|
+
type="Iscsi",
|
|
613
|
+
payment_type="PayAsYouGo",
|
|
614
|
+
vswitch_id=default_switch.id,
|
|
615
|
+
release_after_expiration=True,
|
|
616
|
+
public_network_bandwidth=40,
|
|
617
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
618
|
+
location="Cloud")
|
|
619
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
620
|
+
cache_disk_category="cloud_efficiency",
|
|
621
|
+
gateway_id=default_gateway.id,
|
|
622
|
+
cache_disk_size_in_gb=50)
|
|
623
|
+
default_gateway_block_volume = alicloud.cloudstoragegateway.GatewayBlockVolume("default",
|
|
624
|
+
cache_mode="Cache",
|
|
625
|
+
chap_enabled=False,
|
|
626
|
+
chunk_size=8192,
|
|
627
|
+
gateway_block_volume_name="example",
|
|
628
|
+
gateway_id=default_gateway.id,
|
|
629
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
630
|
+
oss_bucket_name=default_bucket.bucket,
|
|
631
|
+
oss_bucket_ssl=True,
|
|
632
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
633
|
+
protocol="iSCSI",
|
|
634
|
+
size=100)
|
|
635
|
+
```
|
|
636
|
+
|
|
571
637
|
## Import
|
|
572
638
|
|
|
573
639
|
Cloud Storage Gateway Gateway Block Volume can be imported using the id, e.g.
|
|
@@ -607,6 +673,72 @@ class GatewayBlockVolume(pulumi.CustomResource):
|
|
|
607
673
|
|
|
608
674
|
> **NOTE:** Available since v1.144.0.
|
|
609
675
|
|
|
676
|
+
## Example Usage
|
|
677
|
+
|
|
678
|
+
Basic Usage
|
|
679
|
+
|
|
680
|
+
```python
|
|
681
|
+
import pulumi
|
|
682
|
+
import pulumi_alicloud as alicloud
|
|
683
|
+
import pulumi_random as random
|
|
684
|
+
import pulumi_std as std
|
|
685
|
+
|
|
686
|
+
config = pulumi.Config()
|
|
687
|
+
name = config.get("name")
|
|
688
|
+
if name is None:
|
|
689
|
+
name = "tf-example"
|
|
690
|
+
default_uuid = random.index.Uuid("default")
|
|
691
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
692
|
+
search='-',
|
|
693
|
+
replace='').result}",
|
|
694
|
+
offset=0,
|
|
695
|
+
length=16).result)
|
|
696
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
697
|
+
search='-',
|
|
698
|
+
replace='').result}",
|
|
699
|
+
offset=0,
|
|
700
|
+
length=16).result)
|
|
701
|
+
default_bucket_acl = alicloud.oss.BucketAcl("default",
|
|
702
|
+
bucket=default_bucket.bucket,
|
|
703
|
+
acl="public-read-write")
|
|
704
|
+
default_network = alicloud.vpc.Network("default",
|
|
705
|
+
vpc_name=name,
|
|
706
|
+
cidr_block="172.16.0.0/12")
|
|
707
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
708
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
709
|
+
vpc_id=default_network.id,
|
|
710
|
+
cidr_block="172.16.0.0/21",
|
|
711
|
+
zone_id=default.stocks[0].zone_id,
|
|
712
|
+
vswitch_name=name)
|
|
713
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
714
|
+
gateway_name=name,
|
|
715
|
+
description=name,
|
|
716
|
+
gateway_class="Standard",
|
|
717
|
+
type="Iscsi",
|
|
718
|
+
payment_type="PayAsYouGo",
|
|
719
|
+
vswitch_id=default_switch.id,
|
|
720
|
+
release_after_expiration=True,
|
|
721
|
+
public_network_bandwidth=40,
|
|
722
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
723
|
+
location="Cloud")
|
|
724
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
725
|
+
cache_disk_category="cloud_efficiency",
|
|
726
|
+
gateway_id=default_gateway.id,
|
|
727
|
+
cache_disk_size_in_gb=50)
|
|
728
|
+
default_gateway_block_volume = alicloud.cloudstoragegateway.GatewayBlockVolume("default",
|
|
729
|
+
cache_mode="Cache",
|
|
730
|
+
chap_enabled=False,
|
|
731
|
+
chunk_size=8192,
|
|
732
|
+
gateway_block_volume_name="example",
|
|
733
|
+
gateway_id=default_gateway.id,
|
|
734
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
735
|
+
oss_bucket_name=default_bucket.bucket,
|
|
736
|
+
oss_bucket_ssl=True,
|
|
737
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
738
|
+
protocol="iSCSI",
|
|
739
|
+
size=100)
|
|
740
|
+
```
|
|
741
|
+
|
|
610
742
|
## Import
|
|
611
743
|
|
|
612
744
|
Cloud Storage Gateway Gateway Block Volume can be imported using the id, e.g.
|
|
@@ -224,6 +224,52 @@ class GatewayCacheDisk(pulumi.CustomResource):
|
|
|
224
224
|
|
|
225
225
|
> **NOTE:** Available since v1.144.0.
|
|
226
226
|
|
|
227
|
+
## Example Usage
|
|
228
|
+
|
|
229
|
+
Basic Usage
|
|
230
|
+
|
|
231
|
+
```python
|
|
232
|
+
import pulumi
|
|
233
|
+
import pulumi_alicloud as alicloud
|
|
234
|
+
import pulumi_random as random
|
|
235
|
+
import pulumi_std as std
|
|
236
|
+
|
|
237
|
+
config = pulumi.Config()
|
|
238
|
+
name = config.get("name")
|
|
239
|
+
if name is None:
|
|
240
|
+
name = "tf-example"
|
|
241
|
+
default_uuid = random.index.Uuid("default")
|
|
242
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
243
|
+
search='-',
|
|
244
|
+
replace='').result}",
|
|
245
|
+
offset=0,
|
|
246
|
+
length=16).result)
|
|
247
|
+
default_network = alicloud.vpc.Network("default",
|
|
248
|
+
vpc_name=name,
|
|
249
|
+
cidr_block="172.16.0.0/12")
|
|
250
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
251
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
252
|
+
vpc_id=default_network.id,
|
|
253
|
+
cidr_block="172.16.0.0/21",
|
|
254
|
+
zone_id=default.stocks[0].zone_id,
|
|
255
|
+
vswitch_name=name)
|
|
256
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
257
|
+
gateway_name=name,
|
|
258
|
+
description=name,
|
|
259
|
+
gateway_class="Standard",
|
|
260
|
+
type="File",
|
|
261
|
+
payment_type="PayAsYouGo",
|
|
262
|
+
vswitch_id=default_switch.id,
|
|
263
|
+
release_after_expiration=True,
|
|
264
|
+
public_network_bandwidth=40,
|
|
265
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
266
|
+
location="Cloud")
|
|
267
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
268
|
+
cache_disk_category="cloud_efficiency",
|
|
269
|
+
gateway_id=default_gateway.id,
|
|
270
|
+
cache_disk_size_in_gb=50)
|
|
271
|
+
```
|
|
272
|
+
|
|
227
273
|
## Import
|
|
228
274
|
|
|
229
275
|
Cloud Storage Gateway Gateway Cache Disk can be imported using the id, e.g.
|
|
@@ -252,6 +298,52 @@ class GatewayCacheDisk(pulumi.CustomResource):
|
|
|
252
298
|
|
|
253
299
|
> **NOTE:** Available since v1.144.0.
|
|
254
300
|
|
|
301
|
+
## Example Usage
|
|
302
|
+
|
|
303
|
+
Basic Usage
|
|
304
|
+
|
|
305
|
+
```python
|
|
306
|
+
import pulumi
|
|
307
|
+
import pulumi_alicloud as alicloud
|
|
308
|
+
import pulumi_random as random
|
|
309
|
+
import pulumi_std as std
|
|
310
|
+
|
|
311
|
+
config = pulumi.Config()
|
|
312
|
+
name = config.get("name")
|
|
313
|
+
if name is None:
|
|
314
|
+
name = "tf-example"
|
|
315
|
+
default_uuid = random.index.Uuid("default")
|
|
316
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
317
|
+
search='-',
|
|
318
|
+
replace='').result}",
|
|
319
|
+
offset=0,
|
|
320
|
+
length=16).result)
|
|
321
|
+
default_network = alicloud.vpc.Network("default",
|
|
322
|
+
vpc_name=name,
|
|
323
|
+
cidr_block="172.16.0.0/12")
|
|
324
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
325
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
326
|
+
vpc_id=default_network.id,
|
|
327
|
+
cidr_block="172.16.0.0/21",
|
|
328
|
+
zone_id=default.stocks[0].zone_id,
|
|
329
|
+
vswitch_name=name)
|
|
330
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
331
|
+
gateway_name=name,
|
|
332
|
+
description=name,
|
|
333
|
+
gateway_class="Standard",
|
|
334
|
+
type="File",
|
|
335
|
+
payment_type="PayAsYouGo",
|
|
336
|
+
vswitch_id=default_switch.id,
|
|
337
|
+
release_after_expiration=True,
|
|
338
|
+
public_network_bandwidth=40,
|
|
339
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
340
|
+
location="Cloud")
|
|
341
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
342
|
+
cache_disk_category="cloud_efficiency",
|
|
343
|
+
gateway_id=default_gateway.id,
|
|
344
|
+
cache_disk_size_in_gb=50)
|
|
345
|
+
```
|
|
346
|
+
|
|
255
347
|
## Import
|
|
256
348
|
|
|
257
349
|
Cloud Storage Gateway Gateway Cache Disk can be imported using the id, e.g.
|
|
@@ -1145,6 +1145,71 @@ class GatewayFileShare(pulumi.CustomResource):
|
|
|
1145
1145
|
|
|
1146
1146
|
> **NOTE:** Available since v1.144.0.
|
|
1147
1147
|
|
|
1148
|
+
## Example Usage
|
|
1149
|
+
|
|
1150
|
+
Basic Usage
|
|
1151
|
+
|
|
1152
|
+
```python
|
|
1153
|
+
import pulumi
|
|
1154
|
+
import pulumi_alicloud as alicloud
|
|
1155
|
+
import pulumi_random as random
|
|
1156
|
+
import pulumi_std as std
|
|
1157
|
+
|
|
1158
|
+
config = pulumi.Config()
|
|
1159
|
+
name = config.get("name")
|
|
1160
|
+
if name is None:
|
|
1161
|
+
name = "tf-example"
|
|
1162
|
+
default_uuid = random.index.Uuid("default")
|
|
1163
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
1164
|
+
search='-',
|
|
1165
|
+
replace='').result}",
|
|
1166
|
+
offset=0,
|
|
1167
|
+
length=16).result)
|
|
1168
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
1169
|
+
search='-',
|
|
1170
|
+
replace='').result}",
|
|
1171
|
+
offset=0,
|
|
1172
|
+
length=16).result)
|
|
1173
|
+
default_network = alicloud.vpc.Network("default",
|
|
1174
|
+
vpc_name=name,
|
|
1175
|
+
cidr_block="172.16.0.0/12")
|
|
1176
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
1177
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
1178
|
+
vpc_id=default_network.id,
|
|
1179
|
+
cidr_block="172.16.0.0/21",
|
|
1180
|
+
zone_id=default.stocks[0].zone_id,
|
|
1181
|
+
vswitch_name=name)
|
|
1182
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
1183
|
+
gateway_name=name,
|
|
1184
|
+
description=name,
|
|
1185
|
+
gateway_class="Standard",
|
|
1186
|
+
type="File",
|
|
1187
|
+
payment_type="PayAsYouGo",
|
|
1188
|
+
vswitch_id=default_switch.id,
|
|
1189
|
+
release_after_expiration=True,
|
|
1190
|
+
public_network_bandwidth=40,
|
|
1191
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
1192
|
+
location="Cloud")
|
|
1193
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
1194
|
+
cache_disk_category="cloud_efficiency",
|
|
1195
|
+
gateway_id=default_gateway.id,
|
|
1196
|
+
cache_disk_size_in_gb=50)
|
|
1197
|
+
default_gateway_file_share = alicloud.cloudstoragegateway.GatewayFileShare("default",
|
|
1198
|
+
gateway_file_share_name=name,
|
|
1199
|
+
gateway_id=default_gateway.id,
|
|
1200
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
1201
|
+
oss_bucket_name=default_bucket.bucket,
|
|
1202
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
1203
|
+
protocol="NFS",
|
|
1204
|
+
remote_sync=True,
|
|
1205
|
+
polling_interval=4500,
|
|
1206
|
+
fe_limit=0,
|
|
1207
|
+
backend_limit=0,
|
|
1208
|
+
cache_mode="Cache",
|
|
1209
|
+
squash="none",
|
|
1210
|
+
lag_period=5)
|
|
1211
|
+
```
|
|
1212
|
+
|
|
1148
1213
|
## Import
|
|
1149
1214
|
|
|
1150
1215
|
Cloud Storage Gateway Gateway File Share can be imported using the id, e.g.
|
|
@@ -1202,6 +1267,71 @@ class GatewayFileShare(pulumi.CustomResource):
|
|
|
1202
1267
|
|
|
1203
1268
|
> **NOTE:** Available since v1.144.0.
|
|
1204
1269
|
|
|
1270
|
+
## Example Usage
|
|
1271
|
+
|
|
1272
|
+
Basic Usage
|
|
1273
|
+
|
|
1274
|
+
```python
|
|
1275
|
+
import pulumi
|
|
1276
|
+
import pulumi_alicloud as alicloud
|
|
1277
|
+
import pulumi_random as random
|
|
1278
|
+
import pulumi_std as std
|
|
1279
|
+
|
|
1280
|
+
config = pulumi.Config()
|
|
1281
|
+
name = config.get("name")
|
|
1282
|
+
if name is None:
|
|
1283
|
+
name = "tf-example"
|
|
1284
|
+
default_uuid = random.index.Uuid("default")
|
|
1285
|
+
default_storage_bundle = alicloud.cloudstoragegateway.StorageBundle("default", storage_bundle_name=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
1286
|
+
search='-',
|
|
1287
|
+
replace='').result}",
|
|
1288
|
+
offset=0,
|
|
1289
|
+
length=16).result)
|
|
1290
|
+
default_bucket = alicloud.oss.Bucket("default", bucket=std.substr(input=f"tf-example-{std.replace(text=default_uuid['result'],
|
|
1291
|
+
search='-',
|
|
1292
|
+
replace='').result}",
|
|
1293
|
+
offset=0,
|
|
1294
|
+
length=16).result)
|
|
1295
|
+
default_network = alicloud.vpc.Network("default",
|
|
1296
|
+
vpc_name=name,
|
|
1297
|
+
cidr_block="172.16.0.0/12")
|
|
1298
|
+
default = alicloud.cloudstoragegateway.get_stocks(gateway_class="Standard")
|
|
1299
|
+
default_switch = alicloud.vpc.Switch("default",
|
|
1300
|
+
vpc_id=default_network.id,
|
|
1301
|
+
cidr_block="172.16.0.0/21",
|
|
1302
|
+
zone_id=default.stocks[0].zone_id,
|
|
1303
|
+
vswitch_name=name)
|
|
1304
|
+
default_gateway = alicloud.cloudstoragegateway.Gateway("default",
|
|
1305
|
+
gateway_name=name,
|
|
1306
|
+
description=name,
|
|
1307
|
+
gateway_class="Standard",
|
|
1308
|
+
type="File",
|
|
1309
|
+
payment_type="PayAsYouGo",
|
|
1310
|
+
vswitch_id=default_switch.id,
|
|
1311
|
+
release_after_expiration=True,
|
|
1312
|
+
public_network_bandwidth=40,
|
|
1313
|
+
storage_bundle_id=default_storage_bundle.id,
|
|
1314
|
+
location="Cloud")
|
|
1315
|
+
default_gateway_cache_disk = alicloud.cloudstoragegateway.GatewayCacheDisk("default",
|
|
1316
|
+
cache_disk_category="cloud_efficiency",
|
|
1317
|
+
gateway_id=default_gateway.id,
|
|
1318
|
+
cache_disk_size_in_gb=50)
|
|
1319
|
+
default_gateway_file_share = alicloud.cloudstoragegateway.GatewayFileShare("default",
|
|
1320
|
+
gateway_file_share_name=name,
|
|
1321
|
+
gateway_id=default_gateway.id,
|
|
1322
|
+
local_path=default_gateway_cache_disk.local_file_path,
|
|
1323
|
+
oss_bucket_name=default_bucket.bucket,
|
|
1324
|
+
oss_endpoint=default_bucket.extranet_endpoint,
|
|
1325
|
+
protocol="NFS",
|
|
1326
|
+
remote_sync=True,
|
|
1327
|
+
polling_interval=4500,
|
|
1328
|
+
fe_limit=0,
|
|
1329
|
+
backend_limit=0,
|
|
1330
|
+
cache_mode="Cache",
|
|
1331
|
+
squash="none",
|
|
1332
|
+
lag_period=5)
|
|
1333
|
+
```
|
|
1334
|
+
|
|
1205
1335
|
## Import
|
|
1206
1336
|
|
|
1207
1337
|
Cloud Storage Gateway Gateway File Share can be imported using the id, e.g.
|