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