module Stratosphere.CustomerProfiles.Domain.DomainStatsProperty (
        DomainStatsProperty(..), mkDomainStatsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DomainStatsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-domainstats.html>
    DomainStatsProperty {DomainStatsProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-domainstats.html#cfn-customerprofiles-domain-domainstats-meteringprofilecount>
                         DomainStatsProperty -> Maybe (Value Double)
meteringProfileCount :: (Prelude.Maybe (Value Prelude.Double)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-domainstats.html#cfn-customerprofiles-domain-domainstats-objectcount>
                         DomainStatsProperty -> Maybe (Value Double)
objectCount :: (Prelude.Maybe (Value Prelude.Double)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-domainstats.html#cfn-customerprofiles-domain-domainstats-profilecount>
                         DomainStatsProperty -> Maybe (Value Double)
profileCount :: (Prelude.Maybe (Value Prelude.Double)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-domainstats.html#cfn-customerprofiles-domain-domainstats-totalsize>
                         DomainStatsProperty -> Maybe (Value Double)
totalSize :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (DomainStatsProperty -> DomainStatsProperty -> Bool
(DomainStatsProperty -> DomainStatsProperty -> Bool)
-> (DomainStatsProperty -> DomainStatsProperty -> Bool)
-> Eq DomainStatsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DomainStatsProperty -> DomainStatsProperty -> Bool
== :: DomainStatsProperty -> DomainStatsProperty -> Bool
$c/= :: DomainStatsProperty -> DomainStatsProperty -> Bool
/= :: DomainStatsProperty -> DomainStatsProperty -> Bool
Prelude.Eq, Int -> DomainStatsProperty -> ShowS
[DomainStatsProperty] -> ShowS
DomainStatsProperty -> String
(Int -> DomainStatsProperty -> ShowS)
-> (DomainStatsProperty -> String)
-> ([DomainStatsProperty] -> ShowS)
-> Show DomainStatsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DomainStatsProperty -> ShowS
showsPrec :: Int -> DomainStatsProperty -> ShowS
$cshow :: DomainStatsProperty -> String
show :: DomainStatsProperty -> String
$cshowList :: [DomainStatsProperty] -> ShowS
showList :: [DomainStatsProperty] -> ShowS
Prelude.Show)
mkDomainStatsProperty :: DomainStatsProperty
mkDomainStatsProperty :: DomainStatsProperty
mkDomainStatsProperty
  = DomainStatsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), meteringProfileCount :: Maybe (Value Double)
meteringProfileCount = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       objectCount :: Maybe (Value Double)
objectCount = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, profileCount :: Maybe (Value Double)
profileCount = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       totalSize :: Maybe (Value Double)
totalSize = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DomainStatsProperty where
  toResourceProperties :: DomainStatsProperty -> ResourceProperties
toResourceProperties DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Domain.DomainStats",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MeteringProfileCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
meteringProfileCount,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObjectCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
objectCount,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProfileCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
profileCount,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TotalSize" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
totalSize])}
instance JSON.ToJSON DomainStatsProperty where
  toJSON :: DomainStatsProperty -> Value
toJSON DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MeteringProfileCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
meteringProfileCount,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObjectCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
objectCount,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProfileCount" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
profileCount,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TotalSize" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
totalSize]))
instance Property "MeteringProfileCount" DomainStatsProperty where
  type PropertyType "MeteringProfileCount" DomainStatsProperty = Value Prelude.Double
  set :: PropertyType "MeteringProfileCount" DomainStatsProperty
-> DomainStatsProperty -> DomainStatsProperty
set PropertyType "MeteringProfileCount" DomainStatsProperty
newValue DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = DomainStatsProperty
        {meteringProfileCount :: Maybe (Value Double)
meteringProfileCount = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MeteringProfileCount" DomainStatsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
haddock_workaround_ :: ()
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
instance Property "ObjectCount" DomainStatsProperty where
  type PropertyType "ObjectCount" DomainStatsProperty = Value Prelude.Double
  set :: PropertyType "ObjectCount" DomainStatsProperty
-> DomainStatsProperty -> DomainStatsProperty
set PropertyType "ObjectCount" DomainStatsProperty
newValue DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = DomainStatsProperty {objectCount :: Maybe (Value Double)
objectCount = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObjectCount" DomainStatsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
instance Property "ProfileCount" DomainStatsProperty where
  type PropertyType "ProfileCount" DomainStatsProperty = Value Prelude.Double
  set :: PropertyType "ProfileCount" DomainStatsProperty
-> DomainStatsProperty -> DomainStatsProperty
set PropertyType "ProfileCount" DomainStatsProperty
newValue DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = DomainStatsProperty {profileCount :: Maybe (Value Double)
profileCount = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ProfileCount" DomainStatsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
instance Property "TotalSize" DomainStatsProperty where
  type PropertyType "TotalSize" DomainStatsProperty = Value Prelude.Double
  set :: PropertyType "TotalSize" DomainStatsProperty
-> DomainStatsProperty -> DomainStatsProperty
set PropertyType "TotalSize" DomainStatsProperty
newValue DomainStatsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DomainStatsProperty -> ()
meteringProfileCount :: DomainStatsProperty -> Maybe (Value Double)
objectCount :: DomainStatsProperty -> Maybe (Value Double)
profileCount :: DomainStatsProperty -> Maybe (Value Double)
totalSize :: DomainStatsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
totalSize :: Maybe (Value Double)
..}
    = DomainStatsProperty {totalSize :: Maybe (Value Double)
totalSize = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TotalSize" DomainStatsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
haddock_workaround_ :: ()
meteringProfileCount :: Maybe (Value Double)
objectCount :: Maybe (Value Double)
profileCount :: Maybe (Value Double)
..}