{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ApplicationCostProfiler.Types.S3BucketRegion
( S3BucketRegion
( ..,
S3BucketRegion_Af_south_1,
S3BucketRegion_Ap_east_1,
S3BucketRegion_Eu_south_1,
S3BucketRegion_Me_south_1
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype S3BucketRegion = S3BucketRegion'
{ S3BucketRegion -> Text
fromS3BucketRegion ::
Core.Text
}
deriving stock
( Int -> S3BucketRegion -> ShowS
[S3BucketRegion] -> ShowS
S3BucketRegion -> String
(Int -> S3BucketRegion -> ShowS)
-> (S3BucketRegion -> String)
-> ([S3BucketRegion] -> ShowS)
-> Show S3BucketRegion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [S3BucketRegion] -> ShowS
$cshowList :: [S3BucketRegion] -> ShowS
show :: S3BucketRegion -> String
$cshow :: S3BucketRegion -> String
showsPrec :: Int -> S3BucketRegion -> ShowS
$cshowsPrec :: Int -> S3BucketRegion -> ShowS
Prelude.Show,
ReadPrec [S3BucketRegion]
ReadPrec S3BucketRegion
Int -> ReadS S3BucketRegion
ReadS [S3BucketRegion]
(Int -> ReadS S3BucketRegion)
-> ReadS [S3BucketRegion]
-> ReadPrec S3BucketRegion
-> ReadPrec [S3BucketRegion]
-> Read S3BucketRegion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [S3BucketRegion]
$creadListPrec :: ReadPrec [S3BucketRegion]
readPrec :: ReadPrec S3BucketRegion
$creadPrec :: ReadPrec S3BucketRegion
readList :: ReadS [S3BucketRegion]
$creadList :: ReadS [S3BucketRegion]
readsPrec :: Int -> ReadS S3BucketRegion
$creadsPrec :: Int -> ReadS S3BucketRegion
Prelude.Read,
S3BucketRegion -> S3BucketRegion -> Bool
(S3BucketRegion -> S3BucketRegion -> Bool)
-> (S3BucketRegion -> S3BucketRegion -> Bool) -> Eq S3BucketRegion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: S3BucketRegion -> S3BucketRegion -> Bool
$c/= :: S3BucketRegion -> S3BucketRegion -> Bool
== :: S3BucketRegion -> S3BucketRegion -> Bool
$c== :: S3BucketRegion -> S3BucketRegion -> Bool
Prelude.Eq,
Eq S3BucketRegion
Eq S3BucketRegion
-> (S3BucketRegion -> S3BucketRegion -> Ordering)
-> (S3BucketRegion -> S3BucketRegion -> Bool)
-> (S3BucketRegion -> S3BucketRegion -> Bool)
-> (S3BucketRegion -> S3BucketRegion -> Bool)
-> (S3BucketRegion -> S3BucketRegion -> Bool)
-> (S3BucketRegion -> S3BucketRegion -> S3BucketRegion)
-> (S3BucketRegion -> S3BucketRegion -> S3BucketRegion)
-> Ord S3BucketRegion
S3BucketRegion -> S3BucketRegion -> Bool
S3BucketRegion -> S3BucketRegion -> Ordering
S3BucketRegion -> S3BucketRegion -> S3BucketRegion
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 :: S3BucketRegion -> S3BucketRegion -> S3BucketRegion
$cmin :: S3BucketRegion -> S3BucketRegion -> S3BucketRegion
max :: S3BucketRegion -> S3BucketRegion -> S3BucketRegion
$cmax :: S3BucketRegion -> S3BucketRegion -> S3BucketRegion
>= :: S3BucketRegion -> S3BucketRegion -> Bool
$c>= :: S3BucketRegion -> S3BucketRegion -> Bool
> :: S3BucketRegion -> S3BucketRegion -> Bool
$c> :: S3BucketRegion -> S3BucketRegion -> Bool
<= :: S3BucketRegion -> S3BucketRegion -> Bool
$c<= :: S3BucketRegion -> S3BucketRegion -> Bool
< :: S3BucketRegion -> S3BucketRegion -> Bool
$c< :: S3BucketRegion -> S3BucketRegion -> Bool
compare :: S3BucketRegion -> S3BucketRegion -> Ordering
$ccompare :: S3BucketRegion -> S3BucketRegion -> Ordering
$cp1Ord :: Eq S3BucketRegion
Prelude.Ord,
(forall x. S3BucketRegion -> Rep S3BucketRegion x)
-> (forall x. Rep S3BucketRegion x -> S3BucketRegion)
-> Generic S3BucketRegion
forall x. Rep S3BucketRegion x -> S3BucketRegion
forall x. S3BucketRegion -> Rep S3BucketRegion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep S3BucketRegion x -> S3BucketRegion
$cfrom :: forall x. S3BucketRegion -> Rep S3BucketRegion x
Prelude.Generic
)
deriving newtype
( Int -> S3BucketRegion -> Int
S3BucketRegion -> Int
(Int -> S3BucketRegion -> Int)
-> (S3BucketRegion -> Int) -> Hashable S3BucketRegion
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: S3BucketRegion -> Int
$chash :: S3BucketRegion -> Int
hashWithSalt :: Int -> S3BucketRegion -> Int
$chashWithSalt :: Int -> S3BucketRegion -> Int
Prelude.Hashable,
S3BucketRegion -> ()
(S3BucketRegion -> ()) -> NFData S3BucketRegion
forall a. (a -> ()) -> NFData a
rnf :: S3BucketRegion -> ()
$crnf :: S3BucketRegion -> ()
Prelude.NFData,
Text -> Either String S3BucketRegion
(Text -> Either String S3BucketRegion) -> FromText S3BucketRegion
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String S3BucketRegion
$cfromText :: Text -> Either String S3BucketRegion
Core.FromText,
S3BucketRegion -> Text
(S3BucketRegion -> Text) -> ToText S3BucketRegion
forall a. (a -> Text) -> ToText a
toText :: S3BucketRegion -> Text
$ctoText :: S3BucketRegion -> Text
Core.ToText,
S3BucketRegion -> ByteString
(S3BucketRegion -> ByteString) -> ToByteString S3BucketRegion
forall a. (a -> ByteString) -> ToByteString a
toBS :: S3BucketRegion -> ByteString
$ctoBS :: S3BucketRegion -> ByteString
Core.ToByteString,
S3BucketRegion -> ByteStringBuilder
(S3BucketRegion -> ByteStringBuilder) -> ToLog S3BucketRegion
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: S3BucketRegion -> ByteStringBuilder
$cbuild :: S3BucketRegion -> ByteStringBuilder
Core.ToLog,
HeaderName -> S3BucketRegion -> [Header]
(HeaderName -> S3BucketRegion -> [Header])
-> ToHeader S3BucketRegion
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> S3BucketRegion -> [Header]
$ctoHeader :: HeaderName -> S3BucketRegion -> [Header]
Core.ToHeader,
S3BucketRegion -> QueryString
(S3BucketRegion -> QueryString) -> ToQuery S3BucketRegion
forall a. (a -> QueryString) -> ToQuery a
toQuery :: S3BucketRegion -> QueryString
$ctoQuery :: S3BucketRegion -> QueryString
Core.ToQuery,
Value -> Parser [S3BucketRegion]
Value -> Parser S3BucketRegion
(Value -> Parser S3BucketRegion)
-> (Value -> Parser [S3BucketRegion]) -> FromJSON S3BucketRegion
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [S3BucketRegion]
$cparseJSONList :: Value -> Parser [S3BucketRegion]
parseJSON :: Value -> Parser S3BucketRegion
$cparseJSON :: Value -> Parser S3BucketRegion
Core.FromJSON,
FromJSONKeyFunction [S3BucketRegion]
FromJSONKeyFunction S3BucketRegion
FromJSONKeyFunction S3BucketRegion
-> FromJSONKeyFunction [S3BucketRegion]
-> FromJSONKey S3BucketRegion
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [S3BucketRegion]
$cfromJSONKeyList :: FromJSONKeyFunction [S3BucketRegion]
fromJSONKey :: FromJSONKeyFunction S3BucketRegion
$cfromJSONKey :: FromJSONKeyFunction S3BucketRegion
Core.FromJSONKey,
[S3BucketRegion] -> Encoding
[S3BucketRegion] -> Value
S3BucketRegion -> Encoding
S3BucketRegion -> Value
(S3BucketRegion -> Value)
-> (S3BucketRegion -> Encoding)
-> ([S3BucketRegion] -> Value)
-> ([S3BucketRegion] -> Encoding)
-> ToJSON S3BucketRegion
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [S3BucketRegion] -> Encoding
$ctoEncodingList :: [S3BucketRegion] -> Encoding
toJSONList :: [S3BucketRegion] -> Value
$ctoJSONList :: [S3BucketRegion] -> Value
toEncoding :: S3BucketRegion -> Encoding
$ctoEncoding :: S3BucketRegion -> Encoding
toJSON :: S3BucketRegion -> Value
$ctoJSON :: S3BucketRegion -> Value
Core.ToJSON,
ToJSONKeyFunction [S3BucketRegion]
ToJSONKeyFunction S3BucketRegion
ToJSONKeyFunction S3BucketRegion
-> ToJSONKeyFunction [S3BucketRegion] -> ToJSONKey S3BucketRegion
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [S3BucketRegion]
$ctoJSONKeyList :: ToJSONKeyFunction [S3BucketRegion]
toJSONKey :: ToJSONKeyFunction S3BucketRegion
$ctoJSONKey :: ToJSONKeyFunction S3BucketRegion
Core.ToJSONKey,
[Node] -> Either String S3BucketRegion
([Node] -> Either String S3BucketRegion) -> FromXML S3BucketRegion
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String S3BucketRegion
$cparseXML :: [Node] -> Either String S3BucketRegion
Core.FromXML,
S3BucketRegion -> XML
(S3BucketRegion -> XML) -> ToXML S3BucketRegion
forall a. (a -> XML) -> ToXML a
toXML :: S3BucketRegion -> XML
$ctoXML :: S3BucketRegion -> XML
Core.ToXML
)
pattern S3BucketRegion_Af_south_1 :: S3BucketRegion
pattern $bS3BucketRegion_Af_south_1 :: S3BucketRegion
$mS3BucketRegion_Af_south_1 :: forall r. S3BucketRegion -> (Void# -> r) -> (Void# -> r) -> r
S3BucketRegion_Af_south_1 = S3BucketRegion' "af-south-1"
pattern S3BucketRegion_Ap_east_1 :: S3BucketRegion
pattern $bS3BucketRegion_Ap_east_1 :: S3BucketRegion
$mS3BucketRegion_Ap_east_1 :: forall r. S3BucketRegion -> (Void# -> r) -> (Void# -> r) -> r
S3BucketRegion_Ap_east_1 = S3BucketRegion' "ap-east-1"
pattern S3BucketRegion_Eu_south_1 :: S3BucketRegion
pattern $bS3BucketRegion_Eu_south_1 :: S3BucketRegion
$mS3BucketRegion_Eu_south_1 :: forall r. S3BucketRegion -> (Void# -> r) -> (Void# -> r) -> r
S3BucketRegion_Eu_south_1 = S3BucketRegion' "eu-south-1"
pattern S3BucketRegion_Me_south_1 :: S3BucketRegion
pattern $bS3BucketRegion_Me_south_1 :: S3BucketRegion
$mS3BucketRegion_Me_south_1 :: forall r. S3BucketRegion -> (Void# -> r) -> (Void# -> r) -> r
S3BucketRegion_Me_south_1 = S3BucketRegion' "me-south-1"
{-# COMPLETE
S3BucketRegion_Af_south_1,
S3BucketRegion_Ap_east_1,
S3BucketRegion_Eu_south_1,
S3BucketRegion_Me_south_1,
S3BucketRegion'
#-}