{-# 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.Greengrass.Types.UpdateTargetsOperatingSystem
-- 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.Greengrass.Types.UpdateTargetsOperatingSystem
  ( UpdateTargetsOperatingSystem
      ( ..,
        UpdateTargetsOperatingSystem_Amazon_linux,
        UpdateTargetsOperatingSystem_Openwrt,
        UpdateTargetsOperatingSystem_Raspbian,
        UpdateTargetsOperatingSystem_Ubuntu
      ),
  )
where

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

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

pattern UpdateTargetsOperatingSystem_Amazon_linux :: UpdateTargetsOperatingSystem
pattern $bUpdateTargetsOperatingSystem_Amazon_linux :: UpdateTargetsOperatingSystem
$mUpdateTargetsOperatingSystem_Amazon_linux :: forall r.
UpdateTargetsOperatingSystem -> (Void# -> r) -> (Void# -> r) -> r
UpdateTargetsOperatingSystem_Amazon_linux = UpdateTargetsOperatingSystem' "amazon_linux"

pattern UpdateTargetsOperatingSystem_Openwrt :: UpdateTargetsOperatingSystem
pattern $bUpdateTargetsOperatingSystem_Openwrt :: UpdateTargetsOperatingSystem
$mUpdateTargetsOperatingSystem_Openwrt :: forall r.
UpdateTargetsOperatingSystem -> (Void# -> r) -> (Void# -> r) -> r
UpdateTargetsOperatingSystem_Openwrt = UpdateTargetsOperatingSystem' "openwrt"

pattern UpdateTargetsOperatingSystem_Raspbian :: UpdateTargetsOperatingSystem
pattern $bUpdateTargetsOperatingSystem_Raspbian :: UpdateTargetsOperatingSystem
$mUpdateTargetsOperatingSystem_Raspbian :: forall r.
UpdateTargetsOperatingSystem -> (Void# -> r) -> (Void# -> r) -> r
UpdateTargetsOperatingSystem_Raspbian = UpdateTargetsOperatingSystem' "raspbian"

pattern UpdateTargetsOperatingSystem_Ubuntu :: UpdateTargetsOperatingSystem
pattern $bUpdateTargetsOperatingSystem_Ubuntu :: UpdateTargetsOperatingSystem
$mUpdateTargetsOperatingSystem_Ubuntu :: forall r.
UpdateTargetsOperatingSystem -> (Void# -> r) -> (Void# -> r) -> r
UpdateTargetsOperatingSystem_Ubuntu = UpdateTargetsOperatingSystem' "ubuntu"

{-# COMPLETE
  UpdateTargetsOperatingSystem_Amazon_linux,
  UpdateTargetsOperatingSystem_Openwrt,
  UpdateTargetsOperatingSystem_Raspbian,
  UpdateTargetsOperatingSystem_Ubuntu,
  UpdateTargetsOperatingSystem'
  #-}