module Stratosphere.Budgets.BudgetsAction.ScpActionDefinitionProperty (
ScpActionDefinitionProperty(..), mkScpActionDefinitionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScpActionDefinitionProperty
=
ScpActionDefinitionProperty {ScpActionDefinitionProperty -> ()
haddock_workaround_ :: (),
ScpActionDefinitionProperty -> Value Text
policyId :: (Value Prelude.Text),
ScpActionDefinitionProperty -> ValueList Text
targetIds :: (ValueList Prelude.Text)}
deriving stock (ScpActionDefinitionProperty -> ScpActionDefinitionProperty -> Bool
(ScpActionDefinitionProperty
-> ScpActionDefinitionProperty -> Bool)
-> (ScpActionDefinitionProperty
-> ScpActionDefinitionProperty -> Bool)
-> Eq ScpActionDefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScpActionDefinitionProperty -> ScpActionDefinitionProperty -> Bool
== :: ScpActionDefinitionProperty -> ScpActionDefinitionProperty -> Bool
$c/= :: ScpActionDefinitionProperty -> ScpActionDefinitionProperty -> Bool
/= :: ScpActionDefinitionProperty -> ScpActionDefinitionProperty -> Bool
Prelude.Eq, Int -> ScpActionDefinitionProperty -> ShowS
[ScpActionDefinitionProperty] -> ShowS
ScpActionDefinitionProperty -> String
(Int -> ScpActionDefinitionProperty -> ShowS)
-> (ScpActionDefinitionProperty -> String)
-> ([ScpActionDefinitionProperty] -> ShowS)
-> Show ScpActionDefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScpActionDefinitionProperty -> ShowS
showsPrec :: Int -> ScpActionDefinitionProperty -> ShowS
$cshow :: ScpActionDefinitionProperty -> String
show :: ScpActionDefinitionProperty -> String
$cshowList :: [ScpActionDefinitionProperty] -> ShowS
showList :: [ScpActionDefinitionProperty] -> ShowS
Prelude.Show)
mkScpActionDefinitionProperty ::
Value Prelude.Text
-> ValueList Prelude.Text -> ScpActionDefinitionProperty
mkScpActionDefinitionProperty :: Value Text -> ValueList Text -> ScpActionDefinitionProperty
mkScpActionDefinitionProperty Value Text
policyId ValueList Text
targetIds
= ScpActionDefinitionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), policyId :: Value Text
policyId = Value Text
policyId,
targetIds :: ValueList Text
targetIds = ValueList Text
targetIds}
instance ToResourceProperties ScpActionDefinitionProperty where
toResourceProperties :: ScpActionDefinitionProperty -> ResourceProperties
toResourceProperties ScpActionDefinitionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ScpActionDefinitionProperty -> ()
policyId :: ScpActionDefinitionProperty -> Value Text
targetIds :: ScpActionDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
policyId :: Value Text
targetIds :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Budgets::BudgetsAction.ScpActionDefinition",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"PolicyId" 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
policyId,
Key
"TargetIds" 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
targetIds]}
instance JSON.ToJSON ScpActionDefinitionProperty where
toJSON :: ScpActionDefinitionProperty -> Value
toJSON ScpActionDefinitionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ScpActionDefinitionProperty -> ()
policyId :: ScpActionDefinitionProperty -> Value Text
targetIds :: ScpActionDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
policyId :: Value Text
targetIds :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"PolicyId" 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
policyId, Key
"TargetIds" 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
targetIds]
instance Property "PolicyId" ScpActionDefinitionProperty where
type PropertyType "PolicyId" ScpActionDefinitionProperty = Value Prelude.Text
set :: PropertyType "PolicyId" ScpActionDefinitionProperty
-> ScpActionDefinitionProperty -> ScpActionDefinitionProperty
set PropertyType "PolicyId" ScpActionDefinitionProperty
newValue ScpActionDefinitionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ScpActionDefinitionProperty -> ()
policyId :: ScpActionDefinitionProperty -> Value Text
targetIds :: ScpActionDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
policyId :: Value Text
targetIds :: ValueList Text
..}
= ScpActionDefinitionProperty {policyId :: Value Text
policyId = PropertyType "PolicyId" ScpActionDefinitionProperty
Value Text
newValue, ()
ValueList Text
haddock_workaround_ :: ()
targetIds :: ValueList Text
haddock_workaround_ :: ()
targetIds :: ValueList Text
..}
instance Property "TargetIds" ScpActionDefinitionProperty where
type PropertyType "TargetIds" ScpActionDefinitionProperty = ValueList Prelude.Text
set :: PropertyType "TargetIds" ScpActionDefinitionProperty
-> ScpActionDefinitionProperty -> ScpActionDefinitionProperty
set PropertyType "TargetIds" ScpActionDefinitionProperty
newValue ScpActionDefinitionProperty {()
ValueList Text
Value Text
haddock_workaround_ :: ScpActionDefinitionProperty -> ()
policyId :: ScpActionDefinitionProperty -> Value Text
targetIds :: ScpActionDefinitionProperty -> ValueList Text
haddock_workaround_ :: ()
policyId :: Value Text
targetIds :: ValueList Text
..}
= ScpActionDefinitionProperty {targetIds :: ValueList Text
targetIds = PropertyType "TargetIds" ScpActionDefinitionProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
policyId :: Value Text
haddock_workaround_ :: ()
policyId :: Value Text
..}