{-# 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.OpsWorks.Types.CloudWatchLogsTimeZone
-- 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.OpsWorks.Types.CloudWatchLogsTimeZone
  ( CloudWatchLogsTimeZone
      ( ..,
        CloudWatchLogsTimeZone_LOCAL,
        CloudWatchLogsTimeZone_UTC
      ),
  )
where

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

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

pattern CloudWatchLogsTimeZone_LOCAL :: CloudWatchLogsTimeZone
pattern $bCloudWatchLogsTimeZone_LOCAL :: CloudWatchLogsTimeZone
$mCloudWatchLogsTimeZone_LOCAL :: forall r.
CloudWatchLogsTimeZone -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchLogsTimeZone_LOCAL = CloudWatchLogsTimeZone' "LOCAL"

pattern CloudWatchLogsTimeZone_UTC :: CloudWatchLogsTimeZone
pattern $bCloudWatchLogsTimeZone_UTC :: CloudWatchLogsTimeZone
$mCloudWatchLogsTimeZone_UTC :: forall r.
CloudWatchLogsTimeZone -> (Void# -> r) -> (Void# -> r) -> r
CloudWatchLogsTimeZone_UTC = CloudWatchLogsTimeZone' "UTC"

{-# COMPLETE
  CloudWatchLogsTimeZone_LOCAL,
  CloudWatchLogsTimeZone_UTC,
  CloudWatchLogsTimeZone'
  #-}