module Stratosphere.PCAConnectorAD.Template.ExtensionsV4Property (
module Exports, ExtensionsV4Property(..), mkExtensionsV4Property
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.PCAConnectorAD.Template.ApplicationPoliciesProperty as Exports
import {-# SOURCE #-} Stratosphere.PCAConnectorAD.Template.KeyUsageProperty as Exports
import Stratosphere.ResourceProperties
data ExtensionsV4Property
=
ExtensionsV4Property {ExtensionsV4Property -> ()
haddock_workaround_ :: (),
ExtensionsV4Property -> Maybe ApplicationPoliciesProperty
applicationPolicies :: (Prelude.Maybe ApplicationPoliciesProperty),
ExtensionsV4Property -> KeyUsageProperty
keyUsage :: KeyUsageProperty}
deriving stock (ExtensionsV4Property -> ExtensionsV4Property -> Bool
(ExtensionsV4Property -> ExtensionsV4Property -> Bool)
-> (ExtensionsV4Property -> ExtensionsV4Property -> Bool)
-> Eq ExtensionsV4Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExtensionsV4Property -> ExtensionsV4Property -> Bool
== :: ExtensionsV4Property -> ExtensionsV4Property -> Bool
$c/= :: ExtensionsV4Property -> ExtensionsV4Property -> Bool
/= :: ExtensionsV4Property -> ExtensionsV4Property -> Bool
Prelude.Eq, Int -> ExtensionsV4Property -> ShowS
[ExtensionsV4Property] -> ShowS
ExtensionsV4Property -> String
(Int -> ExtensionsV4Property -> ShowS)
-> (ExtensionsV4Property -> String)
-> ([ExtensionsV4Property] -> ShowS)
-> Show ExtensionsV4Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExtensionsV4Property -> ShowS
showsPrec :: Int -> ExtensionsV4Property -> ShowS
$cshow :: ExtensionsV4Property -> String
show :: ExtensionsV4Property -> String
$cshowList :: [ExtensionsV4Property] -> ShowS
showList :: [ExtensionsV4Property] -> ShowS
Prelude.Show)
mkExtensionsV4Property :: KeyUsageProperty -> ExtensionsV4Property
mkExtensionsV4Property :: KeyUsageProperty -> ExtensionsV4Property
mkExtensionsV4Property KeyUsageProperty
keyUsage
= ExtensionsV4Property
{haddock_workaround_ :: ()
haddock_workaround_ = (), keyUsage :: KeyUsageProperty
keyUsage = KeyUsageProperty
keyUsage,
applicationPolicies :: Maybe ApplicationPoliciesProperty
applicationPolicies = Maybe ApplicationPoliciesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ExtensionsV4Property where
toResourceProperties :: ExtensionsV4Property -> ResourceProperties
toResourceProperties ExtensionsV4Property {Maybe ApplicationPoliciesProperty
()
KeyUsageProperty
haddock_workaround_ :: ExtensionsV4Property -> ()
applicationPolicies :: ExtensionsV4Property -> Maybe ApplicationPoliciesProperty
keyUsage :: ExtensionsV4Property -> KeyUsageProperty
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
keyUsage :: KeyUsageProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.ExtensionsV4",
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
"KeyUsage" Key -> KeyUsageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KeyUsageProperty
keyUsage]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ApplicationPoliciesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplicationPolicies"
(ApplicationPoliciesProperty -> (Key, Value))
-> Maybe ApplicationPoliciesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ApplicationPoliciesProperty
applicationPolicies]))}
instance JSON.ToJSON ExtensionsV4Property where
toJSON :: ExtensionsV4Property -> Value
toJSON ExtensionsV4Property {Maybe ApplicationPoliciesProperty
()
KeyUsageProperty
haddock_workaround_ :: ExtensionsV4Property -> ()
applicationPolicies :: ExtensionsV4Property -> Maybe ApplicationPoliciesProperty
keyUsage :: ExtensionsV4Property -> KeyUsageProperty
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
keyUsage :: KeyUsageProperty
..}
= [(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
"KeyUsage" Key -> KeyUsageProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KeyUsageProperty
keyUsage]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ApplicationPoliciesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplicationPolicies"
(ApplicationPoliciesProperty -> (Key, Value))
-> Maybe ApplicationPoliciesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ApplicationPoliciesProperty
applicationPolicies])))
instance Property "ApplicationPolicies" ExtensionsV4Property where
type PropertyType "ApplicationPolicies" ExtensionsV4Property = ApplicationPoliciesProperty
set :: PropertyType "ApplicationPolicies" ExtensionsV4Property
-> ExtensionsV4Property -> ExtensionsV4Property
set PropertyType "ApplicationPolicies" ExtensionsV4Property
newValue ExtensionsV4Property {Maybe ApplicationPoliciesProperty
()
KeyUsageProperty
haddock_workaround_ :: ExtensionsV4Property -> ()
applicationPolicies :: ExtensionsV4Property -> Maybe ApplicationPoliciesProperty
keyUsage :: ExtensionsV4Property -> KeyUsageProperty
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
keyUsage :: KeyUsageProperty
..}
= ExtensionsV4Property
{applicationPolicies :: Maybe ApplicationPoliciesProperty
applicationPolicies = ApplicationPoliciesProperty -> Maybe ApplicationPoliciesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationPolicies" ExtensionsV4Property
ApplicationPoliciesProperty
newValue, ()
KeyUsageProperty
haddock_workaround_ :: ()
keyUsage :: KeyUsageProperty
haddock_workaround_ :: ()
keyUsage :: KeyUsageProperty
..}
instance Property "KeyUsage" ExtensionsV4Property where
type PropertyType "KeyUsage" ExtensionsV4Property = KeyUsageProperty
set :: PropertyType "KeyUsage" ExtensionsV4Property
-> ExtensionsV4Property -> ExtensionsV4Property
set PropertyType "KeyUsage" ExtensionsV4Property
newValue ExtensionsV4Property {Maybe ApplicationPoliciesProperty
()
KeyUsageProperty
haddock_workaround_ :: ExtensionsV4Property -> ()
applicationPolicies :: ExtensionsV4Property -> Maybe ApplicationPoliciesProperty
keyUsage :: ExtensionsV4Property -> KeyUsageProperty
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
keyUsage :: KeyUsageProperty
..}
= ExtensionsV4Property {keyUsage :: KeyUsageProperty
keyUsage = PropertyType "KeyUsage" ExtensionsV4Property
KeyUsageProperty
newValue, Maybe ApplicationPoliciesProperty
()
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
haddock_workaround_ :: ()
applicationPolicies :: Maybe ApplicationPoliciesProperty
..}