AccessCustomPageArgs

data class AccessCustomPageArgs(val accountId: Output<String>? = null, val appCount: Output<Int>? = null, val customHtml: Output<String>? = null, val name: Output<String>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessCustomPageArgs>

Provides a resource to customize the pages your end users will see when trying to reach applications behind Cloudflare Access.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessCustomPage;
import com.pulumi.cloudflare.AccessCustomPageArgs;
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 example = new AccessCustomPage("example", AccessCustomPageArgs.builder()
.customHtml("<html><body><h1>Forbidden</h1></body></html>")
.name("example")
.type("forbidden")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Constructors

Link copied to clipboard
fun AccessCustomPageArgs(accountId: Output<String>? = null, appCount: Output<Int>? = null, customHtml: Output<String>? = null, name: Output<String>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AccessCustomPageArgs

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Conflicts with zone_id. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val appCount: Output<Int>? = null

Number of apps to display on the custom page.

Link copied to clipboard
val customHtml: Output<String>? = null

Custom HTML to display on the custom page.

Link copied to clipboard
val name: Output<String>? = null

Friendly name of the Access Custom Page configuration.

Link copied to clipboard
val type: Output<String>? = null

Type of Access custom page to create. Available values: identity_denied, forbidden.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource. Conflicts with account_id. Modifying this attribute will force creation of a new resource.