{-# 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.CommandFilterKey
-- 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.CommandFilterKey
  ( CommandFilterKey
      ( ..,
        CommandFilterKey_DocumentName,
        CommandFilterKey_ExecutionStage,
        CommandFilterKey_InvokedAfter,
        CommandFilterKey_InvokedBefore,
        CommandFilterKey_Status
      ),
  )
where

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

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

pattern CommandFilterKey_DocumentName :: CommandFilterKey
pattern $bCommandFilterKey_DocumentName :: CommandFilterKey
$mCommandFilterKey_DocumentName :: forall r. CommandFilterKey -> (Void# -> r) -> (Void# -> r) -> r
CommandFilterKey_DocumentName = CommandFilterKey' "DocumentName"

pattern CommandFilterKey_ExecutionStage :: CommandFilterKey
pattern $bCommandFilterKey_ExecutionStage :: CommandFilterKey
$mCommandFilterKey_ExecutionStage :: forall r. CommandFilterKey -> (Void# -> r) -> (Void# -> r) -> r
CommandFilterKey_ExecutionStage = CommandFilterKey' "ExecutionStage"

pattern CommandFilterKey_InvokedAfter :: CommandFilterKey
pattern $bCommandFilterKey_InvokedAfter :: CommandFilterKey
$mCommandFilterKey_InvokedAfter :: forall r. CommandFilterKey -> (Void# -> r) -> (Void# -> r) -> r
CommandFilterKey_InvokedAfter = CommandFilterKey' "InvokedAfter"

pattern CommandFilterKey_InvokedBefore :: CommandFilterKey
pattern $bCommandFilterKey_InvokedBefore :: CommandFilterKey
$mCommandFilterKey_InvokedBefore :: forall r. CommandFilterKey -> (Void# -> r) -> (Void# -> r) -> r
CommandFilterKey_InvokedBefore = CommandFilterKey' "InvokedBefore"

pattern CommandFilterKey_Status :: CommandFilterKey
pattern $bCommandFilterKey_Status :: CommandFilterKey
$mCommandFilterKey_Status :: forall r. CommandFilterKey -> (Void# -> r) -> (Void# -> r) -> r
CommandFilterKey_Status = CommandFilterKey' "Status"

{-# COMPLETE
  CommandFilterKey_DocumentName,
  CommandFilterKey_ExecutionStage,
  CommandFilterKey_InvokedAfter,
  CommandFilterKey_InvokedBefore,
  CommandFilterKey_Status,
  CommandFilterKey'
  #-}