{-# 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.CloudWatchEvents.Types.PropagateTags
-- 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.CloudWatchEvents.Types.PropagateTags
  ( PropagateTags
      ( ..,
        PropagateTags_TASK_DEFINITION
      ),
  )
where

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

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

pattern PropagateTags_TASK_DEFINITION :: PropagateTags
pattern $bPropagateTags_TASK_DEFINITION :: PropagateTags
$mPropagateTags_TASK_DEFINITION :: forall r. PropagateTags -> (Void# -> r) -> (Void# -> r) -> r
PropagateTags_TASK_DEFINITION = PropagateTags' "TASK_DEFINITION"

{-# COMPLETE
  PropagateTags_TASK_DEFINITION,
  PropagateTags'
  #-}