module Stratosphere.GroundStation.DataflowEndpointGroup (
        module Exports, DataflowEndpointGroup(..), mkDataflowEndpointGroup
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GroundStation.DataflowEndpointGroup.EndpointDetailsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data DataflowEndpointGroup
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-dataflowendpointgroup.html>
    DataflowEndpointGroup {DataflowEndpointGroup -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-dataflowendpointgroup.html#cfn-groundstation-dataflowendpointgroup-contactpostpassdurationseconds>
                           DataflowEndpointGroup -> Maybe (Value Integer)
contactPostPassDurationSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-dataflowendpointgroup.html#cfn-groundstation-dataflowendpointgroup-contactprepassdurationseconds>
                           DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-dataflowendpointgroup.html#cfn-groundstation-dataflowendpointgroup-endpointdetails>
                           DataflowEndpointGroup -> [EndpointDetailsProperty]
endpointDetails :: [EndpointDetailsProperty],
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-groundstation-dataflowendpointgroup.html#cfn-groundstation-dataflowendpointgroup-tags>
                           DataflowEndpointGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (DataflowEndpointGroup -> DataflowEndpointGroup -> Bool
(DataflowEndpointGroup -> DataflowEndpointGroup -> Bool)
-> (DataflowEndpointGroup -> DataflowEndpointGroup -> Bool)
-> Eq DataflowEndpointGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataflowEndpointGroup -> DataflowEndpointGroup -> Bool
== :: DataflowEndpointGroup -> DataflowEndpointGroup -> Bool
$c/= :: DataflowEndpointGroup -> DataflowEndpointGroup -> Bool
/= :: DataflowEndpointGroup -> DataflowEndpointGroup -> Bool
Prelude.Eq, Int -> DataflowEndpointGroup -> ShowS
[DataflowEndpointGroup] -> ShowS
DataflowEndpointGroup -> String
(Int -> DataflowEndpointGroup -> ShowS)
-> (DataflowEndpointGroup -> String)
-> ([DataflowEndpointGroup] -> ShowS)
-> Show DataflowEndpointGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataflowEndpointGroup -> ShowS
showsPrec :: Int -> DataflowEndpointGroup -> ShowS
$cshow :: DataflowEndpointGroup -> String
show :: DataflowEndpointGroup -> String
$cshowList :: [DataflowEndpointGroup] -> ShowS
showList :: [DataflowEndpointGroup] -> ShowS
Prelude.Show)
mkDataflowEndpointGroup ::
  [EndpointDetailsProperty] -> DataflowEndpointGroup
mkDataflowEndpointGroup :: [EndpointDetailsProperty] -> DataflowEndpointGroup
mkDataflowEndpointGroup [EndpointDetailsProperty]
endpointDetails
  = DataflowEndpointGroup
      {haddock_workaround_ :: ()
haddock_workaround_ = (), endpointDetails :: [EndpointDetailsProperty]
endpointDetails = [EndpointDetailsProperty]
endpointDetails,
       contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPostPassDurationSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       contactPrePassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataflowEndpointGroup where
  toResourceProperties :: DataflowEndpointGroup -> ResourceProperties
toResourceProperties DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::DataflowEndpointGroup",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"EndpointDetails" Key -> [EndpointDetailsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EndpointDetailsProperty]
endpointDetails]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContactPostPassDurationSeconds"
                                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
contactPostPassDurationSeconds,
                               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContactPrePassDurationSeconds"
                                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
contactPrePassDurationSeconds,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON DataflowEndpointGroup where
  toJSON :: DataflowEndpointGroup -> Value
toJSON DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"EndpointDetails" Key -> [EndpointDetailsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [EndpointDetailsProperty]
endpointDetails]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContactPostPassDurationSeconds"
                    (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
contactPostPassDurationSeconds,
                  Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ContactPrePassDurationSeconds"
                    (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
contactPrePassDurationSeconds,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "ContactPostPassDurationSeconds" DataflowEndpointGroup where
  type PropertyType "ContactPostPassDurationSeconds" DataflowEndpointGroup = Value Prelude.Integer
  set :: PropertyType "ContactPostPassDurationSeconds" DataflowEndpointGroup
-> DataflowEndpointGroup -> DataflowEndpointGroup
set PropertyType "ContactPostPassDurationSeconds" DataflowEndpointGroup
newValue DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = DataflowEndpointGroup
        {contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPostPassDurationSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContactPostPassDurationSeconds" DataflowEndpointGroup
Value Integer
newValue, [EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
instance Property "ContactPrePassDurationSeconds" DataflowEndpointGroup where
  type PropertyType "ContactPrePassDurationSeconds" DataflowEndpointGroup = Value Prelude.Integer
  set :: PropertyType "ContactPrePassDurationSeconds" DataflowEndpointGroup
-> DataflowEndpointGroup -> DataflowEndpointGroup
set PropertyType "ContactPrePassDurationSeconds" DataflowEndpointGroup
newValue DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = DataflowEndpointGroup
        {contactPrePassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContactPrePassDurationSeconds" DataflowEndpointGroup
Value Integer
newValue, [EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
instance Property "EndpointDetails" DataflowEndpointGroup where
  type PropertyType "EndpointDetails" DataflowEndpointGroup = [EndpointDetailsProperty]
  set :: PropertyType "EndpointDetails" DataflowEndpointGroup
-> DataflowEndpointGroup -> DataflowEndpointGroup
set PropertyType "EndpointDetails" DataflowEndpointGroup
newValue DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = DataflowEndpointGroup {endpointDetails :: [EndpointDetailsProperty]
endpointDetails = [EndpointDetailsProperty]
PropertyType "EndpointDetails" DataflowEndpointGroup
newValue, Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
tags :: Maybe [Tag]
..}
instance Property "Tags" DataflowEndpointGroup where
  type PropertyType "Tags" DataflowEndpointGroup = [Tag]
  set :: PropertyType "Tags" DataflowEndpointGroup
-> DataflowEndpointGroup -> DataflowEndpointGroup
set PropertyType "Tags" DataflowEndpointGroup
newValue DataflowEndpointGroup {[EndpointDetailsProperty]
Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: DataflowEndpointGroup -> ()
contactPostPassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
contactPrePassDurationSeconds :: DataflowEndpointGroup -> Maybe (Value Integer)
endpointDetails :: DataflowEndpointGroup -> [EndpointDetailsProperty]
tags :: DataflowEndpointGroup -> Maybe [Tag]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
tags :: Maybe [Tag]
..}
    = DataflowEndpointGroup {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" DataflowEndpointGroup
newValue, [EndpointDetailsProperty]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
haddock_workaround_ :: ()
contactPostPassDurationSeconds :: Maybe (Value Integer)
contactPrePassDurationSeconds :: Maybe (Value Integer)
endpointDetails :: [EndpointDetailsProperty]
..}