module Stratosphere.QuickSight.DataSource.SslPropertiesProperty (
        SslPropertiesProperty(..), mkSslPropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SslPropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sslproperties.html>
    SslPropertiesProperty {SslPropertiesProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-datasource-sslproperties.html#cfn-quicksight-datasource-sslproperties-disablessl>
                           SslPropertiesProperty -> Maybe (Value Bool)
disableSsl :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (SslPropertiesProperty -> SslPropertiesProperty -> Bool
(SslPropertiesProperty -> SslPropertiesProperty -> Bool)
-> (SslPropertiesProperty -> SslPropertiesProperty -> Bool)
-> Eq SslPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SslPropertiesProperty -> SslPropertiesProperty -> Bool
== :: SslPropertiesProperty -> SslPropertiesProperty -> Bool
$c/= :: SslPropertiesProperty -> SslPropertiesProperty -> Bool
/= :: SslPropertiesProperty -> SslPropertiesProperty -> Bool
Prelude.Eq, Int -> SslPropertiesProperty -> ShowS
[SslPropertiesProperty] -> ShowS
SslPropertiesProperty -> String
(Int -> SslPropertiesProperty -> ShowS)
-> (SslPropertiesProperty -> String)
-> ([SslPropertiesProperty] -> ShowS)
-> Show SslPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SslPropertiesProperty -> ShowS
showsPrec :: Int -> SslPropertiesProperty -> ShowS
$cshow :: SslPropertiesProperty -> String
show :: SslPropertiesProperty -> String
$cshowList :: [SslPropertiesProperty] -> ShowS
showList :: [SslPropertiesProperty] -> ShowS
Prelude.Show)
mkSslPropertiesProperty :: SslPropertiesProperty
mkSslPropertiesProperty :: SslPropertiesProperty
mkSslPropertiesProperty
  = SslPropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), disableSsl :: Maybe (Value Bool)
disableSsl = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SslPropertiesProperty where
  toResourceProperties :: SslPropertiesProperty -> ResourceProperties
toResourceProperties SslPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SslPropertiesProperty -> ()
disableSsl :: SslPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableSsl :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::DataSource.SslProperties",
         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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableSsl" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableSsl])}
instance JSON.ToJSON SslPropertiesProperty where
  toJSON :: SslPropertiesProperty -> Value
toJSON SslPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SslPropertiesProperty -> ()
disableSsl :: SslPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableSsl :: Maybe (Value Bool)
..}
    = [(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 -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DisableSsl" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
disableSsl]))
instance Property "DisableSsl" SslPropertiesProperty where
  type PropertyType "DisableSsl" SslPropertiesProperty = Value Prelude.Bool
  set :: PropertyType "DisableSsl" SslPropertiesProperty
-> SslPropertiesProperty -> SslPropertiesProperty
set PropertyType "DisableSsl" SslPropertiesProperty
newValue SslPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: SslPropertiesProperty -> ()
disableSsl :: SslPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
disableSsl :: Maybe (Value Bool)
..}
    = SslPropertiesProperty {disableSsl :: Maybe (Value Bool)
disableSsl = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisableSsl" SslPropertiesProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}