{-# 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.Lightsail.Types.CloudFormationStackRecordSourceType
-- 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.Lightsail.Types.CloudFormationStackRecordSourceType
  ( CloudFormationStackRecordSourceType
      ( ..,
        CloudFormationStackRecordSourceType_ExportSnapshotRecord
      ),
  )
where

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

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

pattern CloudFormationStackRecordSourceType_ExportSnapshotRecord :: CloudFormationStackRecordSourceType
pattern $bCloudFormationStackRecordSourceType_ExportSnapshotRecord :: CloudFormationStackRecordSourceType
$mCloudFormationStackRecordSourceType_ExportSnapshotRecord :: forall r.
CloudFormationStackRecordSourceType
-> (Void# -> r) -> (Void# -> r) -> r
CloudFormationStackRecordSourceType_ExportSnapshotRecord = CloudFormationStackRecordSourceType' "ExportSnapshotRecord"

{-# COMPLETE
  CloudFormationStackRecordSourceType_ExportSnapshotRecord,
  CloudFormationStackRecordSourceType'
  #-}