module Stratosphere.BillingConductor.BillingGroup.AccountGroupingProperty (
AccountGroupingProperty(..), mkAccountGroupingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccountGroupingProperty
=
AccountGroupingProperty {AccountGroupingProperty -> ()
haddock_workaround_ :: (),
AccountGroupingProperty -> Maybe (Value Bool)
autoAssociate :: (Prelude.Maybe (Value Prelude.Bool)),
AccountGroupingProperty -> ValueList Text
linkedAccountIds :: (ValueList Prelude.Text)}
deriving stock (AccountGroupingProperty -> AccountGroupingProperty -> Bool
(AccountGroupingProperty -> AccountGroupingProperty -> Bool)
-> (AccountGroupingProperty -> AccountGroupingProperty -> Bool)
-> Eq AccountGroupingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccountGroupingProperty -> AccountGroupingProperty -> Bool
== :: AccountGroupingProperty -> AccountGroupingProperty -> Bool
$c/= :: AccountGroupingProperty -> AccountGroupingProperty -> Bool
/= :: AccountGroupingProperty -> AccountGroupingProperty -> Bool
Prelude.Eq, Int -> AccountGroupingProperty -> ShowS
[AccountGroupingProperty] -> ShowS
AccountGroupingProperty -> String
(Int -> AccountGroupingProperty -> ShowS)
-> (AccountGroupingProperty -> String)
-> ([AccountGroupingProperty] -> ShowS)
-> Show AccountGroupingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccountGroupingProperty -> ShowS
showsPrec :: Int -> AccountGroupingProperty -> ShowS
$cshow :: AccountGroupingProperty -> String
show :: AccountGroupingProperty -> String
$cshowList :: [AccountGroupingProperty] -> ShowS
showList :: [AccountGroupingProperty] -> ShowS
Prelude.Show)
mkAccountGroupingProperty ::
ValueList Prelude.Text -> AccountGroupingProperty
mkAccountGroupingProperty :: ValueList Text -> AccountGroupingProperty
mkAccountGroupingProperty ValueList Text
linkedAccountIds
= AccountGroupingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), linkedAccountIds :: ValueList Text
linkedAccountIds = ValueList Text
linkedAccountIds,
autoAssociate :: Maybe (Value Bool)
autoAssociate = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AccountGroupingProperty where
toResourceProperties :: AccountGroupingProperty -> ResourceProperties
toResourceProperties AccountGroupingProperty {Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: AccountGroupingProperty -> ()
autoAssociate :: AccountGroupingProperty -> Maybe (Value Bool)
linkedAccountIds :: AccountGroupingProperty -> ValueList Text
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
linkedAccountIds :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::BillingConductor::BillingGroup.AccountGrouping",
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
"LinkedAccountIds" 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
linkedAccountIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoAssociate" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoAssociate]))}
instance JSON.ToJSON AccountGroupingProperty where
toJSON :: AccountGroupingProperty -> Value
toJSON AccountGroupingProperty {Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: AccountGroupingProperty -> ()
autoAssociate :: AccountGroupingProperty -> Maybe (Value Bool)
linkedAccountIds :: AccountGroupingProperty -> ValueList Text
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
linkedAccountIds :: ValueList 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
"LinkedAccountIds" 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
linkedAccountIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoAssociate" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoAssociate])))
instance Property "AutoAssociate" AccountGroupingProperty where
type PropertyType "AutoAssociate" AccountGroupingProperty = Value Prelude.Bool
set :: PropertyType "AutoAssociate" AccountGroupingProperty
-> AccountGroupingProperty -> AccountGroupingProperty
set PropertyType "AutoAssociate" AccountGroupingProperty
newValue AccountGroupingProperty {Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: AccountGroupingProperty -> ()
autoAssociate :: AccountGroupingProperty -> Maybe (Value Bool)
linkedAccountIds :: AccountGroupingProperty -> ValueList Text
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
linkedAccountIds :: ValueList Text
..}
= AccountGroupingProperty
{autoAssociate :: Maybe (Value Bool)
autoAssociate = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoAssociate" AccountGroupingProperty
Value Bool
newValue, ()
ValueList Text
haddock_workaround_ :: ()
linkedAccountIds :: ValueList Text
haddock_workaround_ :: ()
linkedAccountIds :: ValueList Text
..}
instance Property "LinkedAccountIds" AccountGroupingProperty where
type PropertyType "LinkedAccountIds" AccountGroupingProperty = ValueList Prelude.Text
set :: PropertyType "LinkedAccountIds" AccountGroupingProperty
-> AccountGroupingProperty -> AccountGroupingProperty
set PropertyType "LinkedAccountIds" AccountGroupingProperty
newValue AccountGroupingProperty {Maybe (Value Bool)
()
ValueList Text
haddock_workaround_ :: AccountGroupingProperty -> ()
autoAssociate :: AccountGroupingProperty -> Maybe (Value Bool)
linkedAccountIds :: AccountGroupingProperty -> ValueList Text
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
linkedAccountIds :: ValueList Text
..}
= AccountGroupingProperty {linkedAccountIds :: ValueList Text
linkedAccountIds = PropertyType "LinkedAccountIds" AccountGroupingProperty
ValueList Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
haddock_workaround_ :: ()
autoAssociate :: Maybe (Value Bool)
..}