{-# 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.Route53.Types.HealthCheckRegion
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53.Types.HealthCheckRegion
  ( HealthCheckRegion
      ( ..,
        HealthCheckRegion_Ap_northeast_1,
        HealthCheckRegion_Ap_southeast_1,
        HealthCheckRegion_Ap_southeast_2,
        HealthCheckRegion_Eu_west_1,
        HealthCheckRegion_Sa_east_1,
        HealthCheckRegion_Us_east_1,
        HealthCheckRegion_Us_west_1,
        HealthCheckRegion_Us_west_2
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53.Internal

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

pattern HealthCheckRegion_Ap_northeast_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Ap_northeast_1 :: HealthCheckRegion
$mHealthCheckRegion_Ap_northeast_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Ap_northeast_1 = HealthCheckRegion' "ap-northeast-1"

pattern HealthCheckRegion_Ap_southeast_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Ap_southeast_1 :: HealthCheckRegion
$mHealthCheckRegion_Ap_southeast_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Ap_southeast_1 = HealthCheckRegion' "ap-southeast-1"

pattern HealthCheckRegion_Ap_southeast_2 :: HealthCheckRegion
pattern $bHealthCheckRegion_Ap_southeast_2 :: HealthCheckRegion
$mHealthCheckRegion_Ap_southeast_2 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Ap_southeast_2 = HealthCheckRegion' "ap-southeast-2"

pattern HealthCheckRegion_Eu_west_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Eu_west_1 :: HealthCheckRegion
$mHealthCheckRegion_Eu_west_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Eu_west_1 = HealthCheckRegion' "eu-west-1"

pattern HealthCheckRegion_Sa_east_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Sa_east_1 :: HealthCheckRegion
$mHealthCheckRegion_Sa_east_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Sa_east_1 = HealthCheckRegion' "sa-east-1"

pattern HealthCheckRegion_Us_east_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Us_east_1 :: HealthCheckRegion
$mHealthCheckRegion_Us_east_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Us_east_1 = HealthCheckRegion' "us-east-1"

pattern HealthCheckRegion_Us_west_1 :: HealthCheckRegion
pattern $bHealthCheckRegion_Us_west_1 :: HealthCheckRegion
$mHealthCheckRegion_Us_west_1 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Us_west_1 = HealthCheckRegion' "us-west-1"

pattern HealthCheckRegion_Us_west_2 :: HealthCheckRegion
pattern $bHealthCheckRegion_Us_west_2 :: HealthCheckRegion
$mHealthCheckRegion_Us_west_2 :: forall r. HealthCheckRegion -> (Void# -> r) -> (Void# -> r) -> r
HealthCheckRegion_Us_west_2 = HealthCheckRegion' "us-west-2"

{-# COMPLETE
  HealthCheckRegion_Ap_northeast_1,
  HealthCheckRegion_Ap_southeast_1,
  HealthCheckRegion_Ap_southeast_2,
  HealthCheckRegion_Eu_west_1,
  HealthCheckRegion_Sa_east_1,
  HealthCheckRegion_Us_east_1,
  HealthCheckRegion_Us_west_1,
  HealthCheckRegion_Us_west_2,
  HealthCheckRegion'
  #-}