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

def AccessApplication(resource_name, opts=None, domain=None, name=None, session_duration=None, zone_id=None, __props__=None);
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.

ZoneId string

The DNS zone to which the access rule should be added.

SessionDuration 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.

ZoneId string

The DNS zone to which the access rule should be added.

SessionDuration 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.

zoneId string

The DNS zone to which the access rule should be added.

sessionDuration 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:

Aud string

Application Audience (AUD) Tag of the application

Id string
The provider-assigned unique ID for this managed resource.
Aud string

Application Audience (AUD) Tag of the application

Id string
The provider-assigned unique ID for this managed resource.
aud string

Application Audience (AUD) Tag of the application

id string
The provider-assigned unique ID for this managed resource.
aud str

Application Audience (AUD) Tag of the application

id str
The provider-assigned unique ID for this managed resource.

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): AccessApplication
static 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.

SessionDuration string

How often a user will be forced to re-authorise. Must be one of 30m, 6h, 12h, 24h, 168h, 730h.

ZoneId 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.

SessionDuration string

How often a user will be forced to re-authorise. Must be one of 30m, 6h, 12h, 24h, 168h, 730h.

ZoneId 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.

sessionDuration string

How often a user will be forced to re-authorise. Must be one of 30m, 6h, 12h, 24h, 168h, 730h.

zoneId 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 cloudflare Terraform Provider.