cloudflare.ZeroTrustAccessCustomPage
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessCustomPage = new cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
customHtml: "<html><body><h1>Access Denied</h1></body></html>",
name: "name",
type: "identity_denied",
appCount: 0,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_custom_page = cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
custom_html="<html><body><h1>Access Denied</h1></body></html>",
name="name",
type="identity_denied",
app_count=0)
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.NewZeroTrustAccessCustomPage(ctx, "example_zero_trust_access_custom_page", &cloudflare.ZeroTrustAccessCustomPageArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
CustomHtml: pulumi.String("<html><body><h1>Access Denied</h1></body></html>"),
Name: pulumi.String("name"),
Type: pulumi.String("identity_denied"),
AppCount: pulumi.Int(0),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustAccessCustomPage = new Cloudflare.ZeroTrustAccessCustomPage("example_zero_trust_access_custom_page", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
CustomHtml = "<html><body><h1>Access Denied</h1></body></html>",
Name = "name",
Type = "identity_denied",
AppCount = 0,
});
});
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 exampleZeroTrustAccessCustomPage = new ZeroTrustAccessCustomPage("exampleZeroTrustAccessCustomPage", ZeroTrustAccessCustomPageArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.customHtml("<html><body><h1>Access Denied</h1></body></html>")
.name("name")
.type("identity_denied")
.appCount(0)
.build());
}
}
resources:
exampleZeroTrustAccessCustomPage:
type: cloudflare:ZeroTrustAccessCustomPage
name: example_zero_trust_access_custom_page
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
customHtml: <html><body><h1>Access Denied</h1></body></html>
name: name
type: identity_denied
appCount: 0
Create ZeroTrustAccessCustomPage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustAccessCustomPage(name: string, args: ZeroTrustAccessCustomPageArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustAccessCustomPage(resource_name: str,
args: ZeroTrustAccessCustomPageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustAccessCustomPage(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
custom_html: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
app_count: Optional[int] = None)
func NewZeroTrustAccessCustomPage(ctx *Context, name string, args ZeroTrustAccessCustomPageArgs, opts ...ResourceOption) (*ZeroTrustAccessCustomPage, error)
public ZeroTrustAccessCustomPage(string name, ZeroTrustAccessCustomPageArgs args, CustomResourceOptions? opts = null)
public ZeroTrustAccessCustomPage(String name, ZeroTrustAccessCustomPageArgs args)
public ZeroTrustAccessCustomPage(String name, ZeroTrustAccessCustomPageArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustAccessCustomPage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZeroTrustAccessCustomPageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZeroTrustAccessCustomPageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZeroTrustAccessCustomPageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustAccessCustomPageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustAccessCustomPageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustAccessCustomPageResource = new Cloudflare.ZeroTrustAccessCustomPage("zeroTrustAccessCustomPageResource", new()
{
AccountId = "string",
CustomHtml = "string",
Name = "string",
Type = "string",
AppCount = 0,
});
example, err := cloudflare.NewZeroTrustAccessCustomPage(ctx, "zeroTrustAccessCustomPageResource", &cloudflare.ZeroTrustAccessCustomPageArgs{
AccountId: pulumi.String("string"),
CustomHtml: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
AppCount: pulumi.Int(0),
})
var zeroTrustAccessCustomPageResource = new ZeroTrustAccessCustomPage("zeroTrustAccessCustomPageResource", ZeroTrustAccessCustomPageArgs.builder()
.accountId("string")
.customHtml("string")
.name("string")
.type("string")
.appCount(0)
.build());
zero_trust_access_custom_page_resource = cloudflare.ZeroTrustAccessCustomPage("zeroTrustAccessCustomPageResource",
account_id="string",
custom_html="string",
name="string",
type="string",
app_count=0)
const zeroTrustAccessCustomPageResource = new cloudflare.ZeroTrustAccessCustomPage("zeroTrustAccessCustomPageResource", {
accountId: "string",
customHtml: "string",
name: "string",
type: "string",
appCount: 0,
});
type: cloudflare:ZeroTrustAccessCustomPage
properties:
accountId: string
appCount: 0
customHtml: string
name: string
type: string
ZeroTrustAccessCustomPage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustAccessCustomPage resource accepts the following input properties:
- Account
Id string - Identifier.
- Custom
Html string - Custom page HTML.
- Name string
- Custom page name.
- Type string
- Custom page type. Available values: "identity_denied", "forbidden".
- App
Count int - Number of apps the custom page is assigned to.
- Account
Id string - Identifier.
- Custom
Html string - Custom page HTML.
- Name string
- Custom page name.
- Type string
- Custom page type. Available values: "identity_denied", "forbidden".
- App
Count int - Number of apps the custom page is assigned to.
- account
Id String - Identifier.
- custom
Html String - Custom page HTML.
- name String
- Custom page name.
- type String
- Custom page type. Available values: "identity_denied", "forbidden".
- app
Count Integer - Number of apps the custom page is assigned to.
- account
Id string - Identifier.
- custom
Html string - Custom page HTML.
- name string
- Custom page name.
- type string
- Custom page type. Available values: "identity_denied", "forbidden".
- app
Count number - Number of apps the custom page is assigned to.
- account_
id str - Identifier.
- custom_
html str - Custom page HTML.
- name str
- Custom page name.
- type str
- Custom page type. Available values: "identity_denied", "forbidden".
- app_
count int - Number of apps the custom page is assigned to.
- account
Id String - Identifier.
- custom
Html String - Custom page HTML.
- name String
- Custom page name.
- type String
- Custom page type. Available values: "identity_denied", "forbidden".
- app
Count Number - Number of apps the custom page is assigned to.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustAccessCustomPage resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- uid str
- UUID.
- updated_
at str
Look up Existing ZeroTrustAccessCustomPage Resource
Get an existing ZeroTrustAccessCustomPage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZeroTrustAccessCustomPageState, opts?: CustomResourceOptions): ZeroTrustAccessCustomPage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
app_count: Optional[int] = None,
created_at: Optional[str] = None,
custom_html: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
uid: Optional[str] = None,
updated_at: Optional[str] = None) -> ZeroTrustAccessCustomPage
func GetZeroTrustAccessCustomPage(ctx *Context, name string, id IDInput, state *ZeroTrustAccessCustomPageState, opts ...ResourceOption) (*ZeroTrustAccessCustomPage, error)
public static ZeroTrustAccessCustomPage Get(string name, Input<string> id, ZeroTrustAccessCustomPageState? state, CustomResourceOptions? opts = null)
public static ZeroTrustAccessCustomPage get(String name, Output<String> id, ZeroTrustAccessCustomPageState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustAccessCustomPage get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- account_
id str - Identifier.
- app_
count int - Number of apps the custom page is assigned to.
- created_
at str - custom_
html str - Custom page HTML.
- name str
- Custom page name.
- type str
- Custom page type. Available values: "identity_denied", "forbidden".
- uid str
- UUID.
- updated_
at str
Import
$ pulumi import cloudflare:index/zeroTrustAccessCustomPage:ZeroTrustAccessCustomPage example '<account_id>/<custom_page_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.