Module Values.CreateLinkRoutingRuleRequestSource

Creates a routing rule for a link. Routing rules use priority-based evaluation where lower priority numbers are evaluated first. Each rule specifies conditions that must all match for the rule to apply.

Sourcetype nonrec t = {
  1. clientToken : String_.t;
    (*

    Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value. If you don't provide this value, then Amazon Web Services generates a random one for you. If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

    *)
  2. gatewayId : GatewayId.t;
    (*

    The unique identifier of the gateway.

    *)
  3. linkId : LinkId.t;
    (*

    The unique identifier of the link.

    *)
  4. priority : RulePriority.t;
    (*

    The priority of the routing rule. Lower numbers are evaluated first. Valid values are 1 to 1000. Priority must be unique among non-deleted rules within a link.

    *)
  5. conditions : RuleCondition.t;
    (*

    The conditions for the routing rule. All specified fields must match for the rule to apply. At least one condition field must be set.

    *)
  6. tags : TagsMap.t option;
    (*

    A map of the key-value pairs of the tag or tags to assign to the resource.

    *)
}
Sourceval context_ : string
Sourceval make : ?tags:??? -> clientToken:String_.t -> gatewayId:GatewayId.t -> linkId:LinkId.t -> priority:RulePriority.t -> conditions:RuleCondition.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of RulePriority.t | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of String_.t | `Structure of (string * [> `String of RuleConditionHostHeaderString.t | `Structure of (string * [> `String of QueryStringKeyValuePairKeyString.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t