{-# 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.ResourceGroups.Types.GroupFilterName
-- 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.ResourceGroups.Types.GroupFilterName
  ( GroupFilterName
      ( ..,
        GroupFilterName_Configuration_type,
        GroupFilterName_Resource_type
      ),
  )
where

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

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

pattern GroupFilterName_Configuration_type :: GroupFilterName
pattern $bGroupFilterName_Configuration_type :: GroupFilterName
$mGroupFilterName_Configuration_type :: forall r. GroupFilterName -> (Void# -> r) -> (Void# -> r) -> r
GroupFilterName_Configuration_type = GroupFilterName' "configuration-type"

pattern GroupFilterName_Resource_type :: GroupFilterName
pattern $bGroupFilterName_Resource_type :: GroupFilterName
$mGroupFilterName_Resource_type :: forall r. GroupFilterName -> (Void# -> r) -> (Void# -> r) -> r
GroupFilterName_Resource_type = GroupFilterName' "resource-type"

{-# COMPLETE
  GroupFilterName_Configuration_type,
  GroupFilterName_Resource_type,
  GroupFilterName'
  #-}