module Stratosphere.OSIS.Pipeline.VpcEndpointProperty (
        module Exports, VpcEndpointProperty(..), mkVpcEndpointProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.OSIS.Pipeline.VpcOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcEndpointProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcendpoint.html>
    VpcEndpointProperty {VpcEndpointProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcendpoint.html#cfn-osis-pipeline-vpcendpoint-vpcendpointid>
                         VpcEndpointProperty -> Maybe (Value Text)
vpcEndpointId :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcendpoint.html#cfn-osis-pipeline-vpcendpoint-vpcid>
                         VpcEndpointProperty -> Maybe (Value Text)
vpcId :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcendpoint.html#cfn-osis-pipeline-vpcendpoint-vpcoptions>
                         VpcEndpointProperty -> Maybe VpcOptionsProperty
vpcOptions :: (Prelude.Maybe VpcOptionsProperty)}
  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_ = (), 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, vpcOptions :: Maybe VpcOptionsProperty
vpcOptions = Maybe VpcOptionsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcEndpointProperty where
  toResourceProperties :: VpcEndpointProperty -> ResourceProperties
toResourceProperties VpcEndpointProperty {Maybe (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: VpcEndpointProperty -> ()
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
vpcOptions :: VpcEndpointProperty -> Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::OSIS::Pipeline.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 -> 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,
                            Key -> VpcOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcOptions" (VpcOptionsProperty -> (Key, Value))
-> Maybe VpcOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcOptionsProperty
vpcOptions])}
instance JSON.ToJSON VpcEndpointProperty where
  toJSON :: VpcEndpointProperty -> Value
toJSON VpcEndpointProperty {Maybe (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: VpcEndpointProperty -> ()
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
vpcOptions :: VpcEndpointProperty -> Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
    = [(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
"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,
               Key -> VpcOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcOptions" (VpcOptionsProperty -> (Key, Value))
-> Maybe VpcOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcOptionsProperty
vpcOptions]))
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 (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: VpcEndpointProperty -> ()
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
vpcOptions :: VpcEndpointProperty -> Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
    = 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 (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: ()
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
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 (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: VpcEndpointProperty -> ()
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
vpcOptions :: VpcEndpointProperty -> Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
    = 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 (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
instance Property "VpcOptions" VpcEndpointProperty where
  type PropertyType "VpcOptions" VpcEndpointProperty = VpcOptionsProperty
  set :: PropertyType "VpcOptions" VpcEndpointProperty
-> VpcEndpointProperty -> VpcEndpointProperty
set PropertyType "VpcOptions" VpcEndpointProperty
newValue VpcEndpointProperty {Maybe (Value Text)
Maybe VpcOptionsProperty
()
haddock_workaround_ :: VpcEndpointProperty -> ()
vpcEndpointId :: VpcEndpointProperty -> Maybe (Value Text)
vpcId :: VpcEndpointProperty -> Maybe (Value Text)
vpcOptions :: VpcEndpointProperty -> Maybe VpcOptionsProperty
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
vpcOptions :: Maybe VpcOptionsProperty
..}
    = VpcEndpointProperty {vpcOptions :: Maybe VpcOptionsProperty
vpcOptions = VpcOptionsProperty -> Maybe VpcOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcOptions" VpcEndpointProperty
VpcOptionsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
haddock_workaround_ :: ()
vpcEndpointId :: Maybe (Value Text)
vpcId :: Maybe (Value Text)
..}