Module Values.UsageLimitSource

Describes a usage limit object for a cluster.

Sourcetype createUsageLimitResult = {
  1. usageLimitId : String_.t option;
    (*

    The identifier of the usage limit.

    *)
  2. clusterIdentifier : String_.t option;
    (*

    The identifier of the cluster with a usage limit.

    *)
  3. featureType : UsageLimitFeatureType.t option;
    (*

    The Amazon Redshift feature to which the limit applies.

    *)
  4. limitType : UsageLimitLimitType.t option;
    (*

    The type of limit. Depending on the feature type, this can be based on a time duration or data size.

    *)
  5. amount : Long.t option;
    (*

    The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).

    *)
  6. period : UsageLimitPeriod.t option;
    (*

    The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

    *)
  7. breachAction : UsageLimitBreachAction.t option;
    (*

    The action that Amazon Redshift takes when the limit is reached. Possible values are: log - To log an event in a system table. The default is log. emit-metric - To emit CloudWatch metrics. disable - To disable the feature until the next usage period begins.

    *)
  8. tags : TagList.t option;
    (*

    A list of tag instances.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. createUsageLimitResult : createUsageLimitResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `ClusterNotFoundFault of ClusterNotFoundFault.t
  2. | `InvalidClusterStateFault of InvalidClusterStateFault.t
  3. | `InvalidUsageLimitFault of InvalidUsageLimitFault.t
  4. | `LimitExceededFault of LimitExceededFault.t
  5. | `TagLimitExceededFault of TagLimitExceededFault.t
  6. | `UnsupportedOperationFault of UnsupportedOperationFault.t
  7. | `UsageLimitAlreadyExistsFault of UsageLimitAlreadyExistsFault.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?usageLimitId:??? -> ?clusterIdentifier:??? -> ?featureType:??? -> ?limitType:??? -> ?amount:??? -> ?period:??? -> ?breachAction:??? -> ?tags:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ClusterNotFoundFault of unit | `InvalidClusterStateFault of unit | `InvalidUsageLimitFault of unit | `LimitExceededFault of unit | `TagLimitExceededFault of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationFault of unit | `UsageLimitAlreadyExistsFault of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ClusterNotFoundFault of unit | `InvalidClusterStateFault of unit | `InvalidUsageLimitFault of unit | `LimitExceededFault of unit | `TagLimitExceededFault of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationFault of unit | `UsageLimitAlreadyExistsFault of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `Long of Long.t | `String of String_.t ]) 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