Mapping

class aws_cdk.aws_eks_legacy.Mapping(*, groups, username=None)

Bases: object

Parameters:
  • groups (Sequence[str]) – (deprecated) A list of groups within Kubernetes to which the role is mapped.

  • username (Optional[str]) – (deprecated) The user name within Kubernetes to map to the IAM role. Default: - By default, the user name is the ARN of the IAM role.

Stability:

deprecated

ExampleMetadata:

infused

Example:

# cluster: eks.Cluster

admin_user = iam.User(self, "Admin")
cluster.aws_auth.add_user_mapping(admin_user, groups=["system:masters"])

Attributes

groups

(deprecated) A list of groups within Kubernetes to which the role is mapped.

See:

https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings

Stability:

deprecated

username

(deprecated) The user name within Kubernetes to map to the IAM role.

Default:
  • By default, the user name is the ARN of the IAM role.

Stability:

deprecated