pulumi-alicloud 3.84.0a1756358401__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/config/__init__.pyi +5 -10
- pulumi_alicloud/config/vars.py +5 -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/provider.py +19 -38
- 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.0a1756358401.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.84.0a1756358401.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/RECORD +246 -224
- {pulumi_alicloud-3.84.0a1756358401.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.84.0a1756358401.dist-info → pulumi_alicloud-3.84.0a1757017465.dist-info}/top_level.txt +0 -0
|
@@ -68,11 +68,11 @@ class SynchronizationJobArgs:
|
|
|
68
68
|
:param pulumi.Input[_builtins.bool] data_initialization: Whether to perform full data migration or full data initialization. Valid values: `true`, `false`.
|
|
69
69
|
:param pulumi.Input[_builtins.bool] data_synchronization: Whether to perform incremental data migration or synchronization. Valid values: `true`, `false`.
|
|
70
70
|
:param pulumi.Input[_builtins.str] db_list: Migration object, in the format of JSON strings. For detailed definition instructions, please refer to [the description of migration, synchronization or subscription objects](https://help.aliyun.com/document_detail/209545.html). **NOTE:** From version 1.173.0, `db_list` can be modified.
|
|
71
|
-
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
71
|
+
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
72
72
|
:param pulumi.Input[_builtins.str] destination_endpoint_instance_type: The type of destination instance. If the target instance is a PolarDB O engine cluster, the target instance type needs to be `OTHER` or `EXPRESS` as a self-built database, and access via public IP or dedicated line. If the target instance is the Kafka version of Message Queuing, the target instance type needs to be `ECS` or `EXPRESS` as a self-built database, and access via ECS or dedicated line. For the correspondence between supported targets and source instances, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the target instance is a self-built database, you also need to perform corresponding preparations, please refer to the [overview of preparations](https://help.aliyun.com/document_detail/146958.htm). Valid values: `ADS`, `CEN`, `DATAHUB`, `DG`, `ECS`, `EXPRESS`, `GREENPLUM`, `MONGODB`, `OTHER`, `PolarDB`, `POLARDBX20`, `RDS`.
|
|
73
73
|
:param pulumi.Input[_builtins.str] dts_instance_id: The ID of synchronization instance, it must be an ID of `dts.SynchronizationInstance`.
|
|
74
74
|
:param pulumi.Input[_builtins.str] dts_job_name: The name of synchronization job.
|
|
75
|
-
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
75
|
+
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
76
76
|
:param pulumi.Input[_builtins.str] source_endpoint_instance_type: The type of source instance. If the source instance is a `PolarDB O` engine cluster, the source instance type needs to be `OTHER` or `EXPRESS` as a self-built database, and access via public IP or dedicated line. For the correspondence between supported source and target instances, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the source instance is a self-built database, you also need to perform corresponding preparations, for details, see [Preparations Overview](https://help.aliyun.com/document_detail/146958.htm). Valid values: `CEN`, `DG`, `DISTRIBUTED_DMSLOGICDB`, `ECS`, `EXPRESS`, `MONGODB`, `OTHER`, `PolarDB`, `POLARDBX20`, `RDS`.
|
|
77
77
|
:param pulumi.Input[_builtins.bool] structure_initialization: Whether to perform library table structure migration or initialization. Valid values: `true`, `false`.
|
|
78
78
|
:param pulumi.Input[_builtins.str] checkpoint: The start point or synchronization point of incremental data migration, the format is Unix timestamp, and the unit is seconds.
|
|
@@ -239,7 +239,7 @@ class SynchronizationJobArgs:
|
|
|
239
239
|
@pulumi.getter(name="destinationEndpointEngineName")
|
|
240
240
|
def destination_endpoint_engine_name(self) -> pulumi.Input[_builtins.str]:
|
|
241
241
|
"""
|
|
242
|
-
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
242
|
+
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
243
243
|
"""
|
|
244
244
|
return pulumi.get(self, "destination_endpoint_engine_name")
|
|
245
245
|
|
|
@@ -287,7 +287,7 @@ class SynchronizationJobArgs:
|
|
|
287
287
|
@pulumi.getter(name="sourceEndpointEngineName")
|
|
288
288
|
def source_endpoint_engine_name(self) -> pulumi.Input[_builtins.str]:
|
|
289
289
|
"""
|
|
290
|
-
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
290
|
+
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
291
291
|
"""
|
|
292
292
|
return pulumi.get(self, "source_endpoint_engine_name")
|
|
293
293
|
|
|
@@ -797,7 +797,7 @@ class _SynchronizationJobState:
|
|
|
797
797
|
:param pulumi.Input[_builtins.str] delay_phone: The delay phone. The mobile phone number of the contact who delayed the alarm. Multiple mobile phone numbers separated by English commas `,`. This parameter currently only supports China stations, and only supports mainland mobile phone numbers, and up to 10 mobile phone numbers can be passed in.
|
|
798
798
|
:param pulumi.Input[_builtins.str] delay_rule_time: The delay rule time. When `delay_notice` is set to `true`, this parameter must be passed in. The threshold for triggering the delay alarm. The unit is second and needs to be an integer. The threshold can be set according to business needs. It is recommended to set it above 10 seconds to avoid delay fluctuations caused by network and database load.
|
|
799
799
|
:param pulumi.Input[_builtins.str] destination_endpoint_database_name: The name of the database to which the migration object belongs in the target instance. Note: when the target instance or target database type is PolarDB O engine, AnalyticDB PostgreSQL, PostgreSQL, MongoDB database, this parameter is available and must be passed in.
|
|
800
|
-
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
800
|
+
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
801
801
|
:param pulumi.Input[_builtins.str] destination_endpoint_instance_id: The ID of destination instance. If the target instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the target instance is a self-built database, the value of this parameter changes according to the value of `destination_endpoint_instance_type`. For example, the value of `destination_endpoint_instance_type` is:
|
|
802
802
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
803
803
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -823,7 +823,7 @@ class _SynchronizationJobState:
|
|
|
823
823
|
:param pulumi.Input[_builtins.str] instance_class: The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`, `xxlarge`. You can only upgrade the configuration, not downgrade the configuration. If you downgrade the instance, you need to [submit a ticket](https://selfservice.console.aliyun.com/ticket/category/dts/today).
|
|
824
824
|
:param pulumi.Input[_builtins.str] reserve: DTS reserves parameters, the format is a JSON string, you can pass in this parameter to complete the source and target database information (such as the data storage format of the target Kafka database, the instance ID of the cloud enterprise network CEN). For more information, please refer to the parameter [description of the Reserve parameter](https://help.aliyun.com/document_detail/273111.html).
|
|
825
825
|
:param pulumi.Input[_builtins.str] source_endpoint_database_name: The name of the database to which the migration object belongs in the source instance. Note: this parameter is only available and must be passed in when the source instance, or the database type of the source instance is PolarDB O engine, PostgreSQL, or MongoDB database.
|
|
826
|
-
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
826
|
+
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
827
827
|
:param pulumi.Input[_builtins.str] source_endpoint_instance_id: The ID of source instance. If the source instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the source instance is a self-built database, the value of this parameter changes according to the value of `source_endpoint_instance_type`. For example, the value of `source_endpoint_instance_type` is:
|
|
828
828
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
829
829
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -1055,7 +1055,7 @@ class _SynchronizationJobState:
|
|
|
1055
1055
|
@pulumi.getter(name="destinationEndpointEngineName")
|
|
1056
1056
|
def destination_endpoint_engine_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1057
1057
|
"""
|
|
1058
|
-
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
1058
|
+
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
1059
1059
|
"""
|
|
1060
1060
|
return pulumi.get(self, "destination_endpoint_engine_name")
|
|
1061
1061
|
|
|
@@ -1290,7 +1290,7 @@ class _SynchronizationJobState:
|
|
|
1290
1290
|
@pulumi.getter(name="sourceEndpointEngineName")
|
|
1291
1291
|
def source_endpoint_engine_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1292
1292
|
"""
|
|
1293
|
-
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
1293
|
+
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
1294
1294
|
"""
|
|
1295
1295
|
return pulumi.get(self, "source_endpoint_engine_name")
|
|
1296
1296
|
|
|
@@ -1528,6 +1528,132 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1528
1528
|
|
|
1529
1529
|
> **NOTE:** Available since v1.138.0.
|
|
1530
1530
|
|
|
1531
|
+
## Example Usage
|
|
1532
|
+
|
|
1533
|
+
Basic Usage
|
|
1534
|
+
|
|
1535
|
+
```python
|
|
1536
|
+
import pulumi
|
|
1537
|
+
import json
|
|
1538
|
+
import pulumi_alicloud as alicloud
|
|
1539
|
+
import pulumi_std as std
|
|
1540
|
+
|
|
1541
|
+
config = pulumi.Config()
|
|
1542
|
+
name = config.get("name")
|
|
1543
|
+
if name is None:
|
|
1544
|
+
name = "terraform-example"
|
|
1545
|
+
example = alicloud.get_regions(current=True)
|
|
1546
|
+
example_get_zones = alicloud.rds.get_zones(engine="MySQL",
|
|
1547
|
+
engine_version="8.0",
|
|
1548
|
+
instance_charge_type="PostPaid",
|
|
1549
|
+
category="Basic",
|
|
1550
|
+
db_instance_storage_type="cloud_essd")
|
|
1551
|
+
example_get_instance_classes = alicloud.rds.get_instance_classes(zone_id=example_get_zones.zones[0].id,
|
|
1552
|
+
engine="MySQL",
|
|
1553
|
+
engine_version="8.0",
|
|
1554
|
+
instance_charge_type="PostPaid",
|
|
1555
|
+
category="Basic",
|
|
1556
|
+
db_instance_storage_type="cloud_essd")
|
|
1557
|
+
example_network = alicloud.vpc.Network("example",
|
|
1558
|
+
vpc_name=name,
|
|
1559
|
+
cidr_block="172.16.0.0/16")
|
|
1560
|
+
example_switch = alicloud.vpc.Switch("example",
|
|
1561
|
+
vpc_id=example_network.id,
|
|
1562
|
+
cidr_block="172.16.0.0/24",
|
|
1563
|
+
zone_id=example_get_zones.zones[0].id,
|
|
1564
|
+
vswitch_name=name)
|
|
1565
|
+
example_security_group = alicloud.ecs.SecurityGroup("example",
|
|
1566
|
+
security_group_name=name,
|
|
1567
|
+
vpc_id=example_network.id)
|
|
1568
|
+
example_instance = []
|
|
1569
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1570
|
+
example_instance.append(alicloud.rds.Instance(f"example-{range['value']}",
|
|
1571
|
+
engine="MySQL",
|
|
1572
|
+
engine_version="8.0",
|
|
1573
|
+
instance_type=example_get_instance_classes.instance_classes[0].instance_class,
|
|
1574
|
+
instance_storage=example_get_instance_classes.instance_classes[0].storage_range.min,
|
|
1575
|
+
instance_charge_type="Postpaid",
|
|
1576
|
+
instance_name=std.format(input="%s_%d",
|
|
1577
|
+
args=[
|
|
1578
|
+
name,
|
|
1579
|
+
range["value"] + 1,
|
|
1580
|
+
]).result,
|
|
1581
|
+
vswitch_id=example_switch.id,
|
|
1582
|
+
monitoring_period=60,
|
|
1583
|
+
db_instance_storage_type="cloud_essd",
|
|
1584
|
+
security_group_ids=[example_security_group.id]))
|
|
1585
|
+
example_rds_account = []
|
|
1586
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1587
|
+
example_rds_account.append(alicloud.rds.RdsAccount(f"example-{range['value']}",
|
|
1588
|
+
db_instance_id=example_instance[range["value"]].id,
|
|
1589
|
+
account_name=std.format(input="example_name_%d",
|
|
1590
|
+
args=[range["value"] + 1]).result,
|
|
1591
|
+
account_password=std.format(input="example_password_%d",
|
|
1592
|
+
args=[range["value"] + 1]).result))
|
|
1593
|
+
example_database = []
|
|
1594
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1595
|
+
example_database.append(alicloud.rds.Database(f"example-{range['value']}",
|
|
1596
|
+
instance_id=example_instance[range["value"]].id,
|
|
1597
|
+
name=std.format(input="%s_%d",
|
|
1598
|
+
args=[
|
|
1599
|
+
name,
|
|
1600
|
+
range["value"] + 1,
|
|
1601
|
+
]).result))
|
|
1602
|
+
example_account_privilege = []
|
|
1603
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1604
|
+
example_account_privilege.append(alicloud.rds.AccountPrivilege(f"example-{range['value']}",
|
|
1605
|
+
instance_id=example_instance[range["value"]].id,
|
|
1606
|
+
account_name=example_rds_account[range["value"]].account_name,
|
|
1607
|
+
privilege="ReadWrite",
|
|
1608
|
+
db_names=[example_database[range["value"]].name]))
|
|
1609
|
+
example_synchronization_instance = alicloud.dts.SynchronizationInstance("example",
|
|
1610
|
+
payment_type="PayAsYouGo",
|
|
1611
|
+
source_endpoint_engine_name="MySQL",
|
|
1612
|
+
source_endpoint_region=example.regions[0].id,
|
|
1613
|
+
destination_endpoint_engine_name="MySQL",
|
|
1614
|
+
destination_endpoint_region=example.regions[0].id,
|
|
1615
|
+
instance_class="small",
|
|
1616
|
+
sync_architecture="oneway")
|
|
1617
|
+
example_synchronization_job = alicloud.dts.SynchronizationJob("example",
|
|
1618
|
+
dts_instance_id=example_synchronization_instance.id,
|
|
1619
|
+
dts_job_name=name,
|
|
1620
|
+
source_endpoint_instance_type="RDS",
|
|
1621
|
+
source_endpoint_instance_id=example_account_privilege[0].instance_id,
|
|
1622
|
+
source_endpoint_engine_name="MySQL",
|
|
1623
|
+
source_endpoint_region=example.regions[0].id,
|
|
1624
|
+
source_endpoint_user_name=example_rds_account[0].account_name,
|
|
1625
|
+
source_endpoint_password=example_rds_account[0].account_password,
|
|
1626
|
+
destination_endpoint_instance_type="RDS",
|
|
1627
|
+
destination_endpoint_instance_id=example_account_privilege[1].instance_id,
|
|
1628
|
+
destination_endpoint_engine_name="MySQL",
|
|
1629
|
+
destination_endpoint_region=example.regions[0].id,
|
|
1630
|
+
destination_endpoint_user_name=example_rds_account[1].account_name,
|
|
1631
|
+
destination_endpoint_password=example_rds_account[1].account_password,
|
|
1632
|
+
db_list=pulumi.Output.json_dumps(pulumi.Output.all(
|
|
1633
|
+
exampleDatabaseName=example_database[0].name,
|
|
1634
|
+
exampleDatabaseName1=example_database[1].name
|
|
1635
|
+
).apply(lambda resolved_outputs: {
|
|
1636
|
+
resolved_outputs['exampleDatabaseName']: {
|
|
1637
|
+
"name": resolved_outputs['exampleDatabaseName1'],
|
|
1638
|
+
"all": True,
|
|
1639
|
+
},
|
|
1640
|
+
})
|
|
1641
|
+
),
|
|
1642
|
+
structure_initialization=True,
|
|
1643
|
+
data_initialization=True,
|
|
1644
|
+
data_synchronization=True,
|
|
1645
|
+
status="Synchronizing")
|
|
1646
|
+
```
|
|
1647
|
+
|
|
1648
|
+
## Notice
|
|
1649
|
+
|
|
1650
|
+
1. The expiration time cannot be changed after the work of the annual and monthly subscription suspended;
|
|
1651
|
+
2. After the pay-as-you-go type job suspended, your job configuration fee will still be charged;
|
|
1652
|
+
3. If the task suspended for more than 6 hours, the task will not start successfully.
|
|
1653
|
+
4. Suspending the task will only stop writing to the target library, but will still continue to obtain the incremental log of the source, so that the task can be quickly resumed after the suspension is canceled. Therefore, some resources of the source library, such as bandwidth resources, will continue to be occupied during the period.
|
|
1654
|
+
5. Charges will continue during the task suspension period. If you need to stop charging, please release the instance
|
|
1655
|
+
6. When a DTS instance suspended for more than 7 days, the instance cannot be resumed, and the status will change from suspended to failed.
|
|
1656
|
+
|
|
1531
1657
|
## Import
|
|
1532
1658
|
|
|
1533
1659
|
DTS Synchronization Job can be imported using the id, e.g.
|
|
@@ -1548,7 +1674,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1548
1674
|
:param pulumi.Input[_builtins.str] delay_phone: The delay phone. The mobile phone number of the contact who delayed the alarm. Multiple mobile phone numbers separated by English commas `,`. This parameter currently only supports China stations, and only supports mainland mobile phone numbers, and up to 10 mobile phone numbers can be passed in.
|
|
1549
1675
|
:param pulumi.Input[_builtins.str] delay_rule_time: The delay rule time. When `delay_notice` is set to `true`, this parameter must be passed in. The threshold for triggering the delay alarm. The unit is second and needs to be an integer. The threshold can be set according to business needs. It is recommended to set it above 10 seconds to avoid delay fluctuations caused by network and database load.
|
|
1550
1676
|
:param pulumi.Input[_builtins.str] destination_endpoint_database_name: The name of the database to which the migration object belongs in the target instance. Note: when the target instance or target database type is PolarDB O engine, AnalyticDB PostgreSQL, PostgreSQL, MongoDB database, this parameter is available and must be passed in.
|
|
1551
|
-
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
1677
|
+
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
1552
1678
|
:param pulumi.Input[_builtins.str] destination_endpoint_instance_id: The ID of destination instance. If the target instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the target instance is a self-built database, the value of this parameter changes according to the value of `destination_endpoint_instance_type`. For example, the value of `destination_endpoint_instance_type` is:
|
|
1553
1679
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
1554
1680
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -1574,7 +1700,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1574
1700
|
:param pulumi.Input[_builtins.str] instance_class: The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`, `xxlarge`. You can only upgrade the configuration, not downgrade the configuration. If you downgrade the instance, you need to [submit a ticket](https://selfservice.console.aliyun.com/ticket/category/dts/today).
|
|
1575
1701
|
:param pulumi.Input[_builtins.str] reserve: DTS reserves parameters, the format is a JSON string, you can pass in this parameter to complete the source and target database information (such as the data storage format of the target Kafka database, the instance ID of the cloud enterprise network CEN). For more information, please refer to the parameter [description of the Reserve parameter](https://help.aliyun.com/document_detail/273111.html).
|
|
1576
1702
|
:param pulumi.Input[_builtins.str] source_endpoint_database_name: The name of the database to which the migration object belongs in the source instance. Note: this parameter is only available and must be passed in when the source instance, or the database type of the source instance is PolarDB O engine, PostgreSQL, or MongoDB database.
|
|
1577
|
-
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
1703
|
+
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
1578
1704
|
:param pulumi.Input[_builtins.str] source_endpoint_instance_id: The ID of source instance. If the source instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the source instance is a self-built database, the value of this parameter changes according to the value of `source_endpoint_instance_type`. For example, the value of `source_endpoint_instance_type` is:
|
|
1579
1705
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
1580
1706
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -1606,6 +1732,132 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1606
1732
|
|
|
1607
1733
|
> **NOTE:** Available since v1.138.0.
|
|
1608
1734
|
|
|
1735
|
+
## Example Usage
|
|
1736
|
+
|
|
1737
|
+
Basic Usage
|
|
1738
|
+
|
|
1739
|
+
```python
|
|
1740
|
+
import pulumi
|
|
1741
|
+
import json
|
|
1742
|
+
import pulumi_alicloud as alicloud
|
|
1743
|
+
import pulumi_std as std
|
|
1744
|
+
|
|
1745
|
+
config = pulumi.Config()
|
|
1746
|
+
name = config.get("name")
|
|
1747
|
+
if name is None:
|
|
1748
|
+
name = "terraform-example"
|
|
1749
|
+
example = alicloud.get_regions(current=True)
|
|
1750
|
+
example_get_zones = alicloud.rds.get_zones(engine="MySQL",
|
|
1751
|
+
engine_version="8.0",
|
|
1752
|
+
instance_charge_type="PostPaid",
|
|
1753
|
+
category="Basic",
|
|
1754
|
+
db_instance_storage_type="cloud_essd")
|
|
1755
|
+
example_get_instance_classes = alicloud.rds.get_instance_classes(zone_id=example_get_zones.zones[0].id,
|
|
1756
|
+
engine="MySQL",
|
|
1757
|
+
engine_version="8.0",
|
|
1758
|
+
instance_charge_type="PostPaid",
|
|
1759
|
+
category="Basic",
|
|
1760
|
+
db_instance_storage_type="cloud_essd")
|
|
1761
|
+
example_network = alicloud.vpc.Network("example",
|
|
1762
|
+
vpc_name=name,
|
|
1763
|
+
cidr_block="172.16.0.0/16")
|
|
1764
|
+
example_switch = alicloud.vpc.Switch("example",
|
|
1765
|
+
vpc_id=example_network.id,
|
|
1766
|
+
cidr_block="172.16.0.0/24",
|
|
1767
|
+
zone_id=example_get_zones.zones[0].id,
|
|
1768
|
+
vswitch_name=name)
|
|
1769
|
+
example_security_group = alicloud.ecs.SecurityGroup("example",
|
|
1770
|
+
security_group_name=name,
|
|
1771
|
+
vpc_id=example_network.id)
|
|
1772
|
+
example_instance = []
|
|
1773
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1774
|
+
example_instance.append(alicloud.rds.Instance(f"example-{range['value']}",
|
|
1775
|
+
engine="MySQL",
|
|
1776
|
+
engine_version="8.0",
|
|
1777
|
+
instance_type=example_get_instance_classes.instance_classes[0].instance_class,
|
|
1778
|
+
instance_storage=example_get_instance_classes.instance_classes[0].storage_range.min,
|
|
1779
|
+
instance_charge_type="Postpaid",
|
|
1780
|
+
instance_name=std.format(input="%s_%d",
|
|
1781
|
+
args=[
|
|
1782
|
+
name,
|
|
1783
|
+
range["value"] + 1,
|
|
1784
|
+
]).result,
|
|
1785
|
+
vswitch_id=example_switch.id,
|
|
1786
|
+
monitoring_period=60,
|
|
1787
|
+
db_instance_storage_type="cloud_essd",
|
|
1788
|
+
security_group_ids=[example_security_group.id]))
|
|
1789
|
+
example_rds_account = []
|
|
1790
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1791
|
+
example_rds_account.append(alicloud.rds.RdsAccount(f"example-{range['value']}",
|
|
1792
|
+
db_instance_id=example_instance[range["value"]].id,
|
|
1793
|
+
account_name=std.format(input="example_name_%d",
|
|
1794
|
+
args=[range["value"] + 1]).result,
|
|
1795
|
+
account_password=std.format(input="example_password_%d",
|
|
1796
|
+
args=[range["value"] + 1]).result))
|
|
1797
|
+
example_database = []
|
|
1798
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1799
|
+
example_database.append(alicloud.rds.Database(f"example-{range['value']}",
|
|
1800
|
+
instance_id=example_instance[range["value"]].id,
|
|
1801
|
+
name=std.format(input="%s_%d",
|
|
1802
|
+
args=[
|
|
1803
|
+
name,
|
|
1804
|
+
range["value"] + 1,
|
|
1805
|
+
]).result))
|
|
1806
|
+
example_account_privilege = []
|
|
1807
|
+
for range in [{"value": i} for i in range(0, 2)]:
|
|
1808
|
+
example_account_privilege.append(alicloud.rds.AccountPrivilege(f"example-{range['value']}",
|
|
1809
|
+
instance_id=example_instance[range["value"]].id,
|
|
1810
|
+
account_name=example_rds_account[range["value"]].account_name,
|
|
1811
|
+
privilege="ReadWrite",
|
|
1812
|
+
db_names=[example_database[range["value"]].name]))
|
|
1813
|
+
example_synchronization_instance = alicloud.dts.SynchronizationInstance("example",
|
|
1814
|
+
payment_type="PayAsYouGo",
|
|
1815
|
+
source_endpoint_engine_name="MySQL",
|
|
1816
|
+
source_endpoint_region=example.regions[0].id,
|
|
1817
|
+
destination_endpoint_engine_name="MySQL",
|
|
1818
|
+
destination_endpoint_region=example.regions[0].id,
|
|
1819
|
+
instance_class="small",
|
|
1820
|
+
sync_architecture="oneway")
|
|
1821
|
+
example_synchronization_job = alicloud.dts.SynchronizationJob("example",
|
|
1822
|
+
dts_instance_id=example_synchronization_instance.id,
|
|
1823
|
+
dts_job_name=name,
|
|
1824
|
+
source_endpoint_instance_type="RDS",
|
|
1825
|
+
source_endpoint_instance_id=example_account_privilege[0].instance_id,
|
|
1826
|
+
source_endpoint_engine_name="MySQL",
|
|
1827
|
+
source_endpoint_region=example.regions[0].id,
|
|
1828
|
+
source_endpoint_user_name=example_rds_account[0].account_name,
|
|
1829
|
+
source_endpoint_password=example_rds_account[0].account_password,
|
|
1830
|
+
destination_endpoint_instance_type="RDS",
|
|
1831
|
+
destination_endpoint_instance_id=example_account_privilege[1].instance_id,
|
|
1832
|
+
destination_endpoint_engine_name="MySQL",
|
|
1833
|
+
destination_endpoint_region=example.regions[0].id,
|
|
1834
|
+
destination_endpoint_user_name=example_rds_account[1].account_name,
|
|
1835
|
+
destination_endpoint_password=example_rds_account[1].account_password,
|
|
1836
|
+
db_list=pulumi.Output.json_dumps(pulumi.Output.all(
|
|
1837
|
+
exampleDatabaseName=example_database[0].name,
|
|
1838
|
+
exampleDatabaseName1=example_database[1].name
|
|
1839
|
+
).apply(lambda resolved_outputs: {
|
|
1840
|
+
resolved_outputs['exampleDatabaseName']: {
|
|
1841
|
+
"name": resolved_outputs['exampleDatabaseName1'],
|
|
1842
|
+
"all": True,
|
|
1843
|
+
},
|
|
1844
|
+
})
|
|
1845
|
+
),
|
|
1846
|
+
structure_initialization=True,
|
|
1847
|
+
data_initialization=True,
|
|
1848
|
+
data_synchronization=True,
|
|
1849
|
+
status="Synchronizing")
|
|
1850
|
+
```
|
|
1851
|
+
|
|
1852
|
+
## Notice
|
|
1853
|
+
|
|
1854
|
+
1. The expiration time cannot be changed after the work of the annual and monthly subscription suspended;
|
|
1855
|
+
2. After the pay-as-you-go type job suspended, your job configuration fee will still be charged;
|
|
1856
|
+
3. If the task suspended for more than 6 hours, the task will not start successfully.
|
|
1857
|
+
4. Suspending the task will only stop writing to the target library, but will still continue to obtain the incremental log of the source, so that the task can be quickly resumed after the suspension is canceled. Therefore, some resources of the source library, such as bandwidth resources, will continue to be occupied during the period.
|
|
1858
|
+
5. Charges will continue during the task suspension period. If you need to stop charging, please release the instance
|
|
1859
|
+
6. When a DTS instance suspended for more than 7 days, the instance cannot be resumed, and the status will change from suspended to failed.
|
|
1860
|
+
|
|
1609
1861
|
## Import
|
|
1610
1862
|
|
|
1611
1863
|
DTS Synchronization Job can be imported using the id, e.g.
|
|
@@ -1817,7 +2069,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1817
2069
|
:param pulumi.Input[_builtins.str] delay_phone: The delay phone. The mobile phone number of the contact who delayed the alarm. Multiple mobile phone numbers separated by English commas `,`. This parameter currently only supports China stations, and only supports mainland mobile phone numbers, and up to 10 mobile phone numbers can be passed in.
|
|
1818
2070
|
:param pulumi.Input[_builtins.str] delay_rule_time: The delay rule time. When `delay_notice` is set to `true`, this parameter must be passed in. The threshold for triggering the delay alarm. The unit is second and needs to be an integer. The threshold can be set according to business needs. It is recommended to set it above 10 seconds to avoid delay fluctuations caused by network and database load.
|
|
1819
2071
|
:param pulumi.Input[_builtins.str] destination_endpoint_database_name: The name of the database to which the migration object belongs in the target instance. Note: when the target instance or target database type is PolarDB O engine, AnalyticDB PostgreSQL, PostgreSQL, MongoDB database, this parameter is available and must be passed in.
|
|
1820
|
-
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
2072
|
+
:param pulumi.Input[_builtins.str] destination_endpoint_engine_name: The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
1821
2073
|
:param pulumi.Input[_builtins.str] destination_endpoint_instance_id: The ID of destination instance. If the target instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the target instance is a self-built database, the value of this parameter changes according to the value of `destination_endpoint_instance_type`. For example, the value of `destination_endpoint_instance_type` is:
|
|
1822
2074
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
1823
2075
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -1843,7 +2095,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1843
2095
|
:param pulumi.Input[_builtins.str] instance_class: The instance class. Valid values: `large`, `medium`, `micro`, `small`, `xlarge`, `xxlarge`. You can only upgrade the configuration, not downgrade the configuration. If you downgrade the instance, you need to [submit a ticket](https://selfservice.console.aliyun.com/ticket/category/dts/today).
|
|
1844
2096
|
:param pulumi.Input[_builtins.str] reserve: DTS reserves parameters, the format is a JSON string, you can pass in this parameter to complete the source and target database information (such as the data storage format of the target Kafka database, the instance ID of the cloud enterprise network CEN). For more information, please refer to the parameter [description of the Reserve parameter](https://help.aliyun.com/document_detail/273111.html).
|
|
1845
2097
|
:param pulumi.Input[_builtins.str] source_endpoint_database_name: The name of the database to which the migration object belongs in the source instance. Note: this parameter is only available and must be passed in when the source instance, or the database type of the source instance is PolarDB O engine, PostgreSQL, or MongoDB database.
|
|
1846
|
-
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
2098
|
+
:param pulumi.Input[_builtins.str] source_endpoint_engine_name: The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
1847
2099
|
:param pulumi.Input[_builtins.str] source_endpoint_instance_id: The ID of source instance. If the source instance is a cloud database (such as RDS MySQL), you need to pass in the instance ID of the cloud database (such as the instance ID of RDS MySQL). If the source instance is a self-built database, the value of this parameter changes according to the value of `source_endpoint_instance_type`. For example, the value of `source_endpoint_instance_type` is:
|
|
1848
2100
|
** `ECS`, then this parameter needs to be passed into the instance ID of ECS.
|
|
1849
2101
|
** `DG`, then this parameter needs to be passed into the ID of database gateway.
|
|
@@ -1996,7 +2248,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
1996
2248
|
@pulumi.getter(name="destinationEndpointEngineName")
|
|
1997
2249
|
def destination_endpoint_engine_name(self) -> pulumi.Output[_builtins.str]:
|
|
1998
2250
|
"""
|
|
1999
|
-
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`.
|
|
2251
|
+
The type of destination database. The default value is MYSQL. For the correspondence between supported target libraries and source libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the target instance is KAFKA or MONGODB, you also need to pass in some information in the reserved parameter `reserve`. For the configuration method, see the description of `reserve` parameters. Valid values: `ADS`, `ADB30`, `AS400`, `DATAHUB`, `DB2`, `GREENPLUM`, `KAFKA`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `PostgreSQL`,` POLARDB_PG`, `MARIADB`, `POLARDBX10`, `ODPS`, `Tablestore`, `ELK`, `REDIS`.
|
|
2000
2252
|
"""
|
|
2001
2253
|
return pulumi.get(self, "destination_endpoint_engine_name")
|
|
2002
2254
|
|
|
@@ -2155,7 +2407,7 @@ class SynchronizationJob(pulumi.CustomResource):
|
|
|
2155
2407
|
@pulumi.getter(name="sourceEndpointEngineName")
|
|
2156
2408
|
def source_endpoint_engine_name(self) -> pulumi.Output[_builtins.str]:
|
|
2157
2409
|
"""
|
|
2158
|
-
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`.
|
|
2410
|
+
The type of source database. The default value is `MySQL`. For the correspondence between supported source libraries and target libraries, see [Supported Databases](https://help.aliyun.com/document_detail/131497.htm). When the database type of the source instance is `MONGODB`, you also need to pass in some information in the reserved parameter `Reserve`, for the configuration method, see the description of Reserve parameters. Valid values: `AS400`, `DB2`, `DMSPOLARDB`, `HBASE`, `MONGODB`, `MSSQL`, `MySQL`, `ORACLE`, `PolarDB`, `POLARDBX20`, `POLARDB_O`, `POSTGRESQL`, `TERADATA`, `POLARDB_PG`, `MARIADB`, `POLARDBX10`, `TiDB`, `REDIS`.
|
|
2159
2411
|
"""
|
|
2160
2412
|
return pulumi.get(self, "source_endpoint_engine_name")
|
|
2161
2413
|
|
|
@@ -734,6 +734,62 @@ class DiskReplicaPair(pulumi.CustomResource):
|
|
|
734
734
|
|
|
735
735
|
> **NOTE:** Available since v1.196.0.
|
|
736
736
|
|
|
737
|
+
## Example Usage
|
|
738
|
+
|
|
739
|
+
Basic Usage
|
|
740
|
+
|
|
741
|
+
```python
|
|
742
|
+
import pulumi
|
|
743
|
+
import pulumi_alicloud as alicloud
|
|
744
|
+
import pulumi_std as std
|
|
745
|
+
|
|
746
|
+
config = pulumi.Config()
|
|
747
|
+
name = config.get("name")
|
|
748
|
+
if name is None:
|
|
749
|
+
name = "tf-example"
|
|
750
|
+
default = alicloud.get_regions(current=True)
|
|
751
|
+
default_get_regions = alicloud.ebs.get_regions(region_id=default.regions[0].id)
|
|
752
|
+
default_ecs_disk = alicloud.ecs.EcsDisk("default",
|
|
753
|
+
zone_id=default_get_regions.regions[0].zones[0].zone_id,
|
|
754
|
+
category="cloud_essd",
|
|
755
|
+
delete_auto_snapshot=True,
|
|
756
|
+
delete_with_instance=True,
|
|
757
|
+
description=name,
|
|
758
|
+
disk_name=name,
|
|
759
|
+
enable_auto_snapshot=True,
|
|
760
|
+
encrypted=True,
|
|
761
|
+
size=500,
|
|
762
|
+
tags={
|
|
763
|
+
"Created": "TF",
|
|
764
|
+
"For": "example",
|
|
765
|
+
"controlledBy": "ear",
|
|
766
|
+
})
|
|
767
|
+
destination = alicloud.ecs.EcsDisk("destination",
|
|
768
|
+
zone_id=default_get_regions.regions[0].zones[1].zone_id,
|
|
769
|
+
category="cloud_essd",
|
|
770
|
+
delete_auto_snapshot=True,
|
|
771
|
+
delete_with_instance=True,
|
|
772
|
+
description=std.format(input="%s-destination",
|
|
773
|
+
args=[name]).result,
|
|
774
|
+
disk_name=name,
|
|
775
|
+
enable_auto_snapshot=True,
|
|
776
|
+
encrypted=True,
|
|
777
|
+
size=500,
|
|
778
|
+
tags={
|
|
779
|
+
"Created": "TF",
|
|
780
|
+
"For": "example",
|
|
781
|
+
"controlledBy": "ear",
|
|
782
|
+
})
|
|
783
|
+
default_disk_replica_pair = alicloud.ebs.DiskReplicaPair("default",
|
|
784
|
+
destination_disk_id=destination.id,
|
|
785
|
+
destination_region_id=default.regions[0].id,
|
|
786
|
+
payment_type="POSTPAY",
|
|
787
|
+
destination_zone_id=destination.zone_id,
|
|
788
|
+
source_zone_id=default_ecs_disk.zone_id,
|
|
789
|
+
disk_id=default_ecs_disk.id,
|
|
790
|
+
description=name)
|
|
791
|
+
```
|
|
792
|
+
|
|
737
793
|
## Import
|
|
738
794
|
|
|
739
795
|
Elastic Block Storage(EBS) Disk Replica Pair can be imported using the id, e.g.
|
|
@@ -794,6 +850,62 @@ class DiskReplicaPair(pulumi.CustomResource):
|
|
|
794
850
|
|
|
795
851
|
> **NOTE:** Available since v1.196.0.
|
|
796
852
|
|
|
853
|
+
## Example Usage
|
|
854
|
+
|
|
855
|
+
Basic Usage
|
|
856
|
+
|
|
857
|
+
```python
|
|
858
|
+
import pulumi
|
|
859
|
+
import pulumi_alicloud as alicloud
|
|
860
|
+
import pulumi_std as std
|
|
861
|
+
|
|
862
|
+
config = pulumi.Config()
|
|
863
|
+
name = config.get("name")
|
|
864
|
+
if name is None:
|
|
865
|
+
name = "tf-example"
|
|
866
|
+
default = alicloud.get_regions(current=True)
|
|
867
|
+
default_get_regions = alicloud.ebs.get_regions(region_id=default.regions[0].id)
|
|
868
|
+
default_ecs_disk = alicloud.ecs.EcsDisk("default",
|
|
869
|
+
zone_id=default_get_regions.regions[0].zones[0].zone_id,
|
|
870
|
+
category="cloud_essd",
|
|
871
|
+
delete_auto_snapshot=True,
|
|
872
|
+
delete_with_instance=True,
|
|
873
|
+
description=name,
|
|
874
|
+
disk_name=name,
|
|
875
|
+
enable_auto_snapshot=True,
|
|
876
|
+
encrypted=True,
|
|
877
|
+
size=500,
|
|
878
|
+
tags={
|
|
879
|
+
"Created": "TF",
|
|
880
|
+
"For": "example",
|
|
881
|
+
"controlledBy": "ear",
|
|
882
|
+
})
|
|
883
|
+
destination = alicloud.ecs.EcsDisk("destination",
|
|
884
|
+
zone_id=default_get_regions.regions[0].zones[1].zone_id,
|
|
885
|
+
category="cloud_essd",
|
|
886
|
+
delete_auto_snapshot=True,
|
|
887
|
+
delete_with_instance=True,
|
|
888
|
+
description=std.format(input="%s-destination",
|
|
889
|
+
args=[name]).result,
|
|
890
|
+
disk_name=name,
|
|
891
|
+
enable_auto_snapshot=True,
|
|
892
|
+
encrypted=True,
|
|
893
|
+
size=500,
|
|
894
|
+
tags={
|
|
895
|
+
"Created": "TF",
|
|
896
|
+
"For": "example",
|
|
897
|
+
"controlledBy": "ear",
|
|
898
|
+
})
|
|
899
|
+
default_disk_replica_pair = alicloud.ebs.DiskReplicaPair("default",
|
|
900
|
+
destination_disk_id=destination.id,
|
|
901
|
+
destination_region_id=default.regions[0].id,
|
|
902
|
+
payment_type="POSTPAY",
|
|
903
|
+
destination_zone_id=destination.zone_id,
|
|
904
|
+
source_zone_id=default_ecs_disk.zone_id,
|
|
905
|
+
disk_id=default_ecs_disk.id,
|
|
906
|
+
description=name)
|
|
907
|
+
```
|
|
908
|
+
|
|
797
909
|
## Import
|
|
798
910
|
|
|
799
911
|
Elastic Block Storage(EBS) Disk Replica Pair can be imported using the id, e.g.
|