Access Application Args
data class AccessApplicationArgs(val accountId: Output<String>? = null, val allowedIdps: Output<List<String>>? = null, val appLauncherVisible: Output<Boolean>? = null, val autoRedirectToIdentity: Output<Boolean>? = null, val corsHeaders: Output<List<AccessApplicationCorsHeaderArgs>>? = null, val customDenyMessage: Output<String>? = null, val customDenyUrl: Output<String>? = null, val customNonIdentityDenyUrl: Output<String>? = null, val customPages: Output<List<String>>? = null, val domain: Output<String>? = null, val enableBindingCookie: Output<Boolean>? = null, val httpOnlyCookieAttribute: Output<Boolean>? = null, val logoUrl: Output<String>? = null, val name: Output<String>? = null, val saasApp: Output<AccessApplicationSaasAppArgs>? = null, val sameSiteCookieAttribute: Output<String>? = null, val selfHostedDomains: Output<List<String>>? = null, val serviceAuth401Redirect: Output<Boolean>? = null, val sessionDuration: Output<String>? = null, val skipInterstitial: Output<Boolean>? = null, val tags: Output<List<String>>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessApplicationArgs>
Provides a Cloudflare Access Application resource. Access Applications are used to restrict access to a whole application using an authorisation gateway managed by Cloudflare.
It's required that an
account_id
orzone_id
is provided and in most cases using either is fine. However, if you're using a scoped access token, you must provide the argument that matches the token's scope. For example, an access token that is scoped to the "example.com" zone needs to use thezone_id
argument.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessApplication;
import com.pulumi.cloudflare.AccessApplicationArgs;
import com.pulumi.cloudflare.inputs.AccessApplicationCorsHeaderArgs;
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 stagingApp = new AccessApplication("stagingApp", AccessApplicationArgs.builder()
.corsHeaders(AccessApplicationCorsHeaderArgs.builder()
.allowCredentials(true)
.allowedMethods(
"GET",
"POST",
"OPTIONS")
.allowedOrigins("https://example.com")
.maxAge(10)
.build())
.domain("staging.example.com")
.name("staging application")
.sessionDuration("24h")
.type("self_hosted")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}
Content copied to clipboard
Import
$ pulumi import cloudflare:index/accessApplication:AccessApplication example <account_id>/<application_id>
Content copied to clipboard
Constructors
Link copied to clipboard
fun AccessApplicationArgs(accountId: Output<String>? = null, allowedIdps: Output<List<String>>? = null, appLauncherVisible: Output<Boolean>? = null, autoRedirectToIdentity: Output<Boolean>? = null, corsHeaders: Output<List<AccessApplicationCorsHeaderArgs>>? = null, customDenyMessage: Output<String>? = null, customDenyUrl: Output<String>? = null, customNonIdentityDenyUrl: Output<String>? = null, customPages: Output<List<String>>? = null, domain: Output<String>? = null, enableBindingCookie: Output<Boolean>? = null, httpOnlyCookieAttribute: Output<Boolean>? = null, logoUrl: Output<String>? = null, name: Output<String>? = null, saasApp: Output<AccessApplicationSaasAppArgs>? = null, sameSiteCookieAttribute: Output<String>? = null, selfHostedDomains: Output<List<String>>? = null, serviceAuth401Redirect: Output<Boolean>? = null, sessionDuration: Output<String>? = null, skipInterstitial: Output<Boolean>? = null, tags: Output<List<String>>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard