module Stratosphere.EKS.Cluster.OutpostConfigProperty (
        module Exports, OutpostConfigProperty(..), mkOutpostConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EKS.Cluster.ControlPlanePlacementProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutpostConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-outpostconfig.html>
    OutpostConfigProperty {OutpostConfigProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-outpostconfig.html#cfn-eks-cluster-outpostconfig-controlplaneinstancetype>
                           OutpostConfigProperty -> Value Text
controlPlaneInstanceType :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-outpostconfig.html#cfn-eks-cluster-outpostconfig-controlplaneplacement>
                           OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
controlPlanePlacement :: (Prelude.Maybe ControlPlanePlacementProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-outpostconfig.html#cfn-eks-cluster-outpostconfig-outpostarns>
                           OutpostConfigProperty -> ValueList Text
outpostArns :: (ValueList Prelude.Text)}
  deriving stock (OutpostConfigProperty -> OutpostConfigProperty -> Bool
(OutpostConfigProperty -> OutpostConfigProperty -> Bool)
-> (OutpostConfigProperty -> OutpostConfigProperty -> Bool)
-> Eq OutpostConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutpostConfigProperty -> OutpostConfigProperty -> Bool
== :: OutpostConfigProperty -> OutpostConfigProperty -> Bool
$c/= :: OutpostConfigProperty -> OutpostConfigProperty -> Bool
/= :: OutpostConfigProperty -> OutpostConfigProperty -> Bool
Prelude.Eq, Int -> OutpostConfigProperty -> ShowS
[OutpostConfigProperty] -> ShowS
OutpostConfigProperty -> String
(Int -> OutpostConfigProperty -> ShowS)
-> (OutpostConfigProperty -> String)
-> ([OutpostConfigProperty] -> ShowS)
-> Show OutpostConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutpostConfigProperty -> ShowS
showsPrec :: Int -> OutpostConfigProperty -> ShowS
$cshow :: OutpostConfigProperty -> String
show :: OutpostConfigProperty -> String
$cshowList :: [OutpostConfigProperty] -> ShowS
showList :: [OutpostConfigProperty] -> ShowS
Prelude.Show)
mkOutpostConfigProperty ::
  Value Prelude.Text
  -> ValueList Prelude.Text -> OutpostConfigProperty
mkOutpostConfigProperty :: Value Text -> ValueList Text -> OutpostConfigProperty
mkOutpostConfigProperty Value Text
controlPlaneInstanceType ValueList Text
outpostArns
  = OutpostConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       controlPlaneInstanceType :: Value Text
controlPlaneInstanceType = Value Text
controlPlaneInstanceType,
       outpostArns :: ValueList Text
outpostArns = ValueList Text
outpostArns, controlPlanePlacement :: Maybe ControlPlanePlacementProperty
controlPlanePlacement = Maybe ControlPlanePlacementProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutpostConfigProperty where
  toResourceProperties :: OutpostConfigProperty -> ResourceProperties
toResourceProperties OutpostConfigProperty {Maybe ControlPlanePlacementProperty
()
ValueList Text
Value Text
haddock_workaround_ :: OutpostConfigProperty -> ()
controlPlaneInstanceType :: OutpostConfigProperty -> Value Text
controlPlanePlacement :: OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
outpostArns :: OutpostConfigProperty -> ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EKS::Cluster.OutpostConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"ControlPlaneInstanceType" 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..= Value Text
controlPlaneInstanceType,
                            Key
"OutpostArns" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
outpostArns]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ControlPlanePlacementProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlPlanePlacement"
                                 (ControlPlanePlacementProperty -> (Key, Value))
-> Maybe ControlPlanePlacementProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ControlPlanePlacementProperty
controlPlanePlacement]))}
instance JSON.ToJSON OutpostConfigProperty where
  toJSON :: OutpostConfigProperty -> Value
toJSON OutpostConfigProperty {Maybe ControlPlanePlacementProperty
()
ValueList Text
Value Text
haddock_workaround_ :: OutpostConfigProperty -> ()
controlPlaneInstanceType :: OutpostConfigProperty -> Value Text
controlPlanePlacement :: OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
outpostArns :: OutpostConfigProperty -> ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
    = [(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
"ControlPlaneInstanceType" 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..= Value Text
controlPlaneInstanceType,
               Key
"OutpostArns" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
outpostArns]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ControlPlanePlacementProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ControlPlanePlacement"
                    (ControlPlanePlacementProperty -> (Key, Value))
-> Maybe ControlPlanePlacementProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ControlPlanePlacementProperty
controlPlanePlacement])))
instance Property "ControlPlaneInstanceType" OutpostConfigProperty where
  type PropertyType "ControlPlaneInstanceType" OutpostConfigProperty = Value Prelude.Text
  set :: PropertyType "ControlPlaneInstanceType" OutpostConfigProperty
-> OutpostConfigProperty -> OutpostConfigProperty
set PropertyType "ControlPlaneInstanceType" OutpostConfigProperty
newValue OutpostConfigProperty {Maybe ControlPlanePlacementProperty
()
ValueList Text
Value Text
haddock_workaround_ :: OutpostConfigProperty -> ()
controlPlaneInstanceType :: OutpostConfigProperty -> Value Text
controlPlanePlacement :: OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
outpostArns :: OutpostConfigProperty -> ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
    = OutpostConfigProperty {controlPlaneInstanceType :: Value Text
controlPlaneInstanceType = PropertyType "ControlPlaneInstanceType" OutpostConfigProperty
Value Text
newValue, Maybe ControlPlanePlacementProperty
()
ValueList Text
haddock_workaround_ :: ()
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
haddock_workaround_ :: ()
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
instance Property "ControlPlanePlacement" OutpostConfigProperty where
  type PropertyType "ControlPlanePlacement" OutpostConfigProperty = ControlPlanePlacementProperty
  set :: PropertyType "ControlPlanePlacement" OutpostConfigProperty
-> OutpostConfigProperty -> OutpostConfigProperty
set PropertyType "ControlPlanePlacement" OutpostConfigProperty
newValue OutpostConfigProperty {Maybe ControlPlanePlacementProperty
()
ValueList Text
Value Text
haddock_workaround_ :: OutpostConfigProperty -> ()
controlPlaneInstanceType :: OutpostConfigProperty -> Value Text
controlPlanePlacement :: OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
outpostArns :: OutpostConfigProperty -> ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
    = OutpostConfigProperty
        {controlPlanePlacement :: Maybe ControlPlanePlacementProperty
controlPlanePlacement = ControlPlanePlacementProperty
-> Maybe ControlPlanePlacementProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ControlPlanePlacement" OutpostConfigProperty
ControlPlanePlacementProperty
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
outpostArns :: ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
outpostArns :: ValueList Text
..}
instance Property "OutpostArns" OutpostConfigProperty where
  type PropertyType "OutpostArns" OutpostConfigProperty = ValueList Prelude.Text
  set :: PropertyType "OutpostArns" OutpostConfigProperty
-> OutpostConfigProperty -> OutpostConfigProperty
set PropertyType "OutpostArns" OutpostConfigProperty
newValue OutpostConfigProperty {Maybe ControlPlanePlacementProperty
()
ValueList Text
Value Text
haddock_workaround_ :: OutpostConfigProperty -> ()
controlPlaneInstanceType :: OutpostConfigProperty -> Value Text
controlPlanePlacement :: OutpostConfigProperty -> Maybe ControlPlanePlacementProperty
outpostArns :: OutpostConfigProperty -> ValueList Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
outpostArns :: ValueList Text
..}
    = OutpostConfigProperty {outpostArns :: ValueList Text
outpostArns = PropertyType "OutpostArns" OutpostConfigProperty
ValueList Text
newValue, Maybe ControlPlanePlacementProperty
()
Value Text
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
haddock_workaround_ :: ()
controlPlaneInstanceType :: Value Text
controlPlanePlacement :: Maybe ControlPlanePlacementProperty
..}