Skip to content
v2.274.0

AccessPolicyProps Struct ​

Properties for configuring an Amazon EKS Access 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';

declare const accessPolicyArn: eks.AccessPolicyArn;
const accessPolicyProps: eks.AccessPolicyProps = {
  accessScope: {
    type: eks.AccessScopeType.NAMESPACE,

    // the properties below are optional
    namespaces: ['namespaces'],
  },
  policy: accessPolicyArn,
};

Properties ​

accessScopeAccessScopeaccess_scopeAccessScopeaccessScopeAccessScopeAccessScopeAccessScopeAccessScopeAccessScoperequired#
The scope of the access policy, which determines the level of access granted.
The access policy itself, which defines the specific permissions.