AccessApplication
Provides a Cloudflare Access Application resource. Access Applications are used to restrict access to a whole application using an authorisation gateway managed by Cloudflare.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var stagingApp = new Cloudflare.AccessApplication("stagingApp", new Cloudflare.AccessApplicationArgs
{
Domain = "staging.example.com",
Name = "staging application",
SessionDuration = "24h",
ZoneId = "1d5fdc9e88c8a8c4518b068cd94331fe",
});
}
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
staging_app = cloudflare.AccessApplication("stagingApp",
domain="staging.example.com",
name="staging application",
session_duration="24h",
zone_id="1d5fdc9e88c8a8c4518b068cd94331fe")import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const stagingApp = new cloudflare.AccessApplication("staging_app", {
domain: "staging.example.com",
name: "staging application",
sessionDuration: "24h",
zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe",
});Create a AccessApplication Resource
new AccessApplication(name: string, args: AccessApplicationArgs, opts?: CustomResourceOptions);def AccessApplication(resource_name, opts=None, domain=None, name=None, session_duration=None, zone_id=None, __props__=None);func NewAccessApplication(ctx *Context, name string, args AccessApplicationArgs, opts ...ResourceOption) (*AccessApplication, error)public AccessApplication(string name, AccessApplicationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AccessApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AccessApplication Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AccessApplication resource accepts the following input properties:
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Name string
Friendly name of the Access Application.
- Zone
Id string The DNS zone to which the access rule should be added.
- Session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Name string
Friendly name of the Access Application.
- Zone
Id string The DNS zone to which the access rule should be added.
- Session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.
- domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- name string
Friendly name of the Access Application.
- zone
Id string The DNS zone to which the access rule should be added.
- session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.
- domain str
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- name str
Friendly name of the Access Application.
- zone_
id str The DNS zone to which the access rule should be added.
- session_
duration str How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessApplication resource produces the following output properties:
Look up an Existing AccessApplication Resource
Get an existing AccessApplication 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?: AccessApplicationState, opts?: CustomResourceOptions): AccessApplicationstatic get(resource_name, id, opts=None, aud=None, domain=None, name=None, session_duration=None, zone_id=None, __props__=None);func GetAccessApplication(ctx *Context, name string, id IDInput, state *AccessApplicationState, opts ...ResourceOption) (*AccessApplication, error)public static AccessApplication Get(string name, Input<string> id, AccessApplicationState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Aud string
Application Audience (AUD) Tag of the application
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Name string
Friendly name of the Access Application.
- Session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.- Zone
Id string The DNS zone to which the access rule should be added.
- Aud string
Application Audience (AUD) Tag of the application
- Domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- Name string
Friendly name of the Access Application.
- Session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.- Zone
Id string The DNS zone to which the access rule should be added.
- aud string
Application Audience (AUD) Tag of the application
- domain string
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- name string
Friendly name of the Access Application.
- session
Duration string How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.- zone
Id string The DNS zone to which the access rule should be added.
- aud str
Application Audience (AUD) Tag of the application
- domain str
The complete URL of the asset you wish to put Cloudflare Access in front of. Can include subdomains or paths. Or both.
- name str
Friendly name of the Access Application.
- session_
duration str How often a user will be forced to re-authorise. Must be one of
30m,6h,12h,24h,168h,730h.- zone_
id str The DNS zone to which the access rule should be added.
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.