Class AccessPolicyArn

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks.AccessPolicyArn
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:01.372Z") @Stability(Stable) public class AccessPolicyArn extends software.amazon.jsii.JsiiObject
Represents an Amazon EKS Access Policy ARN.

Amazon EKS Access Policies are used to control access to Amazon EKS clusters.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.eks.*;
 AccessPolicyArn accessPolicyArn = AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY;
 

See Also:
  • Field Details

    • AMAZON_EKS_ADMIN_POLICY

      @Stability(Stable) public static final AccessPolicyArn AMAZON_EKS_ADMIN_POLICY
      The Amazon EKS Admin Policy.

      This access policy includes permissions that grant an IAM principal most permissions to resources. When associated to an access entry, its access scope is typically one or more Kubernetes namespaces.

    • AMAZON_EKS_ADMIN_VIEW_POLICY

      @Stability(Stable) public static final AccessPolicyArn AMAZON_EKS_ADMIN_VIEW_POLICY
      The Amazon EKS Admin View Policy.

      This access policy includes permissions that grant an IAM principal access to list/view all resources in a cluster.

    • AMAZON_EKS_CLUSTER_ADMIN_POLICY

      @Stability(Stable) public static final AccessPolicyArn AMAZON_EKS_CLUSTER_ADMIN_POLICY
      The Amazon EKS Cluster Admin Policy.

      This access policy includes permissions that grant an IAM principal administrator access to a cluster. When associated to an access entry, its access scope is typically the cluster, rather than a Kubernetes namespace.

    • AMAZON_EKS_EDIT_POLICY

      @Stability(Stable) public static final AccessPolicyArn AMAZON_EKS_EDIT_POLICY
      The Amazon EKS Edit Policy.

      This access policy includes permissions that allow an IAM principal to edit most Kubernetes resources.

    • AMAZON_EKS_VIEW_POLICY

      @Stability(Stable) public static final AccessPolicyArn AMAZON_EKS_VIEW_POLICY
      The Amazon EKS View Policy.

      This access policy includes permissions that grant an IAM principal access to list/view all resources in a cluster.

  • Constructor Details

    • AccessPolicyArn

      protected AccessPolicyArn(software.amazon.jsii.JsiiObjectRef objRef)
    • AccessPolicyArn

      protected AccessPolicyArn(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AccessPolicyArn

      @Stability(Stable) public AccessPolicyArn(@NotNull String policyName)
      Constructs a new instance of the AccessEntry class.

      Parameters:
      policyName -
      • The name of the Amazon EKS access policy.
      This parameter is required.
  • Method Details

    • of

      @Stability(Stable) @NotNull public static AccessPolicyArn of(@NotNull String policyName)
      Creates a new instance of the AccessPolicy class with the specified policy name.

      Parameters:
      policyName - The name of the access policy. This parameter is required.
      Returns:
      A new instance of the AccessPolicy class.
    • getPolicyArn

      @Stability(Stable) @NotNull public String getPolicyArn()
      The Amazon Resource Name (ARN) of the access policy.
    • getPolicyName

      @Stability(Stable) @NotNull public String getPolicyName()
      • The name of the Amazon EKS access policy.

      This is used to construct the policy ARN.