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