module Stratosphere.MediaLive.Input.InputVpcRequestProperty (
        InputVpcRequestProperty(..), mkInputVpcRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputVpcRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputvpcrequest.html>
    InputVpcRequestProperty {InputVpcRequestProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputvpcrequest.html#cfn-medialive-input-inputvpcrequest-securitygroupids>
                             InputVpcRequestProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-input-inputvpcrequest.html#cfn-medialive-input-inputvpcrequest-subnetids>
                             InputVpcRequestProperty -> Maybe (ValueList Text)
subnetIds :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (InputVpcRequestProperty -> InputVpcRequestProperty -> Bool
(InputVpcRequestProperty -> InputVpcRequestProperty -> Bool)
-> (InputVpcRequestProperty -> InputVpcRequestProperty -> Bool)
-> Eq InputVpcRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputVpcRequestProperty -> InputVpcRequestProperty -> Bool
== :: InputVpcRequestProperty -> InputVpcRequestProperty -> Bool
$c/= :: InputVpcRequestProperty -> InputVpcRequestProperty -> Bool
/= :: InputVpcRequestProperty -> InputVpcRequestProperty -> Bool
Prelude.Eq, Int -> InputVpcRequestProperty -> ShowS
[InputVpcRequestProperty] -> ShowS
InputVpcRequestProperty -> String
(Int -> InputVpcRequestProperty -> ShowS)
-> (InputVpcRequestProperty -> String)
-> ([InputVpcRequestProperty] -> ShowS)
-> Show InputVpcRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputVpcRequestProperty -> ShowS
showsPrec :: Int -> InputVpcRequestProperty -> ShowS
$cshow :: InputVpcRequestProperty -> String
show :: InputVpcRequestProperty -> String
$cshowList :: [InputVpcRequestProperty] -> ShowS
showList :: [InputVpcRequestProperty] -> ShowS
Prelude.Show)
mkInputVpcRequestProperty :: InputVpcRequestProperty
mkInputVpcRequestProperty :: InputVpcRequestProperty
mkInputVpcRequestProperty
  = InputVpcRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       subnetIds :: Maybe (ValueList Text)
subnetIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputVpcRequestProperty where
  toResourceProperties :: InputVpcRequestProperty -> ResourceProperties
toResourceProperties InputVpcRequestProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: InputVpcRequestProperty -> ()
securityGroupIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
subnetIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Input.InputVpcRequest",
         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 -> 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 -> 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
"SubnetIds" (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)
subnetIds])}
instance JSON.ToJSON InputVpcRequestProperty where
  toJSON :: InputVpcRequestProperty -> Value
toJSON InputVpcRequestProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: InputVpcRequestProperty -> ()
securityGroupIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
subnetIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList 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 -> 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 -> 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
"SubnetIds" (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)
subnetIds]))
instance Property "SecurityGroupIds" InputVpcRequestProperty where
  type PropertyType "SecurityGroupIds" InputVpcRequestProperty = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" InputVpcRequestProperty
-> InputVpcRequestProperty -> InputVpcRequestProperty
set PropertyType "SecurityGroupIds" InputVpcRequestProperty
newValue InputVpcRequestProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: InputVpcRequestProperty -> ()
securityGroupIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
subnetIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = InputVpcRequestProperty
        {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" InputVpcRequestProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
subnetIds :: Maybe (ValueList Text)
..}
instance Property "SubnetIds" InputVpcRequestProperty where
  type PropertyType "SubnetIds" InputVpcRequestProperty = ValueList Prelude.Text
  set :: PropertyType "SubnetIds" InputVpcRequestProperty
-> InputVpcRequestProperty -> InputVpcRequestProperty
set PropertyType "SubnetIds" InputVpcRequestProperty
newValue InputVpcRequestProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: InputVpcRequestProperty -> ()
securityGroupIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
subnetIds :: InputVpcRequestProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: Maybe (ValueList Text)
..}
    = InputVpcRequestProperty {subnetIds :: Maybe (ValueList Text)
subnetIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetIds" InputVpcRequestProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
..}