module Stratosphere.EC2.VPCEndpointConnectionNotification (
VPCEndpointConnectionNotification(..),
mkVPCEndpointConnectionNotification
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VPCEndpointConnectionNotification
=
VPCEndpointConnectionNotification {VPCEndpointConnectionNotification -> ()
haddock_workaround_ :: (),
VPCEndpointConnectionNotification -> ValueList Text
connectionEvents :: (ValueList Prelude.Text),
VPCEndpointConnectionNotification -> Value Text
connectionNotificationArn :: (Value Prelude.Text),
VPCEndpointConnectionNotification -> Maybe (Value Text)
serviceId :: (Prelude.Maybe (Value Prelude.Text)),
VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool
(VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool)
-> (VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool)
-> Eq VPCEndpointConnectionNotification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool
== :: VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool
$c/= :: VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool
/= :: VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification -> Bool
Prelude.Eq, Int -> VPCEndpointConnectionNotification -> ShowS
[VPCEndpointConnectionNotification] -> ShowS
VPCEndpointConnectionNotification -> String
(Int -> VPCEndpointConnectionNotification -> ShowS)
-> (VPCEndpointConnectionNotification -> String)
-> ([VPCEndpointConnectionNotification] -> ShowS)
-> Show VPCEndpointConnectionNotification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VPCEndpointConnectionNotification -> ShowS
showsPrec :: Int -> VPCEndpointConnectionNotification -> ShowS
$cshow :: VPCEndpointConnectionNotification -> String
show :: VPCEndpointConnectionNotification -> String
$cshowList :: [VPCEndpointConnectionNotification] -> ShowS
showList :: [VPCEndpointConnectionNotification] -> ShowS
Prelude.Show)
mkVPCEndpointConnectionNotification ::
ValueList Prelude.Text
-> Value Prelude.Text -> VPCEndpointConnectionNotification
mkVPCEndpointConnectionNotification :: ValueList Text -> Value Text -> VPCEndpointConnectionNotification
mkVPCEndpointConnectionNotification
ValueList Text
connectionEvents
Value Text
connectionNotificationArn
= VPCEndpointConnectionNotification
{haddock_workaround_ :: ()
haddock_workaround_ = (), connectionEvents :: ValueList Text
connectionEvents = ValueList Text
connectionEvents,
connectionNotificationArn :: Value Text
connectionNotificationArn = Value Text
connectionNotificationArn,
serviceId :: Maybe (Value Text)
serviceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, vPCEndpointId :: Maybe (Value Text)
vPCEndpointId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VPCEndpointConnectionNotification where
toResourceProperties :: VPCEndpointConnectionNotification -> ResourceProperties
toResourceProperties VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::VPCEndpointConnectionNotification",
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
"ConnectionEvents" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
connectionEvents,
Key
"ConnectionNotificationArn" 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
connectionNotificationArn]
([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
"ServiceId" (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)
serviceId,
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]))}
instance JSON.ToJSON VPCEndpointConnectionNotification where
toJSON :: VPCEndpointConnectionNotification -> Value
toJSON VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (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
"ConnectionEvents" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
connectionEvents,
Key
"ConnectionNotificationArn" 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
connectionNotificationArn]
([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
"ServiceId" (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)
serviceId,
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])))
instance Property "ConnectionEvents" VPCEndpointConnectionNotification where
type PropertyType "ConnectionEvents" VPCEndpointConnectionNotification = ValueList Prelude.Text
set :: PropertyType "ConnectionEvents" VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
set PropertyType "ConnectionEvents" VPCEndpointConnectionNotification
newValue VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
= VPCEndpointConnectionNotification
{connectionEvents :: ValueList Text
connectionEvents = PropertyType "ConnectionEvents" VPCEndpointConnectionNotification
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
instance Property "ConnectionNotificationArn" VPCEndpointConnectionNotification where
type PropertyType "ConnectionNotificationArn" VPCEndpointConnectionNotification = Value Prelude.Text
set :: PropertyType
"ConnectionNotificationArn" VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
set PropertyType
"ConnectionNotificationArn" VPCEndpointConnectionNotification
newValue VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
= VPCEndpointConnectionNotification
{connectionNotificationArn :: Value Text
connectionNotificationArn = PropertyType
"ConnectionNotificationArn" VPCEndpointConnectionNotification
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
instance Property "ServiceId" VPCEndpointConnectionNotification where
type PropertyType "ServiceId" VPCEndpointConnectionNotification = Value Prelude.Text
set :: PropertyType "ServiceId" VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
set PropertyType "ServiceId" VPCEndpointConnectionNotification
newValue VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
= VPCEndpointConnectionNotification
{serviceId :: Maybe (Value Text)
serviceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServiceId" VPCEndpointConnectionNotification
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
vPCEndpointId :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
vPCEndpointId :: Maybe (Value Text)
..}
instance Property "VPCEndpointId" VPCEndpointConnectionNotification where
type PropertyType "VPCEndpointId" VPCEndpointConnectionNotification = Value Prelude.Text
set :: PropertyType "VPCEndpointId" VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
-> VPCEndpointConnectionNotification
set PropertyType "VPCEndpointId" VPCEndpointConnectionNotification
newValue VPCEndpointConnectionNotification {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VPCEndpointConnectionNotification -> ()
connectionEvents :: VPCEndpointConnectionNotification -> ValueList Text
connectionNotificationArn :: VPCEndpointConnectionNotification -> Value Text
serviceId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
vPCEndpointId :: VPCEndpointConnectionNotification -> Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
vPCEndpointId :: Maybe (Value Text)
..}
= VPCEndpointConnectionNotification
{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" VPCEndpointConnectionNotification
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
haddock_workaround_ :: ()
connectionEvents :: ValueList Text
connectionNotificationArn :: Value Text
serviceId :: Maybe (Value Text)
..}