{-# 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.IpamResourceType
( IpamResourceType
( ..,
IpamResourceType_Eip,
IpamResourceType_Ipv6_pool,
IpamResourceType_Public_ipv4_pool,
IpamResourceType_Subnet,
IpamResourceType_Vpc
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype IpamResourceType = IpamResourceType'
{ IpamResourceType -> Text
fromIpamResourceType ::
Data.Text
}
deriving stock
( Int -> IpamResourceType -> ShowS
[IpamResourceType] -> ShowS
IpamResourceType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IpamResourceType] -> ShowS
$cshowList :: [IpamResourceType] -> ShowS
show :: IpamResourceType -> String
$cshow :: IpamResourceType -> String
showsPrec :: Int -> IpamResourceType -> ShowS
$cshowsPrec :: Int -> IpamResourceType -> ShowS
Prelude.Show,
ReadPrec [IpamResourceType]
ReadPrec IpamResourceType
Int -> ReadS IpamResourceType
ReadS [IpamResourceType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IpamResourceType]
$creadListPrec :: ReadPrec [IpamResourceType]
readPrec :: ReadPrec IpamResourceType
$creadPrec :: ReadPrec IpamResourceType
readList :: ReadS [IpamResourceType]
$creadList :: ReadS [IpamResourceType]
readsPrec :: Int -> ReadS IpamResourceType
$creadsPrec :: Int -> ReadS IpamResourceType
Prelude.Read,
IpamResourceType -> IpamResourceType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IpamResourceType -> IpamResourceType -> Bool
$c/= :: IpamResourceType -> IpamResourceType -> Bool
== :: IpamResourceType -> IpamResourceType -> Bool
$c== :: IpamResourceType -> IpamResourceType -> Bool
Prelude.Eq,
Eq IpamResourceType
IpamResourceType -> IpamResourceType -> Bool
IpamResourceType -> IpamResourceType -> Ordering
IpamResourceType -> IpamResourceType -> IpamResourceType
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 :: IpamResourceType -> IpamResourceType -> IpamResourceType
$cmin :: IpamResourceType -> IpamResourceType -> IpamResourceType
max :: IpamResourceType -> IpamResourceType -> IpamResourceType
$cmax :: IpamResourceType -> IpamResourceType -> IpamResourceType
>= :: IpamResourceType -> IpamResourceType -> Bool
$c>= :: IpamResourceType -> IpamResourceType -> Bool
> :: IpamResourceType -> IpamResourceType -> Bool
$c> :: IpamResourceType -> IpamResourceType -> Bool
<= :: IpamResourceType -> IpamResourceType -> Bool
$c<= :: IpamResourceType -> IpamResourceType -> Bool
< :: IpamResourceType -> IpamResourceType -> Bool
$c< :: IpamResourceType -> IpamResourceType -> Bool
compare :: IpamResourceType -> IpamResourceType -> Ordering
$ccompare :: IpamResourceType -> IpamResourceType -> Ordering
Prelude.Ord,
forall x. Rep IpamResourceType x -> IpamResourceType
forall x. IpamResourceType -> Rep IpamResourceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IpamResourceType x -> IpamResourceType
$cfrom :: forall x. IpamResourceType -> Rep IpamResourceType x
Prelude.Generic
)
deriving newtype
( Eq IpamResourceType
Int -> IpamResourceType -> Int
IpamResourceType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: IpamResourceType -> Int
$chash :: IpamResourceType -> Int
hashWithSalt :: Int -> IpamResourceType -> Int
$chashWithSalt :: Int -> IpamResourceType -> Int
Prelude.Hashable,
IpamResourceType -> ()
forall a. (a -> ()) -> NFData a
rnf :: IpamResourceType -> ()
$crnf :: IpamResourceType -> ()
Prelude.NFData,
Text -> Either String IpamResourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IpamResourceType
$cfromText :: Text -> Either String IpamResourceType
Data.FromText,
IpamResourceType -> Text
forall a. (a -> Text) -> ToText a
toText :: IpamResourceType -> Text
$ctoText :: IpamResourceType -> Text
Data.ToText,
IpamResourceType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: IpamResourceType -> ByteString
$ctoBS :: IpamResourceType -> ByteString
Data.ToByteString,
IpamResourceType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IpamResourceType -> ByteStringBuilder
$cbuild :: IpamResourceType -> ByteStringBuilder
Data.ToLog,
HeaderName -> IpamResourceType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IpamResourceType -> [Header]
$ctoHeader :: HeaderName -> IpamResourceType -> [Header]
Data.ToHeader,
IpamResourceType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IpamResourceType -> QueryString
$ctoQuery :: IpamResourceType -> QueryString
Data.ToQuery,
Value -> Parser [IpamResourceType]
Value -> Parser IpamResourceType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [IpamResourceType]
$cparseJSONList :: Value -> Parser [IpamResourceType]
parseJSON :: Value -> Parser IpamResourceType
$cparseJSON :: Value -> Parser IpamResourceType
Data.FromJSON,
FromJSONKeyFunction [IpamResourceType]
FromJSONKeyFunction IpamResourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IpamResourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [IpamResourceType]
fromJSONKey :: FromJSONKeyFunction IpamResourceType
$cfromJSONKey :: FromJSONKeyFunction IpamResourceType
Data.FromJSONKey,
[IpamResourceType] -> Encoding
[IpamResourceType] -> Value
IpamResourceType -> Encoding
IpamResourceType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [IpamResourceType] -> Encoding
$ctoEncodingList :: [IpamResourceType] -> Encoding
toJSONList :: [IpamResourceType] -> Value
$ctoJSONList :: [IpamResourceType] -> Value
toEncoding :: IpamResourceType -> Encoding
$ctoEncoding :: IpamResourceType -> Encoding
toJSON :: IpamResourceType -> Value
$ctoJSON :: IpamResourceType -> Value
Data.ToJSON,
ToJSONKeyFunction [IpamResourceType]
ToJSONKeyFunction IpamResourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IpamResourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [IpamResourceType]
toJSONKey :: ToJSONKeyFunction IpamResourceType
$ctoJSONKey :: ToJSONKeyFunction IpamResourceType
Data.ToJSONKey,
[Node] -> Either String IpamResourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IpamResourceType
$cparseXML :: [Node] -> Either String IpamResourceType
Data.FromXML,
IpamResourceType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: IpamResourceType -> XML
$ctoXML :: IpamResourceType -> XML
Data.ToXML
)
pattern IpamResourceType_Eip :: IpamResourceType
pattern $bIpamResourceType_Eip :: IpamResourceType
$mIpamResourceType_Eip :: forall {r}. IpamResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
IpamResourceType_Eip = IpamResourceType' "eip"
pattern IpamResourceType_Ipv6_pool :: IpamResourceType
pattern $bIpamResourceType_Ipv6_pool :: IpamResourceType
$mIpamResourceType_Ipv6_pool :: forall {r}. IpamResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
IpamResourceType_Ipv6_pool = IpamResourceType' "ipv6-pool"
pattern IpamResourceType_Public_ipv4_pool :: IpamResourceType
pattern $bIpamResourceType_Public_ipv4_pool :: IpamResourceType
$mIpamResourceType_Public_ipv4_pool :: forall {r}. IpamResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
IpamResourceType_Public_ipv4_pool = IpamResourceType' "public-ipv4-pool"
pattern IpamResourceType_Subnet :: IpamResourceType
pattern $bIpamResourceType_Subnet :: IpamResourceType
$mIpamResourceType_Subnet :: forall {r}. IpamResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
IpamResourceType_Subnet = IpamResourceType' "subnet"
pattern IpamResourceType_Vpc :: IpamResourceType
pattern $bIpamResourceType_Vpc :: IpamResourceType
$mIpamResourceType_Vpc :: forall {r}. IpamResourceType -> ((# #) -> r) -> ((# #) -> r) -> r
IpamResourceType_Vpc = IpamResourceType' "vpc"
{-# COMPLETE
IpamResourceType_Eip,
IpamResourceType_Ipv6_pool,
IpamResourceType_Public_ipv4_pool,
IpamResourceType_Subnet,
IpamResourceType_Vpc,
IpamResourceType'
#-}