module Stratosphere.Grafana.Workspace.AssertionAttributesProperty (
AssertionAttributesProperty(..), mkAssertionAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AssertionAttributesProperty
=
AssertionAttributesProperty {AssertionAttributesProperty -> ()
haddock_workaround_ :: (),
AssertionAttributesProperty -> Maybe (Value Text)
email :: (Prelude.Maybe (Value Prelude.Text)),
AssertionAttributesProperty -> Maybe (Value Text)
groups :: (Prelude.Maybe (Value Prelude.Text)),
AssertionAttributesProperty -> Maybe (Value Text)
login :: (Prelude.Maybe (Value Prelude.Text)),
AssertionAttributesProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
AssertionAttributesProperty -> Maybe (Value Text)
org :: (Prelude.Maybe (Value Prelude.Text)),
AssertionAttributesProperty -> Maybe (Value Text)
role :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AssertionAttributesProperty -> AssertionAttributesProperty -> Bool
(AssertionAttributesProperty
-> AssertionAttributesProperty -> Bool)
-> (AssertionAttributesProperty
-> AssertionAttributesProperty -> Bool)
-> Eq AssertionAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssertionAttributesProperty -> AssertionAttributesProperty -> Bool
== :: AssertionAttributesProperty -> AssertionAttributesProperty -> Bool
$c/= :: AssertionAttributesProperty -> AssertionAttributesProperty -> Bool
/= :: AssertionAttributesProperty -> AssertionAttributesProperty -> Bool
Prelude.Eq, Int -> AssertionAttributesProperty -> ShowS
[AssertionAttributesProperty] -> ShowS
AssertionAttributesProperty -> String
(Int -> AssertionAttributesProperty -> ShowS)
-> (AssertionAttributesProperty -> String)
-> ([AssertionAttributesProperty] -> ShowS)
-> Show AssertionAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssertionAttributesProperty -> ShowS
showsPrec :: Int -> AssertionAttributesProperty -> ShowS
$cshow :: AssertionAttributesProperty -> String
show :: AssertionAttributesProperty -> String
$cshowList :: [AssertionAttributesProperty] -> ShowS
showList :: [AssertionAttributesProperty] -> ShowS
Prelude.Show)
mkAssertionAttributesProperty :: AssertionAttributesProperty
mkAssertionAttributesProperty :: AssertionAttributesProperty
mkAssertionAttributesProperty
= AssertionAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), email :: Maybe (Value Text)
email = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
groups :: Maybe (Value Text)
groups = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, login :: Maybe (Value Text)
login = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, org :: Maybe (Value Text)
org = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
role :: Maybe (Value Text)
role = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AssertionAttributesProperty where
toResourceProperties :: AssertionAttributesProperty -> ResourceProperties
toResourceProperties AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Grafana::Workspace.AssertionAttributes",
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
"Email" (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)
email,
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
"Groups" (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)
groups,
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
"Login" (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)
login,
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
"Name" (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)
name, 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
"Org" (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)
org,
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
"Role" (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)
role])}
instance JSON.ToJSON AssertionAttributesProperty where
toJSON :: AssertionAttributesProperty -> Value
toJSON AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: 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
"Email" (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)
email,
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
"Groups" (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)
groups,
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
"Login" (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)
login,
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
"Name" (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)
name, 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
"Org" (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)
org,
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
"Role" (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)
role]))
instance Property "Email" AssertionAttributesProperty where
type PropertyType "Email" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Email" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Email" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {email :: Maybe (Value Text)
email = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Email" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
haddock_workaround_ :: ()
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
instance Property "Groups" AssertionAttributesProperty where
type PropertyType "Groups" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Groups" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Groups" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {groups :: Maybe (Value Text)
groups = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Groups" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
email :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
instance Property "Login" AssertionAttributesProperty where
type PropertyType "Login" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Login" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Login" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {login :: Maybe (Value Text)
login = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Login" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
instance Property "Name" AssertionAttributesProperty where
type PropertyType "Name" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Name" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Name" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
instance Property "Org" AssertionAttributesProperty where
type PropertyType "Org" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Org" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Org" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {org :: Maybe (Value Text)
org = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Org" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
role :: Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
instance Property "Role" AssertionAttributesProperty where
type PropertyType "Role" AssertionAttributesProperty = Value Prelude.Text
set :: PropertyType "Role" AssertionAttributesProperty
-> AssertionAttributesProperty -> AssertionAttributesProperty
set PropertyType "Role" AssertionAttributesProperty
newValue AssertionAttributesProperty {Maybe (Value Text)
()
haddock_workaround_ :: AssertionAttributesProperty -> ()
email :: AssertionAttributesProperty -> Maybe (Value Text)
groups :: AssertionAttributesProperty -> Maybe (Value Text)
login :: AssertionAttributesProperty -> Maybe (Value Text)
name :: AssertionAttributesProperty -> Maybe (Value Text)
org :: AssertionAttributesProperty -> Maybe (Value Text)
role :: AssertionAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
role :: Maybe (Value Text)
..}
= AssertionAttributesProperty {role :: Maybe (Value Text)
role = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Role" AssertionAttributesProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
haddock_workaround_ :: ()
email :: Maybe (Value Text)
groups :: Maybe (Value Text)
login :: Maybe (Value Text)
name :: Maybe (Value Text)
org :: Maybe (Value Text)
..}