WaitingRoom
- Implements: IWaitingRoom
This class encapsulates and extends the ROS resource type ALIYUN::ESA::WaitingRoom.
Initializers
import com.aliyun.ros.cdk.esa.WaitingRoom;
WaitingRoom.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.cookieName(java.lang.String)
.cookieName(IResolvable)
.hostNameAndPath(IResolvable)
.hostNameAndPath(java.util.List<IResolvable)
.hostNameAndPath(HostNameAndPathProperty>)
.newUsersPerMinute(java.lang.Number)
.newUsersPerMinute(IResolvable)
.queuingMethod(java.lang.String)
.queuingMethod(IResolvable)
.queuingStatusCode(java.lang.Number)
.queuingStatusCode(IResolvable)
.sessionDuration(java.lang.Number)
.sessionDuration(IResolvable)
.siteId(java.lang.Number)
.siteId(IResolvable)
.status(java.lang.String)
.status(IResolvable)
.totalActiveUsers(java.lang.String)
.totalActiveUsers(IResolvable)
.waitingRoomName(java.lang.String)
.waitingRoomName(IResolvable)
.waitingRoomType(java.lang.String)
.waitingRoomType(IResolvable)
// .customPageHtml(java.lang.String)
// .customPageHtml(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .disableSessionRenewalEnable(java.lang.String)
// .disableSessionRenewalEnable(IResolvable)
// .jsonResponseEnable(java.lang.String)
// .jsonResponseEnable(IResolvable)
// .language(java.lang.String)
// .language(IResolvable)
// .queueAllEnable(java.lang.String)
// .queueAllEnable(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope | com.aliyun.ros.cdk.core.Construct | No description. |
id | java.lang.String | No description. |
enableResourcePropertyConstraint | java.lang.Boolean | No description. |
cookieName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property cookieName: The name of the custom cookie. |
hostNameAndPath | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property hostNameAndPath: The hostname and path. |
newUsersPerMinute | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property newUsersPerMinute: The maximum number of new users per minute. |
queuingMethod | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queuingMethod: The queuing method. |
queuingStatusCode | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property queuingStatusCode: Waiting room status code. |
sessionDuration | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property sessionDuration: The maximum duration for which a session remains valid after a user leaves the origin. |
siteId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property siteId: The site ID. |
status | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property status: Waiting room enabled status. |
totalActiveUsers | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property totalActiveUsers: The maximum number of active users. |
waitingRoomName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property waitingRoomName: The name of the waiting room. |
waitingRoomType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property waitingRoomType: The type of the waiting room, support: - default: Indicates the default type. |
customPageHtml | java.lang.String OR com.aliyun.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 | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: Waiting room description. |
disableSessionRenewalEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property disableSessionRenewalEnable: Specifies whether to disable session renewal. |
jsonResponseEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property jsonResponseEnable: The JSON response. |
language | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property language: The language of the waiting room page. |
queueAllEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queueAllEnable: Specifies whether to queue all requests. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
cookieNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property cookieName: The name of the custom cookie.
hostNameAndPathRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
HostNameAndPathProperty>
Property hostNameAndPath: The hostname and path.
newUsersPerMinuteRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property newUsersPerMinute: The maximum number of new users per minute.
queuingMethodRequired
- Type: java.lang.String OR com.aliyun.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
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property queuingStatusCode: Waiting room status code.
Value:
200202429.
sessionDurationRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property sessionDuration: The maximum duration for which a session remains valid after a user leaves the origin.
Unit: minutes.
siteIdRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property siteId: The site ID.
statusRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property status: Waiting room enabled status.
Value:
- 'on': Enable waiting room
- 'off': Disabled waiting room
totalActiveUsersRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property totalActiveUsers: The maximum number of active users.
waitingRoomNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property waitingRoomName: The name of the waiting room.
waitingRoomTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property waitingRoomType: The type of the waiting room, support: - default: Indicates the default type.
custom: indicates a custom type.
customPageHtmlOptional
- Type: java.lang.String OR com.aliyun.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
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Waiting room description.
disableSessionRenewalEnableOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property disableSessionRenewalEnable: Specifies whether to disable session renewal.
Value:
on: open.off: closed.
jsonResponseEnableOptional
- Type: java.lang.String OR com.aliyun.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
- Type: java.lang.String OR com.aliyun.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
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property queueAllEnable: Specifies whether to queue all requests.
Value:
on: open.off: closed.
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.esa.WaitingRoom;
WaitingRoom.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node | com.aliyun.ros.cdk.core.ConstructNode | The construct tree node associated with this construct. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
ref | java.lang.String | No description. |
stack | com.aliyun.ros.cdk.core.Stack | The stack in which this resource is defined. |
resource | com.aliyun.ros.cdk.core.RosResource | No description. |
attrCookieName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CookieName: Custom Cookie name. |
attrCustomPageHtml | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CustomPageHtml: User-defined waiting room page content, when the waiting room type is custom type, you need to enter. |
attrDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Description: Waiting room description. |
attrDisableSessionRenewalEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DisableSessionRenewalEnable: Disable session renewal. |
attrHostNameAndPath | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute HostNameAndPath: Host name and path. |
attrJsonResponseEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute JsonResponseEnable: The JSON response. |
attrLanguage | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Language: The language of the waiting room page. |
attrNewUsersPerMinute | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute NewUsersPerMinute: Number of new users per minute. |
attrQueueAllEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute QueueAllEnable: All in line. |
attrQueuingMethod | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute QueuingMethod: Way of queuing. |
attrQueuingStatusCode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute QueuingStatusCode: Waiting room status code. |
attrSessionDuration | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SessionDuration: Session duration in minutes. |
attrTotalActiveUsers | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TotalActiveUsers: Total number of active users. |
attrWaitingRoomId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute WaitingRoomId: The waiting room ID. |
attrWaitingRoomName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute WaitingRoomName: The name of the waiting room. |
attrWaitingRoomType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute WaitingRoomType: Waiting room type, support:. |
props | WaitingRoomProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrCookieNameRequired
public java.lang.Object getAttrCookieName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CookieName: Custom Cookie name.
attrCustomPageHtmlRequired
public java.lang.Object getAttrCustomPageHtml();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute 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.
attrDescriptionRequired
public java.lang.Object getAttrDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Description: Waiting room description.
attrDisableSessionRenewalEnableRequired
public java.lang.Object getAttrDisableSessionRenewalEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DisableSessionRenewalEnable: Disable session renewal.
attrHostNameAndPathRequired
public java.lang.Object getAttrHostNameAndPath();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute HostNameAndPath: Host name and path.
attrJsonResponseEnableRequired
public java.lang.Object getAttrJsonResponseEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute JsonResponseEnable: The JSON response.
If the accept request header contains "application/json", JSON data is returned.
attrLanguageRequired
public java.lang.Object getAttrLanguage();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Language: The language of the waiting room page.
When the waiting room type is the default type, it needs to be passed in.
attrNewUsersPerMinuteRequired
public java.lang.Object getAttrNewUsersPerMinute();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute NewUsersPerMinute: Number of new users per minute.
attrQueueAllEnableRequired
public java.lang.Object getAttrQueueAllEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute QueueAllEnable: All in line.
attrQueuingMethodRequired
public java.lang.Object getAttrQueuingMethod();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute QueuingMethod: Way of queuing.
attrQueuingStatusCodeRequired
public java.lang.Object getAttrQueuingStatusCode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute QueuingStatusCode: Waiting room status code.
attrSessionDurationRequired
public java.lang.Object getAttrSessionDuration();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SessionDuration: Session duration in minutes.
attrTotalActiveUsersRequired
public java.lang.Object getAttrTotalActiveUsers();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TotalActiveUsers: Total number of active users.
attrWaitingRoomIdRequired
public java.lang.Object getAttrWaitingRoomId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute WaitingRoomId: The waiting room ID.
attrWaitingRoomNameRequired
public java.lang.Object getAttrWaitingRoomName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute WaitingRoomName: The name of the waiting room.
attrWaitingRoomTypeRequired
public java.lang.Object getAttrWaitingRoomType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute WaitingRoomType: Waiting room type, support:.
propsRequired
public WaitingRoomProps getProps();
- Type: WaitingRoomProps