Class GroupProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • groupName

      @Stability(Stable) public GroupProps.Builder groupName(String groupName)
      Sets the value of GroupProps.getGroupName()
      Parameters:
      groupName - A name for the IAM group. For valid values, see the GroupName parameter for the CreateGroup action in the IAM API Reference. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

      If you specify a name, you must specify the CAPABILITY_NAMED_IAM value to acknowledge your template's capabilities. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

      Returns:
      this
    • managedPolicies

      @Stability(Stable) public GroupProps.Builder managedPolicies(List<? extends IManagedPolicy> managedPolicies)
      Parameters:
      managedPolicies - A list of managed policies associated with this role. You can add managed policies later using addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).
      Returns:
      this
    • path

      @Stability(Stable) public GroupProps.Builder path(String path)
      Sets the value of GroupProps.getPath()
      Parameters:
      path - The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.
      Returns:
      this
    • build

      @Stability(Stable) public GroupProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<GroupProps>
      Returns:
      a new instance of GroupProps
      Throws:
      NullPointerException - if any required attribute was not provided