module Stratosphere.QBusiness.Permission.ConditionProperty (
ConditionProperty(..), mkConditionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConditionProperty
=
ConditionProperty {ConditionProperty -> ()
haddock_workaround_ :: (),
ConditionProperty -> Value Text
conditionKey :: (Value Prelude.Text),
ConditionProperty -> Value Text
conditionOperator :: (Value Prelude.Text),
ConditionProperty -> ValueList Text
conditionValues :: (ValueList Prelude.Text)}
deriving stock (ConditionProperty -> ConditionProperty -> Bool
(ConditionProperty -> ConditionProperty -> Bool)
-> (ConditionProperty -> ConditionProperty -> Bool)
-> Eq ConditionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConditionProperty -> ConditionProperty -> Bool
== :: ConditionProperty -> ConditionProperty -> Bool
$c/= :: ConditionProperty -> ConditionProperty -> Bool
/= :: ConditionProperty -> ConditionProperty -> Bool
Prelude.Eq, Int -> ConditionProperty -> ShowS
[ConditionProperty] -> ShowS
ConditionProperty -> String
(Int -> ConditionProperty -> ShowS)
-> (ConditionProperty -> String)
-> ([ConditionProperty] -> ShowS)
-> Show ConditionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConditionProperty -> ShowS
showsPrec :: Int -> ConditionProperty -> ShowS
$cshow :: ConditionProperty -> String
show :: ConditionProperty -> String
$cshowList :: [ConditionProperty] -> ShowS
showList :: [ConditionProperty] -> ShowS
Prelude.Show)
mkConditionProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> ValueList Prelude.Text -> ConditionProperty
mkConditionProperty :: Value Text -> Value Text -> ValueList Text -> ConditionProperty
mkConditionProperty Value Text
conditionKey Value Text
conditionOperator ValueList Text
conditionValues
= ConditionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), conditionKey :: Value Text
conditionKey = Value Text
conditionKey,
conditionOperator :: Value Text
conditionOperator = Value Text
conditionOperator,
conditionValues :: ValueList Text
conditionValues = ValueList Text
conditionValues}
instance ToResourceProperties ConditionProperty where
toResourceProperties :: ConditionProperty -> ResourceProperties
toResourceProperties ConditionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ConditionProperty -> ()
conditionKey :: ConditionProperty -> Value Text
conditionOperator :: ConditionProperty -> Value Text
conditionValues :: ConditionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QBusiness::Permission.Condition",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ConditionKey" 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
conditionKey,
Key
"ConditionOperator" 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
conditionOperator,
Key
"ConditionValues" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
conditionValues]}
instance JSON.ToJSON ConditionProperty where
toJSON :: ConditionProperty -> Value
toJSON ConditionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ConditionProperty -> ()
conditionKey :: ConditionProperty -> Value Text
conditionOperator :: ConditionProperty -> Value Text
conditionValues :: ConditionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ConditionKey" 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
conditionKey,
Key
"ConditionOperator" 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
conditionOperator,
Key
"ConditionValues" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
conditionValues]
instance Property "ConditionKey" ConditionProperty where
type PropertyType "ConditionKey" ConditionProperty = Value Prelude.Text
set :: PropertyType "ConditionKey" ConditionProperty
-> ConditionProperty -> ConditionProperty
set PropertyType "ConditionKey" ConditionProperty
newValue ConditionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ConditionProperty -> ()
conditionKey :: ConditionProperty -> Value Text
conditionOperator :: ConditionProperty -> Value Text
conditionValues :: ConditionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
= ConditionProperty {conditionKey :: Value Text
conditionKey = PropertyType "ConditionKey" ConditionProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
conditionOperator :: Value Text
conditionValues :: ValueList Text
haddock_workaround_ :: ()
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
instance Property "ConditionOperator" ConditionProperty where
type PropertyType "ConditionOperator" ConditionProperty = Value Prelude.Text
set :: PropertyType "ConditionOperator" ConditionProperty
-> ConditionProperty -> ConditionProperty
set PropertyType "ConditionOperator" ConditionProperty
newValue ConditionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ConditionProperty -> ()
conditionKey :: ConditionProperty -> Value Text
conditionOperator :: ConditionProperty -> Value Text
conditionValues :: ConditionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
= ConditionProperty {conditionOperator :: Value Text
conditionOperator = PropertyType "ConditionOperator" ConditionProperty
Value Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionValues :: ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionValues :: ValueList Text
..}
instance Property "ConditionValues" ConditionProperty where
type PropertyType "ConditionValues" ConditionProperty = ValueList Prelude.Text
set :: PropertyType "ConditionValues" ConditionProperty
-> ConditionProperty -> ConditionProperty
set PropertyType "ConditionValues" ConditionProperty
newValue ConditionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ConditionProperty -> ()
conditionKey :: ConditionProperty -> Value Text
conditionOperator :: ConditionProperty -> Value Text
conditionValues :: ConditionProperty -> ValueList Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
conditionValues :: ValueList Text
..}
= ConditionProperty {conditionValues :: ValueList Text
conditionValues = PropertyType "ConditionValues" ConditionProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
haddock_workaround_ :: ()
conditionKey :: Value Text
conditionOperator :: Value Text
..}