module Stratosphere.MediaConnect.Flow.VpcInterfaceProperty (
        VpcInterfaceProperty(..), mkVpcInterfaceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcInterfaceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html>
    VpcInterfaceProperty {VpcInterfaceProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-name>
                          VpcInterfaceProperty -> Value Text
name :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfaceids>
                          VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceIds :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-networkinterfacetype>
                          VpcInterfaceProperty -> Maybe (Value Text)
networkInterfaceType :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-rolearn>
                          VpcInterfaceProperty -> Value Text
roleArn :: (Value Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-securitygroupids>
                          VpcInterfaceProperty -> ValueList Text
securityGroupIds :: (ValueList Prelude.Text),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-vpcinterface.html#cfn-mediaconnect-flow-vpcinterface-subnetid>
                          VpcInterfaceProperty -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (VpcInterfaceProperty -> VpcInterfaceProperty -> Bool
(VpcInterfaceProperty -> VpcInterfaceProperty -> Bool)
-> (VpcInterfaceProperty -> VpcInterfaceProperty -> Bool)
-> Eq VpcInterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcInterfaceProperty -> VpcInterfaceProperty -> Bool
== :: VpcInterfaceProperty -> VpcInterfaceProperty -> Bool
$c/= :: VpcInterfaceProperty -> VpcInterfaceProperty -> Bool
/= :: VpcInterfaceProperty -> VpcInterfaceProperty -> Bool
Prelude.Eq, Int -> VpcInterfaceProperty -> ShowS
[VpcInterfaceProperty] -> ShowS
VpcInterfaceProperty -> String
(Int -> VpcInterfaceProperty -> ShowS)
-> (VpcInterfaceProperty -> String)
-> ([VpcInterfaceProperty] -> ShowS)
-> Show VpcInterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcInterfaceProperty -> ShowS
showsPrec :: Int -> VpcInterfaceProperty -> ShowS
$cshow :: VpcInterfaceProperty -> String
show :: VpcInterfaceProperty -> String
$cshowList :: [VpcInterfaceProperty] -> ShowS
showList :: [VpcInterfaceProperty] -> ShowS
Prelude.Show)
mkVpcInterfaceProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> ValueList Prelude.Text
        -> Value Prelude.Text -> VpcInterfaceProperty
mkVpcInterfaceProperty :: Value Text
-> Value Text
-> ValueList Text
-> Value Text
-> VpcInterfaceProperty
mkVpcInterfaceProperty Value Text
name Value Text
roleArn ValueList Text
securityGroupIds Value Text
subnetId
  = VpcInterfaceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, roleArn :: Value Text
roleArn = Value Text
roleArn,
       securityGroupIds :: ValueList Text
securityGroupIds = ValueList Text
securityGroupIds, subnetId :: Value Text
subnetId = Value Text
subnetId,
       networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       networkInterfaceType :: Maybe (Value Text)
networkInterfaceType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcInterfaceProperty where
  toResourceProperties :: VpcInterfaceProperty -> ResourceProperties
toResourceProperties VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.VpcInterface",
         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
"Name" 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
name, Key
"RoleArn" 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
roleArn,
                            Key
"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..= ValueList Text
securityGroupIds,
                            Key
"SubnetId" 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
subnetId]
                           ([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
"NetworkInterfaceIds" (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)
networkInterfaceIds,
                               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
"NetworkInterfaceType"
                                 (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)
networkInterfaceType]))}
instance JSON.ToJSON VpcInterfaceProperty where
  toJSON :: VpcInterfaceProperty -> Value
toJSON VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: 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
"Name" 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
name, Key
"RoleArn" 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
roleArn,
               Key
"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..= ValueList Text
securityGroupIds,
               Key
"SubnetId" 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
subnetId]
              ([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
"NetworkInterfaceIds" (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)
networkInterfaceIds,
                  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
"NetworkInterfaceType"
                    (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)
networkInterfaceType])))
instance Property "Name" VpcInterfaceProperty where
  type PropertyType "Name" VpcInterfaceProperty = Value Prelude.Text
  set :: PropertyType "Name" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "Name" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty {name :: Value Text
name = PropertyType "Name" VpcInterfaceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
instance Property "NetworkInterfaceIds" VpcInterfaceProperty where
  type PropertyType "NetworkInterfaceIds" VpcInterfaceProperty = ValueList Prelude.Text
  set :: PropertyType "NetworkInterfaceIds" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "NetworkInterfaceIds" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty
        {networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NetworkInterfaceIds" VpcInterfaceProperty
ValueList Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
instance Property "NetworkInterfaceType" VpcInterfaceProperty where
  type PropertyType "NetworkInterfaceType" VpcInterfaceProperty = Value Prelude.Text
  set :: PropertyType "NetworkInterfaceType" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "NetworkInterfaceType" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty
        {networkInterfaceType :: Maybe (Value Text)
networkInterfaceType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NetworkInterfaceType" VpcInterfaceProperty
Value Text
newValue, Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
instance Property "RoleArn" VpcInterfaceProperty where
  type PropertyType "RoleArn" VpcInterfaceProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "RoleArn" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" VpcInterfaceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
securityGroupIds :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
instance Property "SecurityGroupIds" VpcInterfaceProperty where
  type PropertyType "SecurityGroupIds" VpcInterfaceProperty = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupIds" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "SecurityGroupIds" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty {securityGroupIds :: ValueList Text
securityGroupIds = PropertyType "SecurityGroupIds" VpcInterfaceProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
subnetId :: Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
subnetId :: Value Text
..}
instance Property "SubnetId" VpcInterfaceProperty where
  type PropertyType "SubnetId" VpcInterfaceProperty = Value Prelude.Text
  set :: PropertyType "SubnetId" VpcInterfaceProperty
-> VpcInterfaceProperty -> VpcInterfaceProperty
set PropertyType "SubnetId" VpcInterfaceProperty
newValue VpcInterfaceProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: VpcInterfaceProperty -> ()
name :: VpcInterfaceProperty -> Value Text
networkInterfaceIds :: VpcInterfaceProperty -> Maybe (ValueList Text)
networkInterfaceType :: VpcInterfaceProperty -> Maybe (Value Text)
roleArn :: VpcInterfaceProperty -> Value Text
securityGroupIds :: VpcInterfaceProperty -> ValueList Text
subnetId :: VpcInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
subnetId :: Value Text
..}
    = VpcInterfaceProperty {subnetId :: Value Text
subnetId = PropertyType "SubnetId" VpcInterfaceProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
haddock_workaround_ :: ()
name :: Value Text
networkInterfaceIds :: Maybe (ValueList Text)
networkInterfaceType :: Maybe (Value Text)
roleArn :: Value Text
securityGroupIds :: ValueList Text
..}