module Stratosphere.OpenSearchServerless.SecurityConfig.SamlConfigOptionsProperty (
SamlConfigOptionsProperty(..), mkSamlConfigOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SamlConfigOptionsProperty
=
SamlConfigOptionsProperty {SamlConfigOptionsProperty -> ()
haddock_workaround_ :: (),
SamlConfigOptionsProperty -> Maybe (Value Text)
groupAttribute :: (Prelude.Maybe (Value Prelude.Text)),
SamlConfigOptionsProperty -> Value Text
metadata :: (Value Prelude.Text),
SamlConfigOptionsProperty -> Maybe (Value Text)
openSearchServerlessEntityId :: (Prelude.Maybe (Value Prelude.Text)),
SamlConfigOptionsProperty -> Maybe (Value Integer)
sessionTimeout :: (Prelude.Maybe (Value Prelude.Integer)),
SamlConfigOptionsProperty -> Maybe (Value Text)
userAttribute :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool
(SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool)
-> (SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool)
-> Eq SamlConfigOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool
== :: SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool
$c/= :: SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool
/= :: SamlConfigOptionsProperty -> SamlConfigOptionsProperty -> Bool
Prelude.Eq, Int -> SamlConfigOptionsProperty -> ShowS
[SamlConfigOptionsProperty] -> ShowS
SamlConfigOptionsProperty -> String
(Int -> SamlConfigOptionsProperty -> ShowS)
-> (SamlConfigOptionsProperty -> String)
-> ([SamlConfigOptionsProperty] -> ShowS)
-> Show SamlConfigOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SamlConfigOptionsProperty -> ShowS
showsPrec :: Int -> SamlConfigOptionsProperty -> ShowS
$cshow :: SamlConfigOptionsProperty -> String
show :: SamlConfigOptionsProperty -> String
$cshowList :: [SamlConfigOptionsProperty] -> ShowS
showList :: [SamlConfigOptionsProperty] -> ShowS
Prelude.Show)
mkSamlConfigOptionsProperty ::
Value Prelude.Text -> SamlConfigOptionsProperty
mkSamlConfigOptionsProperty :: Value Text -> SamlConfigOptionsProperty
mkSamlConfigOptionsProperty Value Text
metadata
= SamlConfigOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), metadata :: Value Text
metadata = Value Text
metadata,
groupAttribute :: Maybe (Value Text)
groupAttribute = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
openSearchServerlessEntityId :: Maybe (Value Text)
openSearchServerlessEntityId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
sessionTimeout :: Maybe (Value Integer)
sessionTimeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, userAttribute :: Maybe (Value Text)
userAttribute = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SamlConfigOptionsProperty where
toResourceProperties :: SamlConfigOptionsProperty -> ResourceProperties
toResourceProperties SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpenSearchServerless::SecurityConfig.SamlConfigOptions",
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
"Metadata" 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
metadata]
([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
"GroupAttribute" (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)
groupAttribute,
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
"OpenSearchServerlessEntityId"
(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)
openSearchServerlessEntityId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
sessionTimeout,
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
"UserAttribute" (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)
userAttribute]))}
instance JSON.ToJSON SamlConfigOptionsProperty where
toJSON :: SamlConfigOptionsProperty -> Value
toJSON SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: 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
"Metadata" 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
metadata]
([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
"GroupAttribute" (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)
groupAttribute,
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
"OpenSearchServerlessEntityId"
(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)
openSearchServerlessEntityId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SessionTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
sessionTimeout,
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
"UserAttribute" (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)
userAttribute])))
instance Property "GroupAttribute" SamlConfigOptionsProperty where
type PropertyType "GroupAttribute" SamlConfigOptionsProperty = Value Prelude.Text
set :: PropertyType "GroupAttribute" SamlConfigOptionsProperty
-> SamlConfigOptionsProperty -> SamlConfigOptionsProperty
set PropertyType "GroupAttribute" SamlConfigOptionsProperty
newValue SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= SamlConfigOptionsProperty
{groupAttribute :: Maybe (Value Text)
groupAttribute = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GroupAttribute" SamlConfigOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
haddock_workaround_ :: ()
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
instance Property "Metadata" SamlConfigOptionsProperty where
type PropertyType "Metadata" SamlConfigOptionsProperty = Value Prelude.Text
set :: PropertyType "Metadata" SamlConfigOptionsProperty
-> SamlConfigOptionsProperty -> SamlConfigOptionsProperty
set PropertyType "Metadata" SamlConfigOptionsProperty
newValue SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= SamlConfigOptionsProperty {metadata :: Value Text
metadata = PropertyType "Metadata" SamlConfigOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
instance Property "OpenSearchServerlessEntityId" SamlConfigOptionsProperty where
type PropertyType "OpenSearchServerlessEntityId" SamlConfigOptionsProperty = Value Prelude.Text
set :: PropertyType
"OpenSearchServerlessEntityId" SamlConfigOptionsProperty
-> SamlConfigOptionsProperty -> SamlConfigOptionsProperty
set PropertyType
"OpenSearchServerlessEntityId" SamlConfigOptionsProperty
newValue SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= SamlConfigOptionsProperty
{openSearchServerlessEntityId :: Maybe (Value Text)
openSearchServerlessEntityId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"OpenSearchServerlessEntityId" SamlConfigOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
instance Property "SessionTimeout" SamlConfigOptionsProperty where
type PropertyType "SessionTimeout" SamlConfigOptionsProperty = Value Prelude.Integer
set :: PropertyType "SessionTimeout" SamlConfigOptionsProperty
-> SamlConfigOptionsProperty -> SamlConfigOptionsProperty
set PropertyType "SessionTimeout" SamlConfigOptionsProperty
newValue SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= SamlConfigOptionsProperty
{sessionTimeout :: Maybe (Value Integer)
sessionTimeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SessionTimeout" SamlConfigOptionsProperty
Value Integer
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
userAttribute :: Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
userAttribute :: Maybe (Value Text)
..}
instance Property "UserAttribute" SamlConfigOptionsProperty where
type PropertyType "UserAttribute" SamlConfigOptionsProperty = Value Prelude.Text
set :: PropertyType "UserAttribute" SamlConfigOptionsProperty
-> SamlConfigOptionsProperty -> SamlConfigOptionsProperty
set PropertyType "UserAttribute" SamlConfigOptionsProperty
newValue SamlConfigOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SamlConfigOptionsProperty -> ()
groupAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
metadata :: SamlConfigOptionsProperty -> Value Text
openSearchServerlessEntityId :: SamlConfigOptionsProperty -> Maybe (Value Text)
sessionTimeout :: SamlConfigOptionsProperty -> Maybe (Value Integer)
userAttribute :: SamlConfigOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
userAttribute :: Maybe (Value Text)
..}
= SamlConfigOptionsProperty
{userAttribute :: Maybe (Value Text)
userAttribute = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserAttribute" SamlConfigOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
haddock_workaround_ :: ()
groupAttribute :: Maybe (Value Text)
metadata :: Value Text
openSearchServerlessEntityId :: Maybe (Value Text)
sessionTimeout :: Maybe (Value Integer)
..}