AccessPolicy
Provides a Cloudflare Access Policy resource. Access Policies are used in conjunction with Access Applications to restrict access to a particular resource.
Create a AccessPolicy Resource
new AccessPolicy(name: string, args: AccessPolicyArgs, opts?: CustomResourceOptions);def AccessPolicy(resource_name, opts=None, application_id=None, decision=None, excludes=None, includes=None, name=None, precedence=None, requires=None, zone_id=None, __props__=None);func NewAccessPolicy(ctx *Context, name string, args AccessPolicyArgs, opts ...ResourceOption) (*AccessPolicy, error)public AccessPolicy(string name, AccessPolicyArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AccessPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AccessPolicy resource accepts the following input properties:
- Application
Id string The ID of the application the policy is associated with.
- Decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- Includes
List<Access
Policy Include Args> A series of access conditions, see Access Groups.
- Name string
Friendly name of the Access Application.
- Zone
Id string The DNS zone to which the access rule should be added.
- Excludes
List<Access
Policy Exclude Args> A series of access conditions, see Access Groups.
- Precedence int
The unique precedence for policies on a single application. Integer.
- Requires
List<Access
Policy Require Args> A series of access conditions, see Access Groups.
- Application
Id string The ID of the application the policy is associated with.
- Decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- Includes
[]Access
Policy Include A series of access conditions, see Access Groups.
- Name string
Friendly name of the Access Application.
- Zone
Id string The DNS zone to which the access rule should be added.
- Excludes
[]Access
Policy Exclude A series of access conditions, see Access Groups.
- Precedence int
The unique precedence for policies on a single application. Integer.
- Requires
[]Access
Policy Require A series of access conditions, see Access Groups.
- application
Id string The ID of the application the policy is associated with.
- decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- includes
Access
Policy Include[] A series of access conditions, see Access Groups.
- name string
Friendly name of the Access Application.
- zone
Id string The DNS zone to which the access rule should be added.
- excludes
Access
Policy Exclude[] A series of access conditions, see Access Groups.
- precedence number
The unique precedence for policies on a single application. Integer.
- requires
Access
Policy Require[] A series of access conditions, see Access Groups.
- application_
id str The ID of the application the policy is associated with.
- decision str
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- includes
List[Access
Policy Include] A series of access conditions, see Access Groups.
- name str
Friendly name of the Access Application.
- zone_
id str The DNS zone to which the access rule should be added.
- excludes
List[Access
Policy Exclude] A series of access conditions, see Access Groups.
- precedence float
The unique precedence for policies on a single application. Integer.
- requires
List[Access
Policy Require] A series of access conditions, see Access Groups.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPolicy resource produces the following output properties:
Look up an Existing AccessPolicy Resource
Get an existing AccessPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccessPolicyState, opts?: CustomResourceOptions): AccessPolicystatic get(resource_name, id, opts=None, application_id=None, decision=None, excludes=None, includes=None, name=None, precedence=None, requires=None, zone_id=None, __props__=None);func GetAccessPolicy(ctx *Context, name string, id IDInput, state *AccessPolicyState, opts ...ResourceOption) (*AccessPolicy, error)public static AccessPolicy Get(string name, Input<string> id, AccessPolicyState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Application
Id string The ID of the application the policy is associated with.
- Decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- Excludes
List<Access
Policy Exclude Args> A series of access conditions, see Access Groups.
- Includes
List<Access
Policy Include Args> A series of access conditions, see Access Groups.
- Name string
Friendly name of the Access Application.
- Precedence int
The unique precedence for policies on a single application. Integer.
- Requires
List<Access
Policy Require Args> A series of access conditions, see Access Groups.
- Zone
Id string The DNS zone to which the access rule should be added.
- Application
Id string The ID of the application the policy is associated with.
- Decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- Excludes
[]Access
Policy Exclude A series of access conditions, see Access Groups.
- Includes
[]Access
Policy Include A series of access conditions, see Access Groups.
- Name string
Friendly name of the Access Application.
- Precedence int
The unique precedence for policies on a single application. Integer.
- Requires
[]Access
Policy Require A series of access conditions, see Access Groups.
- Zone
Id string The DNS zone to which the access rule should be added.
- application
Id string The ID of the application the policy is associated with.
- decision string
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- excludes
Access
Policy Exclude[] A series of access conditions, see Access Groups.
- includes
Access
Policy Include[] A series of access conditions, see Access Groups.
- name string
Friendly name of the Access Application.
- precedence number
The unique precedence for policies on a single application. Integer.
- requires
Access
Policy Require[] A series of access conditions, see Access Groups.
- zone
Id string The DNS zone to which the access rule should be added.
- application_
id str The ID of the application the policy is associated with.
- decision str
Defines the action Access will take if the policy matches the user. Allowed values:
allow,deny,non_identity,bypass- excludes
List[Access
Policy Exclude] A series of access conditions, see Access Groups.
- includes
List[Access
Policy Include] A series of access conditions, see Access Groups.
- name str
Friendly name of the Access Application.
- precedence float
The unique precedence for policies on a single application. Integer.
- requires
List[Access
Policy Require] A series of access conditions, see Access Groups.
- zone_
id str The DNS zone to which the access rule should be added.
Supporting Types
AccessPolicyExclude
- Any
Valid boolService Token - Azures
List<Access
Policy Exclude Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Policy Exclude Github Args> - Groups List<string>
- Gsuites
List<Access
Policy Exclude Gsuite Args> - Ips List<string>
- Oktas
List<Access
Policy Exclude Okta Args> - Samls
List<Access
Policy Exclude Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Policy Exclude Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Policy Exclude Github - Groups []string
- Gsuites
[]Access
Policy Exclude Gsuite - Ips []string
- Oktas
[]Access
Policy Exclude Okta - Samls
[]Access
Policy Exclude Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Policy Exclude Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Policy Exclude Github[] - groups string[]
- gsuites
Access
Policy Exclude Gsuite[] - ips string[]
- oktas
Access
Policy Exclude Okta[] - samls
Access
Policy Exclude Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Policy Exclude Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Policy Exclude Github] - groups List[str]
- gsuites
List[Access
Policy Exclude Gsuite] - ips List[str]
- oktas
List[Access
Policy Exclude Okta] - samls
List[Access
Policy Exclude Saml] - service
Tokens List[str]
AccessPolicyExcludeAzure
AccessPolicyExcludeGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyExcludeGsuite
AccessPolicyExcludeOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyExcludeSaml
AccessPolicyInclude
- Any
Valid boolService Token - Azures
List<Access
Policy Include Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Policy Include Github Args> - Groups List<string>
- Gsuites
List<Access
Policy Include Gsuite Args> - Ips List<string>
- Oktas
List<Access
Policy Include Okta Args> - Samls
List<Access
Policy Include Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Policy Include Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Policy Include Github - Groups []string
- Gsuites
[]Access
Policy Include Gsuite - Ips []string
- Oktas
[]Access
Policy Include Okta - Samls
[]Access
Policy Include Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Policy Include Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Policy Include Github[] - groups string[]
- gsuites
Access
Policy Include Gsuite[] - ips string[]
- oktas
Access
Policy Include Okta[] - samls
Access
Policy Include Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Policy Include Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Policy Include Github] - groups List[str]
- gsuites
List[Access
Policy Include Gsuite] - ips List[str]
- oktas
List[Access
Policy Include Okta] - samls
List[Access
Policy Include Saml] - service
Tokens List[str]
AccessPolicyIncludeAzure
AccessPolicyIncludeGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyIncludeGsuite
AccessPolicyIncludeOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyIncludeSaml
AccessPolicyRequire
- Any
Valid boolService Token - Azures
List<Access
Policy Require Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Policy Require Github Args> - Groups List<string>
- Gsuites
List<Access
Policy Require Gsuite Args> - Ips List<string>
- Oktas
List<Access
Policy Require Okta Args> - Samls
List<Access
Policy Require Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Policy Require Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Policy Require Github - Groups []string
- Gsuites
[]Access
Policy Require Gsuite - Ips []string
- Oktas
[]Access
Policy Require Okta - Samls
[]Access
Policy Require Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Policy Require Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Policy Require Github[] - groups string[]
- gsuites
Access
Policy Require Gsuite[] - ips string[]
- oktas
Access
Policy Require Okta[] - samls
Access
Policy Require Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Policy Require Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Policy Require Github] - groups List[str]
- gsuites
List[Access
Policy Require Gsuite] - ips List[str]
- oktas
List[Access
Policy Require Okta] - samls
List[Access
Policy Require Saml] - service
Tokens List[str]
AccessPolicyRequireAzure
AccessPolicyRequireGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyRequireGsuite
AccessPolicyRequireOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- Identity
Provider stringId - Name string
Friendly name of the Access Application.
- identity
Provider stringId - name string
Friendly name of the Access Application.
- identity
Provider strId - name str
Friendly name of the Access Application.
AccessPolicyRequireSaml
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.