module Stratosphere.ODB.OdbNetwork.ZeroEtlAccessProperty (
        ZeroEtlAccessProperty(..), mkZeroEtlAccessProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ZeroEtlAccessProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-zeroetlaccess.html>
    ZeroEtlAccessProperty {ZeroEtlAccessProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-zeroetlaccess.html#cfn-odb-odbnetwork-zeroetlaccess-cidr>
                           ZeroEtlAccessProperty -> Maybe (Value Text)
cidr :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-zeroetlaccess.html#cfn-odb-odbnetwork-zeroetlaccess-status>
                           ZeroEtlAccessProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool
(ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool)
-> (ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool)
-> Eq ZeroEtlAccessProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool
== :: ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool
$c/= :: ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool
/= :: ZeroEtlAccessProperty -> ZeroEtlAccessProperty -> Bool
Prelude.Eq, Int -> ZeroEtlAccessProperty -> ShowS
[ZeroEtlAccessProperty] -> ShowS
ZeroEtlAccessProperty -> String
(Int -> ZeroEtlAccessProperty -> ShowS)
-> (ZeroEtlAccessProperty -> String)
-> ([ZeroEtlAccessProperty] -> ShowS)
-> Show ZeroEtlAccessProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ZeroEtlAccessProperty -> ShowS
showsPrec :: Int -> ZeroEtlAccessProperty -> ShowS
$cshow :: ZeroEtlAccessProperty -> String
show :: ZeroEtlAccessProperty -> String
$cshowList :: [ZeroEtlAccessProperty] -> ShowS
showList :: [ZeroEtlAccessProperty] -> ShowS
Prelude.Show)
mkZeroEtlAccessProperty :: ZeroEtlAccessProperty
mkZeroEtlAccessProperty :: ZeroEtlAccessProperty
mkZeroEtlAccessProperty
  = ZeroEtlAccessProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cidr :: Maybe (Value Text)
cidr = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ZeroEtlAccessProperty where
  toResourceProperties :: ZeroEtlAccessProperty -> ResourceProperties
toResourceProperties ZeroEtlAccessProperty {Maybe (Value Text)
()
haddock_workaround_ :: ZeroEtlAccessProperty -> ()
cidr :: ZeroEtlAccessProperty -> Maybe (Value Text)
status :: ZeroEtlAccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ODB::OdbNetwork.ZeroEtlAccess",
         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
"Cidr" (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)
cidr,
                            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
"Status" (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)
status])}
instance JSON.ToJSON ZeroEtlAccessProperty where
  toJSON :: ZeroEtlAccessProperty -> Value
toJSON ZeroEtlAccessProperty {Maybe (Value Text)
()
haddock_workaround_ :: ZeroEtlAccessProperty -> ()
cidr :: ZeroEtlAccessProperty -> Maybe (Value Text)
status :: ZeroEtlAccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
status :: Maybe (Value 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
"Cidr" (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)
cidr,
               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
"Status" (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)
status]))
instance Property "Cidr" ZeroEtlAccessProperty where
  type PropertyType "Cidr" ZeroEtlAccessProperty = Value Prelude.Text
  set :: PropertyType "Cidr" ZeroEtlAccessProperty
-> ZeroEtlAccessProperty -> ZeroEtlAccessProperty
set PropertyType "Cidr" ZeroEtlAccessProperty
newValue ZeroEtlAccessProperty {Maybe (Value Text)
()
haddock_workaround_ :: ZeroEtlAccessProperty -> ()
cidr :: ZeroEtlAccessProperty -> Maybe (Value Text)
status :: ZeroEtlAccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = ZeroEtlAccessProperty {cidr :: Maybe (Value Text)
cidr = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Cidr" ZeroEtlAccessProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
status :: Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
instance Property "Status" ZeroEtlAccessProperty where
  type PropertyType "Status" ZeroEtlAccessProperty = Value Prelude.Text
  set :: PropertyType "Status" ZeroEtlAccessProperty
-> ZeroEtlAccessProperty -> ZeroEtlAccessProperty
set PropertyType "Status" ZeroEtlAccessProperty
newValue ZeroEtlAccessProperty {Maybe (Value Text)
()
haddock_workaround_ :: ZeroEtlAccessProperty -> ()
cidr :: ZeroEtlAccessProperty -> Maybe (Value Text)
status :: ZeroEtlAccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = ZeroEtlAccessProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" ZeroEtlAccessProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
cidr :: Maybe (Value Text)
..}