module Stratosphere.Batch.JobDefinition.EksContainerSecurityContextProperty (
        EksContainerSecurityContextProperty(..),
        mkEksContainerSecurityContextProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EksContainerSecurityContextProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html>
    EksContainerSecurityContextProperty {EksContainerSecurityContextProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-allowprivilegeescalation>
                                         EksContainerSecurityContextProperty -> Maybe (Value Bool)
allowPrivilegeEscalation :: (Prelude.Maybe (Value Prelude.Bool)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-privileged>
                                         EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: (Prelude.Maybe (Value Prelude.Bool)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-readonlyrootfilesystem>
                                         EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: (Prelude.Maybe (Value Prelude.Bool)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-runasgroup>
                                         EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsGroup :: (Prelude.Maybe (Value Prelude.Integer)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-runasnonroot>
                                         EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsNonRoot :: (Prelude.Maybe (Value Prelude.Bool)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainersecuritycontext.html#cfn-batch-jobdefinition-ekscontainersecuritycontext-runasuser>
                                         EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsUser :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty -> Bool
(EksContainerSecurityContextProperty
 -> EksContainerSecurityContextProperty -> Bool)
-> (EksContainerSecurityContextProperty
    -> EksContainerSecurityContextProperty -> Bool)
-> Eq EksContainerSecurityContextProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty -> Bool
== :: EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty -> Bool
$c/= :: EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty -> Bool
/= :: EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty -> Bool
Prelude.Eq, Int -> EksContainerSecurityContextProperty -> ShowS
[EksContainerSecurityContextProperty] -> ShowS
EksContainerSecurityContextProperty -> String
(Int -> EksContainerSecurityContextProperty -> ShowS)
-> (EksContainerSecurityContextProperty -> String)
-> ([EksContainerSecurityContextProperty] -> ShowS)
-> Show EksContainerSecurityContextProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EksContainerSecurityContextProperty -> ShowS
showsPrec :: Int -> EksContainerSecurityContextProperty -> ShowS
$cshow :: EksContainerSecurityContextProperty -> String
show :: EksContainerSecurityContextProperty -> String
$cshowList :: [EksContainerSecurityContextProperty] -> ShowS
showList :: [EksContainerSecurityContextProperty] -> ShowS
Prelude.Show)
mkEksContainerSecurityContextProperty ::
  EksContainerSecurityContextProperty
mkEksContainerSecurityContextProperty :: EksContainerSecurityContextProperty
mkEksContainerSecurityContextProperty
  = EksContainerSecurityContextProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       allowPrivilegeEscalation :: Maybe (Value Bool)
allowPrivilegeEscalation = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       privileged :: Maybe (Value Bool)
privileged = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       readOnlyRootFilesystem :: Maybe (Value Bool)
readOnlyRootFilesystem = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       runAsGroup :: Maybe (Value Integer)
runAsGroup = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, runAsNonRoot :: Maybe (Value Bool)
runAsNonRoot = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       runAsUser :: Maybe (Value Integer)
runAsUser = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EksContainerSecurityContextProperty where
  toResourceProperties :: EksContainerSecurityContextProperty -> ResourceProperties
toResourceProperties EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EksContainerSecurityContext",
         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 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
"AllowPrivilegeEscalation"
                              (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)
allowPrivilegeEscalation,
                            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
"Privileged" (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)
privileged,
                            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
"ReadOnlyRootFilesystem"
                              (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)
readOnlyRootFilesystem,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RunAsGroup" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
runAsGroup,
                            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
"RunAsNonRoot" (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)
runAsNonRoot,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RunAsUser" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
runAsUser])}
instance JSON.ToJSON EksContainerSecurityContextProperty where
  toJSON :: EksContainerSecurityContextProperty -> Value
toJSON EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = [(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 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
"AllowPrivilegeEscalation"
                 (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)
allowPrivilegeEscalation,
               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
"Privileged" (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)
privileged,
               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
"ReadOnlyRootFilesystem"
                 (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)
readOnlyRootFilesystem,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RunAsGroup" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
runAsGroup,
               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
"RunAsNonRoot" (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)
runAsNonRoot,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RunAsUser" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
runAsUser]))
instance Property "AllowPrivilegeEscalation" EksContainerSecurityContextProperty where
  type PropertyType "AllowPrivilegeEscalation" EksContainerSecurityContextProperty = Value Prelude.Bool
  set :: PropertyType
  "AllowPrivilegeEscalation" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType
  "AllowPrivilegeEscalation" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {allowPrivilegeEscalation :: Maybe (Value Bool)
allowPrivilegeEscalation = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AllowPrivilegeEscalation" EksContainerSecurityContextProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
haddock_workaround_ :: ()
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
instance Property "Privileged" EksContainerSecurityContextProperty where
  type PropertyType "Privileged" EksContainerSecurityContextProperty = Value Prelude.Bool
  set :: PropertyType "Privileged" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType "Privileged" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {privileged :: Maybe (Value Bool)
privileged = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Privileged" EksContainerSecurityContextProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
instance Property "ReadOnlyRootFilesystem" EksContainerSecurityContextProperty where
  type PropertyType "ReadOnlyRootFilesystem" EksContainerSecurityContextProperty = Value Prelude.Bool
  set :: PropertyType
  "ReadOnlyRootFilesystem" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType
  "ReadOnlyRootFilesystem" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {readOnlyRootFilesystem :: Maybe (Value Bool)
readOnlyRootFilesystem = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ReadOnlyRootFilesystem" EksContainerSecurityContextProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
instance Property "RunAsGroup" EksContainerSecurityContextProperty where
  type PropertyType "RunAsGroup" EksContainerSecurityContextProperty = Value Prelude.Integer
  set :: PropertyType "RunAsGroup" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType "RunAsGroup" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {runAsGroup :: Maybe (Value Integer)
runAsGroup = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RunAsGroup" EksContainerSecurityContextProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
instance Property "RunAsNonRoot" EksContainerSecurityContextProperty where
  type PropertyType "RunAsNonRoot" EksContainerSecurityContextProperty = Value Prelude.Bool
  set :: PropertyType "RunAsNonRoot" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType "RunAsNonRoot" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {runAsNonRoot :: Maybe (Value Bool)
runAsNonRoot = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RunAsNonRoot" EksContainerSecurityContextProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsUser :: Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsUser :: Maybe (Value Integer)
..}
instance Property "RunAsUser" EksContainerSecurityContextProperty where
  type PropertyType "RunAsUser" EksContainerSecurityContextProperty = Value Prelude.Integer
  set :: PropertyType "RunAsUser" EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
-> EksContainerSecurityContextProperty
set PropertyType "RunAsUser" EksContainerSecurityContextProperty
newValue EksContainerSecurityContextProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: EksContainerSecurityContextProperty -> ()
allowPrivilegeEscalation :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
privileged :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
readOnlyRootFilesystem :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsGroup :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
runAsNonRoot :: EksContainerSecurityContextProperty -> Maybe (Value Bool)
runAsUser :: EksContainerSecurityContextProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
runAsUser :: Maybe (Value Integer)
..}
    = EksContainerSecurityContextProperty
        {runAsUser :: Maybe (Value Integer)
runAsUser = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RunAsUser" EksContainerSecurityContextProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
haddock_workaround_ :: ()
allowPrivilegeEscalation :: Maybe (Value Bool)
privileged :: Maybe (Value Bool)
readOnlyRootFilesystem :: Maybe (Value Bool)
runAsGroup :: Maybe (Value Integer)
runAsNonRoot :: Maybe (Value Bool)
..}