module Stratosphere.PCAConnectorAD.TemplateGroupAccessControlEntry (
module Exports, TemplateGroupAccessControlEntry(..),
mkTemplateGroupAccessControlEntry
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.PCAConnectorAD.TemplateGroupAccessControlEntry.AccessRightsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TemplateGroupAccessControlEntry
=
TemplateGroupAccessControlEntry {TemplateGroupAccessControlEntry -> ()
haddock_workaround_ :: (),
TemplateGroupAccessControlEntry -> AccessRightsProperty
accessRights :: AccessRightsProperty,
TemplateGroupAccessControlEntry -> Value Text
groupDisplayName :: (Value Prelude.Text),
TemplateGroupAccessControlEntry -> Maybe (Value Text)
groupSecurityIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool
(TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool)
-> (TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool)
-> Eq TemplateGroupAccessControlEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool
== :: TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool
$c/= :: TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool
/= :: TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry -> Bool
Prelude.Eq, Int -> TemplateGroupAccessControlEntry -> ShowS
[TemplateGroupAccessControlEntry] -> ShowS
TemplateGroupAccessControlEntry -> String
(Int -> TemplateGroupAccessControlEntry -> ShowS)
-> (TemplateGroupAccessControlEntry -> String)
-> ([TemplateGroupAccessControlEntry] -> ShowS)
-> Show TemplateGroupAccessControlEntry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TemplateGroupAccessControlEntry -> ShowS
showsPrec :: Int -> TemplateGroupAccessControlEntry -> ShowS
$cshow :: TemplateGroupAccessControlEntry -> String
show :: TemplateGroupAccessControlEntry -> String
$cshowList :: [TemplateGroupAccessControlEntry] -> ShowS
showList :: [TemplateGroupAccessControlEntry] -> ShowS
Prelude.Show)
mkTemplateGroupAccessControlEntry ::
AccessRightsProperty
-> Value Prelude.Text -> TemplateGroupAccessControlEntry
mkTemplateGroupAccessControlEntry :: AccessRightsProperty
-> Value Text -> TemplateGroupAccessControlEntry
mkTemplateGroupAccessControlEntry AccessRightsProperty
accessRights Value Text
groupDisplayName
= TemplateGroupAccessControlEntry
{haddock_workaround_ :: ()
haddock_workaround_ = (), accessRights :: AccessRightsProperty
accessRights = AccessRightsProperty
accessRights,
groupDisplayName :: Value Text
groupDisplayName = Value Text
groupDisplayName,
groupSecurityIdentifier :: Maybe (Value Text)
groupSecurityIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
templateArn :: Maybe (Value Text)
templateArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TemplateGroupAccessControlEntry where
toResourceProperties :: TemplateGroupAccessControlEntry -> ResourceProperties
toResourceProperties TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::TemplateGroupAccessControlEntry",
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
"AccessRights" Key -> AccessRightsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AccessRightsProperty
accessRights,
Key
"GroupDisplayName" 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..= Value Text
groupDisplayName]
([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
"GroupSecurityIdentifier"
(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)
groupSecurityIdentifier,
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
"TemplateArn" (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)
templateArn]))}
instance JSON.ToJSON TemplateGroupAccessControlEntry where
toJSON :: TemplateGroupAccessControlEntry -> Value
toJSON TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= [(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
"AccessRights" Key -> AccessRightsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AccessRightsProperty
accessRights,
Key
"GroupDisplayName" 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..= Value Text
groupDisplayName]
([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
"GroupSecurityIdentifier"
(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)
groupSecurityIdentifier,
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
"TemplateArn" (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)
templateArn])))
instance Property "AccessRights" TemplateGroupAccessControlEntry where
type PropertyType "AccessRights" TemplateGroupAccessControlEntry = AccessRightsProperty
set :: PropertyType "AccessRights" TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
set PropertyType "AccessRights" TemplateGroupAccessControlEntry
newValue TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= TemplateGroupAccessControlEntry {accessRights :: AccessRightsProperty
accessRights = PropertyType "AccessRights" TemplateGroupAccessControlEntry
AccessRightsProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
haddock_workaround_ :: ()
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
instance Property "GroupDisplayName" TemplateGroupAccessControlEntry where
type PropertyType "GroupDisplayName" TemplateGroupAccessControlEntry = Value Prelude.Text
set :: PropertyType "GroupDisplayName" TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
set PropertyType "GroupDisplayName" TemplateGroupAccessControlEntry
newValue TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= TemplateGroupAccessControlEntry {groupDisplayName :: Value Text
groupDisplayName = PropertyType "GroupDisplayName" TemplateGroupAccessControlEntry
Value Text
newValue, Maybe (Value Text)
()
AccessRightsProperty
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
instance Property "GroupSecurityIdentifier" TemplateGroupAccessControlEntry where
type PropertyType "GroupSecurityIdentifier" TemplateGroupAccessControlEntry = Value Prelude.Text
set :: PropertyType
"GroupSecurityIdentifier" TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
set PropertyType
"GroupSecurityIdentifier" TemplateGroupAccessControlEntry
newValue TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= TemplateGroupAccessControlEntry
{groupSecurityIdentifier :: Maybe (Value Text)
groupSecurityIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"GroupSecurityIdentifier" TemplateGroupAccessControlEntry
Value Text
newValue, Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
templateArn :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
templateArn :: Maybe (Value Text)
..}
instance Property "TemplateArn" TemplateGroupAccessControlEntry where
type PropertyType "TemplateArn" TemplateGroupAccessControlEntry = Value Prelude.Text
set :: PropertyType "TemplateArn" TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
-> TemplateGroupAccessControlEntry
set PropertyType "TemplateArn" TemplateGroupAccessControlEntry
newValue TemplateGroupAccessControlEntry {Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: TemplateGroupAccessControlEntry -> ()
accessRights :: TemplateGroupAccessControlEntry -> AccessRightsProperty
groupDisplayName :: TemplateGroupAccessControlEntry -> Value Text
groupSecurityIdentifier :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
templateArn :: TemplateGroupAccessControlEntry -> Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
templateArn :: Maybe (Value Text)
..}
= TemplateGroupAccessControlEntry
{templateArn :: Maybe (Value Text)
templateArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplateArn" TemplateGroupAccessControlEntry
Value Text
newValue, Maybe (Value Text)
()
Value Text
AccessRightsProperty
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
accessRights :: AccessRightsProperty
groupDisplayName :: Value Text
groupSecurityIdentifier :: Maybe (Value Text)
..}