module Stratosphere.EKS.Cluster.AccessConfigProperty (
AccessConfigProperty(..), mkAccessConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccessConfigProperty
=
AccessConfigProperty {AccessConfigProperty -> ()
haddock_workaround_ :: (),
AccessConfigProperty -> Maybe (Value Text)
authenticationMode :: (Prelude.Maybe (Value Prelude.Text)),
AccessConfigProperty -> Maybe (Value Bool)
bootstrapClusterCreatorAdminPermissions :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (AccessConfigProperty -> AccessConfigProperty -> Bool
(AccessConfigProperty -> AccessConfigProperty -> Bool)
-> (AccessConfigProperty -> AccessConfigProperty -> Bool)
-> Eq AccessConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccessConfigProperty -> AccessConfigProperty -> Bool
== :: AccessConfigProperty -> AccessConfigProperty -> Bool
$c/= :: AccessConfigProperty -> AccessConfigProperty -> Bool
/= :: AccessConfigProperty -> AccessConfigProperty -> Bool
Prelude.Eq, Int -> AccessConfigProperty -> ShowS
[AccessConfigProperty] -> ShowS
AccessConfigProperty -> String
(Int -> AccessConfigProperty -> ShowS)
-> (AccessConfigProperty -> String)
-> ([AccessConfigProperty] -> ShowS)
-> Show AccessConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccessConfigProperty -> ShowS
showsPrec :: Int -> AccessConfigProperty -> ShowS
$cshow :: AccessConfigProperty -> String
show :: AccessConfigProperty -> String
$cshowList :: [AccessConfigProperty] -> ShowS
showList :: [AccessConfigProperty] -> ShowS
Prelude.Show)
mkAccessConfigProperty :: AccessConfigProperty
mkAccessConfigProperty :: AccessConfigProperty
mkAccessConfigProperty
= AccessConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), authenticationMode :: Maybe (Value Text)
authenticationMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
bootstrapClusterCreatorAdminPermissions = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AccessConfigProperty where
toResourceProperties :: AccessConfigProperty -> ResourceProperties
toResourceProperties AccessConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AccessConfigProperty -> ()
authenticationMode :: AccessConfigProperty -> Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: AccessConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EKS::Cluster.AccessConfig",
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 -> 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
"AuthenticationMode" (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)
authenticationMode,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BootstrapClusterCreatorAdminPermissions"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
bootstrapClusterCreatorAdminPermissions])}
instance JSON.ToJSON AccessConfigProperty where
toJSON :: AccessConfigProperty -> Value
toJSON AccessConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AccessConfigProperty -> ()
authenticationMode :: AccessConfigProperty -> Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: AccessConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
..}
= [(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 -> 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
"AuthenticationMode" (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)
authenticationMode,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BootstrapClusterCreatorAdminPermissions"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
bootstrapClusterCreatorAdminPermissions]))
instance Property "AuthenticationMode" AccessConfigProperty where
type PropertyType "AuthenticationMode" AccessConfigProperty = Value Prelude.Text
set :: PropertyType "AuthenticationMode" AccessConfigProperty
-> AccessConfigProperty -> AccessConfigProperty
set PropertyType "AuthenticationMode" AccessConfigProperty
newValue AccessConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AccessConfigProperty -> ()
authenticationMode :: AccessConfigProperty -> Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: AccessConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
..}
= AccessConfigProperty
{authenticationMode :: Maybe (Value Text)
authenticationMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AuthenticationMode" AccessConfigProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
haddock_workaround_ :: ()
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
..}
instance Property "BootstrapClusterCreatorAdminPermissions" AccessConfigProperty where
type PropertyType "BootstrapClusterCreatorAdminPermissions" AccessConfigProperty = Value Prelude.Bool
set :: PropertyType
"BootstrapClusterCreatorAdminPermissions" AccessConfigProperty
-> AccessConfigProperty -> AccessConfigProperty
set PropertyType
"BootstrapClusterCreatorAdminPermissions" AccessConfigProperty
newValue AccessConfigProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: AccessConfigProperty -> ()
authenticationMode :: AccessConfigProperty -> Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: AccessConfigProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
..}
= AccessConfigProperty
{bootstrapClusterCreatorAdminPermissions :: Maybe (Value Bool)
bootstrapClusterCreatorAdminPermissions = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BootstrapClusterCreatorAdminPermissions" AccessConfigProperty
Value Bool
newValue,
Maybe (Value Text)
()
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
haddock_workaround_ :: ()
authenticationMode :: Maybe (Value Text)
..}