{-# 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.ElasticBeanstalk.Types.EnvironmentInfoType
-- 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.ElasticBeanstalk.Types.EnvironmentInfoType
  ( EnvironmentInfoType
      ( ..,
        EnvironmentInfoType_Bundle,
        EnvironmentInfoType_Tail
      ),
  )
where

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

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

pattern EnvironmentInfoType_Bundle :: EnvironmentInfoType
pattern $bEnvironmentInfoType_Bundle :: EnvironmentInfoType
$mEnvironmentInfoType_Bundle :: forall {r}.
EnvironmentInfoType -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentInfoType_Bundle = EnvironmentInfoType' "bundle"

pattern EnvironmentInfoType_Tail :: EnvironmentInfoType
pattern $bEnvironmentInfoType_Tail :: EnvironmentInfoType
$mEnvironmentInfoType_Tail :: forall {r}.
EnvironmentInfoType -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentInfoType_Tail = EnvironmentInfoType' "tail"

{-# COMPLETE
  EnvironmentInfoType_Bundle,
  EnvironmentInfoType_Tail,
  EnvironmentInfoType'
  #-}