import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * With this resource, you can create and manage NetworkACLs for a tenant. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Example of auth0_network_acl with match criteria * const myNetworkAclMatch = new auth0.NetworkAcl("my_network_acl_match", { * rule: { * action: { * allow: true, * }, * match: { * geoCountryCodes: [ * "US", * "CA", * ], * geoSubdivisionCodes: [ * "US-NY", * "CA-ON", * ], * }, * scope: "management", * }, * description: "Example with match network ACL", * active: true, * priority: 1, * }); * // Example of auth0_network_acl with not-match criteria * const myNetworkAclNotMatch = new auth0.NetworkAcl("my_network_acl_not_match", { * rule: { * action: { * log: true, * }, * notMatch: { * asns: [9876], * ipv4Cidrs: [ * "192.168.1.0/24", * "10.0.0.0/8", * ], * ipv6Cidrs: ["2001:db8::/32"], * }, * scope: "authentication", * }, * description: "Example with not match network ACL", * active: true, * priority: 3, * }); * // Example of auth0_network_acl using Auth0-curated blocklists (Early Access). * // * // The `auth0_managed` field requires the `advanced-breached-password-detection` * // entitlement and the `tenant_acl_curated_blocklists` feature flag on the tenant. * // Allowed values are `auth0.low_reputation` and `auth0.icloud_relay_proxy`. * const blockIcloudRelay = new auth0.NetworkAcl("block_icloud_relay", { * rule: { * action: { * block: true, * }, * match: { * auth0Manageds: ["auth0.icloud_relay_proxy"], * }, * scope: "authentication", * }, * description: "Block iCloud Private Relay egress proxies", * active: true, * priority: 7, * }); * // Example using `not_match` to allow all traffic *unless* it comes from a * // low-reputation curated blocklist. `auth0_managed` is accepted on either block. * const allowUnlessLowReputation = new auth0.NetworkAcl("allow_unless_low_reputation", { * rule: { * action: { * allow: true, * }, * notMatch: { * auth0Manageds: ["auth0.low_reputation"], * }, * scope: "authentication", * }, * description: "Allow traffic unless it is on the low-reputation blocklist", * active: true, * priority: 8, * }); * // Example of auth0_network_acl with hostname and connecting IP restrictions * const blockCanonical = new auth0.NetworkAcl("block_canonical", { * rule: { * action: { * block: true, * }, * match: { * hostnames: ["mytenant1.us.auth0.com"], * connectingIpv6Cidrs: [ * "2001:db8::/32", * "::1", * ], * }, * notMatch: { * hostnames: ["mytenant2.us.auth0.com"], * connectingIpv4Cidrs: ["203.0.113.0/24"], * }, * scope: "tenant", * }, * description: "Block canonical domain except from proxy", * active: true, * priority: 5, * }); * ``` * * ## Import * * This resource can be imported using the network acl ID. * * Example: * * ```sh * $ pulumi import auth0:index/networkAcl:NetworkAcl my_network_acl "167f9a50-4444-3333-1111-ndfdaf953ab4" * ``` */ export declare class NetworkAcl extends pulumi.CustomResource { /** * Get an existing NetworkAcl resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NetworkAclState, opts?: pulumi.CustomResourceOptions): NetworkAcl; /** * Check whether an existing NetworkAcl resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: NetworkAclState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of NetworkAcl. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkAcl; /** * Whether the Network ACL is active */ readonly active: pulumi.Output; /** * The description of the Network ACL */ readonly description: pulumi.Output; /** * The priority of the Network ACL. Must be unique between 1 and 10. */ readonly priority: pulumi.Output; /** * The rule of the Network ACL */ readonly rule: pulumi.Output; /** * Create a NetworkAcl resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkAclArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkAcl resources. */ export interface NetworkAclState { /** * Whether the Network ACL is active */ active?: pulumi.Input; /** * The description of the Network ACL */ description?: pulumi.Input; /** * The priority of the Network ACL. Must be unique between 1 and 10. */ priority?: pulumi.Input; /** * The rule of the Network ACL */ rule?: pulumi.Input; } /** * The set of arguments for constructing a NetworkAcl resource. */ export interface NetworkAclArgs { /** * Whether the Network ACL is active */ active: pulumi.Input; /** * The description of the Network ACL */ description: pulumi.Input; /** * The priority of the Network ACL. Must be unique between 1 and 10. */ priority: pulumi.Input; /** * The rule of the Network ACL */ rule: pulumi.Input; } //# sourceMappingURL=networkAcl.d.ts.map