{-# 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.VPCRegion
-- 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.VPCRegion
  ( VPCRegion
      ( ..,
        VPCRegion_Af_south_1,
        VPCRegion_Ap_east_1,
        VPCRegion_Ap_northeast_1,
        VPCRegion_Ap_northeast_2,
        VPCRegion_Ap_northeast_3,
        VPCRegion_Ap_south_1,
        VPCRegion_Ap_southeast_1,
        VPCRegion_Ap_southeast_2,
        VPCRegion_Ca_central_1,
        VPCRegion_Cn_north_1,
        VPCRegion_Eu_central_1,
        VPCRegion_Eu_north_1,
        VPCRegion_Eu_south_1,
        VPCRegion_Eu_west_1,
        VPCRegion_Eu_west_2,
        VPCRegion_Eu_west_3,
        VPCRegion_Me_south_1,
        VPCRegion_Sa_east_1,
        VPCRegion_Us_east_1,
        VPCRegion_Us_east_2,
        VPCRegion_Us_gov_east_1,
        VPCRegion_Us_gov_west_1,
        VPCRegion_Us_iso_east_1,
        VPCRegion_Us_isob_east_1,
        VPCRegion_Us_west_1,
        VPCRegion_Us_west_2
      ),
  )
where

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

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

pattern VPCRegion_Af_south_1 :: VPCRegion
pattern $bVPCRegion_Af_south_1 :: VPCRegion
$mVPCRegion_Af_south_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Af_south_1 = VPCRegion' "af-south-1"

pattern VPCRegion_Ap_east_1 :: VPCRegion
pattern $bVPCRegion_Ap_east_1 :: VPCRegion
$mVPCRegion_Ap_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_east_1 = VPCRegion' "ap-east-1"

pattern VPCRegion_Ap_northeast_1 :: VPCRegion
pattern $bVPCRegion_Ap_northeast_1 :: VPCRegion
$mVPCRegion_Ap_northeast_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_northeast_1 = VPCRegion' "ap-northeast-1"

pattern VPCRegion_Ap_northeast_2 :: VPCRegion
pattern $bVPCRegion_Ap_northeast_2 :: VPCRegion
$mVPCRegion_Ap_northeast_2 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_northeast_2 = VPCRegion' "ap-northeast-2"

pattern VPCRegion_Ap_northeast_3 :: VPCRegion
pattern $bVPCRegion_Ap_northeast_3 :: VPCRegion
$mVPCRegion_Ap_northeast_3 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_northeast_3 = VPCRegion' "ap-northeast-3"

pattern VPCRegion_Ap_south_1 :: VPCRegion
pattern $bVPCRegion_Ap_south_1 :: VPCRegion
$mVPCRegion_Ap_south_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_south_1 = VPCRegion' "ap-south-1"

pattern VPCRegion_Ap_southeast_1 :: VPCRegion
pattern $bVPCRegion_Ap_southeast_1 :: VPCRegion
$mVPCRegion_Ap_southeast_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_southeast_1 = VPCRegion' "ap-southeast-1"

pattern VPCRegion_Ap_southeast_2 :: VPCRegion
pattern $bVPCRegion_Ap_southeast_2 :: VPCRegion
$mVPCRegion_Ap_southeast_2 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ap_southeast_2 = VPCRegion' "ap-southeast-2"

pattern VPCRegion_Ca_central_1 :: VPCRegion
pattern $bVPCRegion_Ca_central_1 :: VPCRegion
$mVPCRegion_Ca_central_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Ca_central_1 = VPCRegion' "ca-central-1"

pattern VPCRegion_Cn_north_1 :: VPCRegion
pattern $bVPCRegion_Cn_north_1 :: VPCRegion
$mVPCRegion_Cn_north_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Cn_north_1 = VPCRegion' "cn-north-1"

pattern VPCRegion_Eu_central_1 :: VPCRegion
pattern $bVPCRegion_Eu_central_1 :: VPCRegion
$mVPCRegion_Eu_central_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_central_1 = VPCRegion' "eu-central-1"

pattern VPCRegion_Eu_north_1 :: VPCRegion
pattern $bVPCRegion_Eu_north_1 :: VPCRegion
$mVPCRegion_Eu_north_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_north_1 = VPCRegion' "eu-north-1"

pattern VPCRegion_Eu_south_1 :: VPCRegion
pattern $bVPCRegion_Eu_south_1 :: VPCRegion
$mVPCRegion_Eu_south_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_south_1 = VPCRegion' "eu-south-1"

pattern VPCRegion_Eu_west_1 :: VPCRegion
pattern $bVPCRegion_Eu_west_1 :: VPCRegion
$mVPCRegion_Eu_west_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_west_1 = VPCRegion' "eu-west-1"

pattern VPCRegion_Eu_west_2 :: VPCRegion
pattern $bVPCRegion_Eu_west_2 :: VPCRegion
$mVPCRegion_Eu_west_2 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_west_2 = VPCRegion' "eu-west-2"

pattern VPCRegion_Eu_west_3 :: VPCRegion
pattern $bVPCRegion_Eu_west_3 :: VPCRegion
$mVPCRegion_Eu_west_3 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Eu_west_3 = VPCRegion' "eu-west-3"

pattern VPCRegion_Me_south_1 :: VPCRegion
pattern $bVPCRegion_Me_south_1 :: VPCRegion
$mVPCRegion_Me_south_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Me_south_1 = VPCRegion' "me-south-1"

pattern VPCRegion_Sa_east_1 :: VPCRegion
pattern $bVPCRegion_Sa_east_1 :: VPCRegion
$mVPCRegion_Sa_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Sa_east_1 = VPCRegion' "sa-east-1"

pattern VPCRegion_Us_east_1 :: VPCRegion
pattern $bVPCRegion_Us_east_1 :: VPCRegion
$mVPCRegion_Us_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_east_1 = VPCRegion' "us-east-1"

pattern VPCRegion_Us_east_2 :: VPCRegion
pattern $bVPCRegion_Us_east_2 :: VPCRegion
$mVPCRegion_Us_east_2 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_east_2 = VPCRegion' "us-east-2"

pattern VPCRegion_Us_gov_east_1 :: VPCRegion
pattern $bVPCRegion_Us_gov_east_1 :: VPCRegion
$mVPCRegion_Us_gov_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_gov_east_1 = VPCRegion' "us-gov-east-1"

pattern VPCRegion_Us_gov_west_1 :: VPCRegion
pattern $bVPCRegion_Us_gov_west_1 :: VPCRegion
$mVPCRegion_Us_gov_west_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_gov_west_1 = VPCRegion' "us-gov-west-1"

pattern VPCRegion_Us_iso_east_1 :: VPCRegion
pattern $bVPCRegion_Us_iso_east_1 :: VPCRegion
$mVPCRegion_Us_iso_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_iso_east_1 = VPCRegion' "us-iso-east-1"

pattern VPCRegion_Us_isob_east_1 :: VPCRegion
pattern $bVPCRegion_Us_isob_east_1 :: VPCRegion
$mVPCRegion_Us_isob_east_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_isob_east_1 = VPCRegion' "us-isob-east-1"

pattern VPCRegion_Us_west_1 :: VPCRegion
pattern $bVPCRegion_Us_west_1 :: VPCRegion
$mVPCRegion_Us_west_1 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_west_1 = VPCRegion' "us-west-1"

pattern VPCRegion_Us_west_2 :: VPCRegion
pattern $bVPCRegion_Us_west_2 :: VPCRegion
$mVPCRegion_Us_west_2 :: forall r. VPCRegion -> (Void# -> r) -> (Void# -> r) -> r
VPCRegion_Us_west_2 = VPCRegion' "us-west-2"

{-# COMPLETE
  VPCRegion_Af_south_1,
  VPCRegion_Ap_east_1,
  VPCRegion_Ap_northeast_1,
  VPCRegion_Ap_northeast_2,
  VPCRegion_Ap_northeast_3,
  VPCRegion_Ap_south_1,
  VPCRegion_Ap_southeast_1,
  VPCRegion_Ap_southeast_2,
  VPCRegion_Ca_central_1,
  VPCRegion_Cn_north_1,
  VPCRegion_Eu_central_1,
  VPCRegion_Eu_north_1,
  VPCRegion_Eu_south_1,
  VPCRegion_Eu_west_1,
  VPCRegion_Eu_west_2,
  VPCRegion_Eu_west_3,
  VPCRegion_Me_south_1,
  VPCRegion_Sa_east_1,
  VPCRegion_Us_east_1,
  VPCRegion_Us_east_2,
  VPCRegion_Us_gov_east_1,
  VPCRegion_Us_gov_west_1,
  VPCRegion_Us_iso_east_1,
  VPCRegion_Us_isob_east_1,
  VPCRegion_Us_west_1,
  VPCRegion_Us_west_2,
  VPCRegion'
  #-}