{-# 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.ECS.Types.Connectivity
-- 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.ECS.Types.Connectivity
  ( Connectivity
      ( ..,
        Connectivity_CONNECTED,
        Connectivity_DISCONNECTED
      ),
  )
where

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

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

pattern Connectivity_CONNECTED :: Connectivity
pattern $bConnectivity_CONNECTED :: Connectivity
$mConnectivity_CONNECTED :: forall {r}. Connectivity -> ((# #) -> r) -> ((# #) -> r) -> r
Connectivity_CONNECTED = Connectivity' "CONNECTED"

pattern Connectivity_DISCONNECTED :: Connectivity
pattern $bConnectivity_DISCONNECTED :: Connectivity
$mConnectivity_DISCONNECTED :: forall {r}. Connectivity -> ((# #) -> r) -> ((# #) -> r) -> r
Connectivity_DISCONNECTED = Connectivity' "DISCONNECTED"

{-# COMPLETE
  Connectivity_CONNECTED,
  Connectivity_DISCONNECTED,
  Connectivity'
  #-}