{-# 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.ResetImageAttributeName
-- 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.ResetImageAttributeName
  ( ResetImageAttributeName
      ( ..,
        ResetImageAttributeName_LaunchPermission
      ),
  )
where

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

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

pattern ResetImageAttributeName_LaunchPermission :: ResetImageAttributeName
pattern $bResetImageAttributeName_LaunchPermission :: ResetImageAttributeName
$mResetImageAttributeName_LaunchPermission :: forall {r}.
ResetImageAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
ResetImageAttributeName_LaunchPermission = ResetImageAttributeName' "launchPermission"

{-# COMPLETE
  ResetImageAttributeName_LaunchPermission,
  ResetImageAttributeName'
  #-}