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