module Stratosphere.QuickSight.Template.MinimumLabelTypeProperty (
        MinimumLabelTypeProperty(..), mkMinimumLabelTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
data MinimumLabelTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-minimumlabeltype.html>
    MinimumLabelTypeProperty {MinimumLabelTypeProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-minimumlabeltype.html#cfn-quicksight-template-minimumlabeltype-visibility>
                              MinimumLabelTypeProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
  deriving stock (MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool
(MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool)
-> (MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool)
-> Eq MinimumLabelTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool
== :: MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool
$c/= :: MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool
/= :: MinimumLabelTypeProperty -> MinimumLabelTypeProperty -> Bool
Prelude.Eq, Int -> MinimumLabelTypeProperty -> ShowS
[MinimumLabelTypeProperty] -> ShowS
MinimumLabelTypeProperty -> String
(Int -> MinimumLabelTypeProperty -> ShowS)
-> (MinimumLabelTypeProperty -> String)
-> ([MinimumLabelTypeProperty] -> ShowS)
-> Show MinimumLabelTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MinimumLabelTypeProperty -> ShowS
showsPrec :: Int -> MinimumLabelTypeProperty -> ShowS
$cshow :: MinimumLabelTypeProperty -> String
show :: MinimumLabelTypeProperty -> String
$cshowList :: [MinimumLabelTypeProperty] -> ShowS
showList :: [MinimumLabelTypeProperty] -> ShowS
Prelude.Show)
mkMinimumLabelTypeProperty :: MinimumLabelTypeProperty
mkMinimumLabelTypeProperty :: MinimumLabelTypeProperty
mkMinimumLabelTypeProperty
  = MinimumLabelTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), visibility :: Maybe Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MinimumLabelTypeProperty where
  toResourceProperties :: MinimumLabelTypeProperty -> ResourceProperties
toResourceProperties MinimumLabelTypeProperty {Maybe Object
()
haddock_workaround_ :: MinimumLabelTypeProperty -> ()
visibility :: MinimumLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.MinimumLabelType",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility])}
instance JSON.ToJSON MinimumLabelTypeProperty where
  toJSON :: MinimumLabelTypeProperty -> Value
toJSON MinimumLabelTypeProperty {Maybe Object
()
haddock_workaround_ :: MinimumLabelTypeProperty -> ()
visibility :: MinimumLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility]))
instance Property "Visibility" MinimumLabelTypeProperty where
  type PropertyType "Visibility" MinimumLabelTypeProperty = JSON.Object
  set :: PropertyType "Visibility" MinimumLabelTypeProperty
-> MinimumLabelTypeProperty -> MinimumLabelTypeProperty
set PropertyType "Visibility" MinimumLabelTypeProperty
newValue MinimumLabelTypeProperty {Maybe Object
()
haddock_workaround_ :: MinimumLabelTypeProperty -> ()
visibility :: MinimumLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
visibility :: Maybe Object
..}
    = MinimumLabelTypeProperty {visibility :: Maybe Object
visibility = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Visibility" MinimumLabelTypeProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}