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: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-reference.html>
    ReferenceProperty {ReferenceProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-reference.html#cfn-connect-rule-reference-type>
                       ReferenceProperty -> Value Text
type' :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-reference.html#cfn-connect-rule-reference-value>
                       ReferenceProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (ReferenceProperty -> ReferenceProperty -> Bool
(ReferenceProperty -> ReferenceProperty -> Bool)
-> (ReferenceProperty -> ReferenceProperty -> Bool)
-> Eq ReferenceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ReferenceProperty -> ReferenceProperty -> Bool
== :: ReferenceProperty -> ReferenceProperty -> Bool
$c/= :: ReferenceProperty -> ReferenceProperty -> Bool
/= :: ReferenceProperty -> ReferenceProperty -> Bool
Prelude.Eq, Int -> ReferenceProperty -> ShowS
[ReferenceProperty] -> ShowS
ReferenceProperty -> String
(Int -> ReferenceProperty -> ShowS)
-> (ReferenceProperty -> String)
-> ([ReferenceProperty] -> ShowS)
-> Show ReferenceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ReferenceProperty -> ShowS
showsPrec :: Int -> ReferenceProperty -> ShowS
$cshow :: ReferenceProperty -> String
show :: ReferenceProperty -> String
$cshowList :: [ReferenceProperty] -> ShowS
showList :: [ReferenceProperty] -> ShowS
Prelude.Show)
mkReferenceProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ReferenceProperty
mkReferenceProperty :: Value Text -> Value Text -> ReferenceProperty
mkReferenceProperty Value Text
type' Value Text
value
  = ReferenceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Text
value = Value Text
value}
instance ToResourceProperties ReferenceProperty where
  toResourceProperties :: ReferenceProperty -> ResourceProperties
toResourceProperties ReferenceProperty {()
Value Text
haddock_workaround_ :: ReferenceProperty -> ()
type' :: ReferenceProperty -> Value Text
value :: ReferenceProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::Rule.Reference",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" 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
type', 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 ReferenceProperty where
  toJSON :: ReferenceProperty -> Value
toJSON ReferenceProperty {()
Value Text
haddock_workaround_ :: ReferenceProperty -> ()
type' :: ReferenceProperty -> Value Text
value :: ReferenceProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', 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 "Type" ReferenceProperty where
  type PropertyType "Type" ReferenceProperty = Value Prelude.Text
  set :: PropertyType "Type" ReferenceProperty
-> ReferenceProperty -> ReferenceProperty
set PropertyType "Type" ReferenceProperty
newValue ReferenceProperty {()
Value Text
haddock_workaround_ :: ReferenceProperty -> ()
type' :: ReferenceProperty -> Value Text
value :: ReferenceProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = ReferenceProperty {type' :: Value Text
type' = PropertyType "Type" ReferenceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" ReferenceProperty where
  type PropertyType "Value" ReferenceProperty = Value Prelude.Text
  set :: PropertyType "Value" ReferenceProperty
-> ReferenceProperty -> ReferenceProperty
set PropertyType "Value" ReferenceProperty
newValue ReferenceProperty {()
Value Text
haddock_workaround_ :: ReferenceProperty -> ()
type' :: ReferenceProperty -> Value Text
value :: ReferenceProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = ReferenceProperty {value :: Value Text
value = PropertyType "Value" ReferenceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}