module Stratosphere.Connect.Rule.ReferenceProperty ( ReferenceProperty(..), mkReferenceProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ReferenceProperty = -- | See: ReferenceProperty {haddock_workaround_ :: (), -- | See: type' :: (Value Prelude.Text), -- | See: value :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkReferenceProperty :: Value Prelude.Text -> Value Prelude.Text -> ReferenceProperty mkReferenceProperty type' value = ReferenceProperty {haddock_workaround_ = (), type' = type', value = value} instance ToResourceProperties ReferenceProperty where toResourceProperties ReferenceProperty {..} = ResourceProperties {awsType = "AWS::Connect::Rule.Reference", supportsTags = Prelude.False, properties = ["Type" JSON..= type', "Value" JSON..= value]} instance JSON.ToJSON ReferenceProperty where toJSON ReferenceProperty {..} = JSON.object ["Type" JSON..= type', "Value" JSON..= value] instance Property "Type" ReferenceProperty where type PropertyType "Type" ReferenceProperty = Value Prelude.Text set newValue ReferenceProperty {..} = ReferenceProperty {type' = newValue, ..} instance Property "Value" ReferenceProperty where type PropertyType "Value" ReferenceProperty = Value Prelude.Text set newValue ReferenceProperty {..} = ReferenceProperty {value = newValue, ..}