AccessOrganizationArgs

data class AccessOrganizationArgs(val accountId: Output<String>? = null, val allowAuthenticateViaWarp: Output<Boolean>? = null, val authDomain: Output<String>? = null, val autoRedirectToIdentity: Output<Boolean>? = null, val customPages: Output<List<AccessOrganizationCustomPageArgs>>? = null, val isUiReadOnly: Output<Boolean>? = null, val loginDesigns: Output<List<AccessOrganizationLoginDesignArgs>>? = null, val name: Output<String>? = null, val sessionDuration: Output<String>? = null, val uiReadOnlyToggleReason: Output<String>? = null, val userSeatExpirationInactiveTime: Output<String>? = null, val warpAuthSessionDuration: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessOrganizationArgs>

A Zero Trust organization defines the user login experience.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.AccessOrganization("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "example.cloudflareaccess.com",
authDomain: "example.cloudflareaccess.com",
isUiReadOnly: false,
userSeatExpirationInactiveTime: "720h",
autoRedirectToIdentity: false,
loginDesigns: [{
backgroundColor: "#ffffff",
textColor: "#000000",
logoPath: "https://example.com/logo.png",
headerText: "My header text",
footerText: "My footer text",
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.AccessOrganization("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="example.cloudflareaccess.com",
auth_domain="example.cloudflareaccess.com",
is_ui_read_only=False,
user_seat_expiration_inactive_time="720h",
auto_redirect_to_identity=False,
login_designs=[{
"background_color": "#ffffff",
"text_color": "#000000",
"logo_path": "https://example.com/logo.png",
"header_text": "My header text",
"footer_text": "My footer text",
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.AccessOrganization("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "example.cloudflareaccess.com",
AuthDomain = "example.cloudflareaccess.com",
IsUiReadOnly = false,
UserSeatExpirationInactiveTime = "720h",
AutoRedirectToIdentity = false,
LoginDesigns = new[]
{
new Cloudflare.Inputs.AccessOrganizationLoginDesignArgs
{
BackgroundColor = "#ffffff",
TextColor = "#000000",
LogoPath = "https://example.com/logo.png",
HeaderText = "My header text",
FooterText = "My footer text",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAccessOrganization(ctx, "example", &cloudflare.AccessOrganizationArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("example.cloudflareaccess.com"),
AuthDomain: pulumi.String("example.cloudflareaccess.com"),
IsUiReadOnly: pulumi.Bool(false),
UserSeatExpirationInactiveTime: pulumi.String("720h"),
AutoRedirectToIdentity: pulumi.Bool(false),
LoginDesigns: cloudflare.AccessOrganizationLoginDesignArray{
&cloudflare.AccessOrganizationLoginDesignArgs{
BackgroundColor: pulumi.String("#ffffff"),
TextColor: pulumi.String("#000000"),
LogoPath: pulumi.String("https://example.com/logo.png"),
HeaderText: pulumi.String("My header text"),
FooterText: pulumi.String("My footer text"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessOrganization;
import com.pulumi.cloudflare.AccessOrganizationArgs;
import com.pulumi.cloudflare.inputs.AccessOrganizationLoginDesignArgs;
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 AccessOrganization("example", AccessOrganizationArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("example.cloudflareaccess.com")
.authDomain("example.cloudflareaccess.com")
.isUiReadOnly(false)
.userSeatExpirationInactiveTime("720h")
.autoRedirectToIdentity(false)
.loginDesigns(AccessOrganizationLoginDesignArgs.builder()
.backgroundColor("#ffffff")
.textColor("#000000")
.logoPath("https://example.com/logo.png")
.headerText("My header text")
.footerText("My footer text")
.build())
.build());
}
}
resources:
example:
type: cloudflare:AccessOrganization
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: example.cloudflareaccess.com
authDomain: example.cloudflareaccess.com
isUiReadOnly: false
userSeatExpirationInactiveTime: 720h
autoRedirectToIdentity: false
loginDesigns:
- backgroundColor: '#ffffff'
textColor: '#000000'
logoPath: https://example.com/logo.png
headerText: My header text
footerText: My footer text

Import

$ pulumi import cloudflare:index/accessOrganization:AccessOrganization example <account_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, allowAuthenticateViaWarp: Output<Boolean>? = null, authDomain: Output<String>? = null, autoRedirectToIdentity: Output<Boolean>? = null, customPages: Output<List<AccessOrganizationCustomPageArgs>>? = null, isUiReadOnly: Output<Boolean>? = null, loginDesigns: Output<List<AccessOrganizationLoginDesignArgs>>? = null, name: Output<String>? = null, sessionDuration: Output<String>? = null, uiReadOnlyToggleReason: Output<String>? = null, userSeatExpirationInactiveTime: Output<String>? = null, warpAuthSessionDuration: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Conflicts with zone_id.

Link copied to clipboard
val allowAuthenticateViaWarp: Output<Boolean>? = null

When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.

Link copied to clipboard
val authDomain: Output<String>? = null

The unique subdomain assigned to your Zero Trust organization.

Link copied to clipboard
val autoRedirectToIdentity: Output<Boolean>? = null

When set to true, users skip the identity provider selection step during login.

Link copied to clipboard

Custom pages for your Zero Trust organization.

Link copied to clipboard
val isUiReadOnly: Output<Boolean>? = null

When set to true, this will disable all editing of Access resources via the Zero Trust Dashboard.

Link copied to clipboard
Link copied to clipboard
val name: Output<String>? = null

The name of your Zero Trust organization.

Link copied to clipboard
val sessionDuration: Output<String>? = null

How often a user will be forced to re-authorise. Must be in the format 48h or 2h45m.

Link copied to clipboard
val uiReadOnlyToggleReason: Output<String>? = null

A description of the reason why the UI read only field is being toggled.

Link copied to clipboard

The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Must be in the format 300ms or 2h45m.

Link copied to clipboard
val warpAuthSessionDuration: Output<String>? = null

The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource. Conflicts with account_id.

Functions

Link copied to clipboard
open override fun toJava(): AccessOrganizationArgs