{-# 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.AutoAcceptSharedAttachmentsValue
-- 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.AutoAcceptSharedAttachmentsValue
  ( AutoAcceptSharedAttachmentsValue
      ( ..,
        AutoAcceptSharedAttachmentsValue_Disable,
        AutoAcceptSharedAttachmentsValue_Enable
      ),
  )
where

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

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

pattern AutoAcceptSharedAttachmentsValue_Disable :: AutoAcceptSharedAttachmentsValue
pattern $bAutoAcceptSharedAttachmentsValue_Disable :: AutoAcceptSharedAttachmentsValue
$mAutoAcceptSharedAttachmentsValue_Disable :: forall {r}.
AutoAcceptSharedAttachmentsValue
-> ((# #) -> r) -> ((# #) -> r) -> r
AutoAcceptSharedAttachmentsValue_Disable = AutoAcceptSharedAttachmentsValue' "disable"

pattern AutoAcceptSharedAttachmentsValue_Enable :: AutoAcceptSharedAttachmentsValue
pattern $bAutoAcceptSharedAttachmentsValue_Enable :: AutoAcceptSharedAttachmentsValue
$mAutoAcceptSharedAttachmentsValue_Enable :: forall {r}.
AutoAcceptSharedAttachmentsValue
-> ((# #) -> r) -> ((# #) -> r) -> r
AutoAcceptSharedAttachmentsValue_Enable = AutoAcceptSharedAttachmentsValue' "enable"

{-# COMPLETE
  AutoAcceptSharedAttachmentsValue_Disable,
  AutoAcceptSharedAttachmentsValue_Enable,
  AutoAcceptSharedAttachmentsValue'
  #-}