AccountArgs

data class AccountArgs(val enforceTwofactor: Output<Boolean>? = null, val name: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<AccountArgs>

Provides a Cloudflare Account resource. Account is the basic resource for working with Cloudflare zones, teams and users.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.Account;
import com.pulumi.cloudflare.AccountArgs;
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 Account("example", AccountArgs.builder()
.enforceTwofactor(true)
.name("some-enterprise-account")
.type("enterprise")
.build());
}
}

Import

$ pulumi import cloudflare:index/account:Account example <account_id>

Constructors

Link copied to clipboard
constructor(enforceTwofactor: Output<Boolean>? = null, name: Output<String>? = null, type: Output<String>? = null)

Properties

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

Whether 2FA is enforced on the account. Defaults to false.

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

The name of the account that is displayed in the Cloudflare dashboard.

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

Account type. Available values: enterprise, standard. Defaults to standard. Modifying this attribute will force creation of a new resource.

Functions

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