{-# 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.CloudWatch.Types.RecentlyActive
-- 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.CloudWatch.Types.RecentlyActive
  ( RecentlyActive
      ( ..,
        RecentlyActive_PT3H
      ),
  )
where

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

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

pattern RecentlyActive_PT3H :: RecentlyActive
pattern $bRecentlyActive_PT3H :: RecentlyActive
$mRecentlyActive_PT3H :: forall r. RecentlyActive -> (Void# -> r) -> (Void# -> r) -> r
RecentlyActive_PT3H = RecentlyActive' "PT3H"

{-# COMPLETE
  RecentlyActive_PT3H,
  RecentlyActive'
  #-}