Class EksAccessEntry
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EksAccessEntry.Builder,EksAccessEntry>
Configures whether Batch manages an Amazon EKS access entry on the cluster for the compute environment. For
information on how the fields interact with the cluster's authenticationMode and with other compute
environments that share the cluster, see Amazon EKS access entry
authentication in the Batch User Guide.
Setting desiredState=ENABLED on a single compute environment does not guarantee that Batch creates an
access entry, and setting desiredState=DISABLED on a single compute environment does not guarantee that
Batch deletes one. Batch compares the desiredState across all compute environments that target the same
cluster. The Batch-managed access entry is created only when all compute environments have
desiredState=ENABLED, and deleted only when all have desiredState=DISABLED. If you have
multiple compute environments on the same cluster, set desiredState consistently across all of them to
avoid uncertainty. For more information, see Reconciling desiredState across compute environments in the Batch User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EksAccessEntry.Builderbuilder()The desired access entry state for the compute environment.final StringThe desired access entry state for the compute environment.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends EksAccessEntry.Builder>final EksAccessEntryStatusstatus()The observed state of the access entry on the cluster.final StringThe observed state of the access entry on the cluster.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
desiredState
The desired access entry state for the compute environment. Valid values:
- ENABLED
-
Batch manages an access entry on the cluster for the compute environment.
- DISABLED
-
Batch deletes the Batch-managed access entry for the cluster. This value is rejected if the cluster's
authenticationModeisAPI, because such a cluster doesn't support theaws-authConfigMap. - INHERIT_FROM_CLUSTER
-
Batch defers to the cluster's current access entry
status. On a cluster whose authentication mode isAPI, Batch creates and manages an access entry. On a cluster whose authentication mode isAPI_AND_CONFIG_MAPorCONFIG_MAP, Batch neither adds nor removes an access entry.
If the service returns an enum value that is not available in the current SDK version,
desiredStatewill returnEksAccessEntryDesiredState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdesiredStateAsString().- Returns:
- The desired access entry state for the compute environment. Valid values:
- ENABLED
-
Batch manages an access entry on the cluster for the compute environment.
- DISABLED
-
Batch deletes the Batch-managed access entry for the cluster. This value is rejected if the cluster's
authenticationModeisAPI, because such a cluster doesn't support theaws-authConfigMap. - INHERIT_FROM_CLUSTER
-
Batch defers to the cluster's current access entry
status. On a cluster whose authentication mode isAPI, Batch creates and manages an access entry. On a cluster whose authentication mode isAPI_AND_CONFIG_MAPorCONFIG_MAP, Batch neither adds nor removes an access entry.
- See Also:
-
desiredStateAsString
The desired access entry state for the compute environment. Valid values:
- ENABLED
-
Batch manages an access entry on the cluster for the compute environment.
- DISABLED
-
Batch deletes the Batch-managed access entry for the cluster. This value is rejected if the cluster's
authenticationModeisAPI, because such a cluster doesn't support theaws-authConfigMap. - INHERIT_FROM_CLUSTER
-
Batch defers to the cluster's current access entry
status. On a cluster whose authentication mode isAPI, Batch creates and manages an access entry. On a cluster whose authentication mode isAPI_AND_CONFIG_MAPorCONFIG_MAP, Batch neither adds nor removes an access entry.
If the service returns an enum value that is not available in the current SDK version,
desiredStatewill returnEksAccessEntryDesiredState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdesiredStateAsString().- Returns:
- The desired access entry state for the compute environment. Valid values:
- ENABLED
-
Batch manages an access entry on the cluster for the compute environment.
- DISABLED
-
Batch deletes the Batch-managed access entry for the cluster. This value is rejected if the cluster's
authenticationModeisAPI, because such a cluster doesn't support theaws-authConfigMap. - INHERIT_FROM_CLUSTER
-
Batch defers to the cluster's current access entry
status. On a cluster whose authentication mode isAPI, Batch creates and manages an access entry. On a cluster whose authentication mode isAPI_AND_CONFIG_MAPorCONFIG_MAP, Batch neither adds nor removes an access entry.
- See Also:
-
status
The observed state of the access entry on the cluster.
ACTIVEmeans that an access entry for the compute environment exists on the cluster and takes precedence over theaws-authConfigMap.INACTIVEmeans that no Batch-managed access entry is present. This is a read-only field returned byDescribeComputeEnvironments.If the service returns an enum value that is not available in the current SDK version,
statuswill returnEksAccessEntryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The observed state of the access entry on the cluster.
ACTIVEmeans that an access entry for the compute environment exists on the cluster and takes precedence over theaws-authConfigMap.INACTIVEmeans that no Batch-managed access entry is present. This is a read-only field returned byDescribeComputeEnvironments. - See Also:
-
statusAsString
The observed state of the access entry on the cluster.
ACTIVEmeans that an access entry for the compute environment exists on the cluster and takes precedence over theaws-authConfigMap.INACTIVEmeans that no Batch-managed access entry is present. This is a read-only field returned byDescribeComputeEnvironments.If the service returns an enum value that is not available in the current SDK version,
statuswill returnEksAccessEntryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The observed state of the access entry on the cluster.
ACTIVEmeans that an access entry for the compute environment exists on the cluster and takes precedence over theaws-authConfigMap.INACTIVEmeans that no Batch-managed access entry is present. This is a read-only field returned byDescribeComputeEnvironments. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<EksAccessEntry.Builder,EksAccessEntry>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-