Class CfnUserToGroupAddition.Builder

java.lang.Object
software.amazon.awscdk.services.iam.CfnUserToGroupAddition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserToGroupAddition>
Enclosing class:
CfnUserToGroupAddition

@Stability(Stable) public static final class CfnUserToGroupAddition.Builder extends Object implements software.amazon.jsii.Builder<CfnUserToGroupAddition>
A fluent builder for CfnUserToGroupAddition.
  • Method Details

    • create

      @Stability(Stable) public static CfnUserToGroupAddition.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnUserToGroupAddition.Builder.
    • groupName

      @Stability(Stable) public CfnUserToGroupAddition.Builder groupName(String groupName)
      The name of the group to update.

      This parameter allows (through its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

      Parameters:
      groupName - The name of the group to update. This parameter is required.
      Returns:
      this
    • users

      @Stability(Stable) public CfnUserToGroupAddition.Builder users(List<String> users)
      A list of the names of the users that you want to add to the group.

      Parameters:
      users - A list of the names of the users that you want to add to the group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnUserToGroupAddition build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnUserToGroupAddition>
      Returns:
      a newly built instance of CfnUserToGroupAddition.