module Stratosphere.EKS.Cluster.KubernetesNetworkConfigProperty (
        module Exports, KubernetesNetworkConfigProperty(..),
        mkKubernetesNetworkConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EKS.Cluster.ElasticLoadBalancingProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data KubernetesNetworkConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-kubernetesnetworkconfig.html>
    KubernetesNetworkConfigProperty {KubernetesNetworkConfigProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-kubernetesnetworkconfig.html#cfn-eks-cluster-kubernetesnetworkconfig-elasticloadbalancing>
                                     KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
elasticLoadBalancing :: (Prelude.Maybe ElasticLoadBalancingProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-kubernetesnetworkconfig.html#cfn-eks-cluster-kubernetesnetworkconfig-ipfamily>
                                     KubernetesNetworkConfigProperty -> Maybe (Value Text)
ipFamily :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-kubernetesnetworkconfig.html#cfn-eks-cluster-kubernetesnetworkconfig-serviceipv4cidr>
                                     KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-kubernetesnetworkconfig.html#cfn-eks-cluster-kubernetesnetworkconfig-serviceipv6cidr>
                                     KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty -> Bool
(KubernetesNetworkConfigProperty
 -> KubernetesNetworkConfigProperty -> Bool)
-> (KubernetesNetworkConfigProperty
    -> KubernetesNetworkConfigProperty -> Bool)
-> Eq KubernetesNetworkConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty -> Bool
== :: KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty -> Bool
$c/= :: KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty -> Bool
/= :: KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty -> Bool
Prelude.Eq, Int -> KubernetesNetworkConfigProperty -> ShowS
[KubernetesNetworkConfigProperty] -> ShowS
KubernetesNetworkConfigProperty -> String
(Int -> KubernetesNetworkConfigProperty -> ShowS)
-> (KubernetesNetworkConfigProperty -> String)
-> ([KubernetesNetworkConfigProperty] -> ShowS)
-> Show KubernetesNetworkConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KubernetesNetworkConfigProperty -> ShowS
showsPrec :: Int -> KubernetesNetworkConfigProperty -> ShowS
$cshow :: KubernetesNetworkConfigProperty -> String
show :: KubernetesNetworkConfigProperty -> String
$cshowList :: [KubernetesNetworkConfigProperty] -> ShowS
showList :: [KubernetesNetworkConfigProperty] -> ShowS
Prelude.Show)
mkKubernetesNetworkConfigProperty ::
  KubernetesNetworkConfigProperty
mkKubernetesNetworkConfigProperty :: KubernetesNetworkConfigProperty
mkKubernetesNetworkConfigProperty
  = KubernetesNetworkConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
elasticLoadBalancing = Maybe ElasticLoadBalancingProperty
forall a. Maybe a
Prelude.Nothing,
       ipFamily :: Maybe (Value Text)
ipFamily = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv4Cidr = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       serviceIpv6Cidr :: Maybe (Value Text)
serviceIpv6Cidr = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties KubernetesNetworkConfigProperty where
  toResourceProperties :: KubernetesNetworkConfigProperty -> ResourceProperties
toResourceProperties KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EKS::Cluster.KubernetesNetworkConfig",
         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 -> ElasticLoadBalancingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElasticLoadBalancing" (ElasticLoadBalancingProperty -> (Key, Value))
-> Maybe ElasticLoadBalancingProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ElasticLoadBalancingProperty
elasticLoadBalancing,
                            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
"IpFamily" (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)
ipFamily,
                            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
"ServiceIpv4Cidr" (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)
serviceIpv4Cidr,
                            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
"ServiceIpv6Cidr" (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)
serviceIpv6Cidr])}
instance JSON.ToJSON KubernetesNetworkConfigProperty where
  toJSON :: KubernetesNetworkConfigProperty -> Value
toJSON KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: 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 -> ElasticLoadBalancingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ElasticLoadBalancing" (ElasticLoadBalancingProperty -> (Key, Value))
-> Maybe ElasticLoadBalancingProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ElasticLoadBalancingProperty
elasticLoadBalancing,
               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
"IpFamily" (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)
ipFamily,
               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
"ServiceIpv4Cidr" (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)
serviceIpv4Cidr,
               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
"ServiceIpv6Cidr" (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)
serviceIpv6Cidr]))
instance Property "ElasticLoadBalancing" KubernetesNetworkConfigProperty where
  type PropertyType "ElasticLoadBalancing" KubernetesNetworkConfigProperty = ElasticLoadBalancingProperty
  set :: PropertyType "ElasticLoadBalancing" KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
set PropertyType "ElasticLoadBalancing" KubernetesNetworkConfigProperty
newValue KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
    = KubernetesNetworkConfigProperty
        {elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
elasticLoadBalancing = ElasticLoadBalancingProperty -> Maybe ElasticLoadBalancingProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ElasticLoadBalancing" KubernetesNetworkConfigProperty
ElasticLoadBalancingProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
instance Property "IpFamily" KubernetesNetworkConfigProperty where
  type PropertyType "IpFamily" KubernetesNetworkConfigProperty = Value Prelude.Text
  set :: PropertyType "IpFamily" KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
set PropertyType "IpFamily" KubernetesNetworkConfigProperty
newValue KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
    = KubernetesNetworkConfigProperty
        {ipFamily :: Maybe (Value Text)
ipFamily = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpFamily" KubernetesNetworkConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
instance Property "ServiceIpv4Cidr" KubernetesNetworkConfigProperty where
  type PropertyType "ServiceIpv4Cidr" KubernetesNetworkConfigProperty = Value Prelude.Text
  set :: PropertyType "ServiceIpv4Cidr" KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
set PropertyType "ServiceIpv4Cidr" KubernetesNetworkConfigProperty
newValue KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
    = KubernetesNetworkConfigProperty
        {serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv4Cidr = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServiceIpv4Cidr" KubernetesNetworkConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
instance Property "ServiceIpv6Cidr" KubernetesNetworkConfigProperty where
  type PropertyType "ServiceIpv6Cidr" KubernetesNetworkConfigProperty = Value Prelude.Text
  set :: PropertyType "ServiceIpv6Cidr" KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
-> KubernetesNetworkConfigProperty
set PropertyType "ServiceIpv6Cidr" KubernetesNetworkConfigProperty
newValue KubernetesNetworkConfigProperty {Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: KubernetesNetworkConfigProperty -> ()
elasticLoadBalancing :: KubernetesNetworkConfigProperty
-> Maybe ElasticLoadBalancingProperty
ipFamily :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv4Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
serviceIpv6Cidr :: KubernetesNetworkConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
serviceIpv6Cidr :: Maybe (Value Text)
..}
    = KubernetesNetworkConfigProperty
        {serviceIpv6Cidr :: Maybe (Value Text)
serviceIpv6Cidr = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServiceIpv6Cidr" KubernetesNetworkConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe ElasticLoadBalancingProperty
()
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
haddock_workaround_ :: ()
elasticLoadBalancing :: Maybe ElasticLoadBalancingProperty
ipFamily :: Maybe (Value Text)
serviceIpv4Cidr :: Maybe (Value Text)
..}