pulumi-alicloud 3.56.0a1715923185__py3-none-any.whl → 3.56.0a1716566612__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.
- pulumi_alicloud/actiontrail/outputs.py +4 -0
- pulumi_alicloud/adb/db_cluster.py +14 -0
- pulumi_alicloud/adb/get_db_cluster_lake_versions.py +2 -2
- pulumi_alicloud/alb/_inputs.py +34 -0
- pulumi_alicloud/alb/get_acls.py +2 -2
- pulumi_alicloud/alb/get_security_policies.py +4 -4
- pulumi_alicloud/alb/outputs.py +188 -10
- pulumi_alicloud/alb/rule.py +14 -0
- pulumi_alicloud/alb/server_group.py +21 -0
- pulumi_alicloud/amqp/get_instances.py +2 -2
- pulumi_alicloud/apigateway/get_log_configs.py +2 -2
- pulumi_alicloud/apigateway/get_plugins.py +6 -6
- pulumi_alicloud/arms/outputs.py +20 -0
- pulumi_alicloud/bastionhost/get_users.py +4 -4
- pulumi_alicloud/bastionhost/host.py +28 -7
- pulumi_alicloud/bastionhost/instance.py +14 -0
- pulumi_alicloud/cddc/get_dedicated_host_accounts.py +2 -2
- pulumi_alicloud/cddc/get_dedicated_host_groups.py +2 -2
- pulumi_alicloud/cddc/outputs.py +0 -6
- pulumi_alicloud/cdn/get_real_time_log_deliveries.py +0 -2
- pulumi_alicloud/cen/get_traffic_marking_policies.py +2 -4
- pulumi_alicloud/cen/get_transit_router_route_table_associations.py +8 -0
- pulumi_alicloud/cen/outputs.py +6 -0
- pulumi_alicloud/cen/transit_router_peer_attachment.py +14 -0
- pulumi_alicloud/cen/transit_router_prefix_list_association.py +28 -0
- pulumi_alicloud/cfg/aggregator.py +14 -0
- pulumi_alicloud/clickhouse/outputs.py +34 -4
- pulumi_alicloud/cloudfirewall/get_vpc_firewall_control_policies.py +12 -4
- pulumi_alicloud/cloudfirewall/instance.py +28 -0
- pulumi_alicloud/cloudsso/get_access_assignments.py +4 -4
- pulumi_alicloud/cloudsso/get_groups.py +2 -2
- pulumi_alicloud/cloudsso/outputs.py +104 -2
- pulumi_alicloud/cloudstoragegateway/get_gateway_block_volumes.py +2 -2
- pulumi_alicloud/cloudstoragegateway/get_gateway_cache_disks.py +2 -2
- pulumi_alicloud/cms/_inputs.py +16 -0
- pulumi_alicloud/cms/get_event_rules.py +2 -2
- pulumi_alicloud/cms/get_group_metric_rules.py +4 -4
- pulumi_alicloud/cms/get_hybrid_monitor_fc_tasks.py +2 -2
- pulumi_alicloud/cms/get_monitor_groups.py +2 -4
- pulumi_alicloud/cms/outputs.py +216 -0
- pulumi_alicloud/cr/get_chart_namespaces.py +2 -2
- pulumi_alicloud/cr/get_chart_repositories.py +2 -2
- pulumi_alicloud/cr/get_endpoint_acl_policies.py +2 -2
- pulumi_alicloud/cr/get_endpoint_acl_service.py +2 -2
- pulumi_alicloud/cr/get_vpc_endpoint_linked_vpcs.py +4 -0
- pulumi_alicloud/cr/outputs.py +4 -0
- pulumi_alicloud/cr/vpc_endpoint_linked_vpc.py +14 -0
- pulumi_alicloud/cs/_inputs.py +244 -16
- pulumi_alicloud/cs/edge_kubernetes.py +29 -15
- pulumi_alicloud/cs/kubernetes.py +54 -7
- pulumi_alicloud/cs/managed_kubernetes.py +34 -0
- pulumi_alicloud/cs/node_pool.py +105 -0
- pulumi_alicloud/cs/outputs.py +266 -16
- pulumi_alicloud/databasefilesystem/get_snapshots.py +2 -2
- pulumi_alicloud/databasefilesystem/outputs.py +6 -0
- pulumi_alicloud/dbs/get_backup_plans.py +2 -2
- pulumi_alicloud/dcdn/get_ipa_domains.py +4 -4
- pulumi_alicloud/dcdn/outputs.py +10 -0
- pulumi_alicloud/ddos/domain_resource.py +21 -0
- pulumi_alicloud/ddos/get_ddos_bgp_ips.py +6 -2
- pulumi_alicloud/ddos/get_ddos_coo_domain_resources.py +2 -2
- pulumi_alicloud/dfs/outputs.py +10 -0
- pulumi_alicloud/directmail/get_mail_addresses.py +2 -2
- pulumi_alicloud/directmail/get_receivers.py +2 -2
- pulumi_alicloud/dns/_inputs.py +16 -0
- pulumi_alicloud/dns/get_access_strategies.py +6 -2
- pulumi_alicloud/dns/outputs.py +68 -2
- pulumi_alicloud/dns/record.py +4 -0
- pulumi_alicloud/dts/get_subscription_jobs.py +2 -4
- pulumi_alicloud/dts/get_synchronization_jobs.py +2 -2
- pulumi_alicloud/dts/instance.py +21 -0
- pulumi_alicloud/eais/get_instances.py +2 -2
- pulumi_alicloud/ebs/outputs.py +6 -0
- pulumi_alicloud/eci/get_container_groups.py +6 -8
- pulumi_alicloud/eci/get_virtual_nodes.py +6 -8
- pulumi_alicloud/eci/outputs.py +26 -26
- pulumi_alicloud/ecs/_inputs.py +63 -1
- pulumi_alicloud/ecs/disk.py +28 -7
- pulumi_alicloud/ecs/ecs_deployment_set.py +23 -9
- pulumi_alicloud/ecs/ecs_disk.py +28 -7
- pulumi_alicloud/ecs/ecs_instance_set.py +35 -0
- pulumi_alicloud/ecs/eip.py +68 -0
- pulumi_alicloud/ecs/eip_address.py +199 -7
- pulumi_alicloud/ecs/get_auto_snapshot_policies.py +2 -2
- pulumi_alicloud/ecs/get_commands.py +4 -4
- pulumi_alicloud/ecs/get_ecs_deployment_sets.py +2 -2
- pulumi_alicloud/ecs/get_ecs_image_components.py +10 -6
- pulumi_alicloud/ecs/get_ecs_key_pairs.py +2 -4
- pulumi_alicloud/ecs/get_ecs_launch_templates.py +0 -2
- pulumi_alicloud/ecs/get_ecs_network_interface_permissions.py +2 -2
- pulumi_alicloud/ecs/get_ecs_snapshots.py +16 -16
- pulumi_alicloud/ecs/get_ecs_storage_capacity_units.py +2 -2
- pulumi_alicloud/ecs/get_eip_addresses.py +12 -12
- pulumi_alicloud/ecs/get_images.py +20 -4
- pulumi_alicloud/ecs/instance.py +222 -126
- pulumi_alicloud/ecs/outputs.py +217 -93
- pulumi_alicloud/eds/ad_connector_office_site.py +21 -0
- pulumi_alicloud/eds/get_ad_connector_office_sites.py +20 -2
- pulumi_alicloud/eds/get_desktop_types.py +4 -4
- pulumi_alicloud/eds/get_desktops.py +2 -4
- pulumi_alicloud/eds/get_images.py +2 -2
- pulumi_alicloud/eds/get_ram_directories.py +2 -2
- pulumi_alicloud/eds/get_simple_office_sites.py +2 -2
- pulumi_alicloud/eds/get_users.py +2 -2
- pulumi_alicloud/eds/outputs.py +58 -4
- pulumi_alicloud/ehpc/cluster.py +70 -0
- pulumi_alicloud/ehpc/outputs.py +112 -2
- pulumi_alicloud/eipanycast/get_anycast_eip_addresses.py +6 -6
- pulumi_alicloud/emr/get_clusters.py +8 -8
- pulumi_alicloud/emr/outputs.py +18 -32
- pulumi_alicloud/emrv2/get_clusters.py +4 -4
- pulumi_alicloud/ess/_inputs.py +2 -2
- pulumi_alicloud/ess/outputs.py +2 -2
- pulumi_alicloud/ess/scaling_group.py +7 -7
- pulumi_alicloud/eventbridge/_inputs.py +4 -0
- pulumi_alicloud/eventbridge/get_rules.py +2 -2
- pulumi_alicloud/eventbridge/outputs.py +4 -0
- pulumi_alicloud/expressconnect/get_access_points.py +2 -2
- pulumi_alicloud/expressconnect/get_physical_connections.py +2 -2
- pulumi_alicloud/expressconnect/get_virtual_border_routers.py +2 -2
- pulumi_alicloud/fnf/get_executions.py +2 -2
- pulumi_alicloud/ga/_inputs.py +12 -0
- pulumi_alicloud/ga/accelerator.py +49 -0
- pulumi_alicloud/ga/bandwidth_package.py +21 -0
- pulumi_alicloud/ga/custom_routing_endpoint.py +21 -0
- pulumi_alicloud/ga/endpoint_group.py +28 -0
- pulumi_alicloud/ga/get_accelerators.py +4 -0
- pulumi_alicloud/ga/get_acls.py +2 -2
- pulumi_alicloud/ga/get_bandwidth_packages.py +4 -4
- pulumi_alicloud/ga/get_ip_sets.py +2 -2
- pulumi_alicloud/ga/get_listeners.py +2 -2
- pulumi_alicloud/ga/listener.py +28 -0
- pulumi_alicloud/ga/outputs.py +14 -2
- pulumi_alicloud/gpdb/get_db_instance_plans.py +2 -2
- pulumi_alicloud/gpdb/get_instances.py +2 -4
- pulumi_alicloud/graphdatabase/outputs.py +14 -0
- pulumi_alicloud/hbr/_inputs.py +2 -0
- pulumi_alicloud/hbr/ecs_backup_plan.py +7 -0
- pulumi_alicloud/hbr/get_backup_jobs.py +4 -4
- pulumi_alicloud/hbr/get_hana_backup_plans.py +2 -4
- pulumi_alicloud/hbr/get_hana_instances.py +12 -4
- pulumi_alicloud/hbr/get_restore_jobs.py +10 -10
- pulumi_alicloud/hbr/get_snapshots.py +14 -14
- pulumi_alicloud/hbr/get_vaults.py +4 -0
- pulumi_alicloud/hbr/hana_backup_plan.py +21 -0
- pulumi_alicloud/hbr/nas_backup_plan.py +7 -0
- pulumi_alicloud/hbr/oss_backup_plan.py +7 -0
- pulumi_alicloud/hbr/ots_backup_plan.py +7 -0
- pulumi_alicloud/hbr/outputs.py +68 -0
- pulumi_alicloud/hbr/server_backup_plan.py +7 -0
- pulumi_alicloud/hbr/vault.py +14 -0
- pulumi_alicloud/imp/get_app_templates.py +2 -2
- pulumi_alicloud/kms/instance.py +218 -128
- pulumi_alicloud/kms/key.py +133 -21
- pulumi_alicloud/kms/secret.py +28 -0
- pulumi_alicloud/kvstore/account.py +21 -7
- pulumi_alicloud/kvstore/get_accounts.py +2 -2
- pulumi_alicloud/kvstore/instance.py +14 -0
- pulumi_alicloud/lindorm/get_instances.py +2 -2
- pulumi_alicloud/log/_inputs.py +28 -6
- pulumi_alicloud/log/get_projects.py +2 -2
- pulumi_alicloud/log/outputs.py +28 -6
- pulumi_alicloud/message/service_queue.py +100 -82
- pulumi_alicloud/message/service_subscription.py +14 -0
- pulumi_alicloud/mongodb/get_accounts.py +4 -4
- pulumi_alicloud/mongodb/get_audit_policies.py +2 -2
- pulumi_alicloud/mongodb/instance.py +56 -0
- pulumi_alicloud/mongodb/outputs.py +14 -0
- pulumi_alicloud/mongodb/sharding_instance.py +21 -0
- pulumi_alicloud/mse/cluster.py +28 -0
- pulumi_alicloud/mse/outputs.py +34 -0
- pulumi_alicloud/nas/access_rule.py +38 -18
- pulumi_alicloud/nas/auto_snapshot_policy.py +111 -26
- pulumi_alicloud/nas/data_flow.py +14 -0
- pulumi_alicloud/nas/file_system.py +14 -0
- pulumi_alicloud/nas/get_data_flows.py +2 -2
- pulumi_alicloud/nas/get_file_systems.py +4 -0
- pulumi_alicloud/nas/get_filesets.py +2 -2
- pulumi_alicloud/nas/get_snapshots.py +2 -2
- pulumi_alicloud/nas/outputs.py +4 -0
- pulumi_alicloud/nlb/get_load_balancers.py +10 -12
- pulumi_alicloud/nlb/get_security_policies.py +2 -4
- pulumi_alicloud/nlb/get_server_groups.py +4 -6
- pulumi_alicloud/nlb/load_balancer.py +14 -0
- pulumi_alicloud/nlb/server_group.py +56 -7
- pulumi_alicloud/ocean/get_base_instances.py +4 -4
- pulumi_alicloud/oos/get_parameters.py +6 -6
- pulumi_alicloud/oos/get_patch_baselines.py +4 -4
- pulumi_alicloud/oos/get_secret_parameters.py +4 -4
- pulumi_alicloud/oos/parameter.py +28 -0
- pulumi_alicloud/oos/secret_parameter.py +28 -0
- pulumi_alicloud/ots/instance.py +91 -0
- pulumi_alicloud/privatelink/get_vpc_endpoint_connections.py +2 -2
- pulumi_alicloud/privatelink/get_vpc_endpoint_services.py +6 -6
- pulumi_alicloud/privatelink/get_vpc_endpoint_zones.py +2 -2
- pulumi_alicloud/privatelink/get_vpc_endpoints.py +2 -2
- pulumi_alicloud/privatelink/vpc_endpoint.py +124 -41
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/get_resolver_zones.py +2 -2
- pulumi_alicloud/quotas/_inputs.py +0 -10
- pulumi_alicloud/quotas/outputs.py +10 -10
- pulumi_alicloud/rds/get_accounts.py +2 -2
- pulumi_alicloud/rds/get_cross_region_backups.py +6 -2
- pulumi_alicloud/resourcemanager/get_control_policies.py +2 -2
- pulumi_alicloud/resourcemanager/get_control_policy_attachments.py +2 -2
- pulumi_alicloud/resourcemanager/get_delegated_administrators.py +2 -2
- pulumi_alicloud/resourcemanager/get_resource_shares.py +4 -4
- pulumi_alicloud/resourcemanager/shared_resource.py +35 -0
- pulumi_alicloud/ros/get_change_sets.py +2 -2
- pulumi_alicloud/ros/get_stack_groups.py +2 -2
- pulumi_alicloud/ros/get_stack_instances.py +12 -2
- pulumi_alicloud/ros/get_stacks.py +4 -4
- pulumi_alicloud/ros/get_templates.py +4 -4
- pulumi_alicloud/ros/outputs.py +68 -2
- pulumi_alicloud/ros/stack_instance.py +52 -4
- pulumi_alicloud/sae/get_config_maps.py +2 -2
- pulumi_alicloud/sae/get_ingresses.py +2 -2
- pulumi_alicloud/sae/outputs.py +274 -0
- pulumi_alicloud/scdn/get_domains.py +2 -2
- pulumi_alicloud/sddp/get_data_limits.py +4 -4
- pulumi_alicloud/sddp/get_rules.py +10 -10
- pulumi_alicloud/simpleapplicationserver/get_images.py +0 -8
- pulumi_alicloud/simpleapplicationserver/get_instances.py +4 -4
- pulumi_alicloud/simpleapplicationserver/get_server_disks.py +2 -2
- pulumi_alicloud/simpleapplicationserver/get_server_snapshots.py +2 -2
- pulumi_alicloud/simpleapplicationserver/snapshot.py +4 -4
- pulumi_alicloud/slb/get_tls_cipher_policies.py +2 -2
- pulumi_alicloud/tsdb/get_instances.py +2 -2
- pulumi_alicloud/videosurveillance/get_system_groups.py +2 -2
- pulumi_alicloud/vod/domain.py +14 -0
- pulumi_alicloud/vod/get_domains.py +4 -0
- pulumi_alicloud/vpc/get_bgp_groups.py +4 -4
- pulumi_alicloud/vpc/get_bgp_networks.py +4 -4
- pulumi_alicloud/vpc/get_bgp_peers.py +6 -6
- pulumi_alicloud/vpc/get_havips.py +2 -2
- pulumi_alicloud/vpc/get_ipv4_gateways.py +2 -2
- pulumi_alicloud/vpc/get_ipv6_addresses.py +6 -2
- pulumi_alicloud/vpc/get_ipv6_egress_rules.py +4 -4
- pulumi_alicloud/vpc/get_ipv6_gateways.py +2 -2
- pulumi_alicloud/vpc/get_nat_ip_cidrs.py +6 -6
- pulumi_alicloud/vpc/get_nat_ips.py +6 -6
- pulumi_alicloud/vpc/get_network_acls.py +4 -4
- pulumi_alicloud/vpc/get_peer_connections.py +2 -2
- pulumi_alicloud/vpc/get_public_ip_address_pools.py +6 -6
- pulumi_alicloud/vpc/get_traffic_mirror_filter_egress_rules.py +2 -2
- pulumi_alicloud/vpc/get_traffic_mirror_filter_ingress_rules.py +2 -2
- pulumi_alicloud/vpc/get_traffic_mirror_filters.py +2 -2
- pulumi_alicloud/vpc/get_traffic_mirror_sessions.py +6 -6
- pulumi_alicloud/vpc/get_vpc_flow_logs.py +6 -6
- pulumi_alicloud/vpc/ha_vip.py +8 -0
- pulumi_alicloud/vpc/nat_gateway.py +14 -0
- pulumi_alicloud/vpc/outputs.py +14 -14
- pulumi_alicloud/vpc/route_entry.py +70 -0
- pulumi_alicloud/vpn/get_gateway_vpn_attachments.py +2 -2
- pulumi_alicloud/vpn/get_gateway_zones.py +16 -0
- pulumi_alicloud/vpn/outputs.py +4 -4
- {pulumi_alicloud-3.56.0a1715923185.dist-info → pulumi_alicloud-3.56.0a1716566612.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1715923185.dist-info → pulumi_alicloud-3.56.0a1716566612.dist-info}/RECORD +260 -260
- {pulumi_alicloud-3.56.0a1715923185.dist-info → pulumi_alicloud-3.56.0a1716566612.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1715923185.dist-info → pulumi_alicloud-3.56.0a1716566612.dist-info}/top_level.txt +0 -0
pulumi_alicloud/ecs/instance.py
CHANGED
|
@@ -27,6 +27,7 @@ class InstanceArgs:
|
|
|
27
27
|
deployment_set_id: Optional[pulumi.Input[str]] = None,
|
|
28
28
|
description: Optional[pulumi.Input[str]] = None,
|
|
29
29
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
30
|
+
enable_jumbo_frame: Optional[pulumi.Input[bool]] = None,
|
|
30
31
|
force_delete: Optional[pulumi.Input[bool]] = None,
|
|
31
32
|
host_name: Optional[pulumi.Input[str]] = None,
|
|
32
33
|
hpc_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -88,7 +89,7 @@ class InstanceArgs:
|
|
|
88
89
|
"""
|
|
89
90
|
The set of arguments for constructing a Instance resource.
|
|
90
91
|
:param pulumi.Input[bool] allocate_public_ip: It has been deprecated from version "1.7.0". Setting "internet_max_bandwidth_out" larger than 0 can allocate a public ip address for an instance.
|
|
91
|
-
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
92
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
92
93
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
93
94
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
94
95
|
:param pulumi.Input[int] auto_renew_period: Auto renewal period of an instance, in the unit of month. It is valid when `instance_charge_type` is `PrePaid`. Default to 1. Valid value:
|
|
@@ -103,9 +104,24 @@ class InstanceArgs:
|
|
|
103
104
|
- false: Disable deletion protection.
|
|
104
105
|
:param pulumi.Input[str] deployment_set_id: The ID of the deployment set to which to deploy the instance. **NOTE:** From version 1.176.0, instance's deploymentSetId can be removed when 'deployment_set_id' = "".
|
|
105
106
|
:param pulumi.Input[str] description: Description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
|
|
106
|
-
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
107
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
107
108
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
108
109
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
110
|
+
:param pulumi.Input[bool] enable_jumbo_frame: Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
111
|
+
|
|
112
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
113
|
+
|
|
114
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
115
|
+
|
|
116
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
117
|
+
|
|
118
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
119
|
+
|
|
120
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
121
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
122
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
123
|
+
|
|
124
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
109
125
|
:param pulumi.Input[bool] force_delete: If it is true, the "PrePaid" instance will be change to "PostPaid" and then deleted forcibly.
|
|
110
126
|
However, because of changing instance charge type has CPU core count quota limitation, so strongly recommand that "Don't modify instance charge type frequentlly in one month".
|
|
111
127
|
:param pulumi.Input[str] host_name: Host name of the ECS, which is a string of at least two characters. “hostname” cannot start or end with “.” or “-“. In addition, two or more consecutive “.” or “-“ symbols are not allowed. On Windows, the host name can contain a maximum of 15 characters, which can be a combination of uppercase/lowercase letters, numerals, and “-“. The host name cannot contain dots (“.”) or contain only numeric characters. When it is changed, the instance will reboot to make the change take effect.
|
|
@@ -135,22 +151,10 @@ class InstanceArgs:
|
|
|
135
151
|
:param pulumi.Input[str] launch_template_id: The ID of the launch template. For more information, see [DescribeLaunchTemplates](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-describelaunchtemplates).To use a launch template to create an instance, you must use the `launch_template_id` or `launch_template_name` parameter to specify the launch template.
|
|
136
152
|
:param pulumi.Input[str] launch_template_name: The name of the launch template.
|
|
137
153
|
:param pulumi.Input[str] launch_template_version: The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
141
|
-
|
|
142
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
143
|
-
|
|
144
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
145
|
-
|
|
146
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
147
|
-
|
|
148
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
149
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
150
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
151
|
-
|
|
152
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
153
154
|
:param pulumi.Input[str] maintenance_action: The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
155
|
+
* `Stop` : stops the instance.
|
|
156
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
157
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
154
158
|
:param pulumi.Input[bool] maintenance_notify: Specifies whether to send an event notification before instance shutdown. Valid values: `true`, `false`. Default value: `false`.
|
|
155
159
|
:param pulumi.Input['InstanceMaintenanceTimeArgs'] maintenance_time: The time of maintenance. See `maintenance_time` below.
|
|
156
160
|
:param pulumi.Input['InstanceNetworkInterfacesArgs'] network_interfaces: The list of network interfaces created with instance. See `network_interfaces` below.
|
|
@@ -164,6 +168,9 @@ class InstanceArgs:
|
|
|
164
168
|
:param pulumi.Input[str] period_unit: The duration unit that you will buy the resource. It is valid when `instance_charge_type` is 'PrePaid'. Valid value: ["Week", "Month"]. Default to "Month".
|
|
165
169
|
:param pulumi.Input[str] private_ip: Instance private IP address can be specified when you creating new instance. It is valid when `vswitch_id` is specified. When it is changed, the instance will reboot to make the change take effect.
|
|
166
170
|
:param pulumi.Input[str] renewal_status: Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
171
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
172
|
+
- `Normal`: Disable auto renewal.
|
|
173
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
167
174
|
:param pulumi.Input[str] resource_group_id: The Id of resource group which the instance belongs.
|
|
168
175
|
:param pulumi.Input[str] role_name: Instance RAM role name. The name is provided and maintained by RAM. You can use `ram.Role` to create a new one.
|
|
169
176
|
:param pulumi.Input[int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
@@ -182,8 +189,10 @@ class InstanceArgs:
|
|
|
182
189
|
Default to NoSpot. Note: Currently, the spot instance only supports domestic site account.
|
|
183
190
|
:param pulumi.Input[str] status: The instance status. Valid values: ["Running", "Stopped"]. You can control the instance start and stop through this parameter. Default to `Running`.
|
|
184
191
|
:param pulumi.Input[str] stopped_mode: The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
192
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
193
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
185
194
|
:param pulumi.Input[str] system_disk_auto_snapshot_policy_id: The ID of the automatic snapshot policy applied to the system disk.
|
|
186
|
-
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
195
|
+
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
187
196
|
:param pulumi.Input[str] system_disk_description: The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
|
|
188
197
|
:param pulumi.Input[str] system_disk_encrypt_algorithm: The algorithm to be used to encrypt the system disk. Valid values are `aes-256`, `sm4-128`. Default value is `aes-256`.
|
|
189
198
|
:param pulumi.Input[bool] system_disk_encrypted: Specifies whether to encrypt the system disk. Valid values: `true`,`false`. Default value: `false`.
|
|
@@ -229,6 +238,8 @@ class InstanceArgs:
|
|
|
229
238
|
pulumi.set(__self__, "description", description)
|
|
230
239
|
if dry_run is not None:
|
|
231
240
|
pulumi.set(__self__, "dry_run", dry_run)
|
|
241
|
+
if enable_jumbo_frame is not None:
|
|
242
|
+
pulumi.set(__self__, "enable_jumbo_frame", enable_jumbo_frame)
|
|
232
243
|
if force_delete is not None:
|
|
233
244
|
pulumi.set(__self__, "force_delete", force_delete)
|
|
234
245
|
if host_name is not None:
|
|
@@ -368,7 +379,7 @@ class InstanceArgs:
|
|
|
368
379
|
@pulumi.getter(name="autoReleaseTime")
|
|
369
380
|
def auto_release_time(self) -> Optional[pulumi.Input[str]]:
|
|
370
381
|
"""
|
|
371
|
-
The automatic release time of the `PostPaid` instance.
|
|
382
|
+
The automatic release time of the `PostPaid` instance.
|
|
372
383
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
373
384
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
374
385
|
"""
|
|
@@ -482,7 +493,7 @@ class InstanceArgs:
|
|
|
482
493
|
@pulumi.getter(name="dryRun")
|
|
483
494
|
def dry_run(self) -> Optional[pulumi.Input[bool]]:
|
|
484
495
|
"""
|
|
485
|
-
Specifies whether to send a dry-run request. Default to false.
|
|
496
|
+
Specifies whether to send a dry-run request. Default to false.
|
|
486
497
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
487
498
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
488
499
|
"""
|
|
@@ -492,6 +503,32 @@ class InstanceArgs:
|
|
|
492
503
|
def dry_run(self, value: Optional[pulumi.Input[bool]]):
|
|
493
504
|
pulumi.set(self, "dry_run", value)
|
|
494
505
|
|
|
506
|
+
@property
|
|
507
|
+
@pulumi.getter(name="enableJumboFrame")
|
|
508
|
+
def enable_jumbo_frame(self) -> Optional[pulumi.Input[bool]]:
|
|
509
|
+
"""
|
|
510
|
+
Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
511
|
+
|
|
512
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
513
|
+
|
|
514
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
515
|
+
|
|
516
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
517
|
+
|
|
518
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
519
|
+
|
|
520
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
521
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
522
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
523
|
+
|
|
524
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
525
|
+
"""
|
|
526
|
+
return pulumi.get(self, "enable_jumbo_frame")
|
|
527
|
+
|
|
528
|
+
@enable_jumbo_frame.setter
|
|
529
|
+
def enable_jumbo_frame(self, value: Optional[pulumi.Input[bool]]):
|
|
530
|
+
pulumi.set(self, "enable_jumbo_frame", value)
|
|
531
|
+
|
|
495
532
|
@property
|
|
496
533
|
@pulumi.getter(name="forceDelete")
|
|
497
534
|
def force_delete(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -768,21 +805,6 @@ class InstanceArgs:
|
|
|
768
805
|
def launch_template_version(self) -> Optional[pulumi.Input[str]]:
|
|
769
806
|
"""
|
|
770
807
|
The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
774
|
-
|
|
775
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
776
|
-
|
|
777
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
778
|
-
|
|
779
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
780
|
-
|
|
781
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
782
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
783
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
784
|
-
|
|
785
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
786
808
|
"""
|
|
787
809
|
return pulumi.get(self, "launch_template_version")
|
|
788
810
|
|
|
@@ -795,6 +817,9 @@ class InstanceArgs:
|
|
|
795
817
|
def maintenance_action(self) -> Optional[pulumi.Input[str]]:
|
|
796
818
|
"""
|
|
797
819
|
The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
820
|
+
* `Stop` : stops the instance.
|
|
821
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
822
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
798
823
|
"""
|
|
799
824
|
return pulumi.get(self, "maintenance_action")
|
|
800
825
|
|
|
@@ -907,6 +932,9 @@ class InstanceArgs:
|
|
|
907
932
|
def renewal_status(self) -> Optional[pulumi.Input[str]]:
|
|
908
933
|
"""
|
|
909
934
|
Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
935
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
936
|
+
- `Normal`: Disable auto renewal.
|
|
937
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
910
938
|
"""
|
|
911
939
|
return pulumi.get(self, "renewal_status")
|
|
912
940
|
|
|
@@ -1046,6 +1074,8 @@ class InstanceArgs:
|
|
|
1046
1074
|
def stopped_mode(self) -> Optional[pulumi.Input[str]]:
|
|
1047
1075
|
"""
|
|
1048
1076
|
The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
1077
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
1078
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
1049
1079
|
"""
|
|
1050
1080
|
return pulumi.get(self, "stopped_mode")
|
|
1051
1081
|
|
|
@@ -1069,7 +1099,7 @@ class InstanceArgs:
|
|
|
1069
1099
|
@pulumi.getter(name="systemDiskCategory")
|
|
1070
1100
|
def system_disk_category(self) -> Optional[pulumi.Input[str]]:
|
|
1071
1101
|
"""
|
|
1072
|
-
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
1102
|
+
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
1073
1103
|
"""
|
|
1074
1104
|
return pulumi.get(self, "system_disk_category")
|
|
1075
1105
|
|
|
@@ -1245,6 +1275,7 @@ class _InstanceState:
|
|
|
1245
1275
|
deployment_set_id: Optional[pulumi.Input[str]] = None,
|
|
1246
1276
|
description: Optional[pulumi.Input[str]] = None,
|
|
1247
1277
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
1278
|
+
enable_jumbo_frame: Optional[pulumi.Input[bool]] = None,
|
|
1248
1279
|
force_delete: Optional[pulumi.Input[bool]] = None,
|
|
1249
1280
|
host_name: Optional[pulumi.Input[str]] = None,
|
|
1250
1281
|
hpc_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -1313,7 +1344,7 @@ class _InstanceState:
|
|
|
1313
1344
|
"""
|
|
1314
1345
|
Input properties used for looking up and filtering Instance resources.
|
|
1315
1346
|
:param pulumi.Input[bool] allocate_public_ip: It has been deprecated from version "1.7.0". Setting "internet_max_bandwidth_out" larger than 0 can allocate a public ip address for an instance.
|
|
1316
|
-
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
1347
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
1317
1348
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
1318
1349
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
1319
1350
|
:param pulumi.Input[int] auto_renew_period: Auto renewal period of an instance, in the unit of month. It is valid when `instance_charge_type` is `PrePaid`. Default to 1. Valid value:
|
|
@@ -1330,9 +1361,24 @@ class _InstanceState:
|
|
|
1330
1361
|
:param pulumi.Input[str] deployment_set_group_no: The group number of the instance in a deployment set when the deployment set is use.
|
|
1331
1362
|
:param pulumi.Input[str] deployment_set_id: The ID of the deployment set to which to deploy the instance. **NOTE:** From version 1.176.0, instance's deploymentSetId can be removed when 'deployment_set_id' = "".
|
|
1332
1363
|
:param pulumi.Input[str] description: Description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
|
|
1333
|
-
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
1364
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
1334
1365
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
1335
1366
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
1367
|
+
:param pulumi.Input[bool] enable_jumbo_frame: Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
1368
|
+
|
|
1369
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
1370
|
+
|
|
1371
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
1372
|
+
|
|
1373
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
1374
|
+
|
|
1375
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
1376
|
+
|
|
1377
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
1378
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
1379
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
1380
|
+
|
|
1381
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
1336
1382
|
:param pulumi.Input[bool] force_delete: If it is true, the "PrePaid" instance will be change to "PostPaid" and then deleted forcibly.
|
|
1337
1383
|
However, because of changing instance charge type has CPU core count quota limitation, so strongly recommand that "Don't modify instance charge type frequentlly in one month".
|
|
1338
1384
|
:param pulumi.Input[str] host_name: Host name of the ECS, which is a string of at least two characters. “hostname” cannot start or end with “.” or “-“. In addition, two or more consecutive “.” or “-“ symbols are not allowed. On Windows, the host name can contain a maximum of 15 characters, which can be a combination of uppercase/lowercase letters, numerals, and “-“. The host name cannot contain dots (“.”) or contain only numeric characters. When it is changed, the instance will reboot to make the change take effect.
|
|
@@ -1362,22 +1408,10 @@ class _InstanceState:
|
|
|
1362
1408
|
:param pulumi.Input[str] launch_template_id: The ID of the launch template. For more information, see [DescribeLaunchTemplates](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-describelaunchtemplates).To use a launch template to create an instance, you must use the `launch_template_id` or `launch_template_name` parameter to specify the launch template.
|
|
1363
1409
|
:param pulumi.Input[str] launch_template_name: The name of the launch template.
|
|
1364
1410
|
:param pulumi.Input[str] launch_template_version: The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
1368
|
-
|
|
1369
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
1370
|
-
|
|
1371
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
1372
|
-
|
|
1373
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
1374
|
-
|
|
1375
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
1376
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
1377
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
1378
|
-
|
|
1379
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
1380
1411
|
:param pulumi.Input[str] maintenance_action: The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
1412
|
+
* `Stop` : stops the instance.
|
|
1413
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
1414
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
1381
1415
|
:param pulumi.Input[bool] maintenance_notify: Specifies whether to send an event notification before instance shutdown. Valid values: `true`, `false`. Default value: `false`.
|
|
1382
1416
|
:param pulumi.Input['InstanceMaintenanceTimeArgs'] maintenance_time: The time of maintenance. See `maintenance_time` below.
|
|
1383
1417
|
:param pulumi.Input[int] memory: The memory size of the instance. Unit: MiB.
|
|
@@ -1397,6 +1431,9 @@ class _InstanceState:
|
|
|
1397
1431
|
:param pulumi.Input[str] private_ip: Instance private IP address can be specified when you creating new instance. It is valid when `vswitch_id` is specified. When it is changed, the instance will reboot to make the change take effect.
|
|
1398
1432
|
:param pulumi.Input[str] public_ip: The instance public ip.
|
|
1399
1433
|
:param pulumi.Input[str] renewal_status: Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
1434
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
1435
|
+
- `Normal`: Disable auto renewal.
|
|
1436
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
1400
1437
|
:param pulumi.Input[str] resource_group_id: The Id of resource group which the instance belongs.
|
|
1401
1438
|
:param pulumi.Input[str] role_name: Instance RAM role name. The name is provided and maintained by RAM. You can use `ram.Role` to create a new one.
|
|
1402
1439
|
:param pulumi.Input[int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
@@ -1415,8 +1452,10 @@ class _InstanceState:
|
|
|
1415
1452
|
Default to NoSpot. Note: Currently, the spot instance only supports domestic site account.
|
|
1416
1453
|
:param pulumi.Input[str] status: The instance status. Valid values: ["Running", "Stopped"]. You can control the instance start and stop through this parameter. Default to `Running`.
|
|
1417
1454
|
:param pulumi.Input[str] stopped_mode: The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
1455
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
1456
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
1418
1457
|
:param pulumi.Input[str] system_disk_auto_snapshot_policy_id: The ID of the automatic snapshot policy applied to the system disk.
|
|
1419
|
-
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
1458
|
+
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
1420
1459
|
:param pulumi.Input[str] system_disk_description: The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
|
|
1421
1460
|
:param pulumi.Input[str] system_disk_encrypt_algorithm: The algorithm to be used to encrypt the system disk. Valid values are `aes-256`, `sm4-128`. Default value is `aes-256`.
|
|
1422
1461
|
:param pulumi.Input[bool] system_disk_encrypted: Specifies whether to encrypt the system disk. Valid values: `true`,`false`. Default value: `false`.
|
|
@@ -1467,6 +1506,8 @@ class _InstanceState:
|
|
|
1467
1506
|
pulumi.set(__self__, "description", description)
|
|
1468
1507
|
if dry_run is not None:
|
|
1469
1508
|
pulumi.set(__self__, "dry_run", dry_run)
|
|
1509
|
+
if enable_jumbo_frame is not None:
|
|
1510
|
+
pulumi.set(__self__, "enable_jumbo_frame", enable_jumbo_frame)
|
|
1470
1511
|
if force_delete is not None:
|
|
1471
1512
|
pulumi.set(__self__, "force_delete", force_delete)
|
|
1472
1513
|
if host_name is not None:
|
|
@@ -1620,7 +1661,7 @@ class _InstanceState:
|
|
|
1620
1661
|
@pulumi.getter(name="autoReleaseTime")
|
|
1621
1662
|
def auto_release_time(self) -> Optional[pulumi.Input[str]]:
|
|
1622
1663
|
"""
|
|
1623
|
-
The automatic release time of the `PostPaid` instance.
|
|
1664
|
+
The automatic release time of the `PostPaid` instance.
|
|
1624
1665
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
1625
1666
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
1626
1667
|
"""
|
|
@@ -1758,7 +1799,7 @@ class _InstanceState:
|
|
|
1758
1799
|
@pulumi.getter(name="dryRun")
|
|
1759
1800
|
def dry_run(self) -> Optional[pulumi.Input[bool]]:
|
|
1760
1801
|
"""
|
|
1761
|
-
Specifies whether to send a dry-run request. Default to false.
|
|
1802
|
+
Specifies whether to send a dry-run request. Default to false.
|
|
1762
1803
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
1763
1804
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
1764
1805
|
"""
|
|
@@ -1768,6 +1809,32 @@ class _InstanceState:
|
|
|
1768
1809
|
def dry_run(self, value: Optional[pulumi.Input[bool]]):
|
|
1769
1810
|
pulumi.set(self, "dry_run", value)
|
|
1770
1811
|
|
|
1812
|
+
@property
|
|
1813
|
+
@pulumi.getter(name="enableJumboFrame")
|
|
1814
|
+
def enable_jumbo_frame(self) -> Optional[pulumi.Input[bool]]:
|
|
1815
|
+
"""
|
|
1816
|
+
Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
1817
|
+
|
|
1818
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
1819
|
+
|
|
1820
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
1821
|
+
|
|
1822
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
1823
|
+
|
|
1824
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
1825
|
+
|
|
1826
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
1827
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
1828
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
1829
|
+
|
|
1830
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
1831
|
+
"""
|
|
1832
|
+
return pulumi.get(self, "enable_jumbo_frame")
|
|
1833
|
+
|
|
1834
|
+
@enable_jumbo_frame.setter
|
|
1835
|
+
def enable_jumbo_frame(self, value: Optional[pulumi.Input[bool]]):
|
|
1836
|
+
pulumi.set(self, "enable_jumbo_frame", value)
|
|
1837
|
+
|
|
1771
1838
|
@property
|
|
1772
1839
|
@pulumi.getter(name="forceDelete")
|
|
1773
1840
|
def force_delete(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -2044,21 +2111,6 @@ class _InstanceState:
|
|
|
2044
2111
|
def launch_template_version(self) -> Optional[pulumi.Input[str]]:
|
|
2045
2112
|
"""
|
|
2046
2113
|
The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
2050
|
-
|
|
2051
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
2052
|
-
|
|
2053
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
2054
|
-
|
|
2055
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
2056
|
-
|
|
2057
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
2058
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
2059
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
2060
|
-
|
|
2061
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
2062
2114
|
"""
|
|
2063
2115
|
return pulumi.get(self, "launch_template_version")
|
|
2064
2116
|
|
|
@@ -2071,6 +2123,9 @@ class _InstanceState:
|
|
|
2071
2123
|
def maintenance_action(self) -> Optional[pulumi.Input[str]]:
|
|
2072
2124
|
"""
|
|
2073
2125
|
The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
2126
|
+
* `Stop` : stops the instance.
|
|
2127
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
2128
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
2074
2129
|
"""
|
|
2075
2130
|
return pulumi.get(self, "maintenance_action")
|
|
2076
2131
|
|
|
@@ -2255,6 +2310,9 @@ class _InstanceState:
|
|
|
2255
2310
|
def renewal_status(self) -> Optional[pulumi.Input[str]]:
|
|
2256
2311
|
"""
|
|
2257
2312
|
Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
2313
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
2314
|
+
- `Normal`: Disable auto renewal.
|
|
2315
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
2258
2316
|
"""
|
|
2259
2317
|
return pulumi.get(self, "renewal_status")
|
|
2260
2318
|
|
|
@@ -2394,6 +2452,8 @@ class _InstanceState:
|
|
|
2394
2452
|
def stopped_mode(self) -> Optional[pulumi.Input[str]]:
|
|
2395
2453
|
"""
|
|
2396
2454
|
The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
2455
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
2456
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
2397
2457
|
"""
|
|
2398
2458
|
return pulumi.get(self, "stopped_mode")
|
|
2399
2459
|
|
|
@@ -2417,7 +2477,7 @@ class _InstanceState:
|
|
|
2417
2477
|
@pulumi.getter(name="systemDiskCategory")
|
|
2418
2478
|
def system_disk_category(self) -> Optional[pulumi.Input[str]]:
|
|
2419
2479
|
"""
|
|
2420
|
-
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
2480
|
+
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
2421
2481
|
"""
|
|
2422
2482
|
return pulumi.get(self, "system_disk_category")
|
|
2423
2483
|
|
|
@@ -2605,6 +2665,7 @@ class Instance(pulumi.CustomResource):
|
|
|
2605
2665
|
deployment_set_id: Optional[pulumi.Input[str]] = None,
|
|
2606
2666
|
description: Optional[pulumi.Input[str]] = None,
|
|
2607
2667
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
2668
|
+
enable_jumbo_frame: Optional[pulumi.Input[bool]] = None,
|
|
2608
2669
|
force_delete: Optional[pulumi.Input[bool]] = None,
|
|
2609
2670
|
host_name: Optional[pulumi.Input[str]] = None,
|
|
2610
2671
|
hpc_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -2738,7 +2799,7 @@ class Instance(pulumi.CustomResource):
|
|
|
2738
2799
|
:param str resource_name: The name of the resource.
|
|
2739
2800
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
2740
2801
|
:param pulumi.Input[bool] allocate_public_ip: It has been deprecated from version "1.7.0". Setting "internet_max_bandwidth_out" larger than 0 can allocate a public ip address for an instance.
|
|
2741
|
-
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
2802
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
2742
2803
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
2743
2804
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
2744
2805
|
:param pulumi.Input[int] auto_renew_period: Auto renewal period of an instance, in the unit of month. It is valid when `instance_charge_type` is `PrePaid`. Default to 1. Valid value:
|
|
@@ -2753,9 +2814,24 @@ class Instance(pulumi.CustomResource):
|
|
|
2753
2814
|
- false: Disable deletion protection.
|
|
2754
2815
|
:param pulumi.Input[str] deployment_set_id: The ID of the deployment set to which to deploy the instance. **NOTE:** From version 1.176.0, instance's deploymentSetId can be removed when 'deployment_set_id' = "".
|
|
2755
2816
|
:param pulumi.Input[str] description: Description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
|
|
2756
|
-
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
2817
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
2757
2818
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
2758
2819
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
2820
|
+
:param pulumi.Input[bool] enable_jumbo_frame: Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
2821
|
+
|
|
2822
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
2823
|
+
|
|
2824
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
2825
|
+
|
|
2826
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
2827
|
+
|
|
2828
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
2829
|
+
|
|
2830
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
2831
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
2832
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
2833
|
+
|
|
2834
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
2759
2835
|
:param pulumi.Input[bool] force_delete: If it is true, the "PrePaid" instance will be change to "PostPaid" and then deleted forcibly.
|
|
2760
2836
|
However, because of changing instance charge type has CPU core count quota limitation, so strongly recommand that "Don't modify instance charge type frequentlly in one month".
|
|
2761
2837
|
:param pulumi.Input[str] host_name: Host name of the ECS, which is a string of at least two characters. “hostname” cannot start or end with “.” or “-“. In addition, two or more consecutive “.” or “-“ symbols are not allowed. On Windows, the host name can contain a maximum of 15 characters, which can be a combination of uppercase/lowercase letters, numerals, and “-“. The host name cannot contain dots (“.”) or contain only numeric characters. When it is changed, the instance will reboot to make the change take effect.
|
|
@@ -2785,22 +2861,10 @@ class Instance(pulumi.CustomResource):
|
|
|
2785
2861
|
:param pulumi.Input[str] launch_template_id: The ID of the launch template. For more information, see [DescribeLaunchTemplates](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-describelaunchtemplates).To use a launch template to create an instance, you must use the `launch_template_id` or `launch_template_name` parameter to specify the launch template.
|
|
2786
2862
|
:param pulumi.Input[str] launch_template_name: The name of the launch template.
|
|
2787
2863
|
:param pulumi.Input[str] launch_template_version: The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
2791
|
-
|
|
2792
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
2793
|
-
|
|
2794
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
2795
|
-
|
|
2796
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
2797
|
-
|
|
2798
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
2799
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
2800
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
2801
|
-
|
|
2802
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
2803
2864
|
:param pulumi.Input[str] maintenance_action: The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
2865
|
+
* `Stop` : stops the instance.
|
|
2866
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
2867
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
2804
2868
|
:param pulumi.Input[bool] maintenance_notify: Specifies whether to send an event notification before instance shutdown. Valid values: `true`, `false`. Default value: `false`.
|
|
2805
2869
|
:param pulumi.Input[pulumi.InputType['InstanceMaintenanceTimeArgs']] maintenance_time: The time of maintenance. See `maintenance_time` below.
|
|
2806
2870
|
:param pulumi.Input[pulumi.InputType['InstanceNetworkInterfacesArgs']] network_interfaces: The list of network interfaces created with instance. See `network_interfaces` below.
|
|
@@ -2814,6 +2878,9 @@ class Instance(pulumi.CustomResource):
|
|
|
2814
2878
|
:param pulumi.Input[str] period_unit: The duration unit that you will buy the resource. It is valid when `instance_charge_type` is 'PrePaid'. Valid value: ["Week", "Month"]. Default to "Month".
|
|
2815
2879
|
:param pulumi.Input[str] private_ip: Instance private IP address can be specified when you creating new instance. It is valid when `vswitch_id` is specified. When it is changed, the instance will reboot to make the change take effect.
|
|
2816
2880
|
:param pulumi.Input[str] renewal_status: Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
2881
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
2882
|
+
- `Normal`: Disable auto renewal.
|
|
2883
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
2817
2884
|
:param pulumi.Input[str] resource_group_id: The Id of resource group which the instance belongs.
|
|
2818
2885
|
:param pulumi.Input[str] role_name: Instance RAM role name. The name is provided and maintained by RAM. You can use `ram.Role` to create a new one.
|
|
2819
2886
|
:param pulumi.Input[int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
@@ -2832,8 +2899,10 @@ class Instance(pulumi.CustomResource):
|
|
|
2832
2899
|
Default to NoSpot. Note: Currently, the spot instance only supports domestic site account.
|
|
2833
2900
|
:param pulumi.Input[str] status: The instance status. Valid values: ["Running", "Stopped"]. You can control the instance start and stop through this parameter. Default to `Running`.
|
|
2834
2901
|
:param pulumi.Input[str] stopped_mode: The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
2902
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
2903
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
2835
2904
|
:param pulumi.Input[str] system_disk_auto_snapshot_policy_id: The ID of the automatic snapshot policy applied to the system disk.
|
|
2836
|
-
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
2905
|
+
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
2837
2906
|
:param pulumi.Input[str] system_disk_description: The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
|
|
2838
2907
|
:param pulumi.Input[str] system_disk_encrypt_algorithm: The algorithm to be used to encrypt the system disk. Valid values are `aes-256`, `sm4-128`. Default value is `aes-256`.
|
|
2839
2908
|
:param pulumi.Input[bool] system_disk_encrypted: Specifies whether to encrypt the system disk. Valid values: `true`,`false`. Default value: `false`.
|
|
@@ -2957,6 +3026,7 @@ class Instance(pulumi.CustomResource):
|
|
|
2957
3026
|
deployment_set_id: Optional[pulumi.Input[str]] = None,
|
|
2958
3027
|
description: Optional[pulumi.Input[str]] = None,
|
|
2959
3028
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
3029
|
+
enable_jumbo_frame: Optional[pulumi.Input[bool]] = None,
|
|
2960
3030
|
force_delete: Optional[pulumi.Input[bool]] = None,
|
|
2961
3031
|
host_name: Optional[pulumi.Input[str]] = None,
|
|
2962
3032
|
hpc_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -3035,6 +3105,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3035
3105
|
__props__.__dict__["deployment_set_id"] = deployment_set_id
|
|
3036
3106
|
__props__.__dict__["description"] = description
|
|
3037
3107
|
__props__.__dict__["dry_run"] = dry_run
|
|
3108
|
+
__props__.__dict__["enable_jumbo_frame"] = enable_jumbo_frame
|
|
3038
3109
|
__props__.__dict__["force_delete"] = force_delete
|
|
3039
3110
|
__props__.__dict__["host_name"] = host_name
|
|
3040
3111
|
__props__.__dict__["hpc_cluster_id"] = hpc_cluster_id
|
|
@@ -3127,6 +3198,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3127
3198
|
deployment_set_id: Optional[pulumi.Input[str]] = None,
|
|
3128
3199
|
description: Optional[pulumi.Input[str]] = None,
|
|
3129
3200
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
3201
|
+
enable_jumbo_frame: Optional[pulumi.Input[bool]] = None,
|
|
3130
3202
|
force_delete: Optional[pulumi.Input[bool]] = None,
|
|
3131
3203
|
host_name: Optional[pulumi.Input[str]] = None,
|
|
3132
3204
|
hpc_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -3200,7 +3272,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3200
3272
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
3201
3273
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
3202
3274
|
:param pulumi.Input[bool] allocate_public_ip: It has been deprecated from version "1.7.0". Setting "internet_max_bandwidth_out" larger than 0 can allocate a public ip address for an instance.
|
|
3203
|
-
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
3275
|
+
:param pulumi.Input[str] auto_release_time: The automatic release time of the `PostPaid` instance.
|
|
3204
3276
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
3205
3277
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
3206
3278
|
:param pulumi.Input[int] auto_renew_period: Auto renewal period of an instance, in the unit of month. It is valid when `instance_charge_type` is `PrePaid`. Default to 1. Valid value:
|
|
@@ -3217,9 +3289,24 @@ class Instance(pulumi.CustomResource):
|
|
|
3217
3289
|
:param pulumi.Input[str] deployment_set_group_no: The group number of the instance in a deployment set when the deployment set is use.
|
|
3218
3290
|
:param pulumi.Input[str] deployment_set_id: The ID of the deployment set to which to deploy the instance. **NOTE:** From version 1.176.0, instance's deploymentSetId can be removed when 'deployment_set_id' = "".
|
|
3219
3291
|
:param pulumi.Input[str] description: Description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.
|
|
3220
|
-
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
3292
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to send a dry-run request. Default to false.
|
|
3221
3293
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
3222
3294
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
3295
|
+
:param pulumi.Input[bool] enable_jumbo_frame: Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
3296
|
+
|
|
3297
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
3298
|
+
|
|
3299
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
3300
|
+
|
|
3301
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
3302
|
+
|
|
3303
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
3304
|
+
|
|
3305
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
3306
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
3307
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
3308
|
+
|
|
3309
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
3223
3310
|
:param pulumi.Input[bool] force_delete: If it is true, the "PrePaid" instance will be change to "PostPaid" and then deleted forcibly.
|
|
3224
3311
|
However, because of changing instance charge type has CPU core count quota limitation, so strongly recommand that "Don't modify instance charge type frequentlly in one month".
|
|
3225
3312
|
:param pulumi.Input[str] host_name: Host name of the ECS, which is a string of at least two characters. “hostname” cannot start or end with “.” or “-“. In addition, two or more consecutive “.” or “-“ symbols are not allowed. On Windows, the host name can contain a maximum of 15 characters, which can be a combination of uppercase/lowercase letters, numerals, and “-“. The host name cannot contain dots (“.”) or contain only numeric characters. When it is changed, the instance will reboot to make the change take effect.
|
|
@@ -3249,22 +3336,10 @@ class Instance(pulumi.CustomResource):
|
|
|
3249
3336
|
:param pulumi.Input[str] launch_template_id: The ID of the launch template. For more information, see [DescribeLaunchTemplates](https://www.alibabacloud.com/help/en/ecs/developer-reference/api-describelaunchtemplates).To use a launch template to create an instance, you must use the `launch_template_id` or `launch_template_name` parameter to specify the launch template.
|
|
3250
3337
|
:param pulumi.Input[str] launch_template_name: The name of the launch template.
|
|
3251
3338
|
:param pulumi.Input[str] launch_template_version: The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
3255
|
-
|
|
3256
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
3257
|
-
|
|
3258
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
3259
|
-
|
|
3260
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
3261
|
-
|
|
3262
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
3263
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
3264
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
3265
|
-
|
|
3266
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
3267
3339
|
:param pulumi.Input[str] maintenance_action: The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
3340
|
+
* `Stop` : stops the instance.
|
|
3341
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
3342
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
3268
3343
|
:param pulumi.Input[bool] maintenance_notify: Specifies whether to send an event notification before instance shutdown. Valid values: `true`, `false`. Default value: `false`.
|
|
3269
3344
|
:param pulumi.Input[pulumi.InputType['InstanceMaintenanceTimeArgs']] maintenance_time: The time of maintenance. See `maintenance_time` below.
|
|
3270
3345
|
:param pulumi.Input[int] memory: The memory size of the instance. Unit: MiB.
|
|
@@ -3284,6 +3359,9 @@ class Instance(pulumi.CustomResource):
|
|
|
3284
3359
|
:param pulumi.Input[str] private_ip: Instance private IP address can be specified when you creating new instance. It is valid when `vswitch_id` is specified. When it is changed, the instance will reboot to make the change take effect.
|
|
3285
3360
|
:param pulumi.Input[str] public_ip: The instance public ip.
|
|
3286
3361
|
:param pulumi.Input[str] renewal_status: Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
3362
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
3363
|
+
- `Normal`: Disable auto renewal.
|
|
3364
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
3287
3365
|
:param pulumi.Input[str] resource_group_id: The Id of resource group which the instance belongs.
|
|
3288
3366
|
:param pulumi.Input[str] role_name: Instance RAM role name. The name is provided and maintained by RAM. You can use `ram.Role` to create a new one.
|
|
3289
3367
|
:param pulumi.Input[int] secondary_private_ip_address_count: The number of private IP addresses to be automatically assigned from within the CIDR block of the vswitch. **NOTE:** To assign secondary private IP addresses, you must specify `secondary_private_ips` or `secondary_private_ip_address_count` but not both.
|
|
@@ -3302,8 +3380,10 @@ class Instance(pulumi.CustomResource):
|
|
|
3302
3380
|
Default to NoSpot. Note: Currently, the spot instance only supports domestic site account.
|
|
3303
3381
|
:param pulumi.Input[str] status: The instance status. Valid values: ["Running", "Stopped"]. You can control the instance start and stop through this parameter. Default to `Running`.
|
|
3304
3382
|
:param pulumi.Input[str] stopped_mode: The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
3383
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
3384
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
3305
3385
|
:param pulumi.Input[str] system_disk_auto_snapshot_policy_id: The ID of the automatic snapshot policy applied to the system disk.
|
|
3306
|
-
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
3386
|
+
:param pulumi.Input[str] system_disk_category: Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
3307
3387
|
:param pulumi.Input[str] system_disk_description: The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
|
|
3308
3388
|
:param pulumi.Input[str] system_disk_encrypt_algorithm: The algorithm to be used to encrypt the system disk. Valid values are `aes-256`, `sm4-128`. Default value is `aes-256`.
|
|
3309
3389
|
:param pulumi.Input[bool] system_disk_encrypted: Specifies whether to encrypt the system disk. Valid values: `true`,`false`. Default value: `false`.
|
|
@@ -3342,6 +3422,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3342
3422
|
__props__.__dict__["deployment_set_id"] = deployment_set_id
|
|
3343
3423
|
__props__.__dict__["description"] = description
|
|
3344
3424
|
__props__.__dict__["dry_run"] = dry_run
|
|
3425
|
+
__props__.__dict__["enable_jumbo_frame"] = enable_jumbo_frame
|
|
3345
3426
|
__props__.__dict__["force_delete"] = force_delete
|
|
3346
3427
|
__props__.__dict__["host_name"] = host_name
|
|
3347
3428
|
__props__.__dict__["hpc_cluster_id"] = hpc_cluster_id
|
|
@@ -3424,7 +3505,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3424
3505
|
@pulumi.getter(name="autoReleaseTime")
|
|
3425
3506
|
def auto_release_time(self) -> pulumi.Output[Optional[str]]:
|
|
3426
3507
|
"""
|
|
3427
|
-
The automatic release time of the `PostPaid` instance.
|
|
3508
|
+
The automatic release time of the `PostPaid` instance.
|
|
3428
3509
|
The time follows the ISO 8601 standard and is in UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. It must be at least half an hour later than the current time and less than 3 years since the current time.
|
|
3429
3510
|
Setting it to null can cancel automatic release feature, and the ECS instance will not be released automatically.
|
|
3430
3511
|
"""
|
|
@@ -3518,12 +3599,34 @@ class Instance(pulumi.CustomResource):
|
|
|
3518
3599
|
@pulumi.getter(name="dryRun")
|
|
3519
3600
|
def dry_run(self) -> pulumi.Output[Optional[bool]]:
|
|
3520
3601
|
"""
|
|
3521
|
-
Specifies whether to send a dry-run request. Default to false.
|
|
3602
|
+
Specifies whether to send a dry-run request. Default to false.
|
|
3522
3603
|
- true: Only a dry-run request is sent and no instance is created. The system checks whether the required parameters are set, and validates the request format, service permissions, and available ECS instances. If the validation fails, the corresponding error code is returned. If the validation succeeds, the `DryRunOperation` error code is returned.
|
|
3523
3604
|
- false: A request is sent. If the validation succeeds, the instance is created.
|
|
3524
3605
|
"""
|
|
3525
3606
|
return pulumi.get(self, "dry_run")
|
|
3526
3607
|
|
|
3608
|
+
@property
|
|
3609
|
+
@pulumi.getter(name="enableJumboFrame")
|
|
3610
|
+
def enable_jumbo_frame(self) -> pulumi.Output[bool]:
|
|
3611
|
+
"""
|
|
3612
|
+
Specifies whether to enable the Jumbo Frames feature for the instance. Valid values: `true`, `false`.
|
|
3613
|
+
|
|
3614
|
+
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
3615
|
+
|
|
3616
|
+
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
3617
|
+
|
|
3618
|
+
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
3619
|
+
|
|
3620
|
+
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
3621
|
+
|
|
3622
|
+
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
3623
|
+
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
3624
|
+
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
3625
|
+
|
|
3626
|
+
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
3627
|
+
"""
|
|
3628
|
+
return pulumi.get(self, "enable_jumbo_frame")
|
|
3629
|
+
|
|
3527
3630
|
@property
|
|
3528
3631
|
@pulumi.getter(name="forceDelete")
|
|
3529
3632
|
def force_delete(self) -> pulumi.Output[Optional[bool]]:
|
|
@@ -3712,21 +3815,6 @@ class Instance(pulumi.CustomResource):
|
|
|
3712
3815
|
def launch_template_version(self) -> pulumi.Output[Optional[str]]:
|
|
3713
3816
|
"""
|
|
3714
3817
|
The version of the launch template. If you set `launch_template_id` or `launch_template_name` parameter but do not set the version number of the launch template, the default template version is used.
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
> **NOTE:** System disk category `cloud` has been outdated and it only can be used none I/O Optimized ECS instances. Recommend `cloud_efficiency` and `cloud_ssd` disk.
|
|
3718
|
-
|
|
3719
|
-
> **NOTE:** From version 1.5.0, instance's charge type can be changed to "PrePaid" by specifying `period` and `period_unit`, but it is irreversible.
|
|
3720
|
-
|
|
3721
|
-
> **NOTE:** From version 1.5.0, instance's private IP address can be specified when creating VPC network instance.
|
|
3722
|
-
|
|
3723
|
-
> **NOTE:** From version 1.5.0, instance's vswitch and private IP can be changed in the same availability zone. When they are changed, the instance will reboot to make the change take effect.
|
|
3724
|
-
|
|
3725
|
-
> **NOTE:** From version 1.7.0, setting "internet_max_bandwidth_out" larger than 0 can allocate a public IP for an instance.
|
|
3726
|
-
Setting "internet_max_bandwidth_out" to 0 can release allocated public IP for VPC instance(For Classic instnace, its public IP cannot be release once it allocated, even thougth its bandwidth out is 0).
|
|
3727
|
-
However, at present, 'PrePaid' instance cannot narrow its max bandwidth out when its 'internet_charge_type' is "PayByBandwidth".
|
|
3728
|
-
|
|
3729
|
-
> **NOTE:** From version 1.7.0, instance's type can be changed. When it is changed, the instance will reboot to make the change take effect.
|
|
3730
3818
|
"""
|
|
3731
3819
|
return pulumi.get(self, "launch_template_version")
|
|
3732
3820
|
|
|
@@ -3735,6 +3823,9 @@ class Instance(pulumi.CustomResource):
|
|
|
3735
3823
|
def maintenance_action(self) -> pulumi.Output[str]:
|
|
3736
3824
|
"""
|
|
3737
3825
|
The maintenance action. Valid values: `Stop`, `AutoRecover` and `AutoRedeploy`.
|
|
3826
|
+
* `Stop` : stops the instance.
|
|
3827
|
+
* `AutoRecover` : automatically recovers the instance.
|
|
3828
|
+
* `AutoRedeploy` : fails the instance over, which may cause damage to the data disks attached to the instance.
|
|
3738
3829
|
"""
|
|
3739
3830
|
return pulumi.get(self, "maintenance_action")
|
|
3740
3831
|
|
|
@@ -3859,6 +3950,9 @@ class Instance(pulumi.CustomResource):
|
|
|
3859
3950
|
def renewal_status(self) -> pulumi.Output[Optional[str]]:
|
|
3860
3951
|
"""
|
|
3861
3952
|
Whether to renew an ECS instance automatically or not. It is valid when `instance_charge_type` is `PrePaid`. Default to "Normal". Valid values:
|
|
3953
|
+
- `AutoRenewal`: Enable auto renewal.
|
|
3954
|
+
- `Normal`: Disable auto renewal.
|
|
3955
|
+
- `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
|
|
3862
3956
|
"""
|
|
3863
3957
|
return pulumi.get(self, "renewal_status")
|
|
3864
3958
|
|
|
@@ -3954,6 +4048,8 @@ class Instance(pulumi.CustomResource):
|
|
|
3954
4048
|
def stopped_mode(self) -> pulumi.Output[str]:
|
|
3955
4049
|
"""
|
|
3956
4050
|
The stop mode of the pay-as-you-go instance. Valid values: `StopCharging`,`KeepCharging`, `Not-applicable`. Default value: If the prerequisites required for enabling the economical mode are met, and you have enabled this mode in the ECS console, the default value is `StopCharging`. For more information, see "Enable the economical mode" in [Economical mode](https://www.alibabacloud.com/help/en/elastic-compute-service/latest/economical-mode). Otherwise, the default value is `KeepCharging`. **Note:** `Not-applicable`: Economical mode is not applicable to the instance.`
|
|
4051
|
+
* `KeepCharging`: standard mode. Billing of the instance continues after the instance is stopped, and resources are retained for the instance.
|
|
4052
|
+
* `StopCharging`: economical mode. Billing of some resources of the instance stops after the instance is stopped. When the instance is stopped, its resources such as vCPUs, memory, and public IP address are released. You may be unable to restart the instance if some types of resources are out of stock in the current region.
|
|
3957
4053
|
"""
|
|
3958
4054
|
return pulumi.get(self, "stopped_mode")
|
|
3959
4055
|
|
|
@@ -3969,7 +4065,7 @@ class Instance(pulumi.CustomResource):
|
|
|
3969
4065
|
@pulumi.getter(name="systemDiskCategory")
|
|
3970
4066
|
def system_disk_category(self) -> pulumi.Output[str]:
|
|
3971
4067
|
"""
|
|
3972
|
-
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since
|
|
4068
|
+
Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since v1.184.0.
|
|
3973
4069
|
"""
|
|
3974
4070
|
return pulumi.get(self, "system_disk_category")
|
|
3975
4071
|
|