module Stratosphere.RTBFabric.ResponderGateway.ManagedEndpointConfigurationProperty (
        module Exports, ManagedEndpointConfigurationProperty(..),
        mkManagedEndpointConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RTBFabric.ResponderGateway.AutoScalingGroupsConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.RTBFabric.ResponderGateway.EksEndpointsConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data ManagedEndpointConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-respondergateway-managedendpointconfiguration.html>
    ManagedEndpointConfigurationProperty {ManagedEndpointConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-respondergateway-managedendpointconfiguration.html#cfn-rtbfabric-respondergateway-managedendpointconfiguration-autoscalinggroupsconfiguration>
                                          ManagedEndpointConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
autoScalingGroupsConfiguration :: (Prelude.Maybe AutoScalingGroupsConfigurationProperty),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-respondergateway-managedendpointconfiguration.html#cfn-rtbfabric-respondergateway-managedendpointconfiguration-eksendpointsconfiguration>
                                          ManagedEndpointConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
eksEndpointsConfiguration :: (Prelude.Maybe EksEndpointsConfigurationProperty)}
  deriving stock (ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty -> Bool
(ManagedEndpointConfigurationProperty
 -> ManagedEndpointConfigurationProperty -> Bool)
-> (ManagedEndpointConfigurationProperty
    -> ManagedEndpointConfigurationProperty -> Bool)
-> Eq ManagedEndpointConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty -> Bool
== :: ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty -> Bool
$c/= :: ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty -> Bool
/= :: ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty -> Bool
Prelude.Eq, Int -> ManagedEndpointConfigurationProperty -> ShowS
[ManagedEndpointConfigurationProperty] -> ShowS
ManagedEndpointConfigurationProperty -> String
(Int -> ManagedEndpointConfigurationProperty -> ShowS)
-> (ManagedEndpointConfigurationProperty -> String)
-> ([ManagedEndpointConfigurationProperty] -> ShowS)
-> Show ManagedEndpointConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ManagedEndpointConfigurationProperty -> ShowS
showsPrec :: Int -> ManagedEndpointConfigurationProperty -> ShowS
$cshow :: ManagedEndpointConfigurationProperty -> String
show :: ManagedEndpointConfigurationProperty -> String
$cshowList :: [ManagedEndpointConfigurationProperty] -> ShowS
showList :: [ManagedEndpointConfigurationProperty] -> ShowS
Prelude.Show)
mkManagedEndpointConfigurationProperty ::
  ManagedEndpointConfigurationProperty
mkManagedEndpointConfigurationProperty :: ManagedEndpointConfigurationProperty
mkManagedEndpointConfigurationProperty
  = ManagedEndpointConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
autoScalingGroupsConfiguration = Maybe AutoScalingGroupsConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
eksEndpointsConfiguration = Maybe EksEndpointsConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ManagedEndpointConfigurationProperty where
  toResourceProperties :: ManagedEndpointConfigurationProperty -> ResourceProperties
toResourceProperties ManagedEndpointConfigurationProperty {Maybe AutoScalingGroupsConfigurationProperty
Maybe EksEndpointsConfigurationProperty
()
haddock_workaround_ :: ManagedEndpointConfigurationProperty -> ()
autoScalingGroupsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RTBFabric::ResponderGateway.ManagedEndpointConfiguration",
         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 -> AutoScalingGroupsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingGroupsConfiguration"
                              (AutoScalingGroupsConfigurationProperty -> (Key, Value))
-> Maybe AutoScalingGroupsConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoScalingGroupsConfigurationProperty
autoScalingGroupsConfiguration,
                            Key -> EksEndpointsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EksEndpointsConfiguration"
                              (EksEndpointsConfigurationProperty -> (Key, Value))
-> Maybe EksEndpointsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EksEndpointsConfigurationProperty
eksEndpointsConfiguration])}
instance JSON.ToJSON ManagedEndpointConfigurationProperty where
  toJSON :: ManagedEndpointConfigurationProperty -> Value
toJSON ManagedEndpointConfigurationProperty {Maybe AutoScalingGroupsConfigurationProperty
Maybe EksEndpointsConfigurationProperty
()
haddock_workaround_ :: ManagedEndpointConfigurationProperty -> ()
autoScalingGroupsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
..}
    = [(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 -> AutoScalingGroupsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingGroupsConfiguration"
                 (AutoScalingGroupsConfigurationProperty -> (Key, Value))
-> Maybe AutoScalingGroupsConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AutoScalingGroupsConfigurationProperty
autoScalingGroupsConfiguration,
               Key -> EksEndpointsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EksEndpointsConfiguration"
                 (EksEndpointsConfigurationProperty -> (Key, Value))
-> Maybe EksEndpointsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EksEndpointsConfigurationProperty
eksEndpointsConfiguration]))
instance Property "AutoScalingGroupsConfiguration" ManagedEndpointConfigurationProperty where
  type PropertyType "AutoScalingGroupsConfiguration" ManagedEndpointConfigurationProperty = AutoScalingGroupsConfigurationProperty
  set :: PropertyType
  "AutoScalingGroupsConfiguration"
  ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty
set PropertyType
  "AutoScalingGroupsConfiguration"
  ManagedEndpointConfigurationProperty
newValue ManagedEndpointConfigurationProperty {Maybe AutoScalingGroupsConfigurationProperty
Maybe EksEndpointsConfigurationProperty
()
haddock_workaround_ :: ManagedEndpointConfigurationProperty -> ()
autoScalingGroupsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
..}
    = ManagedEndpointConfigurationProperty
        {autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
autoScalingGroupsConfiguration = AutoScalingGroupsConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AutoScalingGroupsConfiguration"
  ManagedEndpointConfigurationProperty
AutoScalingGroupsConfigurationProperty
newValue, Maybe EksEndpointsConfigurationProperty
()
haddock_workaround_ :: ()
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
haddock_workaround_ :: ()
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
..}
instance Property "EksEndpointsConfiguration" ManagedEndpointConfigurationProperty where
  type PropertyType "EksEndpointsConfiguration" ManagedEndpointConfigurationProperty = EksEndpointsConfigurationProperty
  set :: PropertyType
  "EksEndpointsConfiguration" ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty
-> ManagedEndpointConfigurationProperty
set PropertyType
  "EksEndpointsConfiguration" ManagedEndpointConfigurationProperty
newValue ManagedEndpointConfigurationProperty {Maybe AutoScalingGroupsConfigurationProperty
Maybe EksEndpointsConfigurationProperty
()
haddock_workaround_ :: ManagedEndpointConfigurationProperty -> ()
autoScalingGroupsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: ManagedEndpointConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
..}
    = ManagedEndpointConfigurationProperty
        {eksEndpointsConfiguration :: Maybe EksEndpointsConfigurationProperty
eksEndpointsConfiguration = EksEndpointsConfigurationProperty
-> Maybe EksEndpointsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "EksEndpointsConfiguration" ManagedEndpointConfigurationProperty
EksEndpointsConfigurationProperty
newValue, Maybe AutoScalingGroupsConfigurationProperty
()
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
haddock_workaround_ :: ()
autoScalingGroupsConfiguration :: Maybe AutoScalingGroupsConfigurationProperty
..}