module Stratosphere.IoT.CACertificate.RegistrationConfigProperty (
RegistrationConfigProperty(..), mkRegistrationConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RegistrationConfigProperty
=
RegistrationConfigProperty {RegistrationConfigProperty -> ()
haddock_workaround_ :: (),
RegistrationConfigProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: (Prelude.Maybe (Value Prelude.Text)),
RegistrationConfigProperty -> Maybe (Value Text)
templateName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (RegistrationConfigProperty -> RegistrationConfigProperty -> Bool
(RegistrationConfigProperty -> RegistrationConfigProperty -> Bool)
-> (RegistrationConfigProperty
-> RegistrationConfigProperty -> Bool)
-> Eq RegistrationConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RegistrationConfigProperty -> RegistrationConfigProperty -> Bool
== :: RegistrationConfigProperty -> RegistrationConfigProperty -> Bool
$c/= :: RegistrationConfigProperty -> RegistrationConfigProperty -> Bool
/= :: RegistrationConfigProperty -> RegistrationConfigProperty -> Bool
Prelude.Eq, Int -> RegistrationConfigProperty -> ShowS
[RegistrationConfigProperty] -> ShowS
RegistrationConfigProperty -> String
(Int -> RegistrationConfigProperty -> ShowS)
-> (RegistrationConfigProperty -> String)
-> ([RegistrationConfigProperty] -> ShowS)
-> Show RegistrationConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RegistrationConfigProperty -> ShowS
showsPrec :: Int -> RegistrationConfigProperty -> ShowS
$cshow :: RegistrationConfigProperty -> String
show :: RegistrationConfigProperty -> String
$cshowList :: [RegistrationConfigProperty] -> ShowS
showList :: [RegistrationConfigProperty] -> ShowS
Prelude.Show)
mkRegistrationConfigProperty :: RegistrationConfigProperty
mkRegistrationConfigProperty :: RegistrationConfigProperty
mkRegistrationConfigProperty
= RegistrationConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
templateBody :: Maybe (Value Text)
templateBody = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, templateName :: Maybe (Value Text)
templateName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RegistrationConfigProperty where
toResourceProperties :: RegistrationConfigProperty -> ResourceProperties
toResourceProperties RegistrationConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistrationConfigProperty -> ()
roleArn :: RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: RegistrationConfigProperty -> Maybe (Value Text)
templateName :: RegistrationConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoT::CACertificate.RegistrationConfig",
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
"RoleArn" (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)
roleArn,
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
"TemplateBody" (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)
templateBody,
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
"TemplateName" (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)
templateName])}
instance JSON.ToJSON RegistrationConfigProperty where
toJSON :: RegistrationConfigProperty -> Value
toJSON RegistrationConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistrationConfigProperty -> ()
roleArn :: RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: RegistrationConfigProperty -> Maybe (Value Text)
templateName :: RegistrationConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
templateName :: 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
"RoleArn" (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)
roleArn,
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
"TemplateBody" (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)
templateBody,
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
"TemplateName" (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)
templateName]))
instance Property "RoleArn" RegistrationConfigProperty where
type PropertyType "RoleArn" RegistrationConfigProperty = Value Prelude.Text
set :: PropertyType "RoleArn" RegistrationConfigProperty
-> RegistrationConfigProperty -> RegistrationConfigProperty
set PropertyType "RoleArn" RegistrationConfigProperty
newValue RegistrationConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistrationConfigProperty -> ()
roleArn :: RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: RegistrationConfigProperty -> Maybe (Value Text)
templateName :: RegistrationConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
= RegistrationConfigProperty {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" RegistrationConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
haddock_workaround_ :: ()
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
instance Property "TemplateBody" RegistrationConfigProperty where
type PropertyType "TemplateBody" RegistrationConfigProperty = Value Prelude.Text
set :: PropertyType "TemplateBody" RegistrationConfigProperty
-> RegistrationConfigProperty -> RegistrationConfigProperty
set PropertyType "TemplateBody" RegistrationConfigProperty
newValue RegistrationConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistrationConfigProperty -> ()
roleArn :: RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: RegistrationConfigProperty -> Maybe (Value Text)
templateName :: RegistrationConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
= RegistrationConfigProperty
{templateBody :: Maybe (Value Text)
templateBody = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateBody" RegistrationConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateName :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
instance Property "TemplateName" RegistrationConfigProperty where
type PropertyType "TemplateName" RegistrationConfigProperty = Value Prelude.Text
set :: PropertyType "TemplateName" RegistrationConfigProperty
-> RegistrationConfigProperty -> RegistrationConfigProperty
set PropertyType "TemplateName" RegistrationConfigProperty
newValue RegistrationConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: RegistrationConfigProperty -> ()
roleArn :: RegistrationConfigProperty -> Maybe (Value Text)
templateBody :: RegistrationConfigProperty -> Maybe (Value Text)
templateName :: RegistrationConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
templateName :: Maybe (Value Text)
..}
= RegistrationConfigProperty
{templateName :: Maybe (Value Text)
templateName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateName" RegistrationConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
haddock_workaround_ :: ()
roleArn :: Maybe (Value Text)
templateBody :: Maybe (Value Text)
..}