@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.758Z") @Stability(value=Stable) public interface GroupProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iam.*;
ManagedPolicy managedPolicy;
GroupProps groupProps = GroupProps.builder()
.groupName("groupName")
.managedPolicies(List.of(managedPolicy))
.path("path")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
GroupProps.Builder
A builder for
GroupProps |
static class |
GroupProps.Jsii$Proxy
An implementation for
GroupProps |
| Modifier and Type | Method and Description |
|---|---|
static GroupProps.Builder |
builder() |
default String |
getGroupName()
A name for the IAM group.
|
default List<IManagedPolicy> |
getManagedPolicies()
A list of managed policies associated with this role.
|
default String |
getPath()
The path to the group.
|
@Stability(value=Stable) @Nullable default String getGroupName()
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.
Default: Generated by CloudFormation (recommended)
@Stability(value=Stable) @Nullable default List<IManagedPolicy> getManagedPolicies()
You can add managed policies later using
addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName)).
Default: - No managed policies.
@Stability(value=Stable) @Nullable default String getPath()
For more information about paths, see IAM Identifiers in the IAM User Guide.
Default: /
@Stability(value=Stable) static GroupProps.Builder builder()
GroupProps.Builder of GroupPropsCopyright © 2022. All rights reserved.