Represent WAAP custom page set
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const example = new gcore.CdnResource("example", {
cname: "api.example.com",
origin: "origin.example.com",
options: {
waap: {
value: true,
},
},
});
const mydomain = new gcore.WaapDomain("mydomain", {name: example.cname});
const exampleWaapCustomPageSet = new gcore.WaapCustomPageSet("example", {
name: "example-custom-pages",
domains: [mydomain.waapDomainId],
block: {
logo: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg==",
header: "Initial Block Header",
title: "Initial Block Title",
text: "This is the initial block page text.",
enabled: true,
},
blockCsrf: {
header: "Initial CSRF Headersss",
title: "Initial CSRF Title",
text: "This is the initial CSRF block page text.",
enabled: true,
},
captcha: {
header: "Initial Captcha Header",
title: "Initial Captcha Title",
text: "This is the initial captcha page texts.",
error: "Initial captcha error message.",
enabled: true,
},
cookieDisabled: {
header: "Initial Cookie Header",
text: "Initial cookie disabled text.",
enabled: true,
},
handshake: {
header: "Initial Handshake Header",
title: "Initial Handshake Title",
enabled: true,
},
javascriptDisabled: {
header: "Initial JS Header",
text: "Initial JavaScript disabled text.",
enabled: true,
},
});
import pulumi
import pulumi_gcore as gcore
example = gcore.CdnResource("example",
cname="api.example.com",
origin="origin.example.com",
options={
"waap": {
"value": True,
},
})
mydomain = gcore.WaapDomain("mydomain", name=example.cname)
example_waap_custom_page_set = gcore.WaapCustomPageSet("example",
name="example-custom-pages",
domains=[mydomain.waap_domain_id],
block={
"logo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg==",
"header": "Initial Block Header",
"title": "Initial Block Title",
"text": "This is the initial block page text.",
"enabled": True,
},
block_csrf={
"header": "Initial CSRF Headersss",
"title": "Initial CSRF Title",
"text": "This is the initial CSRF block page text.",
"enabled": True,
},
captcha={
"header": "Initial Captcha Header",
"title": "Initial Captcha Title",
"text": "This is the initial captcha page texts.",
"error": "Initial captcha error message.",
"enabled": True,
},
cookie_disabled={
"header": "Initial Cookie Header",
"text": "Initial cookie disabled text.",
"enabled": True,
},
handshake={
"header": "Initial Handshake Header",
"title": "Initial Handshake Title",
"enabled": True,
},
javascript_disabled={
"header": "Initial JS Header",
"text": "Initial JavaScript disabled text.",
"enabled": True,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := gcore.NewCdnResource(ctx, "example", &gcore.CdnResourceArgs{
Cname: pulumi.String("api.example.com"),
Origin: pulumi.String("origin.example.com"),
Options: &gcore.CdnResourceOptionsArgs{
Waap: &gcore.CdnResourceOptionsWaapArgs{
Value: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
mydomain, err := gcore.NewWaapDomain(ctx, "mydomain", &gcore.WaapDomainArgs{
Name: example.Cname,
})
if err != nil {
return err
}
_, err = gcore.NewWaapCustomPageSet(ctx, "example", &gcore.WaapCustomPageSetArgs{
Name: pulumi.String("example-custom-pages"),
Domains: pulumi.Float64Array{
mydomain.WaapDomainId,
},
Block: &gcore.WaapCustomPageSetBlockArgs{
Logo: pulumi.String("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg=="),
Header: pulumi.String("Initial Block Header"),
Title: pulumi.String("Initial Block Title"),
Text: pulumi.String("This is the initial block page text."),
Enabled: pulumi.Bool(true),
},
BlockCsrf: &gcore.WaapCustomPageSetBlockCsrfArgs{
Header: pulumi.String("Initial CSRF Headersss"),
Title: pulumi.String("Initial CSRF Title"),
Text: pulumi.String("This is the initial CSRF block page text."),
Enabled: pulumi.Bool(true),
},
Captcha: &gcore.WaapCustomPageSetCaptchaArgs{
Header: pulumi.String("Initial Captcha Header"),
Title: pulumi.String("Initial Captcha Title"),
Text: pulumi.String("This is the initial captcha page texts."),
Error: pulumi.String("Initial captcha error message."),
Enabled: pulumi.Bool(true),
},
CookieDisabled: &gcore.WaapCustomPageSetCookieDisabledArgs{
Header: pulumi.String("Initial Cookie Header"),
Text: pulumi.String("Initial cookie disabled text."),
Enabled: pulumi.Bool(true),
},
Handshake: &gcore.WaapCustomPageSetHandshakeArgs{
Header: pulumi.String("Initial Handshake Header"),
Title: pulumi.String("Initial Handshake Title"),
Enabled: pulumi.Bool(true),
},
JavascriptDisabled: &gcore.WaapCustomPageSetJavascriptDisabledArgs{
Header: pulumi.String("Initial JS Header"),
Text: pulumi.String("Initial JavaScript disabled text."),
Enabled: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var example = new Gcore.CdnResource("example", new()
{
Cname = "api.example.com",
Origin = "origin.example.com",
Options = new Gcore.Inputs.CdnResourceOptionsArgs
{
Waap = new Gcore.Inputs.CdnResourceOptionsWaapArgs
{
Value = true,
},
},
});
var mydomain = new Gcore.WaapDomain("mydomain", new()
{
Name = example.Cname,
});
var exampleWaapCustomPageSet = new Gcore.WaapCustomPageSet("example", new()
{
Name = "example-custom-pages",
Domains = new[]
{
mydomain.WaapDomainId,
},
Block = new Gcore.Inputs.WaapCustomPageSetBlockArgs
{
Logo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg==",
Header = "Initial Block Header",
Title = "Initial Block Title",
Text = "This is the initial block page text.",
Enabled = true,
},
BlockCsrf = new Gcore.Inputs.WaapCustomPageSetBlockCsrfArgs
{
Header = "Initial CSRF Headersss",
Title = "Initial CSRF Title",
Text = "This is the initial CSRF block page text.",
Enabled = true,
},
Captcha = new Gcore.Inputs.WaapCustomPageSetCaptchaArgs
{
Header = "Initial Captcha Header",
Title = "Initial Captcha Title",
Text = "This is the initial captcha page texts.",
Error = "Initial captcha error message.",
Enabled = true,
},
CookieDisabled = new Gcore.Inputs.WaapCustomPageSetCookieDisabledArgs
{
Header = "Initial Cookie Header",
Text = "Initial cookie disabled text.",
Enabled = true,
},
Handshake = new Gcore.Inputs.WaapCustomPageSetHandshakeArgs
{
Header = "Initial Handshake Header",
Title = "Initial Handshake Title",
Enabled = true,
},
JavascriptDisabled = new Gcore.Inputs.WaapCustomPageSetJavascriptDisabledArgs
{
Header = "Initial JS Header",
Text = "Initial JavaScript disabled text.",
Enabled = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnResource;
import com.pulumi.gcore.CdnResourceArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsWaapArgs;
import com.pulumi.gcore.WaapDomain;
import com.pulumi.gcore.WaapDomainArgs;
import com.pulumi.gcore.WaapCustomPageSet;
import com.pulumi.gcore.WaapCustomPageSetArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetBlockArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetBlockCsrfArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetCaptchaArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetCookieDisabledArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetHandshakeArgs;
import com.pulumi.gcore.inputs.WaapCustomPageSetJavascriptDisabledArgs;
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 CdnResource("example", CdnResourceArgs.builder()
.cname("api.example.com")
.origin("origin.example.com")
.options(CdnResourceOptionsArgs.builder()
.waap(CdnResourceOptionsWaapArgs.builder()
.value(true)
.build())
.build())
.build());
var mydomain = new WaapDomain("mydomain", WaapDomainArgs.builder()
.name(example.cname())
.build());
var exampleWaapCustomPageSet = new WaapCustomPageSet("exampleWaapCustomPageSet", WaapCustomPageSetArgs.builder()
.name("example-custom-pages")
.domains(mydomain.waapDomainId())
.block(WaapCustomPageSetBlockArgs.builder()
.logo("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg==")
.header("Initial Block Header")
.title("Initial Block Title")
.text("This is the initial block page text.")
.enabled(true)
.build())
.blockCsrf(WaapCustomPageSetBlockCsrfArgs.builder()
.header("Initial CSRF Headersss")
.title("Initial CSRF Title")
.text("This is the initial CSRF block page text.")
.enabled(true)
.build())
.captcha(WaapCustomPageSetCaptchaArgs.builder()
.header("Initial Captcha Header")
.title("Initial Captcha Title")
.text("This is the initial captcha page texts.")
.error("Initial captcha error message.")
.enabled(true)
.build())
.cookieDisabled(WaapCustomPageSetCookieDisabledArgs.builder()
.header("Initial Cookie Header")
.text("Initial cookie disabled text.")
.enabled(true)
.build())
.handshake(WaapCustomPageSetHandshakeArgs.builder()
.header("Initial Handshake Header")
.title("Initial Handshake Title")
.enabled(true)
.build())
.javascriptDisabled(WaapCustomPageSetJavascriptDisabledArgs.builder()
.header("Initial JS Header")
.text("Initial JavaScript disabled text.")
.enabled(true)
.build())
.build());
}
}
resources:
example:
type: gcore:CdnResource
properties:
cname: api.example.com
origin: origin.example.com
options:
waap:
value: true
mydomain:
type: gcore:WaapDomain
properties:
name: ${example.cname}
exampleWaapCustomPageSet:
type: gcore:WaapCustomPageSet
name: example
properties:
name: example-custom-pages
domains:
- ${mydomain.waapDomainId}
block:
logo: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0ElEQVQ4y62TMQ6DMAxFH1GlDkgsbJXYOAecowsnYO4F2DpxGdZeghEpS4+QqerS5YOiNEVtwZKl6Nvfib+dhM92BAqd78CDL60GBsABk9wJq9eIBugBCzRA6sVSYVY5JlagB25AtnJJppw+9mzrkU/BLUbYXMSG7Qx64kx+Aq0Xb4XNRRpxFrWd17MRofAKFMKMp4kTl1JK/2oTUB7YwcIWzkAXEbFT7K2FUMRcoxqBq3wUlsdEjI0RoAIu8irYBRvbyk2LtMsq//WZkq3f+QXg4Ta9dWcCCAAAAABJRU5ErkJggg==
header: Initial Block Header
title: Initial Block Title
text: This is the initial block page text.
enabled: true
blockCsrf:
header: Initial CSRF Headersss
title: Initial CSRF Title
text: This is the initial CSRF block page text.
enabled: true
captcha:
header: Initial Captcha Header
title: Initial Captcha Title
text: This is the initial captcha page texts.
error: Initial captcha error message.
enabled: true
cookieDisabled:
header: Initial Cookie Header
text: Initial cookie disabled text.
enabled: true
handshake:
header: Initial Handshake Header
title: Initial Handshake Title
enabled: true
javascriptDisabled:
header: Initial JS Header
text: Initial JavaScript disabled text.
enabled: true
Create WaapCustomPageSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WaapCustomPageSet(name: string, args?: WaapCustomPageSetArgs, opts?: CustomResourceOptions);@overload
def WaapCustomPageSet(resource_name: str,
args: Optional[WaapCustomPageSetArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def WaapCustomPageSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
block: Optional[WaapCustomPageSetBlockArgs] = None,
block_csrf: Optional[WaapCustomPageSetBlockCsrfArgs] = None,
captcha: Optional[WaapCustomPageSetCaptchaArgs] = None,
cookie_disabled: Optional[WaapCustomPageSetCookieDisabledArgs] = None,
domains: Optional[Sequence[float]] = None,
handshake: Optional[WaapCustomPageSetHandshakeArgs] = None,
javascript_disabled: Optional[WaapCustomPageSetJavascriptDisabledArgs] = None,
name: Optional[str] = None,
waap_custom_page_set_id: Optional[str] = None)func NewWaapCustomPageSet(ctx *Context, name string, args *WaapCustomPageSetArgs, opts ...ResourceOption) (*WaapCustomPageSet, error)public WaapCustomPageSet(string name, WaapCustomPageSetArgs? args = null, CustomResourceOptions? opts = null)
public WaapCustomPageSet(String name, WaapCustomPageSetArgs args)
public WaapCustomPageSet(String name, WaapCustomPageSetArgs args, CustomResourceOptions options)
type: gcore:WaapCustomPageSet
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 WaapCustomPageSetArgs
- 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 WaapCustomPageSetArgs
- 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 WaapCustomPageSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WaapCustomPageSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WaapCustomPageSetArgs
- 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 waapCustomPageSetResource = new Gcore.WaapCustomPageSet("waapCustomPageSetResource", new()
{
Block = new Gcore.Inputs.WaapCustomPageSetBlockArgs
{
Enabled = false,
Header = "string",
Logo = "string",
Text = "string",
Title = "string",
},
BlockCsrf = new Gcore.Inputs.WaapCustomPageSetBlockCsrfArgs
{
Enabled = false,
Header = "string",
Logo = "string",
Text = "string",
Title = "string",
},
Captcha = new Gcore.Inputs.WaapCustomPageSetCaptchaArgs
{
Enabled = false,
Error = "string",
Header = "string",
Logo = "string",
Text = "string",
Title = "string",
},
CookieDisabled = new Gcore.Inputs.WaapCustomPageSetCookieDisabledArgs
{
Enabled = false,
Header = "string",
Text = "string",
},
Domains = new[]
{
0,
},
Handshake = new Gcore.Inputs.WaapCustomPageSetHandshakeArgs
{
Enabled = false,
Header = "string",
Logo = "string",
Title = "string",
},
JavascriptDisabled = new Gcore.Inputs.WaapCustomPageSetJavascriptDisabledArgs
{
Enabled = false,
Header = "string",
Text = "string",
},
Name = "string",
WaapCustomPageSetId = "string",
});
example, err := gcore.NewWaapCustomPageSet(ctx, "waapCustomPageSetResource", &gcore.WaapCustomPageSetArgs{
Block: &gcore.WaapCustomPageSetBlockArgs{
Enabled: pulumi.Bool(false),
Header: pulumi.String("string"),
Logo: pulumi.String("string"),
Text: pulumi.String("string"),
Title: pulumi.String("string"),
},
BlockCsrf: &gcore.WaapCustomPageSetBlockCsrfArgs{
Enabled: pulumi.Bool(false),
Header: pulumi.String("string"),
Logo: pulumi.String("string"),
Text: pulumi.String("string"),
Title: pulumi.String("string"),
},
Captcha: &gcore.WaapCustomPageSetCaptchaArgs{
Enabled: pulumi.Bool(false),
Error: pulumi.String("string"),
Header: pulumi.String("string"),
Logo: pulumi.String("string"),
Text: pulumi.String("string"),
Title: pulumi.String("string"),
},
CookieDisabled: &gcore.WaapCustomPageSetCookieDisabledArgs{
Enabled: pulumi.Bool(false),
Header: pulumi.String("string"),
Text: pulumi.String("string"),
},
Domains: pulumi.Float64Array{
pulumi.Float64(0),
},
Handshake: &gcore.WaapCustomPageSetHandshakeArgs{
Enabled: pulumi.Bool(false),
Header: pulumi.String("string"),
Logo: pulumi.String("string"),
Title: pulumi.String("string"),
},
JavascriptDisabled: &gcore.WaapCustomPageSetJavascriptDisabledArgs{
Enabled: pulumi.Bool(false),
Header: pulumi.String("string"),
Text: pulumi.String("string"),
},
Name: pulumi.String("string"),
WaapCustomPageSetId: pulumi.String("string"),
})
var waapCustomPageSetResource = new WaapCustomPageSet("waapCustomPageSetResource", WaapCustomPageSetArgs.builder()
.block(WaapCustomPageSetBlockArgs.builder()
.enabled(false)
.header("string")
.logo("string")
.text("string")
.title("string")
.build())
.blockCsrf(WaapCustomPageSetBlockCsrfArgs.builder()
.enabled(false)
.header("string")
.logo("string")
.text("string")
.title("string")
.build())
.captcha(WaapCustomPageSetCaptchaArgs.builder()
.enabled(false)
.error("string")
.header("string")
.logo("string")
.text("string")
.title("string")
.build())
.cookieDisabled(WaapCustomPageSetCookieDisabledArgs.builder()
.enabled(false)
.header("string")
.text("string")
.build())
.domains(0.0)
.handshake(WaapCustomPageSetHandshakeArgs.builder()
.enabled(false)
.header("string")
.logo("string")
.title("string")
.build())
.javascriptDisabled(WaapCustomPageSetJavascriptDisabledArgs.builder()
.enabled(false)
.header("string")
.text("string")
.build())
.name("string")
.waapCustomPageSetId("string")
.build());
waap_custom_page_set_resource = gcore.WaapCustomPageSet("waapCustomPageSetResource",
block={
"enabled": False,
"header": "string",
"logo": "string",
"text": "string",
"title": "string",
},
block_csrf={
"enabled": False,
"header": "string",
"logo": "string",
"text": "string",
"title": "string",
},
captcha={
"enabled": False,
"error": "string",
"header": "string",
"logo": "string",
"text": "string",
"title": "string",
},
cookie_disabled={
"enabled": False,
"header": "string",
"text": "string",
},
domains=[0],
handshake={
"enabled": False,
"header": "string",
"logo": "string",
"title": "string",
},
javascript_disabled={
"enabled": False,
"header": "string",
"text": "string",
},
name="string",
waap_custom_page_set_id="string")
const waapCustomPageSetResource = new gcore.WaapCustomPageSet("waapCustomPageSetResource", {
block: {
enabled: false,
header: "string",
logo: "string",
text: "string",
title: "string",
},
blockCsrf: {
enabled: false,
header: "string",
logo: "string",
text: "string",
title: "string",
},
captcha: {
enabled: false,
error: "string",
header: "string",
logo: "string",
text: "string",
title: "string",
},
cookieDisabled: {
enabled: false,
header: "string",
text: "string",
},
domains: [0],
handshake: {
enabled: false,
header: "string",
logo: "string",
title: "string",
},
javascriptDisabled: {
enabled: false,
header: "string",
text: "string",
},
name: "string",
waapCustomPageSetId: "string",
});
type: gcore:WaapCustomPageSet
properties:
block:
enabled: false
header: string
logo: string
text: string
title: string
blockCsrf:
enabled: false
header: string
logo: string
text: string
title: string
captcha:
enabled: false
error: string
header: string
logo: string
text: string
title: string
cookieDisabled:
enabled: false
header: string
text: string
domains:
- 0
handshake:
enabled: false
header: string
logo: string
title: string
javascriptDisabled:
enabled: false
header: string
text: string
name: string
waapCustomPageSetId: string
WaapCustomPageSet 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 WaapCustomPageSet resource accepts the following input properties:
- Block
Waap
Custom Page Set Block - Block
Csrf WaapCustom Page Set Block Csrf - Captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - Domains List<double>
- List of domain IDs associated with this custom page set.
- Handshake
Waap
Custom Page Set Handshake - Javascript
Disabled WaapCustom Page Set Javascript Disabled - Name string
- Name of the custom page set.
- Waap
Custom stringPage Set Id - The ID of this resource.
- Block
Waap
Custom Page Set Block Args - Block
Csrf WaapCustom Page Set Block Csrf Args - Captcha
Waap
Custom Page Set Captcha Args -
Waap
Custom Page Set Cookie Disabled Args - Domains []float64
- List of domain IDs associated with this custom page set.
- Handshake
Waap
Custom Page Set Handshake Args - Javascript
Disabled WaapCustom Page Set Javascript Disabled Args - Name string
- Name of the custom page set.
- Waap
Custom stringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block - block
Csrf WaapCustom Page Set Block Csrf - captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - domains List<Double>
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake - javascript
Disabled WaapCustom Page Set Javascript Disabled - name String
- Name of the custom page set.
- waap
Custom StringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block - block
Csrf WaapCustom Page Set Block Csrf - captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - domains number[]
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake - javascript
Disabled WaapCustom Page Set Javascript Disabled - name string
- Name of the custom page set.
- waap
Custom stringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block Args - block_
csrf WaapCustom Page Set Block Csrf Args - captcha
Waap
Custom Page Set Captcha Args -
Waap
Custom Page Set Cookie Disabled Args - domains Sequence[float]
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake Args - javascript_
disabled WaapCustom Page Set Javascript Disabled Args - name str
- Name of the custom page set.
- waap_
custom_ strpage_ set_ id - The ID of this resource.
- block Property Map
- block
Csrf Property Map - captcha Property Map
- Property Map
- domains List<Number>
- List of domain IDs associated with this custom page set.
- handshake Property Map
- javascript
Disabled Property Map - name String
- Name of the custom page set.
- waap
Custom StringPage Set Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WaapCustomPageSet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WaapCustomPageSet Resource
Get an existing WaapCustomPageSet 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?: WaapCustomPageSetState, opts?: CustomResourceOptions): WaapCustomPageSet@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block: Optional[WaapCustomPageSetBlockArgs] = None,
block_csrf: Optional[WaapCustomPageSetBlockCsrfArgs] = None,
captcha: Optional[WaapCustomPageSetCaptchaArgs] = None,
cookie_disabled: Optional[WaapCustomPageSetCookieDisabledArgs] = None,
domains: Optional[Sequence[float]] = None,
handshake: Optional[WaapCustomPageSetHandshakeArgs] = None,
javascript_disabled: Optional[WaapCustomPageSetJavascriptDisabledArgs] = None,
name: Optional[str] = None,
waap_custom_page_set_id: Optional[str] = None) -> WaapCustomPageSetfunc GetWaapCustomPageSet(ctx *Context, name string, id IDInput, state *WaapCustomPageSetState, opts ...ResourceOption) (*WaapCustomPageSet, error)public static WaapCustomPageSet Get(string name, Input<string> id, WaapCustomPageSetState? state, CustomResourceOptions? opts = null)public static WaapCustomPageSet get(String name, Output<String> id, WaapCustomPageSetState state, CustomResourceOptions options)resources: _: type: gcore:WaapCustomPageSet 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.
- Block
Waap
Custom Page Set Block - Block
Csrf WaapCustom Page Set Block Csrf - Captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - Domains List<double>
- List of domain IDs associated with this custom page set.
- Handshake
Waap
Custom Page Set Handshake - Javascript
Disabled WaapCustom Page Set Javascript Disabled - Name string
- Name of the custom page set.
- Waap
Custom stringPage Set Id - The ID of this resource.
- Block
Waap
Custom Page Set Block Args - Block
Csrf WaapCustom Page Set Block Csrf Args - Captcha
Waap
Custom Page Set Captcha Args -
Waap
Custom Page Set Cookie Disabled Args - Domains []float64
- List of domain IDs associated with this custom page set.
- Handshake
Waap
Custom Page Set Handshake Args - Javascript
Disabled WaapCustom Page Set Javascript Disabled Args - Name string
- Name of the custom page set.
- Waap
Custom stringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block - block
Csrf WaapCustom Page Set Block Csrf - captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - domains List<Double>
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake - javascript
Disabled WaapCustom Page Set Javascript Disabled - name String
- Name of the custom page set.
- waap
Custom StringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block - block
Csrf WaapCustom Page Set Block Csrf - captcha
Waap
Custom Page Set Captcha -
Waap
Custom Page Set Cookie Disabled - domains number[]
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake - javascript
Disabled WaapCustom Page Set Javascript Disabled - name string
- Name of the custom page set.
- waap
Custom stringPage Set Id - The ID of this resource.
- block
Waap
Custom Page Set Block Args - block_
csrf WaapCustom Page Set Block Csrf Args - captcha
Waap
Custom Page Set Captcha Args -
Waap
Custom Page Set Cookie Disabled Args - domains Sequence[float]
- List of domain IDs associated with this custom page set.
- handshake
Waap
Custom Page Set Handshake Args - javascript_
disabled WaapCustom Page Set Javascript Disabled Args - name str
- Name of the custom page set.
- waap_
custom_ strpage_ set_ id - The ID of this resource.
- block Property Map
- block
Csrf Property Map - captcha Property Map
- Property Map
- domains List<Number>
- List of domain IDs associated with this custom page set.
- handshake Property Map
- javascript
Disabled Property Map - name String
- Name of the custom page set.
- waap
Custom StringPage Set Id - The ID of this resource.
Supporting Types
WaapCustomPageSetBlock, WaapCustomPageSetBlockArgs
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
- enabled boolean
- Indicates whether the custom custom page is active or inactive.
- header string
- The text to display in the header of the custom page.
- logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text string
- The text to display in the body of the custom page.
- title string
- The text to display in the title of the custom page.
- enabled bool
- Indicates whether the custom custom page is active or inactive.
- header str
- The text to display in the header of the custom page.
- logo str
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text str
- The text to display in the body of the custom page.
- title str
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
WaapCustomPageSetBlockCsrf, WaapCustomPageSetBlockCsrfArgs
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
- enabled boolean
- Indicates whether the custom custom page is active or inactive.
- header string
- The text to display in the header of the custom page.
- logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text string
- The text to display in the body of the custom page.
- title string
- The text to display in the title of the custom page.
- enabled bool
- Indicates whether the custom custom page is active or inactive.
- header str
- The text to display in the header of the custom page.
- logo str
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text str
- The text to display in the body of the custom page.
- title str
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
WaapCustomPageSetCaptcha, WaapCustomPageSetCaptchaArgs
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Error string
- Error message.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Error string
- Error message.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Text string
- The text to display in the body of the custom page.
- Title string
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- error String
- Error message.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
- enabled boolean
- Indicates whether the custom custom page is active or inactive.
- error string
- Error message.
- header string
- The text to display in the header of the custom page.
- logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text string
- The text to display in the body of the custom page.
- title string
- The text to display in the title of the custom page.
- enabled bool
- Indicates whether the custom custom page is active or inactive.
- error str
- Error message.
- header str
- The text to display in the header of the custom page.
- logo str
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text str
- The text to display in the body of the custom page.
- title str
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- error String
- Error message.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- text String
- The text to display in the body of the custom page.
- title String
- The text to display in the title of the custom page.
WaapCustomPageSetCookieDisabled, WaapCustomPageSetCookieDisabledArgs
WaapCustomPageSetHandshake, WaapCustomPageSetHandshakeArgs
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Title string
- The text to display in the title of the custom page.
- Enabled bool
- Indicates whether the custom custom page is active or inactive.
- Header string
- The text to display in the header of the custom page.
- Logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- Title string
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- title String
- The text to display in the title of the custom page.
- enabled boolean
- Indicates whether the custom custom page is active or inactive.
- header string
- The text to display in the header of the custom page.
- logo string
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- title string
- The text to display in the title of the custom page.
- enabled bool
- Indicates whether the custom custom page is active or inactive.
- header str
- The text to display in the header of the custom page.
- logo str
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- title str
- The text to display in the title of the custom page.
- enabled Boolean
- Indicates whether the custom custom page is active or inactive.
- header String
- The text to display in the header of the custom page.
- logo String
- A base64 encoded image of the logo to present. Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
- title String
- The text to display in the title of the custom page.
WaapCustomPageSetJavascriptDisabled, WaapCustomPageSetJavascriptDisabledArgs
Import
The pulumi import command can be used, for example:
import using <custom_page_set_id>
$ pulumi import gcore:index/waapCustomPageSet:WaapCustomPageSet example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
