{-# 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.LaunchTemplateInstanceMetadataProtocolIpv6
-- 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.LaunchTemplateInstanceMetadataProtocolIpv6
  ( LaunchTemplateInstanceMetadataProtocolIpv6
      ( ..,
        LaunchTemplateInstanceMetadataProtocolIpv6_Disabled,
        LaunchTemplateInstanceMetadataProtocolIpv6_Enabled
      ),
  )
where

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

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

pattern LaunchTemplateInstanceMetadataProtocolIpv6_Disabled :: LaunchTemplateInstanceMetadataProtocolIpv6
pattern $bLaunchTemplateInstanceMetadataProtocolIpv6_Disabled :: LaunchTemplateInstanceMetadataProtocolIpv6
$mLaunchTemplateInstanceMetadataProtocolIpv6_Disabled :: forall {r}.
LaunchTemplateInstanceMetadataProtocolIpv6
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataProtocolIpv6_Disabled = LaunchTemplateInstanceMetadataProtocolIpv6' "disabled"

pattern LaunchTemplateInstanceMetadataProtocolIpv6_Enabled :: LaunchTemplateInstanceMetadataProtocolIpv6
pattern $bLaunchTemplateInstanceMetadataProtocolIpv6_Enabled :: LaunchTemplateInstanceMetadataProtocolIpv6
$mLaunchTemplateInstanceMetadataProtocolIpv6_Enabled :: forall {r}.
LaunchTemplateInstanceMetadataProtocolIpv6
-> ((# #) -> r) -> ((# #) -> r) -> r
LaunchTemplateInstanceMetadataProtocolIpv6_Enabled = LaunchTemplateInstanceMetadataProtocolIpv6' "enabled"

{-# COMPLETE
  LaunchTemplateInstanceMetadataProtocolIpv6_Disabled,
  LaunchTemplateInstanceMetadataProtocolIpv6_Enabled,
  LaunchTemplateInstanceMetadataProtocolIpv6'
  #-}