@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.287Z") @Stability(value=Experimental) public interface Mapping extends software.amazon.jsii.JsiiSerializable
Cluster cluster;
User adminUser = new User(this, "Admin");
cluster.awsAuth.addUserMapping(adminUser, Mapping.builder().groups(List.of("system:masters")).build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
Mapping.Builder
A builder for
Mapping |
static class |
Mapping.Jsii$Proxy
An implementation for
Mapping |
| Modifier and Type | Method and Description |
|---|---|
static Mapping.Builder |
builder() |
List<String> |
getGroups()
(experimental) A list of groups within Kubernetes to which the role is mapped.
|
default String |
getUsername()
(experimental) The user name within Kubernetes to map to the IAM role.
|
@Stability(value=Experimental) @NotNull List<String> getGroups()
@Stability(value=Experimental) @Nullable default String getUsername()
Default: - By default, the user name is the ARN of the IAM role.
@Stability(value=Experimental) static Mapping.Builder builder()
Mapping.Builder of MappingCopyright © 2022. All rights reserved.