{-# 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.EC2.Types.CopyTagsFromSource
-- 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.EC2.Types.CopyTagsFromSource
  ( CopyTagsFromSource
      ( ..,
        CopyTagsFromSource_Volume
      ),
  )
where

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

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

pattern CopyTagsFromSource_Volume :: CopyTagsFromSource
pattern $bCopyTagsFromSource_Volume :: CopyTagsFromSource
$mCopyTagsFromSource_Volume :: forall {r}. CopyTagsFromSource -> ((# #) -> r) -> ((# #) -> r) -> r
CopyTagsFromSource_Volume = CopyTagsFromSource' "volume"

{-# COMPLETE
  CopyTagsFromSource_Volume,
  CopyTagsFromSource'
  #-}