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