Module Values_1.DBClusterCapacityInfoSource

Set the capacity of an Aurora Serverless v1 DB cluster to a specific value. Aurora Serverless v1 scales seamlessly based on the workload on the DB cluster. In some cases, the capacity might not scale fast enough to meet a sudden change in workload, such as a large number of new transactions. Call ModifyCurrentDBClusterCapacity to set the capacity explicitly. After this call sets the DB cluster capacity, Aurora Serverless v1 can automatically scale the DB cluster based on the cooldown period for scaling up and the cooldown period for scaling down. For more information about Aurora Serverless v1, see Using Amazon Aurora Serverless v1 in the Amazon Aurora User Guide. If you call ModifyCurrentDBClusterCapacity with the default TimeoutAction, connections that prevent Aurora Serverless v1 from finding a scaling point might be dropped. For more information about scaling points, see Autoscaling for Aurora Serverless v1 in the Amazon Aurora User Guide. This operation only applies to Aurora Serverless v1 DB clusters.

Sourcetype modifyCurrentDBClusterCapacityResult = {
  1. dBClusterIdentifier : Values_0.String_.t option;
    (*

    A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

    *)
  2. pendingCapacity : Values_0.IntegerOptional.t option;
    (*

    A value that specifies the capacity that the DB cluster scales to next.

    *)
  3. currentCapacity : Values_0.IntegerOptional.t option;
    (*

    The current capacity of the DB cluster.

    *)
  4. secondsBeforeTimeout : Values_0.IntegerOptional.t option;
    (*

    The number of seconds before a call to ModifyCurrentDBClusterCapacity times out.

    *)
  5. timeoutAction : Values_0.String_.t option;
    (*

    The timeout action of a call to ModifyCurrentDBClusterCapacity, either ForceApplyCapacityChange or RollbackCapacityChange.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. modifyCurrentDBClusterCapacityResult : modifyCurrentDBClusterCapacityResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `DBClusterNotFoundFault of Values_0.DBClusterNotFoundFault.t
  2. | `InvalidDBClusterCapacityFault of Values_0.InvalidDBClusterCapacityFault.t
  3. | `InvalidDBClusterStateFault of Values_0.InvalidDBClusterStateFault.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?dBClusterIdentifier:??? -> ?pendingCapacity:??? -> ?currentCapacity:??? -> ?secondsBeforeTimeout:??? -> ?timeoutAction:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `DBClusterNotFoundFault of unit | `InvalidDBClusterCapacityFault of unit | `InvalidDBClusterStateFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `DBClusterNotFoundFault of unit | `InvalidDBClusterCapacityFault of unit | `InvalidDBClusterStateFault of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Integer of Values_0.IntegerOptional.t | `String of Values_0.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