module Stratosphere.Batch.ComputeEnvironment.EksConfigurationProperty (
EksConfigurationProperty(..), mkEksConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EksConfigurationProperty
=
EksConfigurationProperty {EksConfigurationProperty -> ()
haddock_workaround_ :: (),
EksConfigurationProperty -> Value Text
eksClusterArn :: (Value Prelude.Text),
EksConfigurationProperty -> Value Text
kubernetesNamespace :: (Value Prelude.Text)}
deriving stock (EksConfigurationProperty -> EksConfigurationProperty -> Bool
(EksConfigurationProperty -> EksConfigurationProperty -> Bool)
-> (EksConfigurationProperty -> EksConfigurationProperty -> Bool)
-> Eq EksConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EksConfigurationProperty -> EksConfigurationProperty -> Bool
== :: EksConfigurationProperty -> EksConfigurationProperty -> Bool
$c/= :: EksConfigurationProperty -> EksConfigurationProperty -> Bool
/= :: EksConfigurationProperty -> EksConfigurationProperty -> Bool
Prelude.Eq, Int -> EksConfigurationProperty -> ShowS
[EksConfigurationProperty] -> ShowS
EksConfigurationProperty -> String
(Int -> EksConfigurationProperty -> ShowS)
-> (EksConfigurationProperty -> String)
-> ([EksConfigurationProperty] -> ShowS)
-> Show EksConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EksConfigurationProperty -> ShowS
showsPrec :: Int -> EksConfigurationProperty -> ShowS
$cshow :: EksConfigurationProperty -> String
show :: EksConfigurationProperty -> String
$cshowList :: [EksConfigurationProperty] -> ShowS
showList :: [EksConfigurationProperty] -> ShowS
Prelude.Show)
mkEksConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text -> EksConfigurationProperty
mkEksConfigurationProperty :: Value Text -> Value Text -> EksConfigurationProperty
mkEksConfigurationProperty Value Text
eksClusterArn Value Text
kubernetesNamespace
= EksConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), eksClusterArn :: Value Text
eksClusterArn = Value Text
eksClusterArn,
kubernetesNamespace :: Value Text
kubernetesNamespace = Value Text
kubernetesNamespace}
instance ToResourceProperties EksConfigurationProperty where
toResourceProperties :: EksConfigurationProperty -> ResourceProperties
toResourceProperties EksConfigurationProperty {()
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
eksClusterArn :: EksConfigurationProperty -> Value Text
kubernetesNamespace :: EksConfigurationProperty -> Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
kubernetesNamespace :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Batch::ComputeEnvironment.EksConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"EksClusterArn" 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
eksClusterArn,
Key
"KubernetesNamespace" 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
kubernetesNamespace]}
instance JSON.ToJSON EksConfigurationProperty where
toJSON :: EksConfigurationProperty -> Value
toJSON EksConfigurationProperty {()
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
eksClusterArn :: EksConfigurationProperty -> Value Text
kubernetesNamespace :: EksConfigurationProperty -> Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
kubernetesNamespace :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"EksClusterArn" 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
eksClusterArn,
Key
"KubernetesNamespace" 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
kubernetesNamespace]
instance Property "EksClusterArn" EksConfigurationProperty where
type PropertyType "EksClusterArn" EksConfigurationProperty = Value Prelude.Text
set :: PropertyType "EksClusterArn" EksConfigurationProperty
-> EksConfigurationProperty -> EksConfigurationProperty
set PropertyType "EksClusterArn" EksConfigurationProperty
newValue EksConfigurationProperty {()
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
eksClusterArn :: EksConfigurationProperty -> Value Text
kubernetesNamespace :: EksConfigurationProperty -> Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
kubernetesNamespace :: Value Text
..}
= EksConfigurationProperty {eksClusterArn :: Value Text
eksClusterArn = PropertyType "EksClusterArn" EksConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
kubernetesNamespace :: Value Text
haddock_workaround_ :: ()
kubernetesNamespace :: Value Text
..}
instance Property "KubernetesNamespace" EksConfigurationProperty where
type PropertyType "KubernetesNamespace" EksConfigurationProperty = Value Prelude.Text
set :: PropertyType "KubernetesNamespace" EksConfigurationProperty
-> EksConfigurationProperty -> EksConfigurationProperty
set PropertyType "KubernetesNamespace" EksConfigurationProperty
newValue EksConfigurationProperty {()
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
eksClusterArn :: EksConfigurationProperty -> Value Text
kubernetesNamespace :: EksConfigurationProperty -> Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
kubernetesNamespace :: Value Text
..}
= EksConfigurationProperty {kubernetesNamespace :: Value Text
kubernetesNamespace = PropertyType "KubernetesNamespace" EksConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
haddock_workaround_ :: ()
eksClusterArn :: Value Text
..}