@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.620Z") @Stability(value=Stable) public class AwsAuth extends Construct
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;
Cluster cluster;
AwsAuth awsAuth = AwsAuth.Builder.create(this, "MyAwsAuth")
.cluster(cluster)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsAuth.Builder
A fluent builder for
AwsAuth. |
software.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
AwsAuth(software.constructs.Construct scope,
String id,
AwsAuthProps props) |
protected |
AwsAuth(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AwsAuth(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccount(String accountId)
Additional AWS account to add to the aws-auth configmap.
|
void |
addMastersRole(IRole role)
Adds the specified IAM role to the `system:masters` RBAC group, which means that anyone that can assume it will be able to administer this Kubernetes system.
|
void |
addMastersRole(IRole role,
String username)
Adds the specified IAM role to the `system:masters` RBAC group, which means that anyone that can assume it will be able to administer this Kubernetes system.
|
void |
addRoleMapping(IRole role,
AwsAuthMapping mapping)
Adds a mapping between an IAM role to a Kubernetes user and groups.
|
void |
addUserMapping(IUser user,
AwsAuthMapping mapping)
Adds a mapping between an IAM user to a Kubernetes user and groups.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected AwsAuth(software.amazon.jsii.JsiiObjectRef objRef)
protected AwsAuth(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public AwsAuth(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
AwsAuthProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable)
public void addAccount(@NotNull
String accountId)
accountId - account number. This parameter is required.@Stability(value=Stable)
public void addMastersRole(@NotNull
IRole role,
@Nullable
String username)
role - The IAM role to add. This parameter is required.username - Optional user (defaults to the role ARN).@Stability(value=Stable)
public void addMastersRole(@NotNull
IRole role)
role - The IAM role to add. This parameter is required.@Stability(value=Stable)
public void addRoleMapping(@NotNull
IRole role,
@NotNull
AwsAuthMapping mapping)
role - The IAM role to map. This parameter is required.mapping - Mapping to k8s user name and groups. This parameter is required.@Stability(value=Stable)
public void addUserMapping(@NotNull
IUser user,
@NotNull
AwsAuthMapping mapping)
user - The IAM user to map. This parameter is required.mapping - Mapping to k8s user name and groups. This parameter is required.Copyright © 2022. All rights reserved.