import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ForwardingProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // User location representing the US East office IP ranges * const exampleUsEast = new scm.ForwardingProfileUserLocation("example_us_east", { * folder: "Mobile Users", * name: "us-east-tf", * description: "Managed by Terraform - US East office user location", * ipAddresses: [ * "10.1.0.0/16", * "10.2.0.0/16", * ], * }); * // Corporate destination profile with FQDN and IP ranges * const corpDestinations = new scm.ForwardingProfileDestination("corp_destinations", { * folder: "Mobile Users", * name: "corp-destinations-combined", * description: "Managed by Terraform - Corporate FQDN and IP destinations (combined example)", * fqdns: [ * { * name: "*.corporate.com", * port: 443, * }, * { * name: "api.internal.com", * port: 8443, * }, * ], * ipAddresses: [ * { * name: "10.0.0.0/8", * port: 443, * }, * { * name: "172.16.0.0/12", * port: 443, * }, * ], * }); * // Basic Global Protect proxy-based forwarding profile with a single forwarding rule * const exampleGpProxyBasic = new scm.ForwardingProfile("example_gp_proxy_basic", { * folder: "Mobile Users", * name: "example-gp-proxy-basic", * type: { * globalProtectProxy: { * forwardingRules: [{ * name: "direct-rule", * connectivity: "direct", * destinations: "Any", * enabled: true, * }], * }, * }, * }, { * dependsOn: [ * exampleUsEast, * corpDestinations, * ], * }); * // Global Protect proxy-based forwarding profile with block rule and multiple forwarding rules * const exampleGpProxyFull = new scm.ForwardingProfile("example_gp_proxy_full", { * folder: "Mobile Users", * name: "example-gp-proxy-full", * description: "Managed by Terraform - GP proxy with block rule and multiple forwarding rules", * type: { * globalProtectProxy: { * pacUpload: false, * blockRule: { * enable: true, * allowTcp: { * enableLocations: true, * locations: [exampleUsEast.name], * }, * allowUdp: { * enableLocations: true, * locations: [exampleUsEast.name], * enableDestinations: true, * destinations: "any", * }, * }, * forwardingRules: [{ * name: "direct-rule", * connectivity: "direct", * destinations: corpDestinations.name, * userLocations: "Any", * enabled: true, * }], * }, * }, * }, { * dependsOn: [ * exampleUsEast, * corpDestinations, * ], * }); * // PAC file based forwarding profile * const examplePacFile = new scm.ForwardingProfile("example_pac_file", { * folder: "Mobile Users", * name: "example-pac-file", * description: "Managed by Terraform - PAC file based forwarding profile", * type: { * pacFile: { * pacUpload: true, * forwardingRules: [{ * name: "pac-direct-rule", * connectivity: "direct", * destinations: "Any", * enabled: true, * }], * }, * }, * }, { * dependsOn: [ * exampleUsEast, * corpDestinations, * ], * }); * // ZTNA agent-based forwarding profile with block rule and forwarding rules * const exampleZtnaAgent = new scm.ForwardingProfile("example_ztna_agent", { * folder: "Mobile Users", * name: "example-ztna-agent", * description: "Managed by Terraform - ZTNA agent forwarding profile with block rule", * type: { * ztnaAgent: { * blockRule: { * blockAllOtherUnmatchedOutboundConnections: false, * blockInboundAccessWhenConnectedToTunnel: false, * blockNonTcpNonUdpTrafficWhenConnectedToTunnel: false, * allowIcmpForTroubleshooting: false, * blockOutboundLanAccessWhenConnectedToTunnel: false, * enforcerFqdnDnsResolutionViaDnsServers: true, * resolveAllFqdnsUsingDnsServersAssignedByTheTunnel: true, * }, * forwardingRules: [ * { * name: "ztna-dns-rule", * connectivity: "tunnel", * destinations: corpDestinations.name, * sourceApplications: "Any", * trafficType: "dns-and-network-traffic", * userLocations: "Any", * enabled: true, * }, * { * name: "ztna-direct-rule", * connectivity: "direct", * destinations: "Any", * sourceApplications: "Any", * trafficType: "network-traffic", * userLocations: "Any", * enabled: true, * }, * ], * }, * }, * }, { * dependsOn: [corpDestinations], * }); * ``` * * ## Import * * The following command can be used to import a resource not managed by Terraform: * * ```sh * $ pulumi import scm:index/forwardingProfile:ForwardingProfile example folder:::id * ``` * * or * * ```sh * $ pulumi import scm:index/forwardingProfile:ForwardingProfile example :snippet::id * ``` * * or * * ```sh * $ pulumi import scm:index/forwardingProfile:ForwardingProfile example ::device:id * ``` * * **Note:** Please provide just one of folder, snippet, or device for the import command. */ export declare class ForwardingProfile extends pulumi.CustomResource { /** * Get an existing ForwardingProfile 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?: ForwardingProfileState, opts?: pulumi.CustomResourceOptions): ForwardingProfile; /** * Returns true if the given object is an instance of ForwardingProfile. 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 ForwardingProfile; /** * Enable forwarding rule for forwarding profile */ readonly definitionMethod: pulumi.Output; /** * Forwarding profile description */ readonly description: pulumi.Output; /** * The folder in which the resource is defined */ readonly folder: pulumi.Output; /** * forwarding profile name as an alphanumeric string [ 0-9a-zA-Z._ -] */ readonly name: pulumi.Output; /** * The Terraform ID. */ readonly tfid: pulumi.Output; /** * Forwarding profile type configuration (PAC file, GlobalProtect proxy, or ZTNA agent) */ readonly type: pulumi.Output; /** * Create a ForwardingProfile 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?: ForwardingProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ForwardingProfile resources. */ export interface ForwardingProfileState { /** * Enable forwarding rule for forwarding profile */ definitionMethod?: pulumi.Input; /** * Forwarding profile description */ description?: pulumi.Input; /** * The folder in which the resource is defined */ folder?: pulumi.Input; /** * forwarding profile name as an alphanumeric string [ 0-9a-zA-Z._ -] */ name?: pulumi.Input; /** * The Terraform ID. */ tfid?: pulumi.Input; /** * Forwarding profile type configuration (PAC file, GlobalProtect proxy, or ZTNA agent) */ type?: pulumi.Input; } /** * The set of arguments for constructing a ForwardingProfile resource. */ export interface ForwardingProfileArgs { /** * Enable forwarding rule for forwarding profile */ definitionMethod?: pulumi.Input; /** * Forwarding profile description */ description?: pulumi.Input; /** * The folder in which the resource is defined */ folder?: pulumi.Input; /** * forwarding profile name as an alphanumeric string [ 0-9a-zA-Z._ -] */ name?: pulumi.Input; /** * Forwarding profile type configuration (PAC file, GlobalProtect proxy, or ZTNA agent) */ type?: pulumi.Input; } //# sourceMappingURL=forwardingProfile.d.ts.map