module Stratosphere.DataZone.Connection.PhysicalConnectionRequirementsProperty (
        PhysicalConnectionRequirementsProperty(..),
        mkPhysicalConnectionRequirementsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PhysicalConnectionRequirementsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-physicalconnectionrequirements.html>
    PhysicalConnectionRequirementsProperty {PhysicalConnectionRequirementsProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-physicalconnectionrequirements.html#cfn-datazone-connection-physicalconnectionrequirements-availabilityzone>
                                            PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
availabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-physicalconnectionrequirements.html#cfn-datazone-connection-physicalconnectionrequirements-securitygroupidlist>
                                            PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
securityGroupIdList :: (Prelude.Maybe (ValueList Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-physicalconnectionrequirements.html#cfn-datazone-connection-physicalconnectionrequirements-subnetid>
                                            PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetId :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datazone-connection-physicalconnectionrequirements.html#cfn-datazone-connection-physicalconnectionrequirements-subnetidlist>
                                            PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetIdList :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty -> Bool
(PhysicalConnectionRequirementsProperty
 -> PhysicalConnectionRequirementsProperty -> Bool)
-> (PhysicalConnectionRequirementsProperty
    -> PhysicalConnectionRequirementsProperty -> Bool)
-> Eq PhysicalConnectionRequirementsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty -> Bool
== :: PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty -> Bool
$c/= :: PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty -> Bool
/= :: PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty -> Bool
Prelude.Eq, Int -> PhysicalConnectionRequirementsProperty -> ShowS
[PhysicalConnectionRequirementsProperty] -> ShowS
PhysicalConnectionRequirementsProperty -> String
(Int -> PhysicalConnectionRequirementsProperty -> ShowS)
-> (PhysicalConnectionRequirementsProperty -> String)
-> ([PhysicalConnectionRequirementsProperty] -> ShowS)
-> Show PhysicalConnectionRequirementsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PhysicalConnectionRequirementsProperty -> ShowS
showsPrec :: Int -> PhysicalConnectionRequirementsProperty -> ShowS
$cshow :: PhysicalConnectionRequirementsProperty -> String
show :: PhysicalConnectionRequirementsProperty -> String
$cshowList :: [PhysicalConnectionRequirementsProperty] -> ShowS
showList :: [PhysicalConnectionRequirementsProperty] -> ShowS
Prelude.Show)
mkPhysicalConnectionRequirementsProperty ::
  PhysicalConnectionRequirementsProperty
mkPhysicalConnectionRequirementsProperty :: PhysicalConnectionRequirementsProperty
mkPhysicalConnectionRequirementsProperty
  = PhysicalConnectionRequirementsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), availabilityZone :: Maybe (Value Text)
availabilityZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       securityGroupIdList :: Maybe (ValueList Text)
securityGroupIdList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, subnetId :: Maybe (Value Text)
subnetId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       subnetIdList :: Maybe (ValueList Text)
subnetIdList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PhysicalConnectionRequirementsProperty where
  toResourceProperties :: PhysicalConnectionRequirementsProperty -> ResourceProperties
toResourceProperties PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::Connection.PhysicalConnectionRequirements",
         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
"AvailabilityZone" (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)
availabilityZone,
                            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
"SecurityGroupIdList" (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)
securityGroupIdList,
                            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
"SubnetId" (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)
subnetId,
                            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
"SubnetIdList" (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)
subnetIdList])}
instance JSON.ToJSON PhysicalConnectionRequirementsProperty where
  toJSON :: PhysicalConnectionRequirementsProperty -> Value
toJSON PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: 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 -> 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
"AvailabilityZone" (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)
availabilityZone,
               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
"SecurityGroupIdList" (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)
securityGroupIdList,
               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
"SubnetId" (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)
subnetId,
               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
"SubnetIdList" (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)
subnetIdList]))
instance Property "AvailabilityZone" PhysicalConnectionRequirementsProperty where
  type PropertyType "AvailabilityZone" PhysicalConnectionRequirementsProperty = Value Prelude.Text
  set :: PropertyType
  "AvailabilityZone" PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
set PropertyType
  "AvailabilityZone" PhysicalConnectionRequirementsProperty
newValue PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
    = PhysicalConnectionRequirementsProperty
        {availabilityZone :: Maybe (Value Text)
availabilityZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AvailabilityZone" PhysicalConnectionRequirementsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
instance Property "SecurityGroupIdList" PhysicalConnectionRequirementsProperty where
  type PropertyType "SecurityGroupIdList" PhysicalConnectionRequirementsProperty = ValueList Prelude.Text
  set :: PropertyType
  "SecurityGroupIdList" PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
set PropertyType
  "SecurityGroupIdList" PhysicalConnectionRequirementsProperty
newValue PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
    = PhysicalConnectionRequirementsProperty
        {securityGroupIdList :: Maybe (ValueList Text)
securityGroupIdList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SecurityGroupIdList" PhysicalConnectionRequirementsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
instance Property "SubnetId" PhysicalConnectionRequirementsProperty where
  type PropertyType "SubnetId" PhysicalConnectionRequirementsProperty = Value Prelude.Text
  set :: PropertyType "SubnetId" PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
set PropertyType "SubnetId" PhysicalConnectionRequirementsProperty
newValue PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
    = PhysicalConnectionRequirementsProperty
        {subnetId :: Maybe (Value Text)
subnetId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetId" PhysicalConnectionRequirementsProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetIdList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetIdList :: Maybe (ValueList Text)
..}
instance Property "SubnetIdList" PhysicalConnectionRequirementsProperty where
  type PropertyType "SubnetIdList" PhysicalConnectionRequirementsProperty = ValueList Prelude.Text
  set :: PropertyType "SubnetIdList" PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
-> PhysicalConnectionRequirementsProperty
set PropertyType "SubnetIdList" PhysicalConnectionRequirementsProperty
newValue PhysicalConnectionRequirementsProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PhysicalConnectionRequirementsProperty -> ()
availabilityZone :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
securityGroupIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
subnetId :: PhysicalConnectionRequirementsProperty -> Maybe (Value Text)
subnetIdList :: PhysicalConnectionRequirementsProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
subnetIdList :: Maybe (ValueList Text)
..}
    = PhysicalConnectionRequirementsProperty
        {subnetIdList :: Maybe (ValueList Text)
subnetIdList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetIdList" PhysicalConnectionRequirementsProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
securityGroupIdList :: Maybe (ValueList Text)
subnetId :: Maybe (Value Text)
..}