{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype Connectivity = Connectivity'
  { Connectivity -> Text
fromConnectivity ::
      Core.Text
  }
  deriving stock
    ( Int -> Connectivity -> ShowS
[Connectivity] -> ShowS
Connectivity -> String
(Int -> Connectivity -> ShowS)
-> (Connectivity -> String)
-> ([Connectivity] -> ShowS)
-> Show Connectivity
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]
(Int -> ReadS Connectivity)
-> ReadS [Connectivity]
-> ReadPrec Connectivity
-> ReadPrec [Connectivity]
-> Read 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
(Connectivity -> Connectivity -> Bool)
-> (Connectivity -> Connectivity -> Bool) -> Eq Connectivity
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
Eq Connectivity
-> (Connectivity -> Connectivity -> Ordering)
-> (Connectivity -> Connectivity -> Bool)
-> (Connectivity -> Connectivity -> Bool)
-> (Connectivity -> Connectivity -> Bool)
-> (Connectivity -> Connectivity -> Bool)
-> (Connectivity -> Connectivity -> Connectivity)
-> (Connectivity -> Connectivity -> Connectivity)
-> Ord 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
$cp1Ord :: Eq Connectivity
Prelude.Ord,
      (forall x. Connectivity -> Rep Connectivity x)
-> (forall x. Rep Connectivity x -> Connectivity)
-> Generic Connectivity
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
    ( Int -> Connectivity -> Int
Connectivity -> Int
(Int -> Connectivity -> Int)
-> (Connectivity -> Int) -> Hashable Connectivity
forall 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 -> ()
(Connectivity -> ()) -> NFData Connectivity
forall a. (a -> ()) -> NFData a
rnf :: Connectivity -> ()
$crnf :: Connectivity -> ()
Prelude.NFData,
      Text -> Either String Connectivity
(Text -> Either String Connectivity) -> FromText Connectivity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Connectivity
$cfromText :: Text -> Either String Connectivity
Core.FromText,
      Connectivity -> Text
(Connectivity -> Text) -> ToText Connectivity
forall a. (a -> Text) -> ToText a
toText :: Connectivity -> Text
$ctoText :: Connectivity -> Text
Core.ToText,
      Connectivity -> ByteString
(Connectivity -> ByteString) -> ToByteString Connectivity
forall a. (a -> ByteString) -> ToByteString a
toBS :: Connectivity -> ByteString
$ctoBS :: Connectivity -> ByteString
Core.ToByteString,
      Connectivity -> ByteStringBuilder
(Connectivity -> ByteStringBuilder) -> ToLog Connectivity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Connectivity -> ByteStringBuilder
$cbuild :: Connectivity -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Connectivity -> [Header]
(HeaderName -> Connectivity -> [Header]) -> ToHeader Connectivity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Connectivity -> [Header]
$ctoHeader :: HeaderName -> Connectivity -> [Header]
Core.ToHeader,
      Connectivity -> QueryString
(Connectivity -> QueryString) -> ToQuery Connectivity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Connectivity -> QueryString
$ctoQuery :: Connectivity -> QueryString
Core.ToQuery,
      Value -> Parser [Connectivity]
Value -> Parser Connectivity
(Value -> Parser Connectivity)
-> (Value -> Parser [Connectivity]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Connectivity]
FromJSONKeyFunction Connectivity
FromJSONKeyFunction Connectivity
-> FromJSONKeyFunction [Connectivity] -> FromJSONKey Connectivity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Connectivity]
$cfromJSONKeyList :: FromJSONKeyFunction [Connectivity]
fromJSONKey :: FromJSONKeyFunction Connectivity
$cfromJSONKey :: FromJSONKeyFunction Connectivity
Core.FromJSONKey,
      [Connectivity] -> Encoding
[Connectivity] -> Value
Connectivity -> Encoding
Connectivity -> Value
(Connectivity -> Value)
-> (Connectivity -> Encoding)
-> ([Connectivity] -> Value)
-> ([Connectivity] -> Encoding)
-> ToJSON Connectivity
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
Core.ToJSON,
      ToJSONKeyFunction [Connectivity]
ToJSONKeyFunction Connectivity
ToJSONKeyFunction Connectivity
-> ToJSONKeyFunction [Connectivity] -> ToJSONKey Connectivity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Connectivity]
$ctoJSONKeyList :: ToJSONKeyFunction [Connectivity]
toJSONKey :: ToJSONKeyFunction Connectivity
$ctoJSONKey :: ToJSONKeyFunction Connectivity
Core.ToJSONKey,
      [Node] -> Either String Connectivity
([Node] -> Either String Connectivity) -> FromXML Connectivity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Connectivity
$cparseXML :: [Node] -> Either String Connectivity
Core.FromXML,
      Connectivity -> XML
(Connectivity -> XML) -> ToXML Connectivity
forall a. (a -> XML) -> ToXML a
toXML :: Connectivity -> XML
$ctoXML :: Connectivity -> XML
Core.ToXML
    )

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

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

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