module Stratosphere.APS.Scraper.SourceProperty (
module Exports, SourceProperty(..), mkSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.APS.Scraper.EksConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data SourceProperty
=
SourceProperty {SourceProperty -> ()
haddock_workaround_ :: (),
SourceProperty -> EksConfigurationProperty
eksConfiguration :: EksConfigurationProperty}
deriving stock (SourceProperty -> SourceProperty -> Bool
(SourceProperty -> SourceProperty -> Bool)
-> (SourceProperty -> SourceProperty -> Bool) -> Eq SourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceProperty -> SourceProperty -> Bool
== :: SourceProperty -> SourceProperty -> Bool
$c/= :: SourceProperty -> SourceProperty -> Bool
/= :: SourceProperty -> SourceProperty -> Bool
Prelude.Eq, Int -> SourceProperty -> ShowS
[SourceProperty] -> ShowS
SourceProperty -> String
(Int -> SourceProperty -> ShowS)
-> (SourceProperty -> String)
-> ([SourceProperty] -> ShowS)
-> Show SourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceProperty -> ShowS
showsPrec :: Int -> SourceProperty -> ShowS
$cshow :: SourceProperty -> String
show :: SourceProperty -> String
$cshowList :: [SourceProperty] -> ShowS
showList :: [SourceProperty] -> ShowS
Prelude.Show)
mkSourceProperty :: EksConfigurationProperty -> SourceProperty
mkSourceProperty :: EksConfigurationProperty -> SourceProperty
mkSourceProperty EksConfigurationProperty
eksConfiguration
= SourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), eksConfiguration :: EksConfigurationProperty
eksConfiguration = EksConfigurationProperty
eksConfiguration}
instance ToResourceProperties SourceProperty where
toResourceProperties :: SourceProperty -> ResourceProperties
toResourceProperties SourceProperty {()
EksConfigurationProperty
haddock_workaround_ :: SourceProperty -> ()
eksConfiguration :: SourceProperty -> EksConfigurationProperty
haddock_workaround_ :: ()
eksConfiguration :: EksConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::APS::Scraper.Source",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"EksConfiguration" Key -> EksConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EksConfigurationProperty
eksConfiguration]}
instance JSON.ToJSON SourceProperty where
toJSON :: SourceProperty -> Value
toJSON SourceProperty {()
EksConfigurationProperty
haddock_workaround_ :: SourceProperty -> ()
eksConfiguration :: SourceProperty -> EksConfigurationProperty
haddock_workaround_ :: ()
eksConfiguration :: EksConfigurationProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"EksConfiguration" Key -> EksConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EksConfigurationProperty
eksConfiguration]
instance Property "EksConfiguration" SourceProperty where
type PropertyType "EksConfiguration" SourceProperty = EksConfigurationProperty
set :: PropertyType "EksConfiguration" SourceProperty
-> SourceProperty -> SourceProperty
set PropertyType "EksConfiguration" SourceProperty
newValue SourceProperty {()
EksConfigurationProperty
haddock_workaround_ :: SourceProperty -> ()
eksConfiguration :: SourceProperty -> EksConfigurationProperty
haddock_workaround_ :: ()
eksConfiguration :: EksConfigurationProperty
..}
= SourceProperty {eksConfiguration :: EksConfigurationProperty
eksConfiguration = PropertyType "EksConfiguration" SourceProperty
EksConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}