module Stratosphere.OSIS.Pipeline.VpcOptionsProperty (
        module Exports, VpcOptionsProperty(..), mkVpcOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.OSIS.Pipeline.VpcAttachmentOptionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html>
    VpcOptionsProperty {VpcOptionsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-securitygroupids>
                        VpcOptionsProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-subnetids>
                        VpcOptionsProperty -> ValueList Text
subnetIds :: (ValueList Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcattachmentoptions>
                        VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcAttachmentOptions :: (Prelude.Maybe VpcAttachmentOptionsProperty),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-osis-pipeline-vpcoptions.html#cfn-osis-pipeline-vpcoptions-vpcendpointmanagement>
                        VpcOptionsProperty -> Maybe (Value Text)
vpcEndpointManagement :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (VpcOptionsProperty -> VpcOptionsProperty -> Bool
(VpcOptionsProperty -> VpcOptionsProperty -> Bool)
-> (VpcOptionsProperty -> VpcOptionsProperty -> Bool)
-> Eq VpcOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
== :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
$c/= :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
/= :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
Prelude.Eq, Int -> VpcOptionsProperty -> ShowS
[VpcOptionsProperty] -> ShowS
VpcOptionsProperty -> String
(Int -> VpcOptionsProperty -> ShowS)
-> (VpcOptionsProperty -> String)
-> ([VpcOptionsProperty] -> ShowS)
-> Show VpcOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcOptionsProperty -> ShowS
showsPrec :: Int -> VpcOptionsProperty -> ShowS
$cshow :: VpcOptionsProperty -> String
show :: VpcOptionsProperty -> String
$cshowList :: [VpcOptionsProperty] -> ShowS
showList :: [VpcOptionsProperty] -> ShowS
Prelude.Show)
mkVpcOptionsProperty ::
  ValueList Prelude.Text -> VpcOptionsProperty
mkVpcOptionsProperty :: ValueList Text -> VpcOptionsProperty
mkVpcOptionsProperty ValueList Text
subnetIds
  = VpcOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), subnetIds :: ValueList Text
subnetIds = ValueList Text
subnetIds,
       securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcAttachmentOptions = Maybe VpcAttachmentOptionsProperty
forall a. Maybe a
Prelude.Nothing,
       vpcEndpointManagement :: Maybe (Value Text)
vpcEndpointManagement = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcOptionsProperty where
  toResourceProperties :: VpcOptionsProperty -> ResourceProperties
toResourceProperties VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::OSIS::Pipeline.VpcOptions",
         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
"SubnetIds" 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
subnetIds]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
                               Key -> VpcAttachmentOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcAttachmentOptions" (VpcAttachmentOptionsProperty -> (Key, Value))
-> Maybe VpcAttachmentOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcAttachmentOptionsProperty
vpcAttachmentOptions,
                               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
"VpcEndpointManagement"
                                 (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)
vpcEndpointManagement]))}
instance JSON.ToJSON VpcOptionsProperty where
  toJSON :: VpcOptionsProperty -> Value
toJSON VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: 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
"SubnetIds" 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
subnetIds]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds,
                  Key -> VpcAttachmentOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VpcAttachmentOptions" (VpcAttachmentOptionsProperty -> (Key, Value))
-> Maybe VpcAttachmentOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcAttachmentOptionsProperty
vpcAttachmentOptions,
                  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
"VpcEndpointManagement"
                    (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)
vpcEndpointManagement])))
instance Property "SecurityGroupIds" VpcOptionsProperty where
  type PropertyType "SecurityGroupIds" VpcOptionsProperty = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "SecurityGroupIds" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
    = VpcOptionsProperty {securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" VpcOptionsProperty
ValueList Text
newValue, Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: ()
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
haddock_workaround_ :: ()
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
instance Property "SubnetIds" VpcOptionsProperty where
  type PropertyType "SubnetIds" VpcOptionsProperty = ValueList Prelude.Text
  set :: PropertyType "SubnetIds" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "SubnetIds" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
    = VpcOptionsProperty {subnetIds :: ValueList Text
subnetIds = PropertyType "SubnetIds" VpcOptionsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
instance Property "VpcAttachmentOptions" VpcOptionsProperty where
  type PropertyType "VpcAttachmentOptions" VpcOptionsProperty = VpcAttachmentOptionsProperty
  set :: PropertyType "VpcAttachmentOptions" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "VpcAttachmentOptions" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
    = VpcOptionsProperty
        {vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcAttachmentOptions = VpcAttachmentOptionsProperty -> Maybe VpcAttachmentOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcAttachmentOptions" VpcOptionsProperty
VpcAttachmentOptionsProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcEndpointManagement :: Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcEndpointManagement :: Maybe (Value Text)
..}
instance Property "VpcEndpointManagement" VpcOptionsProperty where
  type PropertyType "VpcEndpointManagement" VpcOptionsProperty = Value Prelude.Text
  set :: PropertyType "VpcEndpointManagement" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "VpcEndpointManagement" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: VpcOptionsProperty -> ()
securityGroupIds :: VpcOptionsProperty -> Maybe (ValueList Text)
subnetIds :: VpcOptionsProperty -> ValueList Text
vpcAttachmentOptions :: VpcOptionsProperty -> Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: VpcOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
vpcEndpointManagement :: Maybe (Value Text)
..}
    = VpcOptionsProperty
        {vpcEndpointManagement :: Maybe (Value Text)
vpcEndpointManagement = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcEndpointManagement" VpcOptionsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe VpcAttachmentOptionsProperty
()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
vpcAttachmentOptions :: Maybe VpcAttachmentOptionsProperty
..}