UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

142 lines (141 loc) 4.36 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Configure access lists. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname = new fortios.router.Accesslist("trname", {comments: "test accesslist"}); * ``` * * ## Note * * The feature can only be correctly supported when FortiOS Version >= 6.2.4, for FortiOS Version < 6.2.4, please use the following resource configuration as an alternative. * * ### Example * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const trname1 = new fortios.system.Autoscript("trname1", { * interval: 1, * outputSize: 10, * repeat: 1, * script: `config router access-list * edit "static-redistribution" * config rule * edit 10 * set prefix 10.0.0.0 255.255.255.0 * set action permit * set exact-match enable * end * end * * `, * start: "auto", * }); * ``` * * ## Import * * Router AccessList can be imported using any of these accepted formats: * * ```sh * $ pulumi import fortios:router/accesslist:Accesslist labelname {{name}} * ``` * * If you do not want to import arguments of block: * * $ export "FORTIOS_IMPORT_TABLE"="true" * * ```sh * $ pulumi import fortios:router/accesslist:Accesslist labelname {{name}} * ``` * * $ unset "FORTIOS_IMPORT_TABLE" */ export declare class Accesslist extends pulumi.CustomResource { /** * Get an existing Accesslist 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<pulumi.ID>, state?: AccesslistState, opts?: pulumi.CustomResourceOptions): Accesslist; /** * Returns true if the given object is an instance of Accesslist. 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 Accesslist; /** * Comment. */ readonly comments: pulumi.Output<string>; readonly dynamicSortSubtable: pulumi.Output<string | undefined>; readonly getAllTables: pulumi.Output<string | undefined>; /** * Name. */ readonly name: pulumi.Output<string>; /** * Rule. The structure of `rule` block is documented below. */ readonly rules: pulumi.Output<outputs.router.AccesslistRule[] | undefined>; readonly vdomparam: pulumi.Output<string>; /** * Create a Accesslist 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?: AccesslistArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Accesslist resources. */ export interface AccesslistState { /** * Comment. */ comments?: pulumi.Input<string>; dynamicSortSubtable?: pulumi.Input<string>; getAllTables?: pulumi.Input<string>; /** * Name. */ name?: pulumi.Input<string>; /** * Rule. The structure of `rule` block is documented below. */ rules?: pulumi.Input<pulumi.Input<inputs.router.AccesslistRule>[]>; vdomparam?: pulumi.Input<string>; } /** * The set of arguments for constructing a Accesslist resource. */ export interface AccesslistArgs { /** * Comment. */ comments?: pulumi.Input<string>; dynamicSortSubtable?: pulumi.Input<string>; getAllTables?: pulumi.Input<string>; /** * Name. */ name?: pulumi.Input<string>; /** * Rule. The structure of `rule` block is documented below. */ rules?: pulumi.Input<pulumi.Input<inputs.router.AccesslistRule>[]>; vdomparam?: pulumi.Input<string>; }