Class ContainerAttachedClusterAuthorization.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_attached_cluster.ContainerAttachedClusterAuthorization.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerAttachedClusterAuthorization>
- Enclosing interface:
- ContainerAttachedClusterAuthorization
@Stability(Stable) public static final class ContainerAttachedClusterAuthorization.Builder extends Object implements software.amazon.jsii.Builder<ContainerAttachedClusterAuthorization>
A builder forContainerAttachedClusterAuthorization
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerAttachedClusterAuthorization.BuilderadminGroups(List<String> adminGroups)Sets the value ofContainerAttachedClusterAuthorization.getAdminGroups()ContainerAttachedClusterAuthorization.BuilderadminUsers(List<String> adminUsers)Sets the value ofContainerAttachedClusterAuthorization.getAdminUsers()ContainerAttachedClusterAuthorizationbuild()Builds the configured instance.
-
-
-
Method Detail
-
adminGroups
@Stability(Stable) public ContainerAttachedClusterAuthorization.Builder adminGroups(List<String> adminGroups)
Sets the value ofContainerAttachedClusterAuthorization.getAdminGroups()- Parameters:
adminGroups- Groups that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the 'cluster-admin' ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#admin_groups ContainerAttachedCluster#admin_groups}- Returns:
this
-
adminUsers
@Stability(Stable) public ContainerAttachedClusterAuthorization.Builder adminUsers(List<String> adminUsers)
Sets the value ofContainerAttachedClusterAuthorization.getAdminUsers()- Parameters:
adminUsers- Users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the 'cluster-admin' ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_attached_cluster#admin_users ContainerAttachedCluster#admin_users}- Returns:
this
-
build
@Stability(Stable) public ContainerAttachedClusterAuthorization build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerAttachedClusterAuthorization>- Returns:
- a new instance of
ContainerAttachedClusterAuthorization - Throws:
NullPointerException- if any required attribute was not provided
-
-