module Stratosphere.Route53Resolver.ResolverEndpoint.IpAddressRequestProperty (
IpAddressRequestProperty(..), mkIpAddressRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IpAddressRequestProperty
=
IpAddressRequestProperty {IpAddressRequestProperty -> ()
haddock_workaround_ :: (),
IpAddressRequestProperty -> Maybe (Value Text)
ip :: (Prelude.Maybe (Value Prelude.Text)),
IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: (Prelude.Maybe (Value Prelude.Text)),
IpAddressRequestProperty -> Value Text
subnetId :: (Value Prelude.Text)}
deriving stock (IpAddressRequestProperty -> IpAddressRequestProperty -> Bool
(IpAddressRequestProperty -> IpAddressRequestProperty -> Bool)
-> (IpAddressRequestProperty -> IpAddressRequestProperty -> Bool)
-> Eq IpAddressRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IpAddressRequestProperty -> IpAddressRequestProperty -> Bool
== :: IpAddressRequestProperty -> IpAddressRequestProperty -> Bool
$c/= :: IpAddressRequestProperty -> IpAddressRequestProperty -> Bool
/= :: IpAddressRequestProperty -> IpAddressRequestProperty -> Bool
Prelude.Eq, Int -> IpAddressRequestProperty -> ShowS
[IpAddressRequestProperty] -> ShowS
IpAddressRequestProperty -> String
(Int -> IpAddressRequestProperty -> ShowS)
-> (IpAddressRequestProperty -> String)
-> ([IpAddressRequestProperty] -> ShowS)
-> Show IpAddressRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IpAddressRequestProperty -> ShowS
showsPrec :: Int -> IpAddressRequestProperty -> ShowS
$cshow :: IpAddressRequestProperty -> String
show :: IpAddressRequestProperty -> String
$cshowList :: [IpAddressRequestProperty] -> ShowS
showList :: [IpAddressRequestProperty] -> ShowS
Prelude.Show)
mkIpAddressRequestProperty ::
Value Prelude.Text -> IpAddressRequestProperty
mkIpAddressRequestProperty :: Value Text -> IpAddressRequestProperty
mkIpAddressRequestProperty Value Text
subnetId
= IpAddressRequestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), subnetId :: Value Text
subnetId = Value Text
subnetId,
ip :: Maybe (Value Text)
ip = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, ipv6 :: Maybe (Value Text)
ipv6 = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IpAddressRequestProperty where
toResourceProperties :: IpAddressRequestProperty -> ResourceProperties
toResourceProperties IpAddressRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IpAddressRequestProperty -> ()
ip :: IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: IpAddressRequestProperty -> Maybe (Value Text)
subnetId :: IpAddressRequestProperty -> Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Route53Resolver::ResolverEndpoint.IpAddressRequest",
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
"Ip" (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)
ip,
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
"Ipv6" (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)
ipv6]))}
instance JSON.ToJSON IpAddressRequestProperty where
toJSON :: IpAddressRequestProperty -> Value
toJSON IpAddressRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IpAddressRequestProperty -> ()
ip :: IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: IpAddressRequestProperty -> Maybe (Value Text)
subnetId :: IpAddressRequestProperty -> Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
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
"Ip" (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)
ip,
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
"Ipv6" (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)
ipv6])))
instance Property "Ip" IpAddressRequestProperty where
type PropertyType "Ip" IpAddressRequestProperty = Value Prelude.Text
set :: PropertyType "Ip" IpAddressRequestProperty
-> IpAddressRequestProperty -> IpAddressRequestProperty
set PropertyType "Ip" IpAddressRequestProperty
newValue IpAddressRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IpAddressRequestProperty -> ()
ip :: IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: IpAddressRequestProperty -> Maybe (Value Text)
subnetId :: IpAddressRequestProperty -> Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
..}
= IpAddressRequestProperty {ip :: Maybe (Value Text)
ip = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ip" IpAddressRequestProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
haddock_workaround_ :: ()
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
..}
instance Property "Ipv6" IpAddressRequestProperty where
type PropertyType "Ipv6" IpAddressRequestProperty = Value Prelude.Text
set :: PropertyType "Ipv6" IpAddressRequestProperty
-> IpAddressRequestProperty -> IpAddressRequestProperty
set PropertyType "Ipv6" IpAddressRequestProperty
newValue IpAddressRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IpAddressRequestProperty -> ()
ip :: IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: IpAddressRequestProperty -> Maybe (Value Text)
subnetId :: IpAddressRequestProperty -> Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
..}
= IpAddressRequestProperty {ipv6 :: Maybe (Value Text)
ipv6 = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6" IpAddressRequestProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
subnetId :: Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
subnetId :: Value Text
..}
instance Property "SubnetId" IpAddressRequestProperty where
type PropertyType "SubnetId" IpAddressRequestProperty = Value Prelude.Text
set :: PropertyType "SubnetId" IpAddressRequestProperty
-> IpAddressRequestProperty -> IpAddressRequestProperty
set PropertyType "SubnetId" IpAddressRequestProperty
newValue IpAddressRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: IpAddressRequestProperty -> ()
ip :: IpAddressRequestProperty -> Maybe (Value Text)
ipv6 :: IpAddressRequestProperty -> Maybe (Value Text)
subnetId :: IpAddressRequestProperty -> Value Text
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
subnetId :: Value Text
..}
= IpAddressRequestProperty {subnetId :: Value Text
subnetId = PropertyType "SubnetId" IpAddressRequestProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
haddock_workaround_ :: ()
ip :: Maybe (Value Text)
ipv6 :: Maybe (Value Text)
..}