Interface EksContainerSecurityContext.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EksContainerSecurityContext.Builder,EksContainerSecurityContext>,SdkBuilder<EksContainerSecurityContext.Builder,EksContainerSecurityContext>,SdkPojo
- Enclosing class:
- EksContainerSecurityContext
public static interface EksContainerSecurityContext.Builder extends SdkPojo, CopyableBuilder<EksContainerSecurityContext.Builder,EksContainerSecurityContext>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EksContainerSecurityContext.BuilderallowPrivilegeEscalation(Boolean allowPrivilegeEscalation)Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.EksContainerSecurityContext.Builderprivileged(Boolean privileged)When this parameter istrue, the container is given elevated permissions on the host container instance.EksContainerSecurityContext.BuilderreadOnlyRootFilesystem(Boolean readOnlyRootFilesystem)When this parameter istrue, the container is given read-only access to its root file system.EksContainerSecurityContext.BuilderrunAsGroup(Long runAsGroup)When this parameter is specified, the container is run as the specified group ID (gid).EksContainerSecurityContext.BuilderrunAsNonRoot(Boolean runAsNonRoot)When this parameter is specified, the container is run as a user with auidother than 0.EksContainerSecurityContext.BuilderrunAsUser(Long runAsUser)When this parameter is specified, the container is run as the specified user ID (uid).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
runAsUser
EksContainerSecurityContext.Builder runAsUser(Long runAsUser)
When this parameter is specified, the container is run as the specified user ID (
uid). If this parameter isn't specified, the default is the user that's specified in the image metadata. This parameter maps toRunAsUserandMustRanAspolicy in the Users and groups pod security policies in the Kubernetes documentation.- Parameters:
runAsUser- When this parameter is specified, the container is run as the specified user ID (uid). If this parameter isn't specified, the default is the user that's specified in the image metadata. This parameter maps toRunAsUserandMustRanAspolicy in the Users and groups pod security policies in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runAsGroup
EksContainerSecurityContext.Builder runAsGroup(Long runAsGroup)
When this parameter is specified, the container is run as the specified group ID (
gid). If this parameter isn't specified, the default is the group that's specified in the image metadata. This parameter maps toRunAsGroupandMustRunAspolicy in the Users and groups pod security policies in the Kubernetes documentation.- Parameters:
runAsGroup- When this parameter is specified, the container is run as the specified group ID (gid). If this parameter isn't specified, the default is the group that's specified in the image metadata. This parameter maps toRunAsGroupandMustRunAspolicy in the Users and groups pod security policies in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privileged
EksContainerSecurityContext.Builder privileged(Boolean privileged)
When this parameter is
true, the container is given elevated permissions on the host container instance. The level of permissions are similar to therootuser permissions. The default value isfalse. This parameter maps toprivilegedpolicy in the Privileged pod security policies in the Kubernetes documentation.- Parameters:
privileged- When this parameter istrue, the container is given elevated permissions on the host container instance. The level of permissions are similar to therootuser permissions. The default value isfalse. This parameter maps toprivilegedpolicy in the Privileged pod security policies in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowPrivilegeEscalation
EksContainerSecurityContext.Builder allowPrivilegeEscalation(Boolean allowPrivilegeEscalation)
Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value is
false.- Parameters:
allowPrivilegeEscalation- Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readOnlyRootFilesystem
EksContainerSecurityContext.Builder readOnlyRootFilesystem(Boolean readOnlyRootFilesystem)
When this parameter is
true, the container is given read-only access to its root file system. The default value isfalse. This parameter maps toReadOnlyRootFilesystempolicy in the Volumes and file systems pod security policies in the Kubernetes documentation.- Parameters:
readOnlyRootFilesystem- When this parameter istrue, the container is given read-only access to its root file system. The default value isfalse. This parameter maps toReadOnlyRootFilesystempolicy in the Volumes and file systems pod security policies in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runAsNonRoot
EksContainerSecurityContext.Builder runAsNonRoot(Boolean runAsNonRoot)
When this parameter is specified, the container is run as a user with a
uidother than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps toRunAsUserandMustRunAsNonRootpolicy in the Users and groups pod security policies in the Kubernetes documentation.- Parameters:
runAsNonRoot- When this parameter is specified, the container is run as a user with auidother than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps toRunAsUserandMustRunAsNonRootpolicy in the Users and groups pod security policies in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-