Smaws_Client_Lightsail.CreateLoadBalancerCreates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 10 load balancers per AWS Region in your account.
When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the UpdateLoadBalancerAttribute operation.
The create load balancer operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccountSetupInProgressException of
Types.account_setup_in_progress_exception
| `InvalidInputException of Types.invalid_input_exception
| `NotFoundException of Types.not_found_exception
| `OperationFailureException of Types.operation_failure_exception
| `RegionSetupInProgressException of Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_load_balancer_request ->
(Types.create_load_balancer_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccountSetupInProgressException of
Types.account_setup_in_progress_exception
| `InvalidInputException of Types.invalid_input_exception
| `NotFoundException of Types.not_found_exception
| `OperationFailureException of Types.operation_failure_exception
| `RegionSetupInProgressException of
Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_load_balancer_request ->
(Types.create_load_balancer_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccountSetupInProgressException of
Types.account_setup_in_progress_exception
| `InvalidInputException of Types.invalid_input_exception
| `NotFoundException of Types.not_found_exception
| `OperationFailureException of Types.operation_failure_exception
| `RegionSetupInProgressException of
Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result