// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListListenersRequestTag extends $dara.Model { /** * @remarks * The tag key. The tag key can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. * * @example * env */ key?: string; /** * @remarks * The tag value. The tag value can be up to 128 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https://. * * @example * product */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListListenersRequest extends $dara.Model { /** * @remarks * The instance IDs. A maximum of 20 instance IDs are supported. */ listenerIds?: string[]; /** * @remarks * The listener protocol that you want to use as a filter. Valid values: * * - **HTTP**: The protocol type is HTTP. * - **HTTPS**: The protocol type is HTTPS. * - **QUIC**: The protocol type is QUIC. * * @example * HTTP */ listenerProtocol?: string; /** * @remarks * The Application Load Balancer (ALB) load balancing instance ID. A maximum of 20 instance IDs are supported. */ loadBalancerIds?: string[]; /** * @remarks * The maximum number of data records to read in this request. This parameter is optional. Valid values: **1** to **100**. If this parameter is not specified, the default value is **20**. * * @example * 50 */ maxResults?: number; /** * @remarks * The pagination token that is used in the next request to retrieve a new page of results. Valid values: * - You do not need to specify this parameter for the first request or if no next query exists. * - If a next query exists, set the value to the **NextToken** value returned in the previous API call. * * @example * FFmyTO70tTpLG6I4FmYAXGKPd**** */ nextToken?: string; /** * @remarks * The tags. */ tag?: ListListenersRequestTag[]; static names(): { [key: string]: string } { return { listenerIds: 'ListenerIds', listenerProtocol: 'ListenerProtocol', loadBalancerIds: 'LoadBalancerIds', maxResults: 'MaxResults', nextToken: 'NextToken', tag: 'Tag', }; } static types(): { [key: string]: any } { return { listenerIds: { 'type': 'array', 'itemType': 'string' }, listenerProtocol: 'string', loadBalancerIds: { 'type': 'array', 'itemType': 'string' }, maxResults: 'number', nextToken: 'string', tag: { 'type': 'array', 'itemType': ListListenersRequestTag }, }; } validate() { if(Array.isArray(this.listenerIds)) { $dara.Model.validateArray(this.listenerIds); } if(Array.isArray(this.loadBalancerIds)) { $dara.Model.validateArray(this.loadBalancerIds); } if(Array.isArray(this.tag)) { $dara.Model.validateArray(this.tag); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }