{-# 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.SSM.Types.SessionFilterKey
-- 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.SSM.Types.SessionFilterKey
  ( SessionFilterKey
      ( ..,
        SessionFilterKey_InvokedAfter,
        SessionFilterKey_InvokedBefore,
        SessionFilterKey_Owner,
        SessionFilterKey_SessionId,
        SessionFilterKey_Status,
        SessionFilterKey_Target
      ),
  )
where

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

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

pattern SessionFilterKey_InvokedAfter :: SessionFilterKey
pattern $bSessionFilterKey_InvokedAfter :: SessionFilterKey
$mSessionFilterKey_InvokedAfter :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_InvokedAfter = SessionFilterKey' "InvokedAfter"

pattern SessionFilterKey_InvokedBefore :: SessionFilterKey
pattern $bSessionFilterKey_InvokedBefore :: SessionFilterKey
$mSessionFilterKey_InvokedBefore :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_InvokedBefore = SessionFilterKey' "InvokedBefore"

pattern SessionFilterKey_Owner :: SessionFilterKey
pattern $bSessionFilterKey_Owner :: SessionFilterKey
$mSessionFilterKey_Owner :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_Owner = SessionFilterKey' "Owner"

pattern SessionFilterKey_SessionId :: SessionFilterKey
pattern $bSessionFilterKey_SessionId :: SessionFilterKey
$mSessionFilterKey_SessionId :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_SessionId = SessionFilterKey' "SessionId"

pattern SessionFilterKey_Status :: SessionFilterKey
pattern $bSessionFilterKey_Status :: SessionFilterKey
$mSessionFilterKey_Status :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_Status = SessionFilterKey' "Status"

pattern SessionFilterKey_Target :: SessionFilterKey
pattern $bSessionFilterKey_Target :: SessionFilterKey
$mSessionFilterKey_Target :: forall {r}. SessionFilterKey -> ((# #) -> r) -> ((# #) -> r) -> r
SessionFilterKey_Target = SessionFilterKey' "Target"

{-# COMPLETE
  SessionFilterKey_InvokedAfter,
  SessionFilterKey_InvokedBefore,
  SessionFilterKey_Owner,
  SessionFilterKey_SessionId,
  SessionFilterKey_Status,
  SessionFilterKey_Target,
  SessionFilterKey'
  #-}