Smaws_Client_ElasticLoadBalancingv2.CreateRuleCreates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
Each rule consists of a priority, one or more actions, one or more conditions, and up to two optional transforms. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `IncompatibleProtocolsException of Types.incompatible_protocols_exception
| `InvalidConfigurationRequestException of
Types.invalid_configuration_request_exception
| `InvalidLoadBalancerActionException of
Types.invalid_load_balancer_action_exception
| `ListenerNotFoundException of Types.listener_not_found_exception
| `PriorityInUseException of Types.priority_in_use_exception
| `TargetGroupAssociationLimitException of
Types.target_group_association_limit_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyActionsException of Types.too_many_actions_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyRulesException of Types.too_many_rules_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `TooManyTargetGroupsException of Types.too_many_target_groups_exception
| `TooManyTargetsException of Types.too_many_targets_exception
| `TooManyUniqueTargetGroupsPerLoadBalancerException of
Types.too_many_unique_target_groups_per_load_balancer_exception
| `UnsupportedProtocolException of Types.unsupported_protocol_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_rule_input ->
(Types.create_rule_output,
[> Smaws_Lib.Protocols.AwsQuery.error
| `IncompatibleProtocolsException of Types.incompatible_protocols_exception
| `InvalidConfigurationRequestException of
Types.invalid_configuration_request_exception
| `InvalidLoadBalancerActionException of
Types.invalid_load_balancer_action_exception
| `ListenerNotFoundException of Types.listener_not_found_exception
| `PriorityInUseException of Types.priority_in_use_exception
| `TargetGroupAssociationLimitException of
Types.target_group_association_limit_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyActionsException of Types.too_many_actions_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyRulesException of Types.too_many_rules_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `TooManyTargetGroupsException of Types.too_many_target_groups_exception
| `TooManyTargetsException of Types.too_many_targets_exception
| `TooManyUniqueTargetGroupsPerLoadBalancerException of
Types.too_many_unique_target_groups_per_load_balancer_exception
| `UnsupportedProtocolException of Types.unsupported_protocol_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_rule_input ->
(Types.create_rule_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `IncompatibleProtocolsException of Types.incompatible_protocols_exception
| `InvalidConfigurationRequestException of
Types.invalid_configuration_request_exception
| `InvalidLoadBalancerActionException of
Types.invalid_load_balancer_action_exception
| `ListenerNotFoundException of Types.listener_not_found_exception
| `PriorityInUseException of Types.priority_in_use_exception
| `TargetGroupAssociationLimitException of
Types.target_group_association_limit_exception
| `TargetGroupNotFoundException of Types.target_group_not_found_exception
| `TooManyActionsException of Types.too_many_actions_exception
| `TooManyRegistrationsForTargetIdException of
Types.too_many_registrations_for_target_id_exception
| `TooManyRulesException of Types.too_many_rules_exception
| `TooManyTagsException of Types.too_many_tags_exception
| `TooManyTargetGroupsException of Types.too_many_target_groups_exception
| `TooManyTargetsException of Types.too_many_targets_exception
| `TooManyUniqueTargetGroupsPerLoadBalancerException of
Types.too_many_unique_target_groups_per_load_balancer_exception
| `UnsupportedProtocolException of Types.unsupported_protocol_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result