module Stratosphere.APS.Scraper.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
clusterArn :: (Value Prelude.Text),
EksConfigurationProperty -> Maybe (ValueList Text)
securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)),
EksConfigurationProperty -> ValueList Text
subnetIds :: (ValueList 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
-> ValueList Prelude.Text -> EksConfigurationProperty
mkEksConfigurationProperty :: Value Text -> ValueList Text -> EksConfigurationProperty
mkEksConfigurationProperty Value Text
clusterArn ValueList Text
subnetIds
= EksConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), clusterArn :: Value Text
clusterArn = Value Text
clusterArn,
subnetIds :: ValueList Text
subnetIds = ValueList Text
subnetIds, securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EksConfigurationProperty where
toResourceProperties :: EksConfigurationProperty -> ResourceProperties
toResourceProperties EksConfigurationProperty {Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
clusterArn :: EksConfigurationProperty -> Value Text
securityGroupIds :: EksConfigurationProperty -> Maybe (ValueList Text)
subnetIds :: EksConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::APS::Scraper.EksConfiguration",
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
"ClusterArn" 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
clusterArn, Key
"SubnetIds" 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
subnetIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds]))}
instance JSON.ToJSON EksConfigurationProperty where
toJSON :: EksConfigurationProperty -> Value
toJSON EksConfigurationProperty {Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
clusterArn :: EksConfigurationProperty -> Value Text
securityGroupIds :: EksConfigurationProperty -> Maybe (ValueList Text)
subnetIds :: EksConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: 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
"ClusterArn" 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
clusterArn, Key
"SubnetIds" 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
subnetIds]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"SecurityGroupIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
securityGroupIds])))
instance Property "ClusterArn" EksConfigurationProperty where
type PropertyType "ClusterArn" EksConfigurationProperty = Value Prelude.Text
set :: PropertyType "ClusterArn" EksConfigurationProperty
-> EksConfigurationProperty -> EksConfigurationProperty
set PropertyType "ClusterArn" EksConfigurationProperty
newValue EksConfigurationProperty {Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
clusterArn :: EksConfigurationProperty -> Value Text
securityGroupIds :: EksConfigurationProperty -> Maybe (ValueList Text)
subnetIds :: EksConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
..}
= EksConfigurationProperty {clusterArn :: Value Text
clusterArn = PropertyType "ClusterArn" EksConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
haddock_workaround_ :: ()
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
..}
instance Property "SecurityGroupIds" EksConfigurationProperty where
type PropertyType "SecurityGroupIds" EksConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "SecurityGroupIds" EksConfigurationProperty
-> EksConfigurationProperty -> EksConfigurationProperty
set PropertyType "SecurityGroupIds" EksConfigurationProperty
newValue EksConfigurationProperty {Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
clusterArn :: EksConfigurationProperty -> Value Text
securityGroupIds :: EksConfigurationProperty -> Maybe (ValueList Text)
subnetIds :: EksConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
..}
= EksConfigurationProperty
{securityGroupIds :: Maybe (ValueList Text)
securityGroupIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupIds" EksConfigurationProperty
ValueList Text
newValue, ()
ValueList Text
Value Text
haddock_workaround_ :: ()
clusterArn :: Value Text
subnetIds :: ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
subnetIds :: ValueList Text
..}
instance Property "SubnetIds" EksConfigurationProperty where
type PropertyType "SubnetIds" EksConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "SubnetIds" EksConfigurationProperty
-> EksConfigurationProperty -> EksConfigurationProperty
set PropertyType "SubnetIds" EksConfigurationProperty
newValue EksConfigurationProperty {Maybe (ValueList Text)
()
ValueList Text
Value Text
haddock_workaround_ :: EksConfigurationProperty -> ()
clusterArn :: EksConfigurationProperty -> Value Text
securityGroupIds :: EksConfigurationProperty -> Maybe (ValueList Text)
subnetIds :: EksConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
subnetIds :: ValueList Text
..}
= EksConfigurationProperty {subnetIds :: ValueList Text
subnetIds = PropertyType "SubnetIds" EksConfigurationProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
clusterArn :: Value Text
securityGroupIds :: Maybe (ValueList Text)
..}