module Stratosphere.RedshiftServerless.Workgroup.VpcEndpointProperty (
module Exports, VpcEndpointProperty(..), mkVpcEndpointProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RedshiftServerless.Workgroup.NetworkInterfaceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcEndpointProperty
=
VpcEndpointProperty {VpcEndpointProperty -> ()
haddock_workaround_ :: (),
VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
networkInterfaces :: (Prelude.Maybe [NetworkInterfaceProperty]),
VpcEndpointProperty -> Maybe (Value Text)
vpcEndpointId :: (Prelude.Maybe (Value Prelude.Text)),
VpcEndpointProperty -> Maybe (Value Text)
vpcId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VpcEndpointProperty -> VpcEndpointProperty -> Bool
(VpcEndpointProperty -> VpcEndpointProperty -> Bool)
-> (VpcEndpointProperty -> VpcEndpointProperty -> Bool)
-> Eq VpcEndpointProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcEndpointProperty -> VpcEndpointProperty -> Bool
== :: VpcEndpointProperty -> VpcEndpointProperty -> Bool
$c/= :: VpcEndpointProperty -> VpcEndpointProperty -> Bool
/= :: VpcEndpointProperty -> VpcEndpointProperty -> Bool
Prelude.Eq, Int -> VpcEndpointProperty -> ShowS
[VpcEndpointProperty] -> ShowS
VpcEndpointProperty -> String
(Int -> VpcEndpointProperty -> ShowS)
-> (VpcEndpointProperty -> String)
-> ([VpcEndpointProperty] -> ShowS)
-> Show VpcEndpointProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcEndpointProperty -> ShowS
showsPrec :: Int -> VpcEndpointProperty -> ShowS
$cshow :: VpcEndpointProperty -> String
show :: VpcEndpointProperty -> String
$cshowList :: [VpcEndpointProperty] -> ShowS
showList :: [VpcEndpointProperty] -> ShowS
Prelude.Show)
mkVpcEndpointProperty :: VpcEndpointProperty
mkVpcEndpointProperty :: VpcEndpointProperty
mkVpcEndpointProperty
= VpcEndpointProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), networkInterfaces :: Maybe [NetworkInterfaceProperty]
networkInterfaces = Maybe [NetworkInterfaceProperty]
forall a. Maybe a
Prelude.Nothing,
vpcEndpointId :: Maybe (Value Text)
vpcEndpointId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, vpcId :: Maybe (Value Text)
vpcId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcEndpointProperty where
toResourceProperties :: VpcEndpointProperty -> ResourceProperties
toResourceProperties VpcEndpointProperty {Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: VpcEndpointProperty -> ()
networkInterfaces :: VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RedshiftServerless::Workgroup.VpcEndpoint",
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 -> [NetworkInterfaceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NetworkInterfaces" ([NetworkInterfaceProperty] -> (Key, Value))
-> Maybe [NetworkInterfaceProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NetworkInterfaceProperty]
networkInterfaces,
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
"VpcEndpointId" (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)
vpcEndpointId,
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
"VpcId" (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)
vpcId])}
instance JSON.ToJSON VpcEndpointProperty where
toJSON :: VpcEndpointProperty -> Value
toJSON VpcEndpointProperty {Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: VpcEndpointProperty -> ()
networkInterfaces :: VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
vpcId :: 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 -> [NetworkInterfaceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NetworkInterfaces" ([NetworkInterfaceProperty] -> (Key, Value))
-> Maybe [NetworkInterfaceProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NetworkInterfaceProperty]
networkInterfaces,
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
"VpcEndpointId" (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)
vpcEndpointId,
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
"VpcId" (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)
vpcId]))
instance Property "NetworkInterfaces" VpcEndpointProperty where
type PropertyType "NetworkInterfaces" VpcEndpointProperty = [NetworkInterfaceProperty]
set :: PropertyType "NetworkInterfaces" VpcEndpointProperty
-> VpcEndpointProperty -> VpcEndpointProperty
set PropertyType "NetworkInterfaces" VpcEndpointProperty
newValue VpcEndpointProperty {Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: VpcEndpointProperty -> ()
networkInterfaces :: VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= VpcEndpointProperty
{networkInterfaces :: Maybe [NetworkInterfaceProperty]
networkInterfaces = [NetworkInterfaceProperty] -> Maybe [NetworkInterfaceProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [NetworkInterfaceProperty]
PropertyType "NetworkInterfaces" VpcEndpointProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
instance Property "VpcEndpointId" VpcEndpointProperty where
type PropertyType "VpcEndpointId" VpcEndpointProperty = Value Prelude.Text
set :: PropertyType "VpcEndpointId" VpcEndpointProperty
-> VpcEndpointProperty -> VpcEndpointProperty
set PropertyType "VpcEndpointId" VpcEndpointProperty
newValue VpcEndpointProperty {Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: VpcEndpointProperty -> ()
networkInterfaces :: VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= VpcEndpointProperty {vpcEndpointId :: Maybe (Value Text)
vpcEndpointId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcEndpointId" VpcEndpointProperty
Value Text
newValue, Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcId :: Maybe (Value Text)
..}
instance Property "VpcId" VpcEndpointProperty where
type PropertyType "VpcId" VpcEndpointProperty = Value Prelude.Text
set :: PropertyType "VpcId" VpcEndpointProperty
-> VpcEndpointProperty -> VpcEndpointProperty
set PropertyType "VpcId" VpcEndpointProperty
newValue VpcEndpointProperty {Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: VpcEndpointProperty -> ()
networkInterfaces :: VpcEndpointProperty -> Maybe [NetworkInterfaceProperty]
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}
= VpcEndpointProperty {vpcId :: Maybe (Value Text)
vpcId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcId" VpcEndpointProperty
Value Text
newValue, Maybe [NetworkInterfaceProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
haddock_workaround_ :: ()
networkInterfaces :: Maybe [NetworkInterfaceProperty]
vpcEndpointId :: Maybe (Value Text)
..}