module Stratosphere.IoT.DomainConfiguration.ServerCertificateSummaryProperty (
        ServerCertificateSummaryProperty(..),
        mkServerCertificateSummaryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServerCertificateSummaryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-servercertificatesummary.html>
    ServerCertificateSummaryProperty {ServerCertificateSummaryProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-servercertificatesummary.html#cfn-iot-domainconfiguration-servercertificatesummary-servercertificatearn>
                                      ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateArn :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-servercertificatesummary.html#cfn-iot-domainconfiguration-servercertificatesummary-servercertificatestatus>
                                      ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-domainconfiguration-servercertificatesummary.html#cfn-iot-domainconfiguration-servercertificatesummary-servercertificatestatusdetail>
                                      ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty -> Bool
(ServerCertificateSummaryProperty
 -> ServerCertificateSummaryProperty -> Bool)
-> (ServerCertificateSummaryProperty
    -> ServerCertificateSummaryProperty -> Bool)
-> Eq ServerCertificateSummaryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty -> Bool
== :: ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty -> Bool
$c/= :: ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty -> Bool
/= :: ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty -> Bool
Prelude.Eq, Int -> ServerCertificateSummaryProperty -> ShowS
[ServerCertificateSummaryProperty] -> ShowS
ServerCertificateSummaryProperty -> String
(Int -> ServerCertificateSummaryProperty -> ShowS)
-> (ServerCertificateSummaryProperty -> String)
-> ([ServerCertificateSummaryProperty] -> ShowS)
-> Show ServerCertificateSummaryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServerCertificateSummaryProperty -> ShowS
showsPrec :: Int -> ServerCertificateSummaryProperty -> ShowS
$cshow :: ServerCertificateSummaryProperty -> String
show :: ServerCertificateSummaryProperty -> String
$cshowList :: [ServerCertificateSummaryProperty] -> ShowS
showList :: [ServerCertificateSummaryProperty] -> ShowS
Prelude.Show)
mkServerCertificateSummaryProperty ::
  ServerCertificateSummaryProperty
mkServerCertificateSummaryProperty :: ServerCertificateSummaryProperty
mkServerCertificateSummaryProperty
  = ServerCertificateSummaryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), serverCertificateArn :: Maybe (Value Text)
serverCertificateArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatus = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       serverCertificateStatusDetail :: Maybe (Value Text)
serverCertificateStatusDetail = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServerCertificateSummaryProperty where
  toResourceProperties :: ServerCertificateSummaryProperty -> ResourceProperties
toResourceProperties ServerCertificateSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateSummaryProperty -> ()
serverCertificateArn :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: ServerCertificateSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::DomainConfiguration.ServerCertificateSummary",
         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
"ServerCertificateArn" (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)
serverCertificateArn,
                            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
"ServerCertificateStatus"
                              (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)
serverCertificateStatus,
                            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
"ServerCertificateStatusDetail"
                              (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)
serverCertificateStatusDetail])}
instance JSON.ToJSON ServerCertificateSummaryProperty where
  toJSON :: ServerCertificateSummaryProperty -> Value
toJSON ServerCertificateSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateSummaryProperty -> ()
serverCertificateArn :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: ServerCertificateSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: 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
"ServerCertificateArn" (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)
serverCertificateArn,
               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
"ServerCertificateStatus"
                 (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)
serverCertificateStatus,
               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
"ServerCertificateStatusDetail"
                 (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)
serverCertificateStatusDetail]))
instance Property "ServerCertificateArn" ServerCertificateSummaryProperty where
  type PropertyType "ServerCertificateArn" ServerCertificateSummaryProperty = Value Prelude.Text
  set :: PropertyType
  "ServerCertificateArn" ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
set PropertyType
  "ServerCertificateArn" ServerCertificateSummaryProperty
newValue ServerCertificateSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateSummaryProperty -> ()
serverCertificateArn :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: ServerCertificateSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
    = ServerCertificateSummaryProperty
        {serverCertificateArn :: Maybe (Value Text)
serverCertificateArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ServerCertificateArn" ServerCertificateSummaryProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
instance Property "ServerCertificateStatus" ServerCertificateSummaryProperty where
  type PropertyType "ServerCertificateStatus" ServerCertificateSummaryProperty = Value Prelude.Text
  set :: PropertyType
  "ServerCertificateStatus" ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
set PropertyType
  "ServerCertificateStatus" ServerCertificateSummaryProperty
newValue ServerCertificateSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateSummaryProperty -> ()
serverCertificateArn :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: ServerCertificateSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
    = ServerCertificateSummaryProperty
        {serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatus = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ServerCertificateStatus" ServerCertificateSummaryProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
instance Property "ServerCertificateStatusDetail" ServerCertificateSummaryProperty where
  type PropertyType "ServerCertificateStatusDetail" ServerCertificateSummaryProperty = Value Prelude.Text
  set :: PropertyType
  "ServerCertificateStatusDetail" ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
-> ServerCertificateSummaryProperty
set PropertyType
  "ServerCertificateStatusDetail" ServerCertificateSummaryProperty
newValue ServerCertificateSummaryProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServerCertificateSummaryProperty -> ()
serverCertificateArn :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatus :: ServerCertificateSummaryProperty -> Maybe (Value Text)
serverCertificateStatusDetail :: ServerCertificateSummaryProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
serverCertificateStatusDetail :: Maybe (Value Text)
..}
    = ServerCertificateSummaryProperty
        {serverCertificateStatusDetail :: Maybe (Value Text)
serverCertificateStatusDetail = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ServerCertificateStatusDetail" ServerCertificateSummaryProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
haddock_workaround_ :: ()
serverCertificateArn :: Maybe (Value Text)
serverCertificateStatus :: Maybe (Value Text)
..}