@Stability(value=Experimental) public static final class GroupProps.Builder extends Object implements software.amazon.jsii.Builder<GroupProps>
GroupProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GroupProps |
build()
Builds the configured instance.
|
GroupProps.Builder |
groupName(String groupName)
Sets the value of
GroupProps.getGroupName() |
GroupProps.Builder |
managedPolicies(List<? extends IManagedPolicy> managedPolicies)
Sets the value of
GroupProps.getManagedPolicies() |
GroupProps.Builder |
path(String path)
Sets the value of
GroupProps.getPath() |
@Stability(value=Experimental) public GroupProps.Builder groupName(String groupName)
GroupProps.getGroupName()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.
this@Stability(value=Experimental) public GroupProps.Builder managedPolicies(List<? extends IManagedPolicy> managedPolicies)
GroupProps.getManagedPolicies()managedPolicies - A list of managed policies associated with this role.
You can add managed policies later using
addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).this@Stability(value=Experimental) public GroupProps.Builder path(String path)
GroupProps.getPath()path - The path to the group.
For more information about paths, see IAM
Identifiers
in the IAM User Guide.this@Stability(value=Experimental) public GroupProps build()
build in interface software.amazon.jsii.Builder<GroupProps>GroupPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.