{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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

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