# 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

__all__ = ['GtmWideipArgs', 'GtmWideip']

@pulumi.input_type
class GtmWideipArgs:
    def __init__(__self__, *,
                 name: pulumi.Input[_builtins.str],
                 type: pulumi.Input[_builtins.str],
                 aliases: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 description: Optional[pulumi.Input[_builtins.str]] = None,
                 disabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 enabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 failure_rcode: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_response: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_ttl: Optional[pulumi.Input[_builtins.int]] = None,
                 last_resort_pool: Optional[pulumi.Input[_builtins.str]] = None,
                 load_balancing_decision_log_verbosities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 minimal_response: Optional[pulumi.Input[_builtins.str]] = None,
                 partition: Optional[pulumi.Input[_builtins.str]] = None,
                 persist_cidr_ipv4: Optional[pulumi.Input[_builtins.int]] = None,
                 persist_cidr_ipv6: Optional[pulumi.Input[_builtins.int]] = None,
                 persistence: Optional[pulumi.Input[_builtins.str]] = None,
                 pool_lb_mode: Optional[pulumi.Input[_builtins.str]] = None,
                 topology_prefer_edns0_client_subnet: Optional[pulumi.Input[_builtins.str]] = None,
                 ttl_persistence: Optional[pulumi.Input[_builtins.int]] = None):
        """
        The set of arguments for constructing a GtmWideip resource.

        :param pulumi.Input[_builtins.str] name: Name of the WideIP. Example: testwideip.local
        :param pulumi.Input[_builtins.str] type: Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] aliases: Specifies alternate domain names for the WideIP
        :param pulumi.Input[_builtins.str] description: User-defined description of the WideIP
        :param pulumi.Input[_builtins.bool] disabled: Disabled state of the WideIP
        :param pulumi.Input[_builtins.bool] enabled: Enable or disable the WideIP
        :param pulumi.Input[_builtins.str] failure_rcode: Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        :param pulumi.Input[_builtins.str] failure_rcode_response: Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        :param pulumi.Input[_builtins.int] failure_rcode_ttl: Specifies the negative caching TTL of the SOA for the RCODE response
        :param pulumi.Input[_builtins.str] last_resort_pool: Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] load_balancing_decision_log_verbosities: Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        :param pulumi.Input[_builtins.str] minimal_response: Specifies whether to minimize the response to the DNS query (enabled or disabled)
        :param pulumi.Input[_builtins.str] partition: Partition in which the WideIP resides
        :param pulumi.Input[_builtins.int] persist_cidr_ipv4: Specifies the CIDR for IPv4 persistence
        :param pulumi.Input[_builtins.int] persist_cidr_ipv6: Specifies the CIDR for IPv6 persistence
        :param pulumi.Input[_builtins.str] persistence: Specifies persistence for the WideIP (disabled or enabled)
        :param pulumi.Input[_builtins.str] pool_lb_mode: Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        :param pulumi.Input[_builtins.str] topology_prefer_edns0_client_subnet: Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        :param pulumi.Input[_builtins.int] ttl_persistence: Specifies the TTL for the persistence of the WideIP
        """
        pulumi.set(__self__, "name", name)
        pulumi.set(__self__, "type", type)
        if aliases is not None:
            pulumi.set(__self__, "aliases", aliases)
        if description is not None:
            pulumi.set(__self__, "description", description)
        if disabled is not None:
            pulumi.set(__self__, "disabled", disabled)
        if enabled is not None:
            pulumi.set(__self__, "enabled", enabled)
        if failure_rcode is not None:
            pulumi.set(__self__, "failure_rcode", failure_rcode)
        if failure_rcode_response is not None:
            pulumi.set(__self__, "failure_rcode_response", failure_rcode_response)
        if failure_rcode_ttl is not None:
            pulumi.set(__self__, "failure_rcode_ttl", failure_rcode_ttl)
        if last_resort_pool is not None:
            pulumi.set(__self__, "last_resort_pool", last_resort_pool)
        if load_balancing_decision_log_verbosities is not None:
            pulumi.set(__self__, "load_balancing_decision_log_verbosities", load_balancing_decision_log_verbosities)
        if minimal_response is not None:
            pulumi.set(__self__, "minimal_response", minimal_response)
        if partition is not None:
            pulumi.set(__self__, "partition", partition)
        if persist_cidr_ipv4 is not None:
            pulumi.set(__self__, "persist_cidr_ipv4", persist_cidr_ipv4)
        if persist_cidr_ipv6 is not None:
            pulumi.set(__self__, "persist_cidr_ipv6", persist_cidr_ipv6)
        if persistence is not None:
            pulumi.set(__self__, "persistence", persistence)
        if pool_lb_mode is not None:
            pulumi.set(__self__, "pool_lb_mode", pool_lb_mode)
        if topology_prefer_edns0_client_subnet is not None:
            pulumi.set(__self__, "topology_prefer_edns0_client_subnet", topology_prefer_edns0_client_subnet)
        if ttl_persistence is not None:
            pulumi.set(__self__, "ttl_persistence", ttl_persistence)

    @_builtins.property
    @pulumi.getter
    def name(self) -> pulumi.Input[_builtins.str]:
        """
        Name of the WideIP. Example: testwideip.local
        """
        return pulumi.get(self, "name")

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

    @_builtins.property
    @pulumi.getter
    def type(self) -> pulumi.Input[_builtins.str]:
        """
        Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        return pulumi.get(self, "type")

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

    @_builtins.property
    @pulumi.getter
    def aliases(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
        """
        Specifies alternate domain names for the WideIP
        """
        return pulumi.get(self, "aliases")

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

    @_builtins.property
    @pulumi.getter
    def description(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        User-defined description of the WideIP
        """
        return pulumi.get(self, "description")

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

    @_builtins.property
    @pulumi.getter
    def disabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
        """
        Disabled state of the WideIP
        """
        return pulumi.get(self, "disabled")

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

    @_builtins.property
    @pulumi.getter
    def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
        """
        Enable or disable the WideIP
        """
        return pulumi.get(self, "enabled")

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

    @_builtins.property
    @pulumi.getter(name="failureRcode")
    def failure_rcode(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        """
        return pulumi.get(self, "failure_rcode")

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

    @_builtins.property
    @pulumi.getter(name="failureRcodeResponse")
    def failure_rcode_response(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        """
        return pulumi.get(self, "failure_rcode_response")

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

    @_builtins.property
    @pulumi.getter(name="failureRcodeTtl")
    def failure_rcode_ttl(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the negative caching TTL of the SOA for the RCODE response
        """
        return pulumi.get(self, "failure_rcode_ttl")

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

    @_builtins.property
    @pulumi.getter(name="lastResortPool")
    def last_resort_pool(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        """
        return pulumi.get(self, "last_resort_pool")

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

    @_builtins.property
    @pulumi.getter(name="loadBalancingDecisionLogVerbosities")
    def load_balancing_decision_log_verbosities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
        """
        Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        """
        return pulumi.get(self, "load_balancing_decision_log_verbosities")

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

    @_builtins.property
    @pulumi.getter(name="minimalResponse")
    def minimal_response(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to minimize the response to the DNS query (enabled or disabled)
        """
        return pulumi.get(self, "minimal_response")

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

    @_builtins.property
    @pulumi.getter
    def partition(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Partition in which the WideIP resides
        """
        return pulumi.get(self, "partition")

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

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv4")
    def persist_cidr_ipv4(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the CIDR for IPv4 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv4")

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

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv6")
    def persist_cidr_ipv6(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the CIDR for IPv6 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv6")

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

    @_builtins.property
    @pulumi.getter
    def persistence(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies persistence for the WideIP (disabled or enabled)
        """
        return pulumi.get(self, "persistence")

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

    @_builtins.property
    @pulumi.getter(name="poolLbMode")
    def pool_lb_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        """
        return pulumi.get(self, "pool_lb_mode")

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

    @_builtins.property
    @pulumi.getter(name="topologyPreferEdns0ClientSubnet")
    def topology_prefer_edns0_client_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        """
        return pulumi.get(self, "topology_prefer_edns0_client_subnet")

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

    @_builtins.property
    @pulumi.getter(name="ttlPersistence")
    def ttl_persistence(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the TTL for the persistence of the WideIP
        """
        return pulumi.get(self, "ttl_persistence")

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


@pulumi.input_type
class _GtmWideipState:
    def __init__(__self__, *,
                 aliases: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 description: Optional[pulumi.Input[_builtins.str]] = None,
                 disabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 enabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 failure_rcode: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_response: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_ttl: Optional[pulumi.Input[_builtins.int]] = None,
                 last_resort_pool: Optional[pulumi.Input[_builtins.str]] = None,
                 load_balancing_decision_log_verbosities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 minimal_response: Optional[pulumi.Input[_builtins.str]] = None,
                 name: Optional[pulumi.Input[_builtins.str]] = None,
                 partition: Optional[pulumi.Input[_builtins.str]] = None,
                 persist_cidr_ipv4: Optional[pulumi.Input[_builtins.int]] = None,
                 persist_cidr_ipv6: Optional[pulumi.Input[_builtins.int]] = None,
                 persistence: Optional[pulumi.Input[_builtins.str]] = None,
                 pool_lb_mode: Optional[pulumi.Input[_builtins.str]] = None,
                 topology_prefer_edns0_client_subnet: Optional[pulumi.Input[_builtins.str]] = None,
                 ttl_persistence: Optional[pulumi.Input[_builtins.int]] = None,
                 type: Optional[pulumi.Input[_builtins.str]] = None):
        """
        Input properties used for looking up and filtering GtmWideip resources.

        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] aliases: Specifies alternate domain names for the WideIP
        :param pulumi.Input[_builtins.str] description: User-defined description of the WideIP
        :param pulumi.Input[_builtins.bool] disabled: Disabled state of the WideIP
        :param pulumi.Input[_builtins.bool] enabled: Enable or disable the WideIP
        :param pulumi.Input[_builtins.str] failure_rcode: Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        :param pulumi.Input[_builtins.str] failure_rcode_response: Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        :param pulumi.Input[_builtins.int] failure_rcode_ttl: Specifies the negative caching TTL of the SOA for the RCODE response
        :param pulumi.Input[_builtins.str] last_resort_pool: Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] load_balancing_decision_log_verbosities: Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        :param pulumi.Input[_builtins.str] minimal_response: Specifies whether to minimize the response to the DNS query (enabled or disabled)
        :param pulumi.Input[_builtins.str] name: Name of the WideIP. Example: testwideip.local
        :param pulumi.Input[_builtins.str] partition: Partition in which the WideIP resides
        :param pulumi.Input[_builtins.int] persist_cidr_ipv4: Specifies the CIDR for IPv4 persistence
        :param pulumi.Input[_builtins.int] persist_cidr_ipv6: Specifies the CIDR for IPv6 persistence
        :param pulumi.Input[_builtins.str] persistence: Specifies persistence for the WideIP (disabled or enabled)
        :param pulumi.Input[_builtins.str] pool_lb_mode: Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        :param pulumi.Input[_builtins.str] topology_prefer_edns0_client_subnet: Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        :param pulumi.Input[_builtins.int] ttl_persistence: Specifies the TTL for the persistence of the WideIP
        :param pulumi.Input[_builtins.str] type: Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        if aliases is not None:
            pulumi.set(__self__, "aliases", aliases)
        if description is not None:
            pulumi.set(__self__, "description", description)
        if disabled is not None:
            pulumi.set(__self__, "disabled", disabled)
        if enabled is not None:
            pulumi.set(__self__, "enabled", enabled)
        if failure_rcode is not None:
            pulumi.set(__self__, "failure_rcode", failure_rcode)
        if failure_rcode_response is not None:
            pulumi.set(__self__, "failure_rcode_response", failure_rcode_response)
        if failure_rcode_ttl is not None:
            pulumi.set(__self__, "failure_rcode_ttl", failure_rcode_ttl)
        if last_resort_pool is not None:
            pulumi.set(__self__, "last_resort_pool", last_resort_pool)
        if load_balancing_decision_log_verbosities is not None:
            pulumi.set(__self__, "load_balancing_decision_log_verbosities", load_balancing_decision_log_verbosities)
        if minimal_response is not None:
            pulumi.set(__self__, "minimal_response", minimal_response)
        if name is not None:
            pulumi.set(__self__, "name", name)
        if partition is not None:
            pulumi.set(__self__, "partition", partition)
        if persist_cidr_ipv4 is not None:
            pulumi.set(__self__, "persist_cidr_ipv4", persist_cidr_ipv4)
        if persist_cidr_ipv6 is not None:
            pulumi.set(__self__, "persist_cidr_ipv6", persist_cidr_ipv6)
        if persistence is not None:
            pulumi.set(__self__, "persistence", persistence)
        if pool_lb_mode is not None:
            pulumi.set(__self__, "pool_lb_mode", pool_lb_mode)
        if topology_prefer_edns0_client_subnet is not None:
            pulumi.set(__self__, "topology_prefer_edns0_client_subnet", topology_prefer_edns0_client_subnet)
        if ttl_persistence is not None:
            pulumi.set(__self__, "ttl_persistence", ttl_persistence)
        if type is not None:
            pulumi.set(__self__, "type", type)

    @_builtins.property
    @pulumi.getter
    def aliases(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
        """
        Specifies alternate domain names for the WideIP
        """
        return pulumi.get(self, "aliases")

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

    @_builtins.property
    @pulumi.getter
    def description(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        User-defined description of the WideIP
        """
        return pulumi.get(self, "description")

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

    @_builtins.property
    @pulumi.getter
    def disabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
        """
        Disabled state of the WideIP
        """
        return pulumi.get(self, "disabled")

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

    @_builtins.property
    @pulumi.getter
    def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
        """
        Enable or disable the WideIP
        """
        return pulumi.get(self, "enabled")

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

    @_builtins.property
    @pulumi.getter(name="failureRcode")
    def failure_rcode(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        """
        return pulumi.get(self, "failure_rcode")

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

    @_builtins.property
    @pulumi.getter(name="failureRcodeResponse")
    def failure_rcode_response(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        """
        return pulumi.get(self, "failure_rcode_response")

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

    @_builtins.property
    @pulumi.getter(name="failureRcodeTtl")
    def failure_rcode_ttl(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the negative caching TTL of the SOA for the RCODE response
        """
        return pulumi.get(self, "failure_rcode_ttl")

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

    @_builtins.property
    @pulumi.getter(name="lastResortPool")
    def last_resort_pool(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        """
        return pulumi.get(self, "last_resort_pool")

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

    @_builtins.property
    @pulumi.getter(name="loadBalancingDecisionLogVerbosities")
    def load_balancing_decision_log_verbosities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
        """
        Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        """
        return pulumi.get(self, "load_balancing_decision_log_verbosities")

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

    @_builtins.property
    @pulumi.getter(name="minimalResponse")
    def minimal_response(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to minimize the response to the DNS query (enabled or disabled)
        """
        return pulumi.get(self, "minimal_response")

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

    @_builtins.property
    @pulumi.getter
    def name(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Name of the WideIP. Example: testwideip.local
        """
        return pulumi.get(self, "name")

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

    @_builtins.property
    @pulumi.getter
    def partition(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Partition in which the WideIP resides
        """
        return pulumi.get(self, "partition")

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

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv4")
    def persist_cidr_ipv4(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the CIDR for IPv4 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv4")

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

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv6")
    def persist_cidr_ipv6(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the CIDR for IPv6 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv6")

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

    @_builtins.property
    @pulumi.getter
    def persistence(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies persistence for the WideIP (disabled or enabled)
        """
        return pulumi.get(self, "persistence")

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

    @_builtins.property
    @pulumi.getter(name="poolLbMode")
    def pool_lb_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        """
        return pulumi.get(self, "pool_lb_mode")

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

    @_builtins.property
    @pulumi.getter(name="topologyPreferEdns0ClientSubnet")
    def topology_prefer_edns0_client_subnet(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        """
        return pulumi.get(self, "topology_prefer_edns0_client_subnet")

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

    @_builtins.property
    @pulumi.getter(name="ttlPersistence")
    def ttl_persistence(self) -> Optional[pulumi.Input[_builtins.int]]:
        """
        Specifies the TTL for the persistence of the WideIP
        """
        return pulumi.get(self, "ttl_persistence")

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

    @_builtins.property
    @pulumi.getter
    def type(self) -> Optional[pulumi.Input[_builtins.str]]:
        """
        Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        return pulumi.get(self, "type")

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


@pulumi.type_token("f5bigip:index/gtmWideip:GtmWideip")
class GtmWideip(pulumi.CustomResource):
    @overload
    def __init__(__self__,
                 resource_name: str,
                 opts: Optional[pulumi.ResourceOptions] = None,
                 aliases: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 description: Optional[pulumi.Input[_builtins.str]] = None,
                 disabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 enabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 failure_rcode: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_response: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_ttl: Optional[pulumi.Input[_builtins.int]] = None,
                 last_resort_pool: Optional[pulumi.Input[_builtins.str]] = None,
                 load_balancing_decision_log_verbosities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 minimal_response: Optional[pulumi.Input[_builtins.str]] = None,
                 name: Optional[pulumi.Input[_builtins.str]] = None,
                 partition: Optional[pulumi.Input[_builtins.str]] = None,
                 persist_cidr_ipv4: Optional[pulumi.Input[_builtins.int]] = None,
                 persist_cidr_ipv6: Optional[pulumi.Input[_builtins.int]] = None,
                 persistence: Optional[pulumi.Input[_builtins.str]] = None,
                 pool_lb_mode: Optional[pulumi.Input[_builtins.str]] = None,
                 topology_prefer_edns0_client_subnet: Optional[pulumi.Input[_builtins.str]] = None,
                 ttl_persistence: Optional[pulumi.Input[_builtins.int]] = None,
                 type: Optional[pulumi.Input[_builtins.str]] = None,
                 __props__=None):
        """
        ## # GtmWideip Resource

        Provides a BIG-IP GTM (Global Traffic Manager) WideIP resource. This resource allows you to configure and manage GTM WideIP objects on a BIG-IP system.

        ## Description

        A WideIP is a DNS name that GTM resolves on behalf of an authoritative DNS server. WideIPs are the core objects in GTM that enable intelligent DNS-based load balancing and failover across multiple data centers.

        GTM WideIP types correspond to different DNS record types:
        - **a**: IPv4 address records
        - **aaaa**: IPv6 address records
        - **cname**: Canonical name records
        - **mx**: Mail exchange records
        - **naptr**: Naming authority pointer records
        - **srv**: Service locator records

        ## Example Usage

        ### Basic WideIP

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        example = f5bigip.GtmWideip("example",
            name="testwideip.local",
            type="a",
            partition="Common",
            description="test_wideip_a")
        ```

        ### WideIP with Last Resort Pool

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        with_pool = f5bigip.GtmWideip("with_pool",
            name="app.example.com",
            type="a",
            partition="Common",
            description="Application WideIP",
            last_resort_pool="a /Common/firstpool",
            pool_lb_mode="round-robin",
            minimal_response="enabled")
        ```

        ### Advanced WideIP Configuration

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        advanced = f5bigip.GtmWideip("advanced",
            name="advanced.example.com",
            type="a",
            partition="Common",
            description="Advanced WideIP configuration",
            enabled=True,
            failure_rcode="servfail",
            failure_rcode_response="enabled",
            failure_rcode_ttl=300,
            last_resort_pool="a /Common/backup_pool",
            minimal_response="disabled",
            persist_cidr_ipv4=24,
            persist_cidr_ipv6=64,
            persistence="enabled",
            pool_lb_mode="topology",
            ttl_persistence=7200,
            topology_prefer_edns0_client_subnet="enabled",
            load_balancing_decision_log_verbosities=[
                "pool-selection",
                "pool-member-selection",
            ],
            aliases=[
                "app1.example.com",
                "app2.example.com",
            ])
        ```

        ### IPv6 WideIP

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        ipv6 = f5bigip.GtmWideip("ipv6",
            name="ipv6.example.com",
            type="aaaa",
            partition="Common",
            description="IPv6 WideIP",
            enabled=True,
            pool_lb_mode="round-robin")
        ```

        ## Notes

        ### Pool Load Balancing Modes

        The `pool_lb_mode` determines how GTM distributes DNS queries across pools:

        - **round-robin**: Distributes queries equally across all available pools
        - **ratio**: Distributes queries based on pool ratios
        - **topology**: Uses topology records to determine the best pool
        - **global-availability**: Considers pool availability and load
        - **virtual-server-capacity**: Based on virtual server capacity
        - **least-connections**: Selects pool with fewest active connections
        - **lowest-round-trip-time**: Selects pool with lowest RTT
        - **fewest-hops**: Selects pool with fewest network hops
        - **packet-rate**: Based on packet transmission rate
        - **cpu**: Based on CPU utilization
        - **completion-rate**: Based on connection completion rate
        - **quality-of-service**: Based on QoS metrics
        - **kilobytes-per-second**: Based on throughput
        - **drop-packet**: Drops DNS packets (used for testing)
        - **fallback-ip**: Returns a fallback IP address
        - **virtual-server-score**: Based on virtual server scores

        ### Last Resort Pool Format

        The `last_resort_pool` must be specified in the format: `<type> <partition>/<pool_name>`

        Examples:
        - `a /Common/firstpool` - IPv4 pool
        - `aaaa /Common/ipv6pool` - IPv6 pool
        - `cname /Prod/alias_pool` - CNAME pool

        ### Persistence

        When persistence is enabled:
        - GTM maintains a mapping of client IP addresses to pool members
        - Subsequent requests from the same client are directed to the same destination
        - The `persist_cidr_ipv4` and `persist_cidr_ipv6` settings determine the subnet mask used for grouping client IPs
        - Persistence records expire after `ttl_persistence` seconds

        ### Failure RCODE Response

        When a WideIP becomes unavailable (all pools are down):
        - If `failure_rcode_response` is `disabled`: GTM returns no answer (NXDOMAIN)
        - If `failure_rcode_response` is `enabled`: GTM returns the specified `failure_rcode`

        Common RCODE values:
        - **noerror**: No error (returns empty response)
        - **servfail**: Server failure
        - **nxdomain**: Non-existent domain
        - **refused**: Query refused

        ### Aliases

        Aliases allow you to specify alternate domain names for the same WideIP configuration. When a DNS query is made for any of the aliases, it is handled by the same WideIP configuration.

        Example:
        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        app = f5bigip.GtmWideip("app",
            name="app.example.com",
            type="a",
            aliases=[
                "app-alias1.example.com",
                "app-alias2.example.com",
                "app.backup.example.com",
            ])
        ```

        In this example, DNS queries for `app.example.com`, `app-alias1.example.com`, `app-alias2.example.com`, or `app.backup.example.com` will all be handled by the same WideIP configuration.

        ## API Endpoints

        This resource interacts with the following BIG-IP API endpoints:

        - `GET /mgmt/tm/gtm/wideip/<type>/<name>` - Read WideIP configuration
        - `POST /mgmt/tm/gtm/wideip/<type>` - Create WideIP
        - `PUT /mgmt/tm/gtm/wideip/<type>/<name>` - Update WideIP configuration
        - `DELETE /mgmt/tm/gtm/wideip/<type>/<name>` - Delete WideIP

        ## Related Resources

        - `GtmPool` - Manages GTM pools that can be referenced by WideIPs
        - `GtmServer` - Manages GTM servers that contain virtual servers
        - `GtmDatacenter` - Manages GTM data centers
        - `bigip_gtm_topology` - Manages topology records for topology-based load balancing

        ## Import

        GTM WideIP resources can be imported using the format `type:/partition/name`. For example:

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip example a:/Common/testwideip.local
        ```

        Additional import examples:

        Import an IPv6 WideIP

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip ipv6_example aaaa:/Common/ipv6.example.com
        ```

        Import a CNAME WideIP

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip cname_example cname:/Common/alias.example.com
        ```

        Import from a non-Common partition

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip prod_example a:/Production/app.example.com
        ```


        :param str resource_name: The name of the resource.
        :param pulumi.ResourceOptions opts: Options for the resource.
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] aliases: Specifies alternate domain names for the WideIP
        :param pulumi.Input[_builtins.str] description: User-defined description of the WideIP
        :param pulumi.Input[_builtins.bool] disabled: Disabled state of the WideIP
        :param pulumi.Input[_builtins.bool] enabled: Enable or disable the WideIP
        :param pulumi.Input[_builtins.str] failure_rcode: Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        :param pulumi.Input[_builtins.str] failure_rcode_response: Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        :param pulumi.Input[_builtins.int] failure_rcode_ttl: Specifies the negative caching TTL of the SOA for the RCODE response
        :param pulumi.Input[_builtins.str] last_resort_pool: Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] load_balancing_decision_log_verbosities: Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        :param pulumi.Input[_builtins.str] minimal_response: Specifies whether to minimize the response to the DNS query (enabled or disabled)
        :param pulumi.Input[_builtins.str] name: Name of the WideIP. Example: testwideip.local
        :param pulumi.Input[_builtins.str] partition: Partition in which the WideIP resides
        :param pulumi.Input[_builtins.int] persist_cidr_ipv4: Specifies the CIDR for IPv4 persistence
        :param pulumi.Input[_builtins.int] persist_cidr_ipv6: Specifies the CIDR for IPv6 persistence
        :param pulumi.Input[_builtins.str] persistence: Specifies persistence for the WideIP (disabled or enabled)
        :param pulumi.Input[_builtins.str] pool_lb_mode: Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        :param pulumi.Input[_builtins.str] topology_prefer_edns0_client_subnet: Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        :param pulumi.Input[_builtins.int] ttl_persistence: Specifies the TTL for the persistence of the WideIP
        :param pulumi.Input[_builtins.str] type: Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        ...
    @overload
    def __init__(__self__,
                 resource_name: str,
                 args: GtmWideipArgs,
                 opts: Optional[pulumi.ResourceOptions] = None):
        """
        ## # GtmWideip Resource

        Provides a BIG-IP GTM (Global Traffic Manager) WideIP resource. This resource allows you to configure and manage GTM WideIP objects on a BIG-IP system.

        ## Description

        A WideIP is a DNS name that GTM resolves on behalf of an authoritative DNS server. WideIPs are the core objects in GTM that enable intelligent DNS-based load balancing and failover across multiple data centers.

        GTM WideIP types correspond to different DNS record types:
        - **a**: IPv4 address records
        - **aaaa**: IPv6 address records
        - **cname**: Canonical name records
        - **mx**: Mail exchange records
        - **naptr**: Naming authority pointer records
        - **srv**: Service locator records

        ## Example Usage

        ### Basic WideIP

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        example = f5bigip.GtmWideip("example",
            name="testwideip.local",
            type="a",
            partition="Common",
            description="test_wideip_a")
        ```

        ### WideIP with Last Resort Pool

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        with_pool = f5bigip.GtmWideip("with_pool",
            name="app.example.com",
            type="a",
            partition="Common",
            description="Application WideIP",
            last_resort_pool="a /Common/firstpool",
            pool_lb_mode="round-robin",
            minimal_response="enabled")
        ```

        ### Advanced WideIP Configuration

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        advanced = f5bigip.GtmWideip("advanced",
            name="advanced.example.com",
            type="a",
            partition="Common",
            description="Advanced WideIP configuration",
            enabled=True,
            failure_rcode="servfail",
            failure_rcode_response="enabled",
            failure_rcode_ttl=300,
            last_resort_pool="a /Common/backup_pool",
            minimal_response="disabled",
            persist_cidr_ipv4=24,
            persist_cidr_ipv6=64,
            persistence="enabled",
            pool_lb_mode="topology",
            ttl_persistence=7200,
            topology_prefer_edns0_client_subnet="enabled",
            load_balancing_decision_log_verbosities=[
                "pool-selection",
                "pool-member-selection",
            ],
            aliases=[
                "app1.example.com",
                "app2.example.com",
            ])
        ```

        ### IPv6 WideIP

        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        ipv6 = f5bigip.GtmWideip("ipv6",
            name="ipv6.example.com",
            type="aaaa",
            partition="Common",
            description="IPv6 WideIP",
            enabled=True,
            pool_lb_mode="round-robin")
        ```

        ## Notes

        ### Pool Load Balancing Modes

        The `pool_lb_mode` determines how GTM distributes DNS queries across pools:

        - **round-robin**: Distributes queries equally across all available pools
        - **ratio**: Distributes queries based on pool ratios
        - **topology**: Uses topology records to determine the best pool
        - **global-availability**: Considers pool availability and load
        - **virtual-server-capacity**: Based on virtual server capacity
        - **least-connections**: Selects pool with fewest active connections
        - **lowest-round-trip-time**: Selects pool with lowest RTT
        - **fewest-hops**: Selects pool with fewest network hops
        - **packet-rate**: Based on packet transmission rate
        - **cpu**: Based on CPU utilization
        - **completion-rate**: Based on connection completion rate
        - **quality-of-service**: Based on QoS metrics
        - **kilobytes-per-second**: Based on throughput
        - **drop-packet**: Drops DNS packets (used for testing)
        - **fallback-ip**: Returns a fallback IP address
        - **virtual-server-score**: Based on virtual server scores

        ### Last Resort Pool Format

        The `last_resort_pool` must be specified in the format: `<type> <partition>/<pool_name>`

        Examples:
        - `a /Common/firstpool` - IPv4 pool
        - `aaaa /Common/ipv6pool` - IPv6 pool
        - `cname /Prod/alias_pool` - CNAME pool

        ### Persistence

        When persistence is enabled:
        - GTM maintains a mapping of client IP addresses to pool members
        - Subsequent requests from the same client are directed to the same destination
        - The `persist_cidr_ipv4` and `persist_cidr_ipv6` settings determine the subnet mask used for grouping client IPs
        - Persistence records expire after `ttl_persistence` seconds

        ### Failure RCODE Response

        When a WideIP becomes unavailable (all pools are down):
        - If `failure_rcode_response` is `disabled`: GTM returns no answer (NXDOMAIN)
        - If `failure_rcode_response` is `enabled`: GTM returns the specified `failure_rcode`

        Common RCODE values:
        - **noerror**: No error (returns empty response)
        - **servfail**: Server failure
        - **nxdomain**: Non-existent domain
        - **refused**: Query refused

        ### Aliases

        Aliases allow you to specify alternate domain names for the same WideIP configuration. When a DNS query is made for any of the aliases, it is handled by the same WideIP configuration.

        Example:
        ```python
        import pulumi
        import pulumi_f5bigip as f5bigip

        app = f5bigip.GtmWideip("app",
            name="app.example.com",
            type="a",
            aliases=[
                "app-alias1.example.com",
                "app-alias2.example.com",
                "app.backup.example.com",
            ])
        ```

        In this example, DNS queries for `app.example.com`, `app-alias1.example.com`, `app-alias2.example.com`, or `app.backup.example.com` will all be handled by the same WideIP configuration.

        ## API Endpoints

        This resource interacts with the following BIG-IP API endpoints:

        - `GET /mgmt/tm/gtm/wideip/<type>/<name>` - Read WideIP configuration
        - `POST /mgmt/tm/gtm/wideip/<type>` - Create WideIP
        - `PUT /mgmt/tm/gtm/wideip/<type>/<name>` - Update WideIP configuration
        - `DELETE /mgmt/tm/gtm/wideip/<type>/<name>` - Delete WideIP

        ## Related Resources

        - `GtmPool` - Manages GTM pools that can be referenced by WideIPs
        - `GtmServer` - Manages GTM servers that contain virtual servers
        - `GtmDatacenter` - Manages GTM data centers
        - `bigip_gtm_topology` - Manages topology records for topology-based load balancing

        ## Import

        GTM WideIP resources can be imported using the format `type:/partition/name`. For example:

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip example a:/Common/testwideip.local
        ```

        Additional import examples:

        Import an IPv6 WideIP

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip ipv6_example aaaa:/Common/ipv6.example.com
        ```

        Import a CNAME WideIP

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip cname_example cname:/Common/alias.example.com
        ```

        Import from a non-Common partition

        ```sh
        $ pulumi import f5bigip:index/gtmWideip:GtmWideip prod_example a:/Production/app.example.com
        ```


        :param str resource_name: The name of the resource.
        :param GtmWideipArgs 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(GtmWideipArgs, 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,
                 aliases: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 description: Optional[pulumi.Input[_builtins.str]] = None,
                 disabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 enabled: Optional[pulumi.Input[_builtins.bool]] = None,
                 failure_rcode: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_response: Optional[pulumi.Input[_builtins.str]] = None,
                 failure_rcode_ttl: Optional[pulumi.Input[_builtins.int]] = None,
                 last_resort_pool: Optional[pulumi.Input[_builtins.str]] = None,
                 load_balancing_decision_log_verbosities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
                 minimal_response: Optional[pulumi.Input[_builtins.str]] = None,
                 name: Optional[pulumi.Input[_builtins.str]] = None,
                 partition: Optional[pulumi.Input[_builtins.str]] = None,
                 persist_cidr_ipv4: Optional[pulumi.Input[_builtins.int]] = None,
                 persist_cidr_ipv6: Optional[pulumi.Input[_builtins.int]] = None,
                 persistence: Optional[pulumi.Input[_builtins.str]] = None,
                 pool_lb_mode: Optional[pulumi.Input[_builtins.str]] = None,
                 topology_prefer_edns0_client_subnet: Optional[pulumi.Input[_builtins.str]] = None,
                 ttl_persistence: Optional[pulumi.Input[_builtins.int]] = None,
                 type: Optional[pulumi.Input[_builtins.str]] = 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__ = GtmWideipArgs.__new__(GtmWideipArgs)

            __props__.__dict__["aliases"] = aliases
            __props__.__dict__["description"] = description
            __props__.__dict__["disabled"] = disabled
            __props__.__dict__["enabled"] = enabled
            __props__.__dict__["failure_rcode"] = failure_rcode
            __props__.__dict__["failure_rcode_response"] = failure_rcode_response
            __props__.__dict__["failure_rcode_ttl"] = failure_rcode_ttl
            __props__.__dict__["last_resort_pool"] = last_resort_pool
            __props__.__dict__["load_balancing_decision_log_verbosities"] = load_balancing_decision_log_verbosities
            __props__.__dict__["minimal_response"] = minimal_response
            if name is None and not opts.urn:
                raise TypeError("Missing required property 'name'")
            __props__.__dict__["name"] = name
            __props__.__dict__["partition"] = partition
            __props__.__dict__["persist_cidr_ipv4"] = persist_cidr_ipv4
            __props__.__dict__["persist_cidr_ipv6"] = persist_cidr_ipv6
            __props__.__dict__["persistence"] = persistence
            __props__.__dict__["pool_lb_mode"] = pool_lb_mode
            __props__.__dict__["topology_prefer_edns0_client_subnet"] = topology_prefer_edns0_client_subnet
            __props__.__dict__["ttl_persistence"] = ttl_persistence
            if type is None and not opts.urn:
                raise TypeError("Missing required property 'type'")
            __props__.__dict__["type"] = type
        super(GtmWideip, __self__).__init__(
            'f5bigip:index/gtmWideip:GtmWideip',
            resource_name,
            __props__,
            opts)

    @staticmethod
    def get(resource_name: str,
            id: pulumi.Input[str],
            opts: Optional[pulumi.ResourceOptions] = None,
            aliases: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
            description: Optional[pulumi.Input[_builtins.str]] = None,
            disabled: Optional[pulumi.Input[_builtins.bool]] = None,
            enabled: Optional[pulumi.Input[_builtins.bool]] = None,
            failure_rcode: Optional[pulumi.Input[_builtins.str]] = None,
            failure_rcode_response: Optional[pulumi.Input[_builtins.str]] = None,
            failure_rcode_ttl: Optional[pulumi.Input[_builtins.int]] = None,
            last_resort_pool: Optional[pulumi.Input[_builtins.str]] = None,
            load_balancing_decision_log_verbosities: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
            minimal_response: Optional[pulumi.Input[_builtins.str]] = None,
            name: Optional[pulumi.Input[_builtins.str]] = None,
            partition: Optional[pulumi.Input[_builtins.str]] = None,
            persist_cidr_ipv4: Optional[pulumi.Input[_builtins.int]] = None,
            persist_cidr_ipv6: Optional[pulumi.Input[_builtins.int]] = None,
            persistence: Optional[pulumi.Input[_builtins.str]] = None,
            pool_lb_mode: Optional[pulumi.Input[_builtins.str]] = None,
            topology_prefer_edns0_client_subnet: Optional[pulumi.Input[_builtins.str]] = None,
            ttl_persistence: Optional[pulumi.Input[_builtins.int]] = None,
            type: Optional[pulumi.Input[_builtins.str]] = None) -> 'GtmWideip':
        """
        Get an existing GtmWideip 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[Sequence[pulumi.Input[_builtins.str]]] aliases: Specifies alternate domain names for the WideIP
        :param pulumi.Input[_builtins.str] description: User-defined description of the WideIP
        :param pulumi.Input[_builtins.bool] disabled: Disabled state of the WideIP
        :param pulumi.Input[_builtins.bool] enabled: Enable or disable the WideIP
        :param pulumi.Input[_builtins.str] failure_rcode: Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        :param pulumi.Input[_builtins.str] failure_rcode_response: Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        :param pulumi.Input[_builtins.int] failure_rcode_ttl: Specifies the negative caching TTL of the SOA for the RCODE response
        :param pulumi.Input[_builtins.str] last_resort_pool: Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] load_balancing_decision_log_verbosities: Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        :param pulumi.Input[_builtins.str] minimal_response: Specifies whether to minimize the response to the DNS query (enabled or disabled)
        :param pulumi.Input[_builtins.str] name: Name of the WideIP. Example: testwideip.local
        :param pulumi.Input[_builtins.str] partition: Partition in which the WideIP resides
        :param pulumi.Input[_builtins.int] persist_cidr_ipv4: Specifies the CIDR for IPv4 persistence
        :param pulumi.Input[_builtins.int] persist_cidr_ipv6: Specifies the CIDR for IPv6 persistence
        :param pulumi.Input[_builtins.str] persistence: Specifies persistence for the WideIP (disabled or enabled)
        :param pulumi.Input[_builtins.str] pool_lb_mode: Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        :param pulumi.Input[_builtins.str] topology_prefer_edns0_client_subnet: Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        :param pulumi.Input[_builtins.int] ttl_persistence: Specifies the TTL for the persistence of the WideIP
        :param pulumi.Input[_builtins.str] type: Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

        __props__ = _GtmWideipState.__new__(_GtmWideipState)

        __props__.__dict__["aliases"] = aliases
        __props__.__dict__["description"] = description
        __props__.__dict__["disabled"] = disabled
        __props__.__dict__["enabled"] = enabled
        __props__.__dict__["failure_rcode"] = failure_rcode
        __props__.__dict__["failure_rcode_response"] = failure_rcode_response
        __props__.__dict__["failure_rcode_ttl"] = failure_rcode_ttl
        __props__.__dict__["last_resort_pool"] = last_resort_pool
        __props__.__dict__["load_balancing_decision_log_verbosities"] = load_balancing_decision_log_verbosities
        __props__.__dict__["minimal_response"] = minimal_response
        __props__.__dict__["name"] = name
        __props__.__dict__["partition"] = partition
        __props__.__dict__["persist_cidr_ipv4"] = persist_cidr_ipv4
        __props__.__dict__["persist_cidr_ipv6"] = persist_cidr_ipv6
        __props__.__dict__["persistence"] = persistence
        __props__.__dict__["pool_lb_mode"] = pool_lb_mode
        __props__.__dict__["topology_prefer_edns0_client_subnet"] = topology_prefer_edns0_client_subnet
        __props__.__dict__["ttl_persistence"] = ttl_persistence
        __props__.__dict__["type"] = type
        return GtmWideip(resource_name, opts=opts, __props__=__props__)

    @_builtins.property
    @pulumi.getter
    def aliases(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
        """
        Specifies alternate domain names for the WideIP
        """
        return pulumi.get(self, "aliases")

    @_builtins.property
    @pulumi.getter
    def description(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        User-defined description of the WideIP
        """
        return pulumi.get(self, "description")

    @_builtins.property
    @pulumi.getter
    def disabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
        """
        Disabled state of the WideIP
        """
        return pulumi.get(self, "disabled")

    @_builtins.property
    @pulumi.getter
    def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
        """
        Enable or disable the WideIP
        """
        return pulumi.get(self, "enabled")

    @_builtins.property
    @pulumi.getter(name="failureRcode")
    def failure_rcode(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies the DNS RCODE used when failure_rcode_response is enabled (noerror, formerr, servfail, nxdomain, notimp, refused, yxdomain, yxrrset, nxrrset, notauth, notzone)
        """
        return pulumi.get(self, "failure_rcode")

    @_builtins.property
    @pulumi.getter(name="failureRcodeResponse")
    def failure_rcode_response(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies whether to return a RCODE response to DNS queries when the WideIP is unavailable (enabled or disabled)
        """
        return pulumi.get(self, "failure_rcode_response")

    @_builtins.property
    @pulumi.getter(name="failureRcodeTtl")
    def failure_rcode_ttl(self) -> pulumi.Output[Optional[_builtins.int]]:
        """
        Specifies the negative caching TTL of the SOA for the RCODE response
        """
        return pulumi.get(self, "failure_rcode_ttl")

    @_builtins.property
    @pulumi.getter(name="lastResortPool")
    def last_resort_pool(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies the last resort pool for the WideIP. Format: <type> <partition>/<pool_name> (e.g., 'a /Common/firstpool')
        """
        return pulumi.get(self, "last_resort_pool")

    @_builtins.property
    @pulumi.getter(name="loadBalancingDecisionLogVerbosities")
    def load_balancing_decision_log_verbosities(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
        """
        Specifies the amount of detail logged when making load balancing decisions. Example: ['pool-selection']
        """
        return pulumi.get(self, "load_balancing_decision_log_verbosities")

    @_builtins.property
    @pulumi.getter(name="minimalResponse")
    def minimal_response(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies whether to minimize the response to the DNS query (enabled or disabled)
        """
        return pulumi.get(self, "minimal_response")

    @_builtins.property
    @pulumi.getter
    def name(self) -> pulumi.Output[_builtins.str]:
        """
        Name of the WideIP. Example: testwideip.local
        """
        return pulumi.get(self, "name")

    @_builtins.property
    @pulumi.getter
    def partition(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Partition in which the WideIP resides
        """
        return pulumi.get(self, "partition")

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv4")
    def persist_cidr_ipv4(self) -> pulumi.Output[Optional[_builtins.int]]:
        """
        Specifies the CIDR for IPv4 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv4")

    @_builtins.property
    @pulumi.getter(name="persistCidrIpv6")
    def persist_cidr_ipv6(self) -> pulumi.Output[Optional[_builtins.int]]:
        """
        Specifies the CIDR for IPv6 persistence
        """
        return pulumi.get(self, "persist_cidr_ipv6")

    @_builtins.property
    @pulumi.getter
    def persistence(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies persistence for the WideIP (disabled or enabled)
        """
        return pulumi.get(self, "persistence")

    @_builtins.property
    @pulumi.getter(name="poolLbMode")
    def pool_lb_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies the load balancing mode for pools in the WideIP (round-robin, ratio, topology, global-availability)
        """
        return pulumi.get(self, "pool_lb_mode")

    @_builtins.property
    @pulumi.getter(name="topologyPreferEdns0ClientSubnet")
    def topology_prefer_edns0_client_subnet(self) -> pulumi.Output[Optional[_builtins.str]]:
        """
        Specifies whether to prefer EDNS0 client subnet data for topology-based load balancing (enabled or disabled)
        """
        return pulumi.get(self, "topology_prefer_edns0_client_subnet")

    @_builtins.property
    @pulumi.getter(name="ttlPersistence")
    def ttl_persistence(self) -> pulumi.Output[Optional[_builtins.int]]:
        """
        Specifies the TTL for the persistence of the WideIP
        """
        return pulumi.get(self, "ttl_persistence")

    @_builtins.property
    @pulumi.getter
    def type(self) -> pulumi.Output[_builtins.str]:
        """
        Specifies the type of WideIP (a, aaaa, cname, mx, naptr, srv)
        """
        return pulumi.get(self, "type")

