module Stratosphere.Events.Connection.ResourceParametersProperty (
        ResourceParametersProperty(..), mkResourceParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-resourceparameters.html>
    ResourceParametersProperty {ResourceParametersProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-resourceparameters.html#cfn-events-connection-resourceparameters-resourceassociationarn>
                                ResourceParametersProperty -> Maybe (Value Text)
resourceAssociationArn :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-connection-resourceparameters.html#cfn-events-connection-resourceparameters-resourceconfigurationarn>
                                ResourceParametersProperty -> Value Text
resourceConfigurationArn :: (Value Prelude.Text)}
  deriving stock (ResourceParametersProperty -> ResourceParametersProperty -> Bool
(ResourceParametersProperty -> ResourceParametersProperty -> Bool)
-> (ResourceParametersProperty
    -> ResourceParametersProperty -> Bool)
-> Eq ResourceParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceParametersProperty -> ResourceParametersProperty -> Bool
== :: ResourceParametersProperty -> ResourceParametersProperty -> Bool
$c/= :: ResourceParametersProperty -> ResourceParametersProperty -> Bool
/= :: ResourceParametersProperty -> ResourceParametersProperty -> Bool
Prelude.Eq, Int -> ResourceParametersProperty -> ShowS
[ResourceParametersProperty] -> ShowS
ResourceParametersProperty -> String
(Int -> ResourceParametersProperty -> ShowS)
-> (ResourceParametersProperty -> String)
-> ([ResourceParametersProperty] -> ShowS)
-> Show ResourceParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceParametersProperty -> ShowS
showsPrec :: Int -> ResourceParametersProperty -> ShowS
$cshow :: ResourceParametersProperty -> String
show :: ResourceParametersProperty -> String
$cshowList :: [ResourceParametersProperty] -> ShowS
showList :: [ResourceParametersProperty] -> ShowS
Prelude.Show)
mkResourceParametersProperty ::
  Value Prelude.Text -> ResourceParametersProperty
mkResourceParametersProperty :: Value Text -> ResourceParametersProperty
mkResourceParametersProperty Value Text
resourceConfigurationArn
  = ResourceParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       resourceConfigurationArn :: Value Text
resourceConfigurationArn = Value Text
resourceConfigurationArn,
       resourceAssociationArn :: Maybe (Value Text)
resourceAssociationArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResourceParametersProperty where
  toResourceProperties :: ResourceParametersProperty -> ResourceProperties
toResourceProperties ResourceParametersProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceParametersProperty -> ()
resourceAssociationArn :: ResourceParametersProperty -> Maybe (Value Text)
resourceConfigurationArn :: ResourceParametersProperty -> Value Text
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
resourceConfigurationArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Events::Connection.ResourceParameters",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ResourceConfigurationArn" 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
resourceConfigurationArn]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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..=) Key
"ResourceAssociationArn"
                                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceAssociationArn]))}
instance JSON.ToJSON ResourceParametersProperty where
  toJSON :: ResourceParametersProperty -> Value
toJSON ResourceParametersProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceParametersProperty -> ()
resourceAssociationArn :: ResourceParametersProperty -> Maybe (Value Text)
resourceConfigurationArn :: ResourceParametersProperty -> Value Text
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
resourceConfigurationArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ResourceConfigurationArn" 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
resourceConfigurationArn]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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..=) Key
"ResourceAssociationArn"
                    (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resourceAssociationArn])))
instance Property "ResourceAssociationArn" ResourceParametersProperty where
  type PropertyType "ResourceAssociationArn" ResourceParametersProperty = Value Prelude.Text
  set :: PropertyType "ResourceAssociationArn" ResourceParametersProperty
-> ResourceParametersProperty -> ResourceParametersProperty
set PropertyType "ResourceAssociationArn" ResourceParametersProperty
newValue ResourceParametersProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceParametersProperty -> ()
resourceAssociationArn :: ResourceParametersProperty -> Maybe (Value Text)
resourceConfigurationArn :: ResourceParametersProperty -> Value Text
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
resourceConfigurationArn :: Value Text
..}
    = ResourceParametersProperty
        {resourceAssociationArn :: Maybe (Value Text)
resourceAssociationArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceAssociationArn" ResourceParametersProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
resourceConfigurationArn :: Value Text
haddock_workaround_ :: ()
resourceConfigurationArn :: Value Text
..}
instance Property "ResourceConfigurationArn" ResourceParametersProperty where
  type PropertyType "ResourceConfigurationArn" ResourceParametersProperty = Value Prelude.Text
  set :: PropertyType "ResourceConfigurationArn" ResourceParametersProperty
-> ResourceParametersProperty -> ResourceParametersProperty
set PropertyType "ResourceConfigurationArn" ResourceParametersProperty
newValue ResourceParametersProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ResourceParametersProperty -> ()
resourceAssociationArn :: ResourceParametersProperty -> Maybe (Value Text)
resourceConfigurationArn :: ResourceParametersProperty -> Value Text
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
resourceConfigurationArn :: Value Text
..}
    = ResourceParametersProperty
        {resourceConfigurationArn :: Value Text
resourceConfigurationArn = PropertyType "ResourceConfigurationArn" ResourceParametersProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
haddock_workaround_ :: ()
resourceAssociationArn :: Maybe (Value Text)
..}