module Stratosphere.RDS.DBInstance.DBInstanceStatusInfoProperty (
        DBInstanceStatusInfoProperty(..), mkDBInstanceStatusInfoProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DBInstanceStatusInfoProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html>
    DBInstanceStatusInfoProperty {DBInstanceStatusInfoProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-message>
                                  DBInstanceStatusInfoProperty -> Maybe (Value Text)
message :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-normal>
                                  DBInstanceStatusInfoProperty -> Maybe (Value Bool)
normal :: (Prelude.Maybe (Value Prelude.Bool)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-status>
                                  DBInstanceStatusInfoProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-statustype>
                                  DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> Bool
(DBInstanceStatusInfoProperty
 -> DBInstanceStatusInfoProperty -> Bool)
-> (DBInstanceStatusInfoProperty
    -> DBInstanceStatusInfoProperty -> Bool)
-> Eq DBInstanceStatusInfoProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> Bool
== :: DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> Bool
$c/= :: DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> Bool
/= :: DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> Bool
Prelude.Eq, Int -> DBInstanceStatusInfoProperty -> ShowS
[DBInstanceStatusInfoProperty] -> ShowS
DBInstanceStatusInfoProperty -> String
(Int -> DBInstanceStatusInfoProperty -> ShowS)
-> (DBInstanceStatusInfoProperty -> String)
-> ([DBInstanceStatusInfoProperty] -> ShowS)
-> Show DBInstanceStatusInfoProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DBInstanceStatusInfoProperty -> ShowS
showsPrec :: Int -> DBInstanceStatusInfoProperty -> ShowS
$cshow :: DBInstanceStatusInfoProperty -> String
show :: DBInstanceStatusInfoProperty -> String
$cshowList :: [DBInstanceStatusInfoProperty] -> ShowS
showList :: [DBInstanceStatusInfoProperty] -> ShowS
Prelude.Show)
mkDBInstanceStatusInfoProperty :: DBInstanceStatusInfoProperty
mkDBInstanceStatusInfoProperty :: DBInstanceStatusInfoProperty
mkDBInstanceStatusInfoProperty
  = DBInstanceStatusInfoProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), message :: Maybe (Value Text)
message = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       normal :: Maybe (Value Bool)
normal = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       statusType :: Maybe (Value Text)
statusType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DBInstanceStatusInfoProperty where
  toResourceProperties :: DBInstanceStatusInfoProperty -> ResourceProperties
toResourceProperties DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RDS::DBInstance.DBInstanceStatusInfo",
         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 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
"Message" (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)
message,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Normal" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
normal,
                            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
"Status" (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)
status,
                            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
"StatusType" (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)
statusType])}
instance JSON.ToJSON DBInstanceStatusInfoProperty where
  toJSON :: DBInstanceStatusInfoProperty -> Value
toJSON DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = [(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 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
"Message" (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)
message,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Normal" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
normal,
               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
"Status" (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)
status,
               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
"StatusType" (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)
statusType]))
instance Property "Message" DBInstanceStatusInfoProperty where
  type PropertyType "Message" DBInstanceStatusInfoProperty = Value Prelude.Text
  set :: PropertyType "Message" DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> DBInstanceStatusInfoProperty
set PropertyType "Message" DBInstanceStatusInfoProperty
newValue DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = DBInstanceStatusInfoProperty
        {message :: Maybe (Value Text)
message = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Message" DBInstanceStatusInfoProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
haddock_workaround_ :: ()
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
instance Property "Normal" DBInstanceStatusInfoProperty where
  type PropertyType "Normal" DBInstanceStatusInfoProperty = Value Prelude.Bool
  set :: PropertyType "Normal" DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> DBInstanceStatusInfoProperty
set PropertyType "Normal" DBInstanceStatusInfoProperty
newValue DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = DBInstanceStatusInfoProperty {normal :: Maybe (Value Bool)
normal = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Normal" DBInstanceStatusInfoProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
message :: Maybe (Value Text)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
instance Property "Status" DBInstanceStatusInfoProperty where
  type PropertyType "Status" DBInstanceStatusInfoProperty = Value Prelude.Text
  set :: PropertyType "Status" DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> DBInstanceStatusInfoProperty
set PropertyType "Status" DBInstanceStatusInfoProperty
newValue DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = DBInstanceStatusInfoProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" DBInstanceStatusInfoProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
statusType :: Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
statusType :: Maybe (Value Text)
..}
instance Property "StatusType" DBInstanceStatusInfoProperty where
  type PropertyType "StatusType" DBInstanceStatusInfoProperty = Value Prelude.Text
  set :: PropertyType "StatusType" DBInstanceStatusInfoProperty
-> DBInstanceStatusInfoProperty -> DBInstanceStatusInfoProperty
set PropertyType "StatusType" DBInstanceStatusInfoProperty
newValue DBInstanceStatusInfoProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DBInstanceStatusInfoProperty -> ()
message :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
normal :: DBInstanceStatusInfoProperty -> Maybe (Value Bool)
status :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
statusType :: DBInstanceStatusInfoProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
statusType :: Maybe (Value Text)
..}
    = DBInstanceStatusInfoProperty
        {statusType :: Maybe (Value Text)
statusType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatusType" DBInstanceStatusInfoProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
message :: Maybe (Value Text)
normal :: Maybe (Value Bool)
status :: Maybe (Value Text)
..}