cloudflare.AccessPolicy
Explore with Pulumi AI
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_idorzone_idis 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 thezone_idargument. If ‘application_id’ is omitted, the policy created can be reused by multiple access applications. Any cloudflare.AccessApplication resource can reference reusable policies through itspoliciesargument. To destroy a reusable policy and remove it from all applications’ policies lists on the same apply, preemptively set the lifecycle optioncreate_before_destroyto true on the ‘cloudflare_access_policy’ resource.
Create AccessPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessPolicy(name: string, args: AccessPolicyArgs, opts?: CustomResourceOptions);@overload
def AccessPolicy(resource_name: str,
                 args: AccessPolicyArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def AccessPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 decision: Optional[str] = None,
                 name: Optional[str] = None,
                 includes: Optional[Sequence[AccessPolicyIncludeArgs]] = None,
                 isolation_required: Optional[bool] = None,
                 connection_rules: Optional[AccessPolicyConnectionRulesArgs] = None,
                 approval_required: Optional[bool] = None,
                 excludes: Optional[Sequence[AccessPolicyExcludeArgs]] = None,
                 approval_groups: Optional[Sequence[AccessPolicyApprovalGroupArgs]] = None,
                 account_id: Optional[str] = None,
                 application_id: Optional[str] = None,
                 precedence: Optional[int] = None,
                 purpose_justification_prompt: Optional[str] = None,
                 purpose_justification_required: Optional[bool] = None,
                 requires: Optional[Sequence[AccessPolicyRequireArgs]] = None,
                 session_duration: Optional[str] = None,
                 zone_id: Optional[str] = None)func NewAccessPolicy(ctx *Context, name string, args AccessPolicyArgs, opts ...ResourceOption) (*AccessPolicy, error)public AccessPolicy(string name, AccessPolicyArgs args, CustomResourceOptions? opts = null)
public AccessPolicy(String name, AccessPolicyArgs args)
public AccessPolicy(String name, AccessPolicyArgs args, CustomResourceOptions options)
type: cloudflare:AccessPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args AccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args AccessPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accessPolicyResource = new Cloudflare.AccessPolicy("accessPolicyResource", new()
{
    Decision = "string",
    Name = "string",
    Includes = new[]
    {
        new Cloudflare.Inputs.AccessPolicyIncludeArgs
        {
            AnyValidServiceToken = false,
            AuthContexts = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeAuthContextArgs
                {
                    AcId = "string",
                    Id = "string",
                    IdentityProviderId = "string",
                },
            },
            AuthMethod = "string",
            Azures = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeAzureArgs
                {
                    IdentityProviderId = "string",
                    Ids = new[]
                    {
                        "string",
                    },
                },
            },
            Certificate = false,
            CommonName = "string",
            CommonNames = new[]
            {
                "string",
            },
            DevicePostures = new[]
            {
                "string",
            },
            EmailDomains = new[]
            {
                "string",
            },
            EmailLists = new[]
            {
                "string",
            },
            Emails = new[]
            {
                "string",
            },
            Everyone = false,
            ExternalEvaluation = new Cloudflare.Inputs.AccessPolicyIncludeExternalEvaluationArgs
            {
                EvaluateUrl = "string",
                KeysUrl = "string",
            },
            Geos = new[]
            {
                "string",
            },
            Githubs = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeGithubArgs
                {
                    IdentityProviderId = "string",
                    Name = "string",
                    Teams = new[]
                    {
                        "string",
                    },
                },
            },
            Groups = new[]
            {
                "string",
            },
            Gsuites = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeGsuiteArgs
                {
                    Emails = new[]
                    {
                        "string",
                    },
                    IdentityProviderId = "string",
                },
            },
            IpLists = new[]
            {
                "string",
            },
            Ips = new[]
            {
                "string",
            },
            LoginMethods = new[]
            {
                "string",
            },
            Oktas = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeOktaArgs
                {
                    IdentityProviderId = "string",
                    Names = new[]
                    {
                        "string",
                    },
                },
            },
            Samls = new[]
            {
                new Cloudflare.Inputs.AccessPolicyIncludeSamlArgs
                {
                    AttributeName = "string",
                    AttributeValue = "string",
                    IdentityProviderId = "string",
                },
            },
            ServiceTokens = new[]
            {
                "string",
            },
        },
    },
    IsolationRequired = false,
    ConnectionRules = new Cloudflare.Inputs.AccessPolicyConnectionRulesArgs
    {
        Ssh = new Cloudflare.Inputs.AccessPolicyConnectionRulesSshArgs
        {
            Usernames = new[]
            {
                "string",
            },
            AllowEmailAlias = false,
        },
    },
    ApprovalRequired = false,
    Excludes = new[]
    {
        new Cloudflare.Inputs.AccessPolicyExcludeArgs
        {
            AnyValidServiceToken = false,
            AuthContexts = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeAuthContextArgs
                {
                    AcId = "string",
                    Id = "string",
                    IdentityProviderId = "string",
                },
            },
            AuthMethod = "string",
            Azures = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeAzureArgs
                {
                    IdentityProviderId = "string",
                    Ids = new[]
                    {
                        "string",
                    },
                },
            },
            Certificate = false,
            CommonName = "string",
            CommonNames = new[]
            {
                "string",
            },
            DevicePostures = new[]
            {
                "string",
            },
            EmailDomains = new[]
            {
                "string",
            },
            EmailLists = new[]
            {
                "string",
            },
            Emails = new[]
            {
                "string",
            },
            Everyone = false,
            ExternalEvaluation = new Cloudflare.Inputs.AccessPolicyExcludeExternalEvaluationArgs
            {
                EvaluateUrl = "string",
                KeysUrl = "string",
            },
            Geos = new[]
            {
                "string",
            },
            Githubs = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeGithubArgs
                {
                    IdentityProviderId = "string",
                    Name = "string",
                    Teams = new[]
                    {
                        "string",
                    },
                },
            },
            Groups = new[]
            {
                "string",
            },
            Gsuites = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeGsuiteArgs
                {
                    Emails = new[]
                    {
                        "string",
                    },
                    IdentityProviderId = "string",
                },
            },
            IpLists = new[]
            {
                "string",
            },
            Ips = new[]
            {
                "string",
            },
            LoginMethods = new[]
            {
                "string",
            },
            Oktas = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeOktaArgs
                {
                    IdentityProviderId = "string",
                    Names = new[]
                    {
                        "string",
                    },
                },
            },
            Samls = new[]
            {
                new Cloudflare.Inputs.AccessPolicyExcludeSamlArgs
                {
                    AttributeName = "string",
                    AttributeValue = "string",
                    IdentityProviderId = "string",
                },
            },
            ServiceTokens = new[]
            {
                "string",
            },
        },
    },
    ApprovalGroups = new[]
    {
        new Cloudflare.Inputs.AccessPolicyApprovalGroupArgs
        {
            ApprovalsNeeded = 0,
            EmailAddresses = new[]
            {
                "string",
            },
            EmailListUuid = "string",
        },
    },
    AccountId = "string",
    ApplicationId = "string",
    Precedence = 0,
    PurposeJustificationPrompt = "string",
    PurposeJustificationRequired = false,
    Requires = new[]
    {
        new Cloudflare.Inputs.AccessPolicyRequireArgs
        {
            AnyValidServiceToken = false,
            AuthContexts = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireAuthContextArgs
                {
                    AcId = "string",
                    Id = "string",
                    IdentityProviderId = "string",
                },
            },
            AuthMethod = "string",
            Azures = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireAzureArgs
                {
                    IdentityProviderId = "string",
                    Ids = new[]
                    {
                        "string",
                    },
                },
            },
            Certificate = false,
            CommonName = "string",
            CommonNames = new[]
            {
                "string",
            },
            DevicePostures = new[]
            {
                "string",
            },
            EmailDomains = new[]
            {
                "string",
            },
            EmailLists = new[]
            {
                "string",
            },
            Emails = new[]
            {
                "string",
            },
            Everyone = false,
            ExternalEvaluation = new Cloudflare.Inputs.AccessPolicyRequireExternalEvaluationArgs
            {
                EvaluateUrl = "string",
                KeysUrl = "string",
            },
            Geos = new[]
            {
                "string",
            },
            Githubs = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireGithubArgs
                {
                    IdentityProviderId = "string",
                    Name = "string",
                    Teams = new[]
                    {
                        "string",
                    },
                },
            },
            Groups = new[]
            {
                "string",
            },
            Gsuites = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireGsuiteArgs
                {
                    Emails = new[]
                    {
                        "string",
                    },
                    IdentityProviderId = "string",
                },
            },
            IpLists = new[]
            {
                "string",
            },
            Ips = new[]
            {
                "string",
            },
            LoginMethods = new[]
            {
                "string",
            },
            Oktas = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireOktaArgs
                {
                    IdentityProviderId = "string",
                    Names = new[]
                    {
                        "string",
                    },
                },
            },
            Samls = new[]
            {
                new Cloudflare.Inputs.AccessPolicyRequireSamlArgs
                {
                    AttributeName = "string",
                    AttributeValue = "string",
                    IdentityProviderId = "string",
                },
            },
            ServiceTokens = new[]
            {
                "string",
            },
        },
    },
    SessionDuration = "string",
    ZoneId = "string",
});
example, err := cloudflare.NewAccessPolicy(ctx, "accessPolicyResource", &cloudflare.AccessPolicyArgs{
	Decision: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Includes: cloudflare.AccessPolicyIncludeArray{
		&cloudflare.AccessPolicyIncludeArgs{
			AnyValidServiceToken: pulumi.Bool(false),
			AuthContexts: cloudflare.AccessPolicyIncludeAuthContextArray{
				&cloudflare.AccessPolicyIncludeAuthContextArgs{
					AcId:               pulumi.String("string"),
					Id:                 pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			AuthMethod: pulumi.String("string"),
			Azures: cloudflare.AccessPolicyIncludeAzureArray{
				&cloudflare.AccessPolicyIncludeAzureArgs{
					IdentityProviderId: pulumi.String("string"),
					Ids: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Certificate: pulumi.Bool(false),
			CommonName:  pulumi.String("string"),
			CommonNames: pulumi.StringArray{
				pulumi.String("string"),
			},
			DevicePostures: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailDomains: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Emails: pulumi.StringArray{
				pulumi.String("string"),
			},
			Everyone: pulumi.Bool(false),
			ExternalEvaluation: &cloudflare.AccessPolicyIncludeExternalEvaluationArgs{
				EvaluateUrl: pulumi.String("string"),
				KeysUrl:     pulumi.String("string"),
			},
			Geos: pulumi.StringArray{
				pulumi.String("string"),
			},
			Githubs: cloudflare.AccessPolicyIncludeGithubArray{
				&cloudflare.AccessPolicyIncludeGithubArgs{
					IdentityProviderId: pulumi.String("string"),
					Name:               pulumi.String("string"),
					Teams: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Groups: pulumi.StringArray{
				pulumi.String("string"),
			},
			Gsuites: cloudflare.AccessPolicyIncludeGsuiteArray{
				&cloudflare.AccessPolicyIncludeGsuiteArgs{
					Emails: pulumi.StringArray{
						pulumi.String("string"),
					},
					IdentityProviderId: pulumi.String("string"),
				},
			},
			IpLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Ips: pulumi.StringArray{
				pulumi.String("string"),
			},
			LoginMethods: pulumi.StringArray{
				pulumi.String("string"),
			},
			Oktas: cloudflare.AccessPolicyIncludeOktaArray{
				&cloudflare.AccessPolicyIncludeOktaArgs{
					IdentityProviderId: pulumi.String("string"),
					Names: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Samls: cloudflare.AccessPolicyIncludeSamlArray{
				&cloudflare.AccessPolicyIncludeSamlArgs{
					AttributeName:      pulumi.String("string"),
					AttributeValue:     pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			ServiceTokens: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	IsolationRequired: pulumi.Bool(false),
	ConnectionRules: &cloudflare.AccessPolicyConnectionRulesArgs{
		Ssh: &cloudflare.AccessPolicyConnectionRulesSshArgs{
			Usernames: pulumi.StringArray{
				pulumi.String("string"),
			},
			AllowEmailAlias: pulumi.Bool(false),
		},
	},
	ApprovalRequired: pulumi.Bool(false),
	Excludes: cloudflare.AccessPolicyExcludeArray{
		&cloudflare.AccessPolicyExcludeArgs{
			AnyValidServiceToken: pulumi.Bool(false),
			AuthContexts: cloudflare.AccessPolicyExcludeAuthContextArray{
				&cloudflare.AccessPolicyExcludeAuthContextArgs{
					AcId:               pulumi.String("string"),
					Id:                 pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			AuthMethod: pulumi.String("string"),
			Azures: cloudflare.AccessPolicyExcludeAzureArray{
				&cloudflare.AccessPolicyExcludeAzureArgs{
					IdentityProviderId: pulumi.String("string"),
					Ids: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Certificate: pulumi.Bool(false),
			CommonName:  pulumi.String("string"),
			CommonNames: pulumi.StringArray{
				pulumi.String("string"),
			},
			DevicePostures: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailDomains: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Emails: pulumi.StringArray{
				pulumi.String("string"),
			},
			Everyone: pulumi.Bool(false),
			ExternalEvaluation: &cloudflare.AccessPolicyExcludeExternalEvaluationArgs{
				EvaluateUrl: pulumi.String("string"),
				KeysUrl:     pulumi.String("string"),
			},
			Geos: pulumi.StringArray{
				pulumi.String("string"),
			},
			Githubs: cloudflare.AccessPolicyExcludeGithubArray{
				&cloudflare.AccessPolicyExcludeGithubArgs{
					IdentityProviderId: pulumi.String("string"),
					Name:               pulumi.String("string"),
					Teams: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Groups: pulumi.StringArray{
				pulumi.String("string"),
			},
			Gsuites: cloudflare.AccessPolicyExcludeGsuiteArray{
				&cloudflare.AccessPolicyExcludeGsuiteArgs{
					Emails: pulumi.StringArray{
						pulumi.String("string"),
					},
					IdentityProviderId: pulumi.String("string"),
				},
			},
			IpLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Ips: pulumi.StringArray{
				pulumi.String("string"),
			},
			LoginMethods: pulumi.StringArray{
				pulumi.String("string"),
			},
			Oktas: cloudflare.AccessPolicyExcludeOktaArray{
				&cloudflare.AccessPolicyExcludeOktaArgs{
					IdentityProviderId: pulumi.String("string"),
					Names: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Samls: cloudflare.AccessPolicyExcludeSamlArray{
				&cloudflare.AccessPolicyExcludeSamlArgs{
					AttributeName:      pulumi.String("string"),
					AttributeValue:     pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			ServiceTokens: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ApprovalGroups: cloudflare.AccessPolicyApprovalGroupArray{
		&cloudflare.AccessPolicyApprovalGroupArgs{
			ApprovalsNeeded: pulumi.Int(0),
			EmailAddresses: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailListUuid: pulumi.String("string"),
		},
	},
	AccountId:                    pulumi.String("string"),
	ApplicationId:                pulumi.String("string"),
	Precedence:                   pulumi.Int(0),
	PurposeJustificationPrompt:   pulumi.String("string"),
	PurposeJustificationRequired: pulumi.Bool(false),
	Requires: cloudflare.AccessPolicyRequireArray{
		&cloudflare.AccessPolicyRequireArgs{
			AnyValidServiceToken: pulumi.Bool(false),
			AuthContexts: cloudflare.AccessPolicyRequireAuthContextArray{
				&cloudflare.AccessPolicyRequireAuthContextArgs{
					AcId:               pulumi.String("string"),
					Id:                 pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			AuthMethod: pulumi.String("string"),
			Azures: cloudflare.AccessPolicyRequireAzureArray{
				&cloudflare.AccessPolicyRequireAzureArgs{
					IdentityProviderId: pulumi.String("string"),
					Ids: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Certificate: pulumi.Bool(false),
			CommonName:  pulumi.String("string"),
			CommonNames: pulumi.StringArray{
				pulumi.String("string"),
			},
			DevicePostures: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailDomains: pulumi.StringArray{
				pulumi.String("string"),
			},
			EmailLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Emails: pulumi.StringArray{
				pulumi.String("string"),
			},
			Everyone: pulumi.Bool(false),
			ExternalEvaluation: &cloudflare.AccessPolicyRequireExternalEvaluationArgs{
				EvaluateUrl: pulumi.String("string"),
				KeysUrl:     pulumi.String("string"),
			},
			Geos: pulumi.StringArray{
				pulumi.String("string"),
			},
			Githubs: cloudflare.AccessPolicyRequireGithubArray{
				&cloudflare.AccessPolicyRequireGithubArgs{
					IdentityProviderId: pulumi.String("string"),
					Name:               pulumi.String("string"),
					Teams: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Groups: pulumi.StringArray{
				pulumi.String("string"),
			},
			Gsuites: cloudflare.AccessPolicyRequireGsuiteArray{
				&cloudflare.AccessPolicyRequireGsuiteArgs{
					Emails: pulumi.StringArray{
						pulumi.String("string"),
					},
					IdentityProviderId: pulumi.String("string"),
				},
			},
			IpLists: pulumi.StringArray{
				pulumi.String("string"),
			},
			Ips: pulumi.StringArray{
				pulumi.String("string"),
			},
			LoginMethods: pulumi.StringArray{
				pulumi.String("string"),
			},
			Oktas: cloudflare.AccessPolicyRequireOktaArray{
				&cloudflare.AccessPolicyRequireOktaArgs{
					IdentityProviderId: pulumi.String("string"),
					Names: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
			Samls: cloudflare.AccessPolicyRequireSamlArray{
				&cloudflare.AccessPolicyRequireSamlArgs{
					AttributeName:      pulumi.String("string"),
					AttributeValue:     pulumi.String("string"),
					IdentityProviderId: pulumi.String("string"),
				},
			},
			ServiceTokens: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	SessionDuration: pulumi.String("string"),
	ZoneId:          pulumi.String("string"),
})
var accessPolicyResource = new AccessPolicy("accessPolicyResource", AccessPolicyArgs.builder()
    .decision("string")
    .name("string")
    .includes(AccessPolicyIncludeArgs.builder()
        .anyValidServiceToken(false)
        .authContexts(AccessPolicyIncludeAuthContextArgs.builder()
            .acId("string")
            .id("string")
            .identityProviderId("string")
            .build())
        .authMethod("string")
        .azures(AccessPolicyIncludeAzureArgs.builder()
            .identityProviderId("string")
            .ids("string")
            .build())
        .certificate(false)
        .commonName("string")
        .commonNames("string")
        .devicePostures("string")
        .emailDomains("string")
        .emailLists("string")
        .emails("string")
        .everyone(false)
        .externalEvaluation(AccessPolicyIncludeExternalEvaluationArgs.builder()
            .evaluateUrl("string")
            .keysUrl("string")
            .build())
        .geos("string")
        .githubs(AccessPolicyIncludeGithubArgs.builder()
            .identityProviderId("string")
            .name("string")
            .teams("string")
            .build())
        .groups("string")
        .gsuites(AccessPolicyIncludeGsuiteArgs.builder()
            .emails("string")
            .identityProviderId("string")
            .build())
        .ipLists("string")
        .ips("string")
        .loginMethods("string")
        .oktas(AccessPolicyIncludeOktaArgs.builder()
            .identityProviderId("string")
            .names("string")
            .build())
        .samls(AccessPolicyIncludeSamlArgs.builder()
            .attributeName("string")
            .attributeValue("string")
            .identityProviderId("string")
            .build())
        .serviceTokens("string")
        .build())
    .isolationRequired(false)
    .connectionRules(AccessPolicyConnectionRulesArgs.builder()
        .ssh(AccessPolicyConnectionRulesSshArgs.builder()
            .usernames("string")
            .allowEmailAlias(false)
            .build())
        .build())
    .approvalRequired(false)
    .excludes(AccessPolicyExcludeArgs.builder()
        .anyValidServiceToken(false)
        .authContexts(AccessPolicyExcludeAuthContextArgs.builder()
            .acId("string")
            .id("string")
            .identityProviderId("string")
            .build())
        .authMethod("string")
        .azures(AccessPolicyExcludeAzureArgs.builder()
            .identityProviderId("string")
            .ids("string")
            .build())
        .certificate(false)
        .commonName("string")
        .commonNames("string")
        .devicePostures("string")
        .emailDomains("string")
        .emailLists("string")
        .emails("string")
        .everyone(false)
        .externalEvaluation(AccessPolicyExcludeExternalEvaluationArgs.builder()
            .evaluateUrl("string")
            .keysUrl("string")
            .build())
        .geos("string")
        .githubs(AccessPolicyExcludeGithubArgs.builder()
            .identityProviderId("string")
            .name("string")
            .teams("string")
            .build())
        .groups("string")
        .gsuites(AccessPolicyExcludeGsuiteArgs.builder()
            .emails("string")
            .identityProviderId("string")
            .build())
        .ipLists("string")
        .ips("string")
        .loginMethods("string")
        .oktas(AccessPolicyExcludeOktaArgs.builder()
            .identityProviderId("string")
            .names("string")
            .build())
        .samls(AccessPolicyExcludeSamlArgs.builder()
            .attributeName("string")
            .attributeValue("string")
            .identityProviderId("string")
            .build())
        .serviceTokens("string")
        .build())
    .approvalGroups(AccessPolicyApprovalGroupArgs.builder()
        .approvalsNeeded(0)
        .emailAddresses("string")
        .emailListUuid("string")
        .build())
    .accountId("string")
    .applicationId("string")
    .precedence(0)
    .purposeJustificationPrompt("string")
    .purposeJustificationRequired(false)
    .requires(AccessPolicyRequireArgs.builder()
        .anyValidServiceToken(false)
        .authContexts(AccessPolicyRequireAuthContextArgs.builder()
            .acId("string")
            .id("string")
            .identityProviderId("string")
            .build())
        .authMethod("string")
        .azures(AccessPolicyRequireAzureArgs.builder()
            .identityProviderId("string")
            .ids("string")
            .build())
        .certificate(false)
        .commonName("string")
        .commonNames("string")
        .devicePostures("string")
        .emailDomains("string")
        .emailLists("string")
        .emails("string")
        .everyone(false)
        .externalEvaluation(AccessPolicyRequireExternalEvaluationArgs.builder()
            .evaluateUrl("string")
            .keysUrl("string")
            .build())
        .geos("string")
        .githubs(AccessPolicyRequireGithubArgs.builder()
            .identityProviderId("string")
            .name("string")
            .teams("string")
            .build())
        .groups("string")
        .gsuites(AccessPolicyRequireGsuiteArgs.builder()
            .emails("string")
            .identityProviderId("string")
            .build())
        .ipLists("string")
        .ips("string")
        .loginMethods("string")
        .oktas(AccessPolicyRequireOktaArgs.builder()
            .identityProviderId("string")
            .names("string")
            .build())
        .samls(AccessPolicyRequireSamlArgs.builder()
            .attributeName("string")
            .attributeValue("string")
            .identityProviderId("string")
            .build())
        .serviceTokens("string")
        .build())
    .sessionDuration("string")
    .zoneId("string")
    .build());
access_policy_resource = cloudflare.AccessPolicy("accessPolicyResource",
    decision="string",
    name="string",
    includes=[{
        "any_valid_service_token": False,
        "auth_contexts": [{
            "ac_id": "string",
            "id": "string",
            "identity_provider_id": "string",
        }],
        "auth_method": "string",
        "azures": [{
            "identity_provider_id": "string",
            "ids": ["string"],
        }],
        "certificate": False,
        "common_name": "string",
        "common_names": ["string"],
        "device_postures": ["string"],
        "email_domains": ["string"],
        "email_lists": ["string"],
        "emails": ["string"],
        "everyone": False,
        "external_evaluation": {
            "evaluate_url": "string",
            "keys_url": "string",
        },
        "geos": ["string"],
        "githubs": [{
            "identity_provider_id": "string",
            "name": "string",
            "teams": ["string"],
        }],
        "groups": ["string"],
        "gsuites": [{
            "emails": ["string"],
            "identity_provider_id": "string",
        }],
        "ip_lists": ["string"],
        "ips": ["string"],
        "login_methods": ["string"],
        "oktas": [{
            "identity_provider_id": "string",
            "names": ["string"],
        }],
        "samls": [{
            "attribute_name": "string",
            "attribute_value": "string",
            "identity_provider_id": "string",
        }],
        "service_tokens": ["string"],
    }],
    isolation_required=False,
    connection_rules={
        "ssh": {
            "usernames": ["string"],
            "allow_email_alias": False,
        },
    },
    approval_required=False,
    excludes=[{
        "any_valid_service_token": False,
        "auth_contexts": [{
            "ac_id": "string",
            "id": "string",
            "identity_provider_id": "string",
        }],
        "auth_method": "string",
        "azures": [{
            "identity_provider_id": "string",
            "ids": ["string"],
        }],
        "certificate": False,
        "common_name": "string",
        "common_names": ["string"],
        "device_postures": ["string"],
        "email_domains": ["string"],
        "email_lists": ["string"],
        "emails": ["string"],
        "everyone": False,
        "external_evaluation": {
            "evaluate_url": "string",
            "keys_url": "string",
        },
        "geos": ["string"],
        "githubs": [{
            "identity_provider_id": "string",
            "name": "string",
            "teams": ["string"],
        }],
        "groups": ["string"],
        "gsuites": [{
            "emails": ["string"],
            "identity_provider_id": "string",
        }],
        "ip_lists": ["string"],
        "ips": ["string"],
        "login_methods": ["string"],
        "oktas": [{
            "identity_provider_id": "string",
            "names": ["string"],
        }],
        "samls": [{
            "attribute_name": "string",
            "attribute_value": "string",
            "identity_provider_id": "string",
        }],
        "service_tokens": ["string"],
    }],
    approval_groups=[{
        "approvals_needed": 0,
        "email_addresses": ["string"],
        "email_list_uuid": "string",
    }],
    account_id="string",
    application_id="string",
    precedence=0,
    purpose_justification_prompt="string",
    purpose_justification_required=False,
    requires=[{
        "any_valid_service_token": False,
        "auth_contexts": [{
            "ac_id": "string",
            "id": "string",
            "identity_provider_id": "string",
        }],
        "auth_method": "string",
        "azures": [{
            "identity_provider_id": "string",
            "ids": ["string"],
        }],
        "certificate": False,
        "common_name": "string",
        "common_names": ["string"],
        "device_postures": ["string"],
        "email_domains": ["string"],
        "email_lists": ["string"],
        "emails": ["string"],
        "everyone": False,
        "external_evaluation": {
            "evaluate_url": "string",
            "keys_url": "string",
        },
        "geos": ["string"],
        "githubs": [{
            "identity_provider_id": "string",
            "name": "string",
            "teams": ["string"],
        }],
        "groups": ["string"],
        "gsuites": [{
            "emails": ["string"],
            "identity_provider_id": "string",
        }],
        "ip_lists": ["string"],
        "ips": ["string"],
        "login_methods": ["string"],
        "oktas": [{
            "identity_provider_id": "string",
            "names": ["string"],
        }],
        "samls": [{
            "attribute_name": "string",
            "attribute_value": "string",
            "identity_provider_id": "string",
        }],
        "service_tokens": ["string"],
    }],
    session_duration="string",
    zone_id="string")
const accessPolicyResource = new cloudflare.AccessPolicy("accessPolicyResource", {
    decision: "string",
    name: "string",
    includes: [{
        anyValidServiceToken: false,
        authContexts: [{
            acId: "string",
            id: "string",
            identityProviderId: "string",
        }],
        authMethod: "string",
        azures: [{
            identityProviderId: "string",
            ids: ["string"],
        }],
        certificate: false,
        commonName: "string",
        commonNames: ["string"],
        devicePostures: ["string"],
        emailDomains: ["string"],
        emailLists: ["string"],
        emails: ["string"],
        everyone: false,
        externalEvaluation: {
            evaluateUrl: "string",
            keysUrl: "string",
        },
        geos: ["string"],
        githubs: [{
            identityProviderId: "string",
            name: "string",
            teams: ["string"],
        }],
        groups: ["string"],
        gsuites: [{
            emails: ["string"],
            identityProviderId: "string",
        }],
        ipLists: ["string"],
        ips: ["string"],
        loginMethods: ["string"],
        oktas: [{
            identityProviderId: "string",
            names: ["string"],
        }],
        samls: [{
            attributeName: "string",
            attributeValue: "string",
            identityProviderId: "string",
        }],
        serviceTokens: ["string"],
    }],
    isolationRequired: false,
    connectionRules: {
        ssh: {
            usernames: ["string"],
            allowEmailAlias: false,
        },
    },
    approvalRequired: false,
    excludes: [{
        anyValidServiceToken: false,
        authContexts: [{
            acId: "string",
            id: "string",
            identityProviderId: "string",
        }],
        authMethod: "string",
        azures: [{
            identityProviderId: "string",
            ids: ["string"],
        }],
        certificate: false,
        commonName: "string",
        commonNames: ["string"],
        devicePostures: ["string"],
        emailDomains: ["string"],
        emailLists: ["string"],
        emails: ["string"],
        everyone: false,
        externalEvaluation: {
            evaluateUrl: "string",
            keysUrl: "string",
        },
        geos: ["string"],
        githubs: [{
            identityProviderId: "string",
            name: "string",
            teams: ["string"],
        }],
        groups: ["string"],
        gsuites: [{
            emails: ["string"],
            identityProviderId: "string",
        }],
        ipLists: ["string"],
        ips: ["string"],
        loginMethods: ["string"],
        oktas: [{
            identityProviderId: "string",
            names: ["string"],
        }],
        samls: [{
            attributeName: "string",
            attributeValue: "string",
            identityProviderId: "string",
        }],
        serviceTokens: ["string"],
    }],
    approvalGroups: [{
        approvalsNeeded: 0,
        emailAddresses: ["string"],
        emailListUuid: "string",
    }],
    accountId: "string",
    applicationId: "string",
    precedence: 0,
    purposeJustificationPrompt: "string",
    purposeJustificationRequired: false,
    requires: [{
        anyValidServiceToken: false,
        authContexts: [{
            acId: "string",
            id: "string",
            identityProviderId: "string",
        }],
        authMethod: "string",
        azures: [{
            identityProviderId: "string",
            ids: ["string"],
        }],
        certificate: false,
        commonName: "string",
        commonNames: ["string"],
        devicePostures: ["string"],
        emailDomains: ["string"],
        emailLists: ["string"],
        emails: ["string"],
        everyone: false,
        externalEvaluation: {
            evaluateUrl: "string",
            keysUrl: "string",
        },
        geos: ["string"],
        githubs: [{
            identityProviderId: "string",
            name: "string",
            teams: ["string"],
        }],
        groups: ["string"],
        gsuites: [{
            emails: ["string"],
            identityProviderId: "string",
        }],
        ipLists: ["string"],
        ips: ["string"],
        loginMethods: ["string"],
        oktas: [{
            identityProviderId: "string",
            names: ["string"],
        }],
        samls: [{
            attributeName: "string",
            attributeValue: "string",
            identityProviderId: "string",
        }],
        serviceTokens: ["string"],
    }],
    sessionDuration: "string",
    zoneId: "string",
});
type: cloudflare:AccessPolicy
properties:
    accountId: string
    applicationId: string
    approvalGroups:
        - approvalsNeeded: 0
          emailAddresses:
            - string
          emailListUuid: string
    approvalRequired: false
    connectionRules:
        ssh:
            allowEmailAlias: false
            usernames:
                - string
    decision: string
    excludes:
        - anyValidServiceToken: false
          authContexts:
            - acId: string
              id: string
              identityProviderId: string
          authMethod: string
          azures:
            - identityProviderId: string
              ids:
                - string
          certificate: false
          commonName: string
          commonNames:
            - string
          devicePostures:
            - string
          emailDomains:
            - string
          emailLists:
            - string
          emails:
            - string
          everyone: false
          externalEvaluation:
            evaluateUrl: string
            keysUrl: string
          geos:
            - string
          githubs:
            - identityProviderId: string
              name: string
              teams:
                - string
          groups:
            - string
          gsuites:
            - emails:
                - string
              identityProviderId: string
          ipLists:
            - string
          ips:
            - string
          loginMethods:
            - string
          oktas:
            - identityProviderId: string
              names:
                - string
          samls:
            - attributeName: string
              attributeValue: string
              identityProviderId: string
          serviceTokens:
            - string
    includes:
        - anyValidServiceToken: false
          authContexts:
            - acId: string
              id: string
              identityProviderId: string
          authMethod: string
          azures:
            - identityProviderId: string
              ids:
                - string
          certificate: false
          commonName: string
          commonNames:
            - string
          devicePostures:
            - string
          emailDomains:
            - string
          emailLists:
            - string
          emails:
            - string
          everyone: false
          externalEvaluation:
            evaluateUrl: string
            keysUrl: string
          geos:
            - string
          githubs:
            - identityProviderId: string
              name: string
              teams:
                - string
          groups:
            - string
          gsuites:
            - emails:
                - string
              identityProviderId: string
          ipLists:
            - string
          ips:
            - string
          loginMethods:
            - string
          oktas:
            - identityProviderId: string
              names:
                - string
          samls:
            - attributeName: string
              attributeValue: string
              identityProviderId: string
          serviceTokens:
            - string
    isolationRequired: false
    name: string
    precedence: 0
    purposeJustificationPrompt: string
    purposeJustificationRequired: false
    requires:
        - anyValidServiceToken: false
          authContexts:
            - acId: string
              id: string
              identityProviderId: string
          authMethod: string
          azures:
            - identityProviderId: string
              ids:
                - string
          certificate: false
          commonName: string
          commonNames:
            - string
          devicePostures:
            - string
          emailDomains:
            - string
          emailLists:
            - string
          emails:
            - string
          everyone: false
          externalEvaluation:
            evaluateUrl: string
            keysUrl: string
          geos:
            - string
          githubs:
            - identityProviderId: string
              name: string
              teams:
                - string
          groups:
            - string
          gsuites:
            - emails:
                - string
              identityProviderId: string
          ipLists:
            - string
          ips:
            - string
          loginMethods:
            - string
          oktas:
            - identityProviderId: string
              names:
                - string
          samls:
            - attributeName: string
              attributeValue: string
              identityProviderId: string
          serviceTokens:
            - string
    sessionDuration: string
    zoneId: string
AccessPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccessPolicy resource accepts the following input properties:
- Decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- Includes
List<AccessPolicy Include> 
- A series of access conditions, see Access Groups.
- Name string
- Friendly name of the Access Policy.
- AccountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- ApplicationId 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.
- ApprovalGroups List<AccessPolicy Approval Group> 
- ApprovalRequired bool
- ConnectionRules AccessPolicy Connection Rules 
- 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.
- Excludes
List<AccessPolicy Exclude> 
- A series of access conditions, see Access Groups.
- IsolationRequired bool
- Require this application to be served in an isolated browser for users matching this policy.
- Precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- PurposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- PurposeJustification boolRequired 
- Whether to prompt the user for a justification for accessing the resource.
- Requires
List<AccessPolicy Require> 
- A series of access conditions, see Access Groups.
- SessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- ZoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- Decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- Includes
[]AccessPolicy Include Args 
- A series of access conditions, see Access Groups.
- Name string
- Friendly name of the Access Policy.
- AccountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- ApplicationId 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.
- ApprovalGroups []AccessPolicy Approval Group Args 
- ApprovalRequired bool
- ConnectionRules AccessPolicy Connection Rules Args 
- 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.
- Excludes
[]AccessPolicy Exclude Args 
- A series of access conditions, see Access Groups.
- IsolationRequired bool
- Require this application to be served in an isolated browser for users matching this policy.
- Precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- PurposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- PurposeJustification boolRequired 
- Whether to prompt the user for a justification for accessing the resource.
- Requires
[]AccessPolicy Require Args 
- A series of access conditions, see Access Groups.
- SessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- ZoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- decision String
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- includes
List<AccessPolicy Include> 
- A series of access conditions, see Access Groups.
- name String
- Friendly name of the Access Policy.
- accountId String
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups List<AccessPolicy Approval Group> 
- approvalRequired Boolean
- connectionRules AccessPolicy Connection Rules 
- 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.
- excludes
List<AccessPolicy Exclude> 
- A series of access conditions, see Access Groups.
- isolationRequired Boolean
- Require this application to be served in an isolated browser for users matching this policy.
- precedence Integer
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification StringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification BooleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
List<AccessPolicy Require> 
- A series of access conditions, see Access Groups.
- sessionDuration String
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId String
- The zone identifier to target for the resource. Conflicts with account_id.
- decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- includes
AccessPolicy Include[] 
- A series of access conditions, see Access Groups.
- name string
- Friendly name of the Access Policy.
- accountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups AccessPolicy Approval Group[] 
- approvalRequired boolean
- connectionRules AccessPolicy Connection Rules 
- 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.
- excludes
AccessPolicy Exclude[] 
- A series of access conditions, see Access Groups.
- isolationRequired boolean
- Require this application to be served in an isolated browser for users matching this policy.
- precedence number
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification booleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
AccessPolicy Require[] 
- A series of access conditions, see Access Groups.
- sessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- decision str
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- includes
Sequence[AccessPolicy Include Args] 
- A series of access conditions, see Access Groups.
- name str
- Friendly name of the Access Policy.
- account_id str
- The account identifier to target for the resource. Conflicts with zone_id.
- application_id str
- The ID of the application the policy is associated with. Required when using precedence. Modifying this attribute will force creation of a new resource.
- approval_groups Sequence[AccessPolicy Approval Group Args] 
- approval_required bool
- connection_rules AccessPolicy Connection Rules Args 
- 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.
- excludes
Sequence[AccessPolicy Exclude Args] 
- A series of access conditions, see Access Groups.
- isolation_required bool
- Require this application to be served in an isolated browser for users matching this policy.
- precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- purpose_justification_ strprompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purpose_justification_ boolrequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
Sequence[AccessPolicy Require Args] 
- A series of access conditions, see Access Groups.
- session_duration str
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zone_id str
- The zone identifier to target for the resource. Conflicts with account_id.
- decision String
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- includes List<Property Map>
- A series of access conditions, see Access Groups.
- name String
- Friendly name of the Access Policy.
- accountId String
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups List<Property Map>
- approvalRequired Boolean
- connectionRules Property Map
- 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.
- excludes List<Property Map>
- A series of access conditions, see Access Groups.
- isolationRequired Boolean
- Require this application to be served in an isolated browser for users matching this policy.
- precedence Number
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification StringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification BooleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires List<Property Map>
- A series of access conditions, see Access Groups.
- sessionDuration String
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId String
- The zone identifier to target for the resource. Conflicts with account_id.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): AccessPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        application_id: Optional[str] = None,
        approval_groups: Optional[Sequence[AccessPolicyApprovalGroupArgs]] = None,
        approval_required: Optional[bool] = None,
        connection_rules: Optional[AccessPolicyConnectionRulesArgs] = None,
        decision: Optional[str] = None,
        excludes: Optional[Sequence[AccessPolicyExcludeArgs]] = None,
        includes: Optional[Sequence[AccessPolicyIncludeArgs]] = None,
        isolation_required: Optional[bool] = None,
        name: Optional[str] = None,
        precedence: Optional[int] = None,
        purpose_justification_prompt: Optional[str] = None,
        purpose_justification_required: Optional[bool] = None,
        requires: Optional[Sequence[AccessPolicyRequireArgs]] = None,
        session_duration: Optional[str] = None,
        zone_id: Optional[str] = None) -> AccessPolicyfunc 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)public static AccessPolicy get(String name, Output<String> id, AccessPolicyState state, CustomResourceOptions options)resources:  _:    type: cloudflare:AccessPolicy    get:      id: ${id}- 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.
- 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.
- AccountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- ApplicationId 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.
- ApprovalGroups List<AccessPolicy Approval Group> 
- ApprovalRequired bool
- ConnectionRules AccessPolicy Connection Rules 
- 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.
- Decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- Excludes
List<AccessPolicy Exclude> 
- A series of access conditions, see Access Groups.
- Includes
List<AccessPolicy Include> 
- A series of access conditions, see Access Groups.
- IsolationRequired bool
- Require this application to be served in an isolated browser for users matching this policy.
- Name string
- Friendly name of the Access Policy.
- Precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- PurposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- PurposeJustification boolRequired 
- Whether to prompt the user for a justification for accessing the resource.
- Requires
List<AccessPolicy Require> 
- A series of access conditions, see Access Groups.
- SessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- ZoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- AccountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- ApplicationId 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.
- ApprovalGroups []AccessPolicy Approval Group Args 
- ApprovalRequired bool
- ConnectionRules AccessPolicy Connection Rules Args 
- 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.
- Decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- Excludes
[]AccessPolicy Exclude Args 
- A series of access conditions, see Access Groups.
- Includes
[]AccessPolicy Include Args 
- A series of access conditions, see Access Groups.
- IsolationRequired bool
- Require this application to be served in an isolated browser for users matching this policy.
- Name string
- Friendly name of the Access Policy.
- Precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- PurposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- PurposeJustification boolRequired 
- Whether to prompt the user for a justification for accessing the resource.
- Requires
[]AccessPolicy Require Args 
- A series of access conditions, see Access Groups.
- SessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- ZoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- accountId String
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups List<AccessPolicy Approval Group> 
- approvalRequired Boolean
- connectionRules AccessPolicy Connection Rules 
- 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.
- decision String
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- excludes
List<AccessPolicy Exclude> 
- A series of access conditions, see Access Groups.
- includes
List<AccessPolicy Include> 
- A series of access conditions, see Access Groups.
- isolationRequired Boolean
- Require this application to be served in an isolated browser for users matching this policy.
- name String
- Friendly name of the Access Policy.
- precedence Integer
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification StringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification BooleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
List<AccessPolicy Require> 
- A series of access conditions, see Access Groups.
- sessionDuration String
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId String
- The zone identifier to target for the resource. Conflicts with account_id.
- accountId string
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups AccessPolicy Approval Group[] 
- approvalRequired boolean
- connectionRules AccessPolicy Connection Rules 
- 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.
- decision string
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- excludes
AccessPolicy Exclude[] 
- A series of access conditions, see Access Groups.
- includes
AccessPolicy Include[] 
- A series of access conditions, see Access Groups.
- isolationRequired boolean
- Require this application to be served in an isolated browser for users matching this policy.
- name string
- Friendly name of the Access Policy.
- precedence number
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification stringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification booleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
AccessPolicy Require[] 
- A series of access conditions, see Access Groups.
- sessionDuration string
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId string
- The zone identifier to target for the resource. Conflicts with account_id.
- account_id str
- The account identifier to target for the resource. Conflicts with zone_id.
- application_id str
- The ID of the application the policy is associated with. Required when using precedence. Modifying this attribute will force creation of a new resource.
- approval_groups Sequence[AccessPolicy Approval Group Args] 
- approval_required bool
- connection_rules AccessPolicy Connection Rules Args 
- 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.
- decision str
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- excludes
Sequence[AccessPolicy Exclude Args] 
- A series of access conditions, see Access Groups.
- includes
Sequence[AccessPolicy Include Args] 
- A series of access conditions, see Access Groups.
- isolation_required bool
- Require this application to be served in an isolated browser for users matching this policy.
- name str
- Friendly name of the Access Policy.
- precedence int
- The unique precedence for policies on a single application. Required when using application_id.
- purpose_justification_ strprompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purpose_justification_ boolrequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires
Sequence[AccessPolicy Require Args] 
- A series of access conditions, see Access Groups.
- session_duration str
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zone_id str
- The zone identifier to target for the resource. Conflicts with account_id.
- accountId String
- The account identifier to target for the resource. Conflicts with zone_id.
- applicationId 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.
- approvalGroups List<Property Map>
- approvalRequired Boolean
- connectionRules Property Map
- 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.
- decision String
- Defines the action Access will take if the policy matches the user. Available values: allow,deny,non_identity,bypass.
- excludes List<Property Map>
- A series of access conditions, see Access Groups.
- includes List<Property Map>
- A series of access conditions, see Access Groups.
- isolationRequired Boolean
- Require this application to be served in an isolated browser for users matching this policy.
- name String
- Friendly name of the Access Policy.
- precedence Number
- The unique precedence for policies on a single application. Required when using application_id.
- purposeJustification StringPrompt 
- The prompt to display to the user for a justification for accessing the resource. Required when using purpose_justification_required.
- purposeJustification BooleanRequired 
- Whether to prompt the user for a justification for accessing the resource.
- requires List<Property Map>
- A series of access conditions, see Access Groups.
- sessionDuration String
- How often a user will be forced to re-authorise. Must be in the format 48hor2h45m.
- zoneId String
- The zone identifier to target for the resource. Conflicts with account_id.
Supporting Types
AccessPolicyApprovalGroup, AccessPolicyApprovalGroupArgs        
- ApprovalsNeeded int
- Number of approvals needed.
- EmailAddresses List<string>
- List of emails to request approval from.
- EmailList stringUuid 
- ApprovalsNeeded int
- Number of approvals needed.
- EmailAddresses []string
- List of emails to request approval from.
- EmailList stringUuid 
- approvalsNeeded Integer
- Number of approvals needed.
- emailAddresses List<String>
- List of emails to request approval from.
- emailList StringUuid 
- approvalsNeeded number
- Number of approvals needed.
- emailAddresses string[]
- List of emails to request approval from.
- emailList stringUuid 
- approvals_needed int
- Number of approvals needed.
- email_addresses Sequence[str]
- List of emails to request approval from.
- email_list_ struuid 
- approvalsNeeded Number
- Number of approvals needed.
- emailAddresses List<String>
- List of emails to request approval from.
- emailList StringUuid 
AccessPolicyConnectionRules, AccessPolicyConnectionRulesArgs        
- Ssh
AccessPolicy Connection Rules Ssh 
- The SSH-specific rules that define how users may connect to the targets secured by your application.
- Ssh
AccessPolicy Connection Rules Ssh 
- The SSH-specific rules that define how users may connect to the targets secured by your application.
- ssh
AccessPolicy Connection Rules Ssh 
- The SSH-specific rules that define how users may connect to the targets secured by your application.
- ssh
AccessPolicy Connection Rules Ssh 
- The SSH-specific rules that define how users may connect to the targets secured by your application.
- ssh
AccessPolicy Connection Rules Ssh 
- The SSH-specific rules that define how users may connect to the targets secured by your application.
- ssh Property Map
- The SSH-specific rules that define how users may connect to the targets secured by your application.
AccessPolicyConnectionRulesSsh, AccessPolicyConnectionRulesSshArgs          
- Usernames List<string>
- Contains the Unix usernames that may be used when connecting over SSH.
- AllowEmail boolAlias 
- Allows connecting to Unix username that matches the authenticating email prefix.
- Usernames []string
- Contains the Unix usernames that may be used when connecting over SSH.
- AllowEmail boolAlias 
- Allows connecting to Unix username that matches the authenticating email prefix.
- usernames List<String>
- Contains the Unix usernames that may be used when connecting over SSH.
- allowEmail BooleanAlias 
- Allows connecting to Unix username that matches the authenticating email prefix.
- usernames string[]
- Contains the Unix usernames that may be used when connecting over SSH.
- allowEmail booleanAlias 
- Allows connecting to Unix username that matches the authenticating email prefix.
- usernames Sequence[str]
- Contains the Unix usernames that may be used when connecting over SSH.
- allow_email_ boolalias 
- Allows connecting to Unix username that matches the authenticating email prefix.
- usernames List<String>
- Contains the Unix usernames that may be used when connecting over SSH.
- allowEmail BooleanAlias 
- Allows connecting to Unix username that matches the authenticating email prefix.
AccessPolicyExclude, AccessPolicyExcludeArgs      
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts List<AccessPolicy Exclude Auth Context> 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
List<AccessPolicy Exclude Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames List<string>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures List<string>
- The ID of a device posture integration.
- EmailDomains List<string>
- The email domain to match.
- EmailLists List<string>
- The ID of a previously created email list.
- Emails List<string>
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Exclude External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos List<string>
- Matches a specific country.
- Githubs
List<AccessPolicy Exclude Github> 
- Matches a Github organization. Requires a Github identity provider.
- Groups List<string>
- The ID of a previously created Access group.
- Gsuites
List<AccessPolicy Exclude Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists List<string>
- The ID of a previously created IP list.
- Ips List<string>
- An IPv4 or IPv6 CIDR block.
- LoginMethods List<string>
- The ID of a configured identity provider.
- Oktas
List<AccessPolicy Exclude Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
List<AccessPolicy Exclude Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens List<string>
- The ID of an Access service token.
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts []AccessPolicy Exclude Auth Context 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
[]AccessPolicy Exclude Azure 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames []string
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures []string
- The ID of a device posture integration.
- EmailDomains []string
- The email domain to match.
- EmailLists []string
- The ID of a previously created email list.
- Emails []string
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Exclude External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos []string
- Matches a specific country.
- Githubs
[]AccessPolicy Exclude Github 
- Matches a Github organization. Requires a Github identity provider.
- Groups []string
- The ID of a previously created Access group.
- Gsuites
[]AccessPolicy Exclude Gsuite 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists []string
- The ID of a previously created IP list.
- Ips []string
- An IPv4 or IPv6 CIDR block.
- LoginMethods []string
- The ID of a configured identity provider.
- Oktas
[]AccessPolicy Exclude Okta 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
[]AccessPolicy Exclude Saml 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens []string
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<AccessPolicy Exclude Auth Context> 
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
List<AccessPolicy Exclude Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation AccessPolicy Exclude External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs
List<AccessPolicy Exclude Github> 
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites
List<AccessPolicy Exclude Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas
List<AccessPolicy Exclude Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- samls
List<AccessPolicy Exclude Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
- anyValid booleanService Token 
- Matches any valid Access service token.
- authContexts AccessPolicy Exclude Auth Context[] 
- authMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
AccessPolicy Exclude Azure[] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate boolean
- Matches any valid client certificate.
- commonName string
- Matches a valid client certificate common name.
- commonNames string[]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures string[]
- The ID of a device posture integration.
- emailDomains string[]
- The email domain to match.
- emailLists string[]
- The ID of a previously created email list.
- emails string[]
- The email of the user.
- everyone boolean
- Matches everyone.
- externalEvaluation AccessPolicy Exclude External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos string[]
- Matches a specific country.
- githubs
AccessPolicy Exclude Github[] 
- Matches a Github organization. Requires a Github identity provider.
- groups string[]
- The ID of a previously created Access group.
- gsuites
AccessPolicy Exclude Gsuite[] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists string[]
- The ID of a previously created IP list.
- ips string[]
- An IPv4 or IPv6 CIDR block.
- loginMethods string[]
- The ID of a configured identity provider.
- oktas
AccessPolicy Exclude Okta[] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
AccessPolicy Exclude Saml[] 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens string[]
- The ID of an Access service token.
- any_valid_ boolservice_ token 
- Matches any valid Access service token.
- auth_contexts Sequence[AccessPolicy Exclude Auth Context] 
- auth_method str
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
Sequence[AccessPolicy Exclude Azure] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate bool
- Matches any valid client certificate.
- common_name str
- Matches a valid client certificate common name.
- common_names Sequence[str]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- device_postures Sequence[str]
- The ID of a device posture integration.
- email_domains Sequence[str]
- The email domain to match.
- email_lists Sequence[str]
- The ID of a previously created email list.
- emails Sequence[str]
- The email of the user.
- everyone bool
- Matches everyone.
- external_evaluation AccessPolicy Exclude External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos Sequence[str]
- Matches a specific country.
- githubs
Sequence[AccessPolicy Exclude Github] 
- Matches a Github organization. Requires a Github identity provider.
- groups Sequence[str]
- The ID of a previously created Access group.
- gsuites
Sequence[AccessPolicy Exclude Gsuite] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ip_lists Sequence[str]
- The ID of a previously created IP list.
- ips Sequence[str]
- An IPv4 or IPv6 CIDR block.
- login_methods Sequence[str]
- The ID of a configured identity provider.
- oktas
Sequence[AccessPolicy Exclude Okta] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
Sequence[AccessPolicy Exclude Saml] 
- Matches a SAML group. Requires a SAML identity provider.
- service_tokens Sequence[str]
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<Property Map>
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures List<Property Map>
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation Property Map
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs List<Property Map>
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites List<Property Map>
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas List<Property Map>
- Matches an Okta group. Requires an Okta identity provider.
- samls List<Property Map>
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
AccessPolicyExcludeAuthContext, AccessPolicyExcludeAuthContextArgs          
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
- acId string
- The ACID of the Authentication Context.
- id string
- The ID of the Authentication Context.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ac_id str
- The ACID of the Authentication Context.
- id str
- The ID of the Authentication Context.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
AccessPolicyExcludeAzure, AccessPolicyExcludeAzureArgs        
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids List<string>
- The ID of the Azure group or user.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids []string
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ids string[]
- The ID of the Azure group or user.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- ids Sequence[str]
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
AccessPolicyExcludeExternalEvaluation, AccessPolicyExcludeExternalEvaluationArgs          
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl string
- The API endpoint containing your business logic.
- keysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluate_url str
- The API endpoint containing your business logic.
- keys_url str
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
AccessPolicyExcludeGithub, AccessPolicyExcludeGithubArgs        
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams List<string>
- The teams that should be matched.
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams []string
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
- identityProvider stringId 
- The ID of your Github identity provider.
- name string
- The name of the organization.
- teams string[]
- The teams that should be matched.
- identity_provider_ strid 
- The ID of your Github identity provider.
- name str
- The name of the organization.
- teams Sequence[str]
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
AccessPolicyExcludeGsuite, AccessPolicyExcludeGsuiteArgs        
- Emails List<string>
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- Emails []string
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
- emails string[]
- The email of the Google Workspace group.
- identityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails Sequence[str]
- The email of the Google Workspace group.
- identity_provider_ strid 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
AccessPolicyExcludeOkta, AccessPolicyExcludeOktaArgs        
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names List<string>
- The name of the Okta Group.
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names []string
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
- identityProvider stringId 
- The ID of your Okta identity provider.
- names string[]
- The name of the Okta Group.
- identity_provider_ strid 
- The ID of your Okta identity provider.
- names Sequence[str]
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
AccessPolicyExcludeSaml, AccessPolicyExcludeSamlArgs        
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
- attributeName string
- The name of the SAML attribute.
- attributeValue string
- The SAML attribute value to look for.
- identityProvider stringId 
- The ID of your SAML identity provider.
- attribute_name str
- The name of the SAML attribute.
- attribute_value str
- The SAML attribute value to look for.
- identity_provider_ strid 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
AccessPolicyInclude, AccessPolicyIncludeArgs      
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts List<AccessPolicy Include Auth Context> 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
List<AccessPolicy Include Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames List<string>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures List<string>
- The ID of a device posture integration.
- EmailDomains List<string>
- The email domain to match.
- EmailLists List<string>
- The ID of a previously created email list.
- Emails List<string>
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Include External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos List<string>
- Matches a specific country.
- Githubs
List<AccessPolicy Include Github> 
- Matches a Github organization. Requires a Github identity provider.
- Groups List<string>
- The ID of a previously created Access group.
- Gsuites
List<AccessPolicy Include Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists List<string>
- The ID of a previously created IP list.
- Ips List<string>
- An IPv4 or IPv6 CIDR block.
- LoginMethods List<string>
- The ID of a configured identity provider.
- Oktas
List<AccessPolicy Include Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
List<AccessPolicy Include Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens List<string>
- The ID of an Access service token.
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts []AccessPolicy Include Auth Context 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
[]AccessPolicy Include Azure 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames []string
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures []string
- The ID of a device posture integration.
- EmailDomains []string
- The email domain to match.
- EmailLists []string
- The ID of a previously created email list.
- Emails []string
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Include External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos []string
- Matches a specific country.
- Githubs
[]AccessPolicy Include Github 
- Matches a Github organization. Requires a Github identity provider.
- Groups []string
- The ID of a previously created Access group.
- Gsuites
[]AccessPolicy Include Gsuite 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists []string
- The ID of a previously created IP list.
- Ips []string
- An IPv4 or IPv6 CIDR block.
- LoginMethods []string
- The ID of a configured identity provider.
- Oktas
[]AccessPolicy Include Okta 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
[]AccessPolicy Include Saml 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens []string
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<AccessPolicy Include Auth Context> 
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
List<AccessPolicy Include Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation AccessPolicy Include External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs
List<AccessPolicy Include Github> 
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites
List<AccessPolicy Include Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas
List<AccessPolicy Include Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- samls
List<AccessPolicy Include Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
- anyValid booleanService Token 
- Matches any valid Access service token.
- authContexts AccessPolicy Include Auth Context[] 
- authMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
AccessPolicy Include Azure[] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate boolean
- Matches any valid client certificate.
- commonName string
- Matches a valid client certificate common name.
- commonNames string[]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures string[]
- The ID of a device posture integration.
- emailDomains string[]
- The email domain to match.
- emailLists string[]
- The ID of a previously created email list.
- emails string[]
- The email of the user.
- everyone boolean
- Matches everyone.
- externalEvaluation AccessPolicy Include External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos string[]
- Matches a specific country.
- githubs
AccessPolicy Include Github[] 
- Matches a Github organization. Requires a Github identity provider.
- groups string[]
- The ID of a previously created Access group.
- gsuites
AccessPolicy Include Gsuite[] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists string[]
- The ID of a previously created IP list.
- ips string[]
- An IPv4 or IPv6 CIDR block.
- loginMethods string[]
- The ID of a configured identity provider.
- oktas
AccessPolicy Include Okta[] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
AccessPolicy Include Saml[] 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens string[]
- The ID of an Access service token.
- any_valid_ boolservice_ token 
- Matches any valid Access service token.
- auth_contexts Sequence[AccessPolicy Include Auth Context] 
- auth_method str
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
Sequence[AccessPolicy Include Azure] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate bool
- Matches any valid client certificate.
- common_name str
- Matches a valid client certificate common name.
- common_names Sequence[str]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- device_postures Sequence[str]
- The ID of a device posture integration.
- email_domains Sequence[str]
- The email domain to match.
- email_lists Sequence[str]
- The ID of a previously created email list.
- emails Sequence[str]
- The email of the user.
- everyone bool
- Matches everyone.
- external_evaluation AccessPolicy Include External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos Sequence[str]
- Matches a specific country.
- githubs
Sequence[AccessPolicy Include Github] 
- Matches a Github organization. Requires a Github identity provider.
- groups Sequence[str]
- The ID of a previously created Access group.
- gsuites
Sequence[AccessPolicy Include Gsuite] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ip_lists Sequence[str]
- The ID of a previously created IP list.
- ips Sequence[str]
- An IPv4 or IPv6 CIDR block.
- login_methods Sequence[str]
- The ID of a configured identity provider.
- oktas
Sequence[AccessPolicy Include Okta] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
Sequence[AccessPolicy Include Saml] 
- Matches a SAML group. Requires a SAML identity provider.
- service_tokens Sequence[str]
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<Property Map>
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures List<Property Map>
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation Property Map
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs List<Property Map>
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites List<Property Map>
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas List<Property Map>
- Matches an Okta group. Requires an Okta identity provider.
- samls List<Property Map>
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
AccessPolicyIncludeAuthContext, AccessPolicyIncludeAuthContextArgs          
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
- acId string
- The ACID of the Authentication Context.
- id string
- The ID of the Authentication Context.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ac_id str
- The ACID of the Authentication Context.
- id str
- The ID of the Authentication Context.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
AccessPolicyIncludeAzure, AccessPolicyIncludeAzureArgs        
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids List<string>
- The ID of the Azure group or user.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids []string
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ids string[]
- The ID of the Azure group or user.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- ids Sequence[str]
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
AccessPolicyIncludeExternalEvaluation, AccessPolicyIncludeExternalEvaluationArgs          
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl string
- The API endpoint containing your business logic.
- keysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluate_url str
- The API endpoint containing your business logic.
- keys_url str
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
AccessPolicyIncludeGithub, AccessPolicyIncludeGithubArgs        
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams List<string>
- The teams that should be matched.
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams []string
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
- identityProvider stringId 
- The ID of your Github identity provider.
- name string
- The name of the organization.
- teams string[]
- The teams that should be matched.
- identity_provider_ strid 
- The ID of your Github identity provider.
- name str
- The name of the organization.
- teams Sequence[str]
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
AccessPolicyIncludeGsuite, AccessPolicyIncludeGsuiteArgs        
- Emails List<string>
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- Emails []string
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
- emails string[]
- The email of the Google Workspace group.
- identityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails Sequence[str]
- The email of the Google Workspace group.
- identity_provider_ strid 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
AccessPolicyIncludeOkta, AccessPolicyIncludeOktaArgs        
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names List<string>
- The name of the Okta Group.
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names []string
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
- identityProvider stringId 
- The ID of your Okta identity provider.
- names string[]
- The name of the Okta Group.
- identity_provider_ strid 
- The ID of your Okta identity provider.
- names Sequence[str]
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
AccessPolicyIncludeSaml, AccessPolicyIncludeSamlArgs        
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
- attributeName string
- The name of the SAML attribute.
- attributeValue string
- The SAML attribute value to look for.
- identityProvider stringId 
- The ID of your SAML identity provider.
- attribute_name str
- The name of the SAML attribute.
- attribute_value str
- The SAML attribute value to look for.
- identity_provider_ strid 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
AccessPolicyRequire, AccessPolicyRequireArgs      
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts List<AccessPolicy Require Auth Context> 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
List<AccessPolicy Require Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames List<string>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures List<string>
- The ID of a device posture integration.
- EmailDomains List<string>
- The email domain to match.
- EmailLists List<string>
- The ID of a previously created email list.
- Emails List<string>
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Require External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos List<string>
- Matches a specific country.
- Githubs
List<AccessPolicy Require Github> 
- Matches a Github organization. Requires a Github identity provider.
- Groups List<string>
- The ID of a previously created Access group.
- Gsuites
List<AccessPolicy Require Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists List<string>
- The ID of a previously created IP list.
- Ips List<string>
- An IPv4 or IPv6 CIDR block.
- LoginMethods List<string>
- The ID of a configured identity provider.
- Oktas
List<AccessPolicy Require Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
List<AccessPolicy Require Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens List<string>
- The ID of an Access service token.
- AnyValid boolService Token 
- Matches any valid Access service token.
- AuthContexts []AccessPolicy Require Auth Context 
- AuthMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- Azures
[]AccessPolicy Require Azure 
- Matches an Azure group. Requires an Azure identity provider.
- Certificate bool
- Matches any valid client certificate.
- CommonName string
- Matches a valid client certificate common name.
- CommonNames []string
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- DevicePostures []string
- The ID of a device posture integration.
- EmailDomains []string
- The email domain to match.
- EmailLists []string
- The ID of a previously created email list.
- Emails []string
- The email of the user.
- Everyone bool
- Matches everyone.
- ExternalEvaluation AccessPolicy Require External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- Geos []string
- Matches a specific country.
- Githubs
[]AccessPolicy Require Github 
- Matches a Github organization. Requires a Github identity provider.
- Groups []string
- The ID of a previously created Access group.
- Gsuites
[]AccessPolicy Require Gsuite 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- IpLists []string
- The ID of a previously created IP list.
- Ips []string
- An IPv4 or IPv6 CIDR block.
- LoginMethods []string
- The ID of a configured identity provider.
- Oktas
[]AccessPolicy Require Okta 
- Matches an Okta group. Requires an Okta identity provider.
- Samls
[]AccessPolicy Require Saml 
- Matches a SAML group. Requires a SAML identity provider.
- ServiceTokens []string
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<AccessPolicy Require Auth Context> 
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
List<AccessPolicy Require Azure> 
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation AccessPolicy Require External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs
List<AccessPolicy Require Github> 
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites
List<AccessPolicy Require Gsuite> 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas
List<AccessPolicy Require Okta> 
- Matches an Okta group. Requires an Okta identity provider.
- samls
List<AccessPolicy Require Saml> 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
- anyValid booleanService Token 
- Matches any valid Access service token.
- authContexts AccessPolicy Require Auth Context[] 
- authMethod string
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
AccessPolicy Require Azure[] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate boolean
- Matches any valid client certificate.
- commonName string
- Matches a valid client certificate common name.
- commonNames string[]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures string[]
- The ID of a device posture integration.
- emailDomains string[]
- The email domain to match.
- emailLists string[]
- The ID of a previously created email list.
- emails string[]
- The email of the user.
- everyone boolean
- Matches everyone.
- externalEvaluation AccessPolicy Require External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos string[]
- Matches a specific country.
- githubs
AccessPolicy Require Github[] 
- Matches a Github organization. Requires a Github identity provider.
- groups string[]
- The ID of a previously created Access group.
- gsuites
AccessPolicy Require Gsuite[] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists string[]
- The ID of a previously created IP list.
- ips string[]
- An IPv4 or IPv6 CIDR block.
- loginMethods string[]
- The ID of a configured identity provider.
- oktas
AccessPolicy Require Okta[] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
AccessPolicy Require Saml[] 
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens string[]
- The ID of an Access service token.
- any_valid_ boolservice_ token 
- Matches any valid Access service token.
- auth_contexts Sequence[AccessPolicy Require Auth Context] 
- auth_method str
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures
Sequence[AccessPolicy Require Azure] 
- Matches an Azure group. Requires an Azure identity provider.
- certificate bool
- Matches any valid client certificate.
- common_name str
- Matches a valid client certificate common name.
- common_names Sequence[str]
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- device_postures Sequence[str]
- The ID of a device posture integration.
- email_domains Sequence[str]
- The email domain to match.
- email_lists Sequence[str]
- The ID of a previously created email list.
- emails Sequence[str]
- The email of the user.
- everyone bool
- Matches everyone.
- external_evaluation AccessPolicy Require External Evaluation 
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos Sequence[str]
- Matches a specific country.
- githubs
Sequence[AccessPolicy Require Github] 
- Matches a Github organization. Requires a Github identity provider.
- groups Sequence[str]
- The ID of a previously created Access group.
- gsuites
Sequence[AccessPolicy Require Gsuite] 
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ip_lists Sequence[str]
- The ID of a previously created IP list.
- ips Sequence[str]
- An IPv4 or IPv6 CIDR block.
- login_methods Sequence[str]
- The ID of a configured identity provider.
- oktas
Sequence[AccessPolicy Require Okta] 
- Matches an Okta group. Requires an Okta identity provider.
- samls
Sequence[AccessPolicy Require Saml] 
- Matches a SAML group. Requires a SAML identity provider.
- service_tokens Sequence[str]
- The ID of an Access service token.
- anyValid BooleanService Token 
- Matches any valid Access service token.
- authContexts List<Property Map>
- authMethod String
- The type of authentication method. Refer to https://datatracker.ietf.org/doc/html/rfc8176#section-2 for possible types.
- azures List<Property Map>
- Matches an Azure group. Requires an Azure identity provider.
- certificate Boolean
- Matches any valid client certificate.
- commonName String
- Matches a valid client certificate common name.
- commonNames List<String>
- Overflow field if you need to have multiple commonname rules in a single policy. Use in place of the singular commonname field.
- devicePostures List<String>
- The ID of a device posture integration.
- emailDomains List<String>
- The email domain to match.
- emailLists List<String>
- The ID of a previously created email list.
- emails List<String>
- The email of the user.
- everyone Boolean
- Matches everyone.
- externalEvaluation Property Map
- Create Allow or Block policies which evaluate the user based on custom criteria. https://developers.cloudflare.com/cloudflare-one/policies/access/external-evaluation/.
- geos List<String>
- Matches a specific country.
- githubs List<Property Map>
- Matches a Github organization. Requires a Github identity provider.
- groups List<String>
- The ID of a previously created Access group.
- gsuites List<Property Map>
- Matches a group in Google Workspace. Requires a Google Workspace identity provider.
- ipLists List<String>
- The ID of a previously created IP list.
- ips List<String>
- An IPv4 or IPv6 CIDR block.
- loginMethods List<String>
- The ID of a configured identity provider.
- oktas List<Property Map>
- Matches an Okta group. Requires an Okta identity provider.
- samls List<Property Map>
- Matches a SAML group. Requires a SAML identity provider.
- serviceTokens List<String>
- The ID of an Access service token.
AccessPolicyRequireAuthContext, AccessPolicyRequireAuthContextArgs          
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- AcId string
- The ACID of the Authentication Context.
- Id string
- The ID of the Authentication Context.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
- acId string
- The ACID of the Authentication Context.
- id string
- The ID of the Authentication Context.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ac_id str
- The ACID of the Authentication Context.
- id str
- The ID of the Authentication Context.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- acId String
- The ACID of the Authentication Context.
- id String
- The ID of the Authentication Context.
- identityProvider StringId 
- The ID of the Azure identity provider.
AccessPolicyRequireAzure, AccessPolicyRequireAzureArgs        
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids List<string>
- The ID of the Azure group or user.
- IdentityProvider stringId 
- The ID of the Azure identity provider.
- Ids []string
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
- identityProvider stringId 
- The ID of the Azure identity provider.
- ids string[]
- The ID of the Azure group or user.
- identity_provider_ strid 
- The ID of the Azure identity provider.
- ids Sequence[str]
- The ID of the Azure group or user.
- identityProvider StringId 
- The ID of the Azure identity provider.
- ids List<String>
- The ID of the Azure group or user.
AccessPolicyRequireExternalEvaluation, AccessPolicyRequireExternalEvaluationArgs          
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- EvaluateUrl string
- The API endpoint containing your business logic.
- KeysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl string
- The API endpoint containing your business logic.
- keysUrl string
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluate_url str
- The API endpoint containing your business logic.
- keys_url str
- The API endpoint containing the key that Access uses to verify that the response came from your API.
- evaluateUrl String
- The API endpoint containing your business logic.
- keysUrl String
- The API endpoint containing the key that Access uses to verify that the response came from your API.
AccessPolicyRequireGithub, AccessPolicyRequireGithubArgs        
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams List<string>
- The teams that should be matched.
- IdentityProvider stringId 
- The ID of your Github identity provider.
- Name string
- The name of the organization.
- Teams []string
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
- identityProvider stringId 
- The ID of your Github identity provider.
- name string
- The name of the organization.
- teams string[]
- The teams that should be matched.
- identity_provider_ strid 
- The ID of your Github identity provider.
- name str
- The name of the organization.
- teams Sequence[str]
- The teams that should be matched.
- identityProvider StringId 
- The ID of your Github identity provider.
- name String
- The name of the organization.
- teams List<String>
- The teams that should be matched.
AccessPolicyRequireGsuite, AccessPolicyRequireGsuiteArgs        
- Emails List<string>
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- Emails []string
- The email of the Google Workspace group.
- IdentityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
- emails string[]
- The email of the Google Workspace group.
- identityProvider stringId 
- The ID of your Google Workspace identity provider.
- emails Sequence[str]
- The email of the Google Workspace group.
- identity_provider_ strid 
- The ID of your Google Workspace identity provider.
- emails List<String>
- The email of the Google Workspace group.
- identityProvider StringId 
- The ID of your Google Workspace identity provider.
AccessPolicyRequireOkta, AccessPolicyRequireOktaArgs        
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names List<string>
- The name of the Okta Group.
- IdentityProvider stringId 
- The ID of your Okta identity provider.
- Names []string
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
- identityProvider stringId 
- The ID of your Okta identity provider.
- names string[]
- The name of the Okta Group.
- identity_provider_ strid 
- The ID of your Okta identity provider.
- names Sequence[str]
- The name of the Okta Group.
- identityProvider StringId 
- The ID of your Okta identity provider.
- names List<String>
- The name of the Okta Group.
AccessPolicyRequireSaml, AccessPolicyRequireSamlArgs        
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- AttributeName string
- The name of the SAML attribute.
- AttributeValue string
- The SAML attribute value to look for.
- IdentityProvider stringId 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
- attributeName string
- The name of the SAML attribute.
- attributeValue string
- The SAML attribute value to look for.
- identityProvider stringId 
- The ID of your SAML identity provider.
- attribute_name str
- The name of the SAML attribute.
- attribute_value str
- The SAML attribute value to look for.
- identity_provider_ strid 
- The ID of your SAML identity provider.
- attributeName String
- The name of the SAML attribute.
- attributeValue String
- The SAML attribute value to look for.
- identityProvider StringId 
- The ID of your SAML identity provider.
Import
$ pulumi import cloudflare:index/accessPolicy:AccessPolicy example account/<account_id>/<application_id>/<policy_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the cloudflareTerraform Provider.