cloudflare.AccessCustomPage
Explore with Pulumi AI
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
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 AccessCustomPage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessCustomPage(name: string, args: AccessCustomPageArgs, opts?: CustomResourceOptions);
@overload
def AccessCustomPage(resource_name: str,
args: AccessCustomPageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessCustomPage(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)
func NewAccessCustomPage(ctx *Context, name string, args AccessCustomPageArgs, opts ...ResourceOption) (*AccessCustomPage, error)
public AccessCustomPage(string name, AccessCustomPageArgs args, CustomResourceOptions? opts = null)
public AccessCustomPage(String name, AccessCustomPageArgs args)
public AccessCustomPage(String name, AccessCustomPageArgs args, CustomResourceOptions options)
type: cloudflare:AccessCustomPage
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 AccessCustomPageArgs
- 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 AccessCustomPageArgs
- 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 AccessCustomPageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessCustomPageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessCustomPageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccessCustomPage 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 AccessCustomPage 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".
- 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".
- 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".
- 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".
- 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".
- 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".
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessCustomPage resource produces the following output properties:
Look up Existing AccessCustomPage Resource
Get an existing AccessCustomPage 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?: AccessCustomPageState, opts?: CustomResourceOptions): AccessCustomPage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
custom_html: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
uid: Optional[str] = None) -> AccessCustomPage
func GetAccessCustomPage(ctx *Context, name string, id IDInput, state *AccessCustomPageState, opts ...ResourceOption) (*AccessCustomPage, error)
public static AccessCustomPage Get(string name, Input<string> id, AccessCustomPageState? state, CustomResourceOptions? opts = null)
public static AccessCustomPage get(String name, Output<String> id, AccessCustomPageState state, CustomResourceOptions options)
resources: _: type: cloudflare:AccessCustomPage 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 string - Identifier.
- Custom
Html string - Custom page HTML.
- Name string
- Custom page name.
- Type string
- Custom page type. Available values: "identity_denied", "forbidden".
- Uid string
- UUID.
- 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".
- Uid string
- UUID.
- 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".
- uid String
- UUID.
- 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".
- uid string
- UUID.
- 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".
- uid str
- UUID.
- 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".
- uid String
- UUID.
Import
$ pulumi import cloudflare:index/accessCustomPage:AccessCustomPage 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.