Skip to content

ModifyHostsRequest

Source code in docs_src/capo_ec2/types/modify_hosts_request.py
class ModifyHostsRequest(TypedDict, closed=True):
    host_recovery: NotRequired["capo_ec2.types.host_recovery.HostRecovery"]
    """<p>Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html">Host recovery</a> in the <i>Amazon EC2 User Guide</i>.</p>"""
    instance_type: NotRequired["capo_ec2.types.string.String"]
    """<p>Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.</p> <p>If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify <b>InstanceFamily</b> instead. You cannot specify <b>InstanceType</b> and <b>InstanceFamily</b> in the same request.</p>"""
    instance_family: NotRequired["capo_ec2.types.string.String"]
    """<p>Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.</p> <p>If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify <b>InstanceType</b> instead. You cannot specify <b>InstanceFamily</b> and <b>InstanceType</b> in the same request.</p>"""
    host_maintenance: NotRequired["capo_ec2.types.host_maintenance.HostMaintenance"]
    """<p>Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html">Host maintenance</a> in the <i>Amazon EC2 User Guide</i>.</p>"""
    host_ids: NotRequired["capo_ec2.types.request_host_id_list.RequestHostIdList"]
    """<p>The IDs of the Dedicated Hosts to modify.</p>"""
    auto_placement: NotRequired["capo_ec2.types.auto_placement.AutoPlacement"]
    """<p>Specify whether to enable or disable auto-placement.</p>"""

auto_placement instance-attribute

auto_placement: NotRequired[AutoPlacement]

Specify whether to enable or disable auto-placement.

host_ids instance-attribute

host_ids: NotRequired[RequestHostIdList]

The IDs of the Dedicated Hosts to modify.

host_maintenance instance-attribute

host_maintenance: NotRequired[HostMaintenance]

Indicates whether to enable or disable host maintenance for the Dedicated Host. For more information, see Host maintenance in the Amazon EC2 User Guide.

host_recovery instance-attribute

host_recovery: NotRequired[HostRecovery]

Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.

instance_family instance-attribute

instance_family: NotRequired[String]

Specifies the instance family to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support multiple instance types within its current instance family.

If you want to modify a Dedicated Host to support a specific instance type only, omit this parameter and specify InstanceType instead. You cannot specify InstanceFamily and InstanceType in the same request.

instance_type instance-attribute

instance_type: NotRequired[String]

Specifies the instance type to be supported by the Dedicated Host. Specify this parameter to modify a Dedicated Host to support only a specific instance type.

If you want to modify a Dedicated Host to support multiple instance types in its current instance family, omit this parameter and specify InstanceFamily instead. You cannot specify InstanceType and InstanceFamily in the same request.