{-# 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.CloudFront.Types.RealtimeMetricsSubscriptionStatus
-- 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.CloudFront.Types.RealtimeMetricsSubscriptionStatus
  ( RealtimeMetricsSubscriptionStatus
      ( ..,
        RealtimeMetricsSubscriptionStatus_Disabled,
        RealtimeMetricsSubscriptionStatus_Enabled
      ),
  )
where

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

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

pattern RealtimeMetricsSubscriptionStatus_Disabled :: RealtimeMetricsSubscriptionStatus
pattern $bRealtimeMetricsSubscriptionStatus_Disabled :: RealtimeMetricsSubscriptionStatus
$mRealtimeMetricsSubscriptionStatus_Disabled :: forall r.
RealtimeMetricsSubscriptionStatus
-> (Void# -> r) -> (Void# -> r) -> r
RealtimeMetricsSubscriptionStatus_Disabled = RealtimeMetricsSubscriptionStatus' "Disabled"

pattern RealtimeMetricsSubscriptionStatus_Enabled :: RealtimeMetricsSubscriptionStatus
pattern $bRealtimeMetricsSubscriptionStatus_Enabled :: RealtimeMetricsSubscriptionStatus
$mRealtimeMetricsSubscriptionStatus_Enabled :: forall r.
RealtimeMetricsSubscriptionStatus
-> (Void# -> r) -> (Void# -> r) -> r
RealtimeMetricsSubscriptionStatus_Enabled = RealtimeMetricsSubscriptionStatus' "Enabled"

{-# COMPLETE
  RealtimeMetricsSubscriptionStatus_Disabled,
  RealtimeMetricsSubscriptionStatus_Enabled,
  RealtimeMetricsSubscriptionStatus'
  #-}