Skip to content
v2.275.0

AccessPolicyArn Class ​

Represents an Amazon EKS Access Policy ARN.

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const accessPolicyArn = eks.AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

access_policy_arn = eks.AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY
java
// 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;
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var accessPolicyArn = AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY;
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

accessPolicyArn := awscdk.Aws_eks.AccessPolicyArn_AMAZON_EKS_ADMIN_POLICY()

Initializer ​

ts
new AccessPolicyArn(policyName: string)
python
AccessPolicyArn(policy_name: str)
java
new AccessPolicyArn(String policyName)
csharp
new AccessPolicyArn(string policyName)
go
NewAccessPolicyArn(PolicyName *string)

Properties ​

AMAZON_EKS_ADMIN_POLICYAccessPolicyArnamazon_eks_admin_policyAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnstatic#
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_POLICYAccessPolicyArnamazon_eks_admin_view_policyAccessPolicyArnAMAZON_EKS_ADMIN_VIEW_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_VIEW_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_VIEW_POLICYAccessPolicyArnstatic#
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_POLICYAccessPolicyArnamazon_eks_cluster_admin_policyAccessPolicyArnAMAZON_EKS_CLUSTER_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_CLUSTER_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_CLUSTER_ADMIN_POLICYAccessPolicyArnstatic#
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_POLICYAccessPolicyArnamazon_eks_edit_policyAccessPolicyArnAMAZON_EKS_EDIT_POLICYAccessPolicyArnAMAZON_EKS_EDIT_POLICYAccessPolicyArnAMAZON_EKS_EDIT_POLICYAccessPolicyArnstatic#
The Amazon EKS Edit Policy.

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

AMAZON_EKS_VIEW_POLICYAccessPolicyArnamazon_eks_view_policyAccessPolicyArnAMAZON_EKS_VIEW_POLICYAccessPolicyArnAMAZON_EKS_VIEW_POLICYAccessPolicyArnAMAZON_EKS_VIEW_POLICYAccessPolicyArnstatic#
The Amazon EKS View Policy.

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

policyArnstringpolicy_arnstrpolicyArnStringPolicyArnstringPolicyArn*string#
The Amazon Resource Name (ARN) of the access policy.
policyNamestringpolicy_namestrpolicyNameStringPolicyNamestringPolicyName*string#
- The name of the Amazon EKS access policy.

This is used to construct the policy ARN.

Methods ​

of(policyName: string): AccessPolicyArn // chainable@staticmethod def of(policy_name: str) -> AccessPolicyArnpublic static AccessPolicyArn of(String policyName)public static AccessPolicyArn Of(string policyName)func Of(PolicyName *string) AccessPolicyArnstatic#
Creates a new instance of the AccessPolicy class with the specified policy name.
1 parameter · returns

Parameters

  • policyNamepolicy_namepolicyNamepolicyNamePolicyName — The name of the access policy.

Returns: A new instance of the AccessPolicy class.