{-# 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.CloudFormation.Types.Visibility
-- 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.CloudFormation.Types.Visibility
  ( Visibility
      ( ..,
        Visibility_PRIVATE,
        Visibility_PUBLIC
      ),
  )
where

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

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

pattern Visibility_PRIVATE :: Visibility
pattern $bVisibility_PRIVATE :: Visibility
$mVisibility_PRIVATE :: forall {r}. Visibility -> ((# #) -> r) -> ((# #) -> r) -> r
Visibility_PRIVATE = Visibility' "PRIVATE"

pattern Visibility_PUBLIC :: Visibility
pattern $bVisibility_PUBLIC :: Visibility
$mVisibility_PUBLIC :: forall {r}. Visibility -> ((# #) -> r) -> ((# #) -> r) -> r
Visibility_PUBLIC = Visibility' "PUBLIC"

{-# COMPLETE
  Visibility_PRIVATE,
  Visibility_PUBLIC,
  Visibility'
  #-}