{-# 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.Lightsail.Types.LoadBalancerAttributeName
-- 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.Lightsail.Types.LoadBalancerAttributeName
  ( LoadBalancerAttributeName
      ( ..,
        LoadBalancerAttributeName_HealthCheckPath,
        LoadBalancerAttributeName_HttpsRedirectionEnabled,
        LoadBalancerAttributeName_SessionStickinessEnabled,
        LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds,
        LoadBalancerAttributeName_TlsPolicyName
      ),
  )
where

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

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

pattern LoadBalancerAttributeName_HealthCheckPath :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_HealthCheckPath :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_HealthCheckPath :: forall {r}.
LoadBalancerAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerAttributeName_HealthCheckPath = LoadBalancerAttributeName' "HealthCheckPath"

pattern LoadBalancerAttributeName_HttpsRedirectionEnabled :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_HttpsRedirectionEnabled :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_HttpsRedirectionEnabled :: forall {r}.
LoadBalancerAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerAttributeName_HttpsRedirectionEnabled = LoadBalancerAttributeName' "HttpsRedirectionEnabled"

pattern LoadBalancerAttributeName_SessionStickinessEnabled :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_SessionStickinessEnabled :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_SessionStickinessEnabled :: forall {r}.
LoadBalancerAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerAttributeName_SessionStickinessEnabled = LoadBalancerAttributeName' "SessionStickinessEnabled"

pattern LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds :: forall {r}.
LoadBalancerAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds = LoadBalancerAttributeName' "SessionStickiness_LB_CookieDurationSeconds"

pattern LoadBalancerAttributeName_TlsPolicyName :: LoadBalancerAttributeName
pattern $bLoadBalancerAttributeName_TlsPolicyName :: LoadBalancerAttributeName
$mLoadBalancerAttributeName_TlsPolicyName :: forall {r}.
LoadBalancerAttributeName -> ((# #) -> r) -> ((# #) -> r) -> r
LoadBalancerAttributeName_TlsPolicyName = LoadBalancerAttributeName' "TlsPolicyName"

{-# COMPLETE
  LoadBalancerAttributeName_HealthCheckPath,
  LoadBalancerAttributeName_HttpsRedirectionEnabled,
  LoadBalancerAttributeName_SessionStickinessEnabled,
  LoadBalancerAttributeName_SessionStickiness_LB_CookieDurationSeconds,
  LoadBalancerAttributeName_TlsPolicyName,
  LoadBalancerAttributeName'
  #-}