AccessPolicyArn Class
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 { aws_eks as eks } from 'aws-cdk-lib';
const accessPolicyArn = eks.AccessPolicyArn.AMAZON_EKS_ADMIN_POLICY;
# 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
// 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;
// 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;
// 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
new AccessPolicyArn(policyName: string)
AccessPolicyArn(policy_name: str)
new AccessPolicyArn(String policyName)
new AccessPolicyArn(string policyName)
NewAccessPolicyArn(PolicyName *string)
Properties
AMAZON_EKS_ADMIN_POLICYAccessPolicyArnamazon_eks_admin_policyAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnAMAZON_EKS_ADMIN_POLICYAccessPolicyArnstatic#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#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#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#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#This access policy includes permissions that grant an IAM principal access to list/view all resources in a cluster.
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#1 parameter · returns
Parameters
policyNamepolicy_namepolicyNamepolicyNamePolicyName— The name of the access policy.
Returns: A new instance of the AccessPolicy class.