Smaws_Client_Evs.CreateEnvironmentHostCreates an ESX host and adds it to an Amazon EVS environment.
This action can only be used after the Amazon EVS environment is deployed.
You can use the dedicatedHostId parameter to specify an Amazon EC2 Dedicated Host for ESX host creation.
You can use the placementGroupId parameter to specify a cluster or partition placement group to launch EC2 instances into.
If you don't specify an ESX version when adding hosts using CreateEnvironmentHost action, Amazon EVS automatically uses the default ESX version for your environment's VCF version. To find the available ESX versions for a particular VCF version, use the GetVersions action.
You cannot use the dedicatedHostId and placementGroupId parameters together in the same CreateEnvironmentHost action. This results in a ValidationException response.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ThrottlingException of Types.throttling_exception
| `ValidationException of Types.validation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_environment_host_request ->
(Types.create_environment_host_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `ThrottlingException of Types.throttling_exception
| `ValidationException of Types.validation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_environment_host_request ->
(Types.create_environment_host_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ThrottlingException of Types.throttling_exception
| `ValidationException of Types.validation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result