@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)",
date="2022-07-01T09:58:31.221Z")
public interface GroupProps
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 java.lang.String |
getGroupName()
A name for the IAM group.
|
default java.util.List<IManagedPolicy> |
getManagedPolicies()
A list of managed policies associated with this role.
|
default java.lang.String |
getPath()
The path to the group.
|
default java.lang.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)
default java.util.List<IManagedPolicy> getManagedPolicies()
You can add managed policies later using
addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName(policyName))
.
Default: - No managed policies.
default java.lang.String getPath()
For more information about paths, see IAM Identifiers in the IAM User Guide.
Default: /
static GroupProps.Builder builder()
GroupProps.Builder
of GroupProps