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

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

newtype Visibility = Visibility'
  { Visibility -> Text
fromVisibility ::
      Core.Text
  }
  deriving stock
    ( Int -> Visibility -> ShowS
[Visibility] -> ShowS
Visibility -> String
(Int -> Visibility -> ShowS)
-> (Visibility -> String)
-> ([Visibility] -> ShowS)
-> Show Visibility
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]
(Int -> ReadS Visibility)
-> ReadS [Visibility]
-> ReadPrec Visibility
-> ReadPrec [Visibility]
-> Read 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
(Visibility -> Visibility -> Bool)
-> (Visibility -> Visibility -> Bool) -> Eq Visibility
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
Eq Visibility
-> (Visibility -> Visibility -> Ordering)
-> (Visibility -> Visibility -> Bool)
-> (Visibility -> Visibility -> Bool)
-> (Visibility -> Visibility -> Bool)
-> (Visibility -> Visibility -> Bool)
-> (Visibility -> Visibility -> Visibility)
-> (Visibility -> Visibility -> Visibility)
-> Ord 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
$cp1Ord :: Eq Visibility
Prelude.Ord,
      (forall x. Visibility -> Rep Visibility x)
-> (forall x. Rep Visibility x -> Visibility) -> Generic Visibility
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
    ( Int -> Visibility -> Int
Visibility -> Int
(Int -> Visibility -> Int)
-> (Visibility -> Int) -> Hashable Visibility
forall 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 -> ()
(Visibility -> ()) -> NFData Visibility
forall a. (a -> ()) -> NFData a
rnf :: Visibility -> ()
$crnf :: Visibility -> ()
Prelude.NFData,
      Text -> Either String Visibility
(Text -> Either String Visibility) -> FromText Visibility
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Visibility
$cfromText :: Text -> Either String Visibility
Core.FromText,
      Visibility -> Text
(Visibility -> Text) -> ToText Visibility
forall a. (a -> Text) -> ToText a
toText :: Visibility -> Text
$ctoText :: Visibility -> Text
Core.ToText,
      Visibility -> ByteString
(Visibility -> ByteString) -> ToByteString Visibility
forall a. (a -> ByteString) -> ToByteString a
toBS :: Visibility -> ByteString
$ctoBS :: Visibility -> ByteString
Core.ToByteString,
      Visibility -> ByteStringBuilder
(Visibility -> ByteStringBuilder) -> ToLog Visibility
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Visibility -> ByteStringBuilder
$cbuild :: Visibility -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Visibility -> [Header]
(HeaderName -> Visibility -> [Header]) -> ToHeader Visibility
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Visibility -> [Header]
$ctoHeader :: HeaderName -> Visibility -> [Header]
Core.ToHeader,
      Visibility -> QueryString
(Visibility -> QueryString) -> ToQuery Visibility
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Visibility -> QueryString
$ctoQuery :: Visibility -> QueryString
Core.ToQuery,
      Value -> Parser [Visibility]
Value -> Parser Visibility
(Value -> Parser Visibility)
-> (Value -> Parser [Visibility]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Visibility]
FromJSONKeyFunction Visibility
FromJSONKeyFunction Visibility
-> FromJSONKeyFunction [Visibility] -> FromJSONKey Visibility
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Visibility]
$cfromJSONKeyList :: FromJSONKeyFunction [Visibility]
fromJSONKey :: FromJSONKeyFunction Visibility
$cfromJSONKey :: FromJSONKeyFunction Visibility
Core.FromJSONKey,
      [Visibility] -> Encoding
[Visibility] -> Value
Visibility -> Encoding
Visibility -> Value
(Visibility -> Value)
-> (Visibility -> Encoding)
-> ([Visibility] -> Value)
-> ([Visibility] -> Encoding)
-> ToJSON Visibility
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
Core.ToJSON,
      ToJSONKeyFunction [Visibility]
ToJSONKeyFunction Visibility
ToJSONKeyFunction Visibility
-> ToJSONKeyFunction [Visibility] -> ToJSONKey Visibility
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Visibility]
$ctoJSONKeyList :: ToJSONKeyFunction [Visibility]
toJSONKey :: ToJSONKeyFunction Visibility
$ctoJSONKey :: ToJSONKeyFunction Visibility
Core.ToJSONKey,
      [Node] -> Either String Visibility
([Node] -> Either String Visibility) -> FromXML Visibility
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Visibility
$cparseXML :: [Node] -> Either String Visibility
Core.FromXML,
      Visibility -> XML
(Visibility -> XML) -> ToXML Visibility
forall a. (a -> XML) -> ToXML a
toXML :: Visibility -> XML
$ctoXML :: Visibility -> XML
Core.ToXML
    )

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

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

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