module Stratosphere.PCAConnectorAD.Template.ApplicationPolicyProperty (
ApplicationPolicyProperty(..), mkApplicationPolicyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApplicationPolicyProperty
=
ApplicationPolicyProperty {ApplicationPolicyProperty -> ()
haddock_workaround_ :: (),
ApplicationPolicyProperty -> Maybe (Value Text)
policyObjectIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
ApplicationPolicyProperty -> Maybe (Value Text)
policyType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool
(ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool)
-> (ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool)
-> Eq ApplicationPolicyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool
== :: ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool
$c/= :: ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool
/= :: ApplicationPolicyProperty -> ApplicationPolicyProperty -> Bool
Prelude.Eq, Int -> ApplicationPolicyProperty -> ShowS
[ApplicationPolicyProperty] -> ShowS
ApplicationPolicyProperty -> String
(Int -> ApplicationPolicyProperty -> ShowS)
-> (ApplicationPolicyProperty -> String)
-> ([ApplicationPolicyProperty] -> ShowS)
-> Show ApplicationPolicyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationPolicyProperty -> ShowS
showsPrec :: Int -> ApplicationPolicyProperty -> ShowS
$cshow :: ApplicationPolicyProperty -> String
show :: ApplicationPolicyProperty -> String
$cshowList :: [ApplicationPolicyProperty] -> ShowS
showList :: [ApplicationPolicyProperty] -> ShowS
Prelude.Show)
mkApplicationPolicyProperty :: ApplicationPolicyProperty
mkApplicationPolicyProperty :: ApplicationPolicyProperty
mkApplicationPolicyProperty
= ApplicationPolicyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
policyObjectIdentifier :: Maybe (Value Text)
policyObjectIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
policyType :: Maybe (Value Text)
policyType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApplicationPolicyProperty where
toResourceProperties :: ApplicationPolicyProperty -> ResourceProperties
toResourceProperties ApplicationPolicyProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApplicationPolicyProperty -> ()
policyObjectIdentifier :: ApplicationPolicyProperty -> Maybe (Value Text)
policyType :: ApplicationPolicyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
policyType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Template.ApplicationPolicy",
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
"PolicyObjectIdentifier"
(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)
policyObjectIdentifier,
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
"PolicyType" (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)
policyType])}
instance JSON.ToJSON ApplicationPolicyProperty where
toJSON :: ApplicationPolicyProperty -> Value
toJSON ApplicationPolicyProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApplicationPolicyProperty -> ()
policyObjectIdentifier :: ApplicationPolicyProperty -> Maybe (Value Text)
policyType :: ApplicationPolicyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
policyType :: 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
"PolicyObjectIdentifier"
(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)
policyObjectIdentifier,
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
"PolicyType" (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)
policyType]))
instance Property "PolicyObjectIdentifier" ApplicationPolicyProperty where
type PropertyType "PolicyObjectIdentifier" ApplicationPolicyProperty = Value Prelude.Text
set :: PropertyType "PolicyObjectIdentifier" ApplicationPolicyProperty
-> ApplicationPolicyProperty -> ApplicationPolicyProperty
set PropertyType "PolicyObjectIdentifier" ApplicationPolicyProperty
newValue ApplicationPolicyProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApplicationPolicyProperty -> ()
policyObjectIdentifier :: ApplicationPolicyProperty -> Maybe (Value Text)
policyType :: ApplicationPolicyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
policyType :: Maybe (Value Text)
..}
= ApplicationPolicyProperty
{policyObjectIdentifier :: Maybe (Value Text)
policyObjectIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PolicyObjectIdentifier" ApplicationPolicyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
policyType :: Maybe (Value Text)
haddock_workaround_ :: ()
policyType :: Maybe (Value Text)
..}
instance Property "PolicyType" ApplicationPolicyProperty where
type PropertyType "PolicyType" ApplicationPolicyProperty = Value Prelude.Text
set :: PropertyType "PolicyType" ApplicationPolicyProperty
-> ApplicationPolicyProperty -> ApplicationPolicyProperty
set PropertyType "PolicyType" ApplicationPolicyProperty
newValue ApplicationPolicyProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApplicationPolicyProperty -> ()
policyObjectIdentifier :: ApplicationPolicyProperty -> Maybe (Value Text)
policyType :: ApplicationPolicyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
policyType :: Maybe (Value Text)
..}
= ApplicationPolicyProperty
{policyType :: Maybe (Value Text)
policyType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PolicyType" ApplicationPolicyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
policyObjectIdentifier :: Maybe (Value Text)
..}