AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.
Namespace: Amazon.Batch.Model
Assembly: AWSSDK.Batch.dll
Version: 3.x.y.z
public class EksContainerSecurityContext
The EksContainerSecurityContext type exposes the following members
Name | Description | |
---|---|---|
EksContainerSecurityContext() |
Name | Type | Description | |
---|---|---|---|
AllowPrivilegeEscalation | System.Boolean |
Gets and sets the property AllowPrivilegeEscalation.
Whether or not a container or a Kubernetes pod is allowed to gain more privileges
than its parent process. The default value is |
|
Privileged | System.Boolean |
Gets and sets the property Privileged.
When this parameter is |
|
ReadOnlyRootFilesystem | System.Boolean |
Gets and sets the property ReadOnlyRootFilesystem.
When this parameter is |
|
RunAsGroup | System.Int64 |
Gets and sets the property RunAsGroup.
When this parameter is specified, the container is run as the specified group ID ( |
|
RunAsNonRoot | System.Boolean |
Gets and sets the property RunAsNonRoot.
When this parameter is specified, the container is run as a user with a |
|
RunAsUser | System.Int64 |
Gets and sets the property RunAsUser.
When this parameter is specified, the container is run as the specified user ID ( |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5