AccessPolicyProps

class aws_cdk.aws_eks_v2.AccessPolicyProps(*, access_scope, policy)

Bases: object

Properties for configuring an Amazon EKS Access Policy.

Parameters:
  • access_scope (Union[AccessScope, Dict[str, Any]]) – The scope of the access policy, which determines the level of access granted.

  • policy (AccessPolicyArn) – The access policy itself, which defines the specific permissions.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks_v2 as eks_v2

# access_policy_arn: eks_v2.AccessPolicyArn

access_policy_props = eks_v2.AccessPolicyProps(
    access_scope=eks_v2.AccessScope(
        type=eks_v2.AccessScopeType.NAMESPACE,

        # the properties below are optional
        namespaces=["namespaces"]
    ),
    policy=access_policy_arn
)

Attributes

access_scope

The scope of the access policy, which determines the level of access granted.

policy

The access policy itself, which defines the specific permissions.