@Generated(value="software.amazon.awssdk:codegen") public final class EksContainerSecurityContext extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EksContainerSecurityContext.Builder,EksContainerSecurityContext>
The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EksContainerSecurityContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EksContainerSecurityContext.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
privileged()
When this parameter is
true, the container is given elevated permissions on the host container
instance. |
Boolean |
readOnlyRootFilesystem()
When this parameter is
true, the container is given read-only access to its root file system. |
Long |
runAsGroup()
When this parameter is specified, the container is run as the specified group ID (
gid). |
Boolean |
runAsNonRoot()
When this parameter is specified, the container is run as a user with a
uid other than 0. |
Long |
runAsUser()
When this parameter is specified, the container is run as the specified user ID (
uid). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends EksContainerSecurityContext.Builder> |
serializableBuilderClass() |
EksContainerSecurityContext.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 to
RunAsUser and MustRanAs policy in the Users and groups pod
security policies in the Kubernetes documentation.
uid). If
this parameter isn't specified, the default is the user that's specified in the image metadata. This
parameter maps to RunAsUser and MustRanAs policy in the Users and
groups pod security policies in the Kubernetes documentation.public final 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
to RunAsGroup and MustRunAs policy in the Users and groups pod
security policies in the Kubernetes documentation.
gid). If
this parameter isn't specified, the default is the group that's specified in the image metadata. This
parameter maps to RunAsGroup and MustRunAs policy in the Users and
groups pod security policies in the Kubernetes documentation.public final 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 the root user permissions. The default value is
false. This parameter maps to privileged policy in the Privileged pod security
policies in the Kubernetes documentation.
true, the container is given elevated permissions on the host
container instance. The level of permissions are similar to the root user permissions. The
default value is false. This parameter maps to privileged policy in the Privileged pod
security policies in the Kubernetes documentation.public final Boolean readOnlyRootFilesystem()
When this parameter is true, the container is given read-only access to its root file system. The
default value is false. This parameter maps to ReadOnlyRootFilesystem policy in the Volumes and
file systems pod security policies in the Kubernetes documentation.
true, the container is given read-only access to its root file
system. The default value is false. This parameter maps to
ReadOnlyRootFilesystem policy in the Volumes
and file systems pod security policies in the Kubernetes documentation.public final Boolean runAsNonRoot()
When this parameter is specified, the container is run as a user with a uid other than 0. If this
parameter isn't specified, so such rule is enforced. This parameter maps to RunAsUser and
MustRunAsNonRoot policy in the Users and groups pod
security policies in the Kubernetes documentation.
uid other than 0. If
this parameter isn't specified, so such rule is enforced. This parameter maps to RunAsUser
and MustRunAsNonRoot policy in the Users and
groups pod security policies in the Kubernetes documentation.public EksContainerSecurityContext.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EksContainerSecurityContext.Builder,EksContainerSecurityContext>public static EksContainerSecurityContext.Builder builder()
public static Class<? extends EksContainerSecurityContext.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.