module Stratosphere.Rbin.Rule.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-rbin-rule-resourcetag.html>
    ResourceTagProperty {ResourceTagProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagkey>
                         ResourceTagProperty -> Value Text
resourceTagKey :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagvalue>
                         ResourceTagProperty -> Value Text
resourceTagValue :: (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
resourceTagKey Value Text
resourceTagValue
  = ResourceTagProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), resourceTagKey :: Value Text
resourceTagKey = Value Text
resourceTagKey,
       resourceTagValue :: Value Text
resourceTagValue = Value Text
resourceTagValue}
instance ToResourceProperties ResourceTagProperty where
  toResourceProperties :: ResourceTagProperty -> ResourceProperties
toResourceProperties ResourceTagProperty {()
Value Text
haddock_workaround_ :: ResourceTagProperty -> ()
resourceTagKey :: ResourceTagProperty -> Value Text
resourceTagValue :: ResourceTagProperty -> Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
resourceTagValue :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Rbin::Rule.ResourceTag",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ResourceTagKey" 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
resourceTagKey,
                       Key
"ResourceTagValue" 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
resourceTagValue]}
instance JSON.ToJSON ResourceTagProperty where
  toJSON :: ResourceTagProperty -> Value
toJSON ResourceTagProperty {()
Value Text
haddock_workaround_ :: ResourceTagProperty -> ()
resourceTagKey :: ResourceTagProperty -> Value Text
resourceTagValue :: ResourceTagProperty -> Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
resourceTagValue :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ResourceTagKey" 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
resourceTagKey,
         Key
"ResourceTagValue" 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
resourceTagValue]
instance Property "ResourceTagKey" ResourceTagProperty where
  type PropertyType "ResourceTagKey" ResourceTagProperty = Value Prelude.Text
  set :: PropertyType "ResourceTagKey" ResourceTagProperty
-> ResourceTagProperty -> ResourceTagProperty
set PropertyType "ResourceTagKey" ResourceTagProperty
newValue ResourceTagProperty {()
Value Text
haddock_workaround_ :: ResourceTagProperty -> ()
resourceTagKey :: ResourceTagProperty -> Value Text
resourceTagValue :: ResourceTagProperty -> Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
resourceTagValue :: Value Text
..}
    = ResourceTagProperty {resourceTagKey :: Value Text
resourceTagKey = PropertyType "ResourceTagKey" ResourceTagProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
resourceTagValue :: Value Text
haddock_workaround_ :: ()
resourceTagValue :: Value Text
..}
instance Property "ResourceTagValue" ResourceTagProperty where
  type PropertyType "ResourceTagValue" ResourceTagProperty = Value Prelude.Text
  set :: PropertyType "ResourceTagValue" ResourceTagProperty
-> ResourceTagProperty -> ResourceTagProperty
set PropertyType "ResourceTagValue" ResourceTagProperty
newValue ResourceTagProperty {()
Value Text
haddock_workaround_ :: ResourceTagProperty -> ()
resourceTagKey :: ResourceTagProperty -> Value Text
resourceTagValue :: ResourceTagProperty -> Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
resourceTagValue :: Value Text
..}
    = ResourceTagProperty {resourceTagValue :: Value Text
resourceTagValue = PropertyType "ResourceTagValue" ResourceTagProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
haddock_workaround_ :: ()
resourceTagKey :: Value Text
..}