module Stratosphere.Budgets.Budget.TagValuesProperty (
TagValuesProperty(..), mkTagValuesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagValuesProperty
=
TagValuesProperty {TagValuesProperty -> ()
haddock_workaround_ :: (),
TagValuesProperty -> Maybe (Value Text)
key :: (Prelude.Maybe (Value Prelude.Text)),
TagValuesProperty -> Maybe (ValueList Text)
matchOptions :: (Prelude.Maybe (ValueList Prelude.Text)),
TagValuesProperty -> Maybe (ValueList Text)
values :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (TagValuesProperty -> TagValuesProperty -> Bool
(TagValuesProperty -> TagValuesProperty -> Bool)
-> (TagValuesProperty -> TagValuesProperty -> Bool)
-> Eq TagValuesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagValuesProperty -> TagValuesProperty -> Bool
== :: TagValuesProperty -> TagValuesProperty -> Bool
$c/= :: TagValuesProperty -> TagValuesProperty -> Bool
/= :: TagValuesProperty -> TagValuesProperty -> Bool
Prelude.Eq, Int -> TagValuesProperty -> ShowS
[TagValuesProperty] -> ShowS
TagValuesProperty -> String
(Int -> TagValuesProperty -> ShowS)
-> (TagValuesProperty -> String)
-> ([TagValuesProperty] -> ShowS)
-> Show TagValuesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagValuesProperty -> ShowS
showsPrec :: Int -> TagValuesProperty -> ShowS
$cshow :: TagValuesProperty -> String
show :: TagValuesProperty -> String
$cshowList :: [TagValuesProperty] -> ShowS
showList :: [TagValuesProperty] -> ShowS
Prelude.Show)
mkTagValuesProperty :: TagValuesProperty
mkTagValuesProperty :: TagValuesProperty
mkTagValuesProperty
= TagValuesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Maybe (Value Text)
key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
matchOptions :: Maybe (ValueList Text)
matchOptions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, values :: Maybe (ValueList Text)
values = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TagValuesProperty where
toResourceProperties :: TagValuesProperty -> ResourceProperties
toResourceProperties TagValuesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagValuesProperty -> ()
key :: TagValuesProperty -> Maybe (Value Text)
matchOptions :: TagValuesProperty -> Maybe (ValueList Text)
values :: TagValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Budgets::Budget.TagValues",
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
"Key" (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)
key,
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..=) Key
"MatchOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
matchOptions,
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..=) Key
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values])}
instance JSON.ToJSON TagValuesProperty where
toJSON :: TagValuesProperty -> Value
toJSON TagValuesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagValuesProperty -> ()
key :: TagValuesProperty -> Maybe (Value Text)
matchOptions :: TagValuesProperty -> Maybe (ValueList Text)
values :: TagValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList 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
"Key" (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)
key,
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..=) Key
"MatchOptions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
matchOptions,
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..=) Key
"Values" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
values]))
instance Property "Key" TagValuesProperty where
type PropertyType "Key" TagValuesProperty = Value Prelude.Text
set :: PropertyType "Key" TagValuesProperty
-> TagValuesProperty -> TagValuesProperty
set PropertyType "Key" TagValuesProperty
newValue TagValuesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagValuesProperty -> ()
key :: TagValuesProperty -> Maybe (Value Text)
matchOptions :: TagValuesProperty -> Maybe (ValueList Text)
values :: TagValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
..}
= TagValuesProperty {key :: Maybe (Value Text)
key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Key" TagValuesProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
haddock_workaround_ :: ()
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
..}
instance Property "MatchOptions" TagValuesProperty where
type PropertyType "MatchOptions" TagValuesProperty = ValueList Prelude.Text
set :: PropertyType "MatchOptions" TagValuesProperty
-> TagValuesProperty -> TagValuesProperty
set PropertyType "MatchOptions" TagValuesProperty
newValue TagValuesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagValuesProperty -> ()
key :: TagValuesProperty -> Maybe (Value Text)
matchOptions :: TagValuesProperty -> Maybe (ValueList Text)
values :: TagValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
..}
= TagValuesProperty {matchOptions :: Maybe (ValueList Text)
matchOptions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MatchOptions" TagValuesProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
values :: Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
values :: Maybe (ValueList Text)
..}
instance Property "Values" TagValuesProperty where
type PropertyType "Values" TagValuesProperty = ValueList Prelude.Text
set :: PropertyType "Values" TagValuesProperty
-> TagValuesProperty -> TagValuesProperty
set PropertyType "Values" TagValuesProperty
newValue TagValuesProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: TagValuesProperty -> ()
key :: TagValuesProperty -> Maybe (Value Text)
matchOptions :: TagValuesProperty -> Maybe (ValueList Text)
values :: TagValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
values :: Maybe (ValueList Text)
..}
= TagValuesProperty {values :: Maybe (ValueList Text)
values = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Values" TagValuesProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
matchOptions :: Maybe (ValueList Text)
..}