AccessGroup

class AccessGroup : KotlinCustomResource

Provides a Cloudflare Access Group resource. Access Groups are used in conjunction with Access Policies to restrict access to a particular resource based on group membership.

It's required that an account_id or zone_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 the zone_id argument.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessGroup;
import com.pulumi.cloudflare.AccessGroupArgs;
import com.pulumi.cloudflare.inputs.AccessGroupIncludeArgs;
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 testGroupAccessGroup = new AccessGroup("testGroupAccessGroup", AccessGroupArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("staging group")
.includes(AccessGroupIncludeArgs.builder()
.emails("test@example.com")
.build())
.build());
var testGroupIndex_accessGroupAccessGroup = new AccessGroup("testGroupIndex/accessGroupAccessGroup", AccessGroupArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("staging group")
.includes(AccessGroupIncludeArgs.builder()
.emails("test@example.com")
.build())
.requires(AccessGroupRequireArgs.builder()
.ips(var_.office_ip())
.build())
.build());
}
}

Import

$ pulumi import cloudflare:index/accessGroup:AccessGroup example <account_id>/<group_id>

Properties

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

The account identifier to target for the resource. Conflicts with zone_id. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
Link copied to clipboard
val name: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

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