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

pattern AutoAcceptSharedAssociationsValue_Disable :: AutoAcceptSharedAssociationsValue
pattern $bAutoAcceptSharedAssociationsValue_Disable :: AutoAcceptSharedAssociationsValue
$mAutoAcceptSharedAssociationsValue_Disable :: forall {r}.
AutoAcceptSharedAssociationsValue
-> ((# #) -> r) -> ((# #) -> r) -> r
AutoAcceptSharedAssociationsValue_Disable = AutoAcceptSharedAssociationsValue' "disable"

pattern AutoAcceptSharedAssociationsValue_Enable :: AutoAcceptSharedAssociationsValue
pattern $bAutoAcceptSharedAssociationsValue_Enable :: AutoAcceptSharedAssociationsValue
$mAutoAcceptSharedAssociationsValue_Enable :: forall {r}.
AutoAcceptSharedAssociationsValue
-> ((# #) -> r) -> ((# #) -> r) -> r
AutoAcceptSharedAssociationsValue_Enable = AutoAcceptSharedAssociationsValue' "enable"

{-# COMPLETE
  AutoAcceptSharedAssociationsValue_Disable,
  AutoAcceptSharedAssociationsValue_Enable,
  AutoAcceptSharedAssociationsValue'
  #-}