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