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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofGroupProps.getGroupName()managedPolicies(List<? extends IManagedPolicy> managedPolicies) Sets the value ofGroupProps.getManagedPolicies()Sets the value ofGroupProps.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupName
Sets the value ofGroupProps.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) Sets the value ofGroupProps.getManagedPolicies()- Parameters:
managedPolicies- A list of managed policies associated with this role. You can add managed policies later usingaddManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).- Returns:
this
-
path
Sets the value ofGroupProps.getPath()- Parameters:
path- The path to the group. For more information about paths, see IAM Identifiers in the IAM User Guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GroupProps>- Returns:
- a new instance of
GroupProps - Throws:
NullPointerException- if any required attribute was not provided
-