// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ModifyCapacityReservationRequestMinimumLoadBalancerCapacity extends $dara.Model { /** * @remarks * The number of LCUs to reserve per hour. * * @example * 100 */ capacityUnits?: number; static names(): { [key: string]: string } { return { capacityUnits: 'CapacityUnits', }; } static types(): { [key: string]: any } { return { capacityUnits: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyCapacityReservationRequest extends $dara.Model { /** * @remarks * A client token to ensure the idempotence of the request. Generate a token from your client and make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. * * > If this parameter is not specified, the system uses the RequestId as the ClientToken. The RequestId of each API request is different. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 */ clientToken?: string; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: Sends a check request but does not reserve any resources. The system checks the request for required parameters, format, and service limits. If the check fails, an error is returned. If the check passes, the `DryRunOperation` error code is returned. * * - **false** (default): Sends a normal request. After the request passes the check, an HTTP 2xx status code is returned and the operation is performed. * * @example * false */ dryRun?: boolean; /** * @remarks * The ID of the Application Load Balancer (ALB) instance. * * This parameter is required. * * @example * alb-iv9gj3spak6fbj**** */ loadBalancerId?: string; /** * @remarks * The minimum LCU value to reserve. */ minimumLoadBalancerCapacity?: ModifyCapacityReservationRequestMinimumLoadBalancerCapacity; /** * @remarks * Specifies whether to cancel the LCU reservation. Valid values: * * - **true**: Cancels the LCU reservation. * * - **false** (default): Does not cancel the LCU reservation. You do not need to specify this parameter when creating or updating an LCU reservation. * * @example * false */ resetCapacityReservation?: boolean; static names(): { [key: string]: string } { return { clientToken: 'ClientToken', dryRun: 'DryRun', loadBalancerId: 'LoadBalancerId', minimumLoadBalancerCapacity: 'MinimumLoadBalancerCapacity', resetCapacityReservation: 'ResetCapacityReservation', }; } static types(): { [key: string]: any } { return { clientToken: 'string', dryRun: 'boolean', loadBalancerId: 'string', minimumLoadBalancerCapacity: ModifyCapacityReservationRequestMinimumLoadBalancerCapacity, resetCapacityReservation: 'boolean', }; } validate() { if(this.minimumLoadBalancerCapacity && typeof (this.minimumLoadBalancerCapacity as any).validate === 'function') { (this.minimumLoadBalancerCapacity as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }