{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.GreengrassV2.Types.ComponentVisibilityScope
( ComponentVisibilityScope
( ..,
ComponentVisibilityScope_PRIVATE,
ComponentVisibilityScope_PUBLIC
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ComponentVisibilityScope = ComponentVisibilityScope'
{ ComponentVisibilityScope -> Text
fromComponentVisibilityScope ::
Core.Text
}
deriving stock
( Int -> ComponentVisibilityScope -> ShowS
[ComponentVisibilityScope] -> ShowS
ComponentVisibilityScope -> String
(Int -> ComponentVisibilityScope -> ShowS)
-> (ComponentVisibilityScope -> String)
-> ([ComponentVisibilityScope] -> ShowS)
-> Show ComponentVisibilityScope
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ComponentVisibilityScope] -> ShowS
$cshowList :: [ComponentVisibilityScope] -> ShowS
show :: ComponentVisibilityScope -> String
$cshow :: ComponentVisibilityScope -> String
showsPrec :: Int -> ComponentVisibilityScope -> ShowS
$cshowsPrec :: Int -> ComponentVisibilityScope -> ShowS
Prelude.Show,
ReadPrec [ComponentVisibilityScope]
ReadPrec ComponentVisibilityScope
Int -> ReadS ComponentVisibilityScope
ReadS [ComponentVisibilityScope]
(Int -> ReadS ComponentVisibilityScope)
-> ReadS [ComponentVisibilityScope]
-> ReadPrec ComponentVisibilityScope
-> ReadPrec [ComponentVisibilityScope]
-> Read ComponentVisibilityScope
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ComponentVisibilityScope]
$creadListPrec :: ReadPrec [ComponentVisibilityScope]
readPrec :: ReadPrec ComponentVisibilityScope
$creadPrec :: ReadPrec ComponentVisibilityScope
readList :: ReadS [ComponentVisibilityScope]
$creadList :: ReadS [ComponentVisibilityScope]
readsPrec :: Int -> ReadS ComponentVisibilityScope
$creadsPrec :: Int -> ReadS ComponentVisibilityScope
Prelude.Read,
ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
(ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> (ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> Eq ComponentVisibilityScope
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c/= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
== :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c== :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
Prelude.Eq,
Eq ComponentVisibilityScope
Eq ComponentVisibilityScope
-> (ComponentVisibilityScope
-> ComponentVisibilityScope -> Ordering)
-> (ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> (ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> (ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> (ComponentVisibilityScope -> ComponentVisibilityScope -> Bool)
-> (ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope)
-> (ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope)
-> Ord ComponentVisibilityScope
ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
ComponentVisibilityScope -> ComponentVisibilityScope -> Ordering
ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope
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 :: ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope
$cmin :: ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope
max :: ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope
$cmax :: ComponentVisibilityScope
-> ComponentVisibilityScope -> ComponentVisibilityScope
>= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c>= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
> :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c> :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
<= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c<= :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
< :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
$c< :: ComponentVisibilityScope -> ComponentVisibilityScope -> Bool
compare :: ComponentVisibilityScope -> ComponentVisibilityScope -> Ordering
$ccompare :: ComponentVisibilityScope -> ComponentVisibilityScope -> Ordering
$cp1Ord :: Eq ComponentVisibilityScope
Prelude.Ord,
(forall x.
ComponentVisibilityScope -> Rep ComponentVisibilityScope x)
-> (forall x.
Rep ComponentVisibilityScope x -> ComponentVisibilityScope)
-> Generic ComponentVisibilityScope
forall x.
Rep ComponentVisibilityScope x -> ComponentVisibilityScope
forall x.
ComponentVisibilityScope -> Rep ComponentVisibilityScope x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ComponentVisibilityScope x -> ComponentVisibilityScope
$cfrom :: forall x.
ComponentVisibilityScope -> Rep ComponentVisibilityScope x
Prelude.Generic
)
deriving newtype
( Int -> ComponentVisibilityScope -> Int
ComponentVisibilityScope -> Int
(Int -> ComponentVisibilityScope -> Int)
-> (ComponentVisibilityScope -> Int)
-> Hashable ComponentVisibilityScope
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ComponentVisibilityScope -> Int
$chash :: ComponentVisibilityScope -> Int
hashWithSalt :: Int -> ComponentVisibilityScope -> Int
$chashWithSalt :: Int -> ComponentVisibilityScope -> Int
Prelude.Hashable,
ComponentVisibilityScope -> ()
(ComponentVisibilityScope -> ()) -> NFData ComponentVisibilityScope
forall a. (a -> ()) -> NFData a
rnf :: ComponentVisibilityScope -> ()
$crnf :: ComponentVisibilityScope -> ()
Prelude.NFData,
Text -> Either String ComponentVisibilityScope
(Text -> Either String ComponentVisibilityScope)
-> FromText ComponentVisibilityScope
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ComponentVisibilityScope
$cfromText :: Text -> Either String ComponentVisibilityScope
Core.FromText,
ComponentVisibilityScope -> Text
(ComponentVisibilityScope -> Text)
-> ToText ComponentVisibilityScope
forall a. (a -> Text) -> ToText a
toText :: ComponentVisibilityScope -> Text
$ctoText :: ComponentVisibilityScope -> Text
Core.ToText,
ComponentVisibilityScope -> ByteString
(ComponentVisibilityScope -> ByteString)
-> ToByteString ComponentVisibilityScope
forall a. (a -> ByteString) -> ToByteString a
toBS :: ComponentVisibilityScope -> ByteString
$ctoBS :: ComponentVisibilityScope -> ByteString
Core.ToByteString,
ComponentVisibilityScope -> ByteStringBuilder
(ComponentVisibilityScope -> ByteStringBuilder)
-> ToLog ComponentVisibilityScope
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ComponentVisibilityScope -> ByteStringBuilder
$cbuild :: ComponentVisibilityScope -> ByteStringBuilder
Core.ToLog,
HeaderName -> ComponentVisibilityScope -> [Header]
(HeaderName -> ComponentVisibilityScope -> [Header])
-> ToHeader ComponentVisibilityScope
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ComponentVisibilityScope -> [Header]
$ctoHeader :: HeaderName -> ComponentVisibilityScope -> [Header]
Core.ToHeader,
ComponentVisibilityScope -> QueryString
(ComponentVisibilityScope -> QueryString)
-> ToQuery ComponentVisibilityScope
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ComponentVisibilityScope -> QueryString
$ctoQuery :: ComponentVisibilityScope -> QueryString
Core.ToQuery,
Value -> Parser [ComponentVisibilityScope]
Value -> Parser ComponentVisibilityScope
(Value -> Parser ComponentVisibilityScope)
-> (Value -> Parser [ComponentVisibilityScope])
-> FromJSON ComponentVisibilityScope
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ComponentVisibilityScope]
$cparseJSONList :: Value -> Parser [ComponentVisibilityScope]
parseJSON :: Value -> Parser ComponentVisibilityScope
$cparseJSON :: Value -> Parser ComponentVisibilityScope
Core.FromJSON,
FromJSONKeyFunction [ComponentVisibilityScope]
FromJSONKeyFunction ComponentVisibilityScope
FromJSONKeyFunction ComponentVisibilityScope
-> FromJSONKeyFunction [ComponentVisibilityScope]
-> FromJSONKey ComponentVisibilityScope
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ComponentVisibilityScope]
$cfromJSONKeyList :: FromJSONKeyFunction [ComponentVisibilityScope]
fromJSONKey :: FromJSONKeyFunction ComponentVisibilityScope
$cfromJSONKey :: FromJSONKeyFunction ComponentVisibilityScope
Core.FromJSONKey,
[ComponentVisibilityScope] -> Encoding
[ComponentVisibilityScope] -> Value
ComponentVisibilityScope -> Encoding
ComponentVisibilityScope -> Value
(ComponentVisibilityScope -> Value)
-> (ComponentVisibilityScope -> Encoding)
-> ([ComponentVisibilityScope] -> Value)
-> ([ComponentVisibilityScope] -> Encoding)
-> ToJSON ComponentVisibilityScope
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ComponentVisibilityScope] -> Encoding
$ctoEncodingList :: [ComponentVisibilityScope] -> Encoding
toJSONList :: [ComponentVisibilityScope] -> Value
$ctoJSONList :: [ComponentVisibilityScope] -> Value
toEncoding :: ComponentVisibilityScope -> Encoding
$ctoEncoding :: ComponentVisibilityScope -> Encoding
toJSON :: ComponentVisibilityScope -> Value
$ctoJSON :: ComponentVisibilityScope -> Value
Core.ToJSON,
ToJSONKeyFunction [ComponentVisibilityScope]
ToJSONKeyFunction ComponentVisibilityScope
ToJSONKeyFunction ComponentVisibilityScope
-> ToJSONKeyFunction [ComponentVisibilityScope]
-> ToJSONKey ComponentVisibilityScope
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ComponentVisibilityScope]
$ctoJSONKeyList :: ToJSONKeyFunction [ComponentVisibilityScope]
toJSONKey :: ToJSONKeyFunction ComponentVisibilityScope
$ctoJSONKey :: ToJSONKeyFunction ComponentVisibilityScope
Core.ToJSONKey,
[Node] -> Either String ComponentVisibilityScope
([Node] -> Either String ComponentVisibilityScope)
-> FromXML ComponentVisibilityScope
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ComponentVisibilityScope
$cparseXML :: [Node] -> Either String ComponentVisibilityScope
Core.FromXML,
ComponentVisibilityScope -> XML
(ComponentVisibilityScope -> XML) -> ToXML ComponentVisibilityScope
forall a. (a -> XML) -> ToXML a
toXML :: ComponentVisibilityScope -> XML
$ctoXML :: ComponentVisibilityScope -> XML
Core.ToXML
)
pattern ComponentVisibilityScope_PRIVATE :: ComponentVisibilityScope
pattern $bComponentVisibilityScope_PRIVATE :: ComponentVisibilityScope
$mComponentVisibilityScope_PRIVATE :: forall r.
ComponentVisibilityScope -> (Void# -> r) -> (Void# -> r) -> r
ComponentVisibilityScope_PRIVATE = ComponentVisibilityScope' "PRIVATE"
pattern ComponentVisibilityScope_PUBLIC :: ComponentVisibilityScope
pattern $bComponentVisibilityScope_PUBLIC :: ComponentVisibilityScope
$mComponentVisibilityScope_PUBLIC :: forall r.
ComponentVisibilityScope -> (Void# -> r) -> (Void# -> r) -> r
ComponentVisibilityScope_PUBLIC = ComponentVisibilityScope' "PUBLIC"
{-# COMPLETE
ComponentVisibilityScope_PRIVATE,
ComponentVisibilityScope_PUBLIC,
ComponentVisibilityScope'
#-}