// *** 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 IPv6 multicast NAT policies.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Fortios = Pulumiverse.Fortios;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var trname = new Fortios.FirewallMulticastpolicy6("trname", new()
    ///     {
    ///         Action = "accept",
    ///         Dstaddrs = new[]
    ///         {
    ///             new Fortios.Inputs.FirewallMulticastpolicy6DstaddrArgs
    ///             {
    ///                 Name = "all",
    ///             },
    ///         },
    ///         Dstintf = "port4",
    ///         EndPort = 65535,
    ///         Fosid = 1,
    ///         Logtraffic = "disable",
    ///         Protocol = 0,
    ///         Srcaddrs = new[]
    ///         {
    ///             new Fortios.Inputs.FirewallMulticastpolicy6SrcaddrArgs
    ///             {
    ///                 Name = "all",
    ///             },
    ///         },
    ///         Srcintf = "port3",
    ///         StartPort = 1,
    ///         Status = "enable",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Firewall MulticastPolicy6 can be imported using any of these accepted formats
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallMulticastpolicy6:FirewallMulticastpolicy6 labelname {{fosid}}
    /// ```
    /// 
    ///  If you do not want to import arguments of block$ export "FORTIOS_IMPORT_TABLE"="false"
    /// 
    /// ```sh
    ///  $ pulumi import fortios:index/firewallMulticastpolicy6:FirewallMulticastpolicy6 labelname {{fosid}}
    /// ```
    /// 
    ///  $ unset "FORTIOS_IMPORT_TABLE"
    /// </summary>
    [FortiosResourceType("fortios:index/firewallMulticastpolicy6:FirewallMulticastpolicy6")]
    public partial class FirewallMulticastpolicy6 : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Accept or deny traffic matching the policy. Valid values: `accept`, `deny`.
        /// </summary>
        [Output("action")]
        public Output<string> Action { get; private set; } = null!;

        /// <summary>
        /// Enable/disable offloading policy traffic for hardware acceleration. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("autoAsicOffload")]
        public Output<string> AutoAsicOffload { get; private set; } = null!;

        /// <summary>
        /// Comment.
        /// </summary>
        [Output("comments")]
        public Output<string?> Comments { get; private set; } = null!;

        /// <summary>
        /// IPv6 destination address name. The structure of `dstaddr` block is documented below.
        /// </summary>
        [Output("dstaddrs")]
        public Output<ImmutableArray<Outputs.FirewallMulticastpolicy6Dstaddr>> Dstaddrs { get; private set; } = null!;

        /// <summary>
        /// IPv6 destination interface name.
        /// </summary>
        [Output("dstintf")]
        public Output<string> Dstintf { get; private set; } = null!;

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Output("dynamicSortSubtable")]
        public Output<string?> DynamicSortSubtable { get; private set; } = null!;

        /// <summary>
        /// Integer value for ending TCP/UDP/SCTP destination port in range (1 - 65535, default = 65535).
        /// </summary>
        [Output("endPort")]
        public Output<int> EndPort { get; private set; } = null!;

        /// <summary>
        /// Policy ID.
        /// </summary>
        [Output("fosid")]
        public Output<int> Fosid { get; private set; } = null!;

        /// <summary>
        /// Enable/disable logging traffic accepted by this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("logtraffic")]
        public Output<string> Logtraffic { get; private set; } = null!;

        /// <summary>
        /// Policy name.
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// Integer value for the protocol type as defined by IANA (0 - 255, default = 0).
        /// </summary>
        [Output("protocol")]
        public Output<int> Protocol { get; private set; } = null!;

        /// <summary>
        /// IPv6 source address name. The structure of `srcaddr` block is documented below.
        /// </summary>
        [Output("srcaddrs")]
        public Output<ImmutableArray<Outputs.FirewallMulticastpolicy6Srcaddr>> Srcaddrs { get; private set; } = null!;

        /// <summary>
        /// IPv6 source interface name.
        /// </summary>
        [Output("srcintf")]
        public Output<string> Srcintf { get; private set; } = null!;

        /// <summary>
        /// Integer value for starting TCP/UDP/SCTP destination port in range (1 - 65535, default = 1).
        /// </summary>
        [Output("startPort")]
        public Output<int> StartPort { get; private set; } = null!;

        /// <summary>
        /// Enable/disable this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Output("uuid")]
        public Output<string> Uuid { 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 FirewallMulticastpolicy6 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 FirewallMulticastpolicy6(string name, FirewallMulticastpolicy6Args args, CustomResourceOptions? options = null)
            : base("fortios:index/firewallMulticastpolicy6:FirewallMulticastpolicy6", name, args ?? new FirewallMulticastpolicy6Args(), MakeResourceOptions(options, ""))
        {
        }

        private FirewallMulticastpolicy6(string name, Input<string> id, FirewallMulticastpolicy6State? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/firewallMulticastpolicy6:FirewallMulticastpolicy6", 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 FirewallMulticastpolicy6 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 FirewallMulticastpolicy6 Get(string name, Input<string> id, FirewallMulticastpolicy6State? state = null, CustomResourceOptions? options = null)
        {
            return new FirewallMulticastpolicy6(name, id, state, options);
        }
    }

    public sealed class FirewallMulticastpolicy6Args : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Accept or deny traffic matching the policy. Valid values: `accept`, `deny`.
        /// </summary>
        [Input("action")]
        public Input<string>? Action { get; set; }

        /// <summary>
        /// Enable/disable offloading policy traffic for hardware acceleration. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("autoAsicOffload")]
        public Input<string>? AutoAsicOffload { get; set; }

        /// <summary>
        /// Comment.
        /// </summary>
        [Input("comments")]
        public Input<string>? Comments { get; set; }

        [Input("dstaddrs", required: true)]
        private InputList<Inputs.FirewallMulticastpolicy6DstaddrArgs>? _dstaddrs;

        /// <summary>
        /// IPv6 destination address name. The structure of `dstaddr` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallMulticastpolicy6DstaddrArgs> Dstaddrs
        {
            get => _dstaddrs ?? (_dstaddrs = new InputList<Inputs.FirewallMulticastpolicy6DstaddrArgs>());
            set => _dstaddrs = value;
        }

        /// <summary>
        /// IPv6 destination interface name.
        /// </summary>
        [Input("dstintf", required: true)]
        public Input<string> Dstintf { get; set; } = null!;

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        /// <summary>
        /// Integer value for ending TCP/UDP/SCTP destination port in range (1 - 65535, default = 65535).
        /// </summary>
        [Input("endPort")]
        public Input<int>? EndPort { get; set; }

        /// <summary>
        /// Policy ID.
        /// </summary>
        [Input("fosid")]
        public Input<int>? Fosid { get; set; }

        /// <summary>
        /// Enable/disable logging traffic accepted by this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("logtraffic")]
        public Input<string>? Logtraffic { get; set; }

        /// <summary>
        /// Policy name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Integer value for the protocol type as defined by IANA (0 - 255, default = 0).
        /// </summary>
        [Input("protocol")]
        public Input<int>? Protocol { get; set; }

        [Input("srcaddrs", required: true)]
        private InputList<Inputs.FirewallMulticastpolicy6SrcaddrArgs>? _srcaddrs;

        /// <summary>
        /// IPv6 source address name. The structure of `srcaddr` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallMulticastpolicy6SrcaddrArgs> Srcaddrs
        {
            get => _srcaddrs ?? (_srcaddrs = new InputList<Inputs.FirewallMulticastpolicy6SrcaddrArgs>());
            set => _srcaddrs = value;
        }

        /// <summary>
        /// IPv6 source interface name.
        /// </summary>
        [Input("srcintf", required: true)]
        public Input<string> Srcintf { get; set; } = null!;

        /// <summary>
        /// Integer value for starting TCP/UDP/SCTP destination port in range (1 - 65535, default = 1).
        /// </summary>
        [Input("startPort")]
        public Input<int>? StartPort { get; set; }

        /// <summary>
        /// Enable/disable this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Input("uuid")]
        public Input<string>? Uuid { 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 FirewallMulticastpolicy6Args()
        {
        }
        public static new FirewallMulticastpolicy6Args Empty => new FirewallMulticastpolicy6Args();
    }

    public sealed class FirewallMulticastpolicy6State : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Accept or deny traffic matching the policy. Valid values: `accept`, `deny`.
        /// </summary>
        [Input("action")]
        public Input<string>? Action { get; set; }

        /// <summary>
        /// Enable/disable offloading policy traffic for hardware acceleration. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("autoAsicOffload")]
        public Input<string>? AutoAsicOffload { get; set; }

        /// <summary>
        /// Comment.
        /// </summary>
        [Input("comments")]
        public Input<string>? Comments { get; set; }

        [Input("dstaddrs")]
        private InputList<Inputs.FirewallMulticastpolicy6DstaddrGetArgs>? _dstaddrs;

        /// <summary>
        /// IPv6 destination address name. The structure of `dstaddr` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallMulticastpolicy6DstaddrGetArgs> Dstaddrs
        {
            get => _dstaddrs ?? (_dstaddrs = new InputList<Inputs.FirewallMulticastpolicy6DstaddrGetArgs>());
            set => _dstaddrs = value;
        }

        /// <summary>
        /// IPv6 destination interface name.
        /// </summary>
        [Input("dstintf")]
        public Input<string>? Dstintf { get; set; }

        /// <summary>
        /// Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -&gt; [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -&gt; [ a10, a2 ].
        /// </summary>
        [Input("dynamicSortSubtable")]
        public Input<string>? DynamicSortSubtable { get; set; }

        /// <summary>
        /// Integer value for ending TCP/UDP/SCTP destination port in range (1 - 65535, default = 65535).
        /// </summary>
        [Input("endPort")]
        public Input<int>? EndPort { get; set; }

        /// <summary>
        /// Policy ID.
        /// </summary>
        [Input("fosid")]
        public Input<int>? Fosid { get; set; }

        /// <summary>
        /// Enable/disable logging traffic accepted by this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("logtraffic")]
        public Input<string>? Logtraffic { get; set; }

        /// <summary>
        /// Policy name.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Integer value for the protocol type as defined by IANA (0 - 255, default = 0).
        /// </summary>
        [Input("protocol")]
        public Input<int>? Protocol { get; set; }

        [Input("srcaddrs")]
        private InputList<Inputs.FirewallMulticastpolicy6SrcaddrGetArgs>? _srcaddrs;

        /// <summary>
        /// IPv6 source address name. The structure of `srcaddr` block is documented below.
        /// </summary>
        public InputList<Inputs.FirewallMulticastpolicy6SrcaddrGetArgs> Srcaddrs
        {
            get => _srcaddrs ?? (_srcaddrs = new InputList<Inputs.FirewallMulticastpolicy6SrcaddrGetArgs>());
            set => _srcaddrs = value;
        }

        /// <summary>
        /// IPv6 source interface name.
        /// </summary>
        [Input("srcintf")]
        public Input<string>? Srcintf { get; set; }

        /// <summary>
        /// Integer value for starting TCP/UDP/SCTP destination port in range (1 - 65535, default = 1).
        /// </summary>
        [Input("startPort")]
        public Input<int>? StartPort { get; set; }

        /// <summary>
        /// Enable/disable this policy. Valid values: `enable`, `disable`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
        /// </summary>
        [Input("uuid")]
        public Input<string>? Uuid { 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 FirewallMulticastpolicy6State()
        {
        }
        public static new FirewallMulticastpolicy6State Empty => new FirewallMulticastpolicy6State();
    }
}
