module Stratosphere.DataZone.DataSource.RecommendationConfigurationProperty (
RecommendationConfigurationProperty(..),
mkRecommendationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecommendationConfigurationProperty
=
RecommendationConfigurationProperty {RecommendationConfigurationProperty -> ()
haddock_workaround_ :: (),
RecommendationConfigurationProperty -> Maybe (Value Bool)
enableBusinessNameGeneration :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool
(RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool)
-> (RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool)
-> Eq RecommendationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool
== :: RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool
$c/= :: RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool
/= :: RecommendationConfigurationProperty
-> RecommendationConfigurationProperty -> Bool
Prelude.Eq, Int -> RecommendationConfigurationProperty -> ShowS
[RecommendationConfigurationProperty] -> ShowS
RecommendationConfigurationProperty -> String
(Int -> RecommendationConfigurationProperty -> ShowS)
-> (RecommendationConfigurationProperty -> String)
-> ([RecommendationConfigurationProperty] -> ShowS)
-> Show RecommendationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecommendationConfigurationProperty -> ShowS
showsPrec :: Int -> RecommendationConfigurationProperty -> ShowS
$cshow :: RecommendationConfigurationProperty -> String
show :: RecommendationConfigurationProperty -> String
$cshowList :: [RecommendationConfigurationProperty] -> ShowS
showList :: [RecommendationConfigurationProperty] -> ShowS
Prelude.Show)
mkRecommendationConfigurationProperty ::
RecommendationConfigurationProperty
mkRecommendationConfigurationProperty :: RecommendationConfigurationProperty
mkRecommendationConfigurationProperty
= RecommendationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
enableBusinessNameGeneration :: Maybe (Value Bool)
enableBusinessNameGeneration = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RecommendationConfigurationProperty where
toResourceProperties :: RecommendationConfigurationProperty -> ResourceProperties
toResourceProperties RecommendationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RecommendationConfigurationProperty -> ()
enableBusinessNameGeneration :: RecommendationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableBusinessNameGeneration :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::DataSource.RecommendationConfiguration",
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
"EnableBusinessNameGeneration"
(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)
enableBusinessNameGeneration])}
instance JSON.ToJSON RecommendationConfigurationProperty where
toJSON :: RecommendationConfigurationProperty -> Value
toJSON RecommendationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RecommendationConfigurationProperty -> ()
enableBusinessNameGeneration :: RecommendationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableBusinessNameGeneration :: 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
"EnableBusinessNameGeneration"
(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)
enableBusinessNameGeneration]))
instance Property "EnableBusinessNameGeneration" RecommendationConfigurationProperty where
type PropertyType "EnableBusinessNameGeneration" RecommendationConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"EnableBusinessNameGeneration" RecommendationConfigurationProperty
-> RecommendationConfigurationProperty
-> RecommendationConfigurationProperty
set PropertyType
"EnableBusinessNameGeneration" RecommendationConfigurationProperty
newValue RecommendationConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: RecommendationConfigurationProperty -> ()
enableBusinessNameGeneration :: RecommendationConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableBusinessNameGeneration :: Maybe (Value Bool)
..}
= RecommendationConfigurationProperty
{enableBusinessNameGeneration :: Maybe (Value Bool)
enableBusinessNameGeneration = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EnableBusinessNameGeneration" RecommendationConfigurationProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}