{-# 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.CloudFormation.Types.StackInstanceFilterName
-- 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.CloudFormation.Types.StackInstanceFilterName
  ( StackInstanceFilterName
      ( ..,
        StackInstanceFilterName_DETAILED_STATUS,
        StackInstanceFilterName_LAST_OPERATION_ID
      ),
  )
where

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

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

pattern StackInstanceFilterName_DETAILED_STATUS :: StackInstanceFilterName
pattern $bStackInstanceFilterName_DETAILED_STATUS :: StackInstanceFilterName
$mStackInstanceFilterName_DETAILED_STATUS :: forall {r}.
StackInstanceFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
StackInstanceFilterName_DETAILED_STATUS = StackInstanceFilterName' "DETAILED_STATUS"

pattern StackInstanceFilterName_LAST_OPERATION_ID :: StackInstanceFilterName
pattern $bStackInstanceFilterName_LAST_OPERATION_ID :: StackInstanceFilterName
$mStackInstanceFilterName_LAST_OPERATION_ID :: forall {r}.
StackInstanceFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
StackInstanceFilterName_LAST_OPERATION_ID = StackInstanceFilterName' "LAST_OPERATION_ID"

{-# COMPLETE
  StackInstanceFilterName_DETAILED_STATUS,
  StackInstanceFilterName_LAST_OPERATION_ID,
  StackInstanceFilterName'
  #-}