Class AccessPolicy
Provides a Cloudflare Access Policy resource. Access Policies are used in conjunction with Access Applications to restrict access to a particular resource.
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class AccessPolicy : CustomResource
Constructors
View SourceAccessPolicy(String, AccessPolicyArgs, CustomResourceOptions)
Create a AccessPolicy resource with the given unique name, arguments, and options.
Declaration
public AccessPolicy(string name, AccessPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AccessPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApplicationId
The ID of the application the policy is associated with.
Declaration
public Output<string> ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Decision
Defines the action Access will take if the policy matches the user.
Allowed values: allow, deny, non_identity, bypass
Declaration
public Output<string> Decision { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Excludes
A series of access conditions, see Access Groups.
Declaration
public Output<ImmutableArray<AccessPolicyExclude>> Excludes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessPolicyExclude>> |
Includes
A series of access conditions, see Access Groups.
Declaration
public Output<ImmutableArray<AccessPolicyInclude>> Includes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessPolicyInclude>> |
Name
Friendly name of the Access Application.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Precedence
The unique precedence for policies on a single application. Integer.
Declaration
public Output<int?> Precedence { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Requires
A series of access conditions, see Access Groups.
Declaration
public Output<ImmutableArray<AccessPolicyRequire>> Requires { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AccessPolicyRequire>> |
ZoneId
The DNS zone to which the access rule should be added.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AccessPolicyState, CustomResourceOptions)
Get an existing AccessPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AccessPolicy Get(string name, Input<string> id, AccessPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AccessPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AccessPolicy |