{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Kafka.Types.BrokerAZDistribution
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Kafka.Types.BrokerAZDistribution
  ( BrokerAZDistribution
      ( ..,
        BrokerAZDistribution_DEFAULT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The distribution of broker nodes across Availability Zones. This is an
-- optional parameter. If you don\'t specify it, Amazon MSK gives it the
-- value DEFAULT. You can also explicitly set this parameter to the value
-- DEFAULT. No other values are currently allowed.
--
-- Amazon MSK distributes the broker nodes evenly across the Availability
-- Zones that correspond to the subnets you provide when you create the
-- cluster.
newtype BrokerAZDistribution = BrokerAZDistribution'
  { BrokerAZDistribution -> Text
fromBrokerAZDistribution ::
      Data.Text
  }
  deriving stock
    ( Int -> BrokerAZDistribution -> ShowS
[BrokerAZDistribution] -> ShowS
BrokerAZDistribution -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BrokerAZDistribution] -> ShowS
$cshowList :: [BrokerAZDistribution] -> ShowS
show :: BrokerAZDistribution -> String
$cshow :: BrokerAZDistribution -> String
showsPrec :: Int -> BrokerAZDistribution -> ShowS
$cshowsPrec :: Int -> BrokerAZDistribution -> ShowS
Prelude.Show,
      ReadPrec [BrokerAZDistribution]
ReadPrec BrokerAZDistribution
Int -> ReadS BrokerAZDistribution
ReadS [BrokerAZDistribution]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BrokerAZDistribution]
$creadListPrec :: ReadPrec [BrokerAZDistribution]
readPrec :: ReadPrec BrokerAZDistribution
$creadPrec :: ReadPrec BrokerAZDistribution
readList :: ReadS [BrokerAZDistribution]
$creadList :: ReadS [BrokerAZDistribution]
readsPrec :: Int -> ReadS BrokerAZDistribution
$creadsPrec :: Int -> ReadS BrokerAZDistribution
Prelude.Read,
      BrokerAZDistribution -> BrokerAZDistribution -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c/= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
== :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c== :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
Prelude.Eq,
      Eq BrokerAZDistribution
BrokerAZDistribution -> BrokerAZDistribution -> Bool
BrokerAZDistribution -> BrokerAZDistribution -> Ordering
BrokerAZDistribution
-> BrokerAZDistribution -> BrokerAZDistribution
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: BrokerAZDistribution
-> BrokerAZDistribution -> BrokerAZDistribution
$cmin :: BrokerAZDistribution
-> BrokerAZDistribution -> BrokerAZDistribution
max :: BrokerAZDistribution
-> BrokerAZDistribution -> BrokerAZDistribution
$cmax :: BrokerAZDistribution
-> BrokerAZDistribution -> BrokerAZDistribution
>= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c>= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
> :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c> :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
<= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c<= :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
< :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
$c< :: BrokerAZDistribution -> BrokerAZDistribution -> Bool
compare :: BrokerAZDistribution -> BrokerAZDistribution -> Ordering
$ccompare :: BrokerAZDistribution -> BrokerAZDistribution -> Ordering
Prelude.Ord,
      forall x. Rep BrokerAZDistribution x -> BrokerAZDistribution
forall x. BrokerAZDistribution -> Rep BrokerAZDistribution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BrokerAZDistribution x -> BrokerAZDistribution
$cfrom :: forall x. BrokerAZDistribution -> Rep BrokerAZDistribution x
Prelude.Generic
    )
  deriving newtype
    ( Eq BrokerAZDistribution
Int -> BrokerAZDistribution -> Int
BrokerAZDistribution -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BrokerAZDistribution -> Int
$chash :: BrokerAZDistribution -> Int
hashWithSalt :: Int -> BrokerAZDistribution -> Int
$chashWithSalt :: Int -> BrokerAZDistribution -> Int
Prelude.Hashable,
      BrokerAZDistribution -> ()
forall a. (a -> ()) -> NFData a
rnf :: BrokerAZDistribution -> ()
$crnf :: BrokerAZDistribution -> ()
Prelude.NFData,
      Text -> Either String BrokerAZDistribution
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BrokerAZDistribution
$cfromText :: Text -> Either String BrokerAZDistribution
Data.FromText,
      BrokerAZDistribution -> Text
forall a. (a -> Text) -> ToText a
toText :: BrokerAZDistribution -> Text
$ctoText :: BrokerAZDistribution -> Text
Data.ToText,
      BrokerAZDistribution -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: BrokerAZDistribution -> ByteString
$ctoBS :: BrokerAZDistribution -> ByteString
Data.ToByteString,
      BrokerAZDistribution -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BrokerAZDistribution -> ByteStringBuilder
$cbuild :: BrokerAZDistribution -> ByteStringBuilder
Data.ToLog,
      HeaderName -> BrokerAZDistribution -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BrokerAZDistribution -> [Header]
$ctoHeader :: HeaderName -> BrokerAZDistribution -> [Header]
Data.ToHeader,
      BrokerAZDistribution -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BrokerAZDistribution -> QueryString
$ctoQuery :: BrokerAZDistribution -> QueryString
Data.ToQuery,
      Value -> Parser [BrokerAZDistribution]
Value -> Parser BrokerAZDistribution
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BrokerAZDistribution]
$cparseJSONList :: Value -> Parser [BrokerAZDistribution]
parseJSON :: Value -> Parser BrokerAZDistribution
$cparseJSON :: Value -> Parser BrokerAZDistribution
Data.FromJSON,
      FromJSONKeyFunction [BrokerAZDistribution]
FromJSONKeyFunction BrokerAZDistribution
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BrokerAZDistribution]
$cfromJSONKeyList :: FromJSONKeyFunction [BrokerAZDistribution]
fromJSONKey :: FromJSONKeyFunction BrokerAZDistribution
$cfromJSONKey :: FromJSONKeyFunction BrokerAZDistribution
Data.FromJSONKey,
      [BrokerAZDistribution] -> Encoding
[BrokerAZDistribution] -> Value
BrokerAZDistribution -> Encoding
BrokerAZDistribution -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BrokerAZDistribution] -> Encoding
$ctoEncodingList :: [BrokerAZDistribution] -> Encoding
toJSONList :: [BrokerAZDistribution] -> Value
$ctoJSONList :: [BrokerAZDistribution] -> Value
toEncoding :: BrokerAZDistribution -> Encoding
$ctoEncoding :: BrokerAZDistribution -> Encoding
toJSON :: BrokerAZDistribution -> Value
$ctoJSON :: BrokerAZDistribution -> Value
Data.ToJSON,
      ToJSONKeyFunction [BrokerAZDistribution]
ToJSONKeyFunction BrokerAZDistribution
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BrokerAZDistribution]
$ctoJSONKeyList :: ToJSONKeyFunction [BrokerAZDistribution]
toJSONKey :: ToJSONKeyFunction BrokerAZDistribution
$ctoJSONKey :: ToJSONKeyFunction BrokerAZDistribution
Data.ToJSONKey,
      [Node] -> Either String BrokerAZDistribution
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BrokerAZDistribution
$cparseXML :: [Node] -> Either String BrokerAZDistribution
Data.FromXML,
      BrokerAZDistribution -> XML
forall a. (a -> XML) -> ToXML a
toXML :: BrokerAZDistribution -> XML
$ctoXML :: BrokerAZDistribution -> XML
Data.ToXML
    )

pattern BrokerAZDistribution_DEFAULT :: BrokerAZDistribution
pattern $bBrokerAZDistribution_DEFAULT :: BrokerAZDistribution
$mBrokerAZDistribution_DEFAULT :: forall {r}.
BrokerAZDistribution -> ((# #) -> r) -> ((# #) -> r) -> r
BrokerAZDistribution_DEFAULT = BrokerAZDistribution' "DEFAULT"

{-# COMPLETE
  BrokerAZDistribution_DEFAULT,
  BrokerAZDistribution'
  #-}