UNPKG

@pulumiverse/fortios

Version:

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

244 lines (243 loc) 6.57 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to configure firewall service of FortiOS. * * !> **Warning:** The resource will be deprecated and replaced by new resource `fortios.firewall/service.Custom`, we recommend that you use the new resource. * * ## Example Usage * * ### Fqdn Service * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const v11 = new fortios.firewall.ObjectService("v11", { * category: "General", * comment: "comment", * fqdn: "abc.com", * protocol: "TCP/UDP/SCTP", * }); * ``` * * ### Iprange Service * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const v13 = new fortios.firewall.ObjectService("v13", { * category: "General", * comment: "comment", * iprange: "1.1.1.1-2.2.2.2", * protocol: "TCP/UDP/SCTP", * sctpPortrange: "66-88", * tcpPortrange: "22-33", * udpPortrange: "44-55", * }); * ``` * * ### ICMP Service * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumiverse/fortios"; * * const iCMP = new fortios.firewall.ObjectService("iCMP", { * category: "General", * comment: "comment", * icmpcode: "3", * icmptype: "2", * protocol: "ICMP", * protocolNumber: "1", * }); * ``` */ export declare class ObjectService extends pulumi.CustomResource { /** * Get an existing ObjectService 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?: ObjectServiceState, opts?: pulumi.CustomResourceOptions): ObjectService; /** * Returns true if the given object is an instance of ObjectService. 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 ObjectService; /** * Service category. */ readonly category: pulumi.Output<string>; /** * Comment. */ readonly comment: pulumi.Output<string | undefined>; /** * Fully qualified domain name. */ readonly fqdn: pulumi.Output<string>; /** * ICMP code. */ readonly icmpcode: pulumi.Output<string>; /** * ICMP type. */ readonly icmptype: pulumi.Output<string>; /** * Start and end of the IP range associated with service. */ readonly iprange: pulumi.Output<string>; /** * Number of minutes before an idle administrator session time out. */ readonly name: pulumi.Output<string>; /** * Protocol type based on IANA numbers. */ readonly protocol: pulumi.Output<string>; /** * IP protocol number. */ readonly protocolNumber: pulumi.Output<string>; /** * Multiple SCTP port ranges. */ readonly sctpPortrange: pulumi.Output<string>; /** * Custom tcp session TTL. */ readonly sessionTtl: pulumi.Output<string>; /** * Multiple TCP port ranges. */ readonly tcpPortrange: pulumi.Output<string>; /** * Multiple UDP port ranges. */ readonly udpPortrange: pulumi.Output<string>; /** * Create a ObjectService 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: ObjectServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObjectService resources. */ export interface ObjectServiceState { /** * Service category. */ category?: pulumi.Input<string>; /** * Comment. */ comment?: pulumi.Input<string>; /** * Fully qualified domain name. */ fqdn?: pulumi.Input<string>; /** * ICMP code. */ icmpcode?: pulumi.Input<string>; /** * ICMP type. */ icmptype?: pulumi.Input<string>; /** * Start and end of the IP range associated with service. */ iprange?: pulumi.Input<string>; /** * Number of minutes before an idle administrator session time out. */ name?: pulumi.Input<string>; /** * Protocol type based on IANA numbers. */ protocol?: pulumi.Input<string>; /** * IP protocol number. */ protocolNumber?: pulumi.Input<string>; /** * Multiple SCTP port ranges. */ sctpPortrange?: pulumi.Input<string>; /** * Custom tcp session TTL. */ sessionTtl?: pulumi.Input<string>; /** * Multiple TCP port ranges. */ tcpPortrange?: pulumi.Input<string>; /** * Multiple UDP port ranges. */ udpPortrange?: pulumi.Input<string>; } /** * The set of arguments for constructing a ObjectService resource. */ export interface ObjectServiceArgs { /** * Service category. */ category: pulumi.Input<string>; /** * Comment. */ comment?: pulumi.Input<string>; /** * Fully qualified domain name. */ fqdn?: pulumi.Input<string>; /** * ICMP code. */ icmpcode?: pulumi.Input<string>; /** * ICMP type. */ icmptype?: pulumi.Input<string>; /** * Start and end of the IP range associated with service. */ iprange?: pulumi.Input<string>; /** * Number of minutes before an idle administrator session time out. */ name?: pulumi.Input<string>; /** * Protocol type based on IANA numbers. */ protocol: pulumi.Input<string>; /** * IP protocol number. */ protocolNumber?: pulumi.Input<string>; /** * Multiple SCTP port ranges. */ sctpPortrange?: pulumi.Input<string>; /** * Custom tcp session TTL. */ sessionTtl?: pulumi.Input<string>; /** * Multiple TCP port ranges. */ tcpPortrange?: pulumi.Input<string>; /** * Multiple UDP port ranges. */ udpPortrange?: pulumi.Input<string>; }