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