// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class UpdateLoadBalancerAttributeRequestModificationProtectionConfig extends $dara.Model { /** * @remarks * The reason for enabling modification protection. * * The reason must be 2 to 128 characters long. It must start with a letter and can contain letters, digits, periods (.), underscores (_), and hyphens (-). * * This parameter is valid only when **Status** is set to **ConsoleProtection**. * * @example * Managed Instance */ reason?: string; /** * @remarks * The modification protection status of the Application Load Balancer instance. Valid values: * * - **NonProtection**: Disables modification protection. If you specify a value for **Reason**, the value is cleared. * * - **ConsoleProtection**: Enables modification protection in the console. If you specify a value for **Reason**, the value takes effect. * * > If you set the value to **ConsoleProtection**, you cannot modify the instance configuration in the Application Load Balancer console. However, you can still modify the instance configuration by calling API operations. * * @example * ConsoleProtection */ status?: string; static names(): { [key: string]: string } { return { reason: 'Reason', status: 'Status', }; } static types(): { [key: string]: any } { return { reason: 'string', status: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateLoadBalancerAttributeRequest extends $dara.Model { /** * @remarks * A client-generated token that is used to ensure the idempotence of the request. Make sure that the token is unique among different requests. The token can contain only ASCII characters. * * Generate a value from your client and make sure that the value is unique among different requests. The token can contain only ASCII characters. * * > If you do not specify this parameter, the system uses the **RequestId** as the **ClientToken**. The **RequestId** of each API request is unique. * * @example * 5A2CFF0E-5718-45B5-9D4D-70B3FF3898 */ clientToken?: string; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - **true**: Performs a dry run. The system checks for required parameters, the request format, and business limits. If the request fails the check, an error message is returned. If the request passes the check, the `DryRunOperation` error code is returned. No properties of the Application Load Balancer instance are modified. * * - **false** (default): Sends a normal request. After the request passes the check, a `2xx` status code is returned and the operation is performed. * * @example * true */ dryRun?: boolean; /** * @remarks * The Application Load Balancer instance ID. * * This parameter is required. * * @example * alb-o9ulmq5hgn68jk**** */ loadBalancerId?: string; /** * @remarks * The name of the Application Load Balancer instance must be 2 to 128 characters in length. It must start with a letter, a Chinese character, or a number. The name can contain numbers, periods (.), underscores (_), hyphens (-), and spaces. * * @example * alb-instance-test */ loadBalancerName?: string; /** * @remarks * The modification protection settings. */ modificationProtectionConfig?: UpdateLoadBalancerAttributeRequestModificationProtectionConfig; static names(): { [key: string]: string } { return { clientToken: 'ClientToken', dryRun: 'DryRun', loadBalancerId: 'LoadBalancerId', loadBalancerName: 'LoadBalancerName', modificationProtectionConfig: 'ModificationProtectionConfig', }; } static types(): { [key: string]: any } { return { clientToken: 'string', dryRun: 'boolean', loadBalancerId: 'string', loadBalancerName: 'string', modificationProtectionConfig: UpdateLoadBalancerAttributeRequestModificationProtectionConfig, }; } validate() { if(this.modificationProtectionConfig && typeof (this.modificationProtectionConfig as any).validate === 'function') { (this.modificationProtectionConfig as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }