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