WaitingRoomProps
Properties for defining a WaitingRoom.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-waitingroom
Initializer
import { WaitingRoomProps } from '@alicloud/ros-cdk-esa'
const waitingRoomProps: WaitingRoomProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
cookieName | string | @alicloud/ros-cdk-core.IResolvable | Property cookieName: The name of the custom cookie. |
hostNameAndPath | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | HostNameAndPathProperty[] | Property hostNameAndPath: The hostname and path. |
newUsersPerMinute | number | @alicloud/ros-cdk-core.IResolvable | Property newUsersPerMinute: The maximum number of new users per minute. |
queuingMethod | string | @alicloud/ros-cdk-core.IResolvable | Property queuingMethod: The queuing method. |
queuingStatusCode | number | @alicloud/ros-cdk-core.IResolvable | Property queuingStatusCode: Waiting room status code. |
sessionDuration | number | @alicloud/ros-cdk-core.IResolvable | Property sessionDuration: The maximum duration for which a session remains valid after a user leaves the origin. |
siteId | number | @alicloud/ros-cdk-core.IResolvable | Property siteId: The site ID. |
status | string | @alicloud/ros-cdk-core.IResolvable | Property status: Waiting room enabled status. |
totalActiveUsers | string | @alicloud/ros-cdk-core.IResolvable | Property totalActiveUsers: The maximum number of active users. |
waitingRoomName | string | @alicloud/ros-cdk-core.IResolvable | Property waitingRoomName: The name of the waiting room. |
waitingRoomType | string | @alicloud/ros-cdk-core.IResolvable | Property waitingRoomType: The type of the waiting room, support: - default: Indicates the default type. |
customPageHtml | string | @alicloud/ros-cdk-core.IResolvable | Property customPageHtml: User-defined waiting room page content, when the waiting room type is custom type, you need to enter. |
description | string | @alicloud/ros-cdk-core.IResolvable | Property description: Waiting room description. |
disableSessionRenewalEnable | string | @alicloud/ros-cdk-core.IResolvable | Property disableSessionRenewalEnable: Specifies whether to disable session renewal. |
jsonResponseEnable | string | @alicloud/ros-cdk-core.IResolvable | Property jsonResponseEnable: The JSON response. |
language | string | @alicloud/ros-cdk-core.IResolvable | Property language: The language of the waiting room page. |
queueAllEnable | string | @alicloud/ros-cdk-core.IResolvable | Property queueAllEnable: Specifies whether to queue all requests. |
cookieNameRequired
public readonly cookieName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property cookieName: The name of the custom cookie.
hostNameAndPathRequired
public readonly hostNameAndPath: IResolvable | IResolvable | HostNameAndPathProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | HostNameAndPathProperty[]
Property hostNameAndPath: The hostname and path.
newUsersPerMinuteRequired
public readonly newUsersPerMinute: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property newUsersPerMinute: The maximum number of new users per minute.
queuingMethodRequired
public readonly queuingMethod: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property queuingMethod: The queuing method.
Value: - random: Users gain access to the origin randomly, regardless of the arrival time. - fifo: Users gain access to the origin in order of arrival. - Passthrough: Users pass through the waiting room and go straight to the origin. - Reject-all: Users are blocked from reaching the origin.
queuingStatusCodeRequired
public readonly queuingStatusCode: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property queuingStatusCode: Waiting room status code.
Value: - 200 - 202 - 429.
sessionDurationRequired
public readonly sessionDuration: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property sessionDuration: The maximum duration for which a session remains valid after a user leaves the origin.
Unit: minutes.
siteIdRequired
public readonly siteId: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property siteId: The site ID.
statusRequired
public readonly status: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property status: Waiting room enabled status.
Value: - 'on': Enable waiting room - 'off': Disabled waiting room
totalActiveUsersRequired
public readonly totalActiveUsers: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property totalActiveUsers: The maximum number of active users.
waitingRoomNameRequired
public readonly waitingRoomName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property waitingRoomName: The name of the waiting room.
waitingRoomTypeRequired
public readonly waitingRoomType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property waitingRoomType: The type of the waiting room, support: - default: Indicates the default type.
custom: indicates a custom type.
customPageHtmlOptional
public readonly customPageHtml: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property customPageHtml: User-defined waiting room page content, when the waiting room type is custom type, you need to enter.
The incoming content needs to be base64 encoded.
descriptionOptional
public readonly description: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property description: Waiting room description.
disableSessionRenewalEnableOptional
public readonly disableSessionRenewalEnable: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property disableSessionRenewalEnable: Specifies whether to disable session renewal.
Value: - on: open. - off: closed.
jsonResponseEnableOptional
public readonly jsonResponseEnable: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property jsonResponseEnable: The JSON response.
If the accept request header contains "application\/json", JSON data is returned. Value: - on: open. - off: closed.
languageOptional
public readonly language: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property language: The language of the waiting room page.
When the waiting room type is the default type, it needs to be passed in. The following types are supported: - enus: English. - zhcn: Simplified Chinese. - zhhk: Traditional Chinese.
queueAllEnableOptional
public readonly queueAllEnable: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property queueAllEnable: Specifies whether to queue all requests.
Value: - on: open. - off: closed.