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