{-# 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.SecurityLake.Types.Region
-- 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.SecurityLake.Types.Region
  ( Region
      ( ..,
        Region_Ap_northeast_1,
        Region_Ap_southeast_2,
        Region_Eu_central_1,
        Region_Eu_west_1,
        Region_Us_east_1,
        Region_Us_east_2,
        Region_Us_west_2
      ),
  )
where

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

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

pattern Region_Ap_northeast_1 :: Region
pattern $bRegion_Ap_northeast_1 :: Region
$mRegion_Ap_northeast_1 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Ap_northeast_1 = Region' "ap-northeast-1"

pattern Region_Ap_southeast_2 :: Region
pattern $bRegion_Ap_southeast_2 :: Region
$mRegion_Ap_southeast_2 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Ap_southeast_2 = Region' "ap-southeast-2"

pattern Region_Eu_central_1 :: Region
pattern $bRegion_Eu_central_1 :: Region
$mRegion_Eu_central_1 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Eu_central_1 = Region' "eu-central-1"

pattern Region_Eu_west_1 :: Region
pattern $bRegion_Eu_west_1 :: Region
$mRegion_Eu_west_1 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Eu_west_1 = Region' "eu-west-1"

pattern Region_Us_east_1 :: Region
pattern $bRegion_Us_east_1 :: Region
$mRegion_Us_east_1 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Us_east_1 = Region' "us-east-1"

pattern Region_Us_east_2 :: Region
pattern $bRegion_Us_east_2 :: Region
$mRegion_Us_east_2 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Us_east_2 = Region' "us-east-2"

pattern Region_Us_west_2 :: Region
pattern $bRegion_Us_west_2 :: Region
$mRegion_Us_west_2 :: forall {r}. Region -> ((# #) -> r) -> ((# #) -> r) -> r
Region_Us_west_2 = Region' "us-west-2"

{-# COMPLETE
  Region_Ap_northeast_1,
  Region_Ap_southeast_2,
  Region_Eu_central_1,
  Region_Eu_west_1,
  Region_Us_east_1,
  Region_Us_east_2,
  Region_Us_west_2,
  Region'
  #-}