{-# 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.CodeDeploy.Types.MinimumHealthyHostsType
-- 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.CodeDeploy.Types.MinimumHealthyHostsType
  ( MinimumHealthyHostsType
      ( ..,
        MinimumHealthyHostsType_FLEET_PERCENT,
        MinimumHealthyHostsType_HOST_COUNT
      ),
  )
where

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

newtype MinimumHealthyHostsType = MinimumHealthyHostsType'
  { MinimumHealthyHostsType -> Text
fromMinimumHealthyHostsType ::
      Data.Text
  }
  deriving stock
    ( Int -> MinimumHealthyHostsType -> ShowS
[MinimumHealthyHostsType] -> ShowS
MinimumHealthyHostsType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MinimumHealthyHostsType] -> ShowS
$cshowList :: [MinimumHealthyHostsType] -> ShowS
show :: MinimumHealthyHostsType -> String
$cshow :: MinimumHealthyHostsType -> String
showsPrec :: Int -> MinimumHealthyHostsType -> ShowS
$cshowsPrec :: Int -> MinimumHealthyHostsType -> ShowS
Prelude.Show,
      ReadPrec [MinimumHealthyHostsType]
ReadPrec MinimumHealthyHostsType
Int -> ReadS MinimumHealthyHostsType
ReadS [MinimumHealthyHostsType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MinimumHealthyHostsType]
$creadListPrec :: ReadPrec [MinimumHealthyHostsType]
readPrec :: ReadPrec MinimumHealthyHostsType
$creadPrec :: ReadPrec MinimumHealthyHostsType
readList :: ReadS [MinimumHealthyHostsType]
$creadList :: ReadS [MinimumHealthyHostsType]
readsPrec :: Int -> ReadS MinimumHealthyHostsType
$creadsPrec :: Int -> ReadS MinimumHealthyHostsType
Prelude.Read,
      MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c/= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
== :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c== :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
Prelude.Eq,
      Eq MinimumHealthyHostsType
MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
MinimumHealthyHostsType -> MinimumHealthyHostsType -> Ordering
MinimumHealthyHostsType
-> MinimumHealthyHostsType -> MinimumHealthyHostsType
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 :: MinimumHealthyHostsType
-> MinimumHealthyHostsType -> MinimumHealthyHostsType
$cmin :: MinimumHealthyHostsType
-> MinimumHealthyHostsType -> MinimumHealthyHostsType
max :: MinimumHealthyHostsType
-> MinimumHealthyHostsType -> MinimumHealthyHostsType
$cmax :: MinimumHealthyHostsType
-> MinimumHealthyHostsType -> MinimumHealthyHostsType
>= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c>= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
> :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c> :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
<= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c<= :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
< :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
$c< :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Bool
compare :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Ordering
$ccompare :: MinimumHealthyHostsType -> MinimumHealthyHostsType -> Ordering
Prelude.Ord,
      forall x. Rep MinimumHealthyHostsType x -> MinimumHealthyHostsType
forall x. MinimumHealthyHostsType -> Rep MinimumHealthyHostsType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MinimumHealthyHostsType x -> MinimumHealthyHostsType
$cfrom :: forall x. MinimumHealthyHostsType -> Rep MinimumHealthyHostsType x
Prelude.Generic
    )
  deriving newtype
    ( Eq MinimumHealthyHostsType
Int -> MinimumHealthyHostsType -> Int
MinimumHealthyHostsType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MinimumHealthyHostsType -> Int
$chash :: MinimumHealthyHostsType -> Int
hashWithSalt :: Int -> MinimumHealthyHostsType -> Int
$chashWithSalt :: Int -> MinimumHealthyHostsType -> Int
Prelude.Hashable,
      MinimumHealthyHostsType -> ()
forall a. (a -> ()) -> NFData a
rnf :: MinimumHealthyHostsType -> ()
$crnf :: MinimumHealthyHostsType -> ()
Prelude.NFData,
      Text -> Either String MinimumHealthyHostsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MinimumHealthyHostsType
$cfromText :: Text -> Either String MinimumHealthyHostsType
Data.FromText,
      MinimumHealthyHostsType -> Text
forall a. (a -> Text) -> ToText a
toText :: MinimumHealthyHostsType -> Text
$ctoText :: MinimumHealthyHostsType -> Text
Data.ToText,
      MinimumHealthyHostsType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MinimumHealthyHostsType -> ByteString
$ctoBS :: MinimumHealthyHostsType -> ByteString
Data.ToByteString,
      MinimumHealthyHostsType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MinimumHealthyHostsType -> ByteStringBuilder
$cbuild :: MinimumHealthyHostsType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MinimumHealthyHostsType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MinimumHealthyHostsType -> [Header]
$ctoHeader :: HeaderName -> MinimumHealthyHostsType -> [Header]
Data.ToHeader,
      MinimumHealthyHostsType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MinimumHealthyHostsType -> QueryString
$ctoQuery :: MinimumHealthyHostsType -> QueryString
Data.ToQuery,
      Value -> Parser [MinimumHealthyHostsType]
Value -> Parser MinimumHealthyHostsType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MinimumHealthyHostsType]
$cparseJSONList :: Value -> Parser [MinimumHealthyHostsType]
parseJSON :: Value -> Parser MinimumHealthyHostsType
$cparseJSON :: Value -> Parser MinimumHealthyHostsType
Data.FromJSON,
      FromJSONKeyFunction [MinimumHealthyHostsType]
FromJSONKeyFunction MinimumHealthyHostsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MinimumHealthyHostsType]
$cfromJSONKeyList :: FromJSONKeyFunction [MinimumHealthyHostsType]
fromJSONKey :: FromJSONKeyFunction MinimumHealthyHostsType
$cfromJSONKey :: FromJSONKeyFunction MinimumHealthyHostsType
Data.FromJSONKey,
      [MinimumHealthyHostsType] -> Encoding
[MinimumHealthyHostsType] -> Value
MinimumHealthyHostsType -> Encoding
MinimumHealthyHostsType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MinimumHealthyHostsType] -> Encoding
$ctoEncodingList :: [MinimumHealthyHostsType] -> Encoding
toJSONList :: [MinimumHealthyHostsType] -> Value
$ctoJSONList :: [MinimumHealthyHostsType] -> Value
toEncoding :: MinimumHealthyHostsType -> Encoding
$ctoEncoding :: MinimumHealthyHostsType -> Encoding
toJSON :: MinimumHealthyHostsType -> Value
$ctoJSON :: MinimumHealthyHostsType -> Value
Data.ToJSON,
      ToJSONKeyFunction [MinimumHealthyHostsType]
ToJSONKeyFunction MinimumHealthyHostsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MinimumHealthyHostsType]
$ctoJSONKeyList :: ToJSONKeyFunction [MinimumHealthyHostsType]
toJSONKey :: ToJSONKeyFunction MinimumHealthyHostsType
$ctoJSONKey :: ToJSONKeyFunction MinimumHealthyHostsType
Data.ToJSONKey,
      [Node] -> Either String MinimumHealthyHostsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MinimumHealthyHostsType
$cparseXML :: [Node] -> Either String MinimumHealthyHostsType
Data.FromXML,
      MinimumHealthyHostsType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MinimumHealthyHostsType -> XML
$ctoXML :: MinimumHealthyHostsType -> XML
Data.ToXML
    )

pattern MinimumHealthyHostsType_FLEET_PERCENT :: MinimumHealthyHostsType
pattern $bMinimumHealthyHostsType_FLEET_PERCENT :: MinimumHealthyHostsType
$mMinimumHealthyHostsType_FLEET_PERCENT :: forall {r}.
MinimumHealthyHostsType -> ((# #) -> r) -> ((# #) -> r) -> r
MinimumHealthyHostsType_FLEET_PERCENT = MinimumHealthyHostsType' "FLEET_PERCENT"

pattern MinimumHealthyHostsType_HOST_COUNT :: MinimumHealthyHostsType
pattern $bMinimumHealthyHostsType_HOST_COUNT :: MinimumHealthyHostsType
$mMinimumHealthyHostsType_HOST_COUNT :: forall {r}.
MinimumHealthyHostsType -> ((# #) -> r) -> ((# #) -> r) -> r
MinimumHealthyHostsType_HOST_COUNT = MinimumHealthyHostsType' "HOST_COUNT"

{-# COMPLETE
  MinimumHealthyHostsType_FLEET_PERCENT,
  MinimumHealthyHostsType_HOST_COUNT,
  MinimumHealthyHostsType'
  #-}