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

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.AccessCustomPage("example", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
name: "example",
type: "forbidden",
customHtml: "<html><body><h1>Forbidden</h1></body></html>",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.AccessCustomPage("example",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
name="example",
type="forbidden",
custom_html="<html><body><h1>Forbidden</h1></body></html>")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.AccessCustomPage("example", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Name = "example",
Type = "forbidden",
CustomHtml = "<html><body><h1>Forbidden</h1></body></html>",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAccessCustomPage(ctx, "example", &cloudflare.AccessCustomPageArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Name: pulumi.String("example"),
Type: pulumi.String("forbidden"),
CustomHtml: pulumi.String("<html><body><h1>Forbidden</h1></body></html>"),
})
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.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()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.name("example")
.type("forbidden")
.customHtml("<html><body><h1>Forbidden</h1></body></html>")
.build());
}
}
resources:
example:
type: cloudflare:AccessCustomPage
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
name: example
type: forbidden
customHtml: <html><body><h1>Forbidden</h1></body></html>

Constructors

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

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.

Functions

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