class AccessPolicyArn
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EKS.AccessPolicyArn |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awseks#AccessPolicyArn |
![]() | software.amazon.awscdk.services.eks.AccessPolicyArn |
![]() | aws_cdk.aws_eks.AccessPolicyArn |
![]() | aws-cdk-lib » aws_eks » AccessPolicyArn |
Represents an Amazon EKS Access Policy ARN.
Amazon EKS Access Policies are used to control access to Amazon EKS clusters.
See also: https://docs.aws.amazon.com/eks/latest/userguide/access-policies.html
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;
Initializer
new AccessPolicyArn(policyName: string)
Parameters
- policyName
string
— - The name of the Amazon EKS access policy.
Constructs a new instance of the AccessEntry
class.
Properties
Name | Type | Description |
---|---|---|
policy | string | The Amazon Resource Name (ARN) of the access policy. |
policy | string | - The name of the Amazon EKS access policy. |
static AMAZON_EKS_ADMIN_POLICY | Access | The Amazon EKS Admin Policy. |
static AMAZON_EKS_ADMIN_VIEW_POLICY | Access | The Amazon EKS Admin View Policy. |
static AMAZON_EKS_CLUSTER_ADMIN_POLICY | Access | The Amazon EKS Cluster Admin Policy. |
static AMAZON_EKS_EDIT_POLICY | Access | The Amazon EKS Edit Policy. |
static AMAZON_EKS_VIEW_POLICY | Access | The Amazon EKS View Policy. |
policyArn
Type:
string
The Amazon Resource Name (ARN) of the access policy.
policyName
Type:
string
- The name of the Amazon EKS access policy.
This is used to construct the policy ARN.
static AMAZON_EKS_ADMIN_POLICY
Type:
Access
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.
static AMAZON_EKS_ADMIN_VIEW_POLICY
Type:
Access
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.
static AMAZON_EKS_CLUSTER_ADMIN_POLICY
Type:
Access
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.
static AMAZON_EKS_EDIT_POLICY
Type:
Access
The Amazon EKS Edit Policy.
This access policy includes permissions that allow an IAM principal to edit most Kubernetes resources.
static AMAZON_EKS_VIEW_POLICY
Type:
Access
The Amazon EKS View Policy.
This access policy includes permissions that grant an IAM principal access to list/view all resources in a cluster.
Methods
Name | Description |
---|---|
static of(policyName) | Creates a new instance of the AccessPolicy class with the specified policy name. |
static of(policyName)
public static of(policyName: string): AccessPolicyArn
Parameters
- policyName
string
— The name of the access policy.
Returns
Creates a new instance of the AccessPolicy class with the specified policy name.