module Stratosphere.SSM.MaintenanceWindowTarget.TargetsProperty (
TargetsProperty(..), mkTargetsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TargetsProperty
=
TargetsProperty {TargetsProperty -> ()
haddock_workaround_ :: (),
TargetsProperty -> Value Text
key :: (Value Prelude.Text),
TargetsProperty -> ValueList Text
values :: (ValueList Prelude.Text)}
deriving stock (TargetsProperty -> TargetsProperty -> Bool
(TargetsProperty -> TargetsProperty -> Bool)
-> (TargetsProperty -> TargetsProperty -> Bool)
-> Eq TargetsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TargetsProperty -> TargetsProperty -> Bool
== :: TargetsProperty -> TargetsProperty -> Bool
$c/= :: TargetsProperty -> TargetsProperty -> Bool
/= :: TargetsProperty -> TargetsProperty -> Bool
Prelude.Eq, Int -> TargetsProperty -> ShowS
[TargetsProperty] -> ShowS
TargetsProperty -> String
(Int -> TargetsProperty -> ShowS)
-> (TargetsProperty -> String)
-> ([TargetsProperty] -> ShowS)
-> Show TargetsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TargetsProperty -> ShowS
showsPrec :: Int -> TargetsProperty -> ShowS
$cshow :: TargetsProperty -> String
show :: TargetsProperty -> String
$cshowList :: [TargetsProperty] -> ShowS
showList :: [TargetsProperty] -> ShowS
Prelude.Show)
mkTargetsProperty ::
Value Prelude.Text -> ValueList Prelude.Text -> TargetsProperty
mkTargetsProperty :: Value Text -> ValueList Text -> TargetsProperty
mkTargetsProperty Value Text
key ValueList Text
values
= TargetsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, values :: ValueList Text
values = ValueList Text
values}
instance ToResourceProperties TargetsProperty where
toResourceProperties :: TargetsProperty -> ResourceProperties
toResourceProperties TargetsProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetsProperty -> ()
key :: TargetsProperty -> Value Text
values :: TargetsProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSM::MaintenanceWindowTarget.Targets",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Key" 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
key, Key
"Values" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
values]}
instance JSON.ToJSON TargetsProperty where
toJSON :: TargetsProperty -> Value
toJSON TargetsProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetsProperty -> ()
key :: TargetsProperty -> Value Text
values :: TargetsProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Values" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
values]
instance Property "Key" TargetsProperty where
type PropertyType "Key" TargetsProperty = Value Prelude.Text
set :: PropertyType "Key" TargetsProperty
-> TargetsProperty -> TargetsProperty
set PropertyType "Key" TargetsProperty
newValue TargetsProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetsProperty -> ()
key :: TargetsProperty -> Value Text
values :: TargetsProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
= TargetsProperty {key :: Value Text
key = PropertyType "Key" TargetsProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
..}
instance Property "Values" TargetsProperty where
type PropertyType "Values" TargetsProperty = ValueList Prelude.Text
set :: PropertyType "Values" TargetsProperty
-> TargetsProperty -> TargetsProperty
set PropertyType "Values" TargetsProperty
newValue TargetsProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetsProperty -> ()
key :: TargetsProperty -> Value Text
values :: TargetsProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
= TargetsProperty {values :: ValueList Text
values = PropertyType "Values" TargetsProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}