{-# 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.AutoScaling.Types.LocalStorage
-- 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.AutoScaling.Types.LocalStorage
  ( LocalStorage
      ( ..,
        LocalStorage_Excluded,
        LocalStorage_Included,
        LocalStorage_Required
      ),
  )
where

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

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

pattern LocalStorage_Excluded :: LocalStorage
pattern $bLocalStorage_Excluded :: LocalStorage
$mLocalStorage_Excluded :: forall {r}. LocalStorage -> ((# #) -> r) -> ((# #) -> r) -> r
LocalStorage_Excluded = LocalStorage' "excluded"

pattern LocalStorage_Included :: LocalStorage
pattern $bLocalStorage_Included :: LocalStorage
$mLocalStorage_Included :: forall {r}. LocalStorage -> ((# #) -> r) -> ((# #) -> r) -> r
LocalStorage_Included = LocalStorage' "included"

pattern LocalStorage_Required :: LocalStorage
pattern $bLocalStorage_Required :: LocalStorage
$mLocalStorage_Required :: forall {r}. LocalStorage -> ((# #) -> r) -> ((# #) -> r) -> r
LocalStorage_Required = LocalStorage' "required"

{-# COMPLETE
  LocalStorage_Excluded,
  LocalStorage_Included,
  LocalStorage_Required,
  LocalStorage'
  #-}