interface AccessScope
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EKS.AccessScope |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awseks#AccessScope |
![]() | software.amazon.awscdk.services.eks.AccessScope |
![]() | aws_cdk.aws_eks.AccessScope |
![]() | aws-cdk-lib » aws_eks » AccessScope |
Represents the scope of an access policy.
The scope defines the namespaces or cluster-level access granted by the policy.
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 accessScope: eks.AccessScope = {
type: eks.AccessScopeType.NAMESPACE,
// the properties below are optional
namespaces: ['namespaces'],
};
Properties
Name | Type | Description |
---|---|---|
type | Access | The scope type of the policy, either 'namespace' or 'cluster'. |
namespaces? | string[] | A Kubernetes namespace that an access policy is scoped to. |
type
Type:
Access
The scope type of the policy, either 'namespace' or 'cluster'.
namespaces?
Type:
string[]
(optional, default: no specific namespaces for this scope.)
A Kubernetes namespace that an access policy is scoped to.
A value is required if you specified namespace for Type.