import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * LoopbackInterface resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // * // Creates a loopback interface with static ipv4 address * // * const scmLoopbackIntf = new scm.LoopbackInterface("scm_loopback_intf", { * name: "$scm_loopback_intf", * comment: "Managed by Pulumi", * folder: "ngfw-shared", * ips: [{ * name: "198.18.1.1/32", * }], * }); * // * // Creates a loopback interface with static ipv4 address, with default value loopback.123 * // * const scmLoopbackIntf2 = new scm.LoopbackInterface("scm_loopback_intf_2", { * name: "$scm_loopback_intf_2", * comment: "Managed by Pulumi", * folder: "ngfw-shared", * defaultValue: "loopback.123", * ips: [{ * name: "198.18.1.2/32", * }], * }); * // * // Creates an ip subnet variable used in the subsequent example * // * const scmIpv6Prefix = new scm.Variable("scm_ipv6_prefix", { * folder: "ngfw-shared", * name: "$scm_ipv6_prefix", * description: "Managed by Pulumi", * type: "ip-netmask", * value: "2001:0db8:abcd:0001::/64", * }); * // * // Creates a loopback interface with ipv6 address, with default value loopback.321 * // * const scmLoopbackIntf3 = new scm.LoopbackInterface("scm_loopback_intf_3", { * name: "$scm_loopback_intf3", * comment: "Managed by Pulumi", * folder: "ngfw-shared", * defaultValue: "loopback.321", * ipv6: { * enabled: true, * interfaceId: "EUI-64", * addresses: [{ * name: "$scm_ipv6_prefix", * prefix: {}, * }], * }, * }, { * dependsOn: [scmIpv6Prefix], * }); * ``` * * ## Import * * The following command can be used to import a resource not managed by Terraform: * * ```sh * $ pulumi import scm:index/loopbackInterface:LoopbackInterface example folder:::id * ``` * * or * * ```sh * $ pulumi import scm:index/loopbackInterface:LoopbackInterface example :snippet::id * ``` * * or * * ```sh * $ pulumi import scm:index/loopbackInterface:LoopbackInterface example ::device:id * ``` * * **Note:** Please provide just one of folder, snippet, or device for the import command. */ export declare class LoopbackInterface extends pulumi.CustomResource { /** * Get an existing LoopbackInterface 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?: LoopbackInterfaceState, opts?: pulumi.CustomResourceOptions): LoopbackInterface; /** * Returns true if the given object is an instance of LoopbackInterface. 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 LoopbackInterface; /** * Description for loopback interface */ readonly comment: pulumi.Output; /** * Default interface assignment for loopback interface */ readonly defaultValue: pulumi.Output; /** * The device in which the resource is defined */ readonly device: pulumi.Output; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly folder: pulumi.Output; /** * Interface management profile for loopback interface */ readonly interfaceManagementProfile: pulumi.Output; /** * Loopback IP Parent */ readonly ips: pulumi.Output; /** * Loopback IPv6 Configuration */ readonly ipv6: pulumi.Output; /** * MTU for loopback interface */ readonly mtu: pulumi.Output; /** * Loopback Interface name */ readonly name: pulumi.Output; /** * Name of Netflow Profile to assign to Interface */ readonly netflowProfile: pulumi.Output; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ readonly snippet: pulumi.Output; /** * The Terraform ID. */ readonly tfid: pulumi.Output; /** * Create a LoopbackInterface 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?: LoopbackInterfaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LoopbackInterface resources. */ export interface LoopbackInterfaceState { /** * Description for loopback interface */ comment?: pulumi.Input; /** * Default interface assignment for loopback interface */ defaultValue?: pulumi.Input; /** * The device in which the resource is defined */ device?: pulumi.Input; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input; /** * Interface management profile for loopback interface */ interfaceManagementProfile?: pulumi.Input; /** * Loopback IP Parent */ ips?: pulumi.Input[] | undefined>; /** * Loopback IPv6 Configuration */ ipv6?: pulumi.Input; /** * MTU for loopback interface */ mtu?: pulumi.Input; /** * Loopback Interface name */ name?: pulumi.Input; /** * Name of Netflow Profile to assign to Interface */ netflowProfile?: pulumi.Input; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input; /** * The Terraform ID. */ tfid?: pulumi.Input; } /** * The set of arguments for constructing a LoopbackInterface resource. */ export interface LoopbackInterfaceArgs { /** * Description for loopback interface */ comment?: pulumi.Input; /** * Default interface assignment for loopback interface */ defaultValue?: pulumi.Input; /** * The device in which the resource is defined */ device?: pulumi.Input; /** * The folder in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ folder?: pulumi.Input; /** * Interface management profile for loopback interface */ interfaceManagementProfile?: pulumi.Input; /** * Loopback IP Parent */ ips?: pulumi.Input[] | undefined>; /** * Loopback IPv6 Configuration */ ipv6?: pulumi.Input; /** * MTU for loopback interface */ mtu?: pulumi.Input; /** * Loopback Interface name */ name?: pulumi.Input; /** * Name of Netflow Profile to assign to Interface */ netflowProfile?: pulumi.Input; /** * The snippet in which the resource is defined * * > ℹ️ **Note:** You must specify exactly one of `device`, `folder`, and `snippet`. */ snippet?: pulumi.Input; } //# sourceMappingURL=loopbackInterface.d.ts.map