DedicatedHostProps
Properties for defining a DedicatedHost
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-dedicatedhost
Initializer
import ros_cdk_ecs
ros_cdk_ecs.DedicatedHostProps(
dedicated_host_type: typing.Union[str, IResolvable],
action_on_maintenance: typing.Union[str, IResolvable] = None,
auto_placement: typing.Union[str, IResolvable] = None,
auto_release_time: typing.Union[str, IResolvable] = None,
auto_renew: typing.Union[str, IResolvable] = None,
auto_renew_period: typing.Union[typing.Union[int, float], IResolvable] = None,
charge_type: typing.Union[str, IResolvable] = None,
dedicated_host_name: typing.Union[str, IResolvable] = None,
description: typing.Union[str, IResolvable] = None,
network_attributes_slb_udp_timeout: typing.Union[typing.Union[int, float], IResolvable] = None,
network_attributes_udp_timeout: typing.Union[typing.Union[int, float], IResolvable] = None,
period: typing.Union[typing.Union[int, float], IResolvable] = None,
period_unit: typing.Union[str, IResolvable] = None,
quantity: typing.Union[typing.Union[int, float], IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
zone_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
dedicated_host_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property dedicatedHostType: The instance type of host. |
action_on_maintenance |
typing.Union[str, ros_cdk_core.IResolvable] |
Property actionOnMaintenance: The policy used to migrate the instances from the dedicated hostwhen the dedicated host fails or needs to be repaired online.Valid values: Migrate: Instances are migrated to another physical server and restarted.If the dedicated host is attached with disks that are not local disks, the default value is Migrate.Stop: Instances on the dedicated host are stopped. If the dedicated host cannot be repaired,the instances are migrated to another physical server and restarted.If the dedicated host is attached with local disks, the default value is Stop. |
auto_placement |
typing.Union[str, ros_cdk_core.IResolvable] |
Property autoPlacement: Specifies whether the dedicated host is added to the resource pool for automatic deployment. |
auto_release_time |
typing.Union[str, ros_cdk_core.IResolvable] |
Property autoReleaseTime: Auto release time for created host, Follow ISO8601 standard using UTC time. |
auto_renew |
typing.Union[str, ros_cdk_core.IResolvable] |
Property autoRenew: Whether renew the fee automatically? |
auto_renew_period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property autoRenewPeriod: The time period of auto renew. |
charge_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property chargeType: Instance Charge type, allowed value: Prepaid and Postpaid. |
dedicated_host_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property dedicatedHostName: The name of the dedicated host, [2, 128] English or Chinese characters. |
description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property description: The description of host. |
network_attributes_slb_udp_timeout |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property networkAttributesSlbUdpTimeout: The duration of UDP timeout for sessions between Server Load Balancer (SLB) and the dedicated host. |
network_attributes_udp_timeout |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property networkAttributesUdpTimeout: The duration of UDP timeout for sessions between users and instances on the dedicated host. |
period |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property period: Prepaid time period. |
period_unit |
typing.Union[str, ros_cdk_core.IResolvable] |
Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year. |
quantity |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property quantity: The number of dedicated hosts that you want to create. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: Resource group id. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to DedicatedHost. |
zone_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property zoneId: The zone to create the host. |
dedicated_host_type
Required
dedicated_host_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dedicatedHostType: The instance type of host.
action_on_maintenance
Optional
action_on_maintenance: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property actionOnMaintenance: The policy used to migrate the instances from the dedicated hostwhen the dedicated host fails or needs to be repaired online.Valid values: Migrate: Instances are migrated to another physical server and restarted.If the dedicated host is attached with disks that are not local disks, the default value is Migrate.Stop: Instances on the dedicated host are stopped. If the dedicated host cannot be repaired,the instances are migrated to another physical server and restarted.If the dedicated host is attached with local disks, the default value is Stop.
auto_placement
Optional
auto_placement: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoPlacement: Specifies whether the dedicated host is added to the resource pool for automatic deployment.
If you do not specify the DedicatedHostId parameter when you create an instance on a dedicated host, Alibaba Cloud automatically selects a dedicated host from the resource pool to host the instance. For more information, see Automatic deployment. Valid values:on: The dedicated host is added to the resource pool for automatic deployment.off: The dedicated host is not added to the resource pool for automatic deployment.Default value: on.Note When you create a dedicated host: If you do not specify this parameter, the dedicated host is added to the automatic deployment resource pool.If you do not want to add the dedicated host to the automatic deployment resource pool, set the value to off.
auto_release_time
Optional
auto_release_time: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoReleaseTime: Auto release time for created host, Follow ISO8601 standard using UTC time.
format is 'yyyy-MM-ddTHH:mm:ssZ'. Not bigger than 3 years from this day onwards
auto_renew
Optional
auto_renew: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property autoRenew: Whether renew the fee automatically?
When the parameter InstanceChargeType is PrePaid, it will take effect. Range of value:True: automatic renewal.False: no automatic renewal. Default value is False.
auto_renew_period
Optional
auto_renew_period: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property autoRenewPeriod: The time period of auto renew.
When the parameter InstanceChargeType is PrePaid, it will take effect.It could be 1, 2, 3, 6, 12, 24, 36, 48, 60. Default value is 1.
charge_type
Optional
charge_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property chargeType: Instance Charge type, allowed value: Prepaid and Postpaid.
If specified Prepaid, please ensure you have sufficient balance in your account. Or instance creation will be failure. Default value is Postpaid.
dedicated_host_name
Optional
dedicated_host_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property dedicatedHostName: The name of the dedicated host, [2, 128] English or Chinese characters.
It must begin with an uppercase/lowercase letter or a Chinese character, and may contain numbers, '_' or '-'. It cannot begin with http:// or https://.
description
Optional
description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: The description of host.
network_attributes_slb_udp_timeout
Optional
network_attributes_slb_udp_timeout: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property networkAttributesSlbUdpTimeout: The duration of UDP timeout for sessions between Server Load Balancer (SLB) and the dedicated host.
Unit: seconds. Valid values: 15 to 310.
network_attributes_udp_timeout
Optional
network_attributes_udp_timeout: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property networkAttributesUdpTimeout: The duration of UDP timeout for sessions between users and instances on the dedicated host.
Unit: seconds. Valid values: 15 to 310.
period
Optional
period: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property period: Prepaid time period.
Unit is month, it could be from 1 to 9 or 12, 24, 36, 48, 60. Default value is 1.
period_unit
Optional
period_unit: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property periodUnit: Unit of prepaid time period, it could be Week\/Month\/Year.
Default value is Month.
quantity
Optional
quantity: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property quantity: The number of dedicated hosts that you want to create.
Valid values: 1 to 100.Default value: 1.
resource_group_id
Optional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[TagsProperty]
Property tags: Tags to attach to DedicatedHost.
Max support 20 tags to add during create DedicatedHost. Each tag with two properties Key and Value, and Key is required.
zone_id
Optional
zone_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property zoneId: The zone to create the host.