import * as $dara from '@darabonba/typescript'; export declare class StopInstancesRequest extends $dara.Model { /** * @remarks * Specifies the batch operation mode. Valid values: * * * AllTogether: The batch operation is successful only after all operations are successful. If any operation fails, the batch operation is considered failed, and all operations that have been performed are undone to restore the instances to the status before the batch operation. * * SuccessFirst: allows each operation in a batch to be independently executed. If an operation fails, other operations can continue and confirm success. In this mode, successful operations are committed and failed operations are marked as failed, but the execution results of other operations are not affected. * * Default value: AllTogether. * * @example * AllTogether */ batchOptimization?: string; /** * @remarks * Specifies whether to send a precheck request. Valid values: * * * true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and instance status. If the check fails, the corresponding error message is returned. If the request passes the dry run, `DRYRUN.SUCCESS` is returned. * * > If you set `BatchOptimization` to `SuccessFirst` and `DryRun` to true, only `DRYRUN.SUCCESS` is returned, regardless of whether the request passes the dry run. * * * false: performs a dry run and performs the actual request. If the request passes the dry run, instances are stopped. * * Default value: false. * * @example * false */ dryRun?: boolean; /** * @remarks * Specifies whether to forcefully stop instances. Valid values: * * * true: forcefully stops the ECS instance. * * ** * * **Alert** Force Stop: forcefully stops the instance. A force stop is equivalent to a physical shutdown and may cause data loss if instance data has not been written to disks. * * * false: normally stops the ECS instance. * * Default value: false. * * @example * false */ forceStop?: boolean; /** * @remarks * The IDs of ECS instances. You can specify 1 to 100 instance IDs. * * This parameter is required. * * @example * i-bp67acfmxazb4p**** */ instanceId?: string[]; ownerAccount?: string; ownerId?: number; /** * @remarks * The region ID of the instance. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; /** * @remarks * Stop mode. Valid values: * * * StopCharging: economical mode. After an instance is stopped in economical mode: * * * Billing for the following resources of the instance stops: computing resources (vCPUs, memory, and GPUs), image licenses, and public bandwidth of the static public IP address (if any) that uses the pay-by-bandwidth metering method. * * Billing for the following resources of the instance continues: system disk, data disks, and public bandwidth of the elastic IP address (EIP) (if any) that uses the pay-by-bandwidth metering method. * * The instance may fail to restart due to the reclaimed computing resources or insufficient resources. Try again later or change the instance type of the instance. * * If an EIP is associated with the instance before the instance is stopped, the EIP remains unchanged after the instance is restarted. If a static public IP address is associated with the instance before the instance is stopped, the static public IP address may change, but the private IP address does not change. * * For more information, see [Economical mode](https://help.aliyun.com/document_detail/63353.html). * * ** * * **Note** If the instance itself does not support the economical shutdown mode, the API side does not intercept errors, and the instance is preferentially stopped. The following types of instances are not supported: classic network instances, local disks, and monthly instances. * * * KeepCharging: standard mode. After the instance is stopped in standard mode, you continue to be charged for the instance. If you want to change the operating system, re-initialize disks, change the instance type, or modify the private IP address, we recommend selecting this mode to avoid startup failures. * * Default value: If the conditions for [enabling the economical mode for an instance in a VPC](~~63353#default~~) are met and you have enabled this mode in the ECS console, the default value is `StopCharging`. Otherwise, the default value is `KeepCharging`. * * @example * KeepCharging */ stoppedMode?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); }