Class AccessPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.eks.model.AccessPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccessPolicy.Builder,AccessPolicy>
@Generated("software.amazon.awssdk:codegen") public final class AccessPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccessPolicy.Builder,AccessPolicy>
An access policy includes permissions that allow Amazon EKS to authorize an IAM principal to work with Kubernetes objects on your cluster. The policies are managed by Amazon EKS, but they're not IAM policies. You can't view the permissions in the policies using the API. The permissions for many of the policies are similar to the Kubernetes
cluster-admin,admin,edit, andviewcluster roles. For more information about these cluster roles, see User-facing roles in the Kubernetes documentation. To view the contents of the policies, see Access policy permissions in the Amazon EKS User Guide.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAccessPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The ARN of the access policy.static AccessPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the access policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AccessPolicy.Builder>serializableBuilderClass()AccessPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the access policy.
- Returns:
- The name of the access policy.
-
arn
public final String arn()
The ARN of the access policy.
- Returns:
- The ARN of the access policy.
-
toBuilder
public AccessPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccessPolicy.Builder,AccessPolicy>
-
builder
public static AccessPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends AccessPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-