{-# 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.SSM.Types.AttachmentsSourceKey
-- 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.SSM.Types.AttachmentsSourceKey
  ( AttachmentsSourceKey
      ( ..,
        AttachmentsSourceKey_AttachmentReference,
        AttachmentsSourceKey_S3FileUrl,
        AttachmentsSourceKey_SourceUrl
      ),
  )
where

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

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

pattern AttachmentsSourceKey_AttachmentReference :: AttachmentsSourceKey
pattern $bAttachmentsSourceKey_AttachmentReference :: AttachmentsSourceKey
$mAttachmentsSourceKey_AttachmentReference :: forall r. AttachmentsSourceKey -> (Void# -> r) -> (Void# -> r) -> r
AttachmentsSourceKey_AttachmentReference = AttachmentsSourceKey' "AttachmentReference"

pattern AttachmentsSourceKey_S3FileUrl :: AttachmentsSourceKey
pattern $bAttachmentsSourceKey_S3FileUrl :: AttachmentsSourceKey
$mAttachmentsSourceKey_S3FileUrl :: forall r. AttachmentsSourceKey -> (Void# -> r) -> (Void# -> r) -> r
AttachmentsSourceKey_S3FileUrl = AttachmentsSourceKey' "S3FileUrl"

pattern AttachmentsSourceKey_SourceUrl :: AttachmentsSourceKey
pattern $bAttachmentsSourceKey_SourceUrl :: AttachmentsSourceKey
$mAttachmentsSourceKey_SourceUrl :: forall r. AttachmentsSourceKey -> (Void# -> r) -> (Void# -> r) -> r
AttachmentsSourceKey_SourceUrl = AttachmentsSourceKey' "SourceUrl"

{-# COMPLETE
  AttachmentsSourceKey_AttachmentReference,
  AttachmentsSourceKey_S3FileUrl,
  AttachmentsSourceKey_SourceUrl,
  AttachmentsSourceKey'
  #-}