Modify Hosts
ec2_modify_hosts(
HostId,
AutoPlacement = NULL,
HostRecovery = NULL,
InstanceType = NULL,
InstanceFamily = NULL,
simplify = TRUE,
others = list(),
print_on_error = aws_get_print_on_error(),
retry_time = aws_get_retry_time(),
network_timeout = aws_get_network_timeout(),
region = aws_get_region()
)
List. The IDs of the Dedicated Hosts to modify.
Character. Specify whether to enable or disable auto-placement.[optional]
Character. Indicates whether to enable or disable host recovery for the Dedicated Host.[optional]
Character. Specifies the instance type to be supported by the Dedicated Host.[optional]
Character. Specifies the instance family to be supported by the Dedicated Host.[optional]
Logical. Whether to simplify the result and handle nextToken
in the response[optional]
Named list. The parameters that are not included in the function parameters and need to be added into the request[optional]
Logical. Whether to show an error message when a network error occurs.
Integer. Number of retries for a REST request when encounter the
network issue. If the request has been sent retry_time
times but still not
be able to get the response, an error will be thrown.
Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms.
Character. The region of the AWS service.
A list object or a character vector
The IDs of the Dedicated Hosts to modify.
Specify whether to enable or disable auto-placement.
Indicates whether to enable or disable host recovery for the Dedicated Host. For more information, see Host recovery in the Amazon EC2 User Guide.
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.
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.