module Stratosphere.NetworkManager.Device.AWSLocationProperty (
        AWSLocationProperty(..), mkAWSLocationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AWSLocationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-device-awslocation.html>
    AWSLocationProperty {AWSLocationProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-device-awslocation.html#cfn-networkmanager-device-awslocation-subnetarn>
                         AWSLocationProperty -> Maybe (Value Text)
subnetArn :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-device-awslocation.html#cfn-networkmanager-device-awslocation-zone>
                         AWSLocationProperty -> Maybe (Value Text)
zone :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AWSLocationProperty -> AWSLocationProperty -> Bool
(AWSLocationProperty -> AWSLocationProperty -> Bool)
-> (AWSLocationProperty -> AWSLocationProperty -> Bool)
-> Eq AWSLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AWSLocationProperty -> AWSLocationProperty -> Bool
== :: AWSLocationProperty -> AWSLocationProperty -> Bool
$c/= :: AWSLocationProperty -> AWSLocationProperty -> Bool
/= :: AWSLocationProperty -> AWSLocationProperty -> Bool
Prelude.Eq, Int -> AWSLocationProperty -> ShowS
[AWSLocationProperty] -> ShowS
AWSLocationProperty -> String
(Int -> AWSLocationProperty -> ShowS)
-> (AWSLocationProperty -> String)
-> ([AWSLocationProperty] -> ShowS)
-> Show AWSLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AWSLocationProperty -> ShowS
showsPrec :: Int -> AWSLocationProperty -> ShowS
$cshow :: AWSLocationProperty -> String
show :: AWSLocationProperty -> String
$cshowList :: [AWSLocationProperty] -> ShowS
showList :: [AWSLocationProperty] -> ShowS
Prelude.Show)
mkAWSLocationProperty :: AWSLocationProperty
mkAWSLocationProperty :: AWSLocationProperty
mkAWSLocationProperty
  = AWSLocationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), subnetArn :: Maybe (Value Text)
subnetArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       zone :: Maybe (Value Text)
zone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AWSLocationProperty where
  toResourceProperties :: AWSLocationProperty -> ResourceProperties
toResourceProperties AWSLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSLocationProperty -> ()
subnetArn :: AWSLocationProperty -> Maybe (Value Text)
zone :: AWSLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
zone :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkManager::Device.AWSLocation",
         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
"SubnetArn" (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)
subnetArn,
                            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
"Zone" (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)
zone])}
instance JSON.ToJSON AWSLocationProperty where
  toJSON :: AWSLocationProperty -> Value
toJSON AWSLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSLocationProperty -> ()
subnetArn :: AWSLocationProperty -> Maybe (Value Text)
zone :: AWSLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
zone :: 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
"SubnetArn" (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)
subnetArn,
               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
"Zone" (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)
zone]))
instance Property "SubnetArn" AWSLocationProperty where
  type PropertyType "SubnetArn" AWSLocationProperty = Value Prelude.Text
  set :: PropertyType "SubnetArn" AWSLocationProperty
-> AWSLocationProperty -> AWSLocationProperty
set PropertyType "SubnetArn" AWSLocationProperty
newValue AWSLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSLocationProperty -> ()
subnetArn :: AWSLocationProperty -> Maybe (Value Text)
zone :: AWSLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
zone :: Maybe (Value Text)
..}
    = AWSLocationProperty {subnetArn :: Maybe (Value Text)
subnetArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetArn" AWSLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
zone :: Maybe (Value Text)
haddock_workaround_ :: ()
zone :: Maybe (Value Text)
..}
instance Property "Zone" AWSLocationProperty where
  type PropertyType "Zone" AWSLocationProperty = Value Prelude.Text
  set :: PropertyType "Zone" AWSLocationProperty
-> AWSLocationProperty -> AWSLocationProperty
set PropertyType "Zone" AWSLocationProperty
newValue AWSLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AWSLocationProperty -> ()
subnetArn :: AWSLocationProperty -> Maybe (Value Text)
zone :: AWSLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
zone :: Maybe (Value Text)
..}
    = AWSLocationProperty {zone :: Maybe (Value Text)
zone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Zone" AWSLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
haddock_workaround_ :: ()
subnetArn :: Maybe (Value Text)
..}