{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.LocationType
( LocationType
( ..,
LocationType_Availability_zone,
LocationType_Availability_zone_id,
LocationType_Region
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype LocationType = LocationType'
{ LocationType -> Text
fromLocationType ::
Data.Text
}
deriving stock
( Int -> LocationType -> ShowS
[LocationType] -> ShowS
LocationType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LocationType] -> ShowS
$cshowList :: [LocationType] -> ShowS
show :: LocationType -> String
$cshow :: LocationType -> String
showsPrec :: Int -> LocationType -> ShowS
$cshowsPrec :: Int -> LocationType -> ShowS
Prelude.Show,
ReadPrec [LocationType]
ReadPrec LocationType
Int -> ReadS LocationType
ReadS [LocationType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LocationType]
$creadListPrec :: ReadPrec [LocationType]
readPrec :: ReadPrec LocationType
$creadPrec :: ReadPrec LocationType
readList :: ReadS [LocationType]
$creadList :: ReadS [LocationType]
readsPrec :: Int -> ReadS LocationType
$creadsPrec :: Int -> ReadS LocationType
Prelude.Read,
LocationType -> LocationType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LocationType -> LocationType -> Bool
$c/= :: LocationType -> LocationType -> Bool
== :: LocationType -> LocationType -> Bool
$c== :: LocationType -> LocationType -> Bool
Prelude.Eq,
Eq LocationType
LocationType -> LocationType -> Bool
LocationType -> LocationType -> Ordering
LocationType -> LocationType -> LocationType
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 :: LocationType -> LocationType -> LocationType
$cmin :: LocationType -> LocationType -> LocationType
max :: LocationType -> LocationType -> LocationType
$cmax :: LocationType -> LocationType -> LocationType
>= :: LocationType -> LocationType -> Bool
$c>= :: LocationType -> LocationType -> Bool
> :: LocationType -> LocationType -> Bool
$c> :: LocationType -> LocationType -> Bool
<= :: LocationType -> LocationType -> Bool
$c<= :: LocationType -> LocationType -> Bool
< :: LocationType -> LocationType -> Bool
$c< :: LocationType -> LocationType -> Bool
compare :: LocationType -> LocationType -> Ordering
$ccompare :: LocationType -> LocationType -> Ordering
Prelude.Ord,
forall x. Rep LocationType x -> LocationType
forall x. LocationType -> Rep LocationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LocationType x -> LocationType
$cfrom :: forall x. LocationType -> Rep LocationType x
Prelude.Generic
)
deriving newtype
( Eq LocationType
Int -> LocationType -> Int
LocationType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: LocationType -> Int
$chash :: LocationType -> Int
hashWithSalt :: Int -> LocationType -> Int
$chashWithSalt :: Int -> LocationType -> Int
Prelude.Hashable,
LocationType -> ()
forall a. (a -> ()) -> NFData a
rnf :: LocationType -> ()
$crnf :: LocationType -> ()
Prelude.NFData,
Text -> Either String LocationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LocationType
$cfromText :: Text -> Either String LocationType
Data.FromText,
LocationType -> Text
forall a. (a -> Text) -> ToText a
toText :: LocationType -> Text
$ctoText :: LocationType -> Text
Data.ToText,
LocationType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LocationType -> ByteString
$ctoBS :: LocationType -> ByteString
Data.ToByteString,
LocationType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LocationType -> ByteStringBuilder
$cbuild :: LocationType -> ByteStringBuilder
Data.ToLog,
HeaderName -> LocationType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LocationType -> [Header]
$ctoHeader :: HeaderName -> LocationType -> [Header]
Data.ToHeader,
LocationType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LocationType -> QueryString
$ctoQuery :: LocationType -> QueryString
Data.ToQuery,
Value -> Parser [LocationType]
Value -> Parser LocationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [LocationType]
$cparseJSONList :: Value -> Parser [LocationType]
parseJSON :: Value -> Parser LocationType
$cparseJSON :: Value -> Parser LocationType
Data.FromJSON,
FromJSONKeyFunction [LocationType]
FromJSONKeyFunction LocationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LocationType]
$cfromJSONKeyList :: FromJSONKeyFunction [LocationType]
fromJSONKey :: FromJSONKeyFunction LocationType
$cfromJSONKey :: FromJSONKeyFunction LocationType
Data.FromJSONKey,
[LocationType] -> Encoding
[LocationType] -> Value
LocationType -> Encoding
LocationType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [LocationType] -> Encoding
$ctoEncodingList :: [LocationType] -> Encoding
toJSONList :: [LocationType] -> Value
$ctoJSONList :: [LocationType] -> Value
toEncoding :: LocationType -> Encoding
$ctoEncoding :: LocationType -> Encoding
toJSON :: LocationType -> Value
$ctoJSON :: LocationType -> Value
Data.ToJSON,
ToJSONKeyFunction [LocationType]
ToJSONKeyFunction LocationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LocationType]
$ctoJSONKeyList :: ToJSONKeyFunction [LocationType]
toJSONKey :: ToJSONKeyFunction LocationType
$ctoJSONKey :: ToJSONKeyFunction LocationType
Data.ToJSONKey,
[Node] -> Either String LocationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LocationType
$cparseXML :: [Node] -> Either String LocationType
Data.FromXML,
LocationType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LocationType -> XML
$ctoXML :: LocationType -> XML
Data.ToXML
)
pattern LocationType_Availability_zone :: LocationType
pattern $bLocationType_Availability_zone :: LocationType
$mLocationType_Availability_zone :: forall {r}. LocationType -> ((# #) -> r) -> ((# #) -> r) -> r
LocationType_Availability_zone = LocationType' "availability-zone"
pattern LocationType_Availability_zone_id :: LocationType
pattern $bLocationType_Availability_zone_id :: LocationType
$mLocationType_Availability_zone_id :: forall {r}. LocationType -> ((# #) -> r) -> ((# #) -> r) -> r
LocationType_Availability_zone_id = LocationType' "availability-zone-id"
pattern LocationType_Region :: LocationType
pattern $bLocationType_Region :: LocationType
$mLocationType_Region :: forall {r}. LocationType -> ((# #) -> r) -> ((# #) -> r) -> r
LocationType_Region = LocationType' "region"
{-# COMPLETE
LocationType_Availability_zone,
LocationType_Availability_zone_id,
LocationType_Region,
LocationType'
#-}