{-# 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.DocumentFilterKey
-- 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.DocumentFilterKey
  ( DocumentFilterKey
      ( ..,
        DocumentFilterKey_DocumentType,
        DocumentFilterKey_Name,
        DocumentFilterKey_Owner,
        DocumentFilterKey_PlatformTypes
      ),
  )
where

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

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

pattern DocumentFilterKey_DocumentType :: DocumentFilterKey
pattern $bDocumentFilterKey_DocumentType :: DocumentFilterKey
$mDocumentFilterKey_DocumentType :: forall r. DocumentFilterKey -> (Void# -> r) -> (Void# -> r) -> r
DocumentFilterKey_DocumentType = DocumentFilterKey' "DocumentType"

pattern DocumentFilterKey_Name :: DocumentFilterKey
pattern $bDocumentFilterKey_Name :: DocumentFilterKey
$mDocumentFilterKey_Name :: forall r. DocumentFilterKey -> (Void# -> r) -> (Void# -> r) -> r
DocumentFilterKey_Name = DocumentFilterKey' "Name"

pattern DocumentFilterKey_Owner :: DocumentFilterKey
pattern $bDocumentFilterKey_Owner :: DocumentFilterKey
$mDocumentFilterKey_Owner :: forall r. DocumentFilterKey -> (Void# -> r) -> (Void# -> r) -> r
DocumentFilterKey_Owner = DocumentFilterKey' "Owner"

pattern DocumentFilterKey_PlatformTypes :: DocumentFilterKey
pattern $bDocumentFilterKey_PlatformTypes :: DocumentFilterKey
$mDocumentFilterKey_PlatformTypes :: forall r. DocumentFilterKey -> (Void# -> r) -> (Void# -> r) -> r
DocumentFilterKey_PlatformTypes = DocumentFilterKey' "PlatformTypes"

{-# COMPLETE
  DocumentFilterKey_DocumentType,
  DocumentFilterKey_Name,
  DocumentFilterKey_Owner,
  DocumentFilterKey_PlatformTypes,
  DocumentFilterKey'
  #-}