{-# 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.ECS.Types.SettingName
-- 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.ECS.Types.SettingName
  ( SettingName
      ( ..,
        SettingName_AwsvpcTrunking,
        SettingName_ContainerInsights,
        SettingName_ContainerInstanceLongArnFormat,
        SettingName_ServiceLongArnFormat,
        SettingName_TaskLongArnFormat
      ),
  )
where

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

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

pattern SettingName_AwsvpcTrunking :: SettingName
pattern $bSettingName_AwsvpcTrunking :: SettingName
$mSettingName_AwsvpcTrunking :: forall r. SettingName -> (Void# -> r) -> (Void# -> r) -> r
SettingName_AwsvpcTrunking = SettingName' "awsvpcTrunking"

pattern SettingName_ContainerInsights :: SettingName
pattern $bSettingName_ContainerInsights :: SettingName
$mSettingName_ContainerInsights :: forall r. SettingName -> (Void# -> r) -> (Void# -> r) -> r
SettingName_ContainerInsights = SettingName' "containerInsights"

pattern SettingName_ContainerInstanceLongArnFormat :: SettingName
pattern $bSettingName_ContainerInstanceLongArnFormat :: SettingName
$mSettingName_ContainerInstanceLongArnFormat :: forall r. SettingName -> (Void# -> r) -> (Void# -> r) -> r
SettingName_ContainerInstanceLongArnFormat = SettingName' "containerInstanceLongArnFormat"

pattern SettingName_ServiceLongArnFormat :: SettingName
pattern $bSettingName_ServiceLongArnFormat :: SettingName
$mSettingName_ServiceLongArnFormat :: forall r. SettingName -> (Void# -> r) -> (Void# -> r) -> r
SettingName_ServiceLongArnFormat = SettingName' "serviceLongArnFormat"

pattern SettingName_TaskLongArnFormat :: SettingName
pattern $bSettingName_TaskLongArnFormat :: SettingName
$mSettingName_TaskLongArnFormat :: forall r. SettingName -> (Void# -> r) -> (Void# -> r) -> r
SettingName_TaskLongArnFormat = SettingName' "taskLongArnFormat"

{-# COMPLETE
  SettingName_AwsvpcTrunking,
  SettingName_ContainerInsights,
  SettingName_ContainerInstanceLongArnFormat,
  SettingName_ServiceLongArnFormat,
  SettingName_TaskLongArnFormat,
  SettingName'
  #-}