WaitingRoomEvent

class WaitingRoomEvent : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWaitingRoomEvent = new cloudflare.WaitingRoomEvent("example_waiting_room_event", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
waitingRoomId: "699d98642c564d2e855e9661899b7252",
eventEndTime: "2021-09-28T17:00:00.000Z",
eventStartTime: "2021-09-28T15:30:00.000Z",
name: "production_webinar_event",
customPageHtml: "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}",
description: "Production event - DO NOT MODIFY",
disableSessionRenewal: true,
newUsersPerMinute: 200,
prequeueStartTime: "2021-09-28T15:00:00.000Z",
queueingMethod: "random",
sessionDuration: 1,
shuffleAtEventStart: true,
suspended: true,
totalActiveUsers: 200,
turnstileAction: "log",
turnstileMode: "off",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_waiting_room_event = cloudflare.WaitingRoomEvent("example_waiting_room_event",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
waiting_room_id="699d98642c564d2e855e9661899b7252",
event_end_time="2021-09-28T17:00:00.000Z",
event_start_time="2021-09-28T15:30:00.000Z",
name="production_webinar_event",
custom_page_html="{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}",
description="Production event - DO NOT MODIFY",
disable_session_renewal=True,
new_users_per_minute=200,
prequeue_start_time="2021-09-28T15:00:00.000Z",
queueing_method="random",
session_duration=1,
shuffle_at_event_start=True,
suspended=True,
total_active_users=200,
turnstile_action="log",
turnstile_mode="off")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWaitingRoomEvent = new Cloudflare.WaitingRoomEvent("example_waiting_room_event", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
WaitingRoomId = "699d98642c564d2e855e9661899b7252",
EventEndTime = "2021-09-28T17:00:00.000Z",
EventStartTime = "2021-09-28T15:30:00.000Z",
Name = "production_webinar_event",
CustomPageHtml = "{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}",
Description = "Production event - DO NOT MODIFY",
DisableSessionRenewal = true,
NewUsersPerMinute = 200,
PrequeueStartTime = "2021-09-28T15:00:00.000Z",
QueueingMethod = "random",
SessionDuration = 1,
ShuffleAtEventStart = true,
Suspended = true,
TotalActiveUsers = 200,
TurnstileAction = "log",
TurnstileMode = "off",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewWaitingRoomEvent(ctx, "example_waiting_room_event", &cloudflare.WaitingRoomEventArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
WaitingRoomId: pulumi.String("699d98642c564d2e855e9661899b7252"),
EventEndTime: pulumi.String("2021-09-28T17:00:00.000Z"),
EventStartTime: pulumi.String("2021-09-28T15:30:00.000Z"),
Name: pulumi.String("production_webinar_event"),
CustomPageHtml: pulumi.String("{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}"),
Description: pulumi.String("Production event - DO NOT MODIFY"),
DisableSessionRenewal: pulumi.Bool(true),
NewUsersPerMinute: pulumi.Int(200),
PrequeueStartTime: pulumi.String("2021-09-28T15:00:00.000Z"),
QueueingMethod: pulumi.String("random"),
SessionDuration: pulumi.Int(1),
ShuffleAtEventStart: pulumi.Bool(true),
Suspended: pulumi.Bool(true),
TotalActiveUsers: pulumi.Int(200),
TurnstileAction: pulumi.String("log"),
TurnstileMode: pulumi.String("off"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WaitingRoomEvent;
import com.pulumi.cloudflare.WaitingRoomEventArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleWaitingRoomEvent = new WaitingRoomEvent("exampleWaitingRoomEvent", WaitingRoomEventArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.waitingRoomId("699d98642c564d2e855e9661899b7252")
.eventEndTime("2021-09-28T17:00:00.000Z")
.eventStartTime("2021-09-28T15:30:00.000Z")
.name("production_webinar_event")
.customPageHtml("{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}")
.description("Production event - DO NOT MODIFY")
.disableSessionRenewal(true)
.newUsersPerMinute(200)
.prequeueStartTime("2021-09-28T15:00:00.000Z")
.queueingMethod("random")
.sessionDuration(1)
.shuffleAtEventStart(true)
.suspended(true)
.totalActiveUsers(200)
.turnstileAction("log")
.turnstileMode("off")
.build());
}
}
resources:
exampleWaitingRoomEvent:
type: cloudflare:WaitingRoomEvent
name: example_waiting_room_event
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
waitingRoomId: 699d98642c564d2e855e9661899b7252
eventEndTime: 2021-09-28T17:00:00.000Z
eventStartTime: 2021-09-28T15:30:00.000Z
name: production_webinar_event
customPageHtml: '{{#waitTimeKnown}} {{waitTime}} mins {{/waitTimeKnown}} {{^waitTimeKnown}} Event is prequeueing / Queue all enabled {{/waitTimeKnown}}'
description: Production event - DO NOT MODIFY
disableSessionRenewal: true
newUsersPerMinute: 200
prequeueStartTime: 2021-09-28T15:00:00.000Z
queueingMethod: random
sessionDuration: 1
shuffleAtEventStart: true
suspended: true
totalActiveUsers: 200
turnstileAction: log
turnstileMode: off

Import

$ pulumi import cloudflare:index/waitingRoomEvent:WaitingRoomEvent example '<zone_id>/<waiting_room_id>/<event_id>'

Properties

Link copied to clipboard
val createdOn: Output<String>
Link copied to clipboard
val customPageHtml: Output<String>?

If set, the event will override the waiting room's custom_page_html property while it is active. If null, the event will inherit it.

Link copied to clipboard
val description: Output<String>

A note that you can use to add more details about the event.

Link copied to clipboard

If set, the event will override the waiting room's disable_session_renewal property while it is active. If null, the event will inherit it.

Link copied to clipboard
val eventEndTime: Output<String>

An ISO 8601 timestamp that marks the end of the event.

Link copied to clipboard
val eventStartTime: Output<String>

An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event's configuration. The start time must be at least one minute before event_end_time.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val modifiedOn: Output<String>
Link copied to clipboard
val name: Output<String>

A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.

Link copied to clipboard
val newUsersPerMinute: Output<Int>?

If set, the event will override the waiting room's new_users_per_minute property while it is active. If null, the event will inherit it. This can only be set if the event's total_active_users property is also set.

Link copied to clipboard

An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before event_start_time.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queueingMethod: Output<String>?

If set, the event will override the waiting room's queueing_method property while it is active. If null, the event will inherit it.

Link copied to clipboard
val sessionDuration: Output<Int>?

If set, the event will override the waiting room's session_duration property while it is active. If null, the event will inherit it.

Link copied to clipboard

If enabled, users in the prequeue will be shuffled randomly at the event_start_time. Requires that prequeue_start_time is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the queueing_method during the event respects ordering such as fifo, or else the shuffling may be unnecessary.

Link copied to clipboard
val suspended: Output<Boolean>

Suspends or allows an event. If set to true, the event is ignored and traffic will be handled based on the waiting room configuration.

Link copied to clipboard
val totalActiveUsers: Output<Int>?

If set, the event will override the waiting room's total_active_users property while it is active. If null, the event will inherit it. This can only be set if the event's new_users_per_minute property is also set.

Link copied to clipboard
val turnstileAction: Output<String>?

If set, the event will override the waiting room's turnstile_action property while it is active. If null, the event will inherit it. Available values: "log", "infinite_queue".

Link copied to clipboard
val turnstileMode: Output<String>?

If set, the event will override the waiting room's turnstile_mode property while it is active. If null, the event will inherit it. Available values: "off", "invisible", "visiblenoninteractive", "visible_managed".

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val waitingRoomId: Output<String>
Link copied to clipboard
val zoneId: Output<String>

Identifier