module Stratosphere.EC2.Instance.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 -> Value Bool
primary :: (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.Bool
-> Value Prelude.Text -> PrivateIpAddressSpecificationProperty
mkPrivateIpAddressSpecificationProperty :: Value Bool -> Value Text -> PrivateIpAddressSpecificationProperty
mkPrivateIpAddressSpecificationProperty Value Bool
primary Value Text
privateIpAddress
= PrivateIpAddressSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), primary :: Value Bool
primary = Value Bool
primary,
privateIpAddress :: Value Text
privateIpAddress = Value Text
privateIpAddress}
instance ToResourceProperties PrivateIpAddressSpecificationProperty where
toResourceProperties :: PrivateIpAddressSpecificationProperty -> ResourceProperties
toResourceProperties PrivateIpAddressSpecificationProperty {()
Value Bool
Value Text
haddock_workaround_ :: PrivateIpAddressSpecificationProperty -> ()
primary :: PrivateIpAddressSpecificationProperty -> Value Bool
privateIpAddress :: PrivateIpAddressSpecificationProperty -> Value Text
haddock_workaround_ :: ()
primary :: Value Bool
privateIpAddress :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::Instance.PrivateIpAddressSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Primary" 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..= Value Bool
primary,
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]}
instance JSON.ToJSON PrivateIpAddressSpecificationProperty where
toJSON :: PrivateIpAddressSpecificationProperty -> Value
toJSON PrivateIpAddressSpecificationProperty {()
Value Bool
Value Text
haddock_workaround_ :: PrivateIpAddressSpecificationProperty -> ()
primary :: PrivateIpAddressSpecificationProperty -> Value Bool
privateIpAddress :: PrivateIpAddressSpecificationProperty -> Value Text
haddock_workaround_ :: ()
primary :: Value Bool
privateIpAddress :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Primary" 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..= Value Bool
primary,
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]
instance Property "Primary" PrivateIpAddressSpecificationProperty where
type PropertyType "Primary" PrivateIpAddressSpecificationProperty = Value Prelude.Bool
set :: PropertyType "Primary" PrivateIpAddressSpecificationProperty
-> PrivateIpAddressSpecificationProperty
-> PrivateIpAddressSpecificationProperty
set PropertyType "Primary" PrivateIpAddressSpecificationProperty
newValue PrivateIpAddressSpecificationProperty {()
Value Bool
Value Text
haddock_workaround_ :: PrivateIpAddressSpecificationProperty -> ()
primary :: PrivateIpAddressSpecificationProperty -> Value Bool
privateIpAddress :: PrivateIpAddressSpecificationProperty -> Value Text
haddock_workaround_ :: ()
primary :: Value Bool
privateIpAddress :: Value Text
..}
= PrivateIpAddressSpecificationProperty {primary :: Value Bool
primary = 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 {()
Value Bool
Value Text
haddock_workaround_ :: PrivateIpAddressSpecificationProperty -> ()
primary :: PrivateIpAddressSpecificationProperty -> Value Bool
privateIpAddress :: PrivateIpAddressSpecificationProperty -> Value Text
haddock_workaround_ :: ()
primary :: Value Bool
privateIpAddress :: Value Text
..}
= PrivateIpAddressSpecificationProperty
{privateIpAddress :: Value Text
privateIpAddress = PropertyType
"PrivateIpAddress" PrivateIpAddressSpecificationProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
primary :: Value Bool
haddock_workaround_ :: ()
primary :: Value Bool
..}