# coding=utf-8
# *** WARNING: this file was generated by pulumi-language-python. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins as _builtins
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities
from . import outputs
from ._inputs import *

__all__ = ['ApplianceFirewallL7FirewallRulesArgs', 'ApplianceFirewallL7FirewallRules']

@pulumi.input_type
class ApplianceFirewallL7FirewallRulesArgs:
    def __init__(__self__, *,
                 network_id: pulumi.Input[_builtins.str],
                 rules: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]] = None):
        """
        The set of arguments for constructing a ApplianceFirewallL7FirewallRules resource.
        :param pulumi.Input[_builtins.str] network_id: networkId path parameter. Network ID
        :param pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]] rules: An ordered array of the MX L7 firewall rules
        """
        pulumi.set(__self__, "network_id", network_id)
        if rules is not None:
            pulumi.set(__self__, "rules", rules)

    @_builtins.property
    @pulumi.getter(name="networkId")
    def network_id(self) -> pulumi.Input[_builtins.str]:
        """
        networkId path parameter. Network ID
        """
        return pulumi.get(self, "network_id")

    @network_id.setter
    def network_id(self, value: pulumi.Input[_builtins.str]):
        pulumi.set(self, "network_id", value)

    @_builtins.property
    @pulumi.getter
    def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]]:
        """
        An ordered array of the MX L7 firewall rules
        """
        return pulumi.get(self, "rules")

    @rules.setter
    def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]]):
        pulumi.set(self, "rules", value)


@pulumi.input_type
class _ApplianceFirewallL7FirewallRulesState:
    def __init__(__self__, *,
                 network_id: Optional[pulumi.Input[_builtins.str]] = None,
                 rules: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]] = None,
                 rules_responses: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRulesResponseArgs']]]] = None):
        """
        Input properties used for looking up and filtering ApplianceFirewallL7FirewallRules resources.
        :param pulumi.Input[_builtins.str] network_id: networkId path parameter. Network ID
        :param pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]] rules: An ordered array of the MX L7 firewall rules
        :param pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRulesResponseArgs']]] rules_responses: An ordered array of the MX L7 firewall rules
        """
        if network_id is not None:
            pulumi.set(__self__, "network_id", network_id)
        if rules is not None:
            pulumi.set(__self__, "rules", rules)
        if rules_responses is not None:
            pulumi.set(__self__, "rules_responses", rules_responses)

    @_builtins.property
    @pulumi.getter(name="networkId")
    def network_id(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        networkId path parameter. Network ID
        """
        return pulumi.get(self, "network_id")

    @network_id.setter
    def network_id(self, value: Optional[pulumi.Input[_builtins.str]]):
        pulumi.set(self, "network_id", value)

    @_builtins.property
    @pulumi.getter
    def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]]:
        """
        An ordered array of the MX L7 firewall rules
        """
        return pulumi.get(self, "rules")

    @rules.setter
    def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRuleArgs']]]]):
        pulumi.set(self, "rules", value)

    @_builtins.property
    @pulumi.getter(name="rulesResponses")
    def rules_responses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRulesResponseArgs']]]]:
        """
        An ordered array of the MX L7 firewall rules
        """
        return pulumi.get(self, "rules_responses")

    @rules_responses.setter
    def rules_responses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApplianceFirewallL7FirewallRulesRulesResponseArgs']]]]):
        pulumi.set(self, "rules_responses", value)


@pulumi.type_token("meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules")
class ApplianceFirewallL7FirewallRules(pulumi.CustomResource):
    @overload
    def __init__(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 network_id: Optional[pulumi.Input[_builtins.str]] = None,
                 rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRuleArgs', 'ApplianceFirewallL7FirewallRulesRuleArgsDict']]]]] = None,
                 __props__=None):
        """
        ## Example Usage

        ### 1
        ```python
        import pulumi
        import pulumi_meraki as meraki

        example = meraki.networks.ApplianceFirewallL7FirewallRules("example",
            network_id="string",
            rules=[{
                "policy": "deny",
                "type": "host",
                "value": "google.com",
            }])
        pulumi.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example)
        ```

        ## Import

        ```sh
        $ pulumi import meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules example "network_id"
        ```

        :param str resource_name: The name of the resource.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[_builtins.str] network_id: networkId path parameter. Network ID
        :param pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRuleArgs', 'ApplianceFirewallL7FirewallRulesRuleArgsDict']]]] rules: An ordered array of the MX L7 firewall rules
        """
        ...
    @overload
    def __init__(__self__,
                 resource_name: str,
                 args: ApplianceFirewallL7FirewallRulesArgs,
                 opts: Optional[pulumi.ResourceOptions] = None):
        """
        ## Example Usage

        ### 1
        ```python
        import pulumi
        import pulumi_meraki as meraki

        example = meraki.networks.ApplianceFirewallL7FirewallRules("example",
            network_id="string",
            rules=[{
                "policy": "deny",
                "type": "host",
                "value": "google.com",
            }])
        pulumi.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example)
        ```

        ## Import

        ```sh
        $ pulumi import meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules example "network_id"
        ```

        :param str resource_name: The name of the resource.
        :param ApplianceFirewallL7FirewallRulesArgs args: The arguments to use to populate this resource's properties.
        :param pulumi.ResourceOptions opts: Options for the resource.
        """
        ...
    def __init__(__self__, resource_name: str, *args, **kwargs):
        resource_args, opts = _utilities.get_resource_args_opts(ApplianceFirewallL7FirewallRulesArgs, pulumi.ResourceOptions, *args, **kwargs)
        if resource_args is not None:
            __self__._internal_init(resource_name, opts, **resource_args.__dict__)
        else:
            __self__._internal_init(resource_name, *args, **kwargs)

    def _internal_init(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 network_id: Optional[pulumi.Input[_builtins.str]] = None,
                 rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRuleArgs', 'ApplianceFirewallL7FirewallRulesRuleArgsDict']]]]] = None,
                 __props__=None):
        opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
        if not isinstance(opts, pulumi.ResourceOptions):
            raise TypeError('Expected resource options to be a ResourceOptions instance')
        if opts.id is None:
            if __props__ is not None:
                raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
            __props__ = ApplianceFirewallL7FirewallRulesArgs.__new__(ApplianceFirewallL7FirewallRulesArgs)

            if network_id is None and not opts.urn:
                raise TypeError("Missing required property 'network_id'")
            __props__.__dict__["network_id"] = network_id
            __props__.__dict__["rules"] = rules
            __props__.__dict__["rules_responses"] = None
        super(ApplianceFirewallL7FirewallRules, __self__).__init__(
            'meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules',
            resource_name,
            __props__,
            opts)

    @staticmethod
    def get(resource_name: str,
            id: pulumi.Input[str],
            opts: Optional[pulumi.ResourceOptions] = None,
            network_id: Optional[pulumi.Input[_builtins.str]] = None,
            rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRuleArgs', 'ApplianceFirewallL7FirewallRulesRuleArgsDict']]]]] = None,
            rules_responses: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRulesResponseArgs', 'ApplianceFirewallL7FirewallRulesRulesResponseArgsDict']]]]] = None) -> 'ApplianceFirewallL7FirewallRules':
        """
        Get an existing ApplianceFirewallL7FirewallRules resource's state with the given name, id, and optional extra
        properties used to qualify the lookup.

        :param str resource_name: The unique name of the resulting resource.
        :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[_builtins.str] network_id: networkId path parameter. Network ID
        :param pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRuleArgs', 'ApplianceFirewallL7FirewallRulesRuleArgsDict']]]] rules: An ordered array of the MX L7 firewall rules
        :param pulumi.Input[Sequence[pulumi.Input[Union['ApplianceFirewallL7FirewallRulesRulesResponseArgs', 'ApplianceFirewallL7FirewallRulesRulesResponseArgsDict']]]] rules_responses: An ordered array of the MX L7 firewall rules
        """
        opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

        __props__ = _ApplianceFirewallL7FirewallRulesState.__new__(_ApplianceFirewallL7FirewallRulesState)

        __props__.__dict__["network_id"] = network_id
        __props__.__dict__["rules"] = rules
        __props__.__dict__["rules_responses"] = rules_responses
        return ApplianceFirewallL7FirewallRules(resource_name, opts=opts, __props__=__props__)

    @_builtins.property
    @pulumi.getter(name="networkId")
    def network_id(self) -> pulumi.Output[_builtins.str]:
        """
        networkId path parameter. Network ID
        """
        return pulumi.get(self, "network_id")

    @_builtins.property
    @pulumi.getter
    def rules(self) -> pulumi.Output[Optional[Sequence['outputs.ApplianceFirewallL7FirewallRulesRule']]]:
        """
        An ordered array of the MX L7 firewall rules
        """
        return pulumi.get(self, "rules")

    @_builtins.property
    @pulumi.getter(name="rulesResponses")
    def rules_responses(self) -> pulumi.Output[Sequence['outputs.ApplianceFirewallL7FirewallRulesRulesResponse']]:
        """
        An ordered array of the MX L7 firewall rules
        """
        return pulumi.get(self, "rules_responses")

