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