All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.ZeroTrustAccessCustomPageArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.ZeroTrustAccessCustomPageArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a resource to customize the pages your end users will see
 * when trying to reach applications behind Cloudflare Access.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * const example = new cloudflare.ZeroTrustAccessCustomPage("example", {
 *     zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
 *     name: "example",
 *     type: "forbidden",
 *     customHtml: "

Forbidden

", * }); * ``` * ```python * import pulumi * import pulumi_cloudflare as cloudflare * example = cloudflare.ZeroTrustAccessCustomPage("example", * zone_id="0da42c8d2132a9ddaf714f9e7c920711", * name="example", * type="forbidden", * custom_html="

Forbidden

") * ``` * ```csharp * using System.Collections.Generic; * using System.Linq; * using Pulumi; * using Cloudflare = Pulumi.Cloudflare; * return await Deployment.RunAsync(() => * { * var example = new Cloudflare.ZeroTrustAccessCustomPage("example", new() * { * ZoneId = "0da42c8d2132a9ddaf714f9e7c920711", * Name = "example", * Type = "forbidden", * CustomHtml = "

Forbidden

", * }); * }); * ``` * ```go * 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.NewZeroTrustAccessCustomPage(ctx, "example", &cloudflare.ZeroTrustAccessCustomPageArgs{ * ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"), * Name: pulumi.String("example"), * Type: pulumi.String("forbidden"), * CustomHtml: pulumi.String("

Forbidden

"), * }) * if err != nil { * return err * } * return nil * }) * } * ``` * ```java * package generated_program; * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.cloudflare.ZeroTrustAccessCustomPage; * import com.pulumi.cloudflare.ZeroTrustAccessCustomPageArgs; * 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 ZeroTrustAccessCustomPage("example", ZeroTrustAccessCustomPageArgs.builder() * .zoneId("0da42c8d2132a9ddaf714f9e7c920711") * .name("example") * .type("forbidden") * .customHtml("

Forbidden

") * .build()); * } * } * ``` * ```yaml * resources: * example: * type: cloudflare:ZeroTrustAccessCustomPage * properties: * zoneId: 0da42c8d2132a9ddaf714f9e7c920711 * name: example * type: forbidden * customHtml:

Forbidden

* ``` * * @property accountId The account identifier to target for the resource. Conflicts with `zone_id`. **Modifying this attribute will force creation of a new resource.** * @property appCount Number of apps to display on the custom page. * @property customHtml Custom HTML to display on the custom page. * @property name Friendly name of the Access Custom Page configuration. * @property type Type of Access custom page to create. Available values: `identity_denied`, `forbidden`. * @property zoneId The zone identifier to target for the resource. Conflicts with `account_id`. **Modifying this attribute will force creation of a new resource.** */ public data class ZeroTrustAccessCustomPageArgs( public val accountId: Output? = null, public val appCount: Output? = null, public val customHtml: Output? = null, public val name: Output? = null, public val type: Output? = null, public val zoneId: Output? = null, ) : ConvertibleToJava { override fun toJava(): com.pulumi.cloudflare.ZeroTrustAccessCustomPageArgs = com.pulumi.cloudflare.ZeroTrustAccessCustomPageArgs.builder() .accountId(accountId?.applyValue({ args0 -> args0 })) .appCount(appCount?.applyValue({ args0 -> args0 })) .customHtml(customHtml?.applyValue({ args0 -> args0 })) .name(name?.applyValue({ args0 -> args0 })) .type(type?.applyValue({ args0 -> args0 })) .zoneId(zoneId?.applyValue({ args0 -> args0 })).build() } /** * Builder for [ZeroTrustAccessCustomPageArgs]. */ @PulumiTagMarker public class ZeroTrustAccessCustomPageArgsBuilder internal constructor() { private var accountId: Output? = null private var appCount: Output? = null private var customHtml: Output? = null private var name: Output? = null private var type: Output? = null private var zoneId: Output? = null /** * @param value The account identifier to target for the resource. Conflicts with `zone_id`. **Modifying this attribute will force creation of a new resource.** */ @JvmName("bndldswvmkbourxw") public suspend fun accountId(`value`: Output) { this.accountId = value } /** * @param value Number of apps to display on the custom page. */ @JvmName("xwqbowdgexnnkflt") public suspend fun appCount(`value`: Output) { this.appCount = value } /** * @param value Custom HTML to display on the custom page. */ @JvmName("qmjflkdjnvyxdcjx") public suspend fun customHtml(`value`: Output) { this.customHtml = value } /** * @param value Friendly name of the Access Custom Page configuration. */ @JvmName("avmktdhwxpigddvn") public suspend fun name(`value`: Output) { this.name = value } /** * @param value Type of Access custom page to create. Available values: `identity_denied`, `forbidden`. */ @JvmName("oojpmrqlqnfnboky") public suspend fun type(`value`: Output) { this.type = value } /** * @param value The zone identifier to target for the resource. Conflicts with `account_id`. **Modifying this attribute will force creation of a new resource.** */ @JvmName("kxoauleabbotgbit") public suspend fun zoneId(`value`: Output) { this.zoneId = value } /** * @param value The account identifier to target for the resource. Conflicts with `zone_id`. **Modifying this attribute will force creation of a new resource.** */ @JvmName("nbhgrykmrwppqeqe") public suspend fun accountId(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.accountId = mapped } /** * @param value Number of apps to display on the custom page. */ @JvmName("fqeuhgjsprwuhxee") public suspend fun appCount(`value`: Int?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.appCount = mapped } /** * @param value Custom HTML to display on the custom page. */ @JvmName("bjnmptibaajarhdw") public suspend fun customHtml(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.customHtml = mapped } /** * @param value Friendly name of the Access Custom Page configuration. */ @JvmName("kijpuxkwihwfxtvg") public suspend fun name(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.name = mapped } /** * @param value Type of Access custom page to create. Available values: `identity_denied`, `forbidden`. */ @JvmName("cgabtlmtyuvoxrbk") public suspend fun type(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.type = mapped } /** * @param value The zone identifier to target for the resource. Conflicts with `account_id`. **Modifying this attribute will force creation of a new resource.** */ @JvmName("pnerunqodxdvkeay") public suspend fun zoneId(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.zoneId = mapped } internal fun build(): ZeroTrustAccessCustomPageArgs = ZeroTrustAccessCustomPageArgs( accountId = accountId, appCount = appCount, customHtml = customHtml, name = name, type = type, zoneId = zoneId, ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy