AccessScope Struct
Represents the scope of an access policy.
The scope defines the namespaces or cluster-level access granted by the policy.
Example
ts
// 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
namespacesoptionalstring[]namespacesoptionaltyping.List[str]namespacesoptionalList<String>Namespacesoptionalstring[]Namespacesoptional*[]*string#A Kubernetes namespace that an access policy is scoped to.
Default: no specific namespaces for this scope.
A value is required if you specified namespace for Type.
typeAccessScopeTypetypeAccessScopeTypetypeAccessScopeTypeTypeAccessScopeTypeTypeAccessScopeTyperequired#The scope type of the policy, either 'namespace' or 'cluster'.