{-# 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.EC2.Types.IpamPoolAwsService
-- 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.EC2.Types.IpamPoolAwsService
  ( IpamPoolAwsService
      ( ..,
        IpamPoolAwsService_Ec2
      ),
  )
where

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

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

pattern IpamPoolAwsService_Ec2 :: IpamPoolAwsService
pattern $bIpamPoolAwsService_Ec2 :: IpamPoolAwsService
$mIpamPoolAwsService_Ec2 :: forall {r}. IpamPoolAwsService -> ((# #) -> r) -> ((# #) -> r) -> r
IpamPoolAwsService_Ec2 = IpamPoolAwsService' "ec2"

{-# COMPLETE
  IpamPoolAwsService_Ec2,
  IpamPoolAwsService'
  #-}