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: ResourceTagProperty {haddock_workaround_ :: (), -- | See: resourceTagKey :: (Value Prelude.Text), -- | See: resourceTagValue :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkResourceTagProperty :: Value Prelude.Text -> Value Prelude.Text -> ResourceTagProperty mkResourceTagProperty resourceTagKey resourceTagValue = ResourceTagProperty {haddock_workaround_ = (), resourceTagKey = resourceTagKey, resourceTagValue = resourceTagValue} instance ToResourceProperties ResourceTagProperty where toResourceProperties ResourceTagProperty {..} = ResourceProperties {awsType = "AWS::Rbin::Rule.ResourceTag", supportsTags = Prelude.False, properties = ["ResourceTagKey" JSON..= resourceTagKey, "ResourceTagValue" JSON..= resourceTagValue]} instance JSON.ToJSON ResourceTagProperty where toJSON ResourceTagProperty {..} = JSON.object ["ResourceTagKey" JSON..= resourceTagKey, "ResourceTagValue" JSON..= resourceTagValue] instance Property "ResourceTagKey" ResourceTagProperty where type PropertyType "ResourceTagKey" ResourceTagProperty = Value Prelude.Text set newValue ResourceTagProperty {..} = ResourceTagProperty {resourceTagKey = newValue, ..} instance Property "ResourceTagValue" ResourceTagProperty where type PropertyType "ResourceTagValue" ResourceTagProperty = Value Prelude.Text set newValue ResourceTagProperty {..} = ResourceTagProperty {resourceTagValue = newValue, ..}