module Stratosphere.EC2.SubnetCidrBlock (
SubnetCidrBlock(..), mkSubnetCidrBlock
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubnetCidrBlock
=
SubnetCidrBlock {SubnetCidrBlock -> ()
haddock_workaround_ :: (),
SubnetCidrBlock -> Maybe (Value Text)
ipv6CidrBlock :: (Prelude.Maybe (Value Prelude.Text)),
SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: (Prelude.Maybe (Value Prelude.Text)),
SubnetCidrBlock -> Maybe (Value Integer)
ipv6NetmaskLength :: (Prelude.Maybe (Value Prelude.Integer)),
SubnetCidrBlock -> Value Text
subnetId :: (Value Prelude.Text)}
deriving stock (SubnetCidrBlock -> SubnetCidrBlock -> Bool
(SubnetCidrBlock -> SubnetCidrBlock -> Bool)
-> (SubnetCidrBlock -> SubnetCidrBlock -> Bool)
-> Eq SubnetCidrBlock
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubnetCidrBlock -> SubnetCidrBlock -> Bool
== :: SubnetCidrBlock -> SubnetCidrBlock -> Bool
$c/= :: SubnetCidrBlock -> SubnetCidrBlock -> Bool
/= :: SubnetCidrBlock -> SubnetCidrBlock -> Bool
Prelude.Eq, Int -> SubnetCidrBlock -> ShowS
[SubnetCidrBlock] -> ShowS
SubnetCidrBlock -> String
(Int -> SubnetCidrBlock -> ShowS)
-> (SubnetCidrBlock -> String)
-> ([SubnetCidrBlock] -> ShowS)
-> Show SubnetCidrBlock
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubnetCidrBlock -> ShowS
showsPrec :: Int -> SubnetCidrBlock -> ShowS
$cshow :: SubnetCidrBlock -> String
show :: SubnetCidrBlock -> String
$cshowList :: [SubnetCidrBlock] -> ShowS
showList :: [SubnetCidrBlock] -> ShowS
Prelude.Show)
mkSubnetCidrBlock :: Value Prelude.Text -> SubnetCidrBlock
mkSubnetCidrBlock :: Value Text -> SubnetCidrBlock
mkSubnetCidrBlock Value Text
subnetId
= SubnetCidrBlock
{haddock_workaround_ :: ()
haddock_workaround_ = (), subnetId :: Value Text
subnetId = Value Text
subnetId,
ipv6CidrBlock :: Maybe (Value Text)
ipv6CidrBlock = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, ipv6IpamPoolId :: Maybe (Value Text)
ipv6IpamPoolId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
ipv6NetmaskLength :: Maybe (Value Integer)
ipv6NetmaskLength = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SubnetCidrBlock where
toResourceProperties :: SubnetCidrBlock -> ResourceProperties
toResourceProperties SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::SubnetCidrBlock",
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
"SubnetId" 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
subnetId]
([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
"Ipv6CidrBlock" (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)
ipv6CidrBlock,
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
"Ipv6IpamPoolId" (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)
ipv6IpamPoolId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6NetmaskLength" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
ipv6NetmaskLength]))}
instance JSON.ToJSON SubnetCidrBlock where
toJSON :: SubnetCidrBlock -> Value
toJSON SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: 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
"SubnetId" 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
subnetId]
([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
"Ipv6CidrBlock" (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)
ipv6CidrBlock,
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
"Ipv6IpamPoolId" (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)
ipv6IpamPoolId,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6NetmaskLength" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
ipv6NetmaskLength])))
instance Property "Ipv6CidrBlock" SubnetCidrBlock where
type PropertyType "Ipv6CidrBlock" SubnetCidrBlock = Value Prelude.Text
set :: PropertyType "Ipv6CidrBlock" SubnetCidrBlock
-> SubnetCidrBlock -> SubnetCidrBlock
set PropertyType "Ipv6CidrBlock" SubnetCidrBlock
newValue SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
= SubnetCidrBlock {ipv6CidrBlock :: Maybe (Value Text)
ipv6CidrBlock = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6CidrBlock" SubnetCidrBlock
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
haddock_workaround_ :: ()
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
instance Property "Ipv6IpamPoolId" SubnetCidrBlock where
type PropertyType "Ipv6IpamPoolId" SubnetCidrBlock = Value Prelude.Text
set :: PropertyType "Ipv6IpamPoolId" SubnetCidrBlock
-> SubnetCidrBlock -> SubnetCidrBlock
set PropertyType "Ipv6IpamPoolId" SubnetCidrBlock
newValue SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
= SubnetCidrBlock {ipv6IpamPoolId :: Maybe (Value Text)
ipv6IpamPoolId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6IpamPoolId" SubnetCidrBlock
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
instance Property "Ipv6NetmaskLength" SubnetCidrBlock where
type PropertyType "Ipv6NetmaskLength" SubnetCidrBlock = Value Prelude.Integer
set :: PropertyType "Ipv6NetmaskLength" SubnetCidrBlock
-> SubnetCidrBlock -> SubnetCidrBlock
set PropertyType "Ipv6NetmaskLength" SubnetCidrBlock
newValue SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
= SubnetCidrBlock {ipv6NetmaskLength :: Maybe (Value Integer)
ipv6NetmaskLength = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6NetmaskLength" SubnetCidrBlock
Value Integer
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
subnetId :: Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
subnetId :: Value Text
..}
instance Property "SubnetId" SubnetCidrBlock where
type PropertyType "SubnetId" SubnetCidrBlock = Value Prelude.Text
set :: PropertyType "SubnetId" SubnetCidrBlock
-> SubnetCidrBlock -> SubnetCidrBlock
set PropertyType "SubnetId" SubnetCidrBlock
newValue SubnetCidrBlock {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SubnetCidrBlock -> ()
ipv6CidrBlock :: SubnetCidrBlock -> Maybe (Value Text)
ipv6IpamPoolId :: SubnetCidrBlock -> Maybe (Value Text)
ipv6NetmaskLength :: SubnetCidrBlock -> Maybe (Value Integer)
subnetId :: SubnetCidrBlock -> Value Text
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
subnetId :: Value Text
..}
= SubnetCidrBlock {subnetId :: Value Text
subnetId = PropertyType "SubnetId" SubnetCidrBlock
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
haddock_workaround_ :: ()
ipv6CidrBlock :: Maybe (Value Text)
ipv6IpamPoolId :: Maybe (Value Text)
ipv6NetmaskLength :: Maybe (Value Integer)
..}