module Stratosphere.IoTSiteWise.Gateway.GatewayCapabilitySummaryProperty (
        GatewayCapabilitySummaryProperty(..),
        mkGatewayCapabilitySummaryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GatewayCapabilitySummaryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html>
    GatewayCapabilitySummaryProperty {GatewayCapabilitySummaryProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html#cfn-iotsitewise-gateway-gatewaycapabilitysummary-capabilityconfiguration>
                                      GatewayCapabilitySummaryProperty -> Maybe (Value Text)
capabilityConfiguration :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-gateway-gatewaycapabilitysummary.html#cfn-iotsitewise-gateway-gatewaycapabilitysummary-capabilitynamespace>
                                      GatewayCapabilitySummaryProperty -> Value Text
capabilityNamespace :: (Value Prelude.Text)}
  deriving stock (GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty -> Bool
(GatewayCapabilitySummaryProperty
 -> GatewayCapabilitySummaryProperty -> Bool)
-> (GatewayCapabilitySummaryProperty
    -> GatewayCapabilitySummaryProperty -> Bool)
-> Eq GatewayCapabilitySummaryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty -> Bool
== :: GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty -> Bool
$c/= :: GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty -> Bool
/= :: GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty -> Bool
Prelude.Eq, Int -> GatewayCapabilitySummaryProperty -> ShowS
[GatewayCapabilitySummaryProperty] -> ShowS
GatewayCapabilitySummaryProperty -> String
(Int -> GatewayCapabilitySummaryProperty -> ShowS)
-> (GatewayCapabilitySummaryProperty -> String)
-> ([GatewayCapabilitySummaryProperty] -> ShowS)
-> Show GatewayCapabilitySummaryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GatewayCapabilitySummaryProperty -> ShowS
showsPrec :: Int -> GatewayCapabilitySummaryProperty -> ShowS
$cshow :: GatewayCapabilitySummaryProperty -> String
show :: GatewayCapabilitySummaryProperty -> String
$cshowList :: [GatewayCapabilitySummaryProperty] -> ShowS
showList :: [GatewayCapabilitySummaryProperty] -> ShowS
Prelude.Show)
mkGatewayCapabilitySummaryProperty ::
  Value Prelude.Text -> GatewayCapabilitySummaryProperty
mkGatewayCapabilitySummaryProperty :: Value Text -> GatewayCapabilitySummaryProperty
mkGatewayCapabilitySummaryProperty Value Text
capabilityNamespace
  = GatewayCapabilitySummaryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       capabilityNamespace :: Value Text
capabilityNamespace = Value Text
capabilityNamespace,
       capabilityConfiguration :: Maybe (Value Text)
capabilityConfiguration = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GatewayCapabilitySummaryProperty where
  toResourceProperties :: GatewayCapabilitySummaryProperty -> ResourceProperties
toResourceProperties GatewayCapabilitySummaryProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GatewayCapabilitySummaryProperty -> ()
capabilityConfiguration :: GatewayCapabilitySummaryProperty -> Maybe (Value Text)
capabilityNamespace :: GatewayCapabilitySummaryProperty -> Value Text
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
capabilityNamespace :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTSiteWise::Gateway.GatewayCapabilitySummary",
         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
"CapabilityNamespace" 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
capabilityNamespace]
                           ([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
"CapabilityConfiguration"
                                 (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)
capabilityConfiguration]))}
instance JSON.ToJSON GatewayCapabilitySummaryProperty where
  toJSON :: GatewayCapabilitySummaryProperty -> Value
toJSON GatewayCapabilitySummaryProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GatewayCapabilitySummaryProperty -> ()
capabilityConfiguration :: GatewayCapabilitySummaryProperty -> Maybe (Value Text)
capabilityNamespace :: GatewayCapabilitySummaryProperty -> Value Text
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
capabilityNamespace :: 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
"CapabilityNamespace" 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
capabilityNamespace]
              ([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
"CapabilityConfiguration"
                    (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)
capabilityConfiguration])))
instance Property "CapabilityConfiguration" GatewayCapabilitySummaryProperty where
  type PropertyType "CapabilityConfiguration" GatewayCapabilitySummaryProperty = Value Prelude.Text
  set :: PropertyType
  "CapabilityConfiguration" GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty
set PropertyType
  "CapabilityConfiguration" GatewayCapabilitySummaryProperty
newValue GatewayCapabilitySummaryProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GatewayCapabilitySummaryProperty -> ()
capabilityConfiguration :: GatewayCapabilitySummaryProperty -> Maybe (Value Text)
capabilityNamespace :: GatewayCapabilitySummaryProperty -> Value Text
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
capabilityNamespace :: Value Text
..}
    = GatewayCapabilitySummaryProperty
        {capabilityConfiguration :: Maybe (Value Text)
capabilityConfiguration = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CapabilityConfiguration" GatewayCapabilitySummaryProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
capabilityNamespace :: Value Text
haddock_workaround_ :: ()
capabilityNamespace :: Value Text
..}
instance Property "CapabilityNamespace" GatewayCapabilitySummaryProperty where
  type PropertyType "CapabilityNamespace" GatewayCapabilitySummaryProperty = Value Prelude.Text
  set :: PropertyType "CapabilityNamespace" GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty
-> GatewayCapabilitySummaryProperty
set PropertyType "CapabilityNamespace" GatewayCapabilitySummaryProperty
newValue GatewayCapabilitySummaryProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GatewayCapabilitySummaryProperty -> ()
capabilityConfiguration :: GatewayCapabilitySummaryProperty -> Maybe (Value Text)
capabilityNamespace :: GatewayCapabilitySummaryProperty -> Value Text
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
capabilityNamespace :: Value Text
..}
    = GatewayCapabilitySummaryProperty
        {capabilityNamespace :: Value Text
capabilityNamespace = PropertyType "CapabilityNamespace" GatewayCapabilitySummaryProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
haddock_workaround_ :: ()
capabilityConfiguration :: Maybe (Value Text)
..}