module Stratosphere.SSM.Association.TargetProperty (
        TargetProperty(..), mkTargetProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TargetProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html>
    TargetProperty {TargetProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-key>
                    TargetProperty -> Value Text
key :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-target.html#cfn-ssm-association-target-values>
                    TargetProperty -> ValueList Text
values :: (ValueList Prelude.Text)}
  deriving stock (TargetProperty -> TargetProperty -> Bool
(TargetProperty -> TargetProperty -> Bool)
-> (TargetProperty -> TargetProperty -> Bool) -> Eq TargetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TargetProperty -> TargetProperty -> Bool
== :: TargetProperty -> TargetProperty -> Bool
$c/= :: TargetProperty -> TargetProperty -> Bool
/= :: TargetProperty -> TargetProperty -> Bool
Prelude.Eq, Int -> TargetProperty -> ShowS
[TargetProperty] -> ShowS
TargetProperty -> String
(Int -> TargetProperty -> ShowS)
-> (TargetProperty -> String)
-> ([TargetProperty] -> ShowS)
-> Show TargetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TargetProperty -> ShowS
showsPrec :: Int -> TargetProperty -> ShowS
$cshow :: TargetProperty -> String
show :: TargetProperty -> String
$cshowList :: [TargetProperty] -> ShowS
showList :: [TargetProperty] -> ShowS
Prelude.Show)
mkTargetProperty ::
  Value Prelude.Text -> ValueList Prelude.Text -> TargetProperty
mkTargetProperty :: Value Text -> ValueList Text -> TargetProperty
mkTargetProperty Value Text
key ValueList Text
values
  = TargetProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, values :: ValueList Text
values = ValueList Text
values}
instance ToResourceProperties TargetProperty where
  toResourceProperties :: TargetProperty -> ResourceProperties
toResourceProperties TargetProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetProperty -> ()
key :: TargetProperty -> Value Text
values :: TargetProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSM::Association.Target",
         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 TargetProperty where
  toJSON :: TargetProperty -> Value
toJSON TargetProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetProperty -> ()
key :: TargetProperty -> Value Text
values :: TargetProperty -> 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" TargetProperty where
  type PropertyType "Key" TargetProperty = Value Prelude.Text
  set :: PropertyType "Key" TargetProperty
-> TargetProperty -> TargetProperty
set PropertyType "Key" TargetProperty
newValue TargetProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetProperty -> ()
key :: TargetProperty -> Value Text
values :: TargetProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
    = TargetProperty {key :: Value Text
key = PropertyType "Key" TargetProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
haddock_workaround_ :: ()
values :: ValueList Text
..}
instance Property "Values" TargetProperty where
  type PropertyType "Values" TargetProperty = ValueList Prelude.Text
  set :: PropertyType "Values" TargetProperty
-> TargetProperty -> TargetProperty
set PropertyType "Values" TargetProperty
newValue TargetProperty {()
ValueList Text
Value Text
haddock_workaround_ :: TargetProperty -> ()
key :: TargetProperty -> Value Text
values :: TargetProperty -> ValueList Text
haddock_workaround_ :: ()
key :: Value Text
values :: ValueList Text
..}
    = TargetProperty {values :: ValueList Text
values = PropertyType "Values" TargetProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}