module Stratosphere.SES.DedicatedIpPool (
DedicatedIpPool(..), mkDedicatedIpPool
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DedicatedIpPool
=
DedicatedIpPool {DedicatedIpPool -> ()
haddock_workaround_ :: (),
DedicatedIpPool -> Maybe (Value Text)
poolName :: (Prelude.Maybe (Value Prelude.Text)),
DedicatedIpPool -> Maybe (Value Text)
scalingMode :: (Prelude.Maybe (Value Prelude.Text)),
DedicatedIpPool -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (DedicatedIpPool -> DedicatedIpPool -> Bool
(DedicatedIpPool -> DedicatedIpPool -> Bool)
-> (DedicatedIpPool -> DedicatedIpPool -> Bool)
-> Eq DedicatedIpPool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DedicatedIpPool -> DedicatedIpPool -> Bool
== :: DedicatedIpPool -> DedicatedIpPool -> Bool
$c/= :: DedicatedIpPool -> DedicatedIpPool -> Bool
/= :: DedicatedIpPool -> DedicatedIpPool -> Bool
Prelude.Eq, Int -> DedicatedIpPool -> ShowS
[DedicatedIpPool] -> ShowS
DedicatedIpPool -> String
(Int -> DedicatedIpPool -> ShowS)
-> (DedicatedIpPool -> String)
-> ([DedicatedIpPool] -> ShowS)
-> Show DedicatedIpPool
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DedicatedIpPool -> ShowS
showsPrec :: Int -> DedicatedIpPool -> ShowS
$cshow :: DedicatedIpPool -> String
show :: DedicatedIpPool -> String
$cshowList :: [DedicatedIpPool] -> ShowS
showList :: [DedicatedIpPool] -> ShowS
Prelude.Show)
mkDedicatedIpPool :: DedicatedIpPool
mkDedicatedIpPool :: DedicatedIpPool
mkDedicatedIpPool
= DedicatedIpPool
{haddock_workaround_ :: ()
haddock_workaround_ = (), poolName :: Maybe (Value Text)
poolName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
scalingMode :: Maybe (Value Text)
scalingMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DedicatedIpPool where
toResourceProperties :: DedicatedIpPool -> ResourceProperties
toResourceProperties DedicatedIpPool {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: DedicatedIpPool -> ()
poolName :: DedicatedIpPool -> Maybe (Value Text)
scalingMode :: DedicatedIpPool -> Maybe (Value Text)
tags :: DedicatedIpPool -> Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SES::DedicatedIpPool",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"PoolName" (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)
poolName,
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
"ScalingMode" (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)
scalingMode,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON DedicatedIpPool where
toJSON :: DedicatedIpPool -> Value
toJSON DedicatedIpPool {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: DedicatedIpPool -> ()
poolName :: DedicatedIpPool -> Maybe (Value Text)
scalingMode :: DedicatedIpPool -> Maybe (Value Text)
tags :: DedicatedIpPool -> Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"PoolName" (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)
poolName,
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
"ScalingMode" (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)
scalingMode,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "PoolName" DedicatedIpPool where
type PropertyType "PoolName" DedicatedIpPool = Value Prelude.Text
set :: PropertyType "PoolName" DedicatedIpPool
-> DedicatedIpPool -> DedicatedIpPool
set PropertyType "PoolName" DedicatedIpPool
newValue DedicatedIpPool {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: DedicatedIpPool -> ()
poolName :: DedicatedIpPool -> Maybe (Value Text)
scalingMode :: DedicatedIpPool -> Maybe (Value Text)
tags :: DedicatedIpPool -> Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= DedicatedIpPool {poolName :: Maybe (Value Text)
poolName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PoolName" DedicatedIpPool
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "ScalingMode" DedicatedIpPool where
type PropertyType "ScalingMode" DedicatedIpPool = Value Prelude.Text
set :: PropertyType "ScalingMode" DedicatedIpPool
-> DedicatedIpPool -> DedicatedIpPool
set PropertyType "ScalingMode" DedicatedIpPool
newValue DedicatedIpPool {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: DedicatedIpPool -> ()
poolName :: DedicatedIpPool -> Maybe (Value Text)
scalingMode :: DedicatedIpPool -> Maybe (Value Text)
tags :: DedicatedIpPool -> Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= DedicatedIpPool {scalingMode :: Maybe (Value Text)
scalingMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingMode" DedicatedIpPool
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" DedicatedIpPool where
type PropertyType "Tags" DedicatedIpPool = [Tag]
set :: PropertyType "Tags" DedicatedIpPool
-> DedicatedIpPool -> DedicatedIpPool
set PropertyType "Tags" DedicatedIpPool
newValue DedicatedIpPool {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: DedicatedIpPool -> ()
poolName :: DedicatedIpPool -> Maybe (Value Text)
scalingMode :: DedicatedIpPool -> Maybe (Value Text)
tags :: DedicatedIpPool -> Maybe [Tag]
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= DedicatedIpPool {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" DedicatedIpPool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
haddock_workaround_ :: ()
poolName :: Maybe (Value Text)
scalingMode :: Maybe (Value Text)
..}