AccessPolicy

class AccessPolicy : KotlinCustomResource

Provides a Cloudflare Access Policy resource. Access Policies are used in conjunction with Access Applications to restrict access to a particular resource.

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. If 'application_id' is omitted, the policy created can be reused by multiple access applications. Any cloudflare.AccessApplication resource can reference reusable policies through its policies argument. To destroy a reusable policy and remove it from all applications' policies lists on the same apply, preemptively set the lifecycle option create_before_destroy to true on the 'cloudflare_access_policy' resource.

Import

$ pulumi import cloudflare:index/accessPolicy:AccessPolicy example account/<account_id>/<application_id>/<policy_id>

Properties

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

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

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

The ID of the application the policy is associated with. Required when using precedence. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The rules that define how users may connect to the targets secured by your application. Only applicable to Infrastructure Applications, in which case this field is required.

Link copied to clipboard
val decision: Output<String>

Defines the action Access will take if the policy matches the user. Available values: allow, deny, non_identity, bypass.

Link copied to clipboard

A series of access conditions, see Access Groups.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A series of access conditions, see Access Groups.

Link copied to clipboard

Require this application to be served in an isolated browser for users matching this policy.

Link copied to clipboard
val name: Output<String>

Friendly name of the Access Policy.

Link copied to clipboard
val precedence: Output<Int>?

The unique precedence for policies on a single application. Required when using application_id.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.

Link copied to clipboard

Whether to prompt the user for a justification for accessing the resource.

Link copied to clipboard

A series of access conditions, see Access Groups.

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

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

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.