module Stratosphere.Redshift.EndpointAccess.NetworkInterfaceProperty (
NetworkInterfaceProperty(..), mkNetworkInterfaceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkInterfaceProperty
=
NetworkInterfaceProperty {NetworkInterfaceProperty -> ()
haddock_workaround_ :: (),
NetworkInterfaceProperty -> Maybe (Value Text)
availabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: (Prelude.Maybe (Value Prelude.Text)),
NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: (Prelude.Maybe (Value Prelude.Text)),
NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
(NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> Eq NetworkInterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
$c/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
Prelude.Eq, Int -> NetworkInterfaceProperty -> ShowS
[NetworkInterfaceProperty] -> ShowS
NetworkInterfaceProperty -> String
(Int -> NetworkInterfaceProperty -> ShowS)
-> (NetworkInterfaceProperty -> String)
-> ([NetworkInterfaceProperty] -> ShowS)
-> Show NetworkInterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkInterfaceProperty -> ShowS
showsPrec :: Int -> NetworkInterfaceProperty -> ShowS
$cshow :: NetworkInterfaceProperty -> String
show :: NetworkInterfaceProperty -> String
$cshowList :: [NetworkInterfaceProperty] -> ShowS
showList :: [NetworkInterfaceProperty] -> ShowS
Prelude.Show)
mkNetworkInterfaceProperty :: NetworkInterfaceProperty
mkNetworkInterfaceProperty :: NetworkInterfaceProperty
mkNetworkInterfaceProperty
= NetworkInterfaceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), availabilityZone :: Maybe (Value Text)
availabilityZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
networkInterfaceId :: Maybe (Value Text)
networkInterfaceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
privateIpAddress :: Maybe (Value Text)
privateIpAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, subnetId :: Maybe (Value Text)
subnetId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NetworkInterfaceProperty where
toResourceProperties :: NetworkInterfaceProperty -> ResourceProperties
toResourceProperties NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Redshift::EndpointAccess.NetworkInterface",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"AvailabilityZone" (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)
availabilityZone,
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
"NetworkInterfaceId" (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)
networkInterfaceId,
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
"PrivateIpAddress" (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)
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..=) Key
"SubnetId" (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)
subnetId])}
instance JSON.ToJSON NetworkInterfaceProperty where
toJSON :: NetworkInterfaceProperty -> Value
toJSON NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= [(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
"AvailabilityZone" (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)
availabilityZone,
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
"NetworkInterfaceId" (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)
networkInterfaceId,
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
"PrivateIpAddress" (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)
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..=) Key
"SubnetId" (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)
subnetId]))
instance Property "AvailabilityZone" NetworkInterfaceProperty where
type PropertyType "AvailabilityZone" NetworkInterfaceProperty = Value Prelude.Text
set :: PropertyType "AvailabilityZone" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "AvailabilityZone" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= NetworkInterfaceProperty
{availabilityZone :: Maybe (Value Text)
availabilityZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AvailabilityZone" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "NetworkInterfaceId" NetworkInterfaceProperty where
type PropertyType "NetworkInterfaceId" NetworkInterfaceProperty = Value Prelude.Text
set :: PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= NetworkInterfaceProperty
{networkInterfaceId :: Maybe (Value Text)
networkInterfaceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "PrivateIpAddress" NetworkInterfaceProperty where
type PropertyType "PrivateIpAddress" NetworkInterfaceProperty = Value Prelude.Text
set :: PropertyType "PrivateIpAddress" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "PrivateIpAddress" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= NetworkInterfaceProperty
{privateIpAddress :: Maybe (Value Text)
privateIpAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrivateIpAddress" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
instance Property "SubnetId" NetworkInterfaceProperty where
type PropertyType "SubnetId" NetworkInterfaceProperty = Value Prelude.Text
set :: PropertyType "SubnetId" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "SubnetId" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {Maybe (Value Text)
()
haddock_workaround_ :: NetworkInterfaceProperty -> ()
availabilityZone :: NetworkInterfaceProperty -> Maybe (Value Text)
networkInterfaceId :: NetworkInterfaceProperty -> Maybe (Value Text)
privateIpAddress :: NetworkInterfaceProperty -> Maybe (Value Text)
subnetId :: NetworkInterfaceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}
= NetworkInterfaceProperty {subnetId :: Maybe (Value Text)
subnetId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetId" NetworkInterfaceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
networkInterfaceId :: Maybe (Value Text)
privateIpAddress :: Maybe (Value Text)
..}