module Stratosphere.FMS.Policy.IEMapProperty (
IEMapProperty(..), mkIEMapProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IEMapProperty
=
IEMapProperty {IEMapProperty -> ()
haddock_workaround_ :: (),
IEMapProperty -> Maybe (ValueList Text)
aCCOUNT :: (Prelude.Maybe (ValueList Prelude.Text)),
IEMapProperty -> Maybe (ValueList Text)
oRGUNIT :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (IEMapProperty -> IEMapProperty -> Bool
(IEMapProperty -> IEMapProperty -> Bool)
-> (IEMapProperty -> IEMapProperty -> Bool) -> Eq IEMapProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IEMapProperty -> IEMapProperty -> Bool
== :: IEMapProperty -> IEMapProperty -> Bool
$c/= :: IEMapProperty -> IEMapProperty -> Bool
/= :: IEMapProperty -> IEMapProperty -> Bool
Prelude.Eq, Int -> IEMapProperty -> ShowS
[IEMapProperty] -> ShowS
IEMapProperty -> String
(Int -> IEMapProperty -> ShowS)
-> (IEMapProperty -> String)
-> ([IEMapProperty] -> ShowS)
-> Show IEMapProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IEMapProperty -> ShowS
showsPrec :: Int -> IEMapProperty -> ShowS
$cshow :: IEMapProperty -> String
show :: IEMapProperty -> String
$cshowList :: [IEMapProperty] -> ShowS
showList :: [IEMapProperty] -> ShowS
Prelude.Show)
mkIEMapProperty :: IEMapProperty
mkIEMapProperty :: IEMapProperty
mkIEMapProperty
= IEMapProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), aCCOUNT :: Maybe (ValueList Text)
aCCOUNT = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
oRGUNIT :: Maybe (ValueList Text)
oRGUNIT = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IEMapProperty where
toResourceProperties :: IEMapProperty -> ResourceProperties
toResourceProperties IEMapProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IEMapProperty -> ()
aCCOUNT :: IEMapProperty -> Maybe (ValueList Text)
oRGUNIT :: IEMapProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
oRGUNIT :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FMS::Policy.IEMap", 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 -> 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
"ACCOUNT" (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)
aCCOUNT,
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
"ORGUNIT" (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)
oRGUNIT])}
instance JSON.ToJSON IEMapProperty where
toJSON :: IEMapProperty -> Value
toJSON IEMapProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IEMapProperty -> ()
aCCOUNT :: IEMapProperty -> Maybe (ValueList Text)
oRGUNIT :: IEMapProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
oRGUNIT :: 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 -> 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
"ACCOUNT" (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)
aCCOUNT,
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
"ORGUNIT" (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)
oRGUNIT]))
instance Property "ACCOUNT" IEMapProperty where
type PropertyType "ACCOUNT" IEMapProperty = ValueList Prelude.Text
set :: PropertyType "ACCOUNT" IEMapProperty
-> IEMapProperty -> IEMapProperty
set PropertyType "ACCOUNT" IEMapProperty
newValue IEMapProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IEMapProperty -> ()
aCCOUNT :: IEMapProperty -> Maybe (ValueList Text)
oRGUNIT :: IEMapProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
oRGUNIT :: Maybe (ValueList Text)
..}
= IEMapProperty {aCCOUNT :: Maybe (ValueList Text)
aCCOUNT = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ACCOUNT" IEMapProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
oRGUNIT :: Maybe (ValueList Text)
haddock_workaround_ :: ()
oRGUNIT :: Maybe (ValueList Text)
..}
instance Property "ORGUNIT" IEMapProperty where
type PropertyType "ORGUNIT" IEMapProperty = ValueList Prelude.Text
set :: PropertyType "ORGUNIT" IEMapProperty
-> IEMapProperty -> IEMapProperty
set PropertyType "ORGUNIT" IEMapProperty
newValue IEMapProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: IEMapProperty -> ()
aCCOUNT :: IEMapProperty -> Maybe (ValueList Text)
oRGUNIT :: IEMapProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
oRGUNIT :: Maybe (ValueList Text)
..}
= IEMapProperty {oRGUNIT :: Maybe (ValueList Text)
oRGUNIT = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ORGUNIT" IEMapProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
haddock_workaround_ :: ()
aCCOUNT :: Maybe (ValueList Text)
..}