module Stratosphere.GroundStation.Config.DataflowEndpointConfigProperty (
        DataflowEndpointConfigProperty(..),
        mkDataflowEndpointConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataflowEndpointConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-dataflowendpointconfig.html>
    DataflowEndpointConfigProperty {DataflowEndpointConfigProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-dataflowendpointconfig.html#cfn-groundstation-config-dataflowendpointconfig-dataflowendpointname>
                                    DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointName :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-dataflowendpointconfig.html#cfn-groundstation-config-dataflowendpointconfig-dataflowendpointregion>
                                    DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointRegion :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> Bool
(DataflowEndpointConfigProperty
 -> DataflowEndpointConfigProperty -> Bool)
-> (DataflowEndpointConfigProperty
    -> DataflowEndpointConfigProperty -> Bool)
-> Eq DataflowEndpointConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> Bool
== :: DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> Bool
$c/= :: DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> Bool
/= :: DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> Bool
Prelude.Eq, Int -> DataflowEndpointConfigProperty -> ShowS
[DataflowEndpointConfigProperty] -> ShowS
DataflowEndpointConfigProperty -> String
(Int -> DataflowEndpointConfigProperty -> ShowS)
-> (DataflowEndpointConfigProperty -> String)
-> ([DataflowEndpointConfigProperty] -> ShowS)
-> Show DataflowEndpointConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataflowEndpointConfigProperty -> ShowS
showsPrec :: Int -> DataflowEndpointConfigProperty -> ShowS
$cshow :: DataflowEndpointConfigProperty -> String
show :: DataflowEndpointConfigProperty -> String
$cshowList :: [DataflowEndpointConfigProperty] -> ShowS
showList :: [DataflowEndpointConfigProperty] -> ShowS
Prelude.Show)
mkDataflowEndpointConfigProperty :: DataflowEndpointConfigProperty
mkDataflowEndpointConfigProperty :: DataflowEndpointConfigProperty
mkDataflowEndpointConfigProperty
  = DataflowEndpointConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       dataflowEndpointRegion :: Maybe (Value Text)
dataflowEndpointRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataflowEndpointConfigProperty where
  toResourceProperties :: DataflowEndpointConfigProperty -> ResourceProperties
toResourceProperties DataflowEndpointConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEndpointConfigProperty -> ()
dataflowEndpointName :: DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointRegion :: DataflowEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointRegion :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::Config.DataflowEndpointConfig",
         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
"DataflowEndpointName" (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)
dataflowEndpointName,
                            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
"DataflowEndpointRegion"
                              (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)
dataflowEndpointRegion])}
instance JSON.ToJSON DataflowEndpointConfigProperty where
  toJSON :: DataflowEndpointConfigProperty -> Value
toJSON DataflowEndpointConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEndpointConfigProperty -> ()
dataflowEndpointName :: DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointRegion :: DataflowEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointRegion :: 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
"DataflowEndpointName" (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)
dataflowEndpointName,
               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
"DataflowEndpointRegion"
                 (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)
dataflowEndpointRegion]))
instance Property "DataflowEndpointName" DataflowEndpointConfigProperty where
  type PropertyType "DataflowEndpointName" DataflowEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "DataflowEndpointName" DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> DataflowEndpointConfigProperty
set PropertyType "DataflowEndpointName" DataflowEndpointConfigProperty
newValue DataflowEndpointConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEndpointConfigProperty -> ()
dataflowEndpointName :: DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointRegion :: DataflowEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointRegion :: Maybe (Value Text)
..}
    = DataflowEndpointConfigProperty
        {dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataflowEndpointName" DataflowEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dataflowEndpointRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointRegion :: Maybe (Value Text)
..}
instance Property "DataflowEndpointRegion" DataflowEndpointConfigProperty where
  type PropertyType "DataflowEndpointRegion" DataflowEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType
  "DataflowEndpointRegion" DataflowEndpointConfigProperty
-> DataflowEndpointConfigProperty -> DataflowEndpointConfigProperty
set PropertyType
  "DataflowEndpointRegion" DataflowEndpointConfigProperty
newValue DataflowEndpointConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataflowEndpointConfigProperty -> ()
dataflowEndpointName :: DataflowEndpointConfigProperty -> Maybe (Value Text)
dataflowEndpointRegion :: DataflowEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
dataflowEndpointRegion :: Maybe (Value Text)
..}
    = DataflowEndpointConfigProperty
        {dataflowEndpointRegion :: Maybe (Value Text)
dataflowEndpointRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DataflowEndpointRegion" DataflowEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
haddock_workaround_ :: ()
dataflowEndpointName :: Maybe (Value Text)
..}