{-# 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.EMRContainers.Types.ContainerProviderType
-- 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.EMRContainers.Types.ContainerProviderType
  ( ContainerProviderType
      ( ..,
        ContainerProviderType_EKS
      ),
  )
where

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

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

pattern ContainerProviderType_EKS :: ContainerProviderType
pattern $bContainerProviderType_EKS :: ContainerProviderType
$mContainerProviderType_EKS :: forall r.
ContainerProviderType -> (Void# -> r) -> (Void# -> r) -> r
ContainerProviderType_EKS = ContainerProviderType' "EKS"

{-# COMPLETE
  ContainerProviderType_EKS,
  ContainerProviderType'
  #-}