<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios
{
    /// <summary>
    /// Configure additional port mappings for Internet Services. Applies to FortiOS Version `6.2.4,6.2.6,6.4.1,6.4.2,6.4.10,7.0.0,7.0.1,7.0.2,7.0.3,7.0.4,7.0.5,7.0.6,7.2.0,7.2.1,7.2.2`.
    /// 
    /// ## Import
    /// 
    /// Firewall InternetServiceAppend can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallInternetserviceappend:FirewallInternetserviceappend labelname FirewallInternetServiceAppend
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallInternetserviceappend:FirewallInternetserviceappend labelname FirewallInternetServiceAppend
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/firewallInternetserviceappend:FirewallInternetserviceappend")]
    public partial class FirewallInternetserviceappend : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Address mode (IPv4 or IPv6) Valid values: `ipv4`, `ipv6`, `both`.
        /// </summary>
        [Output("addrMode")]
        public Output<string> AddrMode { get; private set; } = null!;

        /// <summary>
        /// Appending TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Output("appendPort")]
        public Output<int> AppendPort { get; private set; } = null!;

        /// <summary>
        /// Matching TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Output("matchPort")]
        public Output<int> MatchPort { get; private set; } = null!;

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Output("vdomparam")]
        public Output<string?> Vdomparam { get; private set; } = null!;


        /// <summary>
        /// Create a FirewallInternetserviceappend resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public FirewallInternetserviceappend(string name, FirewallInternetserviceappendArgs? args = null, CustomResourceOptions? options = null)
            : base("fortios:index/firewallInternetserviceappend:FirewallInternetserviceappend", name, args ?? new FirewallInternetserviceappendArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FirewallInternetserviceappend(string name, Input<string> id, FirewallInternetserviceappendState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/firewallInternetserviceappend:FirewallInternetserviceappend", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/pulumiverse/pulumi-fortios",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing FirewallInternetserviceappend resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static FirewallInternetserviceappend Get(string name, Input<string> id, FirewallInternetserviceappendState? state = null, CustomResourceOptions? options = null)
        {
            return new FirewallInternetserviceappend(name, id, state, options);
        }
    }

    public sealed class FirewallInternetserviceappendArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Address mode (IPv4 or IPv6) Valid values: `ipv4`, `ipv6`, `both`.
        /// </summary>
        [Input("addrMode")]
        public Input<string>? AddrMode { get; set; }

        /// <summary>
        /// Appending TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Input("appendPort")]
        public Input<int>? AppendPort { get; set; }

        /// <summary>
        /// Matching TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Input("matchPort")]
        public Input<int>? MatchPort { get; set; }

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

        public FirewallInternetserviceappendArgs()
        {
        }
        public static new FirewallInternetserviceappendArgs Empty => new FirewallInternetserviceappendArgs();
    }

    public sealed class FirewallInternetserviceappendState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Address mode (IPv4 or IPv6) Valid values: `ipv4`, `ipv6`, `both`.
        /// </summary>
        [Input("addrMode")]
        public Input<string>? AddrMode { get; set; }

        /// <summary>
        /// Appending TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Input("appendPort")]
        public Input<int>? AppendPort { get; set; }

        /// <summary>
        /// Matching TCP/UDP/SCTP destination port (1 to 65535).
        /// </summary>
        [Input("matchPort")]
        public Input<int>? MatchPort { get; set; }

        /// <summary>
        /// Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
        /// </summary>
        [Input("vdomparam")]
        public Input<string>? Vdomparam { get; set; }

        public FirewallInternetserviceappendState()
        {
        }
        public static new FirewallInternetserviceappendState Empty => new FirewallInternetserviceappendState();
    }
}
