{-# 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.AppRunner.Types.ObservabilityConfigurationStatus
-- 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.AppRunner.Types.ObservabilityConfigurationStatus
  ( ObservabilityConfigurationStatus
      ( ..,
        ObservabilityConfigurationStatus_ACTIVE,
        ObservabilityConfigurationStatus_INACTIVE
      ),
  )
where

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

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

pattern ObservabilityConfigurationStatus_ACTIVE :: ObservabilityConfigurationStatus
pattern $bObservabilityConfigurationStatus_ACTIVE :: ObservabilityConfigurationStatus
$mObservabilityConfigurationStatus_ACTIVE :: forall {r}.
ObservabilityConfigurationStatus
-> ((# #) -> r) -> ((# #) -> r) -> r
ObservabilityConfigurationStatus_ACTIVE = ObservabilityConfigurationStatus' "ACTIVE"

pattern ObservabilityConfigurationStatus_INACTIVE :: ObservabilityConfigurationStatus
pattern $bObservabilityConfigurationStatus_INACTIVE :: ObservabilityConfigurationStatus
$mObservabilityConfigurationStatus_INACTIVE :: forall {r}.
ObservabilityConfigurationStatus
-> ((# #) -> r) -> ((# #) -> r) -> r
ObservabilityConfigurationStatus_INACTIVE = ObservabilityConfigurationStatus' "INACTIVE"

{-# COMPLETE
  ObservabilityConfigurationStatus_ACTIVE,
  ObservabilityConfigurationStatus_INACTIVE,
  ObservabilityConfigurationStatus'
  #-}