{-# 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.CostAndUsageReport.Types.AdditionalArtifact
-- 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.CostAndUsageReport.Types.AdditionalArtifact
  ( AdditionalArtifact
      ( ..,
        AdditionalArtifact_ATHENA,
        AdditionalArtifact_QUICKSIGHT,
        AdditionalArtifact_REDSHIFT
      ),
  )
where

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

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

pattern AdditionalArtifact_ATHENA :: AdditionalArtifact
pattern $bAdditionalArtifact_ATHENA :: AdditionalArtifact
$mAdditionalArtifact_ATHENA :: forall r. AdditionalArtifact -> (Void# -> r) -> (Void# -> r) -> r
AdditionalArtifact_ATHENA = AdditionalArtifact' "ATHENA"

pattern AdditionalArtifact_QUICKSIGHT :: AdditionalArtifact
pattern $bAdditionalArtifact_QUICKSIGHT :: AdditionalArtifact
$mAdditionalArtifact_QUICKSIGHT :: forall r. AdditionalArtifact -> (Void# -> r) -> (Void# -> r) -> r
AdditionalArtifact_QUICKSIGHT = AdditionalArtifact' "QUICKSIGHT"

pattern AdditionalArtifact_REDSHIFT :: AdditionalArtifact
pattern $bAdditionalArtifact_REDSHIFT :: AdditionalArtifact
$mAdditionalArtifact_REDSHIFT :: forall r. AdditionalArtifact -> (Void# -> r) -> (Void# -> r) -> r
AdditionalArtifact_REDSHIFT = AdditionalArtifact' "REDSHIFT"

{-# COMPLETE
  AdditionalArtifact_ATHENA,
  AdditionalArtifact_QUICKSIGHT,
  AdditionalArtifact_REDSHIFT,
  AdditionalArtifact'
  #-}