module Stratosphere.Oam.Link.LinkFilterProperty (
LinkFilterProperty(..), mkLinkFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LinkFilterProperty
=
LinkFilterProperty {LinkFilterProperty -> ()
haddock_workaround_ :: (),
LinkFilterProperty -> Value Text
filter :: (Value Prelude.Text)}
deriving stock (LinkFilterProperty -> LinkFilterProperty -> Bool
(LinkFilterProperty -> LinkFilterProperty -> Bool)
-> (LinkFilterProperty -> LinkFilterProperty -> Bool)
-> Eq LinkFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LinkFilterProperty -> LinkFilterProperty -> Bool
== :: LinkFilterProperty -> LinkFilterProperty -> Bool
$c/= :: LinkFilterProperty -> LinkFilterProperty -> Bool
/= :: LinkFilterProperty -> LinkFilterProperty -> Bool
Prelude.Eq, Int -> LinkFilterProperty -> ShowS
[LinkFilterProperty] -> ShowS
LinkFilterProperty -> String
(Int -> LinkFilterProperty -> ShowS)
-> (LinkFilterProperty -> String)
-> ([LinkFilterProperty] -> ShowS)
-> Show LinkFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LinkFilterProperty -> ShowS
showsPrec :: Int -> LinkFilterProperty -> ShowS
$cshow :: LinkFilterProperty -> String
show :: LinkFilterProperty -> String
$cshowList :: [LinkFilterProperty] -> ShowS
showList :: [LinkFilterProperty] -> ShowS
Prelude.Show)
mkLinkFilterProperty :: Value Prelude.Text -> LinkFilterProperty
mkLinkFilterProperty :: Value Text -> LinkFilterProperty
mkLinkFilterProperty Value Text
filter
= LinkFilterProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), filter :: Value Text
filter = Value Text
filter}
instance ToResourceProperties LinkFilterProperty where
toResourceProperties :: LinkFilterProperty -> ResourceProperties
toResourceProperties LinkFilterProperty {()
Value Text
haddock_workaround_ :: LinkFilterProperty -> ()
filter :: LinkFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Oam::Link.LinkFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Filter" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
filter]}
instance JSON.ToJSON LinkFilterProperty where
toJSON :: LinkFilterProperty -> Value
toJSON LinkFilterProperty {()
Value Text
haddock_workaround_ :: LinkFilterProperty -> ()
filter :: LinkFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Filter" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
filter]
instance Property "Filter" LinkFilterProperty where
type PropertyType "Filter" LinkFilterProperty = Value Prelude.Text
set :: PropertyType "Filter" LinkFilterProperty
-> LinkFilterProperty -> LinkFilterProperty
set PropertyType "Filter" LinkFilterProperty
newValue LinkFilterProperty {()
Value Text
haddock_workaround_ :: LinkFilterProperty -> ()
filter :: LinkFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
..}
= LinkFilterProperty {filter :: Value Text
filter = PropertyType "Filter" LinkFilterProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}