interface AccessPolicyNameOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EKS.AccessPolicyNameOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#AccessPolicyNameOptions |
Java | software.amazon.awscdk.services.eks.AccessPolicyNameOptions |
Python | aws_cdk.aws_eks.AccessPolicyNameOptions |
TypeScript (source) | aws-cdk-lib » aws_eks » AccessPolicyNameOptions |
Represents the options required to create an Amazon EKS Access Policy using the fromAccessPolicyName() method.
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'] } );
Properties
| Name | Type | Description |
|---|---|---|
| access | Access | The scope of the access policy. |
| namespaces? | string[] | An optional array of Kubernetes namespaces to which the access policy applies. |
accessScopeType
Type:
Access
The scope of the access policy.
This determines the level of access granted by the policy.
namespaces?
Type:
string[]
(optional, default: no specific namespaces for this scope)
An optional array of Kubernetes namespaces to which the access policy applies.

.NET
Go
Java
Python
TypeScript (