Class EksPodSecurityContext
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EksPodSecurityContext.Builder,EksPodSecurityContext>
The security context for the pod. The settings apply to all containers in the pod when the container does not specify an overriding value. For more information, see Set the security context for a Pod in the Kubernetes documentation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final LongfsGroup()A special supplemental group that is applied to all containers in the pod.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongThe primary group ID that runs containers in the pod when a container does not specify its own group ID.final BooleanSpecifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.final LongThe user ID that runs containers in the pod when a container does not specify its own user ID.final EksSeccompProfileThe default seccomp profile for containers in the pod.static Class<? extends EksPodSecurityContext.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
runAsUser
The user ID that runs containers in the pod when a container does not specify its own user ID. The supported value range is
0through2147483647.- Returns:
- The user ID that runs containers in the pod when a container does not specify its own user ID. The
supported value range is
0through2147483647.
-
runAsGroup
The primary group ID that runs containers in the pod when a container does not specify its own group ID. The supported value range is
0through2147483647.- Returns:
- The primary group ID that runs containers in the pod when a container does not specify its own group ID.
The supported value range is
0through2147483647.
-
runAsNonRoot
Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.
- Returns:
- Specifies whether Kubernetes validates that containers in the pod don't run as the root user unless a container specifies an overriding value.
-
seccompProfile
The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.
- Returns:
- The default seccomp profile for containers in the pod. A container-level seccomp profile overrides this value.
-
fsGroup
A special supplemental group that is applied to all containers in the pod. Some volume types allow Kubernetes to change the ownership and permissions of the volume contents to this group when the volume is mounted. The supported value range is
0through2147483647.- Returns:
- A special supplemental group that is applied to all containers in the pod. Some volume types allow
Kubernetes to change the ownership and permissions of the volume contents to this group when the volume
is mounted. The supported value range is
0through2147483647.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<EksPodSecurityContext.Builder,EksPodSecurityContext> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-