enum AccessScopeType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.AccessScopeType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#AccessScopeType |
Java | software.amazon.awscdk.services.eks.AccessScopeType |
Python | aws_cdk.aws_eks.AccessScopeType |
TypeScript (source) | aws-cdk-lib » aws_eks » AccessScopeType |
Represents the scope type of an access policy.
The scope type determines the level of access granted by the policy.
Example
// AmazonEKSClusterAdminPolicy with `cluster` scope
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSClusterAdminPolicy', {
accessScopeType: eks.AccessScopeType.CLUSTER,
});
// AmazonEKSAdminPolicy with `namespace` scope
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSAdminPolicy', {
accessScopeType: eks.AccessScopeType.NAMESPACE,
namespaces: ['foo', 'bar'] } );
Members
Name | Description |
---|---|
NAMESPACE | The policy applies to a specific namespace within the cluster. |
CLUSTER | The policy applies to the entire cluster. |
NAMESPACE
The policy applies to a specific namespace within the cluster.
CLUSTER
The policy applies to the entire cluster.