<filename>sdk/dotnet/Zia/Firewall/FirewallFilteringDestinationGroups.cs<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 zscaler.PulumiPackage.Zia.Firewall
{
    [ZiaResourceType("zia:Firewall/firewallFilteringDestinationGroups:FirewallFilteringDestinationGroups")]
    public partial class FirewallFilteringDestinationGroups : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Destination IP addresses within the group
        /// </summary>
        [Output("addresses")]
        public Output<ImmutableArray<string>> Addresses { get; private set; } = null!;

        /// <summary>
        /// Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination
        /// countries.
        /// </summary>
        [Output("countries")]
        public Output<ImmutableArray<string>> Countries { get; private set; } = null!;

        /// <summary>
        /// Additional information about the destination IP group
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// List of URL categories for which rule must be applied
        /// </summary>
        [Output("ipCategories")]
        public Output<ImmutableArray<string>> IpCategories { get; private set; } = null!;

        /// <summary>
        /// Unique identifer for the destination IP group
        /// </summary>
        [Output("ipDestinationId")]
        public Output<int> IpDestinationId { get; private set; } = null!;

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

        /// <summary>
        /// Destination IP group type (i.e., the group can contain destination IP addresses or FQDNs)
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;


        /// <summary>
        /// Create a FirewallFilteringDestinationGroups 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 FirewallFilteringDestinationGroups(string name, FirewallFilteringDestinationGroupsArgs? args = null, CustomResourceOptions? options = null)
            : base("zia:Firewall/firewallFilteringDestinationGroups:FirewallFilteringDestinationGroups", name, args ?? new FirewallFilteringDestinationGroupsArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FirewallFilteringDestinationGroups(string name, Input<string> id, FirewallFilteringDestinationGroupsState? state = null, CustomResourceOptions? options = null)
            : base("zia:Firewall/firewallFilteringDestinationGroups:FirewallFilteringDestinationGroups", 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/zscaler",
            };
            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 FirewallFilteringDestinationGroups 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 FirewallFilteringDestinationGroups Get(string name, Input<string> id, FirewallFilteringDestinationGroupsState? state = null, CustomResourceOptions? options = null)
        {
            return new FirewallFilteringDestinationGroups(name, id, state, options);
        }
    }

    public sealed class FirewallFilteringDestinationGroupsArgs : global::Pulumi.ResourceArgs
    {
        [Input("addresses")]
        private InputList<string>? _addresses;

        /// <summary>
        /// Destination IP addresses within the group
        /// </summary>
        public InputList<string> Addresses
        {
            get => _addresses ?? (_addresses = new InputList<string>());
            set => _addresses = value;
        }

        [Input("countries")]
        private InputList<string>? _countries;

        /// <summary>
        /// Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination
        /// countries.
        /// </summary>
        public InputList<string> Countries
        {
            get => _countries ?? (_countries = new InputList<string>());
            set => _countries = value;
        }

        /// <summary>
        /// Additional information about the destination IP group
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("ipCategories")]
        private InputList<string>? _ipCategories;

        /// <summary>
        /// List of URL categories for which rule must be applied
        /// </summary>
        public InputList<string> IpCategories
        {
            get => _ipCategories ?? (_ipCategories = new InputList<string>());
            set => _ipCategories = value;
        }

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

        /// <summary>
        /// Destination IP group type (i.e., the group can contain destination IP addresses or FQDNs)
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

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

    public sealed class FirewallFilteringDestinationGroupsState : global::Pulumi.ResourceArgs
    {
        [Input("addresses")]
        private InputList<string>? _addresses;

        /// <summary>
        /// Destination IP addresses within the group
        /// </summary>
        public InputList<string> Addresses
        {
            get => _addresses ?? (_addresses = new InputList<string>());
            set => _addresses = value;
        }

        [Input("countries")]
        private InputList<string>? _countries;

        /// <summary>
        /// Destination countries for which the rule is applicable. If not set, the rule is not restricted to specific destination
        /// countries.
        /// </summary>
        public InputList<string> Countries
        {
            get => _countries ?? (_countries = new InputList<string>());
            set => _countries = value;
        }

        /// <summary>
        /// Additional information about the destination IP group
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        [Input("ipCategories")]
        private InputList<string>? _ipCategories;

        /// <summary>
        /// List of URL categories for which rule must be applied
        /// </summary>
        public InputList<string> IpCategories
        {
            get => _ipCategories ?? (_ipCategories = new InputList<string>());
            set => _ipCategories = value;
        }

        /// <summary>
        /// Unique identifer for the destination IP group
        /// </summary>
        [Input("ipDestinationId")]
        public Input<int>? IpDestinationId { get; set; }

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

        /// <summary>
        /// Destination IP group type (i.e., the group can contain destination IP addresses or FQDNs)
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

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