AccessGroup
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.
Conditions
require, exclude and include arguments share the available
conditions which can be applied. The conditions are:
ip- (Optional) A list of IP addresses or ranges. Example:ip = ["1.2.3.4", "10.0.0.0/2"]email- (Optional) A list of email addresses. Example:email = ["test@example.com"]email_domain- (Optional) A list of email domains. Example:email_domain = ["example.com"]service_token- (Optional) A list of service token ids. Example:service_token = [cloudflare_access_service_token.demo.id]any_valid_service_token- (Optional) Boolean indicating if allow all tokens to be granted. Example:any_valid_service_token = truegroup- (Optional) A list of access group ids. Example:group = [cloudflare_access_group.demo.id]everyone- (Optional) Boolean indicating permitting access for all requests. Example:everyone = truecertificate- (Optional) Whether to use mTLS certificate authentication.common_name- (Optional) Use a certificate common name to authenticate with.gsuite- (Optional) Use GSuite as the authentication mechanism. Example:
# ... other configuration
include {
gsuite {
email = "admins@example.com"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}github- (Optional) Use a GitHub team as theincludecondition. Example:
# ... other configuration
include {
github {
name = "my-github-team-name"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}azure- (Optional) Use Azure AD as theincludecondition. Example:
# ... other configuration
include {
azure {
id = "86773093-5feb-48dd-814b-7ccd3676ff50e"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}okta- (Optional) Use Okta as theincludecondition. Example:
# ... other configuration
include {
okta {
name = "admins"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}saml- (Optional) Use an external SAML setup as theincludecondition. Example:
# ... other configuration
include {
saml {
attribute_name = "group"
attribute_value = "admins"
identity_provider_id = "ca298b82-93b5-41bf-bc2d-10493f09b761"
}
}Create a AccessGroup Resource
new AccessGroup(name: string, args: AccessGroupArgs, opts?: CustomResourceOptions);def AccessGroup(resource_name, opts=None, account_id=None, excludes=None, includes=None, name=None, requires=None, __props__=None);func NewAccessGroup(ctx *Context, name string, args AccessGroupArgs, opts ...ResourceOption) (*AccessGroup, error)public AccessGroup(string name, AccessGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AccessGroupArgs
- 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 AccessGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AccessGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AccessGroup resource accepts the following input properties:
- Account
Id string The ID of the account the group is associated with.
- Includes
List<Access
Group Include Args> A series of access conditions, see below for full list.
- Name string
Friendly name of the Access Group.
- Excludes
List<Access
Group Exclude Args> A series of access conditions, see below for full list.
- Requires
List<Access
Group Require Args> A series of access conditions, see below for full list.
- Account
Id string The ID of the account the group is associated with.
- Includes
[]Access
Group Include A series of access conditions, see below for full list.
- Name string
Friendly name of the Access Group.
- Excludes
[]Access
Group Exclude A series of access conditions, see below for full list.
- Requires
[]Access
Group Require A series of access conditions, see below for full list.
- account
Id string The ID of the account the group is associated with.
- includes
Access
Group Include[] A series of access conditions, see below for full list.
- name string
Friendly name of the Access Group.
- excludes
Access
Group Exclude[] A series of access conditions, see below for full list.
- requires
Access
Group Require[] A series of access conditions, see below for full list.
- account_
id str The ID of the account the group is associated with.
- includes
List[Access
Group Include] A series of access conditions, see below for full list.
- name str
Friendly name of the Access Group.
- excludes
List[Access
Group Exclude] A series of access conditions, see below for full list.
- requires
List[Access
Group Require] A series of access conditions, see below for full list.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessGroup resource produces the following output properties:
Look up an Existing AccessGroup Resource
Get an existing AccessGroup 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?: AccessGroupState, opts?: CustomResourceOptions): AccessGroupstatic get(resource_name, id, opts=None, account_id=None, excludes=None, includes=None, name=None, requires=None, __props__=None);func GetAccessGroup(ctx *Context, name string, id IDInput, state *AccessGroupState, opts ...ResourceOption) (*AccessGroup, error)public static AccessGroup Get(string name, Input<string> id, AccessGroupState? 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:
- Account
Id string The ID of the account the group is associated with.
- Excludes
List<Access
Group Exclude Args> A series of access conditions, see below for full list.
- Includes
List<Access
Group Include Args> A series of access conditions, see below for full list.
- Name string
Friendly name of the Access Group.
- Requires
List<Access
Group Require Args> A series of access conditions, see below for full list.
- Account
Id string The ID of the account the group is associated with.
- Excludes
[]Access
Group Exclude A series of access conditions, see below for full list.
- Includes
[]Access
Group Include A series of access conditions, see below for full list.
- Name string
Friendly name of the Access Group.
- Requires
[]Access
Group Require A series of access conditions, see below for full list.
- account
Id string The ID of the account the group is associated with.
- excludes
Access
Group Exclude[] A series of access conditions, see below for full list.
- includes
Access
Group Include[] A series of access conditions, see below for full list.
- name string
Friendly name of the Access Group.
- requires
Access
Group Require[] A series of access conditions, see below for full list.
- account_
id str The ID of the account the group is associated with.
- excludes
List[Access
Group Exclude] A series of access conditions, see below for full list.
- includes
List[Access
Group Include] A series of access conditions, see below for full list.
- name str
Friendly name of the Access Group.
- requires
List[Access
Group Require] A series of access conditions, see below for full list.
Supporting Types
AccessGroupExclude
- Any
Valid boolService Token - Azures
List<Access
Group Exclude Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Group Exclude Github Args> - Groups List<string>
- Gsuites
List<Access
Group Exclude Gsuite Args> - Ips List<string>
- Oktas
List<Access
Group Exclude Okta Args> - Samls
List<Access
Group Exclude Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Group Exclude Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Group Exclude Github - Groups []string
- Gsuites
[]Access
Group Exclude Gsuite - Ips []string
- Oktas
[]Access
Group Exclude Okta - Samls
[]Access
Group Exclude Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Group Exclude Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Group Exclude Github[] - groups string[]
- gsuites
Access
Group Exclude Gsuite[] - ips string[]
- oktas
Access
Group Exclude Okta[] - samls
Access
Group Exclude Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Group Exclude Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Group Exclude Github] - groups List[str]
- gsuites
List[Access
Group Exclude Gsuite] - ips List[str]
- oktas
List[Access
Group Exclude Okta] - samls
List[Access
Group Exclude Saml] - service
Tokens List[str]
AccessGroupExcludeAzure
AccessGroupExcludeGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupExcludeGsuite
AccessGroupExcludeOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupExcludeSaml
AccessGroupInclude
- Any
Valid boolService Token - Azures
List<Access
Group Include Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Group Include Github Args> - Groups List<string>
- Gsuites
List<Access
Group Include Gsuite Args> - Ips List<string>
- Oktas
List<Access
Group Include Okta Args> - Samls
List<Access
Group Include Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Group Include Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Group Include Github - Groups []string
- Gsuites
[]Access
Group Include Gsuite - Ips []string
- Oktas
[]Access
Group Include Okta - Samls
[]Access
Group Include Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Group Include Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Group Include Github[] - groups string[]
- gsuites
Access
Group Include Gsuite[] - ips string[]
- oktas
Access
Group Include Okta[] - samls
Access
Group Include Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Group Include Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Group Include Github] - groups List[str]
- gsuites
List[Access
Group Include Gsuite] - ips List[str]
- oktas
List[Access
Group Include Okta] - samls
List[Access
Group Include Saml] - service
Tokens List[str]
AccessGroupIncludeAzure
AccessGroupIncludeGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupIncludeGsuite
AccessGroupIncludeOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupIncludeSaml
AccessGroupRequire
- Any
Valid boolService Token - Azures
List<Access
Group Require Azure Args> - Certificate bool
- Common
Name string - Email
Domains List<string> - Emails List<string>
- Everyone bool
- Githubs
List<Access
Group Require Github Args> - Groups List<string>
- Gsuites
List<Access
Group Require Gsuite Args> - Ips List<string>
- Oktas
List<Access
Group Require Okta Args> - Samls
List<Access
Group Require Saml Args> - Service
Tokens List<string>
- Any
Valid boolService Token - Azures
[]Access
Group Require Azure - Certificate bool
- Common
Name string - Email
Domains []string - Emails []string
- Everyone bool
- Githubs
[]Access
Group Require Github - Groups []string
- Gsuites
[]Access
Group Require Gsuite - Ips []string
- Oktas
[]Access
Group Require Okta - Samls
[]Access
Group Require Saml - Service
Tokens []string
- any
Valid booleanService Token - azures
Access
Group Require Azure[] - certificate boolean
- common
Name string - email
Domains string[] - emails string[]
- everyone boolean
- githubs
Access
Group Require Github[] - groups string[]
- gsuites
Access
Group Require Gsuite[] - ips string[]
- oktas
Access
Group Require Okta[] - samls
Access
Group Require Saml[] - service
Tokens string[]
- any
Valid boolService Token - azures
List[Access
Group Require Azure] - certificate bool
- common
Name str - email
Domains List[str] - emails List[str]
- everyone bool
- githubs
List[Access
Group Require Github] - groups List[str]
- gsuites
List[Access
Group Require Gsuite] - ips List[str]
- oktas
List[Access
Group Require Okta] - samls
List[Access
Group Require Saml] - service
Tokens List[str]
AccessGroupRequireAzure
AccessGroupRequireGithub
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupRequireGsuite
AccessGroupRequireOkta
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- Identity
Provider stringId - Name string
Friendly name of the Access Group.
- identity
Provider stringId - name string
Friendly name of the Access Group.
- identity
Provider strId - name str
Friendly name of the Access Group.
AccessGroupRequireSaml
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.