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