{-# 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-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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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

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

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

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

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

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

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