{-# 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.AssociationFilterKey
-- 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.AssociationFilterKey
  ( AssociationFilterKey
      ( ..,
        AssociationFilterKey_AssociationId,
        AssociationFilterKey_AssociationName,
        AssociationFilterKey_AssociationStatusName,
        AssociationFilterKey_InstanceId,
        AssociationFilterKey_LastExecutedAfter,
        AssociationFilterKey_LastExecutedBefore,
        AssociationFilterKey_Name,
        AssociationFilterKey_ResourceGroupName
      ),
  )
where

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

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

pattern AssociationFilterKey_AssociationId :: AssociationFilterKey
pattern $bAssociationFilterKey_AssociationId :: AssociationFilterKey
$mAssociationFilterKey_AssociationId :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_AssociationId = AssociationFilterKey' "AssociationId"

pattern AssociationFilterKey_AssociationName :: AssociationFilterKey
pattern $bAssociationFilterKey_AssociationName :: AssociationFilterKey
$mAssociationFilterKey_AssociationName :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_AssociationName = AssociationFilterKey' "AssociationName"

pattern AssociationFilterKey_AssociationStatusName :: AssociationFilterKey
pattern $bAssociationFilterKey_AssociationStatusName :: AssociationFilterKey
$mAssociationFilterKey_AssociationStatusName :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_AssociationStatusName = AssociationFilterKey' "AssociationStatusName"

pattern AssociationFilterKey_InstanceId :: AssociationFilterKey
pattern $bAssociationFilterKey_InstanceId :: AssociationFilterKey
$mAssociationFilterKey_InstanceId :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_InstanceId = AssociationFilterKey' "InstanceId"

pattern AssociationFilterKey_LastExecutedAfter :: AssociationFilterKey
pattern $bAssociationFilterKey_LastExecutedAfter :: AssociationFilterKey
$mAssociationFilterKey_LastExecutedAfter :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_LastExecutedAfter = AssociationFilterKey' "LastExecutedAfter"

pattern AssociationFilterKey_LastExecutedBefore :: AssociationFilterKey
pattern $bAssociationFilterKey_LastExecutedBefore :: AssociationFilterKey
$mAssociationFilterKey_LastExecutedBefore :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_LastExecutedBefore = AssociationFilterKey' "LastExecutedBefore"

pattern AssociationFilterKey_Name :: AssociationFilterKey
pattern $bAssociationFilterKey_Name :: AssociationFilterKey
$mAssociationFilterKey_Name :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_Name = AssociationFilterKey' "Name"

pattern AssociationFilterKey_ResourceGroupName :: AssociationFilterKey
pattern $bAssociationFilterKey_ResourceGroupName :: AssociationFilterKey
$mAssociationFilterKey_ResourceGroupName :: forall r. AssociationFilterKey -> (Void# -> r) -> (Void# -> r) -> r
AssociationFilterKey_ResourceGroupName = AssociationFilterKey' "ResourceGroupName"

{-# COMPLETE
  AssociationFilterKey_AssociationId,
  AssociationFilterKey_AssociationName,
  AssociationFilterKey_AssociationStatusName,
  AssociationFilterKey_InstanceId,
  AssociationFilterKey_LastExecutedAfter,
  AssociationFilterKey_LastExecutedBefore,
  AssociationFilterKey_Name,
  AssociationFilterKey_ResourceGroupName,
  AssociationFilterKey'
  #-}