Show / Hide Table of Contents

Class AwsAuthMapping

AwsAuth mapping.

Inheritance
object
AwsAuthMapping
Implements
IAwsAuthMapping
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AwsAuthMapping : IAwsAuthMapping
Syntax (vb)
Public Class AwsAuthMapping Implements IAwsAuthMapping
Remarks

ExampleMetadata: infused

Examples
Cluster cluster;

            var adminUser = new User(this, "Admin");
            cluster.AwsAuth.AddUserMapping(adminUser, new AwsAuthMapping { Groups = new [] { "system:masters" } });

Synopsis

Constructors

AwsAuthMapping()

AwsAuth mapping.

Properties

Groups

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

Username

The user name within Kubernetes to map to the IAM role.

Constructors

AwsAuthMapping()

AwsAuth mapping.

public AwsAuthMapping()
Remarks

ExampleMetadata: infused

Examples
Cluster cluster;

            var adminUser = new User(this, "Admin");
            cluster.AwsAuth.AddUserMapping(adminUser, new AwsAuthMapping { Groups = new [] { "system:masters" } });

Properties

Groups

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

public string[] Groups { get; set; }
Property Value

string[]

Remarks

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

Username

The user name within Kubernetes to map to the IAM role.

public string? Username { get; set; }
Property Value

string

Remarks

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

Implements

IAwsAuthMapping
Back to top Generated by DocFX